diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2004-12-31 11:14:19 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2004-12-31 11:14:19 +0000 |
commit | d4530ab3b645105655cf11ef0bc87fe8a6540bc3 (patch) | |
tree | 5c40e6e43e7dca1884fa2a52ff7fe660ec79e2a6 /net-p2p/phex | |
parent | Fixed MASTER_SITE_SUBDIR. (diff) |
o Update to <bsd.java.mk> standard 2.0
o Bump PORTREVISION due to jar location changes
Prompted by: hq
Diffstat (limited to 'net-p2p/phex')
-rw-r--r-- | net-p2p/phex/Makefile | 29 | ||||
-rw-r--r-- | net-p2p/phex/pkg-plist | 14 |
2 files changed, 19 insertions, 24 deletions
diff --git a/net-p2p/phex/Makefile b/net-p2p/phex/Makefile index 29d8d9b64782..43b71b9f80a3 100644 --- a/net-p2p/phex/Makefile +++ b/net-p2p/phex/Makefile @@ -7,6 +7,7 @@ PORTNAME= phex PORTVERSION= 2.0.0.76 +PORTREVISION= 1 CATEGORIES= net java MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -15,17 +16,15 @@ DISTNAME= ${PORTNAME}_${PORTVERSION} MAINTAINER= lioux@FreeBSD.org COMMENT= A Java multi platform and spyware free gnutella client -USE_JAVA= 1.4+ -USE_PERL5_BUILD=yes +USE_JAVA= yes +JAVA_VERSION= 1.4+ +USE_REINPLACE= yes USE_ZIP= yes NO_BUILD= yes -NO_BUILD_DEPENDS_JAVA= yes -PLIST_SUB= JAR_DIR=${JAR_DIR} \ - JAR_FILE=${JAR_FILE} +PLIST_SUB= JAR_DIR=${JAR_DIR} JAVAVM= ${LOCALBASE}/bin/java -JAR_DIR= share/java/jar/${PORTNAME}/ -JAR_MANIFEST= ${FILESDIR}/manifest +JAR_DIR= ${JAVAJARDIR:S,^${PREFIX}/,,}/${PORTNAME} DOC_FILES= Phex_other.htm Phex_win.htm JAR_FILES= crimson-rt.jar jaxb-api.jar jaxb-libs-rt.jar \ @@ -33,11 +32,21 @@ JAR_FILES= crimson-rt.jar jaxb-api.jar jaxb-libs-rt.jar \ looks-1.2.2.jar \ jaxb-ri-rt.jar jaxp.jar phex.jar +PORTDOCS= ${DOC_FILES} + +PLIST_FILES+= bin/${PORTNAME} + +.for jar in ${JAR_FILES} +PLIST_FILES+= %%JAR_DIR%%/${jar} +.endfor + post-patch: # remove trailing ^M - @${PERL} -pi -ne 's!\r\n!\n!' ${WRKSRC}/docs/readme/* - @${SED} -e "s|%%JAR_DIR%%|${JAR_DIR}|;s|%%JAR_FILE%%|${JAR_FILE}|; \ - s|%%JAVA_VERSION%%|${USE_JAVA}|; \ + @${REINPLACE_CMD} -E \ + -e 's!
!!' ${WRKSRC}/docs/readme/* + @${SED} -e "s|%%JAR_DIR%%|${JAR_DIR}|; \ + s|%%JAR_FILE%%|${JAR_FILE}|; \ + s|%%JAVA_VERSION%%|${JAVA_VERSION}|; \ s|%%JAVAVM%%|${JAVAVM}|;s|%%PREFIX%%|${PREFIX}|" \ ${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh diff --git a/net-p2p/phex/pkg-plist b/net-p2p/phex/pkg-plist deleted file mode 100644 index 56e7445b99bf..000000000000 --- a/net-p2p/phex/pkg-plist +++ /dev/null @@ -1,14 +0,0 @@ -bin/phex -%%PORTDOCS%%%%DOCSDIR%%/Phex_other.htm -%%PORTDOCS%%%%DOCSDIR%%/Phex_win.htm -%%JAR_DIR%%/crimson-rt.jar -%%JAR_DIR%%/forms-1.0.4.jar -%%JAR_DIR%%/jaxb-api.jar -%%JAR_DIR%%/jaxb-libs-rt.jar -%%JAR_DIR%%/jaxb-ri-rt.jar -%%JAR_DIR%%/jaxp.jar -%%JAR_DIR%%/looks-1.2.2.jar -%%JAR_DIR%%/phex.jar -%%PORTDOCS%%@dirrm share/doc/phex -@dirrm %%JAR_DIR%% -@unexec rmdir %D/share/java/jar 2>/dev/null || true |