Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=xfcetesting.git;a=commitdiff;h=d38b9d0a26461eeaf998657fe0c3e0b4d2b1cda4

commit d38b9d0a26461eeaf998657fe0c3e0b4d2b1cda4
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Thu Jan 13 22:46:23 2011 +0000

gtk+3-2.99.2-3-i686
*added USE_TOOLS
*force rebuild

diff --git a/source/xlib/gtk+3/FrugalBuild b/source/xlib/gtk+3/FrugalBuild
index ec6829b..af3e268 100644
--- a/source/xlib/gtk+3/FrugalBuild
+++ b/source/xlib/gtk+3/FrugalBuild
@@ -1,14 +1,16 @@
# Compiling time: 2.70 SBU
# Maintainer: bouleetbil <bouleet...@frogdev.info>

+USE_TOOLS=${USE_TOOLS:-"n"}
+
pkgname=gtk+3
_F_gnome_name=gtk+
pkgver=2.99.2
-pkgrel=2
+pkgrel=3
pkgdesc="The GTK+ Toolkit (3.x series)"
depends=('libxext' 'libxfixes' 'cairo' 'libgcc' 'libjpeg' 'libtiff' 'libcups' \
'atk' 'pango' 'libxinerama' 'libxcomposite' 'libxcursor' 'gdk-pixbuf2')
-rodepends=('gnome-icon-theme' 'shared-mime-info' 'gtk+2-tools')
+rodepends=('gnome-icon-theme' 'shared-mime-info')
groups=('xlib')
makedepends=('gtk-doc' 'cups' 'inputproto' 'gobject-introspection')
archs=('i686' 'x86_64' 'ppc')
@@ -24,13 +26,16 @@ if [ "$_F_gnome_git" != "n" ]; then
unset sha1sums
source=($source im-cedilla.conf)
fi
-subpkgs=("${subpkgs[@]}" "$pkgname-tools")
-subdescs=("${subdescs[@]}" "GTK+3 commandline tools.")
-subdepends=("${subdepends[@]}" "glib2")
-subrodepends=("${subrodepends[@]}" "$pkgname>=$pkgver")
-subgroups=("${subgroups[@]}" 'xapps-extra')
-subarchs=("${subarchs[@]}" 'i686 x86_64 ppc')
-
+if Fuse $USE_TOOLS; then
+       subpkgs=("${subpkgs[@]}" "$pkgname-tools")
+       subdescs=("${subdescs[@]}" "GTK+3 commandline tools.")
+       subdepends=("${subdepends[@]}" "glib2")
+       subrodepends=("${subrodepends[@]}" "$pkgname>=$pkgver")
+       subgroups=("${subgroups[@]}" 'xapps-extra')
+       subarchs=("${subarchs[@]}" 'i686 x86_64 ppc')
+else
+       rodepends=("${rodepends[@]}" "gtk+2-tools")
+fi
rodepends=("${rodepends[@]}" "${subpkgs[@]}")

subpkgs=("${subpkgs[@]}" "immodules")
@@ -73,11 +78,17 @@ build() {
Fbuild \
--with-xinput \
--enable-gtk-doc \
-               --disable-rebuilds \
--enable-introspection
-
-       Fsplit $pkgname-tools usr/bin/gtk-update-icon-cache*
-       Fsplit $pkgname-tools usr/share/man/man1/gtk-update-icon-cache*
+       if Fuse $USE_TOOLS; then
+               Fsplit $pkgname-tools usr/bin/gtk-update-icon-cache*
+               Fsplit $pkgname-tools usr/share/man/man1/gtk-update-icon-cache*
+       else
+               #conflicts with gtk2 use gtk2 tools
+               Frm usr/bin/gtk-update-icon-cache
+               Frm usr/share/man/man1/gtk-update-icon-cache.1.gz
+               Frm usr/bin/gtk-builder-convert
+               Frm usr/share/man/man1/gtk-builder-convert.1.gz
+       fi

## -demos
Fsplit $pkgname-demos usr/share/gtk-3.0/demo
@@ -94,12 +105,6 @@ build() {

Fmkdir /etc/gtk-3.0
echo 'gtk-fallback-icon-theme = "gnome"' > $Fdestdir/etc/gtk-3.0/gtkrc || Fdie
-
-       #conflicts with gtk2 use gtk2 tools
-       Frm usr/bin/gtk-update-icon-cache
-       Frm usr/share/man/man1/gtk-update-icon-cache.1.gz
-       Frm usr/bin/gtk-builder-convert
-       Frm usr/share/man/man1/gtk-builder-convert.1.gz
}

# optimization OK
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to