summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobache <obache>2008-10-29 04:16:15 +0000
committerobache <obache>2008-10-29 04:16:15 +0000
commit1768af45551abf4b594c7aaad838d46c9e6e0d68 (patch)
treeb1d8b046e3404c6db6459a815b19795560dfd1b3
parent21c871e48adab4424d4b73783ed6ec76f697489e (diff)
downloadpkgsrc-1768af45551abf4b594c7aaad838d46c9e6e0d68.tar.gz
Add DESTDIR support.
-rw-r--r--textproc/ruby-htree/Makefile6
-rw-r--r--textproc/ruby-xmlscan/Makefile6
2 files changed, 10 insertions, 2 deletions
diff --git a/textproc/ruby-htree/Makefile b/textproc/ruby-htree/Makefile
index 7ead784e077..e5f5bb27e60 100644
--- a/textproc/ruby-htree/Makefile
+++ b/textproc/ruby-htree/Makefile
@@ -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 @@ MAINTAINER= obache@NetBSD.org
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 --git a/textproc/ruby-xmlscan/Makefile b/textproc/ruby-xmlscan/Makefile
index 2cbb3ca5bde..3aa3f41a22a 100644
--- a/textproc/ruby-xmlscan/Makefile
+++ b/textproc/ruby-xmlscan/Makefile
@@ -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 @@ MAINTAINER= obache@NetBSD.org
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 @@ DOCS= ChangeLog README THANKS
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