pkgsrc/www/ap-ruby/Makefile
joerg 337c6b1297 Rename all PHP 4 packages to php4-*, all PHP 5 packages to php5-*,
all PEAR packages to php?-pear-* and all Apache packages to ap13-* or
ap2-* respectively. Add new variables to simplify the Makefile
handling. Add CONFLICTS on the old names. Reset revisions of bumped
packages. ap-php will now depend on the default Apache and PHP version.
All programs using it have an implicit option of the Apache version
as well.

OK from jlam@ and adrianp@.
2006-06-02 18:27:54 +00:00

53 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.29 2006/06/02 18:27:59 joerg Exp $
#
DISTNAME= mod_ruby-${VERSION}
PKGNAME= ap13-${RUBY_PKGPREFIX}-${VERSION}
CATEGORIES= www ruby
MASTER_SITES= http://www.modruby.net/archive/
MAINTAINER= taca@NetBSD.org
HOMEPAGE= http://www.modruby.net/
COMMENT= Apache module that embeds Ruby interpreter within
CONFLICTS= ap-ruby* ap2-ruby*
RUBY_HAS_ARCHLIB= yes
APACHE_MODULE= yes
VERSION= 1.2.4
HAS_CONFIGURE= yes
INSTALL_TARGET= site-install
CONFIGURE_SCRIPT= ${RUBY} configure.rb
CONFIGURE_ARGS+= --with-apxs=${APXS:Q}
MESSAGE_SUBST+= RUBY_DOCDIR=${RUBY_DOCDIR}
DOCS= ChangeLog NOTICE README.en README.ja
REPLACE_RUBY+= install-rb
.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:
${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/mod_ruby/html
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${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
.include "../../lang/ruby/modules.mk"
.include "../../textproc/ruby-eruby/buildlink3.mk"
.include "../../textproc/ruby-rdtool/buildlink3.mk"
.include "../../www/apache/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"