blob: 039cbc9a8b87eb15c72885ab02eb701747816c80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DIST_AUTHOR=AMBS
DIST_VERSION=0.88
DIST_EXAMPLES=( "examples/*" "scripts/*" )
inherit perl-module
DESCRIPTION="A Perl library for reading, parsing, and processing BibTeX files"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
!dev-libs/btparse
virtual/perl-Encode
virtual/perl-Scalar-List-Utils
virtual/perl-Unicode-Normalize
"
DEPEND="${RDEPEND}
>=dev-perl/Config-AutoConf-0.160.0
>=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
)
"
src_prepare() {
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
}
|