wok-next view ruby-gtk2/receipt @ rev 20892
linux: up (4.17.7)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jul 20 01:20:51 2018 +0300 (2018-07-20) |
parents | eb6049f398cb |
children | efc1e4b02968 |
line source
1 # SliTaz package receipt.
3 # Note: uses the full Ruby/GNOME2 package but compiles only the selected
4 # GTK+ & Glade parts. Select parts to compile on the following line.
5 # Any unwanted extras (i.e. GNOME stuff) will be ignored.
7 #SELECTED_LIBS="glib2 pango atk gdk_pixbuf2 libglade gtk2"
8 SELECTED_LIBS="glib2 pango atk gdk_pixbuf2 gtk2"
10 PACKAGE="ruby-gtk2"
11 VERSION="1.0.3"
12 CATEGORY="development"
13 SHORT_DESC="GTK+ bindings for Ruby."
14 MAINTAINER="ben@seawolfsanctuary.com"
15 LICENSE="LGPL2.1"
16 WEB_SITE="http://ruby-gnome2.sourceforge.jp/"
17 REPOLOGY="ruby:gnome2"
19 SOURCE="ruby-gnome2-all"
20 TARBALL="$SOURCE-$VERSION.tar.gz"
21 WGET_URL="$SF_MIRROR/ruby-gnome2/$TARBALL"
23 DEPENDS="ruby gtk+ xorg-libXp xorg-libXxf86vm"
24 BUILD_DEPENDS="ruby ruby-dev gtk+-dev xorg-libXp-dev xorg-libXxf86vm-dev ruby-pkgconfig"
26 TAGS="ruby programming gtk development"
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 cd $src
32 sed -i 's|<glib/.*|<glib.h>|' glib2/ext/glib2/rbglib_*.c
34 # Select the parts to compile here:
35 for LIB in $SELECTED_LIBS; do
36 ruby extconf.rb $LIB && \
37 make $MAKEFLAGS && \
38 make DESTDIR=$DESTDIR install
39 done
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr
47 cp -a $install/usr $fs/
48 }