summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-chemistry/molmol/molmol-2k_p2-r2.ebuild')
-rw-r--r--sci-chemistry/molmol/molmol-2k_p2-r2.ebuild15
1 files changed, 8 insertions, 7 deletions
diff --git a/sci-chemistry/molmol/molmol-2k_p2-r2.ebuild b/sci-chemistry/molmol/molmol-2k_p2-r2.ebuild
index 9fafb28a9e9f..888c738d4f15 100644
--- a/sci-chemistry/molmol/molmol-2k_p2-r2.ebuild
+++ b/sci-chemistry/molmol/molmol-2k_p2-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=4
@@ -12,7 +12,8 @@ DESCRIPTION="Publication-quality molecular visualization package"
HOMEPAGE="http://hugin.ethz.ch/wuthrich/software/molmol/index.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"
+ ftp://ftp.mol.biol.ethz.ch/software/MOLMOL/unix-gzip/${MY_P}-doc.tar.gz
+ https://dev.gentoo.org/~soap/distfiles/${PN}-patches.tbz2"
LICENSE="molmol"
SLOT="0"
@@ -45,12 +46,12 @@ pkg_setup() {
src_prepare() {
rm -rf tiff*
# Patch from http://pjf.net/science/molmol.html, where src.rpm is provided
- epatch "${FILESDIR}"/pjf_RH9_molmol2k2.diff
+ epatch "${WORKDIR}"/patches/pjf_RH9_molmol2k2.diff
- epatch "${FILESDIR}"/prefix.patch
+ epatch "${WORKDIR}"/patches/prefix.patch
eprefixify molmol
- epatch "${FILESDIR}"/ldflags.patch
+ epatch "${WORKDIR}"/patches/ldflags.patch
ln -s makedef.lnx "${S}"/makedef || die
@@ -63,8 +64,8 @@ src_prepare() {
-e "s:^CC.*:CC = $(tc-getCC):" \
-i "${S}"/makedef || die
- epatch "${FILESDIR}"/cast.patch
- epatch "${FILESDIR}"/libpng15.patch
+ epatch "${WORKDIR}"/patches/cast.patch
+ epatch "${WORKDIR}"/patches/libpng15.patch
}
src_install() {