Files
guru/dev-libs/nativefiledialog-extended/nativefiledialog-extended-0_pre20210430.ebuild
Andrew Ammerlaan b316bdb1a6 dev-libs/nativefiledialog-extended: shorten description
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
2021-07-24 17:52:31 +02:00

38 lines
868 B
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
COMMIT="322d1bc2a98c7b8236195d458643ac8e76391011"
inherit cmake
DESCRIPTION="File dialog library with C and C++ bindings, based on nativefiledialog"
HOMEPAGE="https://github.com/btzy/nativefiledialog-extended"
SRC_URI="https://github.com/btzy/nativefiledialog-extended/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT}"
LICENSE="ZLIB"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="x11-libs/gtk+:3"
DEPEND="${RDEPEND}"
IUSE="test"
RESTRICT="!test? ( test )"
PATCHES=( "${FILESDIR}/${P}-no-static.patch" )
src_prepare() {
eapply_user
sed -e "s|DESTINATION lib|DESTINATION $(get_libdir)|g" -i src/CMakeLists.txt || die
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DNFD_BUILD_TESTS=$(usex test)
)
cmake_src_configure
}