1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/www/mod_ruby/Makefile
2001-06-06 10:40:58 +00:00

50 lines
1.2 KiB
Makefile

# New ports collection makefile for: mod_ruby
# Date created: 12 Aug 2000
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= mod_ruby
PORTVERSION= 0.8.3
CATEGORIES= www ruby
MASTER_SITES= http://www.modruby.net/archive/
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
BUILD_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13
LIB_DEPENDS= eruby.09:${PORTSDIR}/textproc/eruby
RUN_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13
USE_RUBY= yes
APXS= ${LOCALBASE}/sbin/apxs
CONFIGURE_ARGS= --with-apxs="${APXS}" \
--enable-eruby=yes \
--with-eruby-includes="${LOCALBASE}/include" \
--with-eruby-libraries="${LOCALBASE}/lib"
INSTALL_TARGET= site-install
DOCS_EN= COPYING ChangeLog README.en
DOCS_JA= README.ja
do-configure:
@cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} ${RUBY_FLAGS} configure.rb ${CONFIGURE_ARGS}
post-install:
${INSTALL_DATA} ${WRKSRC}/examples/httpd.conf ${PREFIX}/etc/apache/httpd.conf.${PORTNAME}
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja
.for f in ${DOCS_EN}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/
.endfor
.for f in ${DOCS_JA}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/ja/
.endfor
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>