View | Details | Raw Unified | Return to bug 104531
Collapse All | Expand All

(-)/usr/home/chinsan/project/gcin/Makefile (-8 / +4 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	gcin
8
PORTNAME=	gcin
9
PORTVERSION=	1.2.7
9
PORTVERSION=	1.2.7
10
PORTREVISION=	2
10
PORTREVISION=	3
11
CATEGORIES=	chinese textproc gnome
11
CATEGORIES=	chinese textproc gnome
12
MASTER_SITES=	http://www.csie.nctu.edu.tw/~cp76/gcin/download/:main
12
MASTER_SITES=	http://www.csie.nctu.edu.tw/~cp76/gcin/download/:main
13
DISTFILES=	${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:main
13
DISTFILES=	${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:main
Lines 18-24 Link Here
18
18
19
USE_BZIP2=	YES
19
USE_BZIP2=	YES
20
GNU_CONFIGURE=	YES
20
GNU_CONFIGURE=	YES
21
USE_GNOME=	gtk20 gnomecontrolcenter2 gnomehier
21
USE_GNOME=	gtk20
22
USE_GMAKE=	YES
22
USE_GMAKE=	YES
23
USE_GCC=	3.4+
23
USE_GCC=	3.4+
24
INSTALLS_ICONS=	YES
24
INSTALLS_ICONS=	YES
Lines 42-49 Link Here
42
.endif
42
.endif
43
43
44
pre-patch:
44
pre-patch:
45
	@${REINPLACE_CMD} -e 's,gcin.png,${PREFIX}/share/icons/gcin.png,' \
46
		${WRKSRC}/menu/gcin-setup.desktop
47
	@${REINPLACE_CMD} -e 's/&//; s/bash/sh/; \
45
	@${REINPLACE_CMD} -e 's/&//; s/bash/sh/; \
48
		s/QT_IM_DIR=\/usr/QT_IM_DIR=$$prefix/; \
46
		s/QT_IM_DIR=\/usr/QT_IM_DIR=$$prefix/; \
49
		s/mandir=$$datadir/mandir=$$prefix/; \
47
		s/mandir=$$datadir/mandir=$$prefix/; \
Lines 52-63 Link Here
52
		s/gcc/$$CC/; s/gcin-$$GCIN_VERSION/gcin/' ${WRKSRC}/configure
50
		s/gcc/$$CC/; s/gcin-$$GCIN_VERSION/gcin/' ${WRKSRC}/configure
53
	@${REINPLACE_CMD} -e 's/qsort/mergesort/' ${WRKSRC}/gcin2tab.c
51
	@${REINPLACE_CMD} -e 's/qsort/mergesort/' ${WRKSRC}/gcin2tab.c
54
	@${REINPLACE_CMD} -e 's|/usr/local|/usr|g' \
52
	@${REINPLACE_CMD} -e 's|/usr/local|/usr|g' \
55
	    	${WRKSRC}/gtk-im/Makefile \
53
	    	${WRKSRC}/gtk-im/Makefile ${WRKSRC}/menu/Makefile
56
		${WRKSRC}/menu/Makefile
57
	@${REINPLACE_CMD} -e 's/modify-XIM //; 8,10 d' ${WRKSRC}/scripts/Makefile
54
	@${REINPLACE_CMD} -e 's/modify-XIM //; 8,10 d' ${WRKSRC}/scripts/Makefile
58
	@${REINPLACE_CMD} -e 's/bash/sh/; s/&//;' ${WRKSRC}/scripts/gcin-user-setup
59
	@${REINPLACE_CMD} -e 's/bash/sh/; s/&//; s/opt\/gnome/usr\/X11R6/;' \
55
	@${REINPLACE_CMD} -e 's/bash/sh/; s/&//; s/opt\/gnome/usr\/X11R6/;' \
60
		${WRKSRC}/scripts/utf8-edit
56
		${WRKSRC}/scripts/utf8-edit ${WRKSRC}/scripts/gcin-user-setup
61
	@${REINPLACE_CMD} -e 's,gcin-im-client.h,im-client/gcin-im-client.h,' \
57
	@${REINPLACE_CMD} -e 's,gcin-im-client.h,im-client/gcin-im-client.h,' \
62
		${WRKSRC}/gtk-im/gtkimcontextgcin.c
58
		${WRKSRC}/gtk-im/gtkimcontextgcin.c
63
59
(-)/usr/home/chinsan/project/gcin/files/patch-menu (-7 / +3 lines)
Lines 1-6 Link Here
1
--- menu/Makefile.orig	Sun Aug 28 21:40:32 2005
1
--- Makefile.orig	Wed Oct 18 20:43:15 2006
2
+++ menu/Makefile	Fri Oct 13 14:43:28 2006
2
+++ Makefile	Wed Oct 18 21:00:16 2006
3
@@ -10,14 +10,14 @@ install:
3
@@ -10,14 +10,10 @@
4
 	   install gcin-setup.desktop /usr/share/applications; \
4
 	   install gcin-setup.desktop /usr/share/applications; \
5
 	   install -d /usr/lib/menu; \
5
 	   install -d /usr/lib/menu; \
6
 	   install -m 644 $(MENUS) /usr/lib/menu; \
6
 	   install -m 644 $(MENUS) /usr/lib/menu; \
Lines 15-24 Link Here
15
-	   install -m 644 gcin-setup.desktop $(datadir)/applications; \
15
-	   install -m 644 gcin-setup.desktop $(datadir)/applications; \
16
+	   install -d $(prefix)/share/applications; \
16
+	   install -d $(prefix)/share/applications; \
17
+	   install -m 644 $(MENUS) $(prefix)/share/applications; \
17
+	   install -m 644 $(MENUS) $(prefix)/share/applications; \
18
+	   echo "install Gnome's control center panel ..."; \
19
+	   install -d $(datadir)/gnome/control-center-2.0/capplets; \
20
+	   install -m 644 gcin-setup.desktop $(datadir)/gnome/control-center-2.0/capplets; \
21
+	   echo "installing Other common wm(ie:xfce4)'s menu panel ..."; \
22
 	fi
18
 	fi
23
 clean:
19
 clean:
24
 	rm -f $(MENUS) *~
20
 	rm -f $(MENUS) *~
(-)/usr/home/chinsan/project/gcin/pkg-plist (-1 lines)
Lines 52-58 Link Here
52
%%PORTDOCS%%%%DOCSDIR%%/README
52
%%PORTDOCS%%%%DOCSDIR%%/README
53
share/applications/gcin
53
share/applications/gcin
54
share/applications/gcin-setup
54
share/applications/gcin-setup
55
share/gnome/control-center-2.0/capplets/gcin-setup.desktop
56
share/icons/gcin/gcin-tray.png
55
share/icons/gcin/gcin-tray.png
57
share/icons/gcin/greek.png
56
share/icons/gcin/greek.png
58
share/icons/gcin/tsin.png
57
share/icons/gcin/tsin.png

Return to bug 104531