mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08: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:
parent
e7ff2ee5da
commit
d00b933c2a
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
inherit cmake udev
|
inherit cmake dot-a udev
|
||||||
|
|
||||||
DESCRIPTION="INDI Astronomical Control Protocol library"
|
DESCRIPTION="INDI Astronomical Control Protocol library"
|
||||||
HOMEPAGE="https://www.indilib.org/"
|
HOMEPAGE="https://www.indilib.org/"
|
||||||
@ -44,6 +44,8 @@ DEPEND="${RDEPEND}
|
|||||||
PATCHES=( "${FILESDIR}/${P}-system-hidapi.patch" ) # git master
|
PATCHES=( "${FILESDIR}/${P}-system-hidapi.patch" ) # git master
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
|
lto-guarantee-fat
|
||||||
|
|
||||||
local mycmakeargs=(
|
local mycmakeargs=(
|
||||||
-DINDI_SYSTEM_HIDAPILIB=ON
|
-DINDI_SYSTEM_HIDAPILIB=ON
|
||||||
-DINDI_SYSTEM_HTTPLIB=ON
|
-DINDI_SYSTEM_HTTPLIB=ON
|
||||||
@ -73,6 +75,11 @@ src_test() {
|
|||||||
BUILD_DIR="${BUILD_DIR}"/integs cmake_src_test -j1
|
BUILD_DIR="${BUILD_DIR}"/integs cmake_src_test -j1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cmake_src_install
|
||||||
|
strip-lto-bytecode
|
||||||
|
}
|
||||||
|
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
udev_reload
|
udev_reload
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
inherit cmake udev
|
inherit cmake dot-a udev
|
||||||
|
|
||||||
DESCRIPTION="INDI Astronomical Control Protocol library"
|
DESCRIPTION="INDI Astronomical Control Protocol library"
|
||||||
HOMEPAGE="https://www.indilib.org/"
|
HOMEPAGE="https://www.indilib.org/"
|
||||||
@ -42,6 +42,8 @@ DEPEND="${RDEPEND}
|
|||||||
"
|
"
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
|
lto-guarantee-fat
|
||||||
|
|
||||||
local mycmakeargs=(
|
local mycmakeargs=(
|
||||||
-DINDI_SYSTEM_HIDAPILIB=ON
|
-DINDI_SYSTEM_HIDAPILIB=ON
|
||||||
-DINDI_SYSTEM_HTTPLIB=ON
|
-DINDI_SYSTEM_HTTPLIB=ON
|
||||||
@ -71,6 +73,11 @@ src_test() {
|
|||||||
BUILD_DIR="${BUILD_DIR}"/integs cmake_src_test -j1
|
BUILD_DIR="${BUILD_DIR}"/integs cmake_src_test -j1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cmake_src_install
|
||||||
|
strip-lto-bytecode
|
||||||
|
}
|
||||||
|
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
udev_reload
|
udev_reload
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user