2004-11-28 05:54:36 +01:00
|
|
|
# $NetBSD: Makefile,v 1.18 2004/11/28 04:54:36 taca Exp $
|
2002-10-25 14:58:27 +02:00
|
|
|
#
|
2001-07-01 16:13:48 +02:00
|
|
|
|
|
|
|
DISTNAME= mod_ruby-${VERSION}
|
2004-11-28 05:54:36 +01:00
|
|
|
PKGNAME= ap-${RUBY_PKGPREFIX}-${VERSION}
|
2004-03-16 03:01:09 +01:00
|
|
|
CATEGORIES= www ruby
|
2001-07-01 16:13:48 +02:00
|
|
|
MASTER_SITES= http://www.modruby.net/archive/
|
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= taca@NetBSD.org
|
2001-07-01 16:13:48 +02:00
|
|
|
HOMEPAGE= http://www.modruby.net/
|
|
|
|
COMMENT= Apache module that embeds Ruby interpreter within
|
|
|
|
|
2004-11-28 05:54:36 +01:00
|
|
|
CONFLICTS+= ap2-ruby*
|
|
|
|
|
|
|
|
USE_BUILDLINK3= yes
|
|
|
|
USE_PKGINSTALL= yes
|
|
|
|
APACHE_MODULE= yes
|
|
|
|
VERSION= 1.0.7
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
INSTALL_TARGET= site-install
|
|
|
|
CONFIGURE_SCRIPT= ${RUBY} configure.rb
|
|
|
|
CONFIGURE_ARGS= --with-apxs="${APXS}" \
|
|
|
|
--with-eruby-includes="${BUILDLINK_PREFIX.ruby-eruby}/include" \
|
|
|
|
--with-eruby-libraries="${BUILDLINK_PREFIX.ruby-eruby}/lib"
|
2004-03-11 17:32:03 +01:00
|
|
|
MESSAGE_SUBST+= RUBY_DOCDIR=${RUBY_DOCDIR}
|
2002-01-19 11:20:12 +01:00
|
|
|
DOCS= ChangeLog README.en README.ja
|
2004-03-11 17:32:03 +01:00
|
|
|
|
|
|
|
.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
|
2001-07-01 16:13:48 +02:00
|
|
|
|
|
|
|
post-build:
|
2004-03-11 17:32:03 +01:00
|
|
|
cd ${WRKSRC}/doc; ${MAKE}
|
2001-07-01 16:13:48 +02:00
|
|
|
${SED} -e 's|/usr/local/apache/libexec|${LOCALBASE}/lib/httpd|g' \
|
|
|
|
${WRKSRC}/examples/httpd.conf > ${WRKDIR}/mod_ruby.conf
|
|
|
|
|
2002-02-01 15:04:50 +01:00
|
|
|
post-install:
|
2004-11-28 05:54:36 +01:00
|
|
|
${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/mod_ruby/html
|
2002-01-19 11:20:12 +01:00
|
|
|
.for f in ${DOCS}
|
2001-07-01 16:13:48 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/mod_ruby
|
|
|
|
.endfor
|
2004-11-28 05:54:36 +01:00
|
|
|
${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
|
2004-03-11 17:32:03 +01:00
|
|
|
${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/mod_ruby
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/mod_ruby.conf ${RUBY_EXAMPLESDIR}/mod_ruby
|
2001-07-01 16:13:48 +02:00
|
|
|
|
2004-11-28 05:54:36 +01:00
|
|
|
.include "../../lang/ruby/modules.mk"
|
2004-05-05 01:46:36 +02:00
|
|
|
.include "../../textproc/ruby-eruby/buildlink3.mk"
|
2004-11-28 05:54:36 +01:00
|
|
|
.include "../../textproc/ruby-rdtool/buildlink3.mk"
|
2004-05-05 01:46:36 +02:00
|
|
|
.include "../../www/apache/buildlink3.mk"
|
2001-07-01 16:13:48 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|