summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-03-19 11:13:39 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-03-19 11:13:39 +0000
commit6b45fedafc678bced50eef1693d13725880b8e90 (patch)
treea3617e5391d72b5e3c1b50dc65e424a621da6e89 /lang
parentUpdate to 1.6.3 release. (diff)
Alter the build process for the standard libraries of Ruby.
Notes
Notes: svn path=/head/; revision=40043
Diffstat (limited to 'lang')
-rw-r--r--lang/ruby-tcltklib/Makefile27
-rw-r--r--lang/ruby/Makefile5
-rw-r--r--lang/ruby16/Makefile5
3 files changed, 22 insertions, 15 deletions
diff --git a/lang/ruby-tcltklib/Makefile b/lang/ruby-tcltklib/Makefile
index 660748d9505a..3e1703baee83 100644
--- a/lang/ruby-tcltklib/Makefile
+++ b/lang/ruby-tcltklib/Makefile
@@ -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>
diff --git a/lang/ruby/Makefile b/lang/ruby/Makefile
index b34e244443d2..9d909c22a38d 100644
--- a/lang/ruby/Makefile
+++ b/lang/ruby/Makefile
@@ -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}
diff --git a/lang/ruby16/Makefile b/lang/ruby16/Makefile
index b34e244443d2..9d909c22a38d 100644
--- a/lang/ruby16/Makefile
+++ b/lang/ruby16/Makefile
@@ -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}