diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2014-05-08 19:47:45 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2014-05-08 19:47:45 +0000 |
commit | 54a84fbfcca160e5897e227d413af16daabee1a9 (patch) | |
tree | 12d861cd1216a6def454271777c1c6fc0b26f7e4 /japanese/dbskkd-cdb/Makefile | |
parent | - Add staging support (diff) |
- Add staging support
- Remove leading article from COMMENT
- Define DOCS option
- Break lines around 80 characters
Notes
Notes:
svn path=/head/; revision=353350
Diffstat (limited to 'japanese/dbskkd-cdb/Makefile')
-rw-r--r-- | japanese/dbskkd-cdb/Makefile | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/japanese/dbskkd-cdb/Makefile b/japanese/dbskkd-cdb/Makefile index a024d52f6db7..9de42a2c27ed 100644 --- a/japanese/dbskkd-cdb/Makefile +++ b/japanese/dbskkd-cdb/Makefile @@ -9,7 +9,7 @@ MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} #DISTVERSIONSUFFIX= MAINTAINER= ports@FreeBSD.org -COMMENT=Yet another dictionary server for SKK +COMMENT= Yet another dictionary server for SKK BUILD_DEPENDS= ${LOCALBASE}/lib/libcdb.a:${PORTSDIR}/databases/tinycdb RUN_DEPENDS= ${SKKJISYOCDB}:${PORTSDIR}/japanese/skk-jisyo-cdb @@ -23,32 +23,25 @@ SKKJISYOCDB?= ${LOCALBASE}/${SKKDIR}/SKK-JISYO.${SKKJISYO_TYPE}.cdb MAKE_ENV+= LOCALBASE="${LOCALBASE}" MAKE_ENV+= SKKJISYOCDB="${SKKJISYOCDB}" -.if !defined(NOPORTDOCS) + PORTDOCS= ${PORTDOCS_FILE} ${PORTDOCS_SH} PORTDOCS_FILE= CHANGES LICENSE READMEJP \ example-daemontools.txt example-inetd.txt PORTDOCS_SH= makeskkcdb.sh skktocdbm.sh -.endif -NO_STAGE= yes -.include <bsd.port.pre.mk> +OPTIONS_DEFINE= DOCS post-patch: .for f in READMEJP makeskkcdb.sh - ${REINPLACE_CMD} -e "s!%%PREFIX%%!${PREFIX}!g" -e "s!%%SKKDIR%%!${SKKDIR}!g" -e "s!%%JISYONAME%%!SKK-JISYO.${SKKJISYO_TYPE}!g" ${WRKSRC}/${f} + ${REINPLACE_CMD} -e "s!%%PREFIX%%!${PREFIX}!g" \ + -e "s!%%SKKDIR%%!${SKKDIR}!g" \ + -e "s!%%JISYONAME%%!SKK-JISYO.${SKKJISYO_TYPE}!g" ${WRKSRC}/${f} .endfor do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/dbskkd-cdb ${PREFIX}/libexec -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} -.for docs in ${PORTDOCS_FILE} - ${INSTALL_DATA} ${WRKSRC}/${docs} ${DOCSDIR} -.endfor -.for docs in ${PORTDOCS_SH} - ${INSTALL_SCRIPT} ${WRKSRC}/${docs} ${DOCSDIR} -.endfor -.endif - @${CAT} ${PKGMESSAGE} + ${INSTALL_PROGRAM} ${WRKSRC}/dbskkd-cdb ${STAGEDIR}${PREFIX}/libexec + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS_FILE:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} + ${INSTALL_SCRIPT} ${PORTDOCS_SH:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} -.include <bsd.port.post.mk> +.include <bsd.port.mk> |