commit: e2e8c30aa11643fced0b5dd64003fe317f795d82 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Feb 23 01:31:06 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Feb 23 01:34:26 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2e8c30a
dev-util/cppunit: add (restore) live ebuild This reverts commit b5e080853cf530fc860a28d1130e3a221779eefd. I suspect this was dropped for bug #811345 because it was stuck on EAPI 7, but see b1e013b0b2c6d9e9226bd5b575b64db5ab9e00c2. It's useful to have a live ebuild to quickly play with changes committed for LO's benefit. Bug: https://bugs.gentoo.org/811345 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-util/cppunit/cppunit-1.15.1_p20240106.ebuild | 19 ++++++++++++------ ...1.15.1_p20240106.ebuild => cppunit-9999.ebuild} | 23 ++++++++++++---------- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/dev-util/cppunit/cppunit-1.15.1_p20240106.ebuild b/dev-util/cppunit/cppunit-1.15.1_p20240106.ebuild index d3eb816ccc1a..3be3e5bdd5a2 100644 --- a/dev-util/cppunit/cppunit-1.15.1_p20240106.ebuild +++ b/dev-util/cppunit/cppunit-1.15.1_p20240106.ebuild @@ -7,15 +7,22 @@ inherit autotools flag-o-matic multilib-minimal DESCRIPTION="C++ port of the famous JUnit framework for unit testing" HOMEPAGE="https://www.freedesktop.org/wiki/Software/cppunit" -SRC_URI=" - https://dev-www.libreoffice.org/src/${P%%_p*}.tar.gz - https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P%%_p*}-patches.tar.xz -" -S="${WORKDIR}"/${P%%_p*} + +if [[ ${PV} == *9999 ]] ; then + inherit autotools git-r3 + EGIT_REPO_URI="https://anongit.freedesktop.org/git/libreoffice/cppunit.git" +else + SRC_URI=" + https://dev-www.libreoffice.org/src/${P%%_p*}.tar.gz + https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P%%_p*}-patches.tar.xz + " + S="${WORKDIR}"/${P%%_p*} + + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +fi LICENSE="LGPL-2.1" SLOT="0/1.15" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" IUSE="doc examples" BDEPEND=" diff --git a/dev-util/cppunit/cppunit-1.15.1_p20240106.ebuild b/dev-util/cppunit/cppunit-9999.ebuild similarity index 72% copy from dev-util/cppunit/cppunit-1.15.1_p20240106.ebuild copy to dev-util/cppunit/cppunit-9999.ebuild index d3eb816ccc1a..675991b4bcd6 100644 --- a/dev-util/cppunit/cppunit-1.15.1_p20240106.ebuild +++ b/dev-util/cppunit/cppunit-9999.ebuild @@ -7,15 +7,22 @@ inherit autotools flag-o-matic multilib-minimal DESCRIPTION="C++ port of the famous JUnit framework for unit testing" HOMEPAGE="https://www.freedesktop.org/wiki/Software/cppunit" -SRC_URI=" - https://dev-www.libreoffice.org/src/${P%%_p*}.tar.gz - https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P%%_p*}-patches.tar.xz -" -S="${WORKDIR}"/${P%%_p*} + +if [[ ${PV} == *9999 ]] ; then + inherit autotools git-r3 + EGIT_REPO_URI="https://anongit.freedesktop.org/git/libreoffice/cppunit.git" +else + SRC_URI=" + https://dev-www.libreoffice.org/src/${P%%_p*}.tar.gz + https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P%%_p*}-patches.tar.xz + " + S="${WORKDIR}"/${P%%_p*} + + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +fi LICENSE="LGPL-2.1" SLOT="0/1.15" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" IUSE="doc examples" BDEPEND=" @@ -27,10 +34,6 @@ BDEPEND=" DOCS=( AUTHORS BUGS NEWS README THANKS TODO ChangeLog doc/FAQ ) -PATCHES=( - "${WORKDIR}"/${P%%_p*}-patches -) - src_prepare() { default
