openbsd-ports/www/mod_ruby/Makefile
sthen c55dec9048 Better @exec-update lines; don't produce an error with pkg_add updates
if the module is installed but not activated. From Mikolaj Kucharski with
help from halex@, looks good to halex.
2011-09-17 10:29:43 +00:00

48 lines
983 B
Makefile

# $OpenBSD: Makefile,v 1.16 2011/09/17 10:29:44 sthen Exp $
COMMENT= module that embeds Ruby into Apache
DISTNAME= mod_ruby-1.2.6
REVISION = 7
CATEGORIES= www
HOMEPAGE= http://modruby.net/
MAINTAINER= Adam Montague <amontague@siriushosting.com>
MODULES= apache-module lang/ruby
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= m ${MODRUBY_WANTLIB}
MODAPACHE_NAME= ruby
MASTER_SITES= http://modruby.net/archive/
LIB_DEPENDS= ${MODRUBY_LIB_DEPENDS}
CONFIGURE_STYLE= simple
CONFIGURE_SCRIPT= configure.rb
CONFIGURE_ARGS+= --with-apxs=/usr/sbin/apxs
NO_REGRESS= Yes
SEPARATE_BUILD= concurrent
INSTALL_TARGET= install-ruby
SUBST_VARS= PKGNAME
post-build:
@${MODAPACHE_CREATE_ENABLE_SCRIPT}
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mod_ruby
${INSTALL_DATA} ${WRKSRC}/examples/httpd.conf ${PREFIX}/share/examples/mod_ruby/
${MODAPACHE_INSTALL}
.include <bsd.port.mk>