Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Aug 1999 07:16:56 +0900
From:      yasuf@big.or.jp
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/13308: New port: x11-toolkits/ruby-gtk
Message-ID:  <19990822071656N.yasuf@big.or.jp>

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

>Number:         13308
>Category:       ports
>Synopsis:       New port: x11-toolkits/ruby-gtk
>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:   Sat Aug 21 15:20:01 PDT 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:		ruby-gtk-0.20
  Primary category:	x11-toolkits
  Package description:
	Ruby extension module to use Gtk+.
  Note:
	You need to update the port lang/ruby (PR: ports/13304)
	to use this port.

>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:
#
#	ruby-gtk
#	ruby-gtk/Makefile
#	ruby-gtk/files
#	ruby-gtk/files/md5
#	ruby-gtk/patches
#	ruby-gtk/patches/patch-ae
#	ruby-gtk/pkg
#	ruby-gtk/pkg/COMMENT
#	ruby-gtk/pkg/DESCR
#	ruby-gtk/pkg/PLIST
#
echo c - ruby-gtk
mkdir -p ruby-gtk > /dev/null 2>&1
echo x - ruby-gtk/Makefile
sed 's/^X//' >ruby-gtk/Makefile << 'END-of-ruby-gtk/Makefile'
X# New ports collection makefile for:    ruby-gtk
X# Version required:     0.20
X# Date created:         19 April 1999
X# Whom:                 Yasuhiro Fukuma <yasuf@big.or.jp>
X#
X# $Id$
X#
X
XDISTNAME=	ruby-gtk-0.20
XCATEGORIES=	x11-toolkits
XMASTER_SITES=	http://www.ueda.info.waseda.ac.jp/~igarashi/ruby/ \
X		ftp://ftp.netlab.co.jp/pub/lang/ruby/contrib/ \
X		ftp://ftp.TokyoNet.AD.JP/pub/misc/ruby/contrib/ \
X		ftp://ftp.iij.ad.jp/pub/lang/ruby/contrib/ \
X		ftp://blade.nagaokaut.ac.jp/pub/lang/ruby/contrib/ \
X		ftp://ftp.krnet.ne.jp/pub/ruby/contrib/ \
X		ftp://mirror.nucba.ac.jp/mirror/ruby/contrib/
X
XMAINTAINER=	yasuf@big.or.jp
X
XBUILD_DEPENDS=	ruby:${PORTSDIR}/lang/ruby
XRUN_DEPENDS=	ruby:${PORTSDIR}/lang/ruby
XLIB_DEPENDS=	gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
X
XUSE_XLIB=	yes
XWRKSRC=		${WRKDIR}/gtk
XPLIST_SUB+=	RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
X
XRUBY=		${PREFIX}/bin/ruby
XRUBY_VER=	1.4
XRUBY_ARCH=	${ARCH}-freebsd${OSREL}
X
XGTK_CONFIG?=	${X11BASE}/bin/gtk12-config
X
Xdo-configure:
X	@cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${GTK_CONFIG}
X
Xpost-install:
X	${MKDIR} ${PREFIX}/share/examples/ruby/gtk
X	${INSTALL_DATA} ${WRKSRC}/sample/*.rb ${PREFIX}/share/examples/ruby/gtk
X	${MKDIR} ${PREFIX}/share/examples/ruby/gtk/browser
X	${INSTALL_DATA} ${WRKSRC}/doc/*.rb ${PREFIX}/share/examples/ruby/gtk/browser
X
X.include <bsd.port.mk>
END-of-ruby-gtk/Makefile
echo c - ruby-gtk/files
mkdir -p ruby-gtk/files > /dev/null 2>&1
echo x - ruby-gtk/files/md5
sed 's/^X//' >ruby-gtk/files/md5 << 'END-of-ruby-gtk/files/md5'
XMD5 (ruby-gtk-0.20.tar.gz) = f1baf7fd43dde9ab44cb4e783c8d431c
END-of-ruby-gtk/files/md5
echo c - ruby-gtk/patches
mkdir -p ruby-gtk/patches > /dev/null 2>&1
echo x - ruby-gtk/patches/patch-ae
sed 's/^X//' >ruby-gtk/patches/patch-ae << 'END-of-ruby-gtk/patches/patch-ae'
X--- src/makedefconst.rb.orig	Wed Jul 14 22:40:08 1999
X+++ src/makedefconst.rb	Sat Aug 14 04:10:44 1999
X@@ -113,11 +113,9 @@
X if /mswin32/ =~ PLATFORM
X   makefile.puts("	lib /OUT:\$@ \$?")
X else
X-  makefile.puts("	\$(AR) -rs \$@ \$?")
X+  makefile.puts("	\$(AR) -r \$@ \$?");
X+  makefile.puts("	\$(RANLIB) \$@")
X end
X-makefile.puts("# if your \$(AR) don't accept -s options, test below:")
X-makefile.puts("#	\$(AR) -r \$@");
X-makefile.puts("#	\$(RANLIB) \$@")
X 
X makefile.close
X cfile.close
END-of-ruby-gtk/patches/patch-ae
echo c - ruby-gtk/pkg
mkdir -p ruby-gtk/pkg > /dev/null 2>&1
echo x - ruby-gtk/pkg/COMMENT
sed 's/^X//' >ruby-gtk/pkg/COMMENT << 'END-of-ruby-gtk/pkg/COMMENT'
Xa Ruby interface to Gtk+ toolkits.
END-of-ruby-gtk/pkg/COMMENT
echo x - ruby-gtk/pkg/DESCR
sed 's/^X//' >ruby-gtk/pkg/DESCR << 'END-of-ruby-gtk/pkg/DESCR'
XRuby extension module to use Gtk+.
X
XWWW: http://www.ueda.info.waseda.ac.jp/~igarashi/ruby/gtk.html
X
X- Yasuhiro Fukuma
Xyasuf@big.or.jp
END-of-ruby-gtk/pkg/DESCR
echo x - ruby-gtk/pkg/PLIST
sed 's/^X//' >ruby-gtk/pkg/PLIST << 'END-of-ruby-gtk/pkg/PLIST'
Xlib/ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/gtk.so
Xshare/examples/ruby/gtk/drawing.rb
Xshare/examples/ruby/gtk/helloworld.rb
Xshare/examples/ruby/gtk/text.rb
Xshare/examples/ruby/gtk/texthook.rb
Xshare/examples/ruby/gtk/browser/gtkbrows.rb
Xshare/examples/ruby/gtk/browser/rbbr_gtk.rb
Xshare/examples/ruby/gtk/browser/rbbr_rb.rb
Xshare/examples/ruby/gtk/browser/rbdump.rb
X@dirrm share/examples/ruby/gtk/browser
X@dirrm share/examples/ruby/gtk
END-of-ruby-gtk/pkg/PLIST
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?19990822071656N.yasuf>