From a45b9e4fe10e043458c73257a9ec8d642aaffa4a Mon Sep 17 00:00:00 2001 From: Alarig Le Lay Date: Thu, 13 Jul 2023 17:18:00 +0200 Subject: [PATCH] dev-util/clippy: clippy-8.5.2.ebuild --- dev-util/clippy/Manifest | 4 +- dev-util/clippy/clippy-8.4.2.ebuild | 53 +++++++++++++++++++ ...lippy-8.0.1.ebuild => clippy-8.5.2.ebuild} | 32 +++++++---- dev-util/clippy/clippy-8.5.ebuild | 53 +++++++++++++++++++ dev-util/clippy/metadata.xml | 10 ++-- 5 files changed, 135 insertions(+), 17 deletions(-) create mode 100644 dev-util/clippy/clippy-8.4.2.ebuild rename dev-util/clippy/{clippy-8.0.1.ebuild => clippy-8.5.2.ebuild} (53%) create mode 100644 dev-util/clippy/clippy-8.5.ebuild diff --git a/dev-util/clippy/Manifest b/dev-util/clippy/Manifest index e9a0e78..36af512 100644 --- a/dev-util/clippy/Manifest +++ b/dev-util/clippy/Manifest @@ -1 +1,3 @@ -DIST frr-8.0.1.tar.gz 8206852 BLAKE2B ed23f62457877fb3173977e1b7092c808adc5d5bd9b1d83747ac42573117adc38865abd1e722073532800f543978e5d67ba7c88416a4335c72bd6b8a3045ff5a SHA512 d9a9ee3b40bf0271779765447c67da817551b5bf2d5d1e9f8073fb4596c622e013fbf7316ca39087db7b7f478b18d07f1fd06f1778abde2734c83112573d5f8f +DIST clippy-8.4.2.tar.gz 9893223 BLAKE2B 670fb131c2959b0ce4f3133ef38caeb7832275844b16f8582a693033f5466ad0eb98ab45ed9615e0a121ab80bf034edafe7ee816c47d767bd8a13b52f3138eac SHA512 1ee9d17ef3b85c5c10df624a6560bcacb2b5daa3d6231e457f06d9eb6e5ccf375064a46e809d851c23cb6daf7a4299d1f25be589992ef729e80f9bad41a8d7f7 +DIST clippy-8.5.2.tar.gz 10076639 BLAKE2B 2e2aca4e42757f66c9ca4725826c6cc1d611930490eed2a175ca5b56910f2c09a9d842b2a9370a64a9fdac6a6314bd4573be609d14dbf956049d9fbf49310404 SHA512 1afa6ca1a41096aa47dc2fc39ab87290b3cbf634a1632e7910a5b69d2816998fbccbca616f261a410aa146a21dd26d12b7e6812da4ec08545b1500f8b546b972 +DIST clippy-8.5.tar.gz 10068379 BLAKE2B ed7aa538997bdbfde0370f36a8980ad3ae882a2325cdc7c3b2bdba9d6a43cd9ca04ff96b94b7827e06593a15c104cdadbd2632e136eb2d68e7ed87095a9294a4 SHA512 13e2ea8642fc00b565e9a36d2d59abe5d0e11caf646199cd928184fda2de004bda9892ae8a2f91870d5ac218bb127725663b693e4d764e5b21c942bb20b8d66f diff --git a/dev-util/clippy/clippy-8.4.2.ebuild b/dev-util/clippy/clippy-8.4.2.ebuild new file mode 100644 index 0000000..493997f --- /dev/null +++ b/dev-util/clippy/clippy-8.4.2.ebuild @@ -0,0 +1,53 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_P="frr-${PV}" +PYTHON_COMPAT=( python3_{9..11} ) +inherit autotools python-single-r1 + +DESCRIPTION="Standalone clippy tool built from FRR sources" +HOMEPAGE="https://frrouting.org/" +SRC_URI="https://github.com/FRRouting/frr/archive/${MY_P}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/frr-${MY_P}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm64 ~x86" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +# standalone clippy does not have any tests +# restrict to prevent bug 811753 +RESTRICT="test" + +DEPEND=" + ${PYTHON_DEPS} + virtual/libelf:= +" +RDEPEND="${DEPEND}" +BDEPEND=" + sys-devel/bison + sys-devel/flex +" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + # bug #884291 + unset YACC + export LEX=flex + + econf --enable-clippy-only +} + +src_install() { + # 830087 + find "lib" -type f -name "clippy" -print0 | + xargs -0 file | grep executable | grep ELF | cut -f 1 -d : | + xargs -I '{}' dobin '{}' || + die "Failed to install 'lib/clippy'" +} diff --git a/dev-util/clippy/clippy-8.0.1.ebuild b/dev-util/clippy/clippy-8.5.2.ebuild similarity index 53% rename from dev-util/clippy/clippy-8.0.1.ebuild rename to dev-util/clippy/clippy-8.5.2.ebuild index 56b701f..c9bb649 100644 --- a/dev-util/clippy/clippy-8.0.1.ebuild +++ b/dev-util/clippy/clippy-8.5.2.ebuild @@ -1,39 +1,53 @@ -# Copyright 2020-2021 Gentoo Authors +# Copyright 2020-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 MY_P="frr-${PV}" -PYTHON_COMPAT=( python3_{7..10} ) +PYTHON_COMPAT=( python3_{9..11} ) inherit autotools python-single-r1 DESCRIPTION="Standalone clippy tool built from FRR sources" HOMEPAGE="https://frrouting.org/" -SRC_URI="https://github.com/FRRouting/frr/archive/${MY_P}.tar.gz -> ${MY_P}.tar.gz" +SRC_URI="https://github.com/FRRouting/frr/archive/${MY_P}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/frr-${MY_P}" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~arm64 ~x86" REQUIRED_USE="${PYTHON_REQUIRED_USE}" -DEPEND="${PYTHON_DEPS}" +# standalone clippy does not have any tests +# restrict to prevent bug 811753 +RESTRICT="test" + +DEPEND=" + ${PYTHON_DEPS} + virtual/libelf:= +" RDEPEND="${DEPEND}" BDEPEND=" + sys-devel/bison sys-devel/flex - virtual/libelf:0= " -S="${WORKDIR}/frr-${MY_P}" - src_prepare() { default eautoreconf } src_configure() { + # bug #884291 + unset YACC + export LEX=flex + econf --enable-clippy-only } src_install() { - dobin lib/clippy + # 830087 + find "lib" -type f -name "clippy" -print0 | + xargs -0 file | grep executable | grep ELF | cut -f 1 -d : | + xargs -I '{}' dobin '{}' || + die "Failed to install 'lib/clippy'" } diff --git a/dev-util/clippy/clippy-8.5.ebuild b/dev-util/clippy/clippy-8.5.ebuild new file mode 100644 index 0000000..493997f --- /dev/null +++ b/dev-util/clippy/clippy-8.5.ebuild @@ -0,0 +1,53 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_P="frr-${PV}" +PYTHON_COMPAT=( python3_{9..11} ) +inherit autotools python-single-r1 + +DESCRIPTION="Standalone clippy tool built from FRR sources" +HOMEPAGE="https://frrouting.org/" +SRC_URI="https://github.com/FRRouting/frr/archive/${MY_P}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/frr-${MY_P}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm64 ~x86" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +# standalone clippy does not have any tests +# restrict to prevent bug 811753 +RESTRICT="test" + +DEPEND=" + ${PYTHON_DEPS} + virtual/libelf:= +" +RDEPEND="${DEPEND}" +BDEPEND=" + sys-devel/bison + sys-devel/flex +" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + # bug #884291 + unset YACC + export LEX=flex + + econf --enable-clippy-only +} + +src_install() { + # 830087 + find "lib" -type f -name "clippy" -print0 | + xargs -0 file | grep executable | grep ELF | cut -f 1 -d : | + xargs -I '{}' dobin '{}' || + die "Failed to install 'lib/clippy'" +} diff --git a/dev-util/clippy/metadata.xml b/dev-util/clippy/metadata.xml index af7e64c..f254610 100644 --- a/dev-util/clippy/metadata.xml +++ b/dev-util/clippy/metadata.xml @@ -1,13 +1,9 @@ - + - jakov.smolic@sartura.hr - Jakov Smolic - - - proxy-maint@gentoo.org - Proxy Maintainers + jsmolic@gentoo.org + Jakov Smolić FRRouting/frr