blob: fda4d6754ada320269b86d199d6197541f1c0a43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Created by: Jason Helfman <jgh@FreeBSD.org>
# $FreeBSD$
PORTNAME= libvirt-java
PORTVERSION= 0.5.1
PORTREVISION= 1
CATEGORIES= devel java
MASTER_SITES= http://libvirt.org/sources/java/ \
ftp://libvirt.org/libvirt/java/
MAINTAINER= jgh@FreeBSD.org
COMMENT= Java bindings for Libvirt virtualization API
LICENSE= MIT
LIB_DEPENDS= libvirt.so:${PORTSDIR}/devel/libvirt
BUILD_DEPENDS= jna>=4.0:${PORTSDIR}/devel/jna \
junit>=4.8.2:${PORTSDIR}/java/junit
USE_JAVA= YES
JAVA_VERSION= 1.6+
USE_ANT= YES
ALL_TARGET= jar
PLIST_FILES= %%JAVAJARDIR%%/libvirt-${PORTVERSION}.jar
PORTDOCS= *
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's|/usr/share/java|${JAVAJARDIR}|' \
${WRKSRC}/build.properties
OPTIONS_DEFINE= DOCS
.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>
|