aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2014-02-23 15:20:54 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2014-02-23 15:20:54 +0000
commit01005b138e4f7dc69bfaa767f30e08e76c9804d2 (patch)
treee0cb520e6821c4416a50ff29083838863dccaa33
parent14d20fe59a6f04b286c7d0a82cabfbb71a469c8a (diff)
downloadports-01005b138e4f7dc69bfaa767f30e08e76c9804d2.tar.gz
ports-01005b138e4f7dc69bfaa767f30e08e76c9804d2.zip
Notes
-rw-r--r--chinese/ve/Makefile15
-rw-r--r--chinese/ve/files/patch-edit.c11
-rw-r--r--chinese/ve/files/patch-screen.c11
-rw-r--r--chinese/ve/pkg-plist3
4 files changed, 36 insertions, 4 deletions
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 <bsd.port.mk>
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