diff options
Diffstat (limited to 'sys-devel/dwz')
-rw-r--r-- | sys-devel/dwz/Manifest | 3 | ||||
-rw-r--r-- | sys-devel/dwz/dwz-0.15-r1.ebuild | 23 | ||||
-rw-r--r-- | sys-devel/dwz/dwz-9999.ebuild | 53 |
3 files changed, 70 insertions, 9 deletions
diff --git a/sys-devel/dwz/Manifest b/sys-devel/dwz/Manifest index 2bf5f8771a95..0c99fae50827 100644 --- a/sys-devel/dwz/Manifest +++ b/sys-devel/dwz/Manifest @@ -1,3 +1,4 @@ DIST dwz-0.15.tar.xz 150080 BLAKE2B 4ce1722a53cb588cda8195211a26b28d69891ed32cc59e44897270298d033590c79c8c73168dc3b261cb017fc12874a9cbd50db3bfaa0aa7de8ed7cf8a588cca SHA512 43eb4b08c1f529859dc3466697d5ad7e172d6efbf21409530a67a2492ae4acc3734d5134bbd6e07c089ecc358d915871b13e22f6e4f1dd4c3af19ef804f8fcc5 -EBUILD dwz-0.15-r1.ebuild 840 BLAKE2B 89b30929bd5b2139cc8a5675a6bcc77c4189e3815e23b5844c2a8695d2399acd910fbecf7e089582ae56c9a8b3f9aba392759256bcf531b6df6046e3f804347f SHA512 40f5ae4d17d6bcf952b4f774d13eef3d387438505760806f5e6d7532fed36a462a8632eb3f70d094595131a810ba082f5facf8d286efdf2bec5835833a9f83e2 +EBUILD dwz-0.15-r1.ebuild 956 BLAKE2B 3fb11a11462e40e0e0e7def587adb16c32ca1cd78b9142e0cf6534ee907473c3d4f3081e649520185bdb5cfe993ee45d330ecfda564babb76308cabe8423021e SHA512 caaf43ae1107261a09f655ad2c8fa3baa5d3081f56edad2339e1e14d0aea1d380fff36a43ba5b86f16d5f066bfc065c6800257f30bd80252f47545291f189492 +EBUILD dwz-9999.ebuild 963 BLAKE2B 736f7ac3e494d12db8caa8ae9b4011d1e9ba3678fcd0375891f549ae0a00f5069d4c09432fc406d74782679076da5e434f46bffcd86343fda4379d43240210a2 SHA512 1d2526e00c53e10fd3cf1472fc83aac068870ed83afcd6e169fa86af1ac0ddb4489233df1b68024ac20df87efae3383d5af52ccd83422dd2464f340895a43c0f MISC metadata.xml 812 BLAKE2B abd6e645ab8cf502bfb6b90cd5712ff43d22a4e17ed7a2025bfbb16407a907b6b482497ce060ffb55b250a441fcbc495a37cb540b9d1152ed42dbdbbb4b074ca SHA512 7dea9a490d130dc0a03291b01000f38b880be517c13d762a6b6ac82e7313375c0dc5c0506ead51dd6789e72ffc612ade73e734456bfa8696777ede3f90dd6394 diff --git a/sys-devel/dwz/dwz-0.15-r1.ebuild b/sys-devel/dwz/dwz-0.15-r1.ebuild index 07e6062f11f1..6ea8c380f942 100644 --- a/sys-devel/dwz/dwz-0.15-r1.ebuild +++ b/sys-devel/dwz/dwz-0.15-r1.ebuild @@ -7,13 +7,18 @@ inherit toolchain-funcs DESCRIPTION="DWARF optimization and duplicate removal tool" HOMEPAGE="https://sourceware.org/dwz" -SRC_URI="https://sourceware.org/ftp/dwz/releases/${P}.tar.xz" +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://sourceware.org/git/dwz.git" + inherit git-r3 +else + SRC_URI="https://sourceware.org/ftp/dwz/releases/${P}.tar.xz" + S="${WORKDIR}/${PN}" -S="${WORKDIR}/${PN}" + KEYWORDS="amd64 arm arm64 ppc ppc64 ~riscv sparc x86" +fi LICENSE="GPL-2+ GPL-3+" SLOT="0" -KEYWORDS="amd64 arm arm64 ppc ppc64 ~riscv sparc x86" IUSE="test" RESTRICT="!test? ( test )" @@ -22,11 +27,13 @@ RDEPEND=" dev-libs/xxhash " DEPEND="${RDEPEND}" -BDEPEND="test? ( - dev-libs/elfutils[utils] - dev-util/dejagnu - dev-debug/gdb -)" +BDEPEND=" + test? ( + dev-debug/gdb + dev-libs/elfutils[utils] + dev-util/dejagnu + ) +" src_prepare() { default diff --git a/sys-devel/dwz/dwz-9999.ebuild b/sys-devel/dwz/dwz-9999.ebuild new file mode 100644 index 000000000000..8ce1dc9e912c --- /dev/null +++ b/sys-devel/dwz/dwz-9999.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="DWARF optimization and duplicate removal tool" +HOMEPAGE="https://sourceware.org/dwz" +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://sourceware.org/git/dwz.git" + inherit git-r3 +else + SRC_URI="https://sourceware.org/ftp/dwz/releases/${P}.tar.xz" + S="${WORKDIR}/${PN}" + + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" +fi + +LICENSE="GPL-2+ GPL-3+" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/elfutils + dev-libs/xxhash +" +DEPEND="${RDEPEND}" +BDEPEND=" + test? ( + dev-debug/gdb + dev-libs/elfutils[utils] + dev-util/dejagnu + ) +" + +src_prepare() { + default + tc-export CC +} + +src_compile() { + emake CFLAGS="${CFLAGS}" srcdir="${S}" +} + +src_test() { + emake CFLAGS="${CFLAGS}" srcdir="${S}" check +} + +src_install() { + emake DESTDIR="${D}" CFLAGS="${CFLAGS}" srcdir="${S}" install +} |