commit:     5fab7f7a24c65dc936981b204cda628825e6b8c1
Author:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 25 07:31:37 2024 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Wed Sep 25 08:02:11 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fab7f7a

media-gfx/geeqie: add 2.5

Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>

 media-gfx/geeqie/Manifest                          |   2 +
 .../geeqie/files/geeqie-2.5-test-ancillary.patch   |  27 +++++
 media-gfx/geeqie/geeqie-2.5.ebuild                 | 112 +++++++++++++++++++++
 3 files changed, 141 insertions(+)

diff --git a/media-gfx/geeqie/Manifest b/media-gfx/geeqie/Manifest
index a8bb11e9e73c..0b638975cbf3 100644
--- a/media-gfx/geeqie/Manifest
+++ b/media-gfx/geeqie/Manifest
@@ -1,2 +1,4 @@
 DIST geeqie-2.4-docs.tar.xz 364536 BLAKE2B 
688720808c8e4543455259966aef726bf56a821890a78e4757d9d1fd02ce67217461808d9697b331b2a94841bf3581b25242a7e5c9c9a3f5b02209a566b09c16
 SHA512 
07bca33c347f448ee853ea60daf22c9cdace458b6ce6b3f4ced9b343a965370c51d7a872d5279852b7a83a1de51c8529a668f7d62a031bcec1fdde8b9bfbf9cb
 DIST geeqie-2.4.tar.xz 2178572 BLAKE2B 
df24f0b5d443cbd2033c0b382fe0d846c9073e8966aa736f647e34930e44083b9e44252c554578548a13c12c1b1a5a48bb7795f2fda8b8688a63ef402a257334
 SHA512 
7e0f5dff21e38a41adf0a793bd82652c5d639e84ab49403517f4b1dae042bfc5f4d02e54b54928e04a2397300acb04b130347df0be5637ee48634f5865ad346b
+DIST geeqie-2.5-docs.tar.xz 395716 BLAKE2B 
177130f3a5afbf5791372fc2550f4443456a2bb3aad755774cf337362c38b1b20183eda311e245493a0ad9b8975747721ec5639d46135a9ee3f27318db360126
 SHA512 
0b8f6b165ec0feb38c2479054b1fa079bd08f053cf439cf19e0419f11b1fa3ba533adbb781022f401f599f9d83aca44e8613d63b82b6848f14fc7076736b9d1a
+DIST geeqie-2.5.tar.xz 2224492 BLAKE2B 
911ea2e338c470255c70e83257b693c51b1171ed24f4b737d291cfd5ff20d8b7b39ba69e46f831ede33ce30d41945bb3de754b2a1c245dcff98f16633f31e562
 SHA512 
c1be6c5d9f7f7609dfab97320d79a4830eb866f000c3c52ea8ab2b69a1ba793b322dbab3f614572e1d6fc815d64bfeaf3ddd39dd633a5c87d7008b6afe35be21

