Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Feb 2016 09:57:34 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r409322 - in head/textproc/resume: . files
Message-ID:  <201602220957.u1M9vYVb003364@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Mon Feb 22 09:57:34 2016
New Revision: 409322
URL: https://svnweb.freebsd.org/changeset/ports/409322

Log:
  - Switch to USES=tar
  - Add LICENSE
  - Add NO_ARCH
  - Pet portlint
  - Use common way of pkg-message handling
  - Simplify installation
  - Switch to options helpers

Added:
  head/textproc/resume/files/
  head/textproc/resume/files/pkg-message.in
     - copied unchanged from r409321, head/textproc/resume/pkg-message
Deleted:
  head/textproc/resume/pkg-message
Modified:
  head/textproc/resume/Makefile

Modified: head/textproc/resume/Makefile
==============================================================================
--- head/textproc/resume/Makefile	Mon Feb 22 09:37:40 2016	(r409321)
+++ head/textproc/resume/Makefile	Mon Feb 22 09:57:34 2016	(r409322)
@@ -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>

Copied: head/textproc/resume/files/pkg-message.in (from r409321, head/textproc/resume/pkg-message)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/resume/files/pkg-message.in	Mon Feb 22 09:57:34 2016	(r409322, copy of r409321, head/textproc/resume/pkg-message)
@@ -0,0 +1,12 @@
+************************************************************************
+
+For the impatient: You can get a result just in two steps!
+
+1. Install textproc/libxslt.
+
+2. Run the command below.
+
+    $ xsltproc %%PREFIX%%/share/xsl/resume/output/us-html.xsl \
+               %%PREFIX%%/share/examples/resume/example1.xml
+
+************************************************************************



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602220957.u1M9vYVb003364>