diff options
author | taca <taca@pkgsrc.org> | 2003-07-21 17:43:53 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2003-07-21 17:43:53 +0000 |
commit | f3b0ab76d90454a1834b38f0f9fdf255fe8a0a40 (patch) | |
tree | b1ebe65986465a3c15fa834655e0356cb1a8cf0f /www/ap2-ruby/Makefile | |
parent | a09b0ac07f4250b32d2c0fb846b946346beab26a (diff) | |
download | pkgsrc-f3b0ab76d90454a1834b38f0f9fdf255fe8a0a40.tar.gz |
Importing www/ap2-ruby 1.1.1 pacakge based on PR pkg/21921.
mod_ruby embeds the Ruby interpreter into the Apache web server,
allowing Ruby CGI scripts to be executed natively. These scripts will
start up much faster than without mod_ruby.
This package is the development version, which supports apache2 under
the prefork and threaded MVM. For Apache 1.3.XX, see www/ap-ruby.
Diffstat (limited to 'www/ap2-ruby/Makefile')
-rw-r--r-- | www/ap2-ruby/Makefile | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/www/ap2-ruby/Makefile b/www/ap2-ruby/Makefile new file mode 100644 index 00000000000..a4db3f3806e --- /dev/null +++ b/www/ap2-ruby/Makefile @@ -0,0 +1,46 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/07/21 17:43:53 taca Exp $ + +DISTNAME= mod_ruby-${VERSION} +PKGNAME= ap2-${RUBY_PKGNAMEPREFIX}${VERSION} +CATEGORIES= www +MASTER_SITES= http://www.modruby.net/archive/ + +MAINTAINER= rasputin@idoru.mine.nu +HOMEPAGE= http://www.modruby.net/ +COMMENT= Embedded Ruby for Apache2 (development version) + +CONFLICTS+= ap-ruby + +USE_BUILDLINK2= YES +DIST_SUBDIR= ruby +USE_RUBY= YES +RUBY_REQD= 1.6 +VERSION= 1.1.1 + +HAS_CONFIGURE= yes +CONFIGURE_SCRIPT= ./configure.rb +CONFIGURE_ARGS= --with-apxs="${APXS}" \ + --with-eruby-includes="${BUILDLINK_PREFIX.ruby-eruby}/include" \ + --with-eruby-libraries="${BUILDLINK_PREFIX.ruby-eruby}/lib" +MAKE_FLAGS+= APACHE_INCLUDES='-I${PREFIX}/include/httpd \ + -I${PREFIX}/include/apr-0' + +post-build: + ${SED} -e 's|/usr/local/apache/libexec|${LOCALBASE}/lib/httpd|g' \ + ${WRKSRC}/examples/httpd.conf > ${WRKSRC}/examples/mod_ruby.conf + +post-install: + ${APXS} -i -A -n ruby ${WRKSRC}/mod_ruby.so + ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/mod_ruby + ${INSTALL_DATA} ${WRKSRC}/examples/mod_ruby.conf \ + ${RUBY_EXAMPLESDIR}/mod_ruby + ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/mod_ruby + ${INSTALL_DATA} ${WRKSRC}/doc/* ${RUBY_DOCDIR}/mod_ruby + +.include "../../lang/ruby-base/Makefile.common" +.include "../../lang/ruby-base/buildlink2.mk" +.include "../../textproc/ruby-eruby/buildlink2.mk" +.include "../../devel/apr/buildlink2.mk" +.include "../../www/apache2/buildlink2.mk" + +.include "../../mk/bsd.pkg.mk" |