commit: 5a3e555555182a47f3b345146567d8af1a9f4a4a Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Wed Oct 16 03:15:09 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Oct 16 03:16:00 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a3e5555
dev-libs/libffi: add 9999 It's a critical toolchain component which often has fixes we want to test out. Make it easier to do so with a live (template). Signed-off-by: Sam James <sam <AT> gentoo.org> dev-libs/libffi/libffi-3.4.6-r1.ebuild | 12 ++++++++++-- .../{libffi-3.4.6-r1.ebuild => libffi-9999.ebuild} | 19 ++++++++++--------- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/dev-libs/libffi/libffi-3.4.6-r1.ebuild b/dev-libs/libffi/libffi-3.4.6-r1.ebuild index 5ac383d4cbeb..4be465e7e37e 100644 --- a/dev-libs/libffi/libffi-3.4.6-r1.ebuild +++ b/dev-libs/libffi/libffi-3.4.6-r1.ebuild @@ -10,7 +10,16 @@ MY_P=${PN}-${MY_PV} DESCRIPTION="Portable, high level programming interface to various calling conventions" HOMEPAGE="https://sourceware.org/libffi/" -SRC_URI="https://github.com/libffi/libffi/releases/download/v${MY_PV}/${MY_P}.tar.gz" + +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/libffi/libffi" + inherit git-r3 +else + SRC_URI="https://github.com/libffi/libffi/releases/download/v${MY_PV}/${MY_P}.tar.gz" + + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +fi + S="${WORKDIR}"/${MY_P} LICENSE="MIT" @@ -18,7 +27,6 @@ LICENSE="MIT" # Please use preserve-libs.eclass in pkg_{pre,post}inst to cover users # with FEATURES="-preserved-libs" or another package manager if SONAME changes. SLOT="0/8" # SONAME=libffi.so.8 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" IUSE="debug exec-static-trampoline pax-kernel static-libs test" RESTRICT="!test? ( test )" diff --git a/dev-libs/libffi/libffi-3.4.6-r1.ebuild b/dev-libs/libffi/libffi-9999.ebuild similarity index 82% copy from dev-libs/libffi/libffi-3.4.6-r1.ebuild copy to dev-libs/libffi/libffi-9999.ebuild index 5ac383d4cbeb..51d1f5c466e6 100644 --- a/dev-libs/libffi/libffi-3.4.6-r1.ebuild +++ b/dev-libs/libffi/libffi-9999.ebuild @@ -10,7 +10,16 @@ MY_P=${PN}-${MY_PV} DESCRIPTION="Portable, high level programming interface to various calling conventions" HOMEPAGE="https://sourceware.org/libffi/" -SRC_URI="https://github.com/libffi/libffi/releases/download/v${MY_PV}/${MY_P}.tar.gz" + +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/libffi/libffi" + inherit git-r3 +else + SRC_URI="https://github.com/libffi/libffi/releases/download/v${MY_PV}/${MY_P}.tar.gz" + + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +fi + S="${WORKDIR}"/${MY_P} LICENSE="MIT" @@ -18,19 +27,11 @@ LICENSE="MIT" # Please use preserve-libs.eclass in pkg_{pre,post}inst to cover users # with FEATURES="-preserved-libs" or another package manager if SONAME changes. SLOT="0/8" # SONAME=libffi.so.8 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" IUSE="debug exec-static-trampoline pax-kernel static-libs test" RESTRICT="!test? ( test )" BDEPEND="test? ( dev-util/dejagnu )" -PATCHES=( - "${FILESDIR}"/${P}-arm64-cfi.patch - "${FILESDIR}"/${P}-sparc-struct-targs.patch - "${FILESDIR}"/${P}-test-typo.patch - "${FILESDIR}"/${P}-x86-sse.patch -) - src_prepare() { default