Files
guru/app-misc/far2l/far2l-9999.ebuild
Anna (cybertailor) Vyalkova bb0aae8ad3 */*: disable py3.10
Python 3.10 target is scheduled for removal in Gentoo:
https://public-inbox.gentoo.org/gentoo-dev/e6ca9f1f4ababb79ab2a3d005c39b483c3ecef6e.camel@gentoo.org/

Sphinx 8.2.0 already dropped support for CPython 3.10 and PyPy 3.10,
leading to multiple CI failures in ::guru.

We can safely remove this target, because GURU is "experimental" and
does not have stable keywords.

Let's not remove "pypy3" right now because
a) There are not many packages using it.
b) So we can see which packages supported PyPy 3.10, and test them with
   PyPy 3.11.

Closes: https://github.com/gentoo/guru/pull/291
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2025-02-21 17:51:14 +05:00

87 lines
2.0 KiB
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..13} )
WX_GTK_VER="3.2-gtk3"
inherit cmake xdg wxwidgets
DESCRIPTION="Linux port of FAR Manager v2"
HOMEPAGE="https://github.com/elfmz/far2l"
if [[ "${PV}" == "9999" ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/elfmz/far2l"
EGIT_BRANCH="master"
else
MY_PV="v_${PV/_beta/}"
MY_P="${PN}-${MY_PV}"
S="${WORKDIR}/${MY_P}"
SRC_URI="https://github.com/elfmz/far2l/archive/${MY_PV}.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="GPL-2"
SLOT="0"
IUSE="+archive +chardet +colorer nfs samba sftp +ssl webdav wxwidgets X"
RESTRICT="mirror"
RDEPEND="
wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER} )
X? (
x11-libs/libX11
x11-libs/libXi
)
archive? (
app-arch/libarchive
)
chardet? ( app-i18n/uchardet )
colorer? ( dev-libs/libxml2 )
nfs? ( net-fs/libnfs )
samba? ( net-fs/samba )
sftp? ( net-libs/libssh[sftp] )
ssl? ( dev-libs/openssl )
webdav? ( net-libs/neon )"
DEPEND="${RDEPEND}"
DOCS=( README.md )
pkg_setup() {
if use wxwidgets; then
setup-wxwidgets
fi
}
src_prepare() {
sed -e "s:execute_process(COMMAND ln -sf \../../bin/far2l \${CMAKE_INSTALL_PREFIX}/lib/far2l/far2l_askpass)::" \
-i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND ln -sf \../../bin/far2l \${CMAKE_INSTALL_PREFIX}/lib/far2l/far2l_sudoapp)::" \
-i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND rm -f \${CMAKE_INSTALL_PREFIX}/lib/far2l/Plugins/.*::" \
-i "${S}"/CMakeLists.txt || die
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DUSEWX="$(usex wxwidgets)"
-DUSEUCD=$"$(usex chardet)"
-DCOLORER="$(usex colorer)"
# FIXME: add python plugins support
# -DPYTHON="$(usex python)"
-DBUILD_SHARED_LIBS=OFF
)
cmake_src_configure
}
src_install(){
cmake_src_install
einstalldocs
dosym "../../bin/far2l" "usr/lib/far2l/far2l_askpass"
dosym "../../bin/far2l" "usr/lib/far2l/far2l_sudoapp"
}