wok-current rev 24597
updated ghex (2.24.0 -> 3.41.1)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 01 17:41:56 2022 +0100 (2022-03-01) |
parents | bed3dd10e11f |
children | bbb38f5d2cd9 |
files | ghex-lang/receipt ghex/receipt ghex/stuff/patches/ghex-ui.xml-3.41.1 ghex/stuff/patches/preferences.c-3.41.1 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ghex-lang/receipt Tue Mar 01 17:41:56 2022 +0100 1.3 @@ -0,0 +1,17 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="ghex-lang" 1.7 +VERSION="3.41.1" 1.8 +CATEGORY="x-window" 1.9 +SHORT_DESC="A simple binary editor - localised messages." 1.10 +MAINTAINER="maintainer@slitaz.org" 1.11 +LICENSE="GPL2" 1.12 +WEB_SITE="https://wiki.gnome.org/Apps/Ghex" 1.13 + 1.14 +WANTED="ghex" 1.15 + 1.16 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.17 +genpkg_rules() 1.18 +{ 1.19 + cook_copy_folders locale 1.20 +}
2.1 --- a/ghex/receipt Tue Mar 01 15:53:52 2022 +0100 2.2 +++ b/ghex/receipt Tue Mar 01 17:41:56 2022 +0100 2.3 @@ -1,19 +1,21 @@ 2.4 # SliTaz package receipt. 2.5 2.6 PACKAGE="ghex" 2.7 -VERSION="2.24.0" 2.8 +VERSION="3.41.1" 2.9 CATEGORY="x-window" 2.10 -SHORT_DESC="GHex is a simple binary editor." 2.11 +SHORT_DESC="A simple binary editor." 2.12 MAINTAINER="samuel_trassare@yahoo.com" 2.13 LICENSE="GPL2" 2.14 -WEB_SITE="https://directory.fsf.org/wiki/Ghex" 2.15 -TARBALL="$PACKAGE-$VERSION.tar.gz" 2.16 -WGET_URL="http://ftp.acc.umu.se/pub/GNOME/sources/$PACKAGE/${VERSION%.*}/$TARBALL" 2.17 +WEB_SITE="https://wiki.gnome.org/Apps/Ghex" 2.18 2.19 -DEPENDS="gtk+ libgnomeui libgnomeprintui libgnome-keyring" 2.20 -BUILD_DEPENDS="gtk+-dev gnome-doc-utils-dev libgnomeui-dev libbonoboui-dev \ 2.21 -libgnome-dev libbonobo-dev libbonoboui-dev libgnome-keyring-dev \ 2.22 -libgnomeprintui-dev intltool" 2.23 +TARBALL="$PACKAGE-$VERSION.tar.xz" 2.24 +WGET_URL="https://download.gnome.org/sources/$PACKAGE/${VERSION%.*}/$TARBALL" 2.25 + 2.26 +SUGGESTED="ghex-lang" 2.27 +DEPENDS="atk gtk+3 libgnome-keyring libgnomeprintui libgnomeui libxml2" 2.28 +BUILD_DEPENDS="atk-dev gtk+3-dev intltool itstool 2.29 + libbonobo-dev libbonoboui-dev libgnome-dev libgnome-keyring-dev 2.30 + libgnomeprintui-dev libgnomeui-dev libxml2-dev meson ninja" 2.31 2.32 # What is the latest version available today? 2.33 current_version() 2.34 @@ -28,28 +30,36 @@ 2.35 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm" 2.36 2.37 # GHex2 cannot display help without Yelp. Removing help references. 2.38 - patch -Np1 -i $stuff/ghex2-remove-help.patch 2.39 - 2.40 - ./configure \ 2.41 - --disable-schemas-install \ 2.42 - --disable-scrollkeeper \ 2.43 - $CONFIGURE_ARGS && 2.44 - make && 2.45 - make DESTDIR=$install install 2.46 +# patch -Np1 -i $stuff/ghex2-remove-help.patch 2.47 + patch --strip=0 --input=$stuff/patches/ghex-ui.xml-3.41.1 2.48 + patch --strip=0 --input=$stuff/patches/preferences.c-3.41.1 2.49 + 2.50 + # Do not create help files 2.51 + sed -i -e "/subdir('help')/d" \ 2.52 + -e "/meson_post_install.py/d" \ 2.53 + meson.build 2.54 + 2.55 + meson _build \ 2.56 + --prefix=/usr && 2.57 + ninja -C _build && 2.58 + ninja -C _build install 2.59 } 2.60 2.61 # Rules to gen a SliTaz package suitable for Tazpkg. 2.62 genpkg_rules() 2.63 { 2.64 - mkdir -p $fs/usr/bin \ 2.65 - $fs/usr/lib \ 2.66 - $fs/usr/share 2.67 - 2.68 - cp -a $install/usr/bin/* $fs/usr/bin 2.69 - cp -ar $install/usr/etc $fs/usr 2.70 - cp -a $install/usr/lib/*so* $fs/usr/lib 2.71 - cp -ar $install/usr/share/applications $fs/usr/share 2.72 - cp -ar $install/usr/share/gnome-2.0 $fs/usr/share 2.73 - cp -ar $install/usr/share/icons $fs/usr/share 2.74 - cp -ar $install/usr/share/locale $fs/usr/share 2.75 + mkdir -p $fs/usr/bin 2.76 + mkdir -p $fs/usr/lib 2.77 + mkdir -p $fs/usr/share 2.78 + 2.79 + cp -a $install/usr/bin/* $fs/usr/bin 2.80 + # 3.41.1 not created 2.81 +# cp -ar $install/usr/etc $fs/usr 2.82 + cp -ar $install/usr/share/glib-2.0 $fs/usr/share 2.83 + cp -a $install/usr/lib/*so* $fs/usr/lib 2.84 + cp -ar $install/usr/share/applications $fs/usr/share 2.85 + cp -ar $install/usr/share/metainfo $fs/usr/share 2.86 + cp -ar $install/usr/share/icons $fs/usr/share 2.87 + # moved to package ghex-lang 2.88 +# cp -ar $install/usr/share/locale $fs/usr/share 2.89 }
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/ghex/stuff/patches/ghex-ui.xml-3.41.1 Tue Mar 01 17:41:56 2022 +0100 3.3 @@ -0,0 +1,10 @@ 3.4 +--- src/ghex-ui.xml.orig 3.5 ++++ src/ghex-ui.xml 3.6 +@@ -52,7 +52,6 @@ 3.7 + <menuitem action="TypeDialog"/> 3.8 + </menu> 3.9 + <menu action="Help"> 3.10 +- <menuitem action="HelpContents"/> 3.11 + <menuitem action="HelpAbout"/> 3.12 + </menu> 3.13 + </menubar>
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/ghex/stuff/patches/preferences.c-3.41.1 Tue Mar 01 17:41:56 2022 +0100 4.3 @@ -0,0 +1,13 @@ 4.4 +--- src/preferences.c.orig 4.5 ++++ src/preferences.c 4.6 +@@ -72,10 +72,6 @@ 4.7 + GTK_STOCK_CLOSE, 4.8 + GTK_RESPONSE_CLOSE); 4.9 + 4.10 +- gtk_dialog_add_button (GTK_DIALOG (pui->pbox), 4.11 +- GTK_STOCK_HELP, 4.12 +- GTK_RESPONSE_HELP); 4.13 +- 4.14 + g_signal_connect(G_OBJECT(pui->pbox), "response", 4.15 + G_CALLBACK(prefs_response_cb), pui); 4.16 +