From 845b4ef66671d63faa136bd9adcdd4796ce3de80 Mon Sep 17 00:00:00 2001 From: Pawel Pekala Date: Sat, 31 May 2014 12:03:44 +0000 Subject: [PATCH] - Add staging support - Convert to new options framework --- java/jasmin/Makefile | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/java/jasmin/Makefile b/java/jasmin/Makefile index dd8e7e648d69..19ec224c06ab 100644 --- a/java/jasmin/Makefile +++ b/java/jasmin/Makefile @@ -19,21 +19,14 @@ DOS2UNIX_REGEX= .*\.(txt|xml|j|class|java|mf|css|bnf|html) SUB_FILES= jasmin.sh -NO_STAGE= yes +OPTIONS_DEFINE= DOCS EXAMPLES + do-install: - ${INSTALL_DATA} ${WRKSRC}/jasmin.jar ${JAVAJARDIR} -.if !defined(NOPORTEXAMPLES) - ${MKDIR} ${EXAMPLESDIR} - cd ${WRKSRC}/examples ; \ - ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/\{} \; ;\ - ${FIND} . -type f -exec ${INSTALL_DATA} \{} ${EXAMPLESDIR}/\{} \; -.endif - ${INSTALL_SCRIPT} ${WRKDIR}/jasmin.sh ${PREFIX}/bin/jasmin -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCDIR} - cd ${WRKSRC}/docs ; \ - ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/\{} \; ;\ - ${FIND} . -type f -exec ${INSTALL_DATA} \{} ${DOCSDIR}/\{} \; -.endif + ${INSTALL_DATA} ${WRKSRC}/jasmin.jar ${STAGEDIR}${JAVAJARDIR} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) + ${INSTALL_SCRIPT} ${WRKDIR}/jasmin.sh ${STAGEDIR}${PREFIX}/bin/jasmin + @${MKDIR} ${STAGEDIR}${DOCDIR} + (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) .include