diff options
author | jlam <jlam@pkgsrc.org> | 2002-10-18 20:58:31 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-10-18 20:58:31 +0000 |
commit | 973921598ee2cdc11fdaf4441c63771201aa8aab (patch) | |
tree | 0a31107a490b5cf61f1bc0bda83b643842280545 /devel/javadeps | |
parent | c485e3342eaa5a7d6d4b431366e4a1d035bfc38c (diff) | |
download | pkgsrc-973921598ee2cdc11fdaf4441c63771201aa8aab.tar.gz |
Trivially use buildlink2 and use java.mk.
Diffstat (limited to 'devel/javadeps')
-rw-r--r-- | devel/javadeps/Makefile | 12 | ||||
-rw-r--r-- | devel/javadeps/distinfo | 4 | ||||
-rw-r--r-- | devel/javadeps/patches/patch-aa | 8 |
3 files changed, 16 insertions, 8 deletions
diff --git a/devel/javadeps/Makefile b/devel/javadeps/Makefile index aa01ae1da10..b05987d5a32 100644 --- a/devel/javadeps/Makefile +++ b/devel/javadeps/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2002/07/31 19:33:19 schmonz Exp $ +# $NetBSD: Makefile,v 1.3 2002/10/18 21:10:02 jlam Exp $ # DISTNAME= javadeps-1.1 @@ -10,11 +10,18 @@ MAINTAINER= ben@wongs.net HOMEPAGE= http://www.vet.com.au/java/javadeps/ COMMENT= Automatic dependency tracking for Java +USE_BUILDLINK2= # defined USE_JAVA= run WRKSRC= ${WRKDIR}/JavaDeps-1.1 -NO_BUILD= yes +do-build: + cd ${WRKSRC}; for file in jdeps; do \ + ${SED} -e "s|@PREFIX@|${PREFIX}|g" \ + -e "s|@JAVA_HOME@|${PKG_JAVA_HOME}|g" \ + $${file} > $${file}.fixed; \ + ${MV} -f $${file}.fixed $${file}; \ + done do-install: ${CP} ${WRKSRC}/jdeps ${PREFIX}/bin @@ -24,4 +31,5 @@ do-install: cd ${WRKSRC}/doc; ${PAX} -rwpe . ${PREFIX}/share/doc/jdeps ${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/share/jdeps ${PREFIX}/share/doc/jdeps +.include "../../mk/java.mk" .include "../../mk/bsd.pkg.mk" diff --git a/devel/javadeps/distinfo b/devel/javadeps/distinfo index bf3683a90e3..1bc59eb9bcd 100644 --- a/devel/javadeps/distinfo +++ b/devel/javadeps/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.1.1.1 2001/10/17 12:32:17 agc Exp $ +$NetBSD: distinfo,v 1.2 2002/10/18 21:10:03 jlam Exp $ SHA1 (javadeps-1.1.zip) = 7ded1f1a0ec5d8bc7c1c6cf78f252cffc22025fb Size (javadeps-1.1.zip) = 146544 bytes -SHA1 (patch-aa) = 94b21c396d5a4ae30135fc0c13be3ef5e57cdd60 +SHA1 (patch-aa) = ed9df1b28acd53f188af85a16bdeda980fb629ba diff --git a/devel/javadeps/patches/patch-aa b/devel/javadeps/patches/patch-aa index 9ef5ca495e7..ba99434310d 100644 --- a/devel/javadeps/patches/patch-aa +++ b/devel/javadeps/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.1.1.1 2001/10/17 12:32:17 agc Exp $ +$NetBSD: patch-aa,v 1.2 2002/10/18 21:10:04 jlam Exp $ --- jdeps.orig Sun May 17 00:49:57 1998 +++ jdeps @@ -9,16 +9,16 @@ $NetBSD: patch-aa,v 1.1.1.1 2001/10/17 12:32:17 agc Exp $ -# Change the value after the equals sign to the full path of the jar file. -jarFile=jdeps.jar +# The full path of the jar file. -+jarFile=/usr/pkg/share/jdeps/jdeps.jar ++jarFile=@PREFIX@/share/jdeps/jdeps.jar -# Change the value after the equals sign to the full pathname of your java -# binary, if it is not on your PATH. -java=java -+# Check if java is in the user's PATH. If not, guess /usr/pkg/java/bin. ++# Check if java is in the user's PATH. +if type java 1>/dev/null 2>&1; then + java=java +else -+ java=/usr/pkg/java/bin/java ++ java=@JAVA_HOME@/bin/java +fi # For win95, all kinds of weird things happen with make & bash if |