diff options
Diffstat (limited to 'sci-visualization/spyview/spyview-20150124.ebuild')
-rw-r--r-- | sci-visualization/spyview/spyview-20150124.ebuild | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/sci-visualization/spyview/spyview-20150124.ebuild b/sci-visualization/spyview/spyview-20150124.ebuild index fd110c3518eb..212779375b23 100644 --- a/sci-visualization/spyview/spyview-20150124.ebuild +++ b/sci-visualization/spyview/spyview-20150124.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=6 -inherit autotools flag-o-matic eutils multilib +inherit autotools flag-o-matic DESCRIPTION="2D and 3D data visualization and analysis program" HOMEPAGE="http://nsweb.tn.tudelft.nl/~gsteele/spyview/" @@ -12,7 +12,7 @@ SRC_URI="https://github.com/gsteele13/spyview/archive/966012afae2fbb77262bd96a7e LICENSE="GPL-3" SLOT="0" -KEYWORDS="" # no keywords since it doesnt build yet... +KEYWORDS="~amd64 ~x86" IUSE="" COMMON_DEPEND=" @@ -29,6 +29,8 @@ DEPEND="${COMMON_DEPEND} RDEPEND="${COMMON_DEPEND} sci-visualization/gnuplot" +PATCHES=( ${FILESDIR}/${P}-gnuplot_interface_fix.patch ) + src_unpack() { default mv -v "${WORKDIR}"/spyview-*/source "${S}" || die @@ -36,18 +38,17 @@ src_unpack() { src_prepare() { append-cflags $(fltk-config --cflags) - append-cxxflags $(fltk-config --cxxflags) -I/usr/include/netpbm + append-cxxflags $(fltk-config --cxxflags) + append-cppflags -I"${EPREFIX}"/usr/include/netpbm # append-ldflags $(fltk-config --ldflags) # this one leads to an insane amount of warnings append-ldflags -L$(dirname $(fltk-config --libs)) - find "${S}" -name Makefile.am -exec sed -i -e 's:-mwindows -mconsole::g' {} + || die + while IFS="" read -d $'\0' -r file; do + sed -i -e 's:-mwindows -mconsole::g' "$file" || die + done < <(find "${S}" -name Makefile.am -print0) default eautoreconf } - -src_configure() { - econf --datadir=/usr/share/spyview --docdir=/usr/share/doc/${PF} -} |