From 23380b18ffb7021af4e7fc6055ac21777d239d31 Mon Sep 17 00:00:00 2001 From: Pacho Ramos Date: Mon, 11 Nov 2019 22:02:14 +0100 Subject: [PATCH] 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 --- sci-chemistry/molden/files/molden-5.5-gcc8.patch | 9 +++++++++ sci-chemistry/molden/molden-5.5.ebuild | 11 +++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 sci-chemistry/molden/files/molden-5.5-gcc8.patch 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 -- 2.26.2