summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2017-12-03 18:24:19 +0100
committerFabian Groffen <grobian@gentoo.org>2017-12-03 18:24:34 +0100
commit5c118ba950c1ad185fb1d18e8121b59b9169d42b (patch)
tree6583ccc2f4eef273e42e04b2a56274135a39739a /sci-electronics/ngspice/ngspice-26.ebuild
parentnet-vpn/kvpnc: Drop 0.9.6a-r2, broken on stable, masked anyway (diff)
downloadgentoo-5c118ba950c1ad185fb1d18e8121b59b9169d42b.tar.gz
gentoo-5c118ba950c1ad185fb1d18e8121b59b9169d42b.tar.bz2
gentoo-5c118ba950c1ad185fb1d18e8121b59b9169d42b.zip
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
Diffstat (limited to 'sci-electronics/ngspice/ngspice-26.ebuild')
-rw-r--r--sci-electronics/ngspice/ngspice-26.ebuild6
1 files changed, 3 insertions, 3 deletions
diff --git a/sci-electronics/ngspice/ngspice-26.ebuild b/sci-electronics/ngspice/ngspice-26.ebuild
index 6150e239ac6..3c185422f41 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