pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel Mechanical changes to add DESTDIR support to pac...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/71975aec0f24
branches:  trunk
changeset: 539319:71975aec0f24
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Mon Mar 03 17:45:33 2008 +0000

description:
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.

diffstat:

 devel/RTFM/Makefile                 |  17 +++++---
 devel/SDL-intro-en/Makefile         |  10 +++--
 devel/SDL-intro-ko/Makefile         |  10 +++--
 devel/ZenTest/Makefile              |  20 ++++++----
 devel/acme/Makefile                 |  16 ++++---
 devel/acunia-jam/Makefile           |  15 ++++---
 devel/adocman/Makefile              |  18 +++++---
 devel/apache-ant/Makefile           |  22 ++++++-----
 devel/apache-ant15/Makefile         |  24 ++++++-----
 devel/as31/Makefile                 |   9 +++-
 devel/bmake/Makefile                |   8 ++-
 devel/boaconstructor/Makefile       |  12 +++--
 devel/bugzilla/Makefile             |  70 +++++++++++++++++++-----------------
 devel/bugzilla3/Makefile            |  68 ++++++++++++++++++-----------------
 devel/c4/Makefile                   |   8 ++-
 devel/cfitsio/Makefile              |  12 +++--
 devel/cflow-mode/Makefile           |  11 ++++-
 devel/cgdb/Makefile                 |  10 +++--
 devel/cmake-mode/Makefile           |   7 ++-
 devel/cvs2cl/Makefile               |   6 ++-
 devel/cvs2html/Makefile             |   6 ++-
 devel/cvs2p4/Makefile               |  19 +++++----
 devel/cvsgraph/Makefile             |  22 ++++++----
 devel/cvsup-bin/Makefile            |  22 ++++++----
 devel/cvsup-gui-bin/Makefile        |   6 ++-
 devel/device-driver-doc-de/Makefile |  14 ++++---
 devel/dia2code/Makefile             |  12 ++++--
 devel/distccmon-gnome/Makefile      |  14 ++++---
 devel/distccmon-gtk/Makefile        |  12 +++--
 devel/dmake/Makefile                |  13 ++++--
 devel/eclipse/Makefile              |  11 +++--
 devel/electricfence/Makefile        |   9 +++-
 devel/elib/Makefile.common          |  10 +++--
 devel/emacs-ilisp/Makefile          |  32 +++++++++-------
 devel/etrace/Makefile               |  22 ++++++----
 devel/fastdep/Makefile              |   6 ++-
 devel/florist/Makefile              |  15 ++++---
 devel/fromcvs/Makefile              |  24 +++++++-----
 devel/gentle/Makefile               |  36 +++++++++++-------
 devel/gettext-m4/Makefile           |   9 +++-
 devel/gflib/Makefile                |   7 ++-
 devel/haskell-mode/Makefile         |  12 +++--
 devel/idiff/Makefile                |   6 ++-
 devel/its4/Makefile                 |  13 ++++--
 devel/jam/Makefile                  |  17 +++++---
 devel/javacc/Makefile               |  22 ++++++-----
 devel/javadeps/Makefile             |  17 +++++---
 devel/jflex/Makefile                |  13 ++++--
 devel/jgrasp/Makefile               |  22 ++++++-----
 devel/lcc/Makefile                  |  28 ++++++++------
 devel/ldapsdk/Makefile              |  32 ++++++++-------
 devel/libetm/Makefile               |  12 +++--
 devel/libgetopt/Makefile            |  12 ++++--
 devel/libhfs/Makefile               |  27 +++++++------
 devel/libiberty/Makefile            |  12 ++++--
 devel/libmemmgr/Makefile            |  12 +++--
 devel/libportlib/Makefile           |   8 ++-
 devel/libtai/Makefile               |  16 ++++---
 devel/libts/Makefile                |  12 +++--
 devel/libwhisker2/Makefile          |  22 ++++++-----
 devel/lincvs/Makefile               |  14 ++++---
 devel/ltsa/Makefile                 |  20 +++++----
 devel/mantis/Makefile               |  20 +++++----
 devel/monotone-server/Makefile      |  14 ++++---
 devel/monotone-viz/Makefile         |   6 ++-
 devel/mph/Makefile                  |  12 +++--
 devel/netbeans-ide/Makefile         |  16 ++++---
 devel/newt/Makefile                 |  10 +++--
 devel/nsis/Makefile                 |  12 ++++--
 devel/nspr-reference/Makefile       |   9 +++-
 devel/nss/Makefile                  |  17 +++++---
 devel/ode/Makefile                  |   9 +++-
 devel/opengrok/Makefile             |  28 +++++++------
 devel/p4-docs/Makefile              |   9 +++-
 devel/p4/Makefile                   |   7 ++-
 devel/p4d/Makefile                  |   7 ++-
 devel/p4pr/Makefile                 |   7 ++-
 devel/p4web/Makefile                |   6 ++-
 devel/palmpower/Makefile            |  12 +++--
 devel/picprg/Makefile               |  15 +++++--
 devel/psvn/Makefile                 |   8 ++-
 devel/pvs/Makefile                  |  12 +++--
 devel/py-idle/Makefile              |  16 ++++---
 devel/python-mode/Makefile          |   8 ++-
 devel/ratfor/Makefile               |   9 +++-
 devel/rdp/Makefile                  |  16 ++++---
 devel/refinecvs/Makefile            |  14 ++++---
 devel/rox-lib/Makefile              |   6 ++-
 devel/rscode/Makefile               |  10 +++--
 devel/rsltc/Makefile                |  12 +++--
 devel/ruby-activesupport/Makefile   |  19 +++++----
 devel/ruby-bsearch/Makefile         |  11 +++--
 devel/ruby-byaccr/Makefile          |  11 +++--
 devel/ruby-mode/Makefile            |   8 ++-
 devel/ruby-rd-mode/Makefile         |  10 +++--
 devel/rubyforge/Makefile            |  21 ++++++----
 devel/sablecc/Makefile              |  10 +++--
 devel/semantic/Makefile             |  13 ++++--
 devel/sgi-stl-docs/Makefile         |   8 ++-
 devel/sgi-stl/Makefile              |   8 ++-
 devel/sml-mode/Makefile             |   8 ++-
 devel/st/Makefile                   |  20 +++++----
 devel/stlport/Makefile              |  18 +++++----
 devel/stooop/Makefile               |  17 ++++----
 devel/syncdir/Makefile              |   5 +-
 devel/sysexits/Makefile             |   5 +-
 devel/tavrasm/Makefile              |  12 +++--
 devel/teem/Makefile                 |  10 +++--
 devel/tkdiff/Makefile               |   5 +-
 devel/tmake/Makefile                |  24 ++++++-----
 devel/tpasm/Makefile                |  14 ++++---
 devel/ucpp/Makefile                 |   8 ++-
 devel/unidiff/Makefile              |  10 +++--
 devel/uno/Makefile                  |  30 +++++++-------
 devel/vtcl/Makefile                 |  26 +++++++------
 devel/wide/Makefile                 |  14 ++++---
 devel/xdelta3/Makefile              |   6 ++-
 devel/xxgdb/Makefile                |  10 +++--
 devel/z80-asm/Makefile              |  16 ++++---
 119 files changed, 1024 insertions(+), 723 deletions(-)

