app-misc/far2l: Version bump to 2.4.0_beta

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Andrey Syutkin <syutkin@gmail.com>
This commit is contained in:
Andrey Syutkin
2022-01-12 23:03:15 +03:00
parent 1bea0f3f06
commit 1d96727443
3 changed files with 95 additions and 2 deletions

View File

@@ -1 +1,2 @@
DIST v_2.3.2.tar.gz 6232935 BLAKE2B ea146088c518bfeb0d935313a07f00a37fd2b6998388060514d144494946565661d3554e8ffb63b4bed8b9f1c3cea2ba4ec4c0787b0fa89df7f8d39720606b03 SHA512 e610a2b92ab3e7896f3aa5a59872cf273ab1c60ff6aac8e71d1d7152c2e8cb36fb8552167e13c8a4bcec9138052a3397c202cfa4b57cddf2053508421eb66799
DIST v_2.4.0.tar.gz 6223889 BLAKE2B 25c13233dc53b4be7ba97eb20c6455cda2d1ffd332ece0c6869cd88f7af16b052fab13968a20bf12d6549e17b46fc894503d59f58a893e550808759fde974279 SHA512 096f7a755f71be2b5f80ad091ed4f796e064af6f91d7313bb3c898ea65cb743e406963df3c8b1a263df0d3b2a628f2f47653a14b8fe78a32ee9379ff424f9594

View File

@@ -0,0 +1,92 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8..10} )
WX_GTK_VER="3.0-gtk3"
inherit cmake xdg wxwidgets python-r1
DESCRIPTION="Linux port of FAR Manager v2"
HOMEPAGE="https://github.com/elfmz/far2l"
if [[ "${PV}" == "9999" ]] ; then
inherit git-r3
SRC_URI=""
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="+ssl sftp samba nfs webdav +archive +wxwidgets python"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
RESTRICT="mirror"
BDEPEND="sys-devel/m4"
RDEPEND="dev-libs/xerces-c
dev-libs/spdlog
app-i18n/uchardet
wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER} )
ssl? ( dev-libs/openssl )
sftp? ( net-libs/libssh[sftp] )
samba? ( net-fs/samba )
nfs? ( net-fs/libnfs )
webdav? ( net-libs/neon )
archive? (
dev-libs/libpcre2
app-arch/libarchive )
python? (
${PYTHON_DEPS}
virtual/python-cffi
dev-python/debugpy
)"
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/objinfo/plug/objinfo.far-plug-mb)::" -i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND rm -f \${CMAKE_INSTALL_PREFIX}/lib/far2l/Plugins/farftp/plug/farftp.far-plug-mb && echo Removed existing farftp plugin)::" -i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND rm -f \${CMAKE_INSTALL_PREFIX}/lib/far2l/Plugins/python/plug/python.far-plug-wide && echo Removed existing python plugin)::" -i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND echo Python\: prepaing virtual environment)::" -i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND \${PYTHON3} -m venv --system-site-packages \${CMAKE_INSTALL_PREFIX}/lib/far2l/Plugins/python/plug/python)::" -i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND echo Python\: installing packages)::" -i "${S}"/CMakeLists.txt || die
sed -e "s:execute_process(COMMAND \${CMAKE_INSTALL_PREFIX}/lib/far2l/Plugins/python/plug/python/bin/python -m pip install cffi debugpy)::" -i "${S}"/CMakeLists.txt || die
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DUSEWX="$(usex wxwidgets)"
-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"
}

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -18,7 +18,7 @@ if [[ "${PV}" == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/elfmz/far2l"
EGIT_BRANCH="master"
else
MY_PV="v_${PV/_alpha/}"
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"