mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
Support stage
This commit is contained in:
parent
ba1105befb
commit
55c152f09e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=340501
@ -7,36 +7,28 @@ PORTREVISION= 1
|
||||
CATEGORIES= devel java
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/Flexjson%201.0
|
||||
DISTNAME= ${PORTNAME}
|
||||
EXTRACT_SUFX= .zip
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= A lightweight Java library to write JSON
|
||||
COMMENT= Lightweight Java library to write JSON
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.6+
|
||||
NO_BUILD= yes
|
||||
USE_ZIP= yes
|
||||
|
||||
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
PORTDOCS= LICENSE-2.0.txt docs
|
||||
.endif
|
||||
|
||||
NO_STAGE= yes
|
||||
do-install:
|
||||
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
|
||||
@${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.jar \
|
||||
${JAVAJARDIR}/${PORTNAME}.jar
|
||||
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.jar \
|
||||
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
|
||||
|
||||
@${ECHO_MSG} " [DONE]"
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${ECHO_MSG} -n ">> Installing documentation..."
|
||||
@${MKDIR} ${DOCSDIR}/docs/
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}/docs/
|
||||
@cd ${WRKDIR}/docs \
|
||||
&& ${INSTALL_DATA} example_object_model.jpg ${DOCSDIR}/docs/. \
|
||||
&& ${INSTALL_DATA} index.html ${DOCSDIR}/docs/.
|
||||
@${INSTALL_DATA} ${WRKDIR}/LICENSE-2.0.txt ${DOCSDIR}/
|
||||
@${ECHO_MSG} " [DONE]"
|
||||
.endif
|
||||
&& ${INSTALL_DATA} example_object_model.jpg ${STAGEDIR}${DOCSDIR}/docs/. \
|
||||
&& ${INSTALL_DATA} index.html ${STAGEDIR}${DOCSDIR}/docs/.
|
||||
@${INSTALL_DATA} ${WRKDIR}/LICENSE-2.0.txt ${STAGEDIR}${DOCSDIR}/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user