diff options
author | knu <knu@FreeBSD.org> | 2004-03-18 17:24:13 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2004-03-18 17:24:13 +0800 |
commit | cfb1a99ad994f355dceb7c0fedbf3ad6e2a498ff (patch) | |
tree | 3ab5a029e927f3953013da7ea439b3519f11d643 | |
parent | 57fe339aeb6831bab15c0a4adcd5a6d1e3695344 (diff) | |
download | freebsd-ports-gnome-cfb1a99ad994f355dceb7c0fedbf3ad6e2a498ff.tar.gz freebsd-ports-gnome-cfb1a99ad994f355dceb7c0fedbf3ad6e2a498ff.tar.zst freebsd-ports-gnome-cfb1a99ad994f355dceb7c0fedbf3ad6e2a498ff.zip |
Build and install the bundled iconv module when built with Ruby 1.8.
-rw-r--r-- | converters/ruby-iconv/Makefile | 28 | ||||
-rw-r--r-- | converters/ruby-iconv/pkg-plist | 15 |
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%% |