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>
This commit is contained in:
Pacho Ramos
2019-11-11 22:02:14 +01:00
parent a6d1fde291
commit 23380b18ff
2 changed files with 16 additions and 4 deletions

View File

@@ -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

View File

@@ -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