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