svn commit: r355978 - head/java/jta

Pawel Pekala pawel at FreeBSD.org
Sat May 31 14:08:40 UTC 2014


Author: pawel
Date: Sat May 31 14:08:39 2014
New Revision: 355978
URL: http://svnweb.freebsd.org/changeset/ports/355978
QAT: https://qat.redports.org/buildarchive/r355978/

Log:
  - Add staging support
  - Convert to new options framework

Modified:
  head/java/jta/Makefile

Modified: head/java/jta/Makefile
==============================================================================
--- head/java/jta/Makefile	Sat May 31 14:04:01 2014	(r355977)
+++ head/java/jta/Makefile	Sat May 31 14:08:39 2014	(r355978)
@@ -18,26 +18,21 @@ NO_BUILD=	yes
 NO_CDROM=	See the license
 DOWNLOAD_URL=	http://download.oracle.com/otndocs/jcp/7286-jta-${PORTVERSION}-spec-oth-JSpec/?submit=Download
 
+PLIST_FILES=	%%JAVAJARDIR%%/${PORTNAME}.jar
 PORTDOCS=	${DISTNAME}.pdf javadocs
 
-PLIST_FILES=	%%JAVAJARDIR%%/${PORTNAME}.jar
+OPTIONS_DEFINE=	DOCS
 
-NO_STAGE=	yes
 .include <bsd.port.pre.mk>
 .if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
 IGNORE=		you must manually fetch the distribution from ${DOWNLOAD_URL} and place it in ${DISTDIR} then run make again
 .endif
 
 do-install:
-	@${ECHO_MSG} -n ">> Install JAR file as ${JAVAJARDIR}/${PORTNAME}.jar..."
-	@${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.jar ${JAVAJARDIR}/${PORTNAME}.jar
-	@${ECHO_MSG} " [ DONE ]"
-.if !defined(NOPORTDOCS)
-	@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
-	@${MKDIR} ${DOCSDIR}
-	@cd ${WRKSRC}/docs && ${FIND} ${PORTDOCS} \
-	  | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
-	@${ECHO_MSG} " [ DONE ]"
-.endif
+	${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.jar \
+		${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/docs/${DISTNAME}.pdf ${STAGEDIR}${DOCSDIR}
+	(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} javadocs ${STAGEDIR}${DOCSDIR})
 
 .include <bsd.port.post.mk>


More information about the svn-ports-all mailing list