2012-09-22 21:15:50 +00:00
|
|
|
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
|
2000-08-11 16:39:39 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mod_ruby
|
2008-11-09 08:18:50 +00:00
|
|
|
PORTVERSION= 1.3.0
|
2012-06-02 08:55:36 +00:00
|
|
|
PORTREVISION= 3
|
2000-08-16 12:21:24 +00:00
|
|
|
CATEGORIES= www ruby
|
2012-07-28 19:41:21 +00:00
|
|
|
MASTER_SITES= http://www.modruby.net/archive/ \
|
|
|
|
ftp://ftp.dinoex.de/pub/FreeBSD/distfiles/
|
2010-05-25 20:17:37 +00:00
|
|
|
PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}
|
2000-08-11 16:39:39 +00:00
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
|
2005-11-13 09:18:12 +00:00
|
|
|
MAINTAINER= dinoex@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
|
|
|
|
2009-05-21 20:45:34 +00:00
|
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
|
2012-09-22 21:15:50 +00:00
|
|
|
USE_APACHE= 22
|
2000-09-07 07:44:38 +00:00
|
|
|
USE_RUBY= yes
|
2006-05-15 11:46:31 +00:00
|
|
|
USE_PERL5_BUILD= yes
|
2000-08-11 16:39:39 +00:00
|
|
|
|
2010-02-18 06:15:09 +00:00
|
|
|
CONFIGURE_ARGS= --with-apxs="${APXS}"
|
|
|
|
CFLAGS+= -DONIG_ESCAPE_REGEX_T_COLLISION
|
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
|
|
|
|
|
2004-12-25 22:07:19 +00:00
|
|
|
DOCS_EN= COPYING ChangeLog LEGAL LICENSE.apreq NOTICE \
|
|
|
|
README.en doc/default.css doc/*.en.*
|
2002-04-22 21:02:24 +00:00
|
|
|
DOCS_JA= README.ja doc/default.css doc/*.ja.*
|
2000-08-11 16:39:39 +00:00
|
|
|
|
2006-01-15 16:09:52 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-03-20 20:16:46 +00:00
|
|
|
.if ${APACHE_VERSION} > 20
|
2006-03-18 15:54:34 +00:00
|
|
|
CONFIGURE_ARGS+= --with-apr-includes="`${LOCALBASE}/bin/apr-1-config --includedir`"
|
|
|
|
.endif
|
|
|
|
|
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}
|
2006-03-31 14:34:55 +00:00
|
|
|
.if !defined(WITHOUT_PTHREADS) && defined(WITH_PTHREADS)
|
2006-01-15 16:09:52 +00:00
|
|
|
# dirty hack to force mod_ruby.so linked with lpthread.so, otherwise unresolved
|
|
|
|
# symbols happen
|
|
|
|
@${REINPLACE_CMD} -e 's|-pthread|-pthread -lpthread|' ${WRKSRC}/Makefile
|
2008-06-01 19:22:24 +00:00
|
|
|
|
2006-03-31 14:34:55 +00:00
|
|
|
PKGNAMESUFFIX= -pthreads
|
2006-01-24 14:40:42 +00:00
|
|
|
.endif
|
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
|
|
|
|
|
|
|
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}
|
2006-01-15 16:09:52 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|