public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libmaxminddb/
Date: Mon,  3 May 2021 16:49:13 +0000 (UTC)	[thread overview]
Message-ID: <1620060541.5086d8b803903cfb72af61066a76c23f7a955c92.sam@gentoo> (raw)

commit:     5086d8b803903cfb72af61066a76c23f7a955c92
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun May  2 07:17:03 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon May  3 16:49:01 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5086d8b8

dev-libs/libmaxminddb: use live ebuild template

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/libmaxminddb/libmaxminddb-1.6.0.ebuild | 22 +++++++++++++++++++---
 dev-libs/libmaxminddb/libmaxminddb-9999.ebuild  | 20 ++++++++++++++++----
 2 files changed, 35 insertions(+), 7 deletions(-)

diff --git a/dev-libs/libmaxminddb/libmaxminddb-1.6.0.ebuild b/dev-libs/libmaxminddb/libmaxminddb-1.6.0.ebuild
index c0672dead58..2428e17f254 100644
--- a/dev-libs/libmaxminddb/libmaxminddb-1.6.0.ebuild
+++ b/dev-libs/libmaxminddb/libmaxminddb-1.6.0.ebuild
@@ -7,11 +7,17 @@ inherit toolchain-funcs
 
 DESCRIPTION="C library for the MaxMind DB file format"
 HOMEPAGE="https://github.com/maxmind/libmaxminddb"
-SRC_URI="https://github.com/maxmind/libmaxminddb/releases/download/${PV}/${P}.tar.gz"
+if [[ ${PV} == *9999 ]] ; then
+	EGIT_REPO_URI="https://github.com/maxmind/libmaxminddb.git"
+	inherit autotools git-r3
+else
+	SRC_URI="https://github.com/maxmind/libmaxminddb/releases/download/${PV}/${P}.tar.gz"
+
+	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
+fi
 
 LICENSE="Apache-2.0"
 SLOT="0/0.0.7"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
 IUSE="test"
 RESTRICT="!test? ( test )"
 
@@ -19,12 +25,22 @@ DEPEND="test? ( dev-perl/IPC-Run3 )"
 
 DOCS=( Changes.md )
 
+src_prepare() {
+	default
+
+	if [[ ${PV} == *9999 ]] ; then
+		eautoreconf
+	fi
+}
+
 src_configure() {
-	econf --disable-static
 	tc-export AR CC
+
+	econf --disable-static
 }
 
 src_install() {
 	default
+
 	find "${ED}" -name '*.la' -delete || die
 }

diff --git a/dev-libs/libmaxminddb/libmaxminddb-9999.ebuild b/dev-libs/libmaxminddb/libmaxminddb-9999.ebuild
index 455b8716649..2428e17f254 100644
--- a/dev-libs/libmaxminddb/libmaxminddb-9999.ebuild
+++ b/dev-libs/libmaxminddb/libmaxminddb-9999.ebuild
@@ -3,11 +3,18 @@
 
 EAPI=7
 
-inherit autotools toolchain-funcs git-r3
+inherit toolchain-funcs
 
 DESCRIPTION="C library for the MaxMind DB file format"
 HOMEPAGE="https://github.com/maxmind/libmaxminddb"
-EGIT_REPO_URI="https://github.com/maxmind/libmaxminddb.git"
+if [[ ${PV} == *9999 ]] ; then
+	EGIT_REPO_URI="https://github.com/maxmind/libmaxminddb.git"
+	inherit autotools git-r3
+else
+	SRC_URI="https://github.com/maxmind/libmaxminddb/releases/download/${PV}/${P}.tar.gz"
+
+	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
+fi
 
 LICENSE="Apache-2.0"
 SLOT="0/0.0.7"
@@ -20,15 +27,20 @@ DOCS=( Changes.md )
 
 src_prepare() {
 	default
-	eautoreconf
+
+	if [[ ${PV} == *9999 ]] ; then
+		eautoreconf
+	fi
 }
 
 src_configure() {
-	econf --disable-static
 	tc-export AR CC
+
+	econf --disable-static
 }
 
 src_install() {
 	default
+
 	find "${ED}" -name '*.la' -delete || die
 }


             reply	other threads:[~2021-05-03 16:49 UTC|newest]

