aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/xnap
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/xnap')
-rw-r--r--net-p2p/xnap/Makefile21
-rw-r--r--net-p2p/xnap/files/wrapper.sh4
-rw-r--r--net-p2p/xnap/pkg-plist11
3 files changed, 15 insertions, 21 deletions
diff --git a/net-p2p/xnap/Makefile b/net-p2p/xnap/Makefile
index dc0aeffa6379..8911c117aee8 100644
--- a/net-p2p/xnap/Makefile
+++ b/net-p2p/xnap/Makefile
@@ -7,6 +7,7 @@
PORTNAME= XNap
DISTVERSION= 2.5r3
+PORTREVISION= 1
CATEGORIES= net audio java
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME:L}
@@ -16,26 +17,30 @@ DISTNAME= ${PORTNAME:L}-${DISTVERSION}
MAINTAINER= lioux@FreeBSD.org
COMMENT= A pure java napster client; also, supports OpenNap & giFT (FastTrack)
-USE_JAVA= 1.3+
+USE_JAVA= yes
+JAVA_VERSION= 1.3+
NO_BUILD= yes
-NO_BUILD_DEPENDS_JAVA= yes
-PLIST_SUB= JAR_DIR=${JAR_DIR}
JAVAVM= ${LOCALBASE}/bin/java
-JAR_DIR= share/java/jar/${PORTNAME}
DOC_FILES= AUTHORS COPYING COPYING.LIB NEWS README \
TODO
+PORTDOCS= ${DOC_FILES}
+
+PLIST_FILES= \
+ bin/${PORTNAME:L} \
+ %%JAVAJARDIR%%/${PORTNAME:L}.jar
post-patch:
- @${SED} -e "s|%%JAR_DIR%%|${JAR_DIR}|;s|%%JAVAVM%%|${JAVAVM}|; \
- s|%%JAVA_VERSION%%|${USE_JAVA}|; \
+ @${SED} -e "s|%%JAVAJARDIR%%|${JAVAJARDIR:S,^${PREFIX}/,,}|; \
+ s|%%JAVAVM%%|${JAVAVM}|; \
+ s|%%JAVA_VERSION%%|${JAVA_VERSION}|; \
s|%%PREFIX%%|${PREFIX}|" \
${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh
do-install:
- @${MKDIR} ${PREFIX}/${JAR_DIR}
- @${INSTALL_DATA} ${WRKSRC}/xnap.jar ${PREFIX}/${JAR_DIR}
+ @${INSTALL_DATA} ${WRKSRC}/xnap.jar \
+ ${JAVAJARDIR}/${PORTNAME:L}.jar
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/${PORTNAME:L}
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
diff --git a/net-p2p/xnap/files/wrapper.sh b/net-p2p/xnap/files/wrapper.sh
index da6e675fd28e..a8d835778df8 100644
--- a/net-p2p/xnap/files/wrapper.sh
+++ b/net-p2p/xnap/files/wrapper.sh
@@ -5,7 +5,7 @@ export JAVA_VERSION
PREFIX="%%PREFIX%%"
JAVA_VERSION="%%JAVA_VERSION%%"
JAVAVM="%%JAVAVM%%"
-JAR_DIR="%%JAR_DIR%%"
+JAVAJARDIR="%%JAVAJARDIR%%"
JAR_FILE=xnap.jar
-${JAVAVM} -jar ${PREFIX}/${JAR_DIR}/${JAR_FILE} "${@}"
+${JAVAVM} -jar ${PREFIX}/${JAVAJARDIR}/${JAR_FILE} "${@}"
diff --git a/net-p2p/xnap/pkg-plist b/net-p2p/xnap/pkg-plist
index 8ab19056999e..e69de29bb2d1 100644
--- a/net-p2p/xnap/pkg-plist
+++ b/net-p2p/xnap/pkg-plist
@@ -1,11 +0,0 @@
-bin/xnap
-%%PORTDOCS%%share/doc/XNap/AUTHORS
-%%PORTDOCS%%share/doc/XNap/COPYING
-%%PORTDOCS%%share/doc/XNap/COPYING.LIB
-%%PORTDOCS%%share/doc/XNap/NEWS
-%%PORTDOCS%%share/doc/XNap/README
-%%PORTDOCS%%share/doc/XNap/TODO
-%%JAR_DIR%%/xnap.jar
-@dirrm %%JAR_DIR%%
-%%PORTDOCS%%@dirrm share/doc/XNap
-@unexec rmdir %D/share/java/jar 2>/dev/null || true