diff options
author | Pacho Ramos <pacho@gentoo.org> | 2019-05-30 13:44:45 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2019-05-30 13:45:50 +0200 |
commit | b19dba60abee604ae0ed4751742895dbd022df74 (patch) | |
tree | 5231cb65e337448f96048cf2b270fd25c9f6d281 /sci-chemistry/molmol/molmol-2k_p2-r5.ebuild | |
parent | dev-python/cython: Drop 0.29.[56] (diff) | |
download | gentoo-b19dba60abee604ae0ed4751742895dbd022df74.tar.gz gentoo-b19dba60abee604ae0ed4751742895dbd022df74.tar.bz2 gentoo-b19dba60abee604ae0ed4751742895dbd022df74.zip |
sci-chemistry/molmol: Install .desktop file, update ebuild
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'sci-chemistry/molmol/molmol-2k_p2-r5.ebuild')
-rw-r--r-- | sci-chemistry/molmol/molmol-2k_p2-r5.ebuild | 51 |
1 files changed, 33 insertions, 18 deletions
diff --git a/sci-chemistry/molmol/molmol-2k_p2-r5.ebuild b/sci-chemistry/molmol/molmol-2k_p2-r5.ebuild index 41b041609f2f..a09bfe07847b 100644 --- a/sci-chemistry/molmol/molmol-2k_p2-r5.ebuild +++ b/sci-chemistry/molmol/molmol-2k_p2-r5.ebuild @@ -1,39 +1,48 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 - -inherit eutils multilib prefix toolchain-funcs +EAPI=7 +inherit desktop prefix toolchain-funcs MY_PV="${PV/_p/.}.0" MY_P="${PN}-${MY_PV}" DESCRIPTION="Publication-quality molecular visualization package" -HOMEPAGE="http://hugin.ethz.ch/wuthrich/software/molmol/index.html" + +# Original page dead +#HOMEPAGE="http://hugin.ethz.ch/wuthrich/software/molmol/index.html" +HOMEPAGE=" + http://www.csb.yale.edu/userguides/graphics/molmol/molmol_descrip.html + http://pjf.net/science/molmol.html +" SRC_URI=" ftp://ftp.mol.biol.ethz.ch/software/MOLMOL/unix-gzip/${MY_P}-src.tar.gz ftp://ftp.mol.biol.ethz.ch/software/MOLMOL/unix-gzip/${MY_P}-doc.tar.gz - https://dev.gentoo.org/~soap/distfiles/${PN}-patches.tbz2" + https://dev.gentoo.org/~soap/distfiles/${PN}-patches.tbz2 + https://dev.gentoo.org/~pacho/${PN}/${PN}.png +" LICENSE="molmol" SLOT="0" KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux" IUSE="" -DEPEND=" +RDEPEND=" || ( ( media-libs/mesa x11-libs/libGLw ) media-libs/mesa[motif] ) - media-libs/libpng:0 + media-libs/libpng:0= media-libs/tiff:0 sys-libs/zlib virtual/glu virtual/jpeg:0 x11-libs/libXpm x11-libs/motif:0 - x11-apps/xdpyinfo" -RDEPEND="${DEPEND}" + x11-apps/xdpyinfo +" +DEPEND="${RDEPEND}" +BDEPEND="" S="${WORKDIR}" @@ -44,12 +53,14 @@ pkg_setup() { } src_prepare() { + default + rm -rf tiff* # Patch from http://pjf.net/science/molmol.html, where src.rpm is provided - epatch "${WORKDIR}"/patches/pjf_RH9_molmol2k2.diff + eapply "${WORKDIR}"/patches/pjf_RH9_molmol2k2.diff - epatch "${WORKDIR}"/patches/ldflags.patch - epatch "${WORKDIR}"/patches/opengl.patch + eapply "${WORKDIR}"/patches/ldflags.patch + eapply "${WORKDIR}"/patches/opengl.patch ln -s makedef.lnx "${S}"/makedef || die @@ -62,14 +73,14 @@ src_prepare() { -e "s:^CC.*:CC = $(tc-getCC):" \ -i "${S}"/makedef || die - epatch "${WORKDIR}"/patches/cast.patch - epatch "${WORKDIR}"/patches/libpng15.patch + eapply "${WORKDIR}"/patches/cast.patch + eapply -p0 "${WORKDIR}"/patches/libpng15.patch # patch from fink # fixes numerous bad bracings and hopefully the OGL bug 429974 - epatch "${WORKDIR}"/patches/${P}-fink.patch + eapply "${WORKDIR}"/patches/${P}-fink.patch - epatch "${WORKDIR}"/patches/wild.patch + eapply "${WORKDIR}"/patches/wild.patch tc-export AR } @@ -81,5 +92,9 @@ src_install() { insinto ${MMDIR} doins -r auxil help macros man setup tips - dodoc HISTORY README + make_desktop_entry "${PN}" + doicon "${DISTDIR}/${PN}.png" + + einstalldocs + dodoc HISTORY } |