commit:     1345227af1ae232dc35e626d37e67b50f7c941f3
Author:     dsaf <ghostyn678+git <AT> gmail <DOT> com>
AuthorDate: Mon Nov  3 16:17:14 2025 +0000
Commit:     dsaf <ghostyn678+git <AT> gmail <DOT> com>
CommitDate: Mon Nov  3 16:17:14 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1345227a

media-gfx/mirage: fix style, add 9999

Signed-off-by: dsaf <ghostyn678+git <AT> gmail.com>

 media-gfx/mirage/mirage-0.11.2.ebuild              | 22 ++++++++++------------
 .../{mirage-0.11.2.ebuild => mirage-9999.ebuild}   | 22 ++++++++++------------
 2 files changed, 20 insertions(+), 24 deletions(-)

diff --git a/media-gfx/mirage/mirage-0.11.2.ebuild 
b/media-gfx/mirage/mirage-0.11.2.ebuild
index 6df0859a99..fe9c2b29d8 100644
--- a/media-gfx/mirage/mirage-0.11.2.ebuild
+++ b/media-gfx/mirage/mirage-0.11.2.ebuild
@@ -1,21 +1,27 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
 DISTUTILS_EXT=1
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..14} )
+PYTHON_COMPAT=( python3_{11..14} )
 
 inherit distutils-r1 xdg
 
 DESCRIPTION="Fast and simple image viewer based on Python and GTK"
 HOMEPAGE="https://gitlab.com/thomasross/mirage/";
-SRC_URI="https://gitlab.com/thomasross/mirage/-/archive/${PV}/${P}.tar.bz2";
+
+if [[ ${PV} == *9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://gitlab.com/thomasross/mirage.git";
+else
+       
SRC_URI="https://gitlab.com/thomasross/mirage/-/archive/${PV}/${P}.tar.bz2";
+       KEYWORDS="~amd64"
+fi
 
 LICENSE="GPL-3"
 SLOT="0"
-KEYWORDS="~amd64"
 
 RDEPEND="
        >=dev-python/pygobject-3.29.3[${PYTHON_USEDEP},cairo]
@@ -32,11 +38,3 @@ BDEPEND="
        dev-util/glib-utils
        sys-devel/gettext
 "
-
-pkg_postinst() {
-       xdg_pkg_postinst
-}
-
-pkg_postrm() {
-       xdg_pkg_postrm
-}

diff --git a/media-gfx/mirage/mirage-0.11.2.ebuild 
b/media-gfx/mirage/mirage-9999.ebuild
similarity index 68%
copy from media-gfx/mirage/mirage-0.11.2.ebuild
copy to media-gfx/mirage/mirage-9999.ebuild
index 6df0859a99..fe9c2b29d8 100644
--- a/media-gfx/mirage/mirage-0.11.2.ebuild
+++ b/media-gfx/mirage/mirage-9999.ebuild
@@ -1,21 +1,27 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
 DISTUTILS_EXT=1
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..14} )
+PYTHON_COMPAT=( python3_{11..14} )
 
 inherit distutils-r1 xdg
 
 DESCRIPTION="Fast and simple image viewer based on Python and GTK"
 HOMEPAGE="https://gitlab.com/thomasross/mirage/";
-SRC_URI="https://gitlab.com/thomasross/mirage/-/archive/${PV}/${P}.tar.bz2";
+
+if [[ ${PV} == *9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://gitlab.com/thomasross/mirage.git";
+else
+       
SRC_URI="https://gitlab.com/thomasross/mirage/-/archive/${PV}/${P}.tar.bz2";
+       KEYWORDS="~amd64"
+fi
 
 LICENSE="GPL-3"
 SLOT="0"
-KEYWORDS="~amd64"
 
 RDEPEND="
        >=dev-python/pygobject-3.29.3[${PYTHON_USEDEP},cairo]
@@ -32,11 +38,3 @@ BDEPEND="
        dev-util/glib-utils
        sys-devel/gettext
 "
-
-pkg_postinst() {
-       xdg_pkg_postinst
-}
-
-pkg_postrm() {
-       xdg_pkg_postrm
-}

Reply via email to