svn commit: r339203 - in head/chinese: chiconv chiconv/files lunar pcmanx scim-pinyin scim-tables ttf2pt1 ttf2pt1/files

Vanilla I. Shu vanilla at FreeBSD.org
Thu Jan 9 07:20:40 UTC 2014


Author: vanilla
Date: Thu Jan  9 07:20:37 2014
New Revision: 339203
URL: http://svnweb.freebsd.org/changeset/ports/339203

Log:
  Add stagedir support.
  
  Approved by:	 portmgr (blanket infrastructure)

Added:
  head/chinese/chiconv/files/
  head/chinese/chiconv/files/patch-Makefile   (contents, props changed)
  head/chinese/ttf2pt1/files/
  head/chinese/ttf2pt1/files/patch-Makefile   (contents, props changed)
Modified:
  head/chinese/chiconv/Makefile
  head/chinese/lunar/Makefile
  head/chinese/lunar/pkg-plist
  head/chinese/pcmanx/Makefile
  head/chinese/pcmanx/pkg-plist
  head/chinese/scim-pinyin/Makefile
  head/chinese/scim-pinyin/pkg-plist
  head/chinese/scim-tables/Makefile
  head/chinese/scim-tables/pkg-plist
  head/chinese/ttf2pt1/Makefile
  head/chinese/ttf2pt1/pkg-plist

Modified: head/chinese/chiconv/Makefile
==============================================================================
--- head/chinese/chiconv/Makefile	Thu Jan  9 07:10:02 2014	(r339202)
+++ head/chinese/chiconv/Makefile	Thu Jan  9 07:20:37 2014	(r339203)
@@ -18,7 +18,6 @@ GH_ACCOUNT=	buganini
 GH_COMMIT=	9501c80
 
 MAKE_ARGS=	PREFIX=${PREFIX}
-NO_STAGE=	yes
 
 PLIST_FILES=	bin/chiconv
 

Added: head/chinese/chiconv/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/chinese/chiconv/files/patch-Makefile	Thu Jan  9 07:20:37 2014	(r339203)
@@ -0,0 +1,11 @@
+--- Makefile.orig	2014-01-07 14:47:56.000000000 +0800
++++ Makefile	2014-01-07 14:48:06.000000000 +0800
+@@ -9,7 +9,7 @@ chiconv: chiconv.c
+ 	$(CC) ${CFLAGS} -o chiconv chiconv.c ${LIBS}
+ 
+ install:
+-	install -m 555 chiconv ${PREFIX}/bin
++	install -m 555 chiconv $(DESTDIR)${PREFIX}/bin
+ 
+ clean:
+ 	rm -f chiconv

Modified: head/chinese/lunar/Makefile
==============================================================================
--- head/chinese/lunar/Makefile	Thu Jan  9 07:10:02 2014	(r339202)
+++ head/chinese/lunar/Makefile	Thu Jan  9 07:20:37 2014	(r339203)
@@ -11,13 +11,11 @@ MAINTAINER=	obrien at FreeBSD.org
 COMMENT=	Convert between Gregorian Solar Calendar (SC) and Lunar Calendar (LC)
 
 ALL_TARGET=
-MAN1=		lunar.1
 
-NO_STAGE=	yes
 do-install:
-	@${MKDIR} ${PREFIX}/share/chinese
-	${INSTALL_PROGRAM} ${WRKSRC}/lunar ${PREFIX}/bin
-	${INSTALL_DATA} ${WRKSRC}/lunar.bitmap ${PREFIX}/share/chinese
-	${INSTALL_MAN} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/chinese
+	${INSTALL_PROGRAM} ${WRKSRC}/lunar ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_DATA} ${WRKSRC}/lunar.bitmap ${STAGEDIR}${PREFIX}/share/chinese
+	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1
 
 .include <bsd.port.mk>

Modified: head/chinese/lunar/pkg-plist
==============================================================================
--- head/chinese/lunar/pkg-plist	Thu Jan  9 07:10:02 2014	(r339202)
+++ head/chinese/lunar/pkg-plist	Thu Jan  9 07:20:37 2014	(r339203)
@@ -1,4 +1,5 @@
 @comment $FreeBSD$
 bin/lunar
+man/man1/lunar.1.gz
 share/chinese/lunar.bitmap
 @dirrmtry share/chinese

Modified: head/chinese/pcmanx/Makefile
==============================================================================
--- head/chinese/pcmanx/Makefile	Thu Jan  9 07:10:02 2014	(r339202)
+++ head/chinese/pcmanx/Makefile	Thu Jan  9 07:20:37 2014	(r339203)
@@ -29,9 +29,6 @@ EXTERNAL_DESC=	External SSH/Telnet suppo
 IPLOOKUP_DESC=	IP location lookup support
 PROXY_DESC=	Proxy support
 
-MAN1=		pcmanx.1
-
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MNLS}
@@ -83,6 +80,6 @@ CONFIGURE_ARGS+=--enable-proxy
 
 post-install:
 	@# create directory for user friendly
