diff options
author | joerg <joerg> | 2008-06-12 02:14:13 +0000 |
---|---|---|
committer | joerg <joerg> | 2008-06-12 02:14:13 +0000 |
commit | 39d7fb93432416d872ed34e0025741cc93068c06 (patch) | |
tree | c12b9c282e2706cb6bac87456615dfdf2b256e55 /www/ap-ruby/Makefile | |
parent | cce8b72ae5b66d3a54ac565ef8ac6780597301bc (diff) | |
download | pkgsrc-39d7fb93432416d872ed34e0025741cc93068c06.tar.gz |
Add DESTDIR support.
Diffstat (limited to 'www/ap-ruby/Makefile')
-rw-r--r-- | www/ap-ruby/Makefile | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/www/ap-ruby/Makefile b/www/ap-ruby/Makefile index de16c432056..faa79663680 100644 --- a/www/ap-ruby/Makefile +++ b/www/ap-ruby/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.32 2007/05/29 22:41:46 schmonz Exp $ +# $NetBSD: Makefile,v 1.33 2008/06/12 02:14:54 joerg Exp $ # DISTNAME= mod_ruby-${VERSION} @@ -10,6 +10,8 @@ MAINTAINER= taca@NetBSD.org HOMEPAGE= http://www.modruby.net/ COMMENT= Apache module that embeds Ruby interpreter within +PKG_DESTDIR_SUPPORT= user-destdir + RUBY_HAS_ARCHLIB= yes APACHE_MODULE= yes PKG_APACHE_ACCEPTED= apache13 apache2 apache22 @@ -17,6 +19,7 @@ USE_APR= yes VERSION= 1.2.6 HAS_CONFIGURE= yes INSTALL_TARGET= site-install +INSTALLATION_DIRS= ${RUBY_DOCDIR}/mod_ruby/html ${RUBY_EXAMPLESDIR}/mod_ruby CONFIG_SHELL= ${RUBY} CONFIGURE_SCRIPT= configure.rb CONFIGURE_ARGS+= --with-apxs=${APXS:Q} @@ -24,6 +27,7 @@ MESSAGE_SUBST+= RUBY_DOCDIR=${RUBY_DOCDIR} DOCS= ChangeLog NOTICE README.en README.ja REPLACE_RUBY+= configure.rb install-rb + .include "../../mk/bsd.prefs.mk" PKG_SYSCONFVAR= apache @@ -37,15 +41,13 @@ post-build: ${WRKSRC}/examples/httpd.conf > ${WRKDIR}/mod_ruby.conf post-install: - ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/mod_ruby/html .for f in ${DOCS} - ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/mod_ruby + ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${RUBY_DOCDIR}/mod_ruby .endfor - ${INSTALL_DATA} ${WRKSRC}/doc/*.rd ${RUBY_DOCDIR}/mod_ruby - ${INSTALL_DATA} ${WRKSRC}/doc/*.css ${RUBY_DOCDIR}/mod_ruby/html - ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${RUBY_DOCDIR}/mod_ruby/html - ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/mod_ruby - ${INSTALL_DATA} ${WRKDIR}/mod_ruby.conf ${RUBY_EXAMPLESDIR}/mod_ruby + ${INSTALL_DATA} ${WRKSRC}/doc/*.rd ${DESTDIR}${RUBY_DOCDIR}/mod_ruby + ${INSTALL_DATA} ${WRKSRC}/doc/*.css ${DESTDIR}${RUBY_DOCDIR}/mod_ruby/html + ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DESTDIR}${RUBY_DOCDIR}/mod_ruby/html + ${INSTALL_DATA} ${WRKDIR}/mod_ruby.conf ${DESTDIR}${RUBY_EXAMPLESDIR}/mod_ruby .include "../../lang/ruby/modules.mk" .include "../../textproc/ruby-eruby/buildlink3.mk" |