commit:     3e412f0ae8c5a73aa7d611084f5fa248b2c18819
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu Jan  1 13:54:49 2026 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Thu Jan  1 13:54:49 2026 +0000
URL:        https://gitweb.gentoo.org/repo/dev/ulm.git/commit/?id=3e412f0a

x11-libs/motif: Add live ebuild

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 x11-libs/motif/motif-2.4.0.ebuild                     | 11 +++++++++--
 .../motif/{motif-2.4.0.ebuild => motif-9999.ebuild}   | 19 ++++++++++---------
 2 files changed, 19 insertions(+), 11 deletions(-)

diff --git a/x11-libs/motif/motif-2.4.0.ebuild 
b/x11-libs/motif/motif-2.4.0.ebuild
index 88f0b1e..2b0adad 100644
--- a/x11-libs/motif/motif-2.4.0.ebuild
+++ b/x11-libs/motif/motif-2.4.0.ebuild
@@ -5,13 +5,20 @@ EAPI=8
 
 inherit autotools flag-o-matic multilib-minimal toolchain-funcs virtualx
 
+if [[ ${PV} = 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/thentenaar/motif.git";
+       EGIT_BRANCH="master"
+else
+       
SRC_URI="https://github.com/thentenaar/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz"
+       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 
~riscv ~sparc ~x86 ~x64-macos ~x64-solaris"
+fi
+
 DESCRIPTION="The Motif user interface component toolkit"
 HOMEPAGE="https://github.com/thentenaar/motif";
-SRC_URI="https://github.com/thentenaar/${PN}/archive/refs/tags/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="LGPL-2.1+ MIT"
 SLOT="0/5"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv 
~sparc ~x86 ~x64-macos ~x64-solaris"
 IUSE="examples jpeg png static-libs unicode +xcursor xft +xrandr +xrender"
 REQUIRED_USE="test? ( jpeg png xft )"
 

diff --git a/x11-libs/motif/motif-2.4.0.ebuild 
b/x11-libs/motif/motif-9999.ebuild
similarity index 88%
copy from x11-libs/motif/motif-2.4.0.ebuild
copy to x11-libs/motif/motif-9999.ebuild
index 88f0b1e..625b8f5 100644
--- a/x11-libs/motif/motif-2.4.0.ebuild
+++ b/x11-libs/motif/motif-9999.ebuild
@@ -1,17 +1,24 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
 inherit autotools flag-o-matic multilib-minimal toolchain-funcs virtualx
 
+if [[ ${PV} = 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/thentenaar/motif.git";
+       EGIT_BRANCH="master"
+else
+       
SRC_URI="https://github.com/thentenaar/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz"
+       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 
~riscv ~sparc ~x86 ~x64-macos ~x64-solaris"
+fi
+
 DESCRIPTION="The Motif user interface component toolkit"
 HOMEPAGE="https://github.com/thentenaar/motif";
-SRC_URI="https://github.com/thentenaar/${PN}/archive/refs/tags/v${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="LGPL-2.1+ MIT"
 SLOT="0/5"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv 
~sparc ~x86 ~x64-macos ~x64-solaris"
 IUSE="examples jpeg png static-libs unicode +xcursor xft +xrandr +xrender"
 REQUIRED_USE="test? ( jpeg png xft )"
 
@@ -39,12 +46,6 @@ DEPEND="${RDEPEND}
 BDEPEND="sys-devel/flex
        dev-util/byacc"
 
-PATCHES=(
-       "${FILESDIR}/${P}-Mrmwcrw.patch"
-       "${FILESDIR}/${P}-XmString.patch"
-       "${FILESDIR}/${P}-tests.patch"
-)
-
 src_prepare() {
        default
 

Reply via email to