mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-01 11:11:08 +02:00
far2l: initial ebuild
This commit is contained in:
parent
05ea8220e0
commit
ab0373aeb9
3 changed files with 76 additions and 0 deletions
1
app-misc/far2l/Manifest
Normal file
1
app-misc/far2l/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST far2l-2.4.1.tar.gz 6322292 BLAKE2B eae7c0c6ae3671a5ee1978660a2ba6e5db0ea3f87c0f9d2a19e10d1b75c1f5a4dbc92bf95cf649a25ad05d78e7edddbfc8085db176fa3fefa38e56efdc1de435 SHA512 c837b22e7c2f1f58a86d38b845facbe821a71f29188260f728d2f961f6d2c1b42794dad3ef278a94c0bec89edf8a82416ef1ba6ee84e1cd64cb973e575610a7f
|
||||
62
app-misc/far2l/far2l-2.4.1.ebuild
Normal file
62
app-misc/far2l/far2l-2.4.1.ebuild
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
#CMAKE_MAKEFILE_GENERATOR ?= ninja
|
||||
CMAKE_MAKEFILE_GENERATOR=emake
|
||||
CMAKE_IN_SOURCE_BUILD=1
|
||||
CMAKE_VERBOSE=ON
|
||||
CMAKE_BUILD_TYPE=Release
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Linux port of FAR v2"
|
||||
HOMEPAGE="https://github.com/elfmz/far2l/"
|
||||
SRC_URI="https://github.com/elfmz/far2l/archive/refs/tags/v_${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="amd64 ~arm64 x86"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="+uchardet X +ssh nfs +samba webdav"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/xerces-c
|
||||
uchardet? ( app-i18n/uchardet )
|
||||
dev-util/cmake
|
||||
dev-libs/spdlog
|
||||
|
||||
X? ( x11-libs/wxGTK )
|
||||
webdav? ( net-libs/neon )
|
||||
ssh? ( net-libs/libssh )
|
||||
nfs? ( net-fs/libnfs )
|
||||
samba? ( net-fs/samba )
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
#BDEPEND=""
|
||||
|
||||
PATCHES=( "${FILESDIR}/cmakelist.patch" )
|
||||
|
||||
S="${WORKDIR}/${PN}-v_${PV}"
|
||||
|
||||
src_configure() {
|
||||
|
||||
local mycmakeargs=(
|
||||
-DBUILD_SHARED_LIBS=OFF
|
||||
-DUSEWX=$(usex X yes no)
|
||||
# automatic charset detection
|
||||
-DUSEUCD=$(usex uchardet yes no)
|
||||
)
|
||||
|
||||
# -DPYTHON=yes
|
||||
#ALIGN AUTOWRAP CALC COLORER COMPARE DRAWLINE EDITCASE EDITORCOMP FARFTP FILECASE INCSRCH INSIDE MULTIARC NETROCKS SIMPLEINDENT TMPPANEL
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
#src_install() {
|
||||
# emake DESTDIR="${D}" install
|
||||
# FIXME: fix cmakefile, see https://github.com/elfmz/far2l/issues/819
|
||||
#<------>execute_process(COMMAND ln -sf ../../bin/far2l ${CMAKE_INSTALL_PREFIX}/lib/far2l/far2l_askpass)
|
||||
#<------>execute_process(COMMAND ln -sf ../../bin/far2l ${CMAKE_INSTALL_PREFIX}/lib/far2l/far2l_sudoapp)
|
||||
#}
|
||||
13
app-misc/far2l/files/cmakelist.patch
Normal file
13
app-misc/far2l/files/cmakelist.patch
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
--- a/CMakeLists.txt.orig 2022-09-26 02:39:25.000000000 +0800
|
||||
+++ b/CMakeLists.txt 2022-11-18 00:44:34.271140903 +0800
|
||||
@@ -499,10 +499,3 @@
|
||||
PATTERN "*.broker" EXCLUDE
|
||||
PATTERN "python/plug/python" EXCLUDE
|
||||
PATTERN "*")
|
||||
-
|
||||
-# setup some symlinks and remove deprecated stuff from previous installation
|
||||
-install(CODE "
|
||||
- execute_process(COMMAND ln -sf ../../bin/far2l ${CMAKE_INSTALL_PREFIX}/lib/far2l/far2l_askpass)
|
||||
- execute_process(COMMAND ln -sf ../../bin/far2l ${CMAKE_INSTALL_PREFIX}/lib/far2l/far2l_sudoapp)
|
||||
- execute_process(COMMAND rm -f ${CMAKE_INSTALL_PREFIX}/lib/far2l/Plugins/objinfo/plug/objinfo.far-plug-mb)
|
||||
- " COMPONENT system)
|
||||
Loading…
Reference in a new issue