commit: b5558e0aaa69df32e770c1dd333f783b1f73af4f Author: Mike Frysinger <vapier <AT> chromium <DOT> org> AuthorDate: Wed Jun 9 18:11:02 2021 +0000 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> CommitDate: Wed Jun 9 18:14:52 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5558e0a
app-arch/pbzip2: update to EAPI=7 #756880 Closes: https://bugs.gentoo.org/756880 Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org> app-arch/pbzip2/pbzip2-1.1.13.ebuild | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/app-arch/pbzip2/pbzip2-1.1.13.ebuild b/app-arch/pbzip2/pbzip2-1.1.13.ebuild index f9ccda45462..6304e2335b9 100644 --- a/app-arch/pbzip2/pbzip2-1.1.13.ebuild +++ b/app-arch/pbzip2/pbzip2-1.1.13.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI="7" -inherit flag-o-matic epatch toolchain-funcs +inherit flag-o-matic toolchain-funcs DESCRIPTION="Parallel bzip2 (de)compressor using libbz2" HOMEPAGE="http://compression.ca/pbzip2/ https://launchpad.net/pbzip2" @@ -21,10 +21,17 @@ RDEPEND=" DEPEND="${RDEPEND} static? ( ${LIB_DEPEND} )" +PATCHES=( + "${FILESDIR}"/${PN}-1.1.10-makefile.patch +) + src_prepare() { + default # https://bugs.launchpad.net/pbzip2/+bug/1746369 sed -i 's:"PRIuMAX":" PRIuMAX ":g' *.cpp || die - epatch "${FILESDIR}"/${PN}-1.1.10-makefile.patch +} + +src_configure() { tc-export CXX use static && append-ldflags -static }
