diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2000-09-07 14:39:47 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2000-09-07 14:39:47 +0000 |
commit | 6be33926020dcfa43ec8a1bf94700238962f3b92 (patch) | |
tree | b915338a31558eaf368cfd16cdf2b7ec1e6e80db /converters/ruby-iconv/Makefile | |
parent | Fix the error detection routines at the end. (diff) |
Update with bsd.ruby.mk. :>
Notes
Notes:
svn path=/head/; revision=32391
Diffstat (limited to 'converters/ruby-iconv/Makefile')
-rw-r--r-- | converters/ruby-iconv/Makefile | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/converters/ruby-iconv/Makefile b/converters/ruby-iconv/Makefile index a9c89cf4f286..c9704a2fc6d7 100644 --- a/converters/ruby-iconv/Makefile +++ b/converters/ruby-iconv/Makefile @@ -9,45 +9,36 @@ PORTNAME= iconv PORTVERSION= 0.4.2.p3 CATEGORIES= converters ruby MASTER_SITES= http://member.nifty.ne.jp/nokada/archive/ -PKGNAMEPREFIX= ruby- +PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} DISTNAME= ${PORTNAME}-${PORTVERSION:S/.p/-pre/} DIST_SUBDIR= ruby MAINTAINER= knu@FreeBSD.org -BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby LIB_DEPENDS= giconv.2:${PORTSDIR}/converters/libiconv -RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby +USE_RUBY= yes +USE_RUBY_EXTCONF= yes .if !defined(NOPORTDOCS) -BUILD_DEPENDS+= rd2:${PORTSDIR}/textproc/ruby-rdtool +USE_RUBY_RD= yes .endif INSTALL_TARGET= site-install -CONFIGURE_ARGS= --with-opt-dir="${LOCALBASE}" - -PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}" - -RUBY?= ${LOCALBASE}/bin/ruby -RUBY_VER?= 1.4 -RUBY_ARCH?= ${ARCH}-freebsd${OSREL} - -do-configure: - @cd ${WRKSRC}; \ - ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS} .if !defined(NOPORTDOCS) post-build: @cd ${WRKSRC}; \ - rd2 iconv.c > iconv.html + ${RUBY_RD} iconv.c > iconv.html .endif post-install: .if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/doc/ruby/iconv + ${MKDIR} ${RUBY_DOCDIR}/iconv .for f in iconv.html rd.css - ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/iconv/ + ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/iconv/ .endfor .endif -.include <bsd.port.mk> +.include <bsd.port.pre.mk> +.include "${PORTSDIR}/Mk/bsd.ruby.mk" +.include <bsd.port.post.mk> |