aboutsummaryrefslogtreecommitdiff
path: root/converters/ruby-iconv
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2004-03-18 09:24:13 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2004-03-18 09:24:13 +0000
commit95c166c2c434e94834f212782c24dab2b712ad35 (patch)
treeb2fddfd50936a3132e34925a39d044cd6ee2b8d7 /converters/ruby-iconv
parent6edf79456bc30e15f6343400f8871169e9055703 (diff)
downloadports-95c166c2c434e94834f212782c24dab2b712ad35.tar.gz
ports-95c166c2c434e94834f212782c24dab2b712ad35.zip
Build and install the bundled iconv module when built with Ruby 1.8.
Notes
Notes: svn path=/head/; revision=104419
Diffstat (limited to 'converters/ruby-iconv')
-rw-r--r--converters/ruby-iconv/Makefile28
-rw-r--r--converters/ruby-iconv/pkg-plist15
2 files changed, 32 insertions, 11 deletions
diff --git a/converters/ruby-iconv/Makefile b/converters/ruby-iconv/Makefile
index f46f1a184ee6..16e95147ae8a 100644
--- a/converters/ruby-iconv/Makefile
+++ b/converters/ruby-iconv/Makefile
@@ -6,11 +6,10 @@
#
PORTNAME= iconv
-PORTVERSION= 0.5
+PORTVERSION= ${REAL_PORTVERSION}
CATEGORIES= converters ruby
-MASTER_SITES= http://member.nifty.ne.jp/nokada/archive/
+MASTER_SITES= ${REAL_MASTER_SITES}
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
-DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
COMMENT= An iconv wrapper class for Ruby
@@ -22,6 +21,26 @@ USE_RUBY_EXTCONF= yes
INSTALL_TARGET= site-install
+.include <bsd.port.pre.mk>
+
+.if ${RUBY_VER} >= 1.7
+REAL_PORTVERSION= ${RUBY_PORTVERSION}
+DISTNAME= ${PORTNAME}
+DISTFILES= # empty
+
+MAKE_ARGS+= sitelibdir='$$(rubylibdir)'
+
+BUILD_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/${RUBY_PORT}:patch
+
+do-extract:
+ ${MKDIR} ${WRKDIR}
+ ${LN} -sf `cd ${PORTSDIR}/${RUBY_PORT}; ${MAKE} -V WRKDIR`/${PORTNAME} ${WRKDIR}/
+
+.else
+REAL_PORTVERSION= 0.5
+REAL_MASTER_SITES= http://member.nifty.ne.jp/nokada/archive/
+DIST_SUBDIR= ruby
+
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_MODDOCDIR}
@@ -29,5 +48,6 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
.endfor
.endif
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/converters/ruby-iconv/pkg-plist b/converters/ruby-iconv/pkg-plist
index 979b330c9a1b..6c82492a230c 100644
--- a/converters/ruby-iconv/pkg-plist
+++ b/converters/ruby-iconv/pkg-plist
@@ -1,7 +1,8 @@
-%%RUBY_SITEARCHLIBDIR%%/iconv.so
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/iconv.html
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/iconv.rlog
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/iconv.rlog.html
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/iconv.rmi.html
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/rd.css
-%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%
+%%RUBY18_ONLY%%%%RUBY_ARCHLIBDIR%%/iconv.so
+%%RUBY16_ONLY%%%%RUBY_SITEARCHLIBDIR%%/iconv.so
+%%RUBY16_ONLY%%%%PORTDOCS%%%%RUBY_MODDOCDIR%%/iconv.html
+%%RUBY16_ONLY%%%%PORTDOCS%%%%RUBY_MODDOCDIR%%/iconv.rlog
+%%RUBY16_ONLY%%%%PORTDOCS%%%%RUBY_MODDOCDIR%%/iconv.rlog.html
+%%RUBY16_ONLY%%%%PORTDOCS%%%%RUBY_MODDOCDIR%%/iconv.rmi.html
+%%RUBY16_ONLY%%%%PORTDOCS%%%%RUBY_MODDOCDIR%%/rd.css
+%%RUBY16_ONLY%%%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%