You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.2 KiB
52 lines
1.2 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
8 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=6
|
||
8 years ago
|
|
||
|
inherit cmake-utils
|
||
|
|
||
|
DESCRIPTION="UI abstraction library - ncurses plugin"
|
||
|
HOMEPAGE="https://github.com/libyui/libyui-ncurses"
|
||
6 years ago
|
SRC_URI="https://github.com/libyui/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||
8 years ago
|
|
||
|
LICENSE="GPL-3"
|
||
|
SLOT="0/6"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
|
||
|
IUSE="static-libs"
|
||
|
|
||
6 years ago
|
RDEPEND="
|
||
|
sys-libs/ncurses:0=
|
||
8 years ago
|
x11-libs/libyui:${SLOT}
|
||
|
"
|
||
|
# Only Boost headers are needed
|
||
|
DEPEND="${RDEPEND}
|
||
6 years ago
|
dev-libs/boost
|
||
|
"
|
||
8 years ago
|
|
||
6 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}/${PN}-2.46.4-tinfo.patch"
|
||
|
"${FILESDIR}/${P}-ncurses.patch"
|
||
|
)
|
||
8 years ago
|
|
||
|
src_prepare() {
|
||
|
cp "${EPREFIX}/usr/share/libyui/buildtools/CMakeLists.common" CMakeLists.txt || die
|
||
|
|
||
|
# TODO: set proper docs deps and USE flag for building them
|
||
|
sed -i -e '/SET_AUTODOCS/d' CMakeLists.txt || die 'sed on CMakeLists.txt failed'
|
||
|
sed -i -e 's/src examples/src/' PROJECTINFO.cmake || die 'sed on PROJECTINFO.cmake failed'
|
||
|
|
||
|
cmake-utils_src_prepare
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
local mycmakeargs=(
|
||
|
-DENABLE_EXAMPLES=OFF
|
||
|
-DENABLE_WERROR=OFF
|
||
6 years ago
|
-DDOC_DIR="${EPREFIX}/usr/share/doc/${PF}"
|
||
8 years ago
|
-DRESPECT_FLAGS=ON
|
||
6 years ago
|
-DENABLE_STATIC=$(usex static-libs)
|
||
8 years ago
|
)
|
||
|
cmake-utils_src_configure
|
||
|
}
|