commit: 2111aa4b9f248d5dd9ef899e9a69ef5ddb16b233 Author: Andrey Syutkin <syutkin <AT> gmail <DOT> com> AuthorDate: Wed Aug 28 21:55:21 2024 +0000 Commit: Andrey Syutkin <syutkin <AT> gmail <DOT> com> CommitDate: Wed Aug 28 21:57:21 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2111aa4b
app-misc/far2l: add 2.6.3_beta Signed-off-by: Andrey Syutkin <syutkin <AT> gmail.com> app-misc/far2l/Manifest | 1 + app-misc/far2l/far2l-2.6.3_beta.ebuild | 80 ++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) diff --git a/app-misc/far2l/Manifest b/app-misc/far2l/Manifest index 51138987f..1002b51cd 100644 --- a/app-misc/far2l/Manifest +++ b/app-misc/far2l/Manifest @@ -1 +1,2 @@ DIST v_2.5.3.tar.gz 6529657 BLAKE2B fe0a1fad689594c1f472301b1f39e813fc7a5d949a99db38120f4beb4d703854ce0e6fc844e881623cf3a255357ec3680a9efbc78090a800c4c6d3455d6eafea SHA512 a4569511428f7d1465554e9c8075b9481be73f5383831b46e1c5e6ab25e5672585dbbe96bbf22c6dd5115c38e62916f0eef8206718374110b78389fde54086bd +DIST v_2.6.3.tar.gz 6730071 BLAKE2B 09e629c4bc77a93acdbe92a455355cb09ef54eb025c824fbf829db093f6d5b5a9491023aec80b050667aeeca910dbe82183d542268b0f722c83aa81e3278ade8 SHA512 9d35cae6bbc55058b4926026f73d8f368d8c78669493a67ab0901a3b044b27db87297715d763116fd3460f3a76dc890dbede09e24c3eae8354ac005d8f1c8bd7 diff --git a/app-misc/far2l/far2l-2.6.3_beta.ebuild b/app-misc/far2l/far2l-2.6.3_beta.ebuild new file mode 100644 index 000000000..7f902db40 --- /dev/null +++ b/app-misc/far2l/far2l-2.6.3_beta.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +WX_GTK_VER="3.0-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="+ssl sftp samba nfs webdav +archive +wxwidgets" +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 + )" + +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)" +# FIXME: add python plugins support +# We need pcpp for this +# -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" +}