diff options
author | pawel <pawel@FreeBSD.org> | 2014-05-18 04:35:55 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2014-05-18 04:35:55 +0800 |
commit | 1e94509e6463a64e5eb9f8856a2bb963eeac5fd1 (patch) | |
tree | a35c80d652b8a1c4eeed03af9d650e2f4fe81968 /japanese/e2ps | |
parent | 43bdb2bb938c3cf477badf80ded8e0e910f31c64 (diff) | |
download | freebsd-ports-gnome-1e94509e6463a64e5eb9f8856a2bb963eeac5fd1.tar.gz freebsd-ports-gnome-1e94509e6463a64e5eb9f8856a2bb963eeac5fd1.tar.zst freebsd-ports-gnome-1e94509e6463a64e5eb9f8856a2bb963eeac5fd1.zip |
- Add staging support
- Convert to new options framework, USES=tar:bzip2
- Switch to PLIST_FILES, PORTDOCS
Diffstat (limited to 'japanese/e2ps')
-rw-r--r-- | japanese/e2ps/Makefile | 24 | ||||
-rw-r--r-- | japanese/e2ps/pkg-plist | 5 |
2 files changed, 12 insertions, 17 deletions
diff --git a/japanese/e2ps/Makefile b/japanese/e2ps/Makefile index 7e88e2abdd49..ece8287ab0c5 100644 --- a/japanese/e2ps/Makefile +++ b/japanese/e2ps/Makefile @@ -9,11 +9,13 @@ MASTER_SITES= http://wt1.ld.infoseek.co.jp/sources/ MAINTAINER= ports@FreeBSD.org COMMENT= Text file to postscript converter (with Japanese support) -USE_BZIP2= yes -DOCDIR= ${PREFIX}/share/doc/${PKGBASE} +USES= tar:bzip2 +DOCSDIR= ${PREFIX}/share/doc/${PKGBASE} -NO_STAGE= yes -.include <bsd.port.pre.mk> +PLIST_FILES= bin/e2ps bin/e2lpr +PORTDOCS= README.euc README.english + +OPTIONS_DEFINE= DOCS post-patch: cd ${WRKSRC} && \ @@ -21,11 +23,9 @@ post-patch: ${SED} -e '/Times-Roman$$/,/^Gothic-Medium.Katakana$$/{s,$$,\\,;}' ps-font.c.orig > ps-font.c do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/e2ps ${PREFIX}/bin - ${LN} -sf ${PREFIX}/bin/e2ps ${PREFIX}/bin/e2lpr -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCDIR} - cd ${WRKSRC} ; ${INSTALL_DATA} README.euc README.english ${DOCDIR} -.endif - -.include <bsd.port.post.mk> + ${INSTALL_PROGRAM} ${WRKSRC}/e2ps ${STAGEDIR}${PREFIX}/bin + ${LN} -sf ${PREFIX}/bin/e2ps ${STAGEDIR}${PREFIX}/bin/e2lpr + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} + +.include <bsd.port.mk> diff --git a/japanese/e2ps/pkg-plist b/japanese/e2ps/pkg-plist deleted file mode 100644 index 82d5a5036168..000000000000 --- a/japanese/e2ps/pkg-plist +++ /dev/null @@ -1,5 +0,0 @@ -bin/e2ps -bin/e2lpr -%%PORTDOCS%%share/doc/ja-e2ps/README.euc -%%PORTDOCS%%share/doc/ja-e2ps/README.english -%%PORTDOCS%%@dirrm share/doc/ja-e2ps |