Files
guru/dev-libs/ip2loc/ip2loc-8.1.4.ebuild
Lucio Sauer 0caefb3795 dev-libs/ip2loc: fix missing install steps
* replace make et al. with e-variants
* convert csv database to needed BIN via perl
* delete *.la files as per
  https://projects.gentoo.org/qa/policy-guide/installed-files.html#pg0303

Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
2023-06-29 01:34:29 +02:00

36 lines
699 B
Bash

# 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
}