wok rev 13718

galculator: up 2.0.1
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Dec 21 03:26:03 2012 +0000 (2012-12-21)
parents ba9a10a1fef4
children 985d65083db8
files galculator/receipt galculator/stuff/galculator-2.0.1-gtk2.patch galculator/stuff/galculator.desktop
line diff
     1.1 --- a/galculator/receipt	Thu Dec 20 16:06:17 2012 +0000
     1.2 +++ b/galculator/receipt	Fri Dec 21 03:26:03 2012 +0000
     1.3 @@ -1,34 +1,33 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="galculator"
     1.7 -VERSION="1.3.4"
     1.8 +VERSION="2.0.1"
     1.9  CATEGORY="system-tools"
    1.10  SHORT_DESC="Graphical scientific calculator."
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12 -DEPENDS="gtk+ libglade xorg-libXdamage"
    1.13 -BUILD_DEPENDS="perl pkg-config gtk+-dev libglade-dev xorg-xproto intltool"
    1.14 +WEB_SITE="http://galculator.sourceforge.net/"
    1.15  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.16 -WEB_SITE="http://galculator.sourceforge.net/"
    1.17  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.18  
    1.19 +DEPENDS="gtk+"
    1.20 +BUILD_DEPENDS="gtk+-dev"
    1.21 +
    1.22  # Rules to configure and make the package.
    1.23  compile_rules()
    1.24  {
    1.25 -	cd $src
    1.26 +	patch -p1 < $stuff/galculator-2.0.1-gtk2.patch
    1.27 +
    1.28  	# Binutils 2.22 break many packages build without LDFLAGS set correctly.
    1.29  	export LDFLAGS="-Wl,--copy-dt-needed-entries"
    1.30 -	./configure \
    1.31 -		--prefix=/usr \
    1.32 -		$CONFIGURE_ARGS &&
    1.33 +	./configure $CONFIGURE_ARGS &&
    1.34  	make &&
    1.35 -	make DESTDIR=$DESTDIR install
    1.36 +	make install
    1.37  }
    1.38  
    1.39  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.40  genpkg_rules()
    1.41  {
    1.42  	mkdir -p $fs/usr/share
    1.43 -	cp -a $_pkg/usr/bin $fs/usr
    1.44 -	cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
    1.45 +	cp -a $install/usr/bin $fs/usr
    1.46 +	cp -a $install/usr/share/$PACKAGE $fs/usr/share
    1.47  }
    1.48 -
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/galculator/stuff/galculator-2.0.1-gtk2.patch	Fri Dec 21 03:26:03 2012 +0000
     2.3 @@ -0,0 +1,31 @@
     2.4 +--- configure
     2.5 ++++ configure
     2.6 +@@ -808,7 +808,6 @@
     2.7 + enable_maintainer_mode
     2.8 + enable_dependency_tracking
     2.9 + enable_nls
    2.10 +-enable_gtk3
    2.11 + enable_shared
    2.12 + enable_static
    2.13 + with_pic
    2.14 +@@ -4798,20 +4797,7 @@
    2.15 + fi
    2.16 + 
    2.17 + 
    2.18 +-# Check whether --enable-gtk3 was given.
    2.19 +-if test "${enable_gtk3+set}" = set; then :
    2.20 +-  enableval=$enable_gtk3; enable_gtk3="${enableval}"
    2.21 +-else
    2.22 +-  enable_gtk3="yes"
    2.23 +-
    2.24 +-fi
    2.25 +-
    2.26 +-
    2.27 +-if test x"$enable_gtk3" = x"yes"; then
    2.28 +-    pkg_modules="gtk+-3.0"
    2.29 +-else
    2.30 +     pkg_modules="gtk+-2.0 >= 2.16.0"
    2.31 +-fi
    2.32 + 
    2.33 + 
    2.34 + 
     3.1 --- a/galculator/stuff/galculator.desktop	Thu Dec 20 16:06:17 2012 +0000
     3.2 +++ b/galculator/stuff/galculator.desktop	Fri Dec 21 03:26:03 2012 +0000
     3.3 @@ -1,18 +1,25 @@
     3.4  [Desktop Entry]
     3.5 -Name=Scientific Calculator
     3.6 +Version=1.0
     3.7 +Name=Galculator
     3.8  Name[fr]=Calculatrice scientifique
     3.9  Name[pt]=Calculadora Científica
    3.10 +Name[ru]=Инженерный калькулятор
    3.11  Name[zh_CN]=科学计算器
    3.12  Comment=Perform simple and scientific calculations
    3.13 -Comment[de]=Ausführen von einfachen und wissenschaftlichen Berechnungen
    3.14 +Comment[da_DK]=Udfør simple og videnskabelige bereginiger
    3.15 +Comment[de]=Ausführen von einfachen und wissenschaftlichen Berechnungen
    3.16 +Comment[ja]=単純な科学計算を実行します
    3.17 +Comment[kk_KZ]=Қарапайым және инженерлік санауларға арналған
    3.18  Comment[pl]=Wykonaj proste lub naukowe obliczenia
    3.19 -Comment[pt_BR]=Executa cálculos simples e científicos
    3.20 -Comment[sk]=Kalkulačka na jednoduché i vedecké výpočty
    3.21 +Comment[pt]=Executa cálculos simples e científicos
    3.22 +Comment[pt_BR]=Executa cálculos simples e científicos
    3.23 +Comment[sk]=Kalkulačka na jednoduché i vedecké výpočty
    3.24 +Comment[sv]=Genomför enkla och vetenskapliga beräkningar
    3.25  Comment[zh_CN]=科学计算器
    3.26 +Comment[zh_TW]=進行簡單和科學的計算
    3.27  Exec=galculator
    3.28  Icon=galculator
    3.29  Terminal=false
    3.30  Type=Application
    3.31 -Categories=Application;Utility;
    3.32 +Categories=Utility;
    3.33  StartupNotify=true
    3.34 -Encoding=UTF-8