commit:     771d71529727437298f4d56976dd3cf8ef7747f9
Author:     [email protected] <badhabits <AT> riseup <DOT> net>
AuthorDate: Sun Jul 23 05:45:26 2023 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sun Jul 23 05:47:56 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=771d7152

media-gfx/ahoviewer: add 2.0.0_pre20220827

Closes: https://bugs.gentoo.org/910702
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 media-gfx/ahoviewer/Manifest                       |  1 +
 .../ahoviewer/ahoviewer-2.0.0_pre20220827.ebuild   | 81 ++++++++++++++++++++++
 2 files changed, 82 insertions(+)

diff --git a/media-gfx/ahoviewer/Manifest b/media-gfx/ahoviewer/Manifest
index 1a98e9f8c6a9..66ae64b66453 100644
--- a/media-gfx/ahoviewer/Manifest
+++ b/media-gfx/ahoviewer/Manifest
@@ -1 +1,2 @@
 DIST ahoviewer-2.0.0_pre20220124.tar.gz 502882 BLAKE2B 
9476c42dd36615f9106b6db0386b20c8922092fe68674f7a4439ca64458c00e3c1943a7402aed752ec91395e0684ce7cd89b0ac2de7f198edb39ebccef782fbd
 SHA512 
0cf01c7011ae506fcff9700c46a06a57fdccc8f8a274d86a8438c926f0513e4e5851bdb37cb6ee7f8b673894938aafa7c2cb485773db04b977ec5f8b8634da3e
+DIST ahoviewer-2.0.0_pre20220827.tar.gz 502441 BLAKE2B 
3d784a729a5221f457e0e9378f6baf5bdac6bbd800658467c7abf8c5c402da9a10357f3bb9642acce2390c0cf98fd236ff82f707ff1ce189bac079fe275cc89b
 SHA512 
e9d20eb69c03417ca9d7cb708bbf69056c0ee525c7e7da55d273af72f74d038210f10841a07add839c171b473ce338880736cf874a58aa572f35393c86021ac1

diff --git a/media-gfx/ahoviewer/ahoviewer-2.0.0_pre20220827.ebuild 
b/media-gfx/ahoviewer/ahoviewer-2.0.0_pre20220827.ebuild
new file mode 100644
index 000000000000..fd77e86d0a8d
--- /dev/null
+++ b/media-gfx/ahoviewer/ahoviewer-2.0.0_pre20220827.ebuild
@@ -0,0 +1,81 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson xdg
+
+MY_COMMIT="42e16f94b78496e3e346f0d127baa569039a6757"
+
+DESCRIPTION="A GTK image viewer, manga reader, and booru browser"
+HOMEPAGE="https://github.com/ahodesuka/ahoviewer";
+SRC_URI="https://github.com/ahodesuka/ahoviewer/archive/${MY_COMMIT}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="keyring gnutls +gstreamer plugins +rar +ssl +zip"
+
+DEPEND="dev-cpp/atkmm:0
+       dev-cpp/glibmm:2
+       dev-cpp/gtkmm:3.0
+       dev-cpp/pangomm:1.4
+       dev-libs/glib:2
+       dev-libs/libconfig:=[cxx]
+       dev-libs/libsigc++:2
+       dev-libs/libxml2:2
+       media-libs/libnsgif
+       net-misc/curl
+       x11-libs/gdk-pixbuf:2
+       x11-libs/gtk+:3
+       keyring? ( app-crypt/libsecret )
+       gstreamer? (
+               media-libs/gst-plugins-bad:1.0
+               media-libs/gstreamer:1.0
+       )
+       plugins? (
+               dev-libs/gobject-introspection
+               dev-libs/libpeas
+       )
+       rar? ( app-arch/unrar:= )
+       ssl? (
+               gnutls? (
+                       dev-libs/libgcrypt:=
+                       net-libs/gnutls:=
+                       net-misc/curl[curl_ssl_gnutls]
+               )
+               !gnutls? (
+                       dev-libs/openssl:=
+                       net-misc/curl[curl_ssl_openssl]
+               )
+       )
+       zip? ( dev-libs/libzip:= )
+"
+RDEPEND="${DEPEND}
+       gstreamer? (
+               media-libs/gst-plugins-base:1.0[X]
+               media-libs/gst-plugins-good:1.0
+               || (
+                       media-plugins/gst-plugins-vpx
+                       media-plugins/gst-plugins-libav
+               )
+       )"
+
+# In future (-beta), pull https://github.com/ahodesuka/ahoviewer-plugins
+# directly via SRC_URI="plugins? ( )", or add as a separate package. It
+# depends on how the plugins are handled.
+#PDEPEND="plugins? ( x11-misc/ahoviewer-plugins )"
+
+S="${WORKDIR}/ahoviewer-${MY_COMMIT}"
+
+src_configure() {
+       local emesonargs=(
+               $(meson_feature keyring libsecret)
+               $(meson_feature gstreamer)
+               $(meson_feature plugins libpeas)
+               $(meson_feature rar libunrar)
+               $(meson_feature zip libzip)
+       )
+
+       meson_src_configure
+}

Reply via email to