1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/java/jta/Makefile
Pawel Pekala 70e0487f6e - Add staging support
- Convert to new options framework
2014-05-31 14:08:39 +00:00

39 lines
1.0 KiB
Makefile

# Created by: Alex Dupre <ale@FreeBSD.org>
# $FreeBSD$
PORTNAME= jta
PORTVERSION= 1.0.1
CATEGORIES= java devel
MASTER_SITES= #
DISTNAME= ${PORTNAME}-spec${PORTVERSION:S/./_/g}
MAINTAINER= ports@FreeBSD.org
COMMENT= Java Transaction API (JTA)
USES= zip
USE_JAVA= yes
JAVA_VERSION= 1.6+
NO_BUILD= yes
NO_CDROM= See the license
DOWNLOAD_URL= http://download.oracle.com/otndocs/jcp/7286-jta-${PORTVERSION}-spec-oth-JSpec/?submit=Download
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
PORTDOCS= ${DISTNAME}.pdf javadocs
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE= you must manually fetch the distribution from ${DOWNLOAD_URL} and place it in ${DISTDIR} then run make again
.endif
do-install:
${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.jar \
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/${DISTNAME}.pdf ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} javadocs ${STAGEDIR}${DOCSDIR})
.include <bsd.port.post.mk>