Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Apr 1999 02:32:06 +0900
From:      yasuf@big.or.jp
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/10907: New port: x11-toolkits/rubytk
Message-ID:  <19990402023206S.yasuf@big.or.jp>

next in thread | raw e-mail | index | archive | help

>Number:         10907
>Category:       ports
>Synopsis:       New port: x11-toolkits/rubytk
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr  1 09:40:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Yasuhiro Fukuma
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:

	

>Description:

	I'd like to add the following new port to the collection.

	Package name: rubytk-1.2.3
	Primary category: x11-toolkits
	Package description:
	  This is Ruby/Tk, a Ruby interface to Tcl/Tk libraries.
	  It's a part of the official Ruby distribution.

>How-To-Repeat:

	

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	rubytk
#	rubytk/files
#	rubytk/files/md5
#	rubytk/pkg
#	rubytk/pkg/PLIST
#	rubytk/pkg/COMMENT
#	rubytk/pkg/DESCR
#	rubytk/patches
#	rubytk/patches/patch-aa
#	rubytk/Makefile
#
echo c - rubytk
mkdir -p rubytk > /dev/null 2>&1
echo c - rubytk/files
mkdir -p rubytk/files > /dev/null 2>&1
echo x - rubytk/files/md5
sed 's/^X//' >rubytk/files/md5 << 'END-of-rubytk/files/md5'
XMD5 (ruby-1.2.3.tar.gz) = 8a6b13a9751d83bba5c638a718ffaad2
END-of-rubytk/files/md5
echo c - rubytk/pkg
mkdir -p rubytk/pkg > /dev/null 2>&1
echo x - rubytk/pkg/PLIST
sed 's/^X//' >rubytk/pkg/PLIST << 'END-of-rubytk/pkg/PLIST'
Xlib/ruby/%%RUBY_ARCH%%/tcltklib.so
Xlib/ruby/%%RUBY_ARCH%%/tkutil.so
Xlib/ruby/tcltk.rb
Xlib/ruby/tk.rb
Xlib/ruby/tkafter.rb
Xlib/ruby/tkbgerror.rb
Xlib/ruby/tkcanvas.rb
Xlib/ruby/tkclass.rb
Xlib/ruby/tkdialog.rb
Xlib/ruby/tkentry.rb
Xlib/ruby/tkfont.rb
Xlib/ruby/tkmenubar.rb
Xlib/ruby/tkmngfocus.rb
Xlib/ruby/tkpalette.rb
Xlib/ruby/tkscrollbox.rb
Xlib/ruby/tktext.rb
Xlib/ruby/tkvirtevent.rb
END-of-rubytk/pkg/PLIST
echo x - rubytk/pkg/COMMENT
sed 's/^X//' >rubytk/pkg/COMMENT << 'END-of-rubytk/pkg/COMMENT'
Xa Ruby interface to Tcl/Tk libraries.
END-of-rubytk/pkg/COMMENT
echo x - rubytk/pkg/DESCR
sed 's/^X//' >rubytk/pkg/DESCR << 'END-of-rubytk/pkg/DESCR'
XThis is Ruby/Tk, a Ruby interface to Tcl/Tk libraries.
XIt's a part of the official Ruby distribution.
X
X- Yasuhiro Fukuma
Xyasuf@big.or.jp
END-of-rubytk/pkg/DESCR
echo c - rubytk/patches
mkdir -p rubytk/patches > /dev/null 2>&1
echo x - rubytk/patches/patch-aa
sed 's/^X//' >rubytk/patches/patch-aa << 'END-of-rubytk/patches/patch-aa'
X--- tcltklib/extconf.rb.orig	Thu Jan  7 13:29:56 1999
X+++ tcltklib/extconf.rb	Mon Mar 15 13:31:56 1999
X@@ -2,6 +2,11 @@
X 
X require 'mkmf'
X 
X+prefix  = ENV['PREFIX']
X+x11base = ENV['X11BASE']
X+tcllib  = ENV['TCL_LIB']
X+tklib   = ENV['TK_LIB']
X+
X have_library("nsl", "t_open")
X have_library("socket", "socket")
X have_library("dl", "dlopen")
X@@ -31,20 +36,11 @@
X end
X 
X search_header("tcl.h",
X-	      "/usr/include/tcl{,8*,7*}",
X-	      "/usr/include",
X-	      "/usr/local/include/tcl{,8*,7*}",
X-	      "/usr/local/include")
X+	      "#{prefix}/include/#{tcllib.sub(/(\\d)(\\d)/, '\\1.\\2')}")
X search_header("tk.h",
X-	      "/usr/include/tk{,8*,4*}",
X-	      "/usr/include",
X-	      "/usr/local/include/tk{,8*,4*}",
X-	      "/usr/local/include")
X+	      "#{prefix}/include/#{tklib.sub(/(\\d)(\\d)/, '\\1.\\2')}")
X search_header("X11/Xlib.h",
X-	      "/usr/include/X11*",
X-	      "/usr/include",
X-	      "/usr/openwin/include",
X-	      "/usr/X11*/include")
X+	      "#{x11base}/include")
X 
X $CFLAGS = $includes.collect{|path| "-I" + path}.join(" ")
X 
X@@ -75,11 +71,11 @@
X 
X if have_header("tcl.h") && have_header("tk.h") &&
X     search_lib("libX11.{a,so}", "XOpenDisplay",
X-	       "/usr/lib", "/usr/openwin/lib", "/usr/X11*/lib") &&
X-    search_lib("libtcl{,8*,7*}.{a,so}", "Tcl_FindExecutable",
X-	       "/usr/lib", "/usr/local/lib") &&
X-    search_lib("libtk{,8*,4*}.{a,so}", "Tk_Init",
X-	       "/usr/lib", "/usr/local/lib")
X+	       "#{x11base}/lib") &&
X+    search_lib("lib#{tcllib}.{a,so}", "Tcl_FindExecutable",
X+	       "#{prefix}/lib") &&
X+    search_lib("lib#{tklib}.{a,so}", "Tk_Init",
X+	       "#{prefix}/lib")
X   $LDFLAGS = $libraries.collect{|path| "-L" + path}.join(" ")
X   create_makefile("tcltklib")
X end
END-of-rubytk/patches/patch-aa
echo x - rubytk/Makefile
sed 's/^X//' >rubytk/Makefile << 'END-of-rubytk/Makefile'
X# New ports collection makefile for:    rubytk
X# Version required:     1.2.3
X# Date created:         15 March 1999
X# Whom:                 Yasuhiro Fukuma <yasuf@big.or.jp>
X#
X# $Id$
X#
X
XDISTNAME=	ruby-1.2.3
XPKGNAME?=	rubytk-1.2.3
XCATEGORIES?=	x11-toolkits
XMASTER_SITES=	ftp://ftp.netlab.co.jp/pub/lang/ruby/${BRANCH_NAME}/ \
X		ftp://ftp.TokyoNet.AD.JP/pub/misc/ruby/${BRANCH_NAME}/ \
X		ftp://ftp.iij.ad.jp/pub/lang/ruby/${BRANCH_NAME}/ \
X		ftp://blade.nagaokaut.ac.jp/pub/lang/ruby/${BRANCH_NAME}/ \
X		ftp://ftp.krnet.ne.jp/pub/ruby/${BRANCH_NAME}/ \
X		ftp://mirror.nucba.ac.jp/mirror/ruby/${BRANCH_NAME}/
X
XMAINTAINER?=	yasuf@big.or.jp
X
XBUILD_DEPENDS=	ruby:${PORTSDIR}/lang/ruby
XRUN_DEPENDS=	ruby:${PORTSDIR}/lang/ruby
XLIB_DEPENDS=	${TCL_LIB}.1:${PORTSDIR}/${TCL_CATEGORY}/tcl${TCL_VERSION} \
X		${TK_LIB}.1:${PORTSDIR}/${TK_CATEGORY}/tk${TK_VERSION}
X
XUSE_XLIB=	yes
XWRKSRC=		${WRKDIR}/${DISTNAME}/ext
XCONFIGURE_ENV+=	TCL_LIB="${TCL_LIB}" TK_LIB="${TK_LIB}" \
X		PREFIX="${PREFIX}" X11BASE="${X11BASE}"
XPLIST_SUB+=	RUBY_ARCH="${RUBY_ARCH}"
X
XRUBY_ARCH=	${ARCH}-freebsd${OSREL}
X
XBRANCH_NAME=	1.2
X
X# Set these vars as the version numbers (without decimal points) of Tcl/Tk
X# you want to use with Ruby/Tk.
X# e.g.: make TCL_VERSION=42 TK_VERSION=76 WITH_TCL_JP=yes build
XTCL_VERSION?=	80
XTK_VERSION?=	80
X.if defined(WITH_TCL_JP)
XTCL_CATEGORY=	japanese
XTK_CATEGORY=	japanese
XTCL_JP=		jp
X.else
XTCL_CATEGORY=	lang
XTK_CATEGORY=	x11-toolkits
XTCL_JP=		# empty
X.endif
X
XTCL_LIB=	tcl${TCL_VERSION}${TCL_JP}
XTK_LIB=		tk${TK_VERSION}${TCL_JP}
X
XRUBY=		${PREFIX}/bin/ruby
XEXTS=		tcltklib tk
X
Xdo-configure:
X.for dir in ${EXTS}
X	@${ECHO_MSG} "Configuring in ${dir}..."
X	@cd ${WRKSRC}/${dir}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb
X.endfor
X
Xdo-build:
X.for dir in ${EXTS}
X	@${ECHO_MSG} "Building in ${dir}..."
X	@cd ${WRKSRC}/${dir}; ${SETENV} ${MAKE_ENV} ${MAKE} ${ALL_TARGET}
X.endfor
X
Xdo-install:
X.for dir in ${EXTS}
X	@${ECHO_MSG} "Installing in ${dir}..."
X	@cd ${WRKSRC}/${dir}; ${SETENV} ${MAKE_ENV} ${MAKE} ${INSTALL_TARGET}
X.endfor
X
X.include <bsd.port.mk>
END-of-rubytk/Makefile
exit

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990402023206S.yasuf>