pkgsrc/www/ap-ruby/Makefile

56 lines
1.7 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.18 2004/11/28 04:54:36 taca Exp $
2002-10-25 14:58:27 +02:00
#
DISTNAME= mod_ruby-${VERSION}
PKGNAME= ap-${RUBY_PKGPREFIX}-${VERSION}
2004-03-16 03:01:09 +01:00
CATEGORIES= www ruby
MASTER_SITES= http://www.modruby.net/archive/
2003-07-18 00:50:55 +02:00
MAINTAINER= taca@NetBSD.org
HOMEPAGE= http://www.modruby.net/
COMMENT= Apache module that embeds Ruby interpreter within
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"
MESSAGE_SUBST+= RUBY_DOCDIR=${RUBY_DOCDIR}
Update ap-ruby package (mod_ruby) to 0.9.5. Quote from ChangeLog is below. Thu Dec 27 15:27:02 2001 Shugo Maeda <shugo@modruby.net> * version 0.9.5 released. Mon Dec 17 16:29:30 2001 Shugo Maeda <shugo@modruby.net> * mod_ruby.c (ruby_startup): save Apache's signal handlers. Tue Oct 30 14:56:22 2001 Neil Conway <nconway@klamath.dyndns.org> * connection.c (connection_aborted): new method. Wed Oct 17 15:03:34 2001 Shugo Maeda <shugo@modruby.net> * version 0.9.4 released. Mon Oct 15 12:25:28 2001 Shugo Maeda <shugo@modruby.net> * mod_ruby.c (ruby_startup): call Init_stack(). * request.c (cleanup_request_object): free RDATA(reqobj)->data. * request.c (request_headers_in): allow non-auth handlers to access Authorization header fields. * request.c (request_get_basic_auth_pw): allow non-auth handlers. Fri Oct 12 17:48:57 2001 Shugo Maeda <shugo@modruby.net> * apachelib.h (DEFINE_ATTR_READER): raise exception if data == NULL. * apachelib.h (DEFINE_ATTR_WRITER): ditto. * mod_ruby.c (per_request_cleanup): set r->main to rb_request if r is a sub_request. * request.c (request_mark): return immediately if data == NULL. Fri Oct 12 12:35:12 2001 Miles Egan <miles@pixar.com> * configure.rb.in: chomp output of apxs. Wed Oct 10 12:15:16 2001 Shugo Maeda <shugo@modruby.net> * ruby_config.c (ruby_cmd_output_mode): new directive RubyOutputMode. * request.c (apache_request_new): save request objects to r->request_config. * request.c (cleanup_request_object): new function. Thu Aug 30 18:28:46 2001 Sean Chittenden <sean-apache-modruby@chittenden.org> * request.c (rb_apache_request_flush): call ap_rflush(). * request.c: allow the path_info for the request to be changed. Fri Aug 24 11:24:38 2001 Shugo Maeda <shugo@modruby.net> * version 0.9.3 released. Fri Aug 24 11:20:56 2001 Shugo Maeda <shugo@modruby.net> * lib/apache/eruby-run.rb (postrun): do not overwrite r.content_type. Thu Aug 23 19:59:41 2001 Shugo Maeda <shugo@modruby.net> * mod_ruby.c (ruby_require): handle SystemExit correctly. Mon Aug 20 15:22:10 2001 Shugo Maeda <shugo@modruby.net> * request.c (request_method_number): new method. * apachelib.c: new constants M_GET, M_PUT, .... Tue Aug 14 14:58:56 2001 Shugo Maeda <shugo@modruby.net> * configure.rb: rebuild with autoconf.rb 0.2.3 for Solaris. Mon Aug 13 11:25:13 2001 Shugo Maeda <shugo@modruby.net> * version 0.9.2 released. Sun Aug 12 18:19:51 2001 Shugo Maeda <shugo@modruby.net> * mod_ruby.c (ruby_require): initialize $:. Mon Aug 6 14:38:39 2001 Shugo Maeda <shugo@modruby.net> * version 0.9.1 released. Mon Aug 6 14:36:20 2001 Shugo Maeda <shugo@modruby.net> * changed license for Apache. Mon Aug 6 14:09:20 2001 Shugo Maeda <shugo@modruby.net> * mod_ruby.c (ruby_handler): flush rb_request only in RubyHandler. * server.c (server_document_root): new method. Thanks to Sean Chittenden. Sat Jul 28 19:16:44 2001 Shugo Maeda <shugo@modruby.net> * mod_ruby.c (ruby_trans_handler): renamed translate_uri2file to translate_uri. Fri Jul 27 13:44:14 2001 Shugo Maeda <shugo@modruby.net> * mod_ruby.c (per_request_cleanup): do not restore rb_stdout. Mon Jul 23 11:16:05 2001 Aristarkh A Zagorodnikov <xm@w3d.ru> * request.c (request_the_request): new method. Fri Jul 6 14:26:34 2001 Shugo Maeda <shugo@modruby.net> * version 0.9.0 released. Mon Jul 2 15:26:47 2001 Shugo Maeda <shugo@modruby.net> * request.c (request_sent_http_header): new method. Mon Jul 2 12:42:54 2001 Shugo Maeda <shugo@modruby.net> * request.c (request_set_content_type): accept nil. * request.c (request_set_content_encoding): ditto. * request.c (request_set_content_languages): ditto. Fri Jun 29 16:05:06 2001 Shugo Maeda <shugo@modruby.net> * mod_ruby.c (per_request_init): set rb_stdin, rb_stdout, rb_defout to rb_request. * mod_ruby.c (per_request_cleanup): flush rb_request. * request.c (request_output_buffer): new method. * lib/apache/cgi-support.rb: removed. * lib/apache/eruby-run.rb: use tempfile. * lib/apache/erb-run.rb: ditto.
2002-01-19 11:20:12 +01:00
DOCS= ChangeLog README.en README.ja
.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
Update ap-ruby package (mod_ruby) to 0.9.5. Quote from ChangeLog is below. Thu Dec 27 15:27:02 2001 Shugo Maeda <shugo@modruby.net> * version 0.9.5 released. Mon Dec 17 16:29:30 2001 Shugo Maeda <shugo@modruby.net> * mod_ruby.c (ruby_startup): save Apache's signal handlers. Tue Oct 30 14:56:22 2001 Neil Conway <nconway@klamath.dyndns.org> * connection.c (connection_aborted): new method. Wed Oct 17 15:03:34 2001 Shugo Maeda <shugo@modruby.net> * version 0.9.4 released. Mon Oct 15 12:25:28 2001 Shugo Maeda <shugo@modruby.net> * mod_ruby.c (ruby_startup): call Init_stack(). * request.c (cleanup_request_object): free RDATA(reqobj)->data. * request.c (request_headers_in): allow non-auth handlers to access Authorization header fields. * request.c (request_get_basic_auth_pw): allow non-auth handlers. Fri Oct 12 17:48:57 2001 Shugo Maeda <shugo@modruby.net> * apachelib.h (DEFINE_ATTR_READER): raise exception if data == NULL. * apachelib.h (DEFINE_ATTR_WRITER): ditto. * mod_ruby.c (per_request_cleanup): set r->main to rb_request if r is a sub_request. * request.c (request_mark): return immediately if data == NULL. Fri Oct 12 12:35:12 2001 Miles Egan <miles@pixar.com> * configure.rb.in: chomp output of apxs. Wed Oct 10 12:15:16 2001 Shugo Maeda <shugo@modruby.net> * ruby_config.c (ruby_cmd_output_mode): new directive RubyOutputMode. * request.c (apache_request_new): save request objects to r->request_config. * request.c (cleanup_request_object): new function. Thu Aug 30 18:28:46 2001 Sean Chittenden <sean-apache-modruby@chittenden.org> * request.c (rb_apache_request_flush): call ap_rflush(). * request.c: allow the path_info for the request to be changed. Fri Aug 24 11:24:38 2001 Shugo Maeda <shugo@modruby.net> * version 0.9.3 released. Fri Aug 24 11:20:56 2001 Shugo Maeda <shugo@modruby.net> * lib/apache/eruby-run.rb (postrun): do not overwrite r.content_type. Thu Aug 23 19:59:41 2001 Shugo Maeda <shugo@modruby.net> * mod_ruby.c (ruby_require): handle SystemExit correctly. Mon Aug 20 15:22:10 2001 Shugo Maeda <shugo@modruby.net> * request.c (request_method_number): new method. * apachelib.c: new constants M_GET, M_PUT, .... Tue Aug 14 14:58:56 2001 Shugo Maeda <shugo@modruby.net> * configure.rb: rebuild with autoconf.rb 0.2.3 for Solaris. Mon Aug 13 11:25:13 2001 Shugo Maeda <shugo@modruby.net> * version 0.9.2 released. Sun Aug 12 18:19:51 2001 Shugo Maeda <shugo@modruby.net> * mod_ruby.c (ruby_require): initialize $:. Mon Aug 6 14:38:39 2001 Shugo Maeda <shugo@modruby.net> * version 0.9.1 released. Mon Aug 6 14:36:20 2001 Shugo Maeda <shugo@modruby.net> * changed license for Apache. Mon Aug 6 14:09:20 2001 Shugo Maeda <shugo@modruby.net> * mod_ruby.c (ruby_handler): flush rb_request only in RubyHandler. * server.c (server_document_root): new method. Thanks to Sean Chittenden. Sat Jul 28 19:16:44 2001 Shugo Maeda <shugo@modruby.net> * mod_ruby.c (ruby_trans_handler): renamed translate_uri2file to translate_uri. Fri Jul 27 13:44:14 2001 Shugo Maeda <shugo@modruby.net> * mod_ruby.c (per_request_cleanup): do not restore rb_stdout. Mon Jul 23 11:16:05 2001 Aristarkh A Zagorodnikov <xm@w3d.ru> * request.c (request_the_request): new method. Fri Jul 6 14:26:34 2001 Shugo Maeda <shugo@modruby.net> * version 0.9.0 released. Mon Jul 2 15:26:47 2001 Shugo Maeda <shugo@modruby.net> * request.c (request_sent_http_header): new method. Mon Jul 2 12:42:54 2001 Shugo Maeda <shugo@modruby.net> * request.c (request_set_content_type): accept nil. * request.c (request_set_content_encoding): ditto. * request.c (request_set_content_languages): ditto. Fri Jun 29 16:05:06 2001 Shugo Maeda <shugo@modruby.net> * mod_ruby.c (per_request_init): set rb_stdin, rb_stdout, rb_defout to rb_request. * mod_ruby.c (per_request_cleanup): flush rb_request. * request.c (request_output_buffer): new method. * lib/apache/cgi-support.rb: removed. * lib/apache/eruby-run.rb: use tempfile. * lib/apache/erb-run.rb: ditto.
2002-01-19 11:20:12 +01:00
.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"
2004-05-05 01:46:36 +02:00
.include "../../textproc/ruby-eruby/buildlink3.mk"
.include "../../textproc/ruby-rdtool/buildlink3.mk"
2004-05-05 01:46:36 +02:00
.include "../../www/apache/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"