2022-05-04 13:09:35 +03:00
|
|
|
# Copyright 1999-2022 Gentoo Authors
|
2019-02-04 08:57:12 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
inherit 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"
|
2022-05-04 13:09:35 +03:00
|
|
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
|
2019-02-04 08:57:12 +03:00
|
|
|
IUSE="libopts static-libs"
|
|
|
|
|
|
|
|
RDEPEND=">=dev-scheme/guile-2.0:=
|
|
|
|
dev-libs/libxml2"
|
|
|
|
DEPEND="${RDEPEND}"
|
2022-07-31 21:15:44 +03:00
|
|
|
# TODO: investigate & drop this!
|
|
|
|
BDEPEND="sys-apps/which"
|
2019-02-04 08:57:12 +03:00
|
|
|
|
2021-06-21 06:49:54 +03:00
|
|
|
# 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"
|
|
|
|
|
2019-02-04 08:57:12 +03:00
|
|
|
PATCHES=(
|
|
|
|
"${FILESDIR}"/${PN}-5.18.16-no-werror.patch
|
|
|
|
"${FILESDIR}"/${PN}-5.18.16-rpath.patch
|
2020-01-05 20:54:22 +03:00
|
|
|
"${FILESDIR}"/${PN}-5.18.16-respect-TMPDIR.patch
|
2020-03-06 10:37:25 +03:00
|
|
|
"${FILESDIR}"/${PN}-5.18.16-make-4.3.patch
|
2021-06-20 22:39:53 +03:00
|
|
|
"${FILESDIR}"/${PN}-5.18.16-guile-3.patch
|
2019-02-04 08:57:12 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
# no-werror.patch fixes both configure{.ac,}
|
|
|
|
# avoid configure echeck
|
|
|
|
touch -r configure.ac orig.configure.ac || die
|
|
|
|
touch -r configure orig.configure || die
|
|
|
|
|
|
|
|
default
|
|
|
|
|
|
|
|
touch -r orig.configure.ac configure.ac || die
|
|
|
|
touch -r orig.configure configure || die
|
|
|
|
|
|
|
|
# missing tarball file
|
|
|
|
cp "${DISTDIR}"/${P}-gnulib-3b57ddee0acffd23cc51bc8910a15cf879f90619-lib-verify.h autoopts/verify.h || die
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
# suppress possibly incorrect -R flag
|
|
|
|
export ag_cv_test_ldflags=
|
|
|
|
|
2019-08-26 00:15:41 +03:00
|
|
|
# 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
|
|
|
|
|
2019-02-04 08:57:12 +03:00
|
|
|
econf $(use_enable static-libs static)
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
|
|
|
find "${D}" -name '*.la' -delete || die
|
|
|
|
|
|
|
|
if ! use libopts ; then
|
|
|
|
rm "${ED}"/usr/share/autogen/libopts-*.tar.gz || die
|
|
|
|
fi
|
|
|
|
}
|