2000-08-11 12:39:39 -04: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
|
2001-08-24 02:15:40 -04:00
|
|
|
PORTVERSION= 0.9.3
|
2000-08-16 08:21:24 -04:00
|
|
|
CATEGORIES= www ruby
|
2000-12-11 14:54:50 -05:00
|
|
|
MASTER_SITES= http://www.modruby.net/archive/
|
2000-08-11 12:39:39 -04:00
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
|
|
|
2000-09-07 03:44:38 -04:00
|
|
|
BUILD_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13
|
2001-06-04 11:57:50 -04:00
|
|
|
LIB_DEPENDS= eruby.09:${PORTSDIR}/textproc/eruby
|
2000-09-07 03:44:38 -04:00
|
|
|
RUN_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13
|
|
|
|
|
|
|
|
USE_RUBY= yes
|
2000-08-11 12:39:39 -04:00
|
|
|
|
|
|
|
APXS= ${LOCALBASE}/sbin/apxs
|
|
|
|
|
2001-06-04 11:57:50 -04:00
|
|
|
CONFIGURE_ARGS= --with-apxs="${APXS}" \
|
2000-09-22 01:05:43 -04:00
|
|
|
--enable-eruby=yes \
|
2001-06-04 11:57:50 -04:00
|
|
|
--with-eruby-includes="${LOCALBASE}/include" \
|
|
|
|
--with-eruby-libraries="${LOCALBASE}/lib"
|
|
|
|
INSTALL_TARGET= site-install
|
2000-09-10 06:55:05 -04:00
|
|
|
|
2001-06-04 11:57:50 -04:00
|
|
|
DOCS_EN= COPYING ChangeLog README.en
|
2000-08-11 12:39:39 -04:00
|
|
|
DOCS_JA= README.ja
|
|
|
|
|
|
|
|
do-configure:
|
2001-05-24 07:21:20 -04:00
|
|
|
@cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} ${RUBY_FLAGS} configure.rb ${CONFIGURE_ARGS}
|
2000-08-11 12:39:39 -04:00
|
|
|
|
2001-06-04 11:57:50 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/httpd.conf ${PREFIX}/etc/apache/httpd.conf.${PORTNAME}
|
2000-08-11 12:39:39 -04:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-03-05 07:35:23 -05:00
|
|
|
${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja
|
2000-08-11 12:39:39 -04:00
|
|
|
.for f in ${DOCS_EN}
|
2001-03-05 07:35:23 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/
|
2000-08-11 12:39:39 -04:00
|
|
|
.endfor
|
|
|
|
.for f in ${DOCS_JA}
|
2001-03-05 07:35:23 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/ja/
|
2000-08-11 12:39:39 -04:00
|
|
|
.endfor
|
|
|
|
.endif
|
2001-03-05 07:35:23 -05:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2000-08-11 12:39:39 -04:00
|
|
|
|
2001-04-13 06:07:21 -04:00
|
|
|
.include <bsd.port.mk>
|