1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/devel/statsvn/Makefile
Jung-uk Kim 6e3f780774 Fix PLIST when DOCS is enabled and built with javadoc from JDK7 and later.
Note this is just a stopgap.

Reported by:	exp-run (PR190511)
2014-06-04 22:38:24 +00:00

51 lines
943 B
Makefile

# Created by: glarkin
# $FreeBSD$
PORTNAME= statsvn
PORTVERSION= 0.7.0
PORTREVISION= 2
CATEGORIES= devel java
MASTER_SITES= SF
DISTNAME= ${PORTNAME}-${PORTVERSION}-source
MAINTAINER= ports@FreeBSD.org
COMMENT= Subversion repository activity report generator
RUN_DEPENDS= subversion>=1.3:${PORTSDIR}/devel/subversion
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
USES= zip
USE_JAVA= yes
USE_ANT= yes
JAVA_VERSION= 1.6+
ALL_TARGET= dist
SUB_FILES= pkg-message
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
ALL_TARGET+= javadoc
.endif
.include <bsd.port.pre.mk>
.if ${JAVA_PORT_VERSION} == "1.6.0"
PLIST_SUB= JDK6=""
.else
PLIST_SUB= JDK6="@comment "
.endif
do-install:
(cd ${WRKSRC}/dist && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
.if ${PORT_OPTIONS:MDOCS}
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.endif
.include <bsd.port.post.mk>