far2l-2.5.0.ebuild

This commit is contained in:
Anton Bolshakov 2023-01-18 13:38:19 +08:00
parent 4a105230da
commit 9e428c033a
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
2 changed files with 69 additions and 0 deletions

View file

@ -1 +1,2 @@
DIST far2l-2.4.1.tar.gz 6322292 BLAKE2B eae7c0c6ae3671a5ee1978660a2ba6e5db0ea3f87c0f9d2a19e10d1b75c1f5a4dbc92bf95cf649a25ad05d78e7edddbfc8085db176fa3fefa38e56efdc1de435 SHA512 c837b22e7c2f1f58a86d38b845facbe821a71f29188260f728d2f961f6d2c1b42794dad3ef278a94c0bec89edf8a82416ef1ba6ee84e1cd64cb973e575610a7f
DIST far2l-2.5.0.tar.gz 6431408 BLAKE2B bc9208f018b26c89038bdb9a1bef2de1bd398655b36023817d6ca498f705018abb462848fe988f7590d0141a66a5eb734e9c6c2d77db90dc3ba163bf1e3dde20 SHA512 0552b6946e771f9488b2c03c71507aea87d15f11b770c8b3adab3530fb830b408f1cc13245f6bde246ca95b6466866a5a7fcd132e03b06f6148c11f4e0182a1a

View file

@ -0,0 +1,68 @@
# 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}"
#PATCHES=( "${FILESDIR}/cmakelist.patch" )
S="${WORKDIR}/${PN}-v_${PV}"
src_configure() {
#FIXME: more options:
# -DPYTHON=yes
#ALIGN AUTOWRAP CALC COLORER COMPARE DRAWLINE EDITCASE EDITORCOMP FARFTP
#FILECASE INCSRCH INSIDE MULTIARC NETROCKS SIMPLEINDENT TMPPANEL
local mycmakeargs=(
-DBUILD_SHARED_LIBS=OFF
-DUSEWX=$(usex X yes no)
# automatic charset detection
-DUSEUCD=$(usex uchardet yes no)
)
cmake_src_configure
}
src_install() {
emake DESTDIR="${D}" install
# FIXME: CMakeLists.txt might not support prefix (/usr/) properly
# dosym "${EPREFIX}"/usr/bin/far2l /usr/lib/far2l/far2l_askpass
# dosym "${EPREFIX}"/usr/bin/far2l /usr/lib/far2l/far2l_sudoapp
newbin - far <<-EOF
#!/bin/sh
/usr/bin/far2l "\$@" --tty
EOF
}