# HG changeset patch # User Aleksej Bobylev # Date 1356060363 0 # Node ID defeb8879c391fd71494c79ace56e75527b3bff8 # Parent ba9a10a1fef40f889784d5633f53121447e44abb galculator: up 2.0.1 diff -r ba9a10a1fef4 -r defeb8879c39 galculator/receipt --- a/galculator/receipt Thu Dec 20 16:06:17 2012 +0000 +++ b/galculator/receipt Fri Dec 21 03:26:03 2012 +0000 @@ -1,34 +1,33 @@ # SliTaz package receipt. PACKAGE="galculator" -VERSION="1.3.4" +VERSION="2.0.1" CATEGORY="system-tools" SHORT_DESC="Graphical scientific calculator." MAINTAINER="pankso@slitaz.org" -DEPENDS="gtk+ libglade xorg-libXdamage" -BUILD_DEPENDS="perl pkg-config gtk+-dev libglade-dev xorg-xproto intltool" +WEB_SITE="http://galculator.sourceforge.net/" TARBALL="$PACKAGE-$VERSION.tar.gz" -WEB_SITE="http://galculator.sourceforge.net/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" +DEPENDS="gtk+" +BUILD_DEPENDS="gtk+-dev" + # Rules to configure and make the package. compile_rules() { - cd $src + patch -p1 < $stuff/galculator-2.0.1-gtk2.patch + # Binutils 2.22 break many packages build without LDFLAGS set correctly. export LDFLAGS="-Wl,--copy-dt-needed-entries" - ./configure \ - --prefix=/usr \ - $CONFIGURE_ARGS && + ./configure $CONFIGURE_ARGS && make && - make DESTDIR=$DESTDIR install + make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share - cp -a $_pkg/usr/bin $fs/usr - cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share + cp -a $install/usr/bin $fs/usr + cp -a $install/usr/share/$PACKAGE $fs/usr/share } - diff -r ba9a10a1fef4 -r defeb8879c39 galculator/stuff/galculator-2.0.1-gtk2.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/galculator/stuff/galculator-2.0.1-gtk2.patch Fri Dec 21 03:26:03 2012 +0000 @@ -0,0 +1,31 @@ +--- configure ++++ configure +@@ -808,7 +808,6 @@ + enable_maintainer_mode + enable_dependency_tracking + enable_nls +-enable_gtk3 + enable_shared + enable_static + with_pic +@@ -4798,20 +4797,7 @@ + fi + + +-# Check whether --enable-gtk3 was given. +-if test "${enable_gtk3+set}" = set; then : +- enableval=$enable_gtk3; enable_gtk3="${enableval}" +-else +- enable_gtk3="yes" +- +-fi +- +- +-if test x"$enable_gtk3" = x"yes"; then +- pkg_modules="gtk+-3.0" +-else + pkg_modules="gtk+-2.0 >= 2.16.0" +-fi + + + diff -r ba9a10a1fef4 -r defeb8879c39 galculator/stuff/galculator.desktop --- a/galculator/stuff/galculator.desktop Thu Dec 20 16:06:17 2012 +0000 +++ b/galculator/stuff/galculator.desktop Fri Dec 21 03:26:03 2012 +0000 @@ -1,18 +1,25 @@ [Desktop Entry] -Name=Scientific Calculator +Version=1.0 +Name=Galculator Name[fr]=Calculatrice scientifique Name[pt]=Calculadora Científica +Name[ru]=Инженерный калькулятор Name[zh_CN]=科学计算器 Comment=Perform simple and scientific calculations -Comment[de]=Ausführen von einfachen und wissenschaftlichen Berechnungen +Comment[da_DK]=Udfør simple og videnskabelige bereginiger +Comment[de]=Ausführen von einfachen und wissenschaftlichen Berechnungen +Comment[ja]=単純な科学計算を実行します +Comment[kk_KZ]=Қарапайым және инженерлік санауларға арналған Comment[pl]=Wykonaj proste lub naukowe obliczenia -Comment[pt_BR]=Executa cálculos simples e científicos -Comment[sk]=Kalkulačka na jednoduché i vedecké výpočty +Comment[pt]=Executa cálculos simples e científicos +Comment[pt_BR]=Executa cálculos simples e científicos +Comment[sk]=Kalkulačka na jednoduché i vedecké výpočty +Comment[sv]=Genomför enkla och vetenskapliga beräkningar Comment[zh_CN]=科学计算器 +Comment[zh_TW]=進行簡單和科學的計算 Exec=galculator Icon=galculator Terminal=false Type=Application -Categories=Application;Utility; +Categories=Utility; StartupNotify=true -Encoding=UTF-8