# 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" SELECTED_LIBS="glib2 pango atk gdk_pixbuf2 gtk2" PACKAGE="ruby-gtk2" VERSION="1.0.3" CATEGORY="development" SHORT_DESC="GTK+ bindings for Ruby." MAINTAINER="ben@seawolfsanctuary.com" LICENSE="LGPL2.1" 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" current_version() { local PKG=ruby-gnome2 wget -O - https://sourceforge.net/projects/$PKG/files/$PKG 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q" } # Rules to configure and make the package. compile_rules() { cd $src sed -i 's||' glib2/ext/glib2/rbglib_*.c # 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 $install/usr $fs/ }