/[gentoo-x86]/sci-libs/ccpn-data/ccpn-data-2.2.1_p110928.ebuild
Gentoo

Contents of /sci-libs/ccpn-data/ccpn-data-2.2.1_p110928.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Oct 11 14:12:09 2011 UTC (9 years, 1 month ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Add missing use of python.eclass

(Portage version: 2.2.0_alpha66/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/ccpn-data/ccpn-data-2.2.1_p110928.ebuild,v 1.1 2011/09/28 14:16:34 jlec Exp $
4
5 EAPI=4
6
7 inherit portability versionator
8
9 PATCHSET="${PV##*_p}"
10 MY_PN="${PN/-data}mr"
11 MY_PV="$(replace_version_separator 3 _ ${PV%%_p*})"
12 MY_MAJOR="$(get_version_component_range 1-3)"
13
14 DESCRIPTION="The Collaborative Computing Project for NMR - Data"
15 HOMEPAGE="http://www.ccpn.ac.uk/ccpn"
16 SRC_URI="http://www.bio.cam.ac.uk/ccpn/download/${MY_PN}/analysis${MY_PV}.tar.gz"
17 [[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentoo.org/~jlec/distfiles/ccpn-update-${MY_MAJOR}-${PATCHSET}.patch.xz"
18
19 SLOT="0"
20 LICENSE="|| ( CCPN LGPL-2.1 )"
21 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
22 IUSE=""
23
24 RDEPEND="!<sci-chemistry/ccpn-${PVR}"
25 DEPEND=""
26
27 RESTRICT="binchecks strip"
28
29 S="${WORKDIR}"/ccpnmr/ccpnmr2.2
30
31 src_prepare() {
32 [[ -n ${PATCHSET} ]] && \
33 epatch "${WORKDIR}"/ccpn-update-${MY_MAJOR}-${PATCHSET}.patch
34 }
35
36 src_install() {
37 local i pydocs in_path
38
39 dodir /usr/share/doc/${PF}/html
40 sed \
41 -e "s:../ccpnmr2.1:${EPREFIX}/usr/share/doc/${PF}/html:g" \
42 ../doc/index.html > "${ED}"/usr/share/doc/${PF}/html/index.html || die
43 treecopy $(find python/ -name doc -type d) "${ED}"/usr/share/doc/${PF}/html/
44
45 pydocs="$(find python -name doc -type d)"
46 in_path=$(python_get_sitedir)/ccpn
47
48 dosym ../../../../share/doc/${PF}/html ${in_path}/doc
49 for i in ${pydocs}; do
50 dosym /usr/share/doc/${PF}/html/${i} ${in_path}/${i}
51 done
52
53 dosym /usr/share/ccpn/data ${in_path}/data
54 dosym /usr/share/ccpn/model ${in_path}/model
55
56 dohtml -r doc/*
57 insinto /usr/share/ccpn
58 doins -r data model
59 }

  ViewVC Help
Powered by ViewVC 1.1.20