aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/gcin-devel
diff options
context:
space:
mode:
Diffstat (limited to 'chinese/gcin-devel')
-rw-r--r--chinese/gcin-devel/Makefile1
-rw-r--r--chinese/gcin-devel/files/patch-Makefile17
-rw-r--r--chinese/gcin-devel/files/patch-configure11
-rw-r--r--chinese/gcin-devel/pkg-plist2
4 files changed, 30 insertions, 1 deletions
diff --git a/chinese/gcin-devel/Makefile b/chinese/gcin-devel/Makefile
index fd5191c5d06a..371c689f3483 100644
--- a/chinese/gcin-devel/Makefile
+++ b/chinese/gcin-devel/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gcin
PORTVERSION= 0.8.4
+PORTREVISION= 1
CATEGORIES= chinese
MASTER_SITES= http://www.csie.nctu.edu.tw/~cp76/gcin/download/
diff --git a/chinese/gcin-devel/files/patch-Makefile b/chinese/gcin-devel/files/patch-Makefile
new file mode 100644
index 000000000000..f8d6f0887a94
--- /dev/null
+++ b/chinese/gcin-devel/files/patch-Makefile
@@ -0,0 +1,17 @@
+--- Makefile.orig Fri Feb 25 21:40:34 2005
++++ Makefile Wed Mar 2 18:27:45 2005
+@@ -85,12 +85,12 @@
+ $(MAKE) -C gtk-im install
+ if [ $(prefix) = /usr/local ]; then \
+ install -m 644 gcin.png /usr/share/icons; \
+- install -d $(DOC_DIR); \
+- install -m 644 README $(DOC_DIR); \
+ install $(PROGS) $(bindir); \
+ else \
+ install -s $(PROGS) $(bindir); \
+ fi
++ install -d $(DOC_DIR); \
++ install -m 644 README $(DOC_DIR); \
+ $(MAKE) -C scripts install
+ $(MAKE) -C menu install
+ clean:
diff --git a/chinese/gcin-devel/files/patch-configure b/chinese/gcin-devel/files/patch-configure
index 9ceb4e8650ed..936902ddf08e 100644
--- a/chinese/gcin-devel/files/patch-configure
+++ b/chinese/gcin-devel/files/patch-configure
@@ -1,5 +1,5 @@
--- configure.orig Sat Feb 26 10:40:57 2005
-+++ configure Wed Mar 2 02:51:00 2005
++++ configure Wed Mar 2 18:26:06 2005
@@ -1,12 +1,12 @@
-#!/bin/bash
+#!/bin/sh
@@ -16,3 +16,12 @@
if [ $? = 0 ]; then
FREEBSD=1
else
+@@ -78,7 +78,7 @@
+ echo "GCIN_SCRIPT_DIR=\$(datadir_r)/gcin/script" >> config.mak
+ echo "GCIN_SCRIPT_DIR_i=\$(datadir)/gcin/script" >> config.mak
+ echo "OPTFLAGS=$OPTFLAGS" >> config.mak
+-echo "DOC_DIR=\$(datadir_r)/doc/gcin-$GCIN_VERSION" >> config.mak
++echo "DOC_DIR=\$(datadir_r)/doc/gcin" >> config.mak
+ echo "GCIN_ICON_DIR=\$(datadir_r)/icons/gcin" >> config.mak
+ echo "SYS_ICON_DIR=\$(datadir_r)/icons" >> config.mak
+ echo "GCIN_ICON_DIR_i=\$(datadir)/icons/gcin" >> config.mak
diff --git a/chinese/gcin-devel/pkg-plist b/chinese/gcin-devel/pkg-plist
index d268d94f8183..5494ad7f0b0c 100644
--- a/chinese/gcin-devel/pkg-plist
+++ b/chinese/gcin-devel/pkg-plist
@@ -31,10 +31,12 @@ lib/menu/gcin-setup
%%DATADIR%%/table/tsin.idx
%%DATADIR%%/table/zo.kbm
%%DATADIR%%/table/zo-asdf.kbm
+%%DOCSDIR%%/README
share/icons/gcin.png
share/icons/gcin/pin-fixed24.png
share/icons/gcin/pin-float16.png
@dirrm lib/menu
+@dirrm %%DOCSDIR%%
@dirrm share/icons/gcin
@unexec rmdir %D/share/icons 2>/dev/null || true
@dirrm %%DATADIR%%/table