diffs (truncated from 4350 to 300 lines):

diff -r aa383733fa8c -r 71975aec0f24 devel/RTFM/Makefile
--- a/devel/RTFM/Makefile       Mon Mar 03 17:11:19 2008 +0000
+++ b/devel/RTFM/Makefile       Mon Mar 03 17:45:33 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2006/05/01 09:39:48 cube Exp $
+# $NetBSD: Makefile,v 1.6 2008/03/03 17:45:33 jlam Exp $
 #
 
 DISTNAME=      RTFM-2.0.4
@@ -12,6 +12,8 @@
 
 DEPENDS+=      rt>=3.4.5:../../devel/rt3
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 .include "../../devel/rt3/dirs.mk"
 
 PLIST_SUBST+=  RT_HTML_DIR=${RT_HTML_DIR:C/^${LOCALBASE}\///}  \
@@ -24,17 +26,20 @@
 
 do-install:
        @${ECHO} "=> Libraries"
+       ${INSTALL_DATA_DIR} ${DESTDIR}${RT_LIB_DIR}
        cd ${WRKSRC}/lib/RT && ${FIND} . -type f ! -name '*.orig' 2>/dev/null |         \
-               ${PAX} -rw ${RT_LIB_DIR}/RT
+               ${PAX} -rw ${DESTDIR}${RT_LIB_DIR}/RT
        @${ECHO} "=> HTML Documents"
+       ${INSTALL_DATA_DIR} ${DESTDIR}${RT_HTML_DIR}
        cd ${WRKSRC}/html && ${FIND} . -type f ! -name '*.orig' 2>/dev/null |           \
-               ${PAX} -rw ${RT_HTML_DIR}
+               ${PAX} -rw ${DESTDIR}${RT_HTML_DIR}
        @${ECHO} "=> Locales"
+       ${INSTALL_DATA_DIR} ${DESTDIR}${RT_I18N_DIR}
        cd ${WRKSRC}/po && ${FIND} . -type f ! -name '*.orig' 2>/dev/null |             \
-               ${PAX} -rw ${RT_I18N_DIR}
+               ${PAX} -rw ${DESTDIR}${RT_I18N_DIR}
        @${ECHO} "=> Database Schemas"
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/RTFM
+       ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/RTFM
        for file in acl.Oracle acl.Pg acl.mysql schema.Oracle schema.Pg schema.mysql;   \
-       do ${INSTALL_DATA} ${WRKSRC}/etc/$$file ${PREFIX}/share/RTFM; done
+       do ${INSTALL_DATA} ${WRKSRC}/etc/$$file ${DESTDIR}${PREFIX}/share/RTFM; done
 
 .include "../../mk/bsd.pkg.mk"
diff -r aa383733fa8c -r 71975aec0f24 devel/SDL-intro-en/Makefile
--- a/devel/SDL-intro-en/Makefile       Mon Mar 03 17:11:19 2008 +0000
+++ b/devel/SDL-intro-en/Makefile       Mon Mar 03 17:45:33 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2006/07/21 19:47:32 minskim Exp $
+# $NetBSD: Makefile,v 1.3 2008/03/03 17:45:33 jlam Exp $
 #
 
 DISTNAME=      SDL-1.0-english-intro
@@ -11,6 +11,8 @@
 HOMEPAGE=      http://www.libsdl.org/docs.php
 COMMENT=       Simple DirectMedia Layer introduction (English)
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 WRKSRC=                ${WRKDIR}/intro.en
 DEST=          ${PREFIX}/share/doc/SDL-intro.en
 
@@ -22,8 +24,8 @@
        ${RM} ${WRKSRC}/index.html
 
 do-install:
-       ${INSTALL_DATA_DIR} ${DEST}
-       ${INSTALL_DATA} ${WRKSRC}/*.html ${DEST}
-       ${LN} -s ${DEST}/toc.html ${DEST}/index.html
+       ${INSTALL_DATA_DIR} ${DESTDIR}${DEST}
+       ${INSTALL_DATA} ${WRKSRC}/*.html ${DESTDIR}${DEST}
+       ${LN} -s toc.html ${DESTDIR}${DEST}/index.html
 
 .include "../../mk/bsd.pkg.mk"
diff -r aa383733fa8c -r 71975aec0f24 devel/SDL-intro-ko/Makefile
--- a/devel/SDL-intro-ko/Makefile       Mon Mar 03 17:11:19 2008 +0000
+++ b/devel/SDL-intro-ko/Makefile       Mon Mar 03 17:45:33 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/07/21 19:52:59 minskim Exp $
+# $NetBSD: Makefile,v 1.2 2008/03/03 17:45:33 jlam Exp $
 #
 
 DISTNAME=      SDL-1.0-korean-intro
@@ -10,6 +10,8 @@
 HOMEPAGE=      http://www.libsdl.org/docs.php
 COMMENT=       Simple DirectMedia Layer introduction (Korean)
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 WRKSRC=                ${WRKDIR}/intro.ko
 DEST=          ${PREFIX}/share/doc/SDL-intro.ko
 
@@ -21,8 +23,8 @@
        ${RM} ${WRKSRC}/index.html
 
 do-install:
-       ${INSTALL_DATA_DIR} ${DEST}
-       ${INSTALL_DATA} ${WRKSRC}/*.html ${DEST}
-       ${LN} -s ${DEST}/toc.html ${DEST}/index.html
+       ${INSTALL_DATA_DIR} ${DESTDIR}${DEST}
+       ${INSTALL_DATA} ${WRKSRC}/*.html ${DESTDIR}${DEST}
+       ${LN} -s toc.html ${DESTDIR}${DEST}/index.html
 
 .include "../../mk/bsd.pkg.mk"
diff -r aa383733fa8c -r 71975aec0f24 devel/ZenTest/Makefile
--- a/devel/ZenTest/Makefile    Mon Mar 03 17:11:19 2008 +0000
+++ b/devel/ZenTest/Makefile    Mon Mar 03 17:45:33 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2008/02/26 08:00:39 seb Exp $
+# $NetBSD: Makefile,v 1.4 2008/03/03 17:45:33 jlam Exp $
 
 DISTNAME=      ZenTest-3.9.1
 CATEGORIES=    devel ruby
@@ -10,6 +10,8 @@
 HOMEPAGE=      http://zentest.rubyforge.org/
 COMMENT=       Testing utilities for Ruby
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 NO_BUILD=      yes
 USE_LANGUAGES= # none
 
@@ -20,14 +22,16 @@
 .include "../../lang/ruby/modules.mk"
 
 do-install:
-       ${INSTALL_SCRIPT} ${WRKSRC}/bin/* ${PREFIX}/bin
-       cd ${WRKSRC}/lib && pax -rwppm . ${RUBY_SITELIBDIR}
-       chmod ${SHAREMODE} ${RUBY_SITELIBDIR}/autotest.rb
-       ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/${PKGBASE}
+       ${INSTALL_SCRIPT} ${WRKSRC}/bin/* ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_LIB_DIR} ${DESTDIR}${RUBY_SITELIBDIR}
+       cd ${WRKSRC}/lib && pax -rwppm . ${DESTDIR}${RUBY_SITELIBDIR}
+       chmod ${SHAREMODE} ${DESTDIR}${RUBY_SITELIBDIR}/autotest.rb
+       ${INSTALL_DATA_DIR} ${DESTDIR}${RUBY_DOCDIR}/${PKGBASE}
 .for f in articles README.txt
-       cd ${WRKSRC} && pax -rwppm ${f} ${RUBY_DOCDIR}/${PKGBASE}
+       cd ${WRKSRC} && pax -rwppm ${f} ${DESTDIR}${RUBY_DOCDIR}/${PKGBASE}
 .endfor
-       ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/${PKGBASE}
-       ${INSTALL_DATA} ${WRKSRC}/example* ${RUBY_EXAMPLESDIR}/${PKGBASE}
+       ${INSTALL_DATA_DIR} ${DESTDIR}${RUBY_EXAMPLESDIR}/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/example* \
+               ${DESTDIR}${RUBY_EXAMPLESDIR}/${PKGBASE}
 
 .include "../../mk/bsd.pkg.mk"
diff -r aa383733fa8c -r 71975aec0f24 devel/acme/Makefile
--- a/devel/acme/Makefile       Mon Mar 03 17:11:19 2008 +0000
+++ b/devel/acme/Makefile       Mon Mar 03 17:45:33 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2006/06/30 07:11:00 joerg Exp $
+# $NetBSD: Makefile,v 1.11 2008/03/03 17:45:33 jlam Exp $
 #
 
 DISTNAME=      acme085_linux
@@ -12,6 +12,8 @@
 HOMEPAGE=      http://www.esw-heim.tu-clausthal.de/~marco/smorbrod/acme/acme.html
 COMMENT=       Cross assembler for 6502, 65c02, and 65816
 
+PKG_DESTDIR_SUPPORT=   destdir
+
 USE_TOOLS+=    unzip
 
 WRKSRC=                ${WRKTOP}/sources
@@ -28,11 +30,11 @@
        cd ${WRKDIR} && unzip -qa ${_DISTDIR}/${LIBDIST}
 
 do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/acme ${PREFIX}/bin/acme
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/acme
-       ${INSTALL_DATA} ${WRKTOP}/docs/* ${PREFIX}/share/doc/acme
-       ${INSTALL_DATA_DIR} ${ACME_LIB}
-       cd ${WRKDIR}/ACME_Lib && ${PAX} -rw . ${ACME_LIB}
-       ${CHOWN} -R ${ROOT_USER}:${ROOT_GROUP} ${ACME_LIB}
+       ${INSTALL_PROGRAM} ${WRKSRC}/acme ${DESTDIR}${PREFIX}/bin/acme
+       ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/acme
+       ${INSTALL_DATA} ${WRKTOP}/docs/* ${DESTDIR}${PREFIX}/share/doc/acme
+       ${INSTALL_DATA_DIR} ${DESTDIR}${ACME_LIB}
+       cd ${WRKDIR}/ACME_Lib && ${PAX} -rw . ${DESTDIR}${ACME_LIB}
+       ${CHOWN} -R ${ROOT_USER}:${ROOT_GROUP} ${DESTDIR}${ACME_LIB}
 
 .include "../../mk/bsd.pkg.mk"
diff -r aa383733fa8c -r 71975aec0f24 devel/acunia-jam/Makefile
--- a/devel/acunia-jam/Makefile Mon Mar 03 17:11:19 2008 +0000
+++ b/devel/acunia-jam/Makefile Mon Mar 03 17:45:33 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2006/07/29 05:23:35 minskim Exp $
+# $NetBSD: Makefile,v 1.13 2008/03/03 17:45:34 jlam Exp $
 #
 
 DISTNAME=      acunia-jam-1.0
@@ -13,6 +13,7 @@
 CONFLICTS=     jam-[0-9]*
 
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
+PKG_DESTDIR_SUPPORT=   user-destdir
 
 WRKSRC=                ${WRKDIR}/jam
 USE_TOOLS+=    yacc
@@ -24,15 +25,17 @@
 
 do-install:
        for file in jam mkjambase; do \
-               ${INSTALL_PROGRAM} ${WRKSRC}/bin.*/$${file} ${PREFIX}/bin; \
+               ${INSTALL_PROGRAM} ${WRKSRC}/bin.*/$${file} \
+                       ${DESTDIR}${PREFIX}/bin; \
        done
-       ${INSTALL_DATA_DIR} ${PREFIX}/${DOCDIR}
+       ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/${DOCDIR}
        for file in Porting README RELNOTES; do \
-               ${INSTALL_DATA} ${WRKSRC}/$${file} ${PREFIX}/${DOCDIR}; \
+               ${INSTALL_DATA} ${WRKSRC}/$${file} \
+                       ${DESTDIR}${PREFIX}/${DOCDIR}; \
        done
-       ${INSTALL_DATA_DIR} ${PREFIX}/${HTMLDIR}
+       ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/${HTMLDIR}
        for file in ${WRKSRC}/*.html; do \
-               ${INSTALL_DATA} $${file} ${PREFIX}/${HTMLDIR}; \
+               ${INSTALL_DATA} $${file} ${DESTDIR}${PREFIX}/${HTMLDIR}; \
        done
 
 .include "../../mk/bsd.pkg.mk"
diff -r aa383733fa8c -r 71975aec0f24 devel/adocman/Makefile
--- a/devel/adocman/Makefile    Mon Mar 03 17:11:19 2008 +0000
+++ b/devel/adocman/Makefile    Mon Mar 03 17:45:33 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2006/03/04 21:29:12 jlam Exp $
+# $NetBSD: Makefile,v 1.15 2008/03/03 17:45:34 jlam Exp $
 #
 
 DISTNAME=      adocman-0.10
@@ -13,6 +13,8 @@
 DEPENDS+=      p5-Term-ReadKey>=2.21:../../devel/p5-Term-ReadKey
 DEPENDS+=      p5-Crypt-SSLeay>=0.47:../../security/p5-Crypt-SSLeay
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 NO_BUILD=              yes
 PERL5_CONFIGURE=       no
 REPLACE_PERL=          adocman xml_export
@@ -20,15 +22,17 @@
 INSTALLATION_DIRS=     bin
 
 do-install:
-       ${INSTALL_SCRIPT} ${WRKSRC}/adocman ${PREFIX}/bin
-       ${INSTALL_SCRIPT} ${WRKSRC}/xml_export ${PREFIX}/bin
-       ${INSTALL_SCRIPT_DIR} ${PERL5_INSTALLVENDORLIB}/Alexandria
+       ${INSTALL_SCRIPT} ${WRKSRC}/adocman ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_SCRIPT} ${WRKSRC}/xml_export ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_SCRIPT_DIR} ${DESTDIR}${PERL5_INSTALLVENDORLIB}/Alexandria
 .for f in Client.pm Docman.pm
-       ${INSTALL_SCRIPT} ${WRKSRC}/Alexandria/${f} ${PERL5_INSTALLVENDORLIB}/Alexandria
+       ${INSTALL_SCRIPT} ${WRKSRC}/Alexandria/${f} \
+               ${DESTDIR}${PERL5_INSTALLVENDORLIB}/Alexandria
 .endfor
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/adocman
+       ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/html/adocman
 .for f in LICENSE README TODO adocman.html xml_export.html
-       ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/html/adocman
+       ${INSTALL_DATA} ${WRKSRC}/${f} \
+               ${DESTDIR}${PREFIX}/share/doc/html/adocman
 .endfor
 
 .include "../../lang/perl5/module.mk"
diff -r aa383733fa8c -r 71975aec0f24 devel/apache-ant/Makefile
--- a/devel/apache-ant/Makefile Mon Mar 03 17:11:19 2008 +0000
+++ b/devel/apache-ant/Makefile Mon Mar 03 17:45:33 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2007/02/15 14:20:54 rillig Exp $
+# $NetBSD: Makefile,v 1.23 2008/03/03 17:45:34 jlam Exp $
 #
 
 DISTNAME=      apache-ant-1.7.0
@@ -14,6 +14,8 @@
 # Up to version 1.5.1 inclusive this was known as "jakarta-ant".
 CONFLICTS=     jakarta-ant>=0
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 USE_JAVA=      run
 USE_JAVA2=     yes
 NO_BUILD=      yes
@@ -27,15 +29,15 @@
 INSTALLATION_DIRS=     bin lib/java/ant share/doc/java/ant
 
 do-install:
-       ${INSTALL_SCRIPT} ${WRKSRC}/bin/ant ${PREFIX}/bin
-       ${INSTALL_SCRIPT} ${WRKSRC}/bin/antRun ${PREFIX}/bin
-       ${INSTALL_DATA} ${WRKSRC}/lib/ant.jar ${PREFIX}/lib/java/ant
-       ${INSTALL_DATA} ${WRKSRC}/lib/ant-*.jar ${PREFIX}/lib/java/ant
-       ${INSTALL_DATA} ${WRKSRC}/lib/xercesImpl.jar ${PREFIX}/lib/java/ant
-       ${INSTALL_DATA} ${WRKSRC}/lib/xml-apis.jar ${PREFIX}/lib/java/ant
-       cd ${WRKSRC}/docs && pax -rw -pmp * ${PREFIX}/share/doc/java/ant
-       ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/java/ant
-       ${INSTALL_DATA} ${WRKSRC}/WHATSNEW ${PREFIX}/share/doc/java/ant
+       ${INSTALL_SCRIPT} ${WRKSRC}/bin/ant ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_SCRIPT} ${WRKSRC}/bin/antRun ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_DATA} ${WRKSRC}/lib/ant.jar ${DESTDIR}${PREFIX}/lib/java/ant
+       ${INSTALL_DATA} ${WRKSRC}/lib/ant-*.jar ${DESTDIR}${PREFIX}/lib/java/ant
+       ${INSTALL_DATA} ${WRKSRC}/lib/xercesImpl.jar ${DESTDIR}${PREFIX}/lib/java/ant



Home | Main Index | Thread Index | Old Index