diff options
-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 |