From 5c118ba950c1ad185fb1d18e8121b59b9169d42b Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sun, 3 Dec 2017 18:24:19 +0100 Subject: sci-electronics/ngspice: replace ldflags sed with a patch for Darwin The sed was too greedy, causing bugs like #462318. Replace with a patch that ensures we only once append to LDFLAGS, not multiple times. Closes: https://bugs.gentoo.org/462318 Package-Manager: Portage-2.3.13, Repoman-2.3.3 --- sci-electronics/ngspice/ngspice-26.ebuild | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sci-electronics/ngspice/ngspice-26.ebuild') diff --git a/sci-electronics/ngspice/ngspice-26.ebuild b/sci-electronics/ngspice/ngspice-26.ebuild index 6150e239ac6d..3c185422f418 100644 --- a/sci-electronics/ngspice/ngspice-26.ebuild +++ b/sci-electronics/ngspice/ngspice-26.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI="3" @@ -13,7 +13,7 @@ LICENSE="BSD GPL-2" SLOT="0" IUSE="X debug readline" -KEYWORDS="~amd64 ~ppc ~sparc ~x86" +KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x64-macos" DEPEND="sys-libs/ncurses readline? ( >=sys-libs/readline-5.0 ) @@ -25,9 +25,9 @@ DEPEND="sys-libs/ncurses RDEPEND="$DEPEND" src_prepare() { + epatch "${FILESDIR}"/${P}-respect-ldflags.patch sed -e '/CFLAGS=/s: -s::' -i configure.ac || die "sed failed" sed -e 's/_CFLAGS -O2/_CFLAGS/' -i configure.ac || die "sed failed" - sed -e 's/LDFLAGS =/LDFLAGS +=/' -i src/xspice/icm/makedefs.in || die "sed failed" sed -e '/AM_INIT_AUTOMAKE/s:-Werror::' -i configure.ac || die "sed failed" # builds also with ncurses[tinfo] (bug #458128) sed -e 's/ncurses termcap/ncurses termcap tinfo/g' -i configure.ac || die -- cgit v1.2.3