mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-28 10:08:24 +00:00
Build and install the bundled iconv module when built with Ruby 1.8.
This commit is contained in:
parent
6edf79456b
commit
95c166c2c4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=104419
@ -6,11 +6,10 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
PORTNAME= iconv
|
PORTNAME= iconv
|
||||||
PORTVERSION= 0.5
|
PORTVERSION= ${REAL_PORTVERSION}
|
||||||
CATEGORIES= converters ruby
|
CATEGORIES= converters ruby
|
||||||
MASTER_SITES= http://member.nifty.ne.jp/nokada/archive/
|
MASTER_SITES= ${REAL_MASTER_SITES}
|
||||||
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
||||||
DIST_SUBDIR= ruby
|
|
||||||
|
|
||||||
MAINTAINER= knu@FreeBSD.org
|
MAINTAINER= knu@FreeBSD.org
|
||||||
COMMENT= An iconv wrapper class for Ruby
|
COMMENT= An iconv wrapper class for Ruby
|
||||||
@ -22,6 +21,26 @@ USE_RUBY_EXTCONF= yes
|
|||||||
|
|
||||||
INSTALL_TARGET= site-install
|
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:
|
post-install:
|
||||||
.if !defined(NOPORTDOCS)
|
.if !defined(NOPORTDOCS)
|
||||||
${MKDIR} ${RUBY_MODDOCDIR}
|
${MKDIR} ${RUBY_MODDOCDIR}
|
||||||
@ -29,5 +48,6 @@ post-install:
|
|||||||
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
|
||||||
.endfor
|
.endfor
|
||||||
.endif
|
.endif
|
||||||
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
%%RUBY_SITEARCHLIBDIR%%/iconv.so
|
%%RUBY18_ONLY%%%%RUBY_ARCHLIBDIR%%/iconv.so
|
||||||
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/iconv.html
|
%%RUBY16_ONLY%%%%RUBY_SITEARCHLIBDIR%%/iconv.so
|
||||||
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/iconv.rlog
|
%%RUBY16_ONLY%%%%PORTDOCS%%%%RUBY_MODDOCDIR%%/iconv.html
|
||||||
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/iconv.rlog.html
|
%%RUBY16_ONLY%%%%PORTDOCS%%%%RUBY_MODDOCDIR%%/iconv.rlog
|
||||||
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/iconv.rmi.html
|
%%RUBY16_ONLY%%%%PORTDOCS%%%%RUBY_MODDOCDIR%%/iconv.rlog.html
|
||||||
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/rd.css
|
%%RUBY16_ONLY%%%%PORTDOCS%%%%RUBY_MODDOCDIR%%/iconv.rmi.html
|
||||||
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%
|
%%RUBY16_ONLY%%%%PORTDOCS%%%%RUBY_MODDOCDIR%%/rd.css
|
||||||
|
%%RUBY16_ONLY%%%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%
|
||||||
|
Loading…
Reference in New Issue
Block a user