mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-18 23:39:00 -04:00
dev-libs/ip2loc: new package, add 8.1.4
Signed-off-by: Okamura Kazuya <gentoo-guru@danceylove.net>
This commit is contained in:
parent
a45331733c
commit
3f952f16dd
1
dev-libs/ip2loc/Manifest
Normal file
1
dev-libs/ip2loc/Manifest
Normal file
@ -0,0 +1 @@
|
||||
DIST ip2loc-8.1.4.tar.gz 3698367 BLAKE2B 6f02870a99b7e7ef7b48e86c055391e674af8f7dde5b28ed3d7c4b5cc3a89df644f1e55a1f59b86ce215f02a8b98552f66755413f6b4a5ad737990bec5d7e61d SHA512 c801e03b78771e2da402cb7c9e96c1bed984f5fea4e4b440a5a25602540a7a82cc2a166046d0a4b361c981615b779a1268b90d3db5fae3a70c3237377424f291
|
46
dev-libs/ip2loc/ip2loc-8.1.4.ebuild
Normal file
46
dev-libs/ip2loc/ip2loc-8.1.4.ebuild
Normal file
@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake 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}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="static-libs"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
mv IP2Location-C-Library-${PV} ip2loc-${PV}
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eautoreconf
|
||||
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
./configure --prefix=${T}/usr
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
make
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make install
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
mkdir -p ${D}/usr/lib/
|
||||
mkdir -p ${D}/usr/include/
|
||||
cp -a ${T}/usr/include/IP2Location.h ${D}/usr/include/
|
||||
cp -a ${T}/usr/lib/libIP2Location* ${D}/usr/lib/
|
||||
return
|
||||
}
|
11
dev-libs/ip2loc/metadata.xml
Normal file
11
dev-libs/ip2loc/metadata.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>gentoo-guru@danceylove.net</email>
|
||||
<name>Okamura Kazuya</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">chrislim2888/IP2Location-C-Library</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
x
Reference in New Issue
Block a user