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
|
2000-09-22 05:05:43 +00:00
|
|
|
PORTVERSION= 0.2.0
|
2000-08-16 12:21:24 +00:00
|
|
|
CATEGORIES= www ruby
|
2000-08-25 09:59:15 +00:00
|
|
|
MASTER_SITES= http://www.ruby-lang.org/~shugo/mod_ruby/
|
2000-08-11 16:39:39 +00:00
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
|
|
|
2000-09-07 07:44:38 +00:00
|
|
|
BUILD_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13
|
2000-09-22 05:05:43 +00:00
|
|
|
LIB_DEPENDS= eruby.1:${PORTSDIR}/textproc/eruby
|
2000-09-07 07:44:38 +00:00
|
|
|
RUN_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13
|
|
|
|
|
|
|
|
USE_RUBY= yes
|
2000-08-11 16:39:39 +00:00
|
|
|
|
|
|
|
APXS= ${LOCALBASE}/sbin/apxs
|
|
|
|
|
2000-09-22 05:05:43 +00:00
|
|
|
CONFIGURE_ARGS= --apxs="${APXS}" \
|
|
|
|
--enable-eruby=yes \
|
|
|
|
--eruby-includes="${LOCALBASE}/include" \
|
|
|
|
--eruby-libraries="${LOCALBASE}/lib"
|
2000-09-10 10:55:05 +00:00
|
|
|
|
2000-08-11 16:39:39 +00:00
|
|
|
DOCS_EN= ChangeLog README.en
|
|
|
|
DOCS_JA= README.ja
|
|
|
|
|
|
|
|
do-configure:
|
2000-09-10 10:55:05 +00:00
|
|
|
@cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} Makefile.RB ${CONFIGURE_ARGS}
|
2000-08-11 16:39:39 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${APXS} -i -A -n ruby ${WRKSRC}/mod_ruby.so
|
|
|
|
.if !defined(NOPORTDOCS)
|
2000-09-07 07:44:38 +00:00
|
|
|
${MKDIR} ${RUBY_DOCDIR}/mod_ruby/ja
|
2000-08-11 16:39:39 +00:00
|
|
|
.for f in ${DOCS_EN}
|
2000-09-07 07:44:38 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/mod_ruby/
|
2000-08-11 16:39:39 +00:00
|
|
|
.endfor
|
|
|
|
.for f in ${DOCS_JA}
|
2000-09-07 07:44:38 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/mod_ruby/ja/
|
2000-08-11 16:39:39 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
${CAT} ${PKGMESSAGE}
|
|
|
|
|
2000-09-22 05:05:43 +00:00
|
|
|
.include <bsd.port.mk>
|