diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-16 19:46:11 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-16 19:46:11 +0100 |
commit | 1fd4e372381e1318aae1b7d3338c04156e5da974 (patch) | |
tree | d480b13516da01073c455f4a216a5645d4114190 /sci-chemistry/molden/molden-6.9-r1.ebuild | |
parent | 29607d91fb1bf1c4456a0b90601ee172ea769283 (diff) |
gentoo auto-resync : 16:07:2022 - 19:46:10
Diffstat (limited to 'sci-chemistry/molden/molden-6.9-r1.ebuild')
-rw-r--r-- | sci-chemistry/molden/molden-6.9-r1.ebuild | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/sci-chemistry/molden/molden-6.9-r1.ebuild b/sci-chemistry/molden/molden-6.9-r1.ebuild new file mode 100644 index 000000000000..e3ff6d0a079e --- /dev/null +++ b/sci-chemistry/molden/molden-6.9-r1.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop fortran-2 flag-o-matic toolchain-funcs + +MY_P="${PN}${PV}" + +DESCRIPTION="Display molecular density from GAMESS-UK, GAMESS-US, GAUSSIAN and Mopac/Ampac" +HOMEPAGE="https://www.theochem.ru.nl/molden/" +SRC_URI="ftp://ftp.science.ru.nl/pub/Molden/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="MOLDEN" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="opengl" + +DEPEND=" + x11-libs/libXmu + opengl? ( + media-libs/freeglut + virtual/opengl + virtual/glu + ) +" +RDEPEND="${DEPEND} + sci-chemistry/surf +" + +PATCHES=( + "${FILESDIR}/${P}-ldflags.patch" +) + +src_prepare() { + default + sed 's:shell g77:shell $(FC):g' -i makefile || die +} + +src_compile() { + local args=() + + # Use -mieee on alpha, according to the Makefile + use alpha && append-flags -mieee + + # GCC 10 workaround + # bug #724556 + append-fflags $(test-flags-FC -fallow-argument-mismatch) + + args=( + CC="$(tc-getCC) ${CFLAGS}" + FC="$(tc-getFC)" + LDR="$(tc-getFC)" + FFLAGS="${FFLAGS}" + ) + + einfo "Building Molden..." + emake -j1 molden ambfor/ambfor ambfor/ambmd "${args[@]}" + if use opengl ; then + einfo "Building Molden OpenGL helper..." + emake -j1 "${args[@]}" gmolden + fi +} + +src_install() { + dobin bin/molden bin/ambfor bin/ambmd + if use opengl; then + dobin bin/gmolden + doicon -s 64 haux/gmolden.png + make_desktop_entry gmolden MOLDEN gmolden + fi + + dodoc HISTORY README REGISTER + cd doc || die + uncompress * && dodoc * +} |