1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00

Build and install the bundled iconv module when built with Ruby 1.8.

This commit is contained in:
Akinori MUSHA 2004-03-18 09:24:13 +00:00
parent 6edf79456b
commit 95c166c2c4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=104419
2 changed files with 32 additions and 11 deletions

View File

@ -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>

View File

@ -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%%