mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-23 14:03:33 -04:00
app-emulation/LookingGlass: unkeyword 1_beta6 for ~amd64
* fix ExcessiveLineLength Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
This commit is contained in:
@@ -12,7 +12,6 @@ HOMEPAGE="https://looking-glass.io https://github.com/gnif/LookingGlass"
|
|||||||
|
|
||||||
LICENSE="GPL-2"
|
LICENSE="GPL-2"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64"
|
|
||||||
IUSE="binutils X wayland pipewire pulseaudio gnome"
|
IUSE="binutils X wayland pipewire pulseaudio gnome"
|
||||||
REQUIRED_USE="|| ( binutils X wayland pipewire pulseaudio ) pipewire? ( !pulseaudio ) pulseaudio? ( !pipewire ) "
|
REQUIRED_USE="|| ( binutils X wayland pipewire pulseaudio ) pipewire? ( !pulseaudio ) pulseaudio? ( !pipewire ) "
|
||||||
|
|
||||||
@@ -40,41 +39,19 @@ BDEPEND="virtual/pkgconfig"
|
|||||||
|
|
||||||
CMAKE_USE_DIR="${S}"/client
|
CMAKE_USE_DIR="${S}"/client
|
||||||
|
|
||||||
src_prepare() {
|
src_configure () {
|
||||||
default
|
|
||||||
|
|
||||||
# Base on build.rst from the project
|
# Base on build.rst from the project
|
||||||
# https://github.com/gnif/LookingGlass/blob/master/doc/build.rst
|
# doc/build.rst
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DENABLE_BACKTRACE=$(usex binutils) -DENABLE_X11=$(usex X) -DENABLE_WAYLAND=$(usex wayland) \
|
||||||
|
DENABLE_PIPEWIRE=$(usex pipewire) -DENABLE_PULSEAUDIO=$(usex pulseaudio) -DENABLE_LIBDECOR=$(usex gnome)
|
||||||
|
)
|
||||||
|
|
||||||
if ! use binutils; then
|
cmake_src_configure
|
||||||
MYCMAKEARGS=" -DENABLE_BACKTRACE=no "
|
}
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use X; then
|
src_compile() {
|
||||||
MYCMAKEARGS=" ${MYCMAKEARGS} -DENABLE_X11=no "
|
cmake_src_compile
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use wayland; then
|
|
||||||
MYCMAKEARGS=" ${MYCMAKEARGS} -DENABLE_WAYLAND=no "
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use pipewire; then
|
|
||||||
MYCMAKEARGS=" ${MYCMAKEARGS} -DENABLE_PIPEWIRE=no "
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use pulseaudio; then
|
|
||||||
MYCMAKEARGS=" ${MYCMAKEARGS} -DENABLE_PULSEAUDIO=no "
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use pulseaudio; then
|
|
||||||
MYCMAKEARGS=" ${MYCMAKEARGS} -DENABLE_PULSEAUDIO=no "
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use gnome && use wayland; then
|
|
||||||
MYCMAKEARGS=" ${MYCMAKEARGS} -DENABLE_LIBDECOR=ON "
|
|
||||||
fi
|
|
||||||
|
|
||||||
cmake_src_prepare
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
|
|||||||
@@ -38,41 +38,19 @@ BDEPEND="virtual/pkgconfig"
|
|||||||
|
|
||||||
CMAKE_USE_DIR="${S}"/client
|
CMAKE_USE_DIR="${S}"/client
|
||||||
|
|
||||||
src_prepare() {
|
src_configure () {
|
||||||
default
|
|
||||||
|
|
||||||
# Base on build.rst from the project
|
# Base on build.rst from the project
|
||||||
# https://github.com/gnif/LookingGlass/blob/master/doc/build.rst
|
# doc/build.rst
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DENABLE_BACKTRACE=$(usex binutils) -DENABLE_X11=$(usex X) -DENABLE_WAYLAND=$(usex wayland) \
|
||||||
|
DENABLE_PIPEWIRE=$(usex pipewire) -DENABLE_PULSEAUDIO=$(usex pulseaudio) -DENABLE_LIBDECOR=$(usex gnome)
|
||||||
|
)
|
||||||
|
|
||||||
if ! use binutils; then
|
cmake_src_configure
|
||||||
MYCMAKEARGS=" -DENABLE_BACKTRACE=no "
|
}
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use X; then
|
src_compile() {
|
||||||
MYCMAKEARGS=" ${MYCMAKEARGS} -DENABLE_X11=no "
|
cmake_src_compile
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use wayland; then
|
|
||||||
MYCMAKEARGS=" ${MYCMAKEARGS} -DENABLE_WAYLAND=no "
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use pipewire; then
|
|
||||||
MYCMAKEARGS=" ${MYCMAKEARGS} -DENABLE_PIPEWIRE=no "
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use pulseaudio; then
|
|
||||||
MYCMAKEARGS=" ${MYCMAKEARGS} -DENABLE_PULSEAUDIO=no "
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use pulseaudio; then
|
|
||||||
MYCMAKEARGS=" ${MYCMAKEARGS} -DENABLE_PULSEAUDIO=no "
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use gnome && use wayland; then
|
|
||||||
MYCMAKEARGS=" ${MYCMAKEARGS} -DENABLE_LIBDECOR=ON "
|
|
||||||
fi
|
|
||||||
|
|
||||||
cmake_src_prepare
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
|
|||||||
Reference in New Issue
Block a user