summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2019-11-11 22:02:14 +0100
committerPacho Ramos <pacho@gentoo.org>2019-11-11 22:02:26 +0100
commit23380b18ffb7021af4e7fc6055ac21777d239d31 (patch)
tree1e31c5ccc26d04c2b43094aeefc85e451b91c519 /sci-chemistry
parentdev-db/mariadb: Version bump for 10.1.43 (diff)
downloadgentoo-23380b18ffb7021af4e7fc6055ac21777d239d31.tar.gz
gentoo-23380b18ffb7021af4e7fc6055ac21777d239d31.tar.bz2
gentoo-23380b18ffb7021af4e7fc6055ac21777d239d31.zip
sci-chemistry/molden: Fix build with gcc >= 8, create desktop entry
Bug: https://bugs.gentoo.org/665800 Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'sci-chemistry')
-rw-r--r--sci-chemistry/molden/files/molden-5.5-gcc8.patch9
-rw-r--r--sci-chemistry/molden/molden-5.5.ebuild11
2 files changed, 16 insertions, 4 deletions
diff --git a/sci-chemistry/molden/files/molden-5.5-gcc8.patch b/sci-chemistry/molden/files/molden-5.5-gcc8.patch
new file mode 100644
index 000000000000..b76cb6302679
--- /dev/null
+++ b/sci-chemistry/molden/files/molden-5.5-gcc8.patch
@@ -0,0 +1,9 @@
+--- a/rdchx.f 2016-01-25 17:56:49.000000000 +0600
++++ b/rdchx.f 2018-08-24 16:51:14.000000000 +0700
+@@ -6004,5 +6004,5 @@
+ implicit double precision (a-h,p-z),integer (i-n),logical (o)
+ parameter (mxcon=10)
+- dimension iconn(mxcon+1,*),icnn(mxcon+1)
++ dimension iconn(mxcon+1,*),icnn(*)
+
+ ibnds = 0
diff --git a/sci-chemistry/molden/molden-5.5.ebuild b/sci-chemistry/molden/molden-5.5.ebuild
index 9bc1635e9353..ef939cfb1550 100644
--- a/sci-chemistry/molden/molden-5.5.ebuild
+++ b/sci-chemistry/molden/molden-5.5.ebuild
@@ -1,9 +1,8 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
-
-inherit eutils fortran-2 flag-o-matic toolchain-funcs
+inherit desktop fortran-2 flag-o-matic toolchain-funcs
MY_P="${PN}${PV}"
@@ -21,7 +20,8 @@ RDEPEND="
virtual/glu
opengl? (
media-libs/freeglut
- virtual/opengl )"
+ virtual/opengl )
+"
DEPEND="${RDEPEND}
x11-misc/gccmakedep
app-editors/vim"
@@ -34,6 +34,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-5.0-overflow.patch
"${FILESDIR}"/${PN}-4.8-ldflags.patch
"${FILESDIR}"/${PN}-4.7-implicit-dec.patch
+ "${FILESDIR}"/${PN}-5.5-gcc8.patch
)
src_prepare() {
@@ -67,6 +68,8 @@ src_compile() {
src_install() {
dobin ${PN} g${PN} $(usex opengl ${PN}ogl "")
+ doicon gmolden.png
+ make_desktop_entry gmolden MOLDEN gmolden.png
dodoc HISTORY README REGISTER
cd doc || die