gentoo-ebuilds/dev-perl/Text-BibTeX/Text-BibTeX-0.910.0.ebuild
Andreas K. Hüttel 238f4bee68
dev-perl/Text-BibTeX: clean up outdated blocker
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
2025-11-08 22:03:32 +01:00

44 lines
1,010 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DIST_AUTHOR=AMBS
DIST_VERSION=0.91
DIST_EXAMPLES=( "examples/*" "scripts/*" )
inherit flag-o-matic perl-module
DESCRIPTION="A Perl library for reading, parsing, and processing BibTeX files"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
BDEPEND="
>=dev-perl/Config-AutoConf-0.320
>=dev-perl/ExtUtils-LibBuilder-0.20.0
>=virtual/perl-ExtUtils-CBuilder-0.270.0
>=dev-perl/Module-Build-0.360.300
test? (
>=dev-perl/Capture-Tiny-0.60.0
)
"
PATCHES=(
"${FILESDIR}"/${PN}-0.890.0-dont-clobber-fortify-source.patch
)
src_prepare() {
# bug #944749
append-cflags -std=gnu17
sed -i -e "/#include <stdio.h>/a #include <string.h>"\
btparse/tests/{tex,purify,postprocess,name,macro}_test.c || die
perl-module_src_prepare
}
src_install() {
perl-module_src_install
doheader btparse/src/btparse.h
doheader btparse/src/bt_config.h
}