mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sci-libs/indilib: use dot-a.eclass
... to avoid installing broken static libraries w/ LTO. Closes: https://bugs.gentoo.org/963784 Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake udev
|
||||
inherit cmake dot-a udev
|
||||
|
||||
DESCRIPTION="INDI Astronomical Control Protocol library"
|
||||
HOMEPAGE="https://www.indilib.org/"
|
||||
@@ -44,6 +44,8 @@ DEPEND="${RDEPEND}
|
||||
PATCHES=( "${FILESDIR}/${P}-system-hidapi.patch" ) # git master
|
||||
|
||||
src_configure() {
|
||||
lto-guarantee-fat
|
||||
|
||||
local mycmakeargs=(
|
||||
-DINDI_SYSTEM_HIDAPILIB=ON
|
||||
-DINDI_SYSTEM_HTTPLIB=ON
|
||||
@@ -73,6 +75,11 @@ src_test() {
|
||||
BUILD_DIR="${BUILD_DIR}"/integs cmake_src_test -j1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
strip-lto-bytecode
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
udev_reload
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake udev
|
||||
inherit cmake dot-a udev
|
||||
|
||||
DESCRIPTION="INDI Astronomical Control Protocol library"
|
||||
HOMEPAGE="https://www.indilib.org/"
|
||||
@@ -42,6 +42,8 @@ DEPEND="${RDEPEND}
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
lto-guarantee-fat
|
||||
|
||||
local mycmakeargs=(
|
||||
-DINDI_SYSTEM_HIDAPILIB=ON
|
||||
-DINDI_SYSTEM_HTTPLIB=ON
|
||||
@@ -71,6 +73,11 @@ src_test() {
|
||||
BUILD_DIR="${BUILD_DIR}"/integs cmake_src_test -j1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
strip-lto-bytecode
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
udev_reload
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user