mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
185ceb675c
replaces the non-working NOPORTDOCS workaround and fixes build on the alpha, where rd2 coredumps. Tested on: the axp cluster Approved by: kris
64 lines
1.5 KiB
Makefile
64 lines
1.5 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= 1.0.1
|
|
CATEGORIES= www ruby
|
|
MASTER_SITES= http://www.modruby.net/archive/
|
|
DIST_SUBDIR= ruby
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
|
|
BUILD_DEPENDS= ${APXS}:${APACHE_PORT}
|
|
LIB_DEPENDS= eruby.09:${PORTSDIR}/textproc/eruby
|
|
RUN_DEPENDS= ${APXS}:${APACHE_PORT}
|
|
|
|
USE_RUBY= yes
|
|
|
|
APXS?= ${LOCALBASE}/sbin/apxs
|
|
APACHE_PORT?= ${PORTSDIR}/www/apache13
|
|
|
|
CONFIGURE_ARGS= --with-apxs="${APXS}" \
|
|
--enable-eruby=yes \
|
|
--with-eruby-includes="${LOCALBASE}/include" \
|
|
--with-eruby-libraries="${LOCALBASE}/lib"
|
|
MAKE_ARGS= RUBY="${RUBY}"
|
|
INSTALL_TARGET= site-install
|
|
|
|
RUBY_RD_FILES= # empty
|
|
|
|
DOCS_EN= COPYING ChangeLog README.en doc/default.css doc/*.en.*
|
|
DOCS_JA= README.ja doc/default.css doc/*.ja.*
|
|
|
|
post-patch:
|
|
.if !defined(NOPORTDOCS)
|
|
${RUBY} -i -pe 'sub(/ruby /, "${RUBY} ")' ${WRKSRC}/doc/Makefile
|
|
.endif
|
|
|
|
do-configure:
|
|
@cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} ${RUBY_FLAGS} configure.rb ${CONFIGURE_ARGS}
|
|
|
|
post-install: doc-install
|
|
${INSTALL_DATA} ${WRKSRC}/examples/httpd.conf `${APXS} -q SYSCONFDIR`/httpd.conf.${PORTNAME}
|
|
|
|
.include <bsd.port.mk>
|
|
|
|
doc-install:
|
|
.if !defined(NOPORTDOCS)
|
|
.if !defined(RUBY_NO_RD_HTML)
|
|
cd ${WRKSRC}/doc; ${MAKE}
|
|
.endif
|
|
${MKDIR} ${RUBY_MODDOCDIR}/ja
|
|
.for f in ${DOCS_EN}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
|
|
.endfor
|
|
.for f in ${DOCS_JA}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
|
|
.endfor
|
|
.endif
|
|
@${CAT} ${PKGMESSAGE}
|