Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/lorcon/
Date: Sun, 19 Mar 2023 17:14:17
Message-Id: 1679246036.242d5ec7dab26446b124f4d3abf214c6db8019ca.soap@gentoo
1 commit: 242d5ec7dab26446b124f4d3abf214c6db8019ca
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 19 17:13:56 2023 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 19 17:13:56 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=242d5ec7
7
8 net-wireless/lorcon: fix clang16 build
9
10 Closes: https://bugs.gentoo.org/843698
11 Closes: https://bugs.gentoo.org/875401
12 Closes: https://bugs.gentoo.org/897182
13 Signed-off-by: David Seifert <soap <AT> gentoo.org>
14
15 ...build => lorcon-2020.06.06_p20220216-r2.ebuild} | 37 ++++++++++------------
16 1 file changed, 16 insertions(+), 21 deletions(-)
17
18 diff --git a/net-wireless/lorcon/lorcon-2020.06.06_p20220216-r1.ebuild b/net-wireless/lorcon/lorcon-2020.06.06_p20220216-r2.ebuild
19 similarity index 73%
20 rename from net-wireless/lorcon/lorcon-2020.06.06_p20220216-r1.ebuild
21 rename to net-wireless/lorcon/lorcon-2020.06.06_p20220216-r2.ebuild
22 index 1508abca7594..19a7dbbdd451 100644
23 --- a/net-wireless/lorcon/lorcon-2020.06.06_p20220216-r1.ebuild
24 +++ b/net-wireless/lorcon/lorcon-2020.06.06_p20220216-r2.ebuild
25 @@ -4,71 +4,66 @@
26 EAPI=8
27
28 DISTUTILS_USE_PEP517=setuptools
29 -PYTHON_COMPAT=( python3_{9..10} )
30 +PYTHON_COMPAT=( python3_{9..11} )
31 DISTUTILS_OPTIONAL=1
32
33 -inherit distutils-r1
34 +inherit distutils-r1 flag-o-matic
35
36 DESCRIPTION="A generic library for injecting 802.11 frames"
37 HOMEPAGE="https://github.com/kismetwireless/lorcon"
38
39 -if [[ ${PV} == "9999" ]] ; then
40 +if [[ ${PV} == *9999 ]] ; then
41 #main repo
42 #EGIT_REPO_URI="https://www.kismetwireless.net/lorcon.git"
43 #reliable mirror
44 EGIT_REPO_URI="https://github.com/kismetwireless/lorcon.git"
45 inherit git-r3
46 - S="${WORKDIR}"/${P}
47 else
48 GIT_HASH="4a81d6aaa2c6ac7253ecd182ffe97c6c89411196"
49 SRC_URI="https://github.com/kismetwireless/lorcon/archive/${GIT_HASH}.tar.gz -> ${P}.tar.gz"
50 S="${WORKDIR}"/"${PN}-${GIT_HASH}"
51 +
52 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86 ~amd64-linux ~x86-linux"
53 fi
54
55 LICENSE="GPL-2"
56 SLOT="0"
57 IUSE="python"
58 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
59
60 RDEPEND="
61 dev-libs/libnl:3=
62 net-libs/libpcap
63 python? ( ${PYTHON_DEPS} )"
64 DEPEND="${RDEPEND}"
65 -BDEPEND="python? ( ${DISTUTILS_DEPS} )"
66 +BDEPEND="
67 + virtual/pkgconfig
68 + python? ( ${DISTUTILS_DEPS} )"
69
70 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
71 -
72 -src_unpack() {
73 - if [[ ${PV} == "9999" ]] ; then
74 - git-r3_src_unpack
75 - cp -R "${S}/" "${WORKDIR}/all" || die
76 - fi
77 - default_src_unpack
78 -}
79 +PATCHES=( "${FILESDIR}"/${P}-C99-decls.patch )
80
81 src_prepare() {
82 default
83 use python && distutils-r1_src_prepare
84 }
85
86 -src_configure() {
87 - econf --disable-static
88 -}
89 -
90 src_compile() {
91 - default_src_compile
92 + default
93 +
94 if use python; then
95 - LDFLAGS+=" -L${S}/.libs/"
96 + append-ldflags "-L${S}/.libs/"
97 cd pylorcon2 || die
98 distutils-r1_src_compile
99 fi
100 }
101
102 src_install() {
103 - emake DESTDIR="${D}" install
104 + default
105 +
106 if use python; then
107 cd pylorcon2 || die
108 distutils-r1_src_install
109 fi
110 +
111 + find "${ED}" -name '*.la' -delete || die
112 }