mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-libs/libcork: EAPI=8, fix tests, fix python, fix cmake-4
Closes: https://bugs.gentoo.org/957229 Closes: https://bugs.gentoo.org/953938 Closes: https://bugs.gentoo.org/775929 Closes: https://bugs.gentoo.org/761358 Closes: https://bugs.gentoo.org/716804 (obsolete) Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
@@ -1,42 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="A simple, easily embeddable cross-platform C library"
|
||||
HOMEPAGE="https://github.com/dcreager/libcork"
|
||||
SRC_URI="https://github.com/dcreager/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
|
||||
IUSE="static-libs"
|
||||
|
||||
RDEPEND="dev-libs/check"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-git.patch"
|
||||
"${FILESDIR}/${P}-version.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
if ! [ -e "${S}"/RELEASE-VERSION ] ; then
|
||||
echo ${PV} > "${S}"/RELEASE-VERSION || die
|
||||
fi
|
||||
sed -i -e "s/-Werror/-Wextra/" \
|
||||
-e "/docs\/old/d" \
|
||||
CMakeLists.txt || die
|
||||
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DENABLE_STATIC=$(usex static-libs)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
Reference in New Issue
Block a user