wok view ruby-gtk2/receipt @ rev 24141
linux: add r8188eu.ko
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 14 20:30:13 2021 +0000 (2021-11-14) |
parents | eb6049f398cb |
children | 29df00e1e19d |
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 SOURCE="ruby-gnome2-all"
17 TARBALL="$SOURCE-$VERSION.tar.gz"
18 WEB_SITE="http://ruby-gnome2.sourceforge.jp/"
19 WGET_URL="$SF_MIRROR/ruby-gnome2/$TARBALL"
21 DEPENDS="ruby gtk+ xorg-libXp xorg-libXxf86vm"
22 BUILD_DEPENDS="ruby ruby-dev gtk+-dev xorg-libXp-dev xorg-libXxf86vm-dev ruby-pkgconfig"
24 TAGS="ruby programming gtk development"
26 current_version()
27 {
28 local PKG=ruby-gnome2
29 wget -O - https://sourceforge.net/projects/$PKG/files/$PKG 2>/dev/null | \
30 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
31 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
32 }
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 cd $src
38 sed -i 's|<glib/.*|<glib.h>|' glib2/ext/glib2/rbglib_*.c
40 # Select the parts to compile here:
41 for LIB in $SELECTED_LIBS; do
42 ruby extconf.rb $LIB && \
43 make $MAKEFLAGS && \
44 make DESTDIR=$DESTDIR install
45 done
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr
53 cp -a $install/usr $fs/
54 }