summaryrefslogtreecommitdiff
path: root/databases/ruby-sqlite3
diff options
context:
space:
mode:
authorobache <obache>2008-02-08 15:13:54 +0000
committerobache <obache>2008-02-08 15:13:54 +0000
commit7ff47cbbc42fd7d2f6b33f3cd4d8ef620fa44ce3 (patch)
treed1a58f3d67a15be05bd43ca52290771e109d7645 /databases/ruby-sqlite3
parent070d906e74531fff4b1fd6c0cea6553aba40eb60 (diff)
downloadpkgsrc-7ff47cbbc42fd7d2f6b33f3cd4d8ef620fa44ce3.tar.gz
Add DESTDIR support.
Diffstat (limited to 'databases/ruby-sqlite3')
-rw-r--r--databases/ruby-sqlite3/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/databases/ruby-sqlite3/Makefile b/databases/ruby-sqlite3/Makefile
index 6335169c349..5e2fbf930cb 100644
--- a/databases/ruby-sqlite3/Makefile
+++ b/databases/ruby-sqlite3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2007/04/01 09:10:34 obache Exp $
+# $NetBSD: Makefile,v 1.5 2008/02/08 15:13:54 obache Exp $
DISTNAME= sqlite3-ruby-1.2.1
PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:S/-ruby//}
@@ -10,6 +10,8 @@ MAINTAINER= obache@NetBSD.org
HOMEPAGE= http://sqlite-ruby.rubyforge.org/
COMMENT= Ruby interface for the SQLite database engine
+PKG_DESTDIR_SUPPORT= user-destdir
+
RUBY_HAS_ARCHLIB= yes
USE_RUBY_SETUP= yes
@@ -19,11 +21,11 @@ DOCS= ChangeLog LICENSE README
.include "../../lang/ruby/modules.mk"
post-install:
- ${INSTALL_DATA_DIR} ${RUBY_DOCDIR:Q}/sqlite3/api
+ ${INSTALL_DATA_DIR} ${DESTDIR}${RUBY_DOCDIR:Q}/sqlite3/api
.for f in ${DOCS}
- ${INSTALL_DATA} ${WRKSRC:Q}/${f:Q} ${RUBY_DOCDIR:Q}/sqlite3/
+ ${INSTALL_DATA} ${WRKSRC:Q}/${f:Q} ${DESTDIR}${RUBY_DOCDIR:Q}/sqlite3/
.endfor
- cd ${WRKSRC:Q}/doc && ${PAX} -rw -pp * ${RUBY_DOCDIR:Q}/sqlite3
- cd ${WRKSRC:Q}/api && ${PAX} -rw -pp * ${RUBY_DOCDIR:Q}/sqlite3/api
+ cd ${WRKSRC:Q}/doc && ${PAX} -rw -pp * ${DESTDIR}${RUBY_DOCDIR:Q}/sqlite3
+ cd ${WRKSRC:Q}/api && ${PAX} -rw -pp * ${DESTDIR}${RUBY_DOCDIR:Q}/sqlite3/api
.include "../../mk/bsd.pkg.mk"