commit: 8b60a6f50fa4274c9887e6c13506f10ae034e49c Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> AuthorDate: Thu Oct 24 09:37:25 2019 +0000 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> CommitDate: Thu Oct 24 10:22:26 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b60a6f5
sys-apps/man-db: live ebuild requires gnulib sources Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> sys-apps/man-db/man-db-9999.ebuild | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/sys-apps/man-db/man-db-9999.ebuild b/sys-apps/man-db/man-db-9999.ebuild index 4d2bfc884fe..0d01ad57258 100644 --- a/sys-apps/man-db/man-db-9999.ebuild +++ b/sys-apps/man-db/man-db-9999.ebuild @@ -8,7 +8,7 @@ inherit systemd DESCRIPTION="a man replacement that utilizes berkdb instead of flat files" HOMEPAGE="http://www.nongnu.org/man-db/" if [[ "${PV}" = 9999* ]] ; then - inherit git-r3 + inherit autotools git-r3 EGIT_REPO_URI="https://git.savannah.gnu.org/git/man-db.git" else SRC_URI="mirror://nongnu/${PN}/${P}.tar.xz" @@ -52,6 +52,36 @@ pkg_setup() { fi } +src_unpack() { + if [[ "${PV}" == *9999 ]] ; then + git-r3_src_unpack + + # We need to mess with gnulib :-/ + EGIT_REPO_URI="https://git.savannah.gnu.org/r/gnulib.git" \ + EGIT_CHECKOUT_DIR="${WORKDIR}/gnulib" \ + git-r3_src_unpack + else + default + fi +} + +src_prepare() { + default + if [[ "${PV}" == *9999 ]] ; then + local bootstrap_opts=( + --gnulib-srcdir=../gnulib + --no-bootstrap-sync + --copy + --no-git + ) + AUTORECONF="/bin/true" \ + LIBTOOLIZE="/bin/true" \ + sh ./bootstrap "${bootstrap_opts[@]}" || die + + eautoreconf + fi +} + src_configure() { export ac_cv_lib_z_gzopen=$(usex zlib) local myeconfargs=(