Skip to content

Instantly share code, notes, and snippets.

@ilya-pirogov
Created October 28, 2020 04:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ilya-pirogov/84336b5232ee421d335a35a06d646f40 to your computer and use it in GitHub Desktop.
Save ilya-pirogov/84336b5232ee421d335a35a06d646f40 to your computer and use it in GitHub Desktop.
# Copyright 1999-2020 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6..9} )
CMAKE_MAKEFILE_GENERATOR="emake"
CMAKE_BUILD_TYPE="Release"
WX_GTK_VER="3.0-gtk3"
inherit git-r3 cmake wxwidgets python-any-r1
EGIT_REPO_URI="https://github.com/elfmz/far2l"
EGIT_BRANCH="master"
DESCRIPTION="Linux port of Far Manager"
HOMEPAGE="http://farmanager.com/"
LICENSE="GPL-2.0"
SLOT="2"
KEYWORDS="~x86 ~amd64"
IUSE="+python wxwidgets +static-libs"
DEPEND="dev-libs/xerces-c
dev-libs/spdlog
app-i18n/uchardet
app-arch/libarchive
dev-libs/libpcre2
net-libs/libssh[sftp]
dev-libs/openssl
net-fs/samba[client]
net-fs/libnfs
net-libs/neon
wxwidgets? ( x11-libs/wxGTK:$WX_GTK_VER )
python? ( $(python_gen_any_dep 'dev-python/virtualenv[${PYTHON_USEDEP}]') )"
RDEPEND="${DEPEND}"
pkg_setup() {
if use wxwidgets; then
setup-wxwidgets
fi
}
src_configure() {
local mycmakeargs=(
-DUSEWX="$(usex wxwidgets)"
-DPYTHON="$(usex python)"
-DBUILD_SHARED_LIBS="$(usex static-libs "no" "yes")"
)
cmake_src_configure
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment