commit:     bc2b3aa851eda2fa46b4253d04b1879831188752
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Sun May  5 04:44:54 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun May  5 11:47:11 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc2b3aa8

media-libs/libltc: run elibtoolize in non-live ebuild

When building live, we always run eautoreconf. However, even in release
mode we should still run elibtoolize to get important fixes -- such as
the ones that pass through LTO sanity flags to the link phase.

Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/libltc/libltc-1.3.2.ebuild | 9 +++++++--
 media-libs/libltc/libltc-9999.ebuild  | 7 ++++++-
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/media-libs/libltc/libltc-1.3.2.ebuild 
b/media-libs/libltc/libltc-1.3.2.ebuild
index 48b679efc14b..19a2a8ecf813 100644
--- a/media-libs/libltc/libltc-1.3.2.ebuild
+++ b/media-libs/libltc/libltc-1.3.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -9,6 +9,7 @@ if [[ ${PV} == *9999 ]]; then
        inherit git-r3 autotools
        EGIT_REPO_URI="https://github.com/x42/libltc";
 else
+       inherit libtool
        
SRC_URI="https://github.com/x42/libltc/releases/download/v${PV}/${P}.tar.gz";
        KEYWORDS="amd64"
 fi
@@ -19,7 +20,11 @@ RESTRICT="mirror"
 src_prepare() {
        default
 
-       [[ ${PV} == *9999 ]] && eautoreconf
+       if [[ ${PV} = *9999 ]]; then
+               eautoreconf
+       else
+               elibtoolize
+       fi
 }
 
 src_install() {

diff --git a/media-libs/libltc/libltc-9999.ebuild 
b/media-libs/libltc/libltc-9999.ebuild
index 1151950f7c7a..3049a511a985 100644
--- a/media-libs/libltc/libltc-9999.ebuild
+++ b/media-libs/libltc/libltc-9999.ebuild
@@ -9,6 +9,7 @@ if [[ ${PV} == *9999 ]]; then
        inherit git-r3 autotools
        EGIT_REPO_URI="https://github.com/x42/libltc";
 else
+       inherit libtool
        
SRC_URI="https://github.com/x42/libltc/releases/download/v${PV}/${P}.tar.gz";
        KEYWORDS="~amd64"
 fi
@@ -19,7 +20,11 @@ RESTRICT="mirror"
 src_prepare() {
        default
 
-       [[ ${PV} == *9999 ]] && eautoreconf
+       if [[ ${PV} = *9999 ]]; then
+               eautoreconf
+       else
+               elibtoolize
+       fi
 }
 
 src_install() {

Reply via email to