Alter the build process for the standard libraries of Ruby.

This commit is contained in:
Akinori MUSHA 2001-03-19 11:13:39 +00:00
parent 0a81dcd924
commit 6b45fedafc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=40043
5 changed files with 39 additions and 30 deletions

View file

@ -8,22 +8,23 @@
PORTNAME= gdbm
PORTVERSION= ${RUBY_PORTVERSION}
CATEGORIES= databases ruby
MASTER_SITES= ${MASTER_SITE_RUBY}
MASTER_SITE_SUBDIR= ${RUBY_VER}
MASTER_SITES= # none
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ${RUBY_DISTNAME}
DIST_SUBDIR= ruby
DISTFILES= # none
MAINTAINER= knu@FreeBSD.org
BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/${RUBY_PORT}:patch
LIB_DEPENDS= gdbm.2:${PORTSDIR}/databases/gdbm
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
MD5_FILE= ${PORTSDIR}/lang/ruby/distinfo
WRKSRC= ${WRKDIR}/${PORTNAME}
WRKSRC= ${RUBY_WRKSRC}/ext/gdbm
do-extract:
${MKDIR} ${WRKDIR}
${LN} -sf `cd ${PORTSDIR}/${RUBY_PORT} && ${MAKE} -V WRKDIR`/${PORTNAME} ${WRKDIR}/
post-install:
@${CAT} ${PKGMESSAGE}

View file

@ -8,13 +8,12 @@
PORTNAME= tcltklib
PORTVERSION= ${RUBY_PORTVERSION}
CATEGORIES+= lang x11-toolkits ruby tcl${TCL_VERSION} tk${TK_VERSION}
MASTER_SITES= ${MASTER_SITE_RUBY}
MASTER_SITE_SUBDIR= ${RUBY_VER}
DISTNAME= ${RUBY_DISTNAME}
DIST_SUBDIR= ruby
MASTER_SITES= # none
DISTFILES= # none
MAINTAINER?= knu@FreeBSD.org
BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/${RUBY_PORT}:patch
LIB_DEPENDS= ${TCL_LIB}.1:${PORTSDIR}/${TCL_CATEGORY}/tcl${TCL_VERSION} \
${TK_LIB}.1:${PORTSDIR}/${TK_CATEGORY}/tk${TK_VERSION}
@ -22,9 +21,7 @@ USE_RUBY= yes
USE_RUBY_EXTCONF= yes
USE_XLIB= yes
MD5_FILE= ${PORTSDIR}/lang/ruby/distinfo
WRKSRC= ${RUBY_WRKSRC}/ext/tcltklib
WRKSRC= ${WRKDIR}/${PORTNAME}
CONFIGURE_ARGS= --with-tcllib="${TCL_LIB}" --with-tklib="${TK_LIB}" \
--with-tcl-lib="${LOCALBASE}/lib/${TCL_DIR}" \
--with-tk-lib="${LOCALBASE}/lib/${TK_DIR}" \
@ -60,14 +57,18 @@ PKGNAMEPREFIX:= ${PKGNAMEPREFIX}${RUBY_PKGNAMEPREFIX}
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
.endif
do-extract:
${MKDIR} ${WRKDIR}
${LN} -sf `cd ${PORTSDIR}/${RUBY_PORT} && ${MAKE} -V WRKDIR`/${PORTNAME} ${WRKDIR}/
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_EXAMPLESDIR}/tcltklib
${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}/tcltklib/
${MKDIR} ${RUBY_EXAMPLESDIR}/tcltklib/demo
${INSTALL_DATA} ${WRKSRC}/demo/* ${RUBY_EXAMPLESDIR}/tcltklib/demo/
${MKDIR} ${RUBY_DOCDIR}/tcltklib/ja
${INSTALL_DATA} ${WRKSRC}/*.euc ${RUBY_DOCDIR}/tcltklib/ja/
${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}/${PORTNAME}/
${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}/demo
${INSTALL_DATA} ${WRKSRC}/demo/* ${RUBY_EXAMPLESDIR}/${PORTNAME}/demo/
${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja
${INSTALL_DATA} ${WRKSRC}/*.euc ${RUBY_DOCDIR}/${PORTNAME}/ja/
.endif
.include <bsd.port.post.mk>

View file

@ -47,9 +47,12 @@ CONFIGURE_ARGS+= --enable-ipv6
post-patch:
find ${WRKSRC} -name '*.orig' -delete
.for d in Win32API gdbm tcltklib tk
.for d in Win32API
${RM} -rf ${WRKSRC}/ext/${d}
.endfor
.for d in gdbm tcltklib tk
${MV} ${WRKSRC}/ext/${d} ${WRKDIR}/
.endfor
post-install:
strip ${RUBY}

View file

@ -47,9 +47,12 @@ CONFIGURE_ARGS+= --enable-ipv6
post-patch:
find ${WRKSRC} -name '*.orig' -delete
.for d in Win32API gdbm tcltklib tk
.for d in Win32API
${RM} -rf ${WRKSRC}/ext/${d}
.endfor
.for d in gdbm tcltklib tk
${MV} ${WRKSRC}/ext/${d} ${WRKDIR}/
.endfor
post-install:
strip ${RUBY}

View file

@ -8,21 +8,18 @@
PORTNAME= tk
PORTVERSION= ${RUBY_PORTVERSION}
CATEGORIES+= x11-toolkits ruby tk${TK_VERSION}
MASTER_SITES= ${MASTER_SITE_RUBY}
MASTER_SITE_SUBDIR= ${RUBY_VER}
DISTNAME= ${RUBY_DISTNAME}
DIST_SUBDIR= ruby
MASTER_SITES= # none
DISTFILES= # none
MAINTAINER?= knu@FreeBSD.org
BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/${RUBY_PORT}:patch
RUN_DEPENDS= ${RUBY_ARCHLIBDIR}/tcltklib.so:${PORTSDIR}/${TCLTKLIB_CATEGORY}/ruby-tcltklib
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
MD5_FILE= ${PORTSDIR}/lang/ruby/distinfo
WRKSRC= ${RUBY_WRKSRC}/ext/tk
WRKSRC= ${WRKDIR}/${PORTNAME}
TK_VERSION?= 82
.if defined(WITH_TCLTK_JP)
@ -39,10 +36,14 @@ PKGNAMEPREFIX:= ${PKGNAMEPREFIX}${RUBY_PKGNAMEPREFIX}
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
.endif
do-extract:
${MKDIR} ${WRKDIR}
${LN} -sf `cd ${PORTSDIR}/${RUBY_PORT} && ${MAKE} -V WRKDIR`/${PORTNAME} ${WRKDIR}/
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_EXAMPLESDIR}/tk
${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}/tk/
${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}/${PORTNAME}/
.endif
.include <bsd.port.post.mk>