diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2000-09-07 07:44:38 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2000-09-07 07:44:38 +0000 |
commit | 65ff91142eae892357ed74efdeeda4b9e192d834 (patch) | |
tree | f35923c34cade1490b49384542b065518c378507 /www/mod_ruby | |
parent | Update with bsd.ruby.mk. (diff) |
Update with bsd.ruby.mk.
Notes
Notes:
svn path=/head/; revision=32373
Diffstat (limited to 'www/mod_ruby')
-rw-r--r-- | www/mod_ruby/Makefile | 22 | ||||
-rw-r--r-- | www/mod_ruby/pkg-plist | 10 |
2 files changed, 15 insertions, 17 deletions
diff --git a/www/mod_ruby/Makefile b/www/mod_ruby/Makefile index 66bf99fe9251..5f5a7435a44e 100644 --- a/www/mod_ruby/Makefile +++ b/www/mod_ruby/Makefile @@ -13,19 +13,15 @@ DIST_SUBDIR= ruby MAINTAINER= knu@FreeBSD.org -BUILD_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 \ - ruby:${PORTSDIR}/lang/ruby -RUN_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 \ - ruby:${PORTSDIR}/lang/ruby +BUILD_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 +RUN_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 + +USE_RUBY= yes WRKSRC= ${WRKDIR}/${PORTNAME} APXS= ${LOCALBASE}/sbin/apxs -RUBY?= ${LOCALBASE}/bin/ruby -RUBY_VER?= 1.4 -RUBY_ARCH?= ${ARCH}-freebsd${OSREL} - DOCS_EN= ChangeLog README.en DOCS_JA= README.ja @@ -35,14 +31,16 @@ do-configure: do-install: ${APXS} -i -A -n ruby ${WRKSRC}/mod_ruby.so .if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/doc/ruby/mod_ruby/ja + ${MKDIR} ${RUBY_DOCDIR}/mod_ruby/ja .for f in ${DOCS_EN} - ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/mod_ruby/ + ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/mod_ruby/ .endfor .for f in ${DOCS_JA} - ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/mod_ruby/ja/ + ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/mod_ruby/ja/ .endfor .endif ${CAT} ${PKGMESSAGE} -.include <bsd.port.mk> +.include <bsd.port.pre.mk> +.include "${PORTSDIR}/Mk/bsd.ruby.mk" +.include <bsd.port.post.mk> diff --git a/www/mod_ruby/pkg-plist b/www/mod_ruby/pkg-plist index de0b83996cdb..15457774a9b9 100644 --- a/www/mod_ruby/pkg-plist +++ b/www/mod_ruby/pkg-plist @@ -1,8 +1,8 @@ libexec/apache/mod_ruby.so @exec %D/sbin/apxs -e -A -n ruby %D/%F @unexec %D/sbin/apxs -e -A -n ruby %D/%F -share/doc/ruby/mod_ruby/ChangeLog -share/doc/ruby/mod_ruby/README.en -share/doc/ruby/mod_ruby/ja/README.ja -@dirrm share/doc/ruby/mod_ruby/ja -@dirrm share/doc/ruby/mod_ruby +%%RUBY_DOCDIR%%/mod_ruby/ChangeLog +%%RUBY_DOCDIR%%/mod_ruby/README.en +%%RUBY_DOCDIR%%/mod_ruby/ja/README.ja +@dirrm %%RUBY_DOCDIR%%/mod_ruby/ja +@dirrm %%RUBY_DOCDIR%%/mod_ruby |