blob: 34bc61cb31588d23b36b37047e660adfbb567f77 (
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
45
46
47
48
49
50
51
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DIST_AUTHOR=LDS
DIST_VERSION=1.30
DIST_EXAMPLES=( "eg/*" )
inherit perl-module
DESCRIPTION="An API for hierarchical tag/value structures"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~ppc sparc ~x86"
IUSE="genbank store xml"
RDEPEND="
genbank? ( dev-perl/CGI )
store? ( virtual/perl-DB_File )
xml? ( dev-perl/XML-Parser )
"
DEPEND="${RDEPEND}
virtual/perl-ExtUtils-MakeMaker
"
PATCHES=(
"${FILESDIR}/${PN}-${DIST_VERSION}-no-xml-parser-check.patch"
)
PERL_RM_FILES=(
# Incomplete, instructs not to use, deps not in Gentoo
"Boulder/Labbase.pm"
)
src_prepare() {
use xml || PERL_RM_FILES+=(
"Boulder/XML.pm"
)
use genbank || PERL_RM_FILES+=(
"Boulder/Genbank.pm"
"Stone/GB_Sequence.pm"
"doc/genbank_tags.txt"
"eg/gb_get"
"eg/gb_search"
"eg/genbank.pl"
"eg/genbank2.pl"
"eg/genbank3.pl"
)
use store || PERL_RM_FILES+=(
"Boulder/Store.pm"
"t/store.t"
)
perl-module_src_prepare
}
|