blob: f9a282b8c003755536e79052788bd28088bcad56 (
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
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="IP2Location C Library"
HOMEPAGE="https://github.com/chrislim2888/IP2Location-C-Library/"
SRC_URI="https://github.com/chrislim2888/IP2Location-C-Library/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
BDEPEND="dev-lang/perl"
S="${WORKDIR}/IP2Location-C-Library-${PV}"
src_configure() {
eautoreconf
default
}
src_compile() {
default
pushd data > /dev/null || die
perl ip-country.pl || die "Failed to generate database!"
popd || die
}
src_install() {
default
find "${ED}" -type f -name '*.la' -delete || die
}
|