It requires some additional ruby libs build for ruby19.

So, mark IGNORE when RUBY_DEFAULT_VER is not 1.9.

Spotted by:	pointyhat via beat
This commit is contained in:
Hajimu UMEMOTO 2012-09-15 15:32:30 +00:00
parent 4c76c61a11
commit fc7976bed7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=304319
2 changed files with 14 additions and 2 deletions

View file

@ -32,6 +32,12 @@ NO_BUILD= yes
PLIST_FILES= bin/${PORTNAME}
.include <bsd.port.pre.mk>
.if ${RUBY_DEFAULT_VER} != ${RUBY_VER}
IGNORE= requires RUBY_DEFAULT_VER=${RUBY_VER}
.endif
post-patch:
@${REINPLACE_CMD} -e 's,#! /usr/bin/ruby1.9.3,#!${RUBY},g' \
${WRKSRC}/${PORTNAME}
@ -39,4 +45,4 @@ post-patch:
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
.include <bsd.port.mk>
.include <bsd.port.post.mk>

View file

@ -32,6 +32,12 @@ NO_BUILD= yes
PLIST_FILES= bin/${PORTNAME}
.include <bsd.port.pre.mk>
.if ${RUBY_DEFAULT_VER} != ${RUBY_VER}
IGNORE= requires RUBY_DEFAULT_VER=${RUBY_VER}
.endif
post-patch:
@${REINPLACE_CMD} -e 's,#! /usr/bin/ruby1.9.3,#!${RUBY},g' \
${WRKSRC}/${PORTNAME}
@ -55,4 +61,4 @@ station-code-fetch:
station-code-install:
@(cd ${WRKDIR}; ${SH} station_code_conv.sh StationCode.xls)
.include <bsd.port.mk>
.include <bsd.port.post.mk>