1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

- Build from source

- Use USE_ANT
- Now bsd.java.mk 2.0 compliant
- Cosmetic changes: ECHO_CMD -> ECHO_MSG and removed unnecessary variables
- Use CPIO rather than MKDIR/INSTALL_MAN
- Removed pkg-plist
- Install LICENSE.txt
- SIZEify (!)
- Use my FreeBSD address for maintainership purposes
- Removed my name from pkg-descr

Approved by:	glewis (mentor)
This commit is contained in:
Herve Quiroz 2004-09-01 13:32:57 +00:00
parent eb6a62055b
commit fd31d56c39
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=117828
4 changed files with 23 additions and 24 deletions

View File

@ -10,36 +10,38 @@ PORTVERSION= 1.0
PORTREVISION= 1
CATEGORIES= java
MASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA}
MASTER_SITE_SUBDIR= commons/primitives/binaries
MASTER_SITE_SUBDIR= commons/primitives/source
PKGNAMEPREFIX= jakarta-
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= herve.quiroz@esil.univ-mrs.fr
MAINTAINER= hq@FreeBSD.org
COMMENT= A library supporting Java primitive types
USE_JAVA= 1.3+
NO_BUILD= YES
USE_JAVA= yes
JAVA_VERSION= 1.3+
USE_ANT= yes
PORT_JARFILE= ${PORTNAME}-${PORTVERSION}.jar
DEST_JARFILE= ${PORTNAME}.jar
JAVA_WRKDOCSDIR= ${WRKSRC}/docs
PLIST_SUB+= JAVAJARDIR=${JAVAJARDIR:S/^${PREFIX}\///}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
ALL_TARGET= jar
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
.if !defined(NOPORTDOCS)
PORTDOCS= apidocs
ALL_TARGET+= javadoc
PORTDOCS= LICENSE.txt api
.endif
do-install:
@${ECHO_CMD} -n ">> Installing JAR file..."
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORT_JARFILE} ${JAVAJARDIR}/${DEST_JARFILE}
@${ECHO_CMD} " [DONE]"
@${ECHO_MSG} -n ">> Installing JAR file as ${JAVAJARDIR}/${PORTNAME}.jar..."
@${INSTALL_DATA} ${WRKSRC}/target/${PORTNAME}-${PORTVERSION}.jar ${JAVAJARDIR}/${PORTNAME}.jar
@${ECHO_MSG} " [DONE]"
.if !defined(NOPORTDOCS)
@${ECHO_CMD} -n ">> Installing documentation..."
@cd ${JAVA_WRKDOCSDIR} && ${FIND} . -type d -mindepth 1 -exec ${MKDIR} ${DOCSDIR}/{} ";"
@cd ${JAVA_WRKDOCSDIR} && ${FIND} . -type f -exec ${INSTALL_MAN} ${JAVA_WRKDOCSDIR}/{} ${DOCSDIR}/{} ";"
@${ECHO_CMD} " [DONE]"
@${ECHO_MSG} -n ">> Installing documentation..."
@${MKDIR} ${DOCSDIR}
@cd ${WRKSRC}/target/docs && ${FIND} api \
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
@${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${DOCSDIR}/
@${ECHO_MSG} " [DONE]"
.endif
post-install:
@${ECHO_CMD} "${PORTNAME}-${PORTVERSION} installed as ${JAVAJARDIR}/${PORT_JARFILE}"
.include <bsd.port.mk>

View File

@ -1 +1,2 @@
MD5 (commons-primitives-1.0.tar.gz) = 2ce92656204f2fa63dad6dfa88e1458b
MD5 (commons-primitives-1.0-src.tar.gz) = cc561194b876a797fe4ebef473a91764
SIZE (commons-primitives-1.0-src.tar.gz) = 172369

View File

@ -7,6 +7,3 @@ Currently Commons Primitives is primarily composed of implementations of the
java.util collections adapted for the primitive types.
WWW: http://jakarta.apache.org/commons/primitives
- Herve Quiroz
herve.quiroz@esil.univ-mrs.fr

View File

@ -1 +0,0 @@
%%JAVAJARDIR%%/commons-primitives.jar