mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-misc/openrgb: workaround cpp-httplib lib name change
Closes: https://bugs.gentoo.org/934576 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 2020-2023 Gentoo Authors
|
||||
# Copyright 2020-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -63,10 +63,19 @@ src_configure() {
|
||||
# > warning: ‘-pipe’ ignored because ‘-save-temps’ specified
|
||||
filter-flags -pipe
|
||||
|
||||
# cpp-httplib >=0.16.0 changed the library name from "httplib" to "cpp-httplib".
|
||||
# See bug: https://bugs.gentoo.org/934576
|
||||
local -a libs=()
|
||||
if has_version "<dev-cpp/cpp-httplib-0.16.0" ; then
|
||||
libs+=( -lhttplib )
|
||||
else
|
||||
libs+=( -lcpp-httplib )
|
||||
fi
|
||||
|
||||
eqmake5 \
|
||||
INCLUDEPATH+="${ESYSROOT}/usr/include/nlohmann" \
|
||||
DEFINES+="OPENRGB_EXTRA_PLUGIN_DIRECTORY=\\\\\"\\\"${EPREFIX}/usr/$(get_libdir)/OpenRGB/plugins\\\\\"\\\"" \
|
||||
LIBS+=-lhttplib
|
||||
LIBS+="${libs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 2020-2023 Gentoo Authors
|
||||
# Copyright 2020-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -63,10 +63,19 @@ src_configure() {
|
||||
# > warning: ‘-pipe’ ignored because ‘-save-temps’ specified
|
||||
filter-flags -pipe
|
||||
|
||||
# cpp-httplib >=0.16.0 changed the library name from "httplib" to "cpp-httplib".
|
||||
# See bug: https://bugs.gentoo.org/934576
|
||||
local -a libs=()
|
||||
if has_version "<dev-cpp/cpp-httplib-0.16.0" ; then
|
||||
libs+=( -lhttplib )
|
||||
else
|
||||
libs+=( -lcpp-httplib )
|
||||
fi
|
||||
|
||||
eqmake5 \
|
||||
INCLUDEPATH+="${ESYSROOT}/usr/include/nlohmann" \
|
||||
DEFINES+="OPENRGB_EXTRA_PLUGIN_DIRECTORY=\\\\\"\\\"${EPREFIX}/usr/$(get_libdir)/OpenRGB/plugins\\\\\"\\\"" \
|
||||
LIBS+=-lhttplib
|
||||
LIBS+="${libs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
||||
Reference in New Issue
Block a user