diff options
author | taca <taca> | 2004-03-11 16:32:03 +0000 |
---|---|---|
committer | taca <taca> | 2004-03-11 16:32:03 +0000 |
commit | 07d576124c52e1ead1993a0c782c0e7ae9fad96f (patch) | |
tree | 2cee34b406af0a2e1ed180450e3ebe4b3b13e051 /www/ap-ruby/Makefile | |
parent | e7591023684066f1210309e6fa9135735da0476c (diff) | |
download | pkgsrc-07d576124c52e1ead1993a0c782c0e7ae9fad96f.tar.gz |
Update ap-ruby package to 1.0.7 based on PR pkg/24545 from
Rasputin (rasputin at idoru dot mine dot nu).
- stop modifying httpd.conf with apxs.
- install HTML document, too.
- honor PKG_SYSCONFVAR.
Since changes from 0.9.7 are to many, please look into ChangeLog file.
Diffstat (limited to 'www/ap-ruby/Makefile')
-rw-r--r-- | www/ap-ruby/Makefile | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/www/ap-ruby/Makefile b/www/ap-ruby/Makefile index f17d82ccd44..05392899004 100644 --- a/www/ap-ruby/Makefile +++ b/www/ap-ruby/Makefile @@ -1,9 +1,8 @@ -# $NetBSD: Makefile,v 1.13 2003/07/17 22:55:27 grant Exp $ +# $NetBSD: Makefile,v 1.14 2004/03/11 16:32:03 taca Exp $ # DISTNAME= mod_ruby-${VERSION} PKGNAME= ap-${RUBY_PKGNAMEPREFIX}${VERSION} -PKGREVISION= 1 CATEGORIES= www MASTER_SITES= http://www.modruby.net/archive/ @@ -16,7 +15,7 @@ USE_PKGINSTALL= YES DIST_SUBDIR= ruby USE_RUBY= YES RUBY_REQD= 1.6 -VERSION= 0.9.7 +VERSION= 1.0.7 HAS_CONFIGURE= yes CONFIGURE_SCRIPT= ./configure.rb @@ -25,25 +24,38 @@ CONFIGURE_ARGS= --with-apxs="${APXS}" \ --with-eruby-libraries="${BUILDLINK_PREFIX.ruby-eruby}/lib" INSTALL_TARGET= site-install -CONF_FILES= ${RUBY_EXAMPLESDIR}/mod_ruby/mod_ruby.conf \ - ${LOCALBASE}/etc/httpd/mod_ruby.conf FILES_SUBST+= RUBY_DOCDIR=${RUBY_DOCDIR} FILES_SUBST+= RUBY_EXAMPLESDIR=${RUBY_EXAMPLESDIR} +MESSAGE_SUBST+= RUBY_DOCDIR=${RUBY_DOCDIR} DOCS= ChangeLog README.en README.ja +HTMLDOCS= classes.en.html directives.en.html faq.en.html \ + index.en.html install.en.html \ + classes.ja.jis.html directives.ja.jis.html faq.ja.jis.html \ + index.ja.jis.html install.ja.jis.html + +.include "../../mk/bsd.prefs.mk" + +PKG_SYSCONFVAR= apache +PKG_SYSCONFSUBDIR?= httpd +CONF_FILES+= ${RUBY_EXAMPLESDIR}/mod_ruby/mod_ruby.conf \ + ${PKG_SYSCONFDIR}/mod_ruby.conf post-build: + cd ${WRKSRC}/doc; ${MAKE} ${SED} -e 's|/usr/local/apache/libexec|${LOCALBASE}/lib/httpd|g' \ ${WRKSRC}/examples/httpd.conf > ${WRKDIR}/mod_ruby.conf post-install: - ${APXS} -i -A -n ruby ${WRKSRC}/mod_ruby.so - ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/mod_ruby - ${INSTALL_DATA} ${WRKDIR}/mod_ruby.conf ${RUBY_EXAMPLESDIR}/mod_ruby ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/mod_ruby .for f in ${DOCS} ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/mod_ruby .endfor +.for f in ${HTMLDOCS} + ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${RUBY_DOCDIR}/mod_ruby +.endfor + ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/mod_ruby + ${INSTALL_DATA} ${WRKDIR}/mod_ruby.conf ${RUBY_EXAMPLESDIR}/mod_ruby .include "../../lang/ruby-base/Makefile.common" .include "../../lang/ruby-base/buildlink2.mk" |