diff options
author | Sam James <sam@gentoo.org> | 2021-05-02 08:17:03 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-05-03 17:49:01 +0100 |
commit | 5086d8b803903cfb72af61066a76c23f7a955c92 (patch) | |
tree | a9ee14fdf6d03ebdd3c339a4ea91c7c663bbe68f /dev-libs | |
parent | dev-libs/libmaxminddb: add 1.6.0 (diff) | |
download | gentoo-5086d8b803903cfb72af61066a76c23f7a955c92.tar.gz gentoo-5086d8b803903cfb72af61066a76c23f7a955c92.tar.bz2 gentoo-5086d8b803903cfb72af61066a76c23f7a955c92.zip |
dev-libs/libmaxminddb: use live ebuild template
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/libmaxminddb/libmaxminddb-1.6.0.ebuild | 22 | ||||
-rw-r--r-- | 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 c0672dead589..2428e17f2542 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 455b87166499..2428e17f2542 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 } |