From 01005b138e4f7dc69bfaa767f30e08e76c9804d2 Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Sun, 23 Feb 2014 15:20:54 +0000 Subject: [PATCH] - Allow build with clang - Respect CC - Support STAGEDIR - While I'm here: - Add LICENSE - Use PLIST_DIRS/PLIST_FILES instead of PLIST PR: ports/186932 Submitted by: Hung-Yi Chen (maintainer) --- chinese/ve/Makefile | 15 ++++++++++++++- chinese/ve/files/patch-edit.c | 11 +++++++++++ chinese/ve/files/patch-screen.c | 11 +++++++++++ chinese/ve/pkg-plist | 3 --- 4 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 chinese/ve/files/patch-edit.c create mode 100644 chinese/ve/files/patch-screen.c delete mode 100644 chinese/ve/pkg-plist diff --git a/chinese/ve/Makefile b/chinese/ve/Makefile index f0110ddc1d74..cc0be93a5c32 100644 --- a/chinese/ve/Makefile +++ b/chinese/ve/Makefile @@ -10,5 +10,18 @@ EXTRACT_SUFX= .tgz MAINTAINER= gaod@hychen.org COMMENT= NTHU-CS Maple BBS 2.36 BBS-like editor -NO_STAGE= yes +LICENSE= GPLv1 GPLv2 GPLv3 +LICENSE_COMB= dual + +MAKE_ARGS= CC="${CC}" + +PLIST_FILES= bin/ve \ + %%DATADIR%%/ve.hlp +PLIST_DIRS= %%DATADIR%% + +do-install: + @${MKDIR} ${STAGEDIR}${DATADIR}/ + ${INSTALL_PROGRAM} ${WRKSRC}/ve ${STAGEDIR}${PREFIX}/bin/ + ${INSTALL_DATA} ${WRKSRC}/ve.hlp ${STAGEDIR}${DATADIR}/ + .include diff --git a/chinese/ve/files/patch-edit.c b/chinese/ve/files/patch-edit.c new file mode 100644 index 000000000000..d7098551adf0 --- /dev/null +++ b/chinese/ve/files/patch-edit.c @@ -0,0 +1,11 @@ +--- edit.c.orig 2014-02-21 07:38:19.000000000 +0800 ++++ edit.c 2014-02-21 07:38:29.000000000 +0800 +@@ -988,7 +988,7 @@ + redraw_everything = YEA; + } + +-match_paren() ++void match_paren() + { + static char parens[] = "()[]{}<>"; + int type, mode; diff --git a/chinese/ve/files/patch-screen.c b/chinese/ve/files/patch-screen.c new file mode 100644 index 000000000000..1af31f2e0efe --- /dev/null +++ b/chinese/ve/files/patch-screen.c @@ -0,0 +1,11 @@ +--- screen.c.orig 2014-02-21 07:38:36.000000000 +0800 ++++ screen.c 2014-02-21 07:38:47.000000000 +0800 +@@ -643,7 +643,7 @@ + } + } + +-region_scroll_up(int top, int bottom) ++void region_scroll_up(int top, int bottom) + { + int i; + diff --git a/chinese/ve/pkg-plist b/chinese/ve/pkg-plist deleted file mode 100644 index eb1c8b4e7278..000000000000 --- a/chinese/ve/pkg-plist +++ /dev/null @@ -1,3 +0,0 @@ -bin/ve -share/ve/ve.hlp -@dirrm share/ve