diff options
author | Chris Rees <crees@FreeBSD.org> | 2011-11-06 17:40:59 +0000 |
---|---|---|
committer | Chris Rees <crees@FreeBSD.org> | 2011-11-06 17:40:59 +0000 |
commit | c413b394dfe97d3da806b79334d69e4c1249f50b (patch) | |
tree | c7266452e7735a03e5467c15423b5113c8a415b8 /java | |
parent | Add new patch from upstream: (diff) |
Make compilation from source an option-- maven downloads extra files, thus
breaking on package building.
PR: ports/162323
Submitted by: Rob Farmer <rfarmer@predatorlabs.net> (maintainer)
Pointyhat to: crees
Notes
Notes:
svn path=/head/; revision=285179
Diffstat (limited to 'java')
-rw-r--r-- | java/jrosetta/Makefile | 40 | ||||
-rw-r--r-- | java/jrosetta/distinfo | 4 |
2 files changed, 37 insertions, 7 deletions
diff --git a/java/jrosetta/Makefile b/java/jrosetta/Makefile index 7736e83b2e8e..5e68333b9d76 100644 --- a/java/jrosetta/Makefile +++ b/java/jrosetta/Makefile @@ -7,27 +7,45 @@ PORTNAME= jrosetta PORTVERSION= 1.0.4 +PORTREVISION= 1 CATEGORIES= java devel -MASTER_SITES= http://maven.artenum.com/content/groups/public/com/artenum/${PORTNAME}/${PORTVERSION}/ \ - http://www.predatorlabs.net/dl/ -EXTRACT_SUFX= -sources.jar +MASTER_SITES= http://maven.artenum.com/content/groups/public/com/artenum/${PORTNAME}/${PORTVERSION}/:source \ + http://maven.artenum.com/content/groups/public/com/artenum/${PORTNAME}/${PORTNAME}-api/${PORTVERSION}/:api \ + http://maven.artenum.com/content/groups/public/com/artenum/${PORTNAME}/${PORTNAME}-engine/${PORTVERSION}/:engine MAINTAINER= rfarmer@predatorlabs.net COMMENT= API for building a graphical console in Swing -BUILD_DEPENDS= mvn:${PORTSDIR}/devel/maven3 - -USE_ZIP= yes USE_JAVA= yes JAVA_VERSION= 1.5+ -JAVA_BUILD= yes JAVA_RUN= yes PLIST_FILES= %%JAVAJARDIR%%/jrosetta-api.jar \ %%JAVAJARDIR%%/jrosetta-engine.jar +OPTIONS= COMPILE "Download and compile source instead of binaries" off + +.include <bsd.port.options.mk> + +.if defined(WITH_COMPILE) +DISTFILES= ${PORTNAME}-${PORTVERSION}-sources.jar:source + +BUILD_DEPENDS= mvn:${PORTSDIR}/devel/maven3 +JAVA_BUILD= yes +USE_ZIP= yes + +MANUAL_PACKAGE_BUILD= maven fetches files during build target + OUTPUT= ${WRKDIR}/m2/com/artenum/jrosetta +.else +DISTFILES= ${PORTNAME}-api-${PORTVERSION}.jar:api \ + ${PORTNAME}-engine-${PORTVERSION}.jar:engine +EXTRACT_ONLY= +NO_BUILD= yes +.endif + +.if defined(WITH_COMPILE) post-patch: ${MKDIR} ${WRKDIR}/m2 ${CP} ${FILESDIR}/settings.xml ${WRKDIR} @@ -35,11 +53,19 @@ post-patch: do-build: (cd ${WRKSRC} && ${LOCALBASE}/bin/mvn -gs "${WRKDIR}/settings.xml" clean install) +.endif do-install: +.if defined(WITH_COMPILE) ${INSTALL_DATA} ${OUTPUT}/jrosetta-api/${PORTVERSION}/jrosetta-api-${PORTVERSION}.jar \ ${JAVAJARDIR}/jrosetta-api.jar ${INSTALL_DATA} ${OUTPUT}/jrosetta-engine/${PORTVERSION}/jrosetta-engine-${PORTVERSION}.jar \ ${JAVAJARDIR}/jrosetta-engine.jar +.else + ${INSTALL_DATA} ${DISTDIR}/jrosetta-api-${PORTVERSION}.jar \ + ${JAVAJARDIR}/jrosetta-api.jar + ${INSTALL_DATA} ${DISTDIR}/jrosetta-engine-${PORTVERSION}.jar \ + ${JAVAJARDIR}/jrosetta-engine.jar +.endif .include <bsd.port.mk> diff --git a/java/jrosetta/distinfo b/java/jrosetta/distinfo index fa57ed81e1fd..9705038aa154 100644 --- a/java/jrosetta/distinfo +++ b/java/jrosetta/distinfo @@ -1,2 +1,6 @@ SHA256 (jrosetta-1.0.4-sources.jar) = 23c1631769a8715110af1b8449d0e810f8161d9a609d69fb2fe8546903ebfd9b SIZE (jrosetta-1.0.4-sources.jar) = 94931 +SHA256 (jrosetta-api-1.0.4.jar) = 45703efaed9b4eb46830814ca5c5b19220021064a65ed225daa5b74a95c38044 +SIZE (jrosetta-api-1.0.4.jar) = 17189 +SHA256 (jrosetta-engine-1.0.4.jar) = 291e5c5fd8e7335e9ef8b241ae8ee0b3acd7936fc2fe83a632d12e66acd2380e +SIZE (jrosetta-engine-1.0.4.jar) = 51630 |