# HG changeset patch # User Christophe Lincoln # Date 1333993361 -7200 # Node ID 4a88534591b7dc58d440d788c904ec4094ece8b8 # Parent d2dd1c452fcefcd8604adf6469563d486bd7104f readd ruby-gtk2 receipt (was missing) diff -r d2dd1c452fce -r 4a88534591b7 ruby-gtk2/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ruby-gtk2/receipt Mon Apr 09 19:42:41 2012 +0200 @@ -0,0 +1,43 @@ +# SliTaz package receipt. + +# Note: uses the full Ruby/GNOME2 package but compiles only the selected +# GTK+ & Glade parts. Select parts to compile on the following line. +# Any unwanted extras (i.e. GNOME stuff) will be ignored. + +SELECTED_LIBS="glib2 pango atk gdk_pixbuf2 libglade gtk2" + +PACKAGE="ruby-gtk2" +VERSION="1.0.3" +CATEGORY="development" +SHORT_DESC="GTK+ bindings for Ruby." +MAINTAINER="ben@seawolfsanctuary.com" +SOURCE="ruby-gnome2-all" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://ruby-gnome2.sourceforge.jp/" +WGET_URL="$SF_MIRROR/ruby-gnome2/$TARBALL" + +DEPENDS="ruby gtk+ xorg-libXp xorg-libXxf86vm" +BUILD_DEPENDS="ruby ruby-dev gtk+-dev xorg-libXp-dev xorg-libXxf86vm-dev ruby-pkgconfig" + +TAGS="ruby programming gtk development" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + + # Select the parts to compile here: + for LIB in $SELECTED_LIBS; do + ruby extconf.rb $LIB && \ + make $MAKEFLAGS && \ + make DESTDIR=$DESTDIR install + done + +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $_pkg/usr $fs/ +}