dev-libs/ip2loc - 8.6.1 (guru)

Search

Install

Install this version:

emerge -a =dev-libs/ip2loc-8.6.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-libs/ip2loc-8.6.1

Or alternatively:

emerge --autounmask-write -a =dev-libs/ip2loc-8.6.1

Package Information

Description:
IP2Location C Library
Homepage:
https://github.com/chrislim2888/IP2Location-C-Library/
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
8.6.1 8 ~amd64 0
View Raw Ebuild
# 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"

S="${WORKDIR}/IP2Location-C-Library-${PV}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

BDEPEND="dev-lang/perl"

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
}

Inherited Eclasses

Dependencies

BDEPEND

dev-lang/perl

Manifest for 8.6.1

Type File Size Source URLs
DIST ip2loc-8.6.1.gh.tar.gz 3564380 bytes https://github.com/chrislim2888/IP2Location-C-Library/archive/8.6.1.tar.gz