diff options
author | Yixun Lan <dlan@gentoo.org> | 2022-02-28 21:46:07 +0800 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2022-02-28 21:47:15 +0800 |
commit | 8353dfd2a0340e791aef7807f2cb062a33d3c4a8 (patch) | |
tree | 33c7c2c8fc8fc9b22266aad765129e29b34fd0d6 /net-libs/libcorkipset | |
parent | net-wireless/soapysdrplay: Cleanup old versions (diff) | |
download | gentoo-8353dfd2a0340e791aef7807f2cb062a33d3c4a8.tar.gz gentoo-8353dfd2a0340e791aef7807f2cb062a33d3c4a8.tar.bz2 gentoo-8353dfd2a0340e791aef7807f2cb062a33d3c4a8.zip |
net-libs/libcorkipset: port to cmake eclass
* fix git command not found issue
* update to EAPI=8
* port to cmake eclass
Closes: https://bugs.gentoo.org/721244
Closes: https://bugs.gentoo.org/834315
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'net-libs/libcorkipset')
-rw-r--r-- | net-libs/libcorkipset/libcorkipset-1.1.1.20150311_p8.ebuild | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/net-libs/libcorkipset/libcorkipset-1.1.1.20150311_p8.ebuild b/net-libs/libcorkipset/libcorkipset-1.1.1.20150311_p8.ebuild index d6114f0e9bfb..0d69d8f7b40d 100644 --- a/net-libs/libcorkipset/libcorkipset-1.1.1.20150311_p8.ebuild +++ b/net-libs/libcorkipset/libcorkipset-1.1.1.20150311_p8.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 -inherit cmake-utils +EAPI=8 +inherit cmake DATE=20150311 MY_PV="${PV/.${DATE}_p/+${DATE}-}" @@ -22,19 +22,21 @@ RDEPEND="${DEPEND}" S="${WORKDIR}/${PN}-debian-${MY_PX}" +PATCHES=( "${S}"/debian/patches/ ) + src_prepare() { - rm -f "${S}"/debian/patches/0001*.patch || die - eapply "${S}"/debian/patches/*.patch + cmake_src_prepare + sed -i -e "/^version=/s/=.*$/=${MY_PX}/" version.sh || die sed -e 's%#include <ipset%#include <libcorkipset%' \ -e 's%#include "ipset%#include "libcorkipset%' \ -i include/ipset/*.h \ */*/*/*.c \ */*/*/*.c.in \ */*/*.c */*.c || die - sed -i -e "s/-Werror/-Wextra/" CMakeLists.txt || die + sed -e "s/-Werror/-Wextra/" \ + -e "/^add_subdirectory(docs)/d" \ + -i CMakeLists.txt || die mv include/{,libcork}ipset || die - - cmake-utils_src_prepare } |