diff options
author | Jason Helfman <jgh@FreeBSD.org> | 2012-07-09 03:44:00 +0000 |
---|---|---|
committer | Jason Helfman <jgh@FreeBSD.org> | 2012-07-09 03:44:00 +0000 |
commit | 3c8c5ebf02e37660c71745a5c1652295a25f90b6 (patch) | |
tree | 14b4e7aed6d7ce8dcd8d01856070fd1dc473a67c /devel/libvirt-java | |
parent | 32d87d058364bbf1e0f3b480533efd86dd27d4ab (diff) | |
download | ports-3c8c5ebf02e37660c71745a5c1652295a25f90b6.tar.gz ports-3c8c5ebf02e37660c71745a5c1652295a25f90b6.zip |
add new port: devel/libvirt-java
Libvirt-java is a base framework allowing to use libvirt, the virtualization
API though the Java programming language.
WWW: http://libvirt.org/java.html
Notes
Notes:
svn path=/head/; revision=300650
Diffstat (limited to 'devel/libvirt-java')
-rw-r--r-- | devel/libvirt-java/Makefile | 49 | ||||
-rw-r--r-- | devel/libvirt-java/distinfo | 2 | ||||
-rw-r--r-- | devel/libvirt-java/pkg-descr | 4 |
3 files changed, 55 insertions, 0 deletions
diff --git a/devel/libvirt-java/Makefile b/devel/libvirt-java/Makefile new file mode 100644 index 000000000000..71a9ec226998 --- /dev/null +++ b/devel/libvirt-java/Makefile @@ -0,0 +1,49 @@ +# New ports collection makefile for: libvirt-java +# Date created: 2012-07-07 +# Whom: Jason Helfman <jgh@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= libvirt-java +PORTVERSION= 0.4.8 +CATEGORIES= devel java +MASTER_SITES= http://libvirt.org/sources/java/ \ + ftp://libvirt.org/libvirt/java/ + +MAINTAINER= jgh@FreeBSD.org +COMMENT= Java bindings for the libvirt virtualization API + +LICENSE= LGPL20 + +LIB_DEPENDS= virt.9:${PORTSDIR}/devel/libvirt +BUILD_DEPENDS= jna>=3.2.7:${PORTSDIR}/devel/jna \ + junit>=4.8.2:${PORTSDIR}/java/junit + +USE_JAVA= YES +JAVA_VERSION= 1.6+ +USE_ANT= YES + +PLIST_FILES= %%JAVAJARDIR%%/libvirt-${PORTVERSION}.jar +PORTDOCS= * + +post-patch: + @${REINPLACE_CMD} -e 's|/usr/share/java|${JAVAJARDIR}|' \ + ${WRKSRC}/build.properties + +.include <bsd.port.options.mk> + +post-build-script: +.if ${PORT_OPTIONS:MDOCS} + cd ${WRKSRC} && \ + ${ANT} docs +.endif + +do-install: + ${INSTALL_DATA} ${WRKSRC}/target/libvirt-${PORTVERSION}.jar ${JAVAJARDIR} +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${DOCSDIR} + cd ${WRKSRC}/target/javadoc && ${COPYTREE_SHARE} \* ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/devel/libvirt-java/distinfo b/devel/libvirt-java/distinfo new file mode 100644 index 000000000000..25dc77cdc5b2 --- /dev/null +++ b/devel/libvirt-java/distinfo @@ -0,0 +1,2 @@ +SHA256 (libvirt-java-0.4.8.tar.gz) = a9f724c6d6ee8e21a5ee192aaebdb62075bd162a19e18ddbeb5e16062663c0de +SIZE (libvirt-java-0.4.8.tar.gz) = 59823 diff --git a/devel/libvirt-java/pkg-descr b/devel/libvirt-java/pkg-descr new file mode 100644 index 000000000000..fd24f7787c74 --- /dev/null +++ b/devel/libvirt-java/pkg-descr @@ -0,0 +1,4 @@ +Libvirt-java is a base framework allowing to use libvirt, the virtualization +API though the Java programming language. + +WWW: http://libvirt.org/java.html |