Thread overview: 105+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-03 16:49 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-15  9:19 [gentoo-commits] repo/gentoo:master commit in: dev-libs/libmaxminddb/ Arthur Zamarin
2024-11-14  4:59 Jakov Smolić
2024-11-14  4:35 Sam James
2024-11-14  4:35 Sam James
2024-11-14  4:35 Sam James
2024-11-14  3:21 Sam James
2024-11-14  2:49 Sam James
2024-09-15 14:17 Conrad Kostecki
2024-09-15 13:53 Conrad Kostecki
2024-07-21 15:12 Conrad Kostecki
2024-07-21 15:12 Conrad Kostecki
2023-03-09  1:09 Sam James
2023-03-04  8:55 Arthur Zamarin
2023-03-04  8:22 Arthur Zamarin
2023-03-04  6:18 Arthur Zamarin
2023-03-04  6:17 Arthur Zamarin
2023-03-04  5:41 Arthur Zamarin
2023-03-04  5:38 Arthur Zamarin
2023-03-04  5:32 Arthur Zamarin
2022-10-01  1:29 Sam James
2022-09-28 23:35 Sam James
2021-07-26 15:45 Marek Szuba
2021-06-02 10:39 Sam James
2021-06-02 10:39 Sam James
2021-05-31 13:37 Agostino Sarubbo
2021-05-31 11:40 Sam James
2021-05-31  6:11 Agostino Sarubbo
2021-05-31  6:09 Agostino Sarubbo
2021-05-03 16:49 Sam James
2021-04-01 21:17 Sam James
2021-02-26 15:18 Sam James
2021-02-26 13:53 Sam James
2021-02-26  8:09 Agostino Sarubbo
2021-02-25 17:52 Sam James
2021-02-25  8:41 Sergei Trofimovich
2021-02-25  6:39 Sam James
2021-02-25  6:38 Sam James
2021-02-22  7:25 Sam James
2021-02-16 12:34 Sam James
2021-02-14  3:09 Sam James
2021-02-09  6:18 Sam James
2021-02-07  8:59 Sam James
2021-02-07  8:58 Sam James
2021-02-07  8:57 Sam James
2021-02-07  8:56 Sam James
2021-01-07  1:35 Sam James
2021-01-07  1:35 Sam James
2021-01-07  1:35 Sam James
2021-01-05 23:25 Sam James
2020-11-11  0:25 Sam James
2020-11-09 23:14 Sam James
2020-11-07 20:37 Sergei Trofimovich
2020-11-07 20:34 Sergei Trofimovich
2020-11-07 20:22 Sergei Trofimovich
2020-11-07 20:10 Sergei Trofimovich
2020-11-06 20:35 Sam James
2020-11-06 11:52 Sam James
2020-11-06 11:05 Sam James
2020-08-26 14:52 Jeroen Roovers
2020-08-06 18:27 Jeroen Roovers
2020-06-28 20:56 Thomas Deutschmann
2020-06-26 17:43 Agostino Sarubbo
2019-11-03  9:29 Michał Górny
2019-11-02 23:47 Jeroen Roovers
2019-10-20  8:29 Mikle Kolyada
2019-08-14 21:37 Sergei Trofimovich
2019-05-24  5:04 Aaron Bauman
2019-04-24 21:12 Jeroen Roovers
2019-04-24 18:42 Tobias Klausmann
2019-04-04 10:12 Jeroen Roovers
2019-04-01 17:21 Thomas Deutschmann
2019-03-20 21:17 Mikle Kolyada
2019-03-17 23:02 Sergei Trofimovich
2019-03-16 22:55 Sergei Trofimovich
2019-03-16 21:57 Sergei Trofimovich
2019-03-16 10:19 Sergei Trofimovich
2019-03-11 16:35 Mart Raudsepp
2019-02-28 17:19 Mikle Kolyada
2018-12-21 20:16 Sergei Trofimovich
2018-11-16 19:08 Sergei Trofimovich
2018-11-16 19:08 Sergei Trofimovich
2018-09-09 20:41 Thomas Deutschmann
2018-07-01  9:11 Sergei Trofimovich
2018-06-24 20:27 Jeroen Roovers
2018-06-19 17:29 Tobias Klausmann
2018-05-31 10:01 Sergei Trofimovich
2018-03-18 20:04 Sergei Trofimovich
2018-03-18 12:12 Sergei Trofimovich
2018-03-16 18:10 Jeroen Roovers
2018-01-20 10:42 Jeroen Roovers
2017-11-29  7:50 Jeroen Roovers
2017-11-29  7:50 Jeroen Roovers
2017-11-18 10:29 Jeroen Roovers
2017-08-05 19:04 Sergei Trofimovich
2017-06-05  7:01 Jeroen Roovers
2017-05-22  9:25 Agostino Sarubbo
2017-05-22  8:58 Agostino Sarubbo
2017-05-19  8:34 Jeroen Roovers
2016-08-17  6:45 Jeroen Roovers
2016-03-24  5:33 Jeroen Roovers
2016-01-08  5:43 Jeroen Roovers
2015-11-21  5:04 Jeroen Roovers
2015-10-31  5:49 Jeroen Roovers
2015-10-31  5:28 Jeroen Roovers

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=1620060541.5086d8b803903cfb72af61066a76c23f7a955c92.sam@gentoo \
    --to=sam@gentoo.org \
    --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