aboutsummaryrefslogtreecommitdiff
path: root/chinese/gcin
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2005-03-03 05:10:04 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2005-03-03 05:10:04 +0000
commit6fbf57e3378af25c413f598ac65e3820ca981664 (patch)
treeb21bb4810fa52c618d910387ccd8790863326de8 /chinese/gcin
parentcd22039a96a92d9520c839386b94460ec19a6da9 (diff)
downloadports-6fbf57e3378af25c413f598ac65e3820ca981664.tar.gz
ports-6fbf57e3378af25c413f598ac65e3820ca981664.zip
Add a patch for gcin-setup "Help" button.
Submitted by: chinsan <chinsan@mail2000.com.tw>
Notes
Notes: svn path=/head/; revision=130238
Diffstat (limited to 'chinese/gcin')
-rw-r--r--chinese/gcin/Makefile1
-rw-r--r--chinese/gcin/files/patch-Makefile17
-rw-r--r--chinese/gcin/files/patch-configure11
-rw-r--r--chinese/gcin/pkg-plist2
4 files changed, 30 insertions, 1 deletions
diff --git a/chinese/gcin/Makefile b/chinese/gcin/Makefile
index fd5191c5d06a..371c689f3483 100644
--- a/chinese/gcin/Makefile
+++ b/chinese/gcin/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/files/patch-Makefile b/chinese/gcin/files/patch-Makefile
new file mode 100644
index 000000000000..f8d6f0887a94
--- /dev/null
+++ b/chinese/gcin/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/files/patch-configure b/chinese/gcin/files/patch-configure
index 9ceb4e8650ed..936902ddf08e 100644
--- a/chinese/gcin/files/patch-configure
+++ b/chinese/gcin/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/pkg-plist b/chinese/gcin/pkg-plist
index d268d94f8183..5494ad7f0b0c 100644
--- a/chinese/gcin/pkg-plist
+++ b/chinese/gcin/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