net-p2p/amule-dlp-antileech: replace need-wxwidgets, correct LICENSE

wxwidgets.eclass for EAPI 8 only provides `setup-wxwidgets`, so
`need-wxwidgets` failed with "command not found"; the toolkit now follows
the installed wxGTK, so `X` selects `x11-libs/wxGTK[X]`.
amule-dlp loads libantiLeech.so through wxDynamicLibrary, so drop the
libtool archive.

Upstream allows any later version of the license, so LICENSE is GPL-2+:
https://raw.githubusercontent.com/persmule/amule-dlp.antiLeech/886e119c87cda6220c3958459b08238300440f03/antiLeech.cpp

Signed-off-by: Zakk <zakk@gentoozh.org>
This commit is contained in:
Zakk committed 2026-10-27 08:08:55 +00:00
1 parent 1fc430662f
commit 56c5bf79dd
1 file changed
+8 -13
@@ -1,38 +1,33 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
WX_GTK_VER="3.2-gtk3"
inherit autotools git-r3 wxwidgets
DESCRIPTION="$PN, dynamic DLP library for amule-dlp"
HOMEPAGE="https://github.com/persmule/amule-dlp.antileech"
EGIT_REPO_URI="https://github.com/persmule/amule-dlp.antiLeech.git"
LICENSE="GPL-2"
LICENSE="GPL-2+"
SLOT="0"
IUSE="X"
DEPEND="x11-libs/wxGTK:${WX_GTK_VER}"
DEPEND="x11-libs/wxGTK:${WX_GTK_VER}[X?]"
RDEPEND="net-p2p/amule-dlp"
src_prepare() {
default
eautoreconf || die
eautoreconf
}
src_configure() {
if use X; then
einfo "wxGTK with X / GTK support will be used"
need-wxwidgets unicode
else
einfo "wxGTK without X support will be used"
need-wxwidgets base-unicode
fi
setup-wxwidgets
econf
}
src_install() {
emake DESTDIR="${D}" install || die
default
find "${ED}" -name '*.la' -delete || die
}