/[gentoo-x86]/sci-libs/clipper/clipper-20070907.ebuild
Gentoo

Contents of /sci-libs/clipper/clipper-20070907.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Feb 4 21:26:38 2010 UTC (10 years, 5 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version Bump, fix for bug 246293 & bug 250087
Removed old versions
(Portage version: 2.2_rc62/cvs/Linux x86_64)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/clipper/clipper-20070907.ebuild,v 1.1 2007/12/19 18:43:12 dberkholz Exp $
4
5 inherit autotools
6
7 DESCRIPTION="Object-oriented libraries for the organisation of crystallographic data and the performance of crystallographic computation"
8 HOMEPAGE="http://www.ysbl.york.ac.uk/~cowtan/clipper/clipper.html"
9 #SRC_URI="http://www.ysbl.york.ac.uk/~cowtan/clipper/clipper20ac.latest.tar.gz"
10 SRC_URI="http://dev.gentoo.org/~dberkholz/distfiles/clipper20ac.latest-${PV}.tar.gz"
11 LICENSE="LGPL-2.1"
12 SLOT="0"
13 KEYWORDS="~x86 ~ppc"
14 IUSE=""
15 RDEPEND="sci-chemistry/ccp4"
16 DEPEND="${RDEPEND}"
17 S=${WORKDIR}
18
19 src_unpack() {
20 unpack ${A}
21
22 epatch "${FILESDIR}"/${PV}-as-needed.patch
23
24 # Slot libraries with a '-2' suffix so we don't overlap with ccp4
25 ebegin "versioning libraries with -2 suffix"
26 find . -name Makefile.am \
27 | xargs sed -i \
28 -e "s~\(lib[[:alnum:]_]*\)_la~\1_2_la~g" \
29 -e "s~\(lib[[:alnum:]-]*\).la~\1-2.la~g" \
30 -e "s~\(-lclipper[[:alnum:]-]*\)~\1-2~g" \
31 || die "sed to version libs with -2 failed"
32 eend $?
33
34 AT_M4DIR="config" eautoreconf
35 }
36
37 src_compile() {
38 # Slot programs with a '-2' suffix
39 econf \
40 --enable-contrib \
41 --enable-phs \
42 --enable-mmdb \
43 --with-mmdb=/usr \
44 --enable-mmdbold \
45 --enable-minimol \
46 --enable-cif \
47 --enable-ccp4 \
48 --enable-cns \
49 --program-suffix=-2 \
50 || die
51 # We don't have a cctbx ebuild yet
52 # --enable-cctbx \
53 # This is a GPL replacement for CCP4 libraries
54 # http://www.bioxray.dk/~mok/node/100
55 # --enable-gpp4 \
56
57 emake || die
58 }
59 src_install() {
60 # Slot includes with a '-2' suffix
61 emake \
62 DESTDIR="${D}" \
63 pkgincludedir=/usr/include/clipper-2 \
64 install \
65 || die "emake install failed"
66
67 # Use '-2' suffix in headers
68 ebegin "changing headers to use -2 suffix"
69 grep 'include.*clipper' -rl "${D}" \
70 | xargs sed -i \
71 -e "s~\(include.*clipper\)/~\1-2/~g" \
72 || die "sed to find -2 slotted headers failed"
73 eend $?
74 }

  ViewVC Help
Powered by ViewVC 1.1.20