summaryrefslogtreecommitdiff
path: root/devel/ruby-bsearch
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-03 17:45:33 +0000
committerjlam <jlam>2008-03-03 17:45:33 +0000
commit7a1142123798f48c48fc2d1fe38690a6b94d1df7 (patch)
tree620d08cc8bf79f9bacb7746632192670c7d6350d /devel/ruby-bsearch
parente629efdae96bb93a089e74409a36149a86e10f81 (diff)
downloadpkgsrc-7a1142123798f48c48fc2d1fe38690a6b94d1df7.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'devel/ruby-bsearch')
-rw-r--r--devel/ruby-bsearch/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/devel/ruby-bsearch/Makefile b/devel/ruby-bsearch/Makefile
index 7b748b31b59..b3cde99fe10 100644
--- a/devel/ruby-bsearch/Makefile
+++ b/devel/ruby-bsearch/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2006/10/04 21:36:00 wiz Exp $
+# $NetBSD: Makefile,v 1.16 2008/03/03 17:45:37 jlam Exp $
DISTNAME= ruby-bsearch-${VERSION}
PKGNAME= ${RUBY_PKGPREFIX}-bsearch-${VERSION}
@@ -10,6 +10,8 @@ MAINTAINER= taca@NetBSD.org
HOMEPAGE= http://0xcc.net/ruby-bsearch/
COMMENT= Binary search library for Ruby
+PKG_DESTDIR_SUPPORT= user-destdir
+
VERSION= 1.5
NO_CONFIGURE= yes
TEST_DIRS= ${WRKSRC}/tests
@@ -24,10 +26,11 @@ do-build:
.endfor
do-install:
- ${INSTALL_DATA} ${WRKSRC}/bsearch.rb ${RUBY_SITELIBDIR}/bsearch.rb
- ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/bsearch
+ ${INSTALL_LIB_DIR} ${DESTDIR}${RUBY_SITELIBDIR}
+ ${INSTALL_DATA} ${WRKSRC}/bsearch.rb ${DESTDIR}${RUBY_SITELIBDIR}/bsearch.rb
+ ${INSTALL_DATA_DIR} ${DESTDIR}${RUBY_DOCDIR}/bsearch
.for f in ${DOCS}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/bsearch
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${RUBY_DOCDIR}/bsearch
.endfor
.include "../../lang/ruby/modules.mk"