commit: 2a02c9af48434921dc61842354a0a1880a26b426 Author: Alfred Wingate <parona <AT> protonmail <DOT> com> AuthorDate: Tue Aug 27 15:14:26 2024 +0000 Commit: Arsen Arsenović <arsen <AT> gentoo <DOT> org> CommitDate: Wed Sep 18 13:06:41 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a02c9af
sys-devel/autogen: switch to new guile mechanism Signed-off-by: Alfred Wingate <parona <AT> protonmail.com> Signed-off-by: Arsen Arsenović <arsen <AT> gentoo.org> profiles/package.mask | 1 + sys-devel/autogen/autogen-5.18.16-r100.ebuild | 85 +++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) diff --git a/profiles/package.mask b/profiles/package.mask index c7ffd7860231..8cbbcb9442cc 100644 --- a/profiles/package.mask +++ b/profiles/package.mask @@ -393,6 +393,7 @@ dev-scheme/guile:3.0 >=sci-electronics/gwave-20190116-r100 >=sci-libs/linux-gpib-4.3.6-r100 >=sci-libs/nlopt-2.7.1-r100 +>=sys-devel/autogen-5.18.16-r100 # Eli Schwartz <[email protected]> (2024-08-15) # Abandoned upstream since 2011, unmaintained in gentoo since 2017. Tons of diff --git a/sys-devel/autogen/autogen-5.18.16-r100.ebuild b/sys-devel/autogen/autogen-5.18.16-r100.ebuild new file mode 100644 index 000000000000..ca84c102bfb6 --- /dev/null +++ b/sys-devel/autogen/autogen-5.18.16-r100.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +GUILE_COMPAT=( 2-2 3-0 ) +inherit flag-o-matic autotools guile-single toolchain-funcs + +DESCRIPTION="Program and text file generation" +HOMEPAGE="https://www.gnu.org/software/autogen/" +SRC_URI=" + mirror://gnu/${PN}/rel${PV}/${P}.tar.xz + https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;f=lib/verify.h;h=3b57ddee0acffd23cc51bc8910a15cf879f90619;hb=537a5511ab0b1326e69b32f87593a50aedb8a589 -> ${P}-gnulib-3b57ddee0acffd23cc51bc8910a15cf879f90619-lib-verify.h +" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="libopts static-libs" + +REQUIRED_USE="${GUILE_REQUIRED_USE}" + +RDEPEND=" + ${GUILE_DEPS} + dev-libs/libxml2 +" +DEPEND="${RDEPEND}" + +# We don't pass the flag explicitly, bug #796776. +# Let's fix it upstream after next autogen release if it happens. +QA_CONFIGURE_OPTIONS+=" --enable-snprintfv-convenience" + +QA_CONFIG_IMPL_DECL_SKIP+=( + # libgen.h is legacy and linux doesn't include -lgen nor nonstandard + # functions. bug #924961 + pathfind +) + +PATCHES=( + "${FILESDIR}"/${PN}-5.18.16-no-werror.patch + "${FILESDIR}"/${PN}-5.18.16-rpath.patch + "${FILESDIR}"/${PN}-5.18.16-respect-TMPDIR.patch + "${FILESDIR}"/${PN}-5.18.16-make-4.3.patch + "${FILESDIR}"/${PN}-5.18.16-guile-3.patch + "${FILESDIR}"/${PN}-5.18.16-configure-c99.patch + "${FILESDIR}"/${PN}-5.18.16-FORTIFY_SOURCE.patch + "${FILESDIR}"/${PN}-5.18.16-no-which.patch +) + +src_prepare() { + guile-single_src_prepare + + # missing tarball file + cp "${DISTDIR}"/${P}-gnulib-3b57ddee0acffd23cc51bc8910a15cf879f90619-lib-verify.h autoopts/verify.h || die + + # May be able to drop this on next release (>5.18.16) + eautoreconf +} + +src_configure() { + # suppress possibly incorrect -R flag + export ag_cv_test_ldflags= + + # autogen requires run-time sanity of regex and string functions. + # Use defaults of linux-glibc until we need somethig more advanced. + if tc-is-cross-compiler ; then + export ag_cv_run_strcspn=no + export libopts_cv_with_libregex=yes + fi + + # bug 920174 + use elibc_musl && append-cppflags -D_LARGEFILE64_SOURCE + + econf $(use_enable static-libs static) +} + +src_install() { + guile-single_src_install + + find "${ED}" -name '*.la' -delete || die + + if ! use libopts ; then + rm "${ED}"/usr/share/autogen/libopts-*.tar.gz || die + fi +}
