mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Add staging support
- Convert to new options framework
This commit is contained in:
parent
4e24a1e8dc
commit
845b4ef666
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355964
@ -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 <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user