dev-libs/squareball: EAPI 7, eutils--, ltprune--

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2021-04-02 05:53:14 +01:00
parent aa98d4894b
commit 804fdd99eb
2 changed files with 20 additions and 34 deletions

View File

@@ -1,22 +1,17 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EAPI=7
if [[ ${PV} = *9999* ]]; then
EGIT_REPO_URI="https://github.com/rafaelmartins/${PN}.git"
inherit git-r3 autotools
inherit autotools git-r3
fi
inherit eutils ltprune
DESCRIPTION="A general-purpose library for C99"
HOMEPAGE="https://github.com/rafaelmartins/squareball"
SRC_URI="https://github.com/rafaelmartins/${PN}/releases/download/v${PV}/${P}.tar.xz"
if [[ ${PV} = *9999* ]]; then
SRC_URI=""
else
if ! [[ ${PV} = *9999* ]]; then
SRC_URI="https://github.com/rafaelmartins/${PN}/releases/download/v${PV}/${P}.tar.xz"
KEYWORDS="~amd64 ~x86"
fi
@@ -25,14 +20,11 @@ SLOT="0"
IUSE="doc test static-libs"
RESTRICT="!test? ( test )"
RDEPEND=""
DEPEND="
BDEPEND="
virtual/pkgconfig
test? (
dev-util/cmocka )
doc? (
app-doc/doxygen )"
doc? ( app-doc/doxygen )
"
DEPEND="test? ( dev-util/cmocka )"
src_prepare() {
[[ ${PV} = *9999* ]] && eautoreconf
@@ -55,5 +47,6 @@ src_compile() {
src_install() {
use doc && HTML_DOCS=( doc/build/html/* )
default
prune_libtool_files --all
find "${ED}" -name '*.la' -delete || die
}

View File

@@ -1,22 +1,17 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EAPI=7
if [[ ${PV} = *9999* ]]; then
EGIT_REPO_URI="https://github.com/rafaelmartins/${PN}.git"
inherit git-r3 autotools
inherit autotools git-r3
fi
inherit eutils ltprune
DESCRIPTION="A general-purpose library for C99"
HOMEPAGE="https://github.com/rafaelmartins/squareball"
SRC_URI="https://github.com/rafaelmartins/${PN}/releases/download/v${PV}/${P}.tar.xz"
if [[ ${PV} = *9999* ]]; then
SRC_URI=""
else
if [[ ${PV} != *9999* ]]; then
SRC_URI="https://github.com/rafaelmartins/${PN}/releases/download/v${PV}/${P}.tar.xz"
KEYWORDS="~amd64 ~x86"
fi
@@ -25,14 +20,11 @@ SLOT="0"
IUSE="doc test static-libs"
RESTRICT="!test? ( test )"
RDEPEND=""
DEPEND="
BDEPEND="
virtual/pkgconfig
test? (
dev-util/cmocka )
doc? (
app-doc/doxygen )"
doc? ( app-doc/doxygen )
"
DEPEND="test? ( dev-util/cmocka )"
src_prepare() {
[[ ${PV} = *9999* ]] && eautoreconf
@@ -55,5 +47,6 @@ src_compile() {
src_install() {
use doc && HTML_DOCS=( doc/build/html/* )
default
prune_libtool_files --all
find "${ED}" -name '*.la' -delete || die
}