diff options
author | knu <knu@FreeBSD.org> | 2000-09-07 22:39:47 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2000-09-07 22:39:47 +0800 |
commit | 96f951a2786bd495731135d2fc5fcb8749dee633 (patch) | |
tree | f2835ba67cd5363c99bf3d8b27d9d3019200754f /converters | |
parent | 4ea073e1c6c57446d3193f6385a0d5ce1cc3e63f (diff) | |
download | freebsd-ports-gnome-96f951a2786bd495731135d2fc5fcb8749dee633.tar.gz freebsd-ports-gnome-96f951a2786bd495731135d2fc5fcb8749dee633.tar.zst freebsd-ports-gnome-96f951a2786bd495731135d2fc5fcb8749dee633.zip |
Update with bsd.ruby.mk. :>
Diffstat (limited to 'converters')
-rw-r--r-- | converters/ruby-iconv/Makefile | 29 | ||||
-rw-r--r-- | converters/ruby-iconv/pkg-plist | 8 |
2 files changed, 14 insertions, 23 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> diff --git a/converters/ruby-iconv/pkg-plist b/converters/ruby-iconv/pkg-plist index 3fd7415f8310..7d1a2df9df44 100644 --- a/converters/ruby-iconv/pkg-plist +++ b/converters/ruby-iconv/pkg-plist @@ -1,4 +1,4 @@ -lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/iconv.so -share/doc/ruby/iconv/iconv.html -share/doc/ruby/iconv/rd.css -@dirrm share/doc/ruby/iconv +%%RUBY_SITEARCHLIBDIR%%/iconv.so +%%RUBY_DOCDIR%%/iconv/iconv.html +%%RUBY_DOCDIR%%/iconv/rd.css +@dirrm %%RUBY_DOCDIR%%/iconv |