wok annotate ruby-gtk2/receipt @ rev 6074
Add: ruby-gtk2 (0.19.4) - GTK+ bindings for Ruby.
author | Ben Arnold <ben@seawolfsanctuary.com> |
---|---|
date | Fri Aug 27 14:20:01 2010 +0100 (2010-08-27) |
parents | |
children | 8f653336c581 |
rev | line source |
---|---|
ben@6074 | 1 # SliTaz package receipt. |
ben@6074 | 2 |
ben@6074 | 3 # Note: uses the full Ruby/GNOME2 package but compiles only the selected |
ben@6074 | 4 # GTK+ & Glade parts. Select parts to compile on the following line. |
ben@6074 | 5 # Any unwanted extras (i.e. GNOME stuff) will be ignored. |
ben@6074 | 6 |
ben@6074 | 7 SELECTED_LIBS="glib pango atk gdkpixbuf gtk libglade" |
ben@6074 | 8 |
ben@6074 | 9 PACKAGE="ruby-gtk2" |
ben@6074 | 10 VERSION="0.19.4" |
ben@6074 | 11 CATEGORY="development" |
ben@6074 | 12 SHORT_DESC="GTK+ bindings for Ruby." |
ben@6074 | 13 MAINTAINER="ben@seawolfsanctuary.com" |
ben@6074 | 14 |
ben@6074 | 15 TARBALL="ruby-gnome2-all-$VERSION.tar.gz" |
ben@6074 | 16 WEB_SITE="http://ruby-gnome2.sourceforge.jp/" |
ben@6074 | 17 WGET_URL="http://download.sourceforge.net/project/ruby-gnome2/ruby-gnome2/ruby-gnome2-$VERSION/$TARBALL" |
ben@6074 | 18 |
ben@6074 | 19 DEPENDS="ruby gtk+ GConf startup-notification libpthread-stubs libwnck xorg-libXp xorg-libXxf86vm" |
ben@6074 | 20 BUILD_DEPENDS="ruby ruby-dev gtk+-dev libglade-dev GConf GConf-dev startup-notification-dev \ |
ben@6074 | 21 libpthread-stubs libwnck-dev xorg-libXp-dev xorg-libXxf86vm-dev" |
ben@6074 | 22 |
ben@6074 | 23 TAGS="ruby programming gtk development" |
ben@6074 | 24 |
ben@6074 | 25 # Rules to configure and make the package. |
ben@6074 | 26 compile_rules() |
ben@6074 | 27 { |
ben@6074 | 28 echo "Creating link... " && \ |
ben@6074 | 29 ln -s ruby-gnome2-all-$VERSION $PACKAGE-$VERSION |
ben@6074 | 30 status |
ben@6074 | 31 |
ben@6074 | 32 cd $src |
ben@6074 | 33 ruby extconf.rb && \ |
ben@6074 | 34 make -j4 && \ |
ben@6074 | 35 make DESTDIR=$PWD/_pkg install |
ben@6074 | 36 |
ben@6074 | 37 # Select the parts to compile here: |
ben@6074 | 38 for LIB in $SELECTED_LIBS; do |
ben@6074 | 39 ruby extconf.rb $LIB && \ |
ben@6074 | 40 make -j4 && \ |
ben@6074 | 41 make DESTDIR=$PWD/_pkg install |
ben@6074 | 42 done |
ben@6074 | 43 |
ben@6074 | 44 } |
ben@6074 | 45 |
ben@6074 | 46 # Rules to gen a SliTaz package suitable for Tazpkg. |
ben@6074 | 47 genpkg_rules() |
ben@6074 | 48 { |
ben@6074 | 49 mkdir -p $fs/usr |
ben@6074 | 50 cp -a $_pkg/usr $fs/ |
ben@6074 | 51 } |