blob: 127276b9e26afc23516490f78d68d427e3a122a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/maid/maid-20011112.ebuild,v 1.9 2008/07/27 15:02:08 markusle Exp $
inherit eutils toolchain-funcs
MY_PN="${PN}_unix"
MY_PV="${PV:6:2}nov${PV:2:2}"
MY_P="${MY_PN}_${MY_PV}"
DESCRIPTION="Automates the fitting of protein X-ray crystallographic electron density maps"
HOMEPAGE="http://www.msi.umn.edu/~levitt/"
SRC_URI="http://www.msi.umn.edu/~levitt/${MY_P}.tar.gz
mirror://gentoo/maid-fix-compilation.patch.bz2"
LICENSE="as-is"
SLOT="0"
KEYWORDS="x86"
IUSE="X"
DEPEND="X? ( x11-libs/openmotif
virtual/glu
virtual/opengl
x11-libs/libXt
)"
S="${WORKDIR}/glmaid_dist"
src_unpack() {
if best_version virtual/opengl | grep mesa; then
if ! built_with_use media-libs/mesa motif; then
msg="Build media-libs/mesa with USE=motif"
eerror "${msg}"
die "${msg}"
fi
fi
unpack ${A}
cd "${S}"
epatch "${DISTDIR}"/maid-fix-compilation.patch.bz2
epatch "${FILESDIR}"/fix-warnings.patch
epatch "${FILESDIR}"/${PN}-gcc4.3.patch
if use X; then
ln -s makefile_graphics makefile
else
ln -s makefile_batch makefile
fi
sed -i \
-e "s:^Cgeneric = .*:Cgeneric = $(tc-getCXX):g" \
-e "s:\(Copt.*\)-O:\1${CFLAGS}:g" \
makefile
}
src_install() {
dodoc MANUAL*
if use X; then
dobin maid
else
dobin maidbatch
fi
}
|