far2l-2.5.2.ebuild

This commit is contained in:
Anton Bolshakov 2023-08-23 14:30:25 +08:00
parent eb8c844bde
commit fff06aef20
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
2 changed files with 67 additions and 1 deletions

View file

@ -1,2 +1,2 @@
DIST far2l-2.5.0.tar.gz 6431408 BLAKE2B bc9208f018b26c89038bdb9a1bef2de1bd398655b36023817d6ca498f705018abb462848fe988f7590d0141a66a5eb734e9c6c2d77db90dc3ba163bf1e3dde20 SHA512 0552b6946e771f9488b2c03c71507aea87d15f11b770c8b3adab3530fb830b408f1cc13245f6bde246ca95b6466866a5a7fcd132e03b06f6148c11f4e0182a1a
DIST far2l-2.5.1.tar.gz 6463768 BLAKE2B dc84cc7f37acb8e0c06589b6c0dc9914b589b22290d18f31db70318ec4668dbb663e865497659ded64618e9b81b4b07e35369a34775e0ec071b89b705718edfd SHA512 95ba3b39c5856de07bd06361b82cb89872a9102bc5a651a3003602cba76ec073f2705b3c610dd412ff076e419234aaea891e5243b48c191d0ee9be14cf1c2d52
DIST far2l-2.5.2.tar.gz 6483703 BLAKE2B f03964e2ddba764884bdeea4a7dc8a4d1cce018664934472fcef550aeabb0a94c1464829fd9540f869b7ab3a9ce43f3b2e200a22d380859a38f46e89d7800dfe SHA512 8066c43e12d583e5b9ddf4f3e855d96f7d2dace99573a09b993f3f14cbda25e2efbe2ffb8d56126bdcf21c442bcae0fc33837ed1698f65173ec7eff74d6dc9e2

View file

@ -0,0 +1,66 @@
# Copyright 1999-2023 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}"
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
}