You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
1.5 KiB
70 lines
1.5 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Authors
|
||
8 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=7
|
||
8 years ago
|
|
||
|
inherit autotools flag-o-matic
|
||
|
|
||
|
DESCRIPTION="2D and 3D data visualization and analysis program"
|
||
6 years ago
|
HOMEPAGE="https://github.com/gsteele13/spyview"
|
||
|
|
||
|
if [[ ${PV} == *9999* ]] ; then
|
||
|
inherit git-r3
|
||
|
EGIT_REPO_URI="https://github.com/gsteele13/spyview.git"
|
||
|
else
|
||
|
SRC_URI="https://github.com/gsteele13/spyview/archive/710b9ddb6aa00fada1a758d42b57b75f92bb32a7.tar.gz -> ${P}.tgz"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
fi
|
||
8 years ago
|
|
||
|
LICENSE="GPL-3"
|
||
|
SLOT="0"
|
||
|
IUSE=""
|
||
|
|
||
|
COMMON_DEPEND="
|
||
|
>=dev-libs/boost-1.62.0:=
|
||
|
media-libs/netpbm
|
||
|
x11-libs/fltk:1[opengl]
|
||
|
app-text/ghostscript-gpl
|
||
|
virtual/glu
|
||
|
"
|
||
|
|
||
|
DEPEND="${COMMON_DEPEND}
|
||
|
sys-apps/groff"
|
||
|
|
||
|
RDEPEND="${COMMON_DEPEND}
|
||
|
sci-visualization/gnuplot"
|
||
|
|
||
|
src_unpack() {
|
||
6 years ago
|
if [[ ${PV} == *9999* ]] ; then
|
||
|
git-r3_src_unpack
|
||
|
S="${WORKDIR}/${P}/source"
|
||
|
else
|
||
|
default
|
||
|
mv -v "${WORKDIR}"/spyview-*/source "${S}" || die
|
||
|
fi
|
||
8 years ago
|
}
|
||
|
|
||
|
src_prepare() {
|
||
|
append-cflags $(fltk-config --cflags)
|
||
|
append-cxxflags $(fltk-config --cxxflags)
|
||
|
|
||
|
append-cxxflags -std=c++14
|
||
|
|
||
|
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))
|
||
|
|
||
|
while IFS="" read -d $'\0' -r file; do
|
||
|
sed -i -e 's:-mwindows -mconsole::g' "$file" || die
|
||
|
done < <(find "${S}" -name Makefile.am -print0)
|
||
|
|
||
6 years ago
|
if [[ ${PV} == *9999* ]] ; then
|
||
|
eapply_user
|
||
|
else
|
||
|
default
|
||
|
fi
|
||
8 years ago
|
eautoreconf
|
||
|
}
|