dev-util/clippy: clippy-8.5.2.ebuild

This commit is contained in:
Alarig Le Lay 2023-07-13 17:18:00 +02:00
parent 040cecd830
commit a45b9e4fe1
Signed by: alarig
GPG Key ID: 7AFE62C6DF8BCDEC
5 changed files with 135 additions and 17 deletions

View File

@ -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

View File

@ -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'"
}

View File

@ -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'"
}

View File

@ -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'"
}

View File

@ -1,13 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>jakov.smolic@sartura.hr</email>
<name>Jakov Smolic</name>
</maintainer>
<maintainer type="project">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
<email>jsmolic@gentoo.org</email>
<name>Jakov Smolić</name>
</maintainer>
<upstream>
<remote-id type="github">FRRouting/frr</remote-id>