diff --git a/media-gfx/geeqie/files/geeqie-2.5-test-ancillary.patch 
b/media-gfx/geeqie/files/geeqie-2.5-test-ancillary.patch
new file mode 100644
index 000000000000..ce0802d418ca
--- /dev/null
+++ b/media-gfx/geeqie/files/geeqie-2.5-test-ancillary.patch
@@ -0,0 +1,27 @@
+diff -Naur geeqie-2.5.orig/meson.build geeqie-2.5/meson.build
+--- geeqie-2.5.orig/meson.build        2024-09-21 17:11:19.000000000 +0200
++++ geeqie-2.5/meson.build     2024-09-25 09:30:11.624093709 +0200
+@@ -844,12 +844,6 @@
+     summary({'lua' : ['Test runs:', false]}, section : 'Testing', bool_yn : 
true)
+ endif
+ 
+-# Ancillary files test
+-test_ancillary_files_sh = find_program('test-ancillary-files.sh', dirs : 
scriptsdir, required : true)
+-test('Ancillary files', test_ancillary_files_sh, args: 
[meson.current_source_dir()], timeout: 100, suite : 'analysis')
+-
+-summary({'Ancillary files' : ['Test runs:', true]}, section : 'Testing', 
bool_yn : true)
+-
+ # Unit tests
+ if conf_data.get('ENABLE_UNIT_TESTS', 0) == 1
+     test('Unit tests', isolate_test_sh, args: [geeqie_exe.full_path(), 
'--run-unit-tests'], suite : 'unit')
+diff -Naur geeqie-2.5.orig/scripts/untranslated-text.sh 
geeqie-2.5/scripts/untranslated-text.sh
+--- geeqie-2.5.orig/scripts/untranslated-text.sh       2024-09-21 
17:11:19.000000000 +0200
++++ geeqie-2.5/scripts/untranslated-text.sh    2024-09-25 09:30:44.567101060 
+0200
+@@ -68,6 +68,7 @@
+ MonoSpace
+ N_(
+ NikonTag
++Néstor
+ Pause
+ PixbufRenderer
+ PluginsMenu

diff --git a/media-gfx/geeqie/geeqie-2.5.ebuild 
b/media-gfx/geeqie/geeqie-2.5.ebuild
new file mode 100644
index 000000000000..8b572c0532f3
--- /dev/null
+++ b/media-gfx/geeqie/geeqie-2.5.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+LUA_COMPAT=( lua5-{3,4} )
+
+inherit lua-single meson optfeature xdg
+
+DESCRIPTION="A lightweight GTK image viewer forked from GQview"
+HOMEPAGE="https://www.geeqie.org";
+SRC_URI="https://github.com/BestImageViewer/${PN}/releases/download/v${PV}/${P}.tar.xz
+       https://dev.gentoo.org/~voyageur/distfiles/${P}-docs.tar.xz";
+# Doc build:
+# clone git at matching tag
+# mkdir build; ./gen_changelog.sh . build;
+# pandoc README.md -o build/README.html
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc ~x86"
+IUSE="debug djvu exif ffmpegthumbnailer heif jpeg jpeg2k jpegxl lcms lua map 
pdf raw spell tiff webp xmp zip"
+
+RDEPEND="gnome-extra/zenity
+       virtual/libintl
+       x11-libs/gtk+:3
+       djvu? ( app-text/djvu )
+       exif? ( >=media-gfx/exiv2-0.17:=[xmp?] )
+       ffmpegthumbnailer? ( media-video/ffmpegthumbnailer )
+       heif? ( >=media-libs/libheif-1.3.2 )
+       jpeg2k? ( >=media-libs/openjpeg-2.3.0:2= )
+       jpeg? ( media-libs/libjpeg-turbo:= )
+       jpegxl? ( >=media-libs/libjxl-0.3.7:= )
+       lcms? ( media-libs/lcms:2 )
+       lua? ( ${LUA_DEPS} )
+       map? ( media-libs/clutter-gtk
+               media-libs/libchamplain:0.12[gtk] )
+       pdf? ( >=app-text/poppler-0.62[cairo] )
+       raw? ( >=media-libs/libraw-0.20:= )
+       spell? ( app-text/gspell )
+       tiff? ( media-libs/tiff:= )
+       webp? ( gui-libs/gdk-pixbuf-loader-webp:= )
+       zip? ( >=app-arch/libarchive-3.4.0 )"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       || ( dev-util/xxdi app-editors/vim-core )
+       dev-util/glib-utils
+       sys-devel/gettext
+       virtual/pkgconfig"
+
+REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )"
+
+PATCHES=( "${FILESDIR}"/${PN}-2.5-test-ancillary.patch )
+
+pkg_setup() {
+       # Do not require setting LUA_SINGLE_TARGET if lua is not used
+       use lua && lua-single_pkg_setup
+}
+
+src_prepare() {
+       default
+
+       # Disable doc build - not useful most of the time per upstream
+       sed -e "/subdir('doc')/d" -i meson.build || die
+}
+
+src_configure() {
+       local emesonargs=(
+               -Dgq_helpdir="share/doc/${PF}"
+               -Dgq_htmldir="share/doc/${PF}/html"
+               $(meson_use debug)
+               $(meson_feature djvu)
+               $(meson_feature exif exiv2)
+               $(meson_feature ffmpegthumbnailer videothumbnailer)
+               $(meson_feature heif)
+               $(meson_feature jpeg)
+               $(meson_feature jpeg2k j2k)
+               $(meson_feature jpegxl)
+               $(meson_feature lcms cms)
+               $(meson_feature lua)
+               $(meson_feature map gps-map)
+               $(meson_feature pdf)
+               $(meson_feature raw libraw)
+               $(meson_feature spell)
+               $(meson_feature tiff)
+               $(meson_feature zip archive)
+       )
+
+       meson_src_configure
+}
+
+src_install() {
+       meson_src_install
+
+       # Manually generated ChangeLog
+       dodoc "${WORKDIR}"/${P}-docs/*
+
+       # The application needs access to some uncompressed doc files.
+       docompress -x /usr/share/doc/${PF}/AUTHORS
+       docompress -x /usr/share/doc/${PF}/ChangeLog
+       docompress -x /usr/share/doc/${PF}/README.md
+}
+
+pkg_postinst() {
+       xdg_pkg_postinst
+
+       optfeature "Camera import and tethered photography plugins" 
media-gfx/gphoto2
+       optfeature "Lens ID plugin" media-libs/exiftool
+       optfeature "Image crop plugin" "media-libs/exiftool 
media-gfx/imagemagick"
+       optfeature "Image rotate plugin (JPEG)" media-gfx/fbida
+       optfeature "Image rotate plugin (TIFF/PNG)" media-gfx/imagemagick
+       optfeature "Print preview functionality" app-text/evince
+}

Reply via email to