pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/databases/ruby-sqlite3 Add DESTDIR support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f8d6af713de4
branches:  trunk
changeset: 538446:f8d6af713de4
user:      obache <obache%pkgsrc.org@localhost>
date:      Fri Feb 08 15:13:54 2008 +0000

description:
Add DESTDIR support.

diffstat:

 databases/ruby-sqlite3/Makefile |  12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (34 lines):

diff -r 3d507ac10155 -r f8d6af713de4 databases/ruby-sqlite3/Makefile
--- a/databases/ruby-sqlite3/Makefile   Fri Feb 08 15:11:47 2008 +0000
+++ b/databases/ruby-sqlite3/Makefile   Fri Feb 08 15:13:54 2008 +0000
@@ -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 @@
 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 @@
 .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"



Home | Main Index | Thread Index | Old Index