media-libs/libcdr: make sure elibtoolize is applied

... and not just when building live.

Needed to e.g. pass LTO warning flags through to the linker. Also needed
to pass through --as-needed correctly to the linker, which has the
practical effect of pruning a link to some unused lcms plugins.

lcms provides its plugins in the main .pc file by design to "simplify
usage", if configuring to build the plugin at all, and expects
--as-needed to strip those out if you don't call `cmsPlugin`. But that
relies on libtool doing its job...

(We unconditionally package the plugins, so this is just an
optimization.)

Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
This commit is contained in:
Eli Schwartz
2025-05-11 02:28:13 -04:00
parent 314c1a45c6
commit c929acd083
2 changed files with 13 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ if [[ ${PV} == *9999* ]]; then
else
SRC_URI="https://dev-www.libreoffice.org/src/libcdr/${P}.tar.xz"
KEYWORDS="amd64 ~arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~sparc x86"
inherit libtool
fi
DESCRIPTION="Library parsing the Corel cdr documents"
@@ -39,7 +40,11 @@ BDEPEND="
src_prepare() {
default
[[ -d m4 ]] || mkdir "m4"
[[ ${PV} == *9999* ]] && eautoreconf
if [[ ${PV} == *9999* ]]; then
eautoreconf
else
elibtoolize
fi
}
src_configure() {

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -9,6 +9,7 @@ if [[ ${PV} == *9999* ]]; then
else
SRC_URI="https://dev-www.libreoffice.org/src/libcdr/${P}.tar.xz"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
inherit libtool
fi
DESCRIPTION="Library parsing the Corel cdr documents"
@@ -39,7 +40,11 @@ BDEPEND="
src_prepare() {
default
[[ -d m4 ]] || mkdir "m4"
[[ ${PV} == *9999* ]] && eautoreconf
if [[ ${PV} == *9999* ]]; then
eautoreconf
else
elibtoolize
fi
}
src_configure() {