diff options
author | antoine <antoine@FreeBSD.org> | 2013-09-29 03:36:55 +0800 |
---|---|---|
committer | antoine <antoine@FreeBSD.org> | 2013-09-29 03:36:55 +0800 |
commit | d35e658130c815c1965cc08b392bc04128bdd9fe (patch) | |
tree | 8ace7d1429abf74c04ac1498051f95f342300a9b /japanese/mecab | |
parent | e98734dfe787cf0b0fe0eed3394e0f13e08b05bc (diff) | |
download | freebsd-ports-gnome-d35e658130c815c1965cc08b392bc04128bdd9fe.tar.gz freebsd-ports-gnome-d35e658130c815c1965cc08b392bc04128bdd9fe.tar.zst freebsd-ports-gnome-d35e658130c815c1965cc08b392bc04128bdd9fe.zip |
Convert to STAGEDIR
PR: ports/182396
Submitted by: Yasuhiro KIMURA (maintainer)
Diffstat (limited to 'japanese/mecab')
-rw-r--r-- | japanese/mecab/Makefile | 15 | ||||
-rw-r--r-- | japanese/mecab/pkg-plist | 1 |
2 files changed, 4 insertions, 12 deletions
diff --git a/japanese/mecab/Makefile b/japanese/mecab/Makefile index 16df0b5fdbc8..e7f3162ae54f 100644 --- a/japanese/mecab/Makefile +++ b/japanese/mecab/Makefile @@ -25,13 +25,10 @@ LDFLAGS+= -L${LOCALBASE}/lib ACLOCAL_ARGS= --system-acdir=${LOCALBASE}/share/aclocal AUTOMAKE_ARGS= --add-missing -MAN1= mecab.1 - PORTDOCS= AUTHORS README *.html OPTIONS_DEFINE= DOCS -NO_STAGE= yes .include <bsd.port.options.mk> post-patch: @@ -46,16 +43,10 @@ pre-install: ${CHMOD} a+x ${WRKSRC}/install-sh post-install: - @if [ ! -f ${PREFIX}/etc/mecabrc ]; then \ - ${INSTALL_DATA} ${PREFIX}/etc/mecabrc.dist ${PREFIX}/etc/mecabrc; \ - fi .if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} -.for f in ${PORTDOCS:N*.html} - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/ -.endfor - ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}/ + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:N*.html:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR} .endif - @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> diff --git a/japanese/mecab/pkg-plist b/japanese/mecab/pkg-plist index 158c871ae4c8..c2113d79045c 100644 --- a/japanese/mecab/pkg-plist +++ b/japanese/mecab/pkg-plist @@ -10,6 +10,7 @@ libexec/mecab/mecab-dict-gen libexec/mecab/mecab-dict-index libexec/mecab/mecab-system-eval libexec/mecab/mecab-test-gen +man/man1/mecab.1.gz @dirrm libexec/mecab @unexec if cmp -s %D/etc/mecabrc.dist %D/etc/mecabrc; then rm -f %D/etc/mecabrc; else true; fi etc/mecabrc.dist |