diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2016-02-22 17:57:34 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2016-02-22 17:57:34 +0800 |
commit | bfbca5ddae21e903b402cbe2baf4c91008a486ba (patch) | |
tree | e93484961fd1548be1fb25c9085b1d7b4e4ecd52 /textproc/resume | |
parent | 0bebc158414e7308dac76fd5e870bb659bc1e2e0 (diff) | |
download | freebsd-ports-graphics-bfbca5ddae21e903b402cbe2baf4c91008a486ba.tar.gz freebsd-ports-graphics-bfbca5ddae21e903b402cbe2baf4c91008a486ba.tar.zst freebsd-ports-graphics-bfbca5ddae21e903b402cbe2baf4c91008a486ba.zip |
- Switch to USES=tar
- Add LICENSE
- Add NO_ARCH
- Pet portlint
- Use common way of pkg-message handling
- Simplify installation
- Switch to options helpers
Diffstat (limited to 'textproc/resume')
-rw-r--r-- | textproc/resume/Makefile | 26 | ||||
-rw-r--r-- | textproc/resume/files/pkg-message.in (renamed from textproc/resume/pkg-message) | 0 |
2 files changed, 14 insertions, 12 deletions
diff --git a/textproc/resume/Makefile b/textproc/resume/Makefile index d08461f136c..8c6201915c7 100644 --- a/textproc/resume/Makefile +++ b/textproc/resume/Makefile @@ -4,38 +4,40 @@ PORTNAME= resume DISTVERSION= 1_5_1 PORTREVISION= 2 -CATEGORIES= textproc +CATEGORIES= textproc java MASTER_SITES= SF/xml${PORTNAME}/xml${PORTNAME}/${PORTVERSION} -EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org COMMENT= XML Resume library +LICENSE= MIT + +USES= tar:tgz USE_JAVA= yes NO_BUILD= yes -PKGMESSAGE= ${WRKDIR}/pkg-message +NO_ARCH= yes +SUB_FILES= pkg-message PORTDOCS= * OPTIONS_DEFINE= DOCS EXAMPLES post-patch: - ${REINPLACE_CMD} -e 's|\.\./\.\./css|css|' ${WRKSRC}/xsl/params.xsl - ${FIND} ${WRKSRC} -name '*.bak' -delete + @${REINPLACE_CMD} -e 's|\.\./\.\./css|css|' ${WRKSRC}/xsl/params.xsl + @${FIND} ${WRKSRC} -name '*.bak' -delete do-install: - ${MKDIR} ${STAGEDIR}${PREFIX}/share/xml/${PORTNAME} - ${CP} -R ${WRKSRC}/dtd/* ${STAGEDIR}${PREFIX}/share/xml/${PORTNAME} - ${MKDIR} ${STAGEDIR}${PREFIX}/share/xsl/${PORTNAME} - ${CP} -R ${WRKSRC}/xsl/* ${STAGEDIR}${PREFIX}/share/xsl/${PORTNAME} - ${CP} -R ${WRKSRC}/css ${STAGEDIR}${PREFIX}/share/xsl/${PORTNAME}/format + cd ${WRKSRC}/dtd && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share/xml/${PORTNAME} + cd ${WRKSRC}/xsl && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share/xsl/${PORTNAME} + cd ${WRKSRC} && ${COPYTREE_SHARE} css ${STAGEDIR}${PREFIX}/share/xsl/${PORTNAME}/format ${INSTALL_DATA} ${WRKSRC}/java/*.jar ${STAGEDIR}${JAVAJARDIR} -post-install: +do-install-EXAMPLES-on: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${CP} -R ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} + +do-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${CP} -R ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR} - ${SED} -e "s|%%PREFIX%%|${PREFIX}|g" pkg-message >${PKGMESSAGE} .include <bsd.port.mk> diff --git a/textproc/resume/pkg-message b/textproc/resume/files/pkg-message.in index c2b88035010..c2b88035010 100644 --- a/textproc/resume/pkg-message +++ b/textproc/resume/files/pkg-message.in |