2000-08-11 16:39:39 +00:00
|
|
|
# New ports collection makefile for: mod_ruby
|
|
|
|
# Date created: 12 Aug 2000
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mod_ruby
|
2003-02-19 09:31:10 +00:00
|
|
|
PORTVERSION= 1.0.5
|
2000-08-16 12:21:24 +00:00
|
|
|
CATEGORIES= www ruby
|
2000-12-11 19:54:50 +00:00
|
|
|
MASTER_SITES= http://www.modruby.net/archive/
|
2000-08-11 16:39:39 +00:00
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
2003-02-18 05:42:05 +00:00
|
|
|
COMMENT= An Apache module that embeds Ruby interpreter within
|
2000-08-11 16:39:39 +00:00
|
|
|
|
2002-09-03 08:12:21 +00:00
|
|
|
BUILD_DEPENDS= ${APXS}:${APACHE_PORT}
|
2003-01-01 16:30:22 +00:00
|
|
|
LIB_DEPENDS= eruby.10:${PORTSDIR}/textproc/eruby
|
2002-09-03 08:12:21 +00:00
|
|
|
RUN_DEPENDS= ${APXS}:${APACHE_PORT}
|
2000-09-07 07:44:38 +00:00
|
|
|
|
|
|
|
USE_RUBY= yes
|
2003-02-19 09:31:10 +00:00
|
|
|
USE_REINPLACE= yes
|
2000-08-11 16:39:39 +00:00
|
|
|
|
2002-07-12 05:00:41 +00:00
|
|
|
APXS?= ${LOCALBASE}/sbin/apxs
|
2002-09-03 08:12:21 +00:00
|
|
|
APACHE_PORT?= ${PORTSDIR}/www/apache13
|
2000-08-11 16:39:39 +00:00
|
|
|
|
2001-06-04 15:57:50 +00:00
|
|
|
CONFIGURE_ARGS= --with-apxs="${APXS}" \
|
2000-09-22 05:05:43 +00:00
|
|
|
--enable-eruby=yes \
|
2001-06-04 15:57:50 +00:00
|
|
|
--with-eruby-includes="${LOCALBASE}/include" \
|
|
|
|
--with-eruby-libraries="${LOCALBASE}/lib"
|
2002-11-04 00:11:00 +00:00
|
|
|
MAKE_ARGS= RUBY="${RUBY}"
|
2001-06-04 15:57:50 +00:00
|
|
|
INSTALL_TARGET= site-install
|
2000-09-10 10:55:05 +00:00
|
|
|
|
2002-12-06 17:17:38 +00:00
|
|
|
RUBY_RD_FILES= # empty
|
|
|
|
|
2002-04-22 21:02:24 +00:00
|
|
|
DOCS_EN= COPYING ChangeLog README.en doc/default.css doc/*.en.*
|
|
|
|
DOCS_JA= README.ja doc/default.css doc/*.ja.*
|
2000-08-11 16:39:39 +00:00
|
|
|
|
|
|
|
do-configure:
|
2001-05-24 11:21:20 +00:00
|
|
|
@cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} ${RUBY_FLAGS} configure.rb ${CONFIGURE_ARGS}
|
2000-08-11 16:39:39 +00:00
|
|
|
|
2002-12-06 17:17:38 +00:00
|
|
|
post-install: doc-install
|
2002-07-12 05:00:41 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/httpd.conf `${APXS} -q SYSCONFDIR`/httpd.conf.${PORTNAME}
|
2003-02-19 09:31:10 +00:00
|
|
|
# Would be nice if we could use PLIST_SUB here..
|
|
|
|
${REINPLACE_CMD} \
|
|
|
|
-e 's,%%LIBEXECDIR%%,'`${APXS} -q LIBEXECDIR | ${SED} 's:${LOCALBASE}/::'`',g;' \
|
|
|
|
-e 's,%%SYSCONFDIR%%,'`${APXS} -q SYSCONFDIR | ${SED} 's:${LOCALBASE}/::'`',g;' \
|
|
|
|
${TMPPLIST}
|
2002-12-06 17:17:38 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
|
|
|
|
|
|
|
doc-install:
|
2000-08-11 16:39:39 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-12-06 17:17:38 +00:00
|
|
|
.if !defined(RUBY_NO_RD_HTML)
|
|
|
|
cd ${WRKSRC}/doc; ${MAKE}
|
|
|
|
.endif
|
2002-10-06 21:38:34 +00:00
|
|
|
${MKDIR} ${RUBY_MODDOCDIR}/ja
|
2000-08-11 16:39:39 +00:00
|
|
|
.for f in ${DOCS_EN}
|
2002-10-06 21:38:34 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
|
2000-08-11 16:39:39 +00:00
|
|
|
.endfor
|
|
|
|
.for f in ${DOCS_JA}
|
2002-10-06 21:38:34 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
|
2000-08-11 16:39:39 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
2001-03-05 12:35:23 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|