wok view ruby-gtk2/receipt @ rev 25624
Add opendkim
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 08 16:45:57 2023 +0000 (12 months ago) |
parents | 4bae0fb81a17 |
children |
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 # What is the latest version available today?
27 current_version()
28 {
29 local PKG=ruby-gnome2
30 wget -O - https://sourceforge.net/projects/$PKG/files/$PKG 2>/dev/null | \
31 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
32 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
33 }
35 # Rules to configure and make the package.
36 compile_rules()
37 {
38 cd $src
39 sed -i 's|<glib/.*|<glib.h>|' glib2/ext/glib2/rbglib_*.c
41 # Select the parts to compile here:
42 for LIB in $SELECTED_LIBS; do
43 ruby extconf.rb $LIB && \
44 make $MAKEFLAGS && \
45 make DESTDIR=$DESTDIR install
46 done
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $fs/usr
54 cp -a $install/usr $fs/
55 }