aboutsummaryrefslogtreecommitdiff
path: root/net/xnap
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2004-12-31 11:14:19 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2004-12-31 11:14:19 +0000
commitd4530ab3b645105655cf11ef0bc87fe8a6540bc3 (patch)
tree5c40e6e43e7dca1884fa2a52ff7fe660ec79e2a6 /net/xnap
parent658ee6aadc15bf3906d42b7719f82567ae9c47a9 (diff)
downloadports-d4530ab3b645105655cf11ef0bc87fe8a6540bc3.tar.gz
ports-d4530ab3b645105655cf11ef0bc87fe8a6540bc3.zip
Notes
Diffstat (limited to 'net/xnap')
-rw-r--r--net/xnap/Makefile21
-rw-r--r--net/xnap/files/wrapper.sh4
-rw-r--r--net/xnap/pkg-plist11
3 files changed, 15 insertions, 21 deletions
diff --git a/net/xnap/Makefile b/net/xnap/Makefile
index dc0aeffa6379..8911c117aee8 100644
--- a/net/xnap/Makefile
+++ b/net/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/xnap/files/wrapper.sh b/net/xnap/files/wrapper.sh
index da6e675fd28e..a8d835778df8 100644
--- a/net/xnap/files/wrapper.sh
+++ b/net/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/xnap/pkg-plist b/net/xnap/pkg-plist
index 8ab19056999e..e69de29bb2d1 100644
--- a/net/xnap/pkg-plist
+++ b/net/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