From 96f951a2786bd495731135d2fc5fcb8749dee633 Mon Sep 17 00:00:00 2001 From: knu Date: Thu, 7 Sep 2000 14:39:47 +0000 Subject: Update with bsd.ruby.mk. :> --- converters/ruby-iconv/Makefile | 29 ++++++++++------------------- converters/ruby-iconv/pkg-plist | 8 ++++---- 2 files changed, 14 insertions(+), 23 deletions(-) (limited to 'converters') 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 +.include +.include "${PORTSDIR}/Mk/bsd.ruby.mk" +.include 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 -- cgit