diff options
author | wen <wen@FreeBSD.org> | 2011-10-26 10:30:38 +0800 |
---|---|---|
committer | wen <wen@FreeBSD.org> | 2011-10-26 10:30:38 +0800 |
commit | 0352ecc3e1c4ed4054adbc0294463a33bd5722ea (patch) | |
tree | 1233e69717bd657cbb9a8e819a5b99c3aaf4c86f /java | |
parent | d4472cea7132c741ef520b4af41ef656c28b045b (diff) | |
download | freebsd-ports-gnome-0352ecc3e1c4ed4054adbc0294463a33bd5722ea.tar.gz freebsd-ports-gnome-0352ecc3e1c4ed4054adbc0294463a33bd5722ea.tar.zst freebsd-ports-gnome-0352ecc3e1c4ed4054adbc0294463a33bd5722ea.zip |
- Update to 1.0.4
- Upstream switched from ant to maven
PR: ports/161696
Submitted by: Rob Farmer <rfarmer@predatorlabs.net> (maintainer)
Diffstat (limited to 'java')
-rw-r--r-- | java/jrosetta/Makefile | 31 | ||||
-rw-r--r-- | java/jrosetta/distinfo | 4 | ||||
-rw-r--r-- | java/jrosetta/files/settings.xml | 3 |
3 files changed, 26 insertions, 12 deletions
diff --git a/java/jrosetta/Makefile b/java/jrosetta/Makefile index 783f2daea020..20c1d07a7d0b 100644 --- a/java/jrosetta/Makefile +++ b/java/jrosetta/Makefile @@ -6,28 +6,39 @@ # PORTNAME= jrosetta -PORTVERSION= 1.0.2 +PORTVERSION= 1.0.4 CATEGORIES= java devel -MASTER_SITES= http://www.predatorlabs.net/dl/ -EXTRACT_SUFX= -gpl.zip +MASTER_SITES= http://maven.artenum.com/content/groups/public/com/artenum/${PORTNAME}/${PORTVERSION}/ \ + http://www.predatorlabs.net/dl/ +EXTRACT_SUFX= -sources.jar MAINTAINER= rfarmer@predatorlabs.net COMMENT= API for building a graphical console in Swing +BUILD_DEPENDS= mvn:${PORTSDIR}/devel/maven3 + USE_JAVA= yes JAVA_VERSION= 1.5+ JAVA_BUILD= yes JAVA_RUN= yes -USE_ANT= yes - -ALL_TARGET= make -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-gpl -PLIST_FILES= %%JAVAJARDIR%%/jrosetta-API.jar \ +PLIST_FILES= %%JAVAJARDIR%%/jrosetta-api.jar \ %%JAVAJARDIR%%/jrosetta-engine.jar +OUTPUT= ${WRKDIR}/m2/com/artenum/jrosetta + +post-patch: + ${MKDIR} ${WRKDIR}/m2 + ${CP} ${FILESDIR}/settings.xml ${WRKDIR} + ${REINPLACE_CMD} -e "s|WORK|${WRKDIR}|" ${WRKDIR}/settings.xml + +do-build: + (cd ${WRKSRC} && ${LOCALBASE}/bin/mvn -gs "${WRKDIR}/settings.xml" clean install) + do-install: - ${INSTALL_DATA} ${WRKSRC}/dist/jrosetta-API.jar ${JAVAJARDIR} - ${INSTALL_DATA} ${WRKSRC}/dist/jrosetta-engine.jar ${JAVAJARDIR} + ${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 .include <bsd.port.mk> diff --git a/java/jrosetta/distinfo b/java/jrosetta/distinfo index 469f90747350..fa57ed81e1fd 100644 --- a/java/jrosetta/distinfo +++ b/java/jrosetta/distinfo @@ -1,2 +1,2 @@ -SHA256 (jrosetta-1.0.2-gpl.zip) = 1d8a1de967ca00109b92dedc16bc27ceb68e61aea25f6ba9dc6f977d8d636c8d -SIZE (jrosetta-1.0.2-gpl.zip) = 69552 +SHA256 (jrosetta-1.0.4-sources.jar) = 23c1631769a8715110af1b8449d0e810f8161d9a609d69fb2fe8546903ebfd9b +SIZE (jrosetta-1.0.4-sources.jar) = 94931 diff --git a/java/jrosetta/files/settings.xml b/java/jrosetta/files/settings.xml new file mode 100644 index 000000000000..f3cdff028af4 --- /dev/null +++ b/java/jrosetta/files/settings.xml @@ -0,0 +1,3 @@ +<settings> + <localRepository>WORK/m2</localRepository> +</settings> |