diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2012-06-25 01:36:11 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2012-06-25 01:36:11 +0800 |
commit | 5c2db9f57e89cd45efb6c37462487b2dc5923028 (patch) | |
tree | 3f080168caf28e1355d29cac0f3a66610ad6337f /chinese | |
parent | 3b4f3a5f4bdc82a962cd1e7744896d32a530c1e7 (diff) | |
download | freebsd-ports-gnome-5c2db9f57e89cd45efb6c37462487b2dc5923028.tar.gz freebsd-ports-gnome-5c2db9f57e89cd45efb6c37462487b2dc5923028.tar.zst freebsd-ports-gnome-5c2db9f57e89cd45efb6c37462487b2dc5923028.zip |
- Change pre-install: to post-install:
- While I'm here:
- Add LICENSE
- Move documentation to DOCSDIR
- Convert to new options framework
- Pet portlint
- Bump PORTREVISION for package change
PR: ports/169347
Submitted by: Kit Sin <ktsin@acm.org>
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/autoconvert/Makefile | 32 | ||||
-rw-r--r-- | chinese/autoconvert/pkg-plist | 13 |
2 files changed, 26 insertions, 19 deletions
diff --git a/chinese/autoconvert/Makefile b/chinese/autoconvert/Makefile index 8e4df97a05ac..9cc13870a0ee 100644 --- a/chinese/autoconvert/Makefile +++ b/chinese/autoconvert/Makefile @@ -7,27 +7,35 @@ PORTNAME= autoconvert PORTVERSION= 0.3.16 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= chinese MASTER_SITES= GOOGLE_CODE -PROJECTHOST= libhz -DISTFILES= zh-${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} +DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Intelligent Chinese encoding converter +LICENSE= GPLv2 GPLv3 +LICENSE_COMB= dual + +OPTIONS_DEFINE= DOCS + MAKE_ENV= CFLAG="${CPPFLAGS}" LIBS="${LDFLAGS}" -USE_LDCONFIG= yes MAKE_JOBS_UNSAFE= yes +USE_LDCONFIG= yes +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + +PROJECTHOST= libhz + +.include <bsd.port.options.mk> post-patch: - @${REINPLACE_CMD} -e "s|^CFLAGS|#CFLAGS|" \ - ${WRKSRC}/contrib/xchat-plugins/Makefile - -pre-install: - @${MKDIR} ${DATADIR} -.for i in ChangeLog LICENSE Readme TODO Thanks Version - @${INSTALL_DATA} ${WRKSRC}/$i ${DATADIR} -.endfor + @${REINPLACE_CMD} -e "s|^CFLAGS|#CFLAGS|" ${WRKSRC}/contrib/xchat-plugins/Makefile + +post-install: +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${DOCSDIR}/ + cd ${WRKSRC}/ && ${INSTALL_DATA} ChangeLog Readme TODO Thanks Version ${DOCSDIR}/ +.endif .include <bsd.port.mk> diff --git a/chinese/autoconvert/pkg-plist b/chinese/autoconvert/pkg-plist index 025616ece2ee..d4cfa4ddec85 100644 --- a/chinese/autoconvert/pkg-plist +++ b/chinese/autoconvert/pkg-plist @@ -5,10 +5,9 @@ include/zhstatis.h lib/libhz.a lib/libhz.so lib/libhz.so.0 -%%DATADIR%%/ChangeLog -%%DATADIR%%/LICENSE -%%DATADIR%%/Readme -%%DATADIR%%/TODO -%%DATADIR%%/Thanks -%%DATADIR%%/Version -@dirrm %%DATADIR%% +%%PORTDOCS%%%%DOCSDIR%%/ChangeLog +%%PORTDOCS%%%%DOCSDIR%%/Readme +%%PORTDOCS%%%%DOCSDIR%%/TODO +%%PORTDOCS%%%%DOCSDIR%%/Thanks +%%PORTDOCS%%%%DOCSDIR%%/Version +%%PORTDOCS%%@dirrm %%DOCSDIR%% |