Unbreak packaging for ruby 1.8.

This commit is contained in:
Akinori MUSHA 2003-01-23 19:18:58 +00:00
parent dee2e3c3df
commit 6db2765dc6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=73874
3 changed files with 15 additions and 1 deletions

View File

@ -22,6 +22,12 @@ USE_RUBY_EXTCONF= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
.include <bsd.port.pre.mk>
.if ${RUBY_VER} >= 1.7
MAKE_ARGS= sitelibdir='$$(rubylibdir)'
.endif
do-extract:
${MKDIR} ${WRKDIR}
${LN} -sf `cd ${PORTSDIR}/${RUBY_PORT}; ${MAKE} -V WRKDIR`/${PORTNAME} ${WRKDIR}/
@ -29,4 +35,4 @@ do-extract:
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
.include <bsd.port.post.mk>

View File

@ -51,6 +51,10 @@ TK_DIR= `echo "${TK_LIB}" | ${SED} 's/\([0-9]\)\([0-9]\)/\1.\2/'`
.include <bsd.port.pre.mk>
.if ${RUBY_VER} >= 1.7
MAKE_ARGS= sitelibdir='$$(rubylibdir)'
.endif
.if defined(PKGNAMEPREFIX)
PKGNAMEPREFIX:= ${PKGNAMEPREFIX}${RUBY_PKGNAMEPREFIX}
.else

View File

@ -30,6 +30,10 @@ TCLTKLIB_CATEGORY?= lang
.include <bsd.port.pre.mk>
.if ${RUBY_VER} >= 1.7
MAKE_ARGS= sitelibdir='$$(rubylibdir)'
.endif
.if defined(PKGNAMEPREFIX)
PKGNAMEPREFIX:= ${PKGNAMEPREFIX}${RUBY_PKGNAMEPREFIX}
.else