1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit autotools eutils
7 DESCRIPTION="GeoIP Legacy C API"
8 HOMEPAGE="https://github.com/maxmind/geoip-api-c"
10 https://github.com/maxmind/${PN}-api-c/archive/v${PV}.tar.gz -> ${P}.tar.gz
13 # GPL-2 for md5.c - part of libGeoIPUpdate, MaxMind for GeoLite Country db
14 LICENSE="LGPL-2.1 GPL-2 MaxMind2"
16 KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos"
27 S="${WORKDIR}/${PN}-api-c-${PV}"
36 econf $(use_enable static-libs static)
37 sed -e "s|@PREFIX@|${ROOT}|g" "${FILESDIR}"/geoipupdate-r6.sh > geoipupdate.sh || die
43 dodoc AUTHORS ChangeLog NEWS.md README*
47 keepdir /usr/share/GeoIP
53 ewarn "WARNING: Databases are no longer installed by this ebuild."
54 elog "Don't forget to run 'geoipupdate.sh -f' (or geoipupdate from"
55 elog "net-misc/geoipupdate) to populate ${ROOT}/usr/share/GeoIP/"
56 elog "with geo-located IP address databases."