-	${MKDIR} ${DATADIR}/script/
+	${MKDIR} ${STAGEDIR}${DATADIR}/script/
 
 .include <bsd.port.mk>

Modified: head/chinese/pcmanx/pkg-plist
==============================================================================
--- head/chinese/pcmanx/pkg-plist	Thu Jan  9 07:10:02 2014	(r339202)
+++ head/chinese/pcmanx/pkg-plist	Thu Jan  9 07:20:37 2014	(r339203)
@@ -1,6 +1,6 @@
 bin/pcmanx
+man/man1/pcmanx.1.gz
 share/applications/pcmanx.desktop
-share/pixmaps/pcmanx.svg
 %%NLS%%share/locale/zh_CN/LC_MESSAGES/pcmanx.mo
 %%NLS%%share/locale/zh_TW/LC_MESSAGES/pcmanx.mo
 %%DATADIR%%/emoticons
@@ -11,6 +11,7 @@ share/pixmaps/pcmanx.svg
 %%DATADIR%%/nancy_bot/example_msg.data
 %%DATADIR%%/nancy_bot/example_usages.data
 %%DATADIR%%/sitelist
- at dirrmtry %%DATADIR%%/nancy_bot
+share/pixmaps/pcmanx.svg
 @dirrmtry %%DATADIR%%/script
+ at dirrmtry %%DATADIR%%/nancy_bot
 @dirrmtry %%DATADIR%%

Modified: head/chinese/scim-pinyin/Makefile
==============================================================================
--- head/chinese/scim-pinyin/Makefile	Thu Jan  9 07:10:02 2014	(r339202)
+++ head/chinese/scim-pinyin/Makefile	Thu Jan  9 07:20:37 2014	(r339203)
@@ -23,7 +23,6 @@ LDFLAGS+=	-L${LOCALBASE}/lib -lintl
 
 OPTIONS_DEFINE=	NLS
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MNLS}
@@ -34,7 +33,4 @@ CONFIGURE_ARGS+=	--disable-nls
 PLIST_SUB+=	NLS="@comment "
 .endif
 
-post-install:
-	@${CAT} ${PKGMESSAGE}
-
 .include <bsd.port.mk>

Modified: head/chinese/scim-pinyin/pkg-plist
==============================================================================
--- head/chinese/scim-pinyin/pkg-plist	Thu Jan  9 07:10:02 2014	(r339202)
+++ head/chinese/scim-pinyin/pkg-plist	Thu Jan  9 07:20:37 2014	(r339203)
@@ -12,10 +12,10 @@ lib/scim-1.0/1.4.0/SetupUI/pinyin-imengi
 %%NLS%%share/locale/nl/LC_MESSAGES/scim-pinyin.mo
 %%NLS%%share/locale/zh_CN/LC_MESSAGES/scim-pinyin.mo
 %%NLS%%share/locale/zh_TW/LC_MESSAGES/scim-pinyin.mo
+share/scim/icons/smart-pinyin.png
 share/scim/pinyin/phrase_lib
 share/scim/pinyin/pinyin_phrase_index
 share/scim/pinyin/pinyin_phrase_lib
 share/scim/pinyin/pinyin_table
 share/scim/pinyin/special_table
-share/scim/icons/smart-pinyin.png
 @dirrm share/scim/pinyin

Modified: head/chinese/scim-tables/Makefile
==============================================================================
--- head/chinese/scim-tables/Makefile	Thu Jan  9 07:10:02 2014	(r339202)
+++ head/chinese/scim-tables/Makefile	Thu Jan  9 07:20:37 2014	(r339203)
@@ -13,11 +13,9 @@ COMMENT=	SCIM table based Chinese input 
 BUILD_DEPENDS=	scim-make-table:${PORTSDIR}/textproc/scim-table-imengine
 RUN_DEPENDS=	scim-make-table:${PORTSDIR}/textproc/scim-table-imengine
 
-USES=		pkgconfig
-USE_GMAKE=	yes
+USES=		pkgconfig gmake
 GNU_CONFIGURE=	yes
 
-NO_STAGE=	yes
 .include <bsd.port.pre.mk>
 
 CPPFLAGS+=	-I${LOCALBASE}/include -D__STDC_ISO_10646__
@@ -28,10 +26,4 @@ LDFLAGS+=	-L${LOCALBASE}/lib -lintl
 
 CONFIGURE_ARGS+=	--disable-skim-support
 
