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 /archivers/ruby-zlib | |
parent | Update with bsd.ruby.mk. (diff) |
Update with bsd.ruby.mk.
Diffstat (limited to 'archivers/ruby-zlib')
-rw-r--r-- | archivers/ruby-zlib/Makefile | 26 | ||||
-rw-r--r-- | archivers/ruby-zlib/pkg-plist | 12 |
2 files changed, 15 insertions, 23 deletions
diff --git a/archivers/ruby-zlib/Makefile b/archivers/ruby-zlib/Makefile index b09f703bba76..7f059c513aeb 100644 --- a/archivers/ruby-zlib/Makefile +++ b/archivers/ruby-zlib/Makefile @@ -9,39 +9,31 @@ PORTNAME= zlib PORTVERSION= 0.3.1 CATEGORIES= archivers ruby MASTER_SITES= http://www.blue.sky.or.jp/atelier/ruby/ -PKGNAMEPREFIX= ruby- +PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION} DIST_SUBDIR= ruby MAINTAINER= knu@FreeBSD.org -BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby -RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby +USE_RUBY= yes +USE_RUBY_EXTCONF= yes INSTALL_TARGET= site-install -PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}" - -RUBY?= ${LOCALBASE}/bin/ruby -RUBY_VER?= 1.4 -RUBY_ARCH?= ${ARCH}-freebsd${OSREL} - DOCS_EN= ChangeLog zlib.en.html DOCS_JA= zlib.ja.html -do-configure: - @cd ${WRKSRC}; \ - ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb - post-install: .if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/doc/ruby/zlib/ja + ${MKDIR} ${RUBY_DOCDIR}/zlib/ja .for f in ${DOCS_EN} - ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/zlib/ + ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/zlib/ .endfor .for f in ${DOCS_JA} - ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/zlib/ja/ + ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/zlib/ja/ .endfor .endif -.include <bsd.port.mk> +.include <bsd.port.pre.mk> +.include "${PORTSDIR}/Mk/bsd.ruby.mk" +.include <bsd.port.post.mk> diff --git a/archivers/ruby-zlib/pkg-plist b/archivers/ruby-zlib/pkg-plist index 22703b0f1794..59323b5126d4 100644 --- a/archivers/ruby-zlib/pkg-plist +++ b/archivers/ruby-zlib/pkg-plist @@ -1,6 +1,6 @@ -lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/zlib.so -share/doc/ruby/zlib/ChangeLog -share/doc/ruby/zlib/zlib.en.html -share/doc/ruby/zlib/ja/zlib.ja.html -@dirrm share/doc/ruby/zlib/ja -@dirrm share/doc/ruby/zlib +%%RUBY_SITEARCHLIBDIR%%/zlib.so +%%RUBY_DOCDIR%%/zlib/ChangeLog +%%RUBY_DOCDIR%%/zlib/zlib.en.html +%%RUBY_DOCDIR%%/zlib/ja/zlib.ja.html +@dirrm %%RUBY_DOCDIR%%/zlib/ja +@dirrm %%RUBY_DOCDIR%%/zlib |