From 8dc70e991c750e3d8f103e6fab7cf071832f22aa Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Sun, 17 Jan 2016 14:04:20 +0000 Subject: [PATCH] - Add LICENSE_FILE - Add NO_ARCH - Switch to options helpers --- devel/jcmdline/Makefile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/devel/jcmdline/Makefile b/devel/jcmdline/Makefile index 375f4bae41db..a357374aedda 100644 --- a/devel/jcmdline/Makefile +++ b/devel/jcmdline/Makefile @@ -9,23 +9,28 @@ MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= Java command line processor +LICENSE= MPL +LICENSE_FILE= ${WRKSRC}/LICENSE + USE_JAVA= yes JAVA_VERSION= 1.6+ NO_BUILD= yes - -LICENSE= MPL +NO_ARCH= yes JARFILE= ${PORTNAME}.jar PLIST_FILES= %%JAVAJARDIR%%/${JARFILE} -DOCFILES= CHANGES CREDITS README PORTDOCS= * +OPTIONS_DEFINE= DOCS + do-install: ${INSTALL_DATA} ${JARFILE:S|.jar|-${PORTVERSION}.jar|:S|^|${WRKSRC}/|} \ ${STAGEDIR}${JAVAJARDIR}/${JARFILE} + +do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${DOCFILES:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} - ${CP} -R ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} CHANGES CREDITS README ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} .include