diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2004-03-18 09:24:13 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2004-03-18 09:24:13 +0000 |
commit | 95c166c2c434e94834f212782c24dab2b712ad35 (patch) | |
tree | b2fddfd50936a3132e34925a39d044cd6ee2b8d7 /converters/ruby-iconv/Makefile | |
parent | - Update to version 1.3.3 (diff) |
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/Makefile')
-rw-r--r-- | converters/ruby-iconv/Makefile | 28 |
1 files changed, 24 insertions, 4 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> |