-post-install:
-	@${CAT} ${PKGMESSAGE}
-	@${ECHO}
-	@${ECHO} To display this message again, type \`pkg_info -D ${PKGNAME}\'
-	@${ECHO}
-
 .include <bsd.port.post.mk>

Modified: head/chinese/scim-tables/pkg-plist
==============================================================================
--- head/chinese/scim-tables/pkg-plist	Thu Jan  9 07:10:02 2014	(r339202)
+++ head/chinese/scim-tables/pkg-plist	Thu Jan  9 07:20:37 2014	(r339203)
@@ -1,9 +1,9 @@
 share/scim/icons/Array30.png
+share/scim/icons/CNS11643.png
 share/scim/icons/CangJie.png
 share/scim/icons/CangJie3.png
 share/scim/icons/CantonHK.png
 share/scim/icons/Cantonese.png
-share/scim/icons/CNS11643.png
 share/scim/icons/Dayi.png
 share/scim/icons/EZ.png
 share/scim/icons/Erbi-QS.png
@@ -18,12 +18,12 @@ share/scim/icons/Wubi.png
 share/scim/icons/ZhuYin.png
 share/scim/icons/Ziranma.png
 share/scim/tables/Array30.bin
+share/scim/tables/CNS11643.bin
 share/scim/tables/CangJie.bin
 share/scim/tables/CangJie3.bin
 share/scim/tables/CangJie5.bin
 share/scim/tables/CantonHK.bin
 share/scim/tables/Cantonese.bin
-share/scim/tables/CNS11643.bin
 share/scim/tables/Dayi3.bin
 share/scim/tables/EZ-Big.bin
 share/scim/tables/Erbi-QS.bin
@@ -35,8 +35,8 @@ share/scim/tables/SmartCangJie6.bin
 share/scim/tables/Stroke5.bin
 share/scim/tables/Wu.bin
 share/scim/tables/Wubi.bin
-share/scim/tables/ZhuYin.bin
 share/scim/tables/ZhuYin-Big.bin
+share/scim/tables/ZhuYin.bin
 share/scim/tables/Ziranma.bin
- at dirrmtry share/scim/icons
 @dirrmtry share/scim/tables
+ at dirrmtry share/scim/icons

Modified: head/chinese/ttf2pt1/Makefile
==============================================================================
--- head/chinese/ttf2pt1/Makefile	Thu Jan  9 07:10:02 2014	(r339202)
+++ head/chinese/ttf2pt1/Makefile	Thu Jan  9 07:20:37 2014	(r339203)
@@ -17,5 +17,4 @@ MAKE_ARGS=	INSTDIR="${PREFIX}"
 
 NO_BUILD=	yes
 
-NO_STAGE=	yes
 .include <bsd.port.mk>

Added: head/chinese/ttf2pt1/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/chinese/ttf2pt1/files/patch-Makefile	Thu Jan  9 07:20:37 2014	(r339203)
@@ -0,0 +1,18 @@
+--- Makefile.orig	2014-01-09 15:01:13.000000000 +0800
++++ Makefile	2014-01-09 15:02:05.000000000 +0800
+@@ -22,10 +22,11 @@ snapshot:
+ 	./mkrel snapshot
+ 
+ install:
+-	cp -p *.map $(SHAREDIR)/maps
+-	chown $(OWNER) $(SHAREDIR)/maps/*.map
+-	chgrp $(GROUP) $(SHAREDIR)/maps/*.map
+-	chmod 0644 $(SHAREDIR)/maps/*.map
++	mkdir -p $(DESTDIR)$(SHAREDIR)/maps
++	cp -p *.map $(DESTDIR)$(SHAREDIR)/maps
++	chown $(OWNER) $(DESTDIR)$(SHAREDIR)/maps/*.map
++	chgrp $(GROUP) $(DESTDIR)$(SHAREDIR)/maps/*.map
++	chmod 0644 $(DESTDIR)$(SHAREDIR)/maps/*.map
+ 
+ uninstall:
+ 	for i in *.map; do rm -f $(SHAREDIR)/maps/$$i || exit 1; done

Modified: head/chinese/ttf2pt1/pkg-plist
==============================================================================
--- head/chinese/ttf2pt1/pkg-plist	Thu Jan  9 07:10:02 2014	(r339202)
+++ head/chinese/ttf2pt1/pkg-plist	Thu Jan  9 07:20:37 2014	(r339203)
@@ -1,7 +1,9 @@
-share/ttf2pt1/maps/cubg5plus.map
-share/ttf2pt1/maps/cubig5.map
-share/ttf2pt1/maps/cugb.map
-share/ttf2pt1/maps/cugbk.map
-share/ttf2pt1/maps/ubig5.map
-share/ttf2pt1/maps/ugb.map
-share/ttf2pt1/maps/ugbk.map
+%%DATADIR%%/maps/cubg5plus.map
+%%DATADIR%%/maps/cubig5.map
+%%DATADIR%%/maps/cugb.map
+%%DATADIR%%/maps/cugbk.map
+%%DATADIR%%/maps/ubig5.map
+%%DATADIR%%/maps/ugb.map
+%%DATADIR%%/maps/ugbk.map
+ at dirrmtry %%DATADIR%%/maps
+ at dirrmtry %%DATADIR%%


More information about the svn-ports-all mailing list