mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-11 08:03:16 -04:00
sys-process/nvtop: change IUSE order and move CMAKE_CONF to local
Optimize the ebuild file Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
@@ -19,7 +19,7 @@ fi
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
|
||||
IUSE="unicode debug"
|
||||
IUSE="debug unicode"
|
||||
|
||||
RDEPEND="
|
||||
sys-libs/ncurses:0=[unicode?]
|
||||
@@ -32,20 +32,17 @@ BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
BUILD_DIR="${WORKDIR}/build"
|
||||
|
||||
CMAKE_CONF="
|
||||
!debug? ( -DCMAKE_BUILD_TYPE=Release )
|
||||
debug? ( -DCMAKE_BUILD_TYPE=Debug )
|
||||
unicode? ( -DCURSES_NEED_WIDE=TRUE )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.0.0-add-nvml.patch
|
||||
"${FILESDIR}"/${PN}-1.0.0-fix-ncurses.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local CMAKE_CONF="
|
||||
!debug? ( -DCMAKE_BUILD_TYPE=Release )
|
||||
debug? ( -DCMAKE_BUILD_TYPE=Debug )
|
||||
unicode? ( -DCURSES_NEED_WIDE=TRUE )
|
||||
"
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
|
||||
-DNVML_INCLUDE_DIRS="${S}/include"
|
||||
|
||||
Reference in New Issue
Block a user