From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1498546-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 3C9F215A7D9
	for <garchives@archives.gentoo.org>; Sun, 19 Mar 2023 17:14:17 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 882B9E091D;
	Sun, 19 Mar 2023 17:14:16 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 6DDC9E0907
	for <gentoo-commits@lists.gentoo.org>; Sun, 19 Mar 2023 17:14:16 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 7767C34130F
	for <gentoo-commits@lists.gentoo.org>; Sun, 19 Mar 2023 17:14:15 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id B78B58D5
	for <gentoo-commits@lists.gentoo.org>; Sun, 19 Mar 2023 17:14:13 +0000 (UTC)
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" <soap@gentoo.org>
Message-ID: <1679246037.67f9979bc3e1c009d6a255de79e0cb9c4015cc4c.soap@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/lorcon/
X-VCS-Repository: repo/gentoo
X-VCS-Files: net-wireless/lorcon/lorcon-9999.ebuild
X-VCS-Directories: net-wireless/lorcon/
X-VCS-Committer: soap
X-VCS-Committer-Name: David Seifert
X-VCS-Revision: 67f9979bc3e1c009d6a255de79e0cb9c4015cc4c
X-VCS-Branch: master
Date: Sun, 19 Mar 2023 17:14:13 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 686f8976-79f3-431d-8995-9c45ea26f8ff
X-Archives-Hash: 9f5b65e9525bde12aad6979ce09a0a48

commit:     67f9979bc3e1c009d6a255de79e0cb9c4015cc4c
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 19 17:13:57 2023 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Mar 19 17:13:57 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67f9979b

net-wireless/lorcon: sync live ebuild

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 net-wireless/lorcon/lorcon-9999.ebuild | 37 ++++++++++++++--------------------
 1 file changed, 15 insertions(+), 22 deletions(-)

diff --git a/net-wireless/lorcon/lorcon-9999.ebuild b/net-wireless/lorcon/lorcon-9999.ebuild
index 1508abca7594..b7e75c806c22 100644
--- a/net-wireless/lorcon/lorcon-9999.ebuild
+++ b/net-wireless/lorcon/lorcon-9999.ebuild
@@ -4,71 +4,64 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..10} )
+PYTHON_COMPAT=( python3_{9..11} )
 DISTUTILS_OPTIONAL=1
 
-inherit distutils-r1
+inherit distutils-r1 flag-o-matic
 
 DESCRIPTION="A generic library for injecting 802.11 frames"
 HOMEPAGE="https://github.com/kismetwireless/lorcon"
 
-if [[ ${PV} == "9999" ]] ; then
+if [[ ${PV} == *9999 ]] ; then
 	#main repo
 	#EGIT_REPO_URI="https://www.kismetwireless.net/lorcon.git"
 	#reliable mirror
 	EGIT_REPO_URI="https://github.com/kismetwireless/lorcon.git"
 	inherit git-r3
-	S="${WORKDIR}"/${P}
 else
 	GIT_HASH="4a81d6aaa2c6ac7253ecd182ffe97c6c89411196"
 	SRC_URI="https://github.com/kismetwireless/lorcon/archive/${GIT_HASH}.tar.gz -> ${P}.tar.gz"
 	S="${WORKDIR}"/"${PN}-${GIT_HASH}"
+
 	KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86 ~amd64-linux ~x86-linux"
 fi
 
 LICENSE="GPL-2"
 SLOT="0"
 IUSE="python"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
 RDEPEND="
 	dev-libs/libnl:3=
 	net-libs/libpcap
 	python? ( ${PYTHON_DEPS} )"
 DEPEND="${RDEPEND}"
-BDEPEND="python? ( ${DISTUTILS_DEPS} )"
-
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-
-src_unpack() {
-	if [[ ${PV} == "9999" ]] ; then
-		git-r3_src_unpack
-		cp -R "${S}/" "${WORKDIR}/all" || die
-	fi
-	default_src_unpack
-}
+BDEPEND="
+	virtual/pkgconfig
+	python? ( ${DISTUTILS_DEPS} )"
 
 src_prepare() {
 	default
 	use python && distutils-r1_src_prepare
 }
 
-src_configure() {
-	econf --disable-static
-}
-
 src_compile() {
-	default_src_compile
+	default
+
 	if use python; then
-		LDFLAGS+=" -L${S}/.libs/"
+		append-ldflags "-L${S}/.libs/"
 		cd pylorcon2 || die
 		distutils-r1_src_compile
 	fi
 }
 
 src_install() {
-	emake DESTDIR="${D}" install
+	default
+
 	if use python; then
 		cd pylorcon2 || die
 		distutils-r1_src_install
 	fi
+
+	find "${ED}" -name '*.la' -delete || die
 }