/[gentoo-x86]/sci-libs/ccpn-data/ccpn-data-2.2.2_p120511.ebuild
Gentoo

Contents of /sci-libs/ccpn-data/ccpn-data-2.2.2_p120511.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-2012 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.2_p120511.ebuild,v 1.1 2012/05/11 09:36:26 jlec Exp $
4
5 EAPI=4
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://www2.ccpn.ac.uk/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.2
32
33 pkg_setup() {
34 python_set_active_version 2
35 python_pkg_setup
36 }
37
38 src_prepare() {
39 [[ -n ${PATCHSET} ]] && \
40 epatch "${WORKDIR}"/ccpn-update-${MY_MAJOR}-${PATCHSET}.patch
41 }
42
43 src_install() {
44 local i pydocs in_path
45
46 dodir /usr/share/doc/${PF}/html
47 sed \
48 -e "s:../ccpnmr2.1:${EPREFIX}/usr/share/doc/${PF}/html:g" \
49 ../doc/index.html > "${ED}"/usr/share/doc/${PF}/html/index.html || die
50 treecopy $(find python/ -name doc -type d) "${ED}"/usr/share/doc/${PF}/html/
51
52 pydocs="$(find python -name doc -type d)"
53 in_path=$(python_get_sitedir)/ccpn
54
55 dosym ../../../../share/doc/${PF}/html ${in_path}/doc
56 for i in ${pydocs}; do
57 dosym /usr/share/doc/${PF}/html/${i} ${in_path}/${i}
58 done
59
60 dosym /usr/share/ccpn/data ${in_path}/data
61 dosym /usr/share/ccpn/model ${in_path}/model
62
63 dohtml -r doc/*
64 insinto /usr/share/ccpn
65 doins -r data model
66 }

  ViewVC Help
Powered by ViewVC 1.1.20