Gentoo Archives: gentoo-commits

From: Andrey Syutkin <syutkin@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-misc/far2l/
Date: Tue, 20 Apr 2021 19:58:09
Message-Id: 1618948563.f2a4a12e1fd5ec8d66d50bc621b82838a5fd1831.syutkin@gentoo
1 commit: f2a4a12e1fd5ec8d66d50bc621b82838a5fd1831
2 Author: Andrey Syutkin <syutkin <AT> gmail <DOT> com>
3 AuthorDate: Tue Apr 20 19:56:03 2021 +0000
4 Commit: Andrey Syutkin <syutkin <AT> gmail <DOT> com>
5 CommitDate: Tue Apr 20 19:56:03 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f2a4a12e
7
8 app-misc/far2l: new package
9
10 Package-Manager: Portage-3.0.17, Repoman-3.0.2
11 Signed-off-by: Andrey Syutkin <syutkin <AT> gmail.com>
12
13 app-misc/far2l/Manifest | 1 +
14 app-misc/far2l/far2l-2.3.20210419_alpha.ebuild | 95 ++++++++++++++++++++++++++
15 app-misc/far2l/far2l-9999.ebuild | 95 ++++++++++++++++++++++++++
16 app-misc/far2l/metadata.xml | 12 ++++
17 4 files changed, 203 insertions(+)
18
19 diff --git a/app-misc/far2l/Manifest b/app-misc/far2l/Manifest
20 new file mode 100644
21 index 000000000..dd24253db
22 --- /dev/null
23 +++ b/app-misc/far2l/Manifest
24 @@ -0,0 +1 @@
25 +DIST far2l-2.3.20210419_alpha.tar.gz 5441978 BLAKE2B d8878704d5928d5240e1cdcf32dc3e2bd298c3a283811ae29a9cff36c20d1ae8b655ea5355f7c41660eb91b6e53b6c26cf66e93f7d4fc59e12ad3ee1e2cac4b0 SHA512 99b98f5946ce93ddbd93a9d26ce4db22ee687e7c9cbaab53b0087896a9a8247041064614b489d5e6e0a0d4ead72057db5bcbdbf6b060e36b9eb4f61aa30dec38
26
27 diff --git a/app-misc/far2l/far2l-2.3.20210419_alpha.ebuild b/app-misc/far2l/far2l-2.3.20210419_alpha.ebuild
28 new file mode 100644
29 index 000000000..92570f24a
30 --- /dev/null
31 +++ b/app-misc/far2l/far2l-2.3.20210419_alpha.ebuild
32 @@ -0,0 +1,95 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python3_{6..9} )
39 +
40 +CMAKE_MAKEFILE_GENERATOR="emake"
41 +CMAKE_BUILD_TYPE="Release"
42 +WX_GTK_VER="3.0-gtk3"
43 +
44 +inherit eutils cmake xdg-utils wxwidgets python-any-r1
45 +
46 +DESCRIPTION="Linux port of Far Manager"
47 +HOMEPAGE="https://github.com/elfmz/far2l"
48 +
49 +if [[ "${PV}" == "9999" ]] ; then
50 + inherit git-r3
51 + SRC_URI=""
52 + EGIT_REPO_URI="https://github.com/elfmz/far2l"
53 + EGIT_BRANCH="master"
54 +else
55 + MY_PV="${PV:4:4}-${PV:8:2}-${PV:10:8}"
56 + MY_P="${PN}-${MY_PV}"
57 + S="${WORKDIR}/${MY_P}"
58 + SRC_URI="https://github.com/elfmz/far2l/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
59 + KEYWORDS="~amd64 ~x86"
60 +fi
61 +
62 +LICENSE="GPL-2"
63 +SLOT="0"
64 +IUSE="+ssl libressl sftp samba nfs webdav +archive +wxwidgets python +static-libs"
65 +
66 +BDEPEND=">=dev-util/cmake-3.2.2
67 + sys-devel/m4"
68 +
69 +RDEPEND="sys-apps/gawk
70 + dev-libs/xerces-c
71 + dev-libs/spdlog
72 + app-i18n/uchardet
73 + wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER} )
74 + ssl? (
75 + !libressl? ( dev-libs/openssl )
76 + libressl? ( dev-libs/libressl )
77 + )
78 + sftp? ( net-libs/libssh[sftp] )
79 + samba? ( net-fs/samba )
80 + nfs? ( net-fs/libnfs )
81 + webdav? ( net-libs/neon )
82 + archive? (
83 + dev-libs/libpcre2
84 + app-arch/libarchive )
85 + python? ( $(python_gen_any_dep 'dev-python/virtualenv[${PYTHON_USEDEP}]') )"
86 +
87 +DEPEND="${RDEPEND}"
88 +
89 +pkg_setup() {
90 + if use wxwidgets; then
91 + setup-wxwidgets
92 + fi
93 +}
94 +
95 +src_prepare() {
96 + sed -e "s:execute_process(COMMAND ln -sf \../../bin/far2l \${CMAKE_INSTALL_PREFIX}/lib/far2l/far2l_askpass)::" -i "${S}"/CMakeLists.txt
97 + sed -e "s:execute_process(COMMAND ln -sf \../../bin/far2l \${CMAKE_INSTALL_PREFIX}/lib/far2l/far2l_sudoapp)::" -i "${S}"/CMakeLists.txt
98 + sed -e "s:execute_process(COMMAND rm -f \${CMAKE_INSTALL_PREFIX}/lib/far2l/Plugins/objinfo/plug/objinfo.far-plug-mb)::" -i "${S}"/CMakeLists.txt
99 + 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
100 + 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
101 + cmake_src_prepare
102 +}
103 +
104 +src_configure() {
105 + local mycmakeargs=(
106 + -DUSEWX="$(usex wxwidgets)"
107 + -DPYTHON="$(usex python)"
108 + -DBUILD_SHARED_LIBS="$(usex static-libs "no" "yes")"
109 + )
110 +
111 + cmake_src_configure
112 +}
113 +
114 +src_install(){
115 + cmake_src_install
116 + einstalldocs
117 + dosym "../../bin/far2l" "usr/lib/far2l/far2l_askpass"
118 + dosym "../../bin/far2l" "usr/lib/far2l/far2l_sudoapp"
119 +}
120 +
121 +pkg_postinst() {
122 + xdg_icon_cache_update
123 +}
124 +
125 +pkg_postrm() {
126 + xdg_icon_cache_update
127 +}
128 \ No newline at end of file
129
130 diff --git a/app-misc/far2l/far2l-9999.ebuild b/app-misc/far2l/far2l-9999.ebuild
131 new file mode 100644
132 index 000000000..92570f24a
133 --- /dev/null
134 +++ b/app-misc/far2l/far2l-9999.ebuild
135 @@ -0,0 +1,95 @@
136 +# Copyright 1999-2021 Gentoo Authors
137 +# Distributed under the terms of the GNU General Public License v2
138 +
139 +EAPI=7
140 +
141 +PYTHON_COMPAT=( python3_{6..9} )
142 +
143 +CMAKE_MAKEFILE_GENERATOR="emake"
144 +CMAKE_BUILD_TYPE="Release"
145 +WX_GTK_VER="3.0-gtk3"
146 +
147 +inherit eutils cmake xdg-utils wxwidgets python-any-r1
148 +
149 +DESCRIPTION="Linux port of Far Manager"
150 +HOMEPAGE="https://github.com/elfmz/far2l"
151 +
152 +if [[ "${PV}" == "9999" ]] ; then
153 + inherit git-r3
154 + SRC_URI=""
155 + EGIT_REPO_URI="https://github.com/elfmz/far2l"
156 + EGIT_BRANCH="master"
157 +else
158 + MY_PV="${PV:4:4}-${PV:8:2}-${PV:10:8}"
159 + MY_P="${PN}-${MY_PV}"
160 + S="${WORKDIR}/${MY_P}"
161 + SRC_URI="https://github.com/elfmz/far2l/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
162 + KEYWORDS="~amd64 ~x86"
163 +fi
164 +
165 +LICENSE="GPL-2"
166 +SLOT="0"
167 +IUSE="+ssl libressl sftp samba nfs webdav +archive +wxwidgets python +static-libs"
168 +
169 +BDEPEND=">=dev-util/cmake-3.2.2
170 + sys-devel/m4"
171 +
172 +RDEPEND="sys-apps/gawk
173 + dev-libs/xerces-c
174 + dev-libs/spdlog
175 + app-i18n/uchardet
176 + wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER} )
177 + ssl? (
178 + !libressl? ( dev-libs/openssl )
179 + libressl? ( dev-libs/libressl )
180 + )
181 + sftp? ( net-libs/libssh[sftp] )
182 + samba? ( net-fs/samba )
183 + nfs? ( net-fs/libnfs )
184 + webdav? ( net-libs/neon )
185 + archive? (
186 + dev-libs/libpcre2
187 + app-arch/libarchive )
188 + python? ( $(python_gen_any_dep 'dev-python/virtualenv[${PYTHON_USEDEP}]') )"
189 +
190 +DEPEND="${RDEPEND}"
191 +
192 +pkg_setup() {
193 + if use wxwidgets; then
194 + setup-wxwidgets
195 + fi
196 +}
197 +
198 +src_prepare() {
199 + sed -e "s:execute_process(COMMAND ln -sf \../../bin/far2l \${CMAKE_INSTALL_PREFIX}/lib/far2l/far2l_askpass)::" -i "${S}"/CMakeLists.txt
200 + sed -e "s:execute_process(COMMAND ln -sf \../../bin/far2l \${CMAKE_INSTALL_PREFIX}/lib/far2l/far2l_sudoapp)::" -i "${S}"/CMakeLists.txt
201 + sed -e "s:execute_process(COMMAND rm -f \${CMAKE_INSTALL_PREFIX}/lib/far2l/Plugins/objinfo/plug/objinfo.far-plug-mb)::" -i "${S}"/CMakeLists.txt
202 + 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
203 + 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
204 + cmake_src_prepare
205 +}
206 +
207 +src_configure() {
208 + local mycmakeargs=(
209 + -DUSEWX="$(usex wxwidgets)"
210 + -DPYTHON="$(usex python)"
211 + -DBUILD_SHARED_LIBS="$(usex static-libs "no" "yes")"
212 + )
213 +
214 + cmake_src_configure
215 +}
216 +
217 +src_install(){
218 + cmake_src_install
219 + einstalldocs
220 + dosym "../../bin/far2l" "usr/lib/far2l/far2l_askpass"
221 + dosym "../../bin/far2l" "usr/lib/far2l/far2l_sudoapp"
222 +}
223 +
224 +pkg_postinst() {
225 + xdg_icon_cache_update
226 +}
227 +
228 +pkg_postrm() {
229 + xdg_icon_cache_update
230 +}
231 \ No newline at end of file
232
233 diff --git a/app-misc/far2l/metadata.xml b/app-misc/far2l/metadata.xml
234 new file mode 100644
235 index 000000000..fd703baf5
236 --- /dev/null
237 +++ b/app-misc/far2l/metadata.xml
238 @@ -0,0 +1,12 @@
239 +<?xml version="1.0" encoding="UTF-8"?>
240 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
241 +<pkgmetadata>
242 + <use>
243 + <flag name="archive">Multiarc extended archives support</flag>
244 + <flag name="nfs">NFS support in NetRocks</flag>
245 + <flag name="samba">SMB support in NetRocks</flag>
246 + <flag name="sftp">SFTP support in NetRocks</flag>
247 + <flag name="ssl">FTPS support in NetRocks</flag>
248 + <flag name="webdav">WebDav support in NetRocks</flag>
249 + </use>
250 +</pkgmetadata>