public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Lucio Sauer" <watermanpaint@posteo.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/ip2loc/
Date: Thu, 29 Jun 2023 00:02:17 +0000 (UTC)	[thread overview]
Message-ID: <1687995269.0caefb37958f78b6ceadedf7d2377bbcb28ad66a.watermanpaint@gentoo> (raw)

commit:     0caefb37958f78b6ceadedf7d2377bbcb28ad66a
Author:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Wed Jun 28 23:34:29 2023 +0000
Commit:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Wed Jun 28 23:34:29 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0caefb37

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 <AT> posteo.net>

 dev-libs/ip2loc/Manifest            |  2 +-
 dev-libs/ip2loc/ip2loc-8.1.4.ebuild | 35 ++++++++++++-----------------------
 2 files changed, 13 insertions(+), 24 deletions(-)

diff --git a/dev-libs/ip2loc/Manifest b/dev-libs/ip2loc/Manifest
index 8ca4ef44d..18820d3ea 100644
--- a/dev-libs/ip2loc/Manifest
+++ b/dev-libs/ip2loc/Manifest
@@ -1 +1 @@
-DIST ip2loc-8.1.4.tar.gz 3698367 BLAKE2B 6f02870a99b7e7ef7b48e86c055391e674af8f7dde5b28ed3d7c4b5cc3a89df644f1e55a1f59b86ce215f02a8b98552f66755413f6b4a5ad737990bec5d7e61d SHA512 c801e03b78771e2da402cb7c9e96c1bed984f5fea4e4b440a5a25602540a7a82cc2a166046d0a4b361c981615b779a1268b90d3db5fae3a70c3237377424f291
+DIST ip2loc-8.1.4.gh.tar.gz 3698367 BLAKE2B 6f02870a99b7e7ef7b48e86c055391e674af8f7dde5b28ed3d7c4b5cc3a89df644f1e55a1f59b86ce215f02a8b98552f66755413f6b4a5ad737990bec5d7e61d SHA512 c801e03b78771e2da402cb7c9e96c1bed984f5fea4e4b440a5a25602540a7a82cc2a166046d0a4b361c981615b779a1268b90d3db5fae3a70c3237377424f291

diff --git a/dev-libs/ip2loc/ip2loc-8.1.4.ebuild b/dev-libs/ip2loc/ip2loc-8.1.4.ebuild
index 10d30948e..f9a282b8c 100644
--- a/dev-libs/ip2loc/ip2loc-8.1.4.ebuild
+++ b/dev-libs/ip2loc/ip2loc-8.1.4.ebuild
@@ -3,44 +3,33 @@
 
 EAPI=8
 
-inherit cmake autotools
+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}.tar.gz"
+SRC_URI="https://github.com/chrislim2888/IP2Location-C-Library/archive/${PV}.tar.gz -> ${P}.gh.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
+BDEPEND="dev-lang/perl"
 
-	eapply_user
-}
+S="${WORKDIR}/IP2Location-C-Library-${PV}"
 
 src_configure() {
-	./configure --prefix=${T}/usr
+	eautoreconf
+	default
 }
 
 src_compile() {
-	make
+	default
+	pushd data > /dev/null || die
+	perl ip-country.pl || die "Failed to generate database!"
+	popd || die
 }
 
 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
+	default
+	find "${ED}" -type f -name '*.la' -delete || die
 }


             reply	other threads:[~2023-06-29  0:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-29  0:02 Lucio Sauer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-05-05  1:17 [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/ip2loc/ Okamura Kazuya
2024-04-27 16:40 Okamura Kazuya
2023-06-27 15:29 Okamura Kazuya

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1687995269.0caefb37958f78b6ceadedf7d2377bbcb28ad66a.watermanpaint@gentoo \
    --to=watermanpaint@posteo.net \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox