Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: app-misc/far2l/
Date: Thu, 01 Jul 2021 07:22:19
Message-Id: 1625119243.fff070fb7ec3e4edb36454247436939f130ad399.flow@gentoo
1 commit: fff070fb7ec3e4edb36454247436939f130ad399
2 Author: Andrey Syutkin <syutkin <AT> gmail <DOT> com>
3 AuthorDate: Thu Jul 1 06:00:43 2021 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 1 06:00:43 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fff070fb
7
8 app-misc/far2l: bump to 2.3.20210630_alpha
9
10 Signed-off-by: Andrey Syutkin <syutkin <AT> gmail.com>
11
12 app-misc/far2l/Manifest | 1 +
13 app-misc/far2l/far2l-2.3.20210630_alpha.ebuild | 88 ++++++++++++++++++++++++++
14 2 files changed, 89 insertions(+)
15
16 diff --git a/app-misc/far2l/Manifest b/app-misc/far2l/Manifest
17 index e073873f0..4dd08734a 100644
18 --- a/app-misc/far2l/Manifest
19 +++ b/app-misc/far2l/Manifest
20 @@ -1 +1,2 @@
21 DIST far2l-2.3.20210426_alpha.tar.gz 5441382 BLAKE2B d6f1c2611d4c149755bf7bf7b25428030489f56b3ff5a0f8a5d4703b2229c45a4d35ec6ce3b7b90681690135028678b29cd3062be5fe74eb5a4494edfe3a2b93 SHA512 28a4e819c36815d8e754ea04b57631ee61d5c48ecfe32ce7d7a45564d8f3e08dd8cdcc5a34d3c8c4abc45b143d819c286ad95cbdc281c6b94e8599ff3acdcec3
22 +DIST far2l-2.3.20210630_alpha.tar.gz 5445927 BLAKE2B 15ab034c13221ea02d71e589dc93fce835256ade6238743f9d1becb2cc2cd73ca0271198cb9d47b56b59b938183a657816582b1ad3d61e05fe38d04344edd1c8 SHA512 b9eaf15ab9da1a7f0d3db56e06d52d7d8cc32ebd6ee6b5a5c7067b32fa71526979adfefb66f2a91eba3e5f0390b9e6bea9162c71bb681dfb8094447a709b2c9d
23
24 diff --git a/app-misc/far2l/far2l-2.3.20210630_alpha.ebuild b/app-misc/far2l/far2l-2.3.20210630_alpha.ebuild
25 new file mode 100644
26 index 000000000..ea9fb3377
27 --- /dev/null
28 +++ b/app-misc/far2l/far2l-2.3.20210630_alpha.ebuild
29 @@ -0,0 +1,88 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( python3_{8..10} )
36 +
37 +WX_GTK_VER="3.0-gtk3"
38 +
39 +inherit cmake xdg wxwidgets python-r1
40 +
41 +DESCRIPTION="Linux port of FAR Manager v2"
42 +HOMEPAGE="https://github.com/elfmz/far2l"
43 +
44 +if [[ "${PV}" == "9999" ]] ; then
45 + inherit git-r3
46 + SRC_URI=""
47 + EGIT_REPO_URI="https://github.com/elfmz/far2l"
48 + EGIT_BRANCH="master"
49 +else
50 + MY_PV="${PV:4:4}-${PV:8:2}-${PV:10:8}"
51 + MY_P="${PN}-${MY_PV}"
52 + S="${WORKDIR}/${MY_P}"
53 + SRC_URI="https://github.com/elfmz/far2l/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
54 + KEYWORDS="~amd64 ~x86"
55 +fi
56 +
57 +LICENSE="GPL-2"
58 +SLOT="0"
59 +IUSE="+ssl sftp samba nfs webdav +archive +wxwidgets python"
60 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
61 +
62 +BDEPEND="sys-devel/m4"
63 +
64 +RDEPEND="dev-libs/xerces-c
65 + dev-libs/spdlog
66 + app-i18n/uchardet
67 + wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER} )
68 + ssl? ( dev-libs/openssl )
69 + sftp? ( net-libs/libssh[sftp] )
70 + samba? ( net-fs/samba )
71 + nfs? ( net-fs/libnfs )
72 + webdav? ( net-libs/neon )
73 + archive? (
74 + dev-libs/libpcre2
75 + app-arch/libarchive )
76 + python? (
77 + ${PYTHON_DEPS}
78 + virtual/python-cffi
79 + dev-python/debugpy
80 + $(python_gen_any_dep 'dev-python/virtualenv[${PYTHON_USEDEP}]')
81 + )"
82 +
83 +DEPEND="${RDEPEND}"
84 +
85 +DOCS=( README.md )
86 +
87 +pkg_setup() {
88 + if use wxwidgets; then
89 + setup-wxwidgets
90 + fi
91 +}
92 +
93 +src_prepare() {
94 + sed -e "s:execute_process(COMMAND ln -sf \../../bin/far2l \${CMAKE_INSTALL_PREFIX}/lib/far2l/far2l_askpass)::" -i "${S}"/CMakeLists.txt || die
95 + sed -e "s:execute_process(COMMAND ln -sf \../../bin/far2l \${CMAKE_INSTALL_PREFIX}/lib/far2l/far2l_sudoapp)::" -i "${S}"/CMakeLists.txt || die
96 + 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
97 + 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
98 + 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
99 + cmake_src_prepare
100 +}
101 +
102 +src_configure() {
103 + local mycmakeargs=(
104 + -DUSEWX="$(usex wxwidgets)"
105 + -DPYTHON="$(usex python)"
106 + -DBUILD_SHARED_LIBS=OFF
107 + )
108 +
109 + cmake_src_configure
110 +}
111 +
112 +src_install(){
113 + cmake_src_install
114 + einstalldocs
115 + dosym "../../bin/far2l" "usr/lib/far2l/far2l_askpass"
116 + dosym "../../bin/far2l" "usr/lib/far2l/far2l_sudoapp"
117 +}