diff options
Diffstat (limited to 'sci-visualization/xd3d/xd3d-8.3.1-r2.ebuild')
-rw-r--r-- | sci-visualization/xd3d/xd3d-8.3.1-r2.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/sci-visualization/xd3d/xd3d-8.3.1-r2.ebuild b/sci-visualization/xd3d/xd3d-8.3.1-r2.ebuild new file mode 100644 index 000000000000..d6fdeab91c00 --- /dev/null +++ b/sci-visualization/xd3d/xd3d-8.3.1-r2.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit edo fortran-2 flag-o-matic toolchain-funcs + +DESCRIPTION="Scientific visualization tool" +HOMEPAGE="http://www.cmap.polytechnique.fr/~jouve/xd3d/" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples" + +RDEPEND="x11-libs/libXpm" +DEPEND="${RDEPEND}" +BDEPEND="app-shells/tcsh" + +PATCHES=( + "${FILESDIR}"/${P}-r1-gentoo.patch + "${FILESDIR}"/${P}-parallel.patch + "${FILESDIR}"/${P}-rotated.patch + "${FILESDIR}"/${P}-cflags.patch +) + +src_prepare() { + default + + sed -i -e 's:"zutil.h":<zlib.h>:g' src/qlib/timestuff.c || die + sed -i -e "s:##lib##:$(get_libdir):" RULES.gentoo || die "failed to set up RULES.gentoo" +} + +src_configure() { + tc-export CC + + export MY_AR="$(tc-getAR)" + export MY_RANLIB="$(tc-getRANLIB)" + + # GCC 10 workaround + # bug #722426 + append-fflags $(test-flags-FC -fallow-argument-mismatch) + + edo ./configure -arch=gentoo +} + +src_install() { + dodir /usr/bin + emake INSTALL_DIR="${ED}/usr/bin" install + dodoc FORMATS + + use doc && dodoc -r Manuals + + if use examples; then + mv {E,e}xamples || die + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi +} |