pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc Add DESTDIR support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7479d269e23f
branches:  trunk
changeset: 549198:7479d269e23f
user:      obache <obache%pkgsrc.org@localhost>
date:      Wed Oct 29 04:16:15 2008 +0000

description:
Add DESTDIR support.

diffstat:

 textproc/ruby-htree/Makefile   |  6 +++++-
 textproc/ruby-xmlscan/Makefile |  6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diffs (49 lines):

diff -r 2640392cd0a9 -r 7479d269e23f textproc/ruby-htree/Makefile
--- a/textproc/ruby-htree/Makefile      Wed Oct 29 02:39:52 2008 +0000
+++ b/textproc/ruby-htree/Makefile      Wed Oct 29 04:16:15 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2008/09/15 15:25:48 taca Exp $
+# $NetBSD: Makefile,v 1.4 2008/10/29 04:17:18 obache Exp $
 
 DISTNAME=      htree-0.7
 PKGNAME=       ${RUBY_PKGPREFIX}-${DISTNAME}
@@ -9,8 +9,12 @@
 HOMEPAGE=      http://www.a-k-r.org/htree/
 COMMENT=       Tree data structure which represent HTML and XML data for Ruby
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 NO_BUILD=              yes
 USE_RUBY_INSTALL=      yes
 
+INSTALL_TARGET=                install --destdir=${DESTDIR}
+
 .include "../../lang/ruby/modules.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 2640392cd0a9 -r 7479d269e23f textproc/ruby-xmlscan/Makefile
--- a/textproc/ruby-xmlscan/Makefile    Wed Oct 29 02:39:52 2008 +0000
+++ b/textproc/ruby-xmlscan/Makefile    Wed Oct 29 04:16:15 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2008/06/19 14:58:13 taca Exp $
+# $NetBSD: Makefile,v 1.6 2008/10/29 04:16:15 obache Exp $
 #
 
 DISTNAME=      xmlscan-${VER}
@@ -11,6 +11,8 @@
 HOMEPAGE=      http://www.blue.sky.or.jp/atelier/ruby/xmlscan/
 COMMENT=       Pure Ruby XML parser
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 VER=           0.2.3
 
 NO_BUILD=              yes
@@ -24,6 +26,8 @@
 REPLACE_RUBY=  samples/getxmlchar.rb samples/xmlbench.rb \
                samples/xmlconftest.rb
 
+INSTALL_TARGET=        install --destdir=${DESTDIR}${PREFIX}/${RUBY_VENDORLIB}
+
 post-install:
 .for f in ${DOCS}
        ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${RUBY_DOC}/xmlscan



Home | Main Index | Thread Index | Old Index