/[gentoo-x86]/sci-libs/ccpn-data/ccpn-data-2.1.5_p111011.ebuild
Gentoo

Contents of /sci-libs/ccpn-data/ccpn-data-2.1.5_p111011.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Apr 25 13:49:22 2014 UTC (6 years, 7 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
sci-libs/ccpn-data: Version BUmp; drop old

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

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

  ViewVC Help
Powered by ViewVC 1.1.20