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

Contents of /sci-libs/ccpn-data/ccpn-data-2.4.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Oct 6 07:21:08 2014 UTC (6 years, 1 month ago) by jlec
Branch: MAIN
CVS Tags: HEAD
sci-libs/ccpn-data: Version BUmp

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

1 # Copyright 1999-2014 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.4.0_p140425.ebuild,v 1.2 2014/04/25 14:01:46 jlec Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 )
8
9 inherit eutils portability python-r1 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 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
27
28 RDEPEND="
29 ${PYTHON_DEPS}
30 !<sci-chemistry/ccpn-${PVR}"
31 DEPEND=""
32
33 RESTRICT="binchecks strip"
34
35 S="${WORKDIR}"/ccpnmr/ccpnmr2.4
36
37 src_prepare() {
38 [[ -n ${PATCHSET} ]] && \
39 epatch "${WORKDIR}"/ccpn-update-${MY_MAJOR}-${PATCHSET}.patch
40 cp "${FILESDIR}"/312+ccpn_rhf22_2013-10-02-16-17-30-923_00001.xml data/ccp/nmr/NmrExpPrototype/ || die
41 }
42
43 src_install() {
44 local i pydocs in_path ein_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
54 symlinking() {
55 in_path=$(python_get_sitedir)/ccpn
56 ein_path="${in_path#${EPREFIX}}"
57 dosym ../../../../share/doc/${PF}/html ${ein_path}/doc
58 for i in ${pydocs}; do
59 dosym /usr/share/doc/${PF}/html/${i} ${ein_path}/${i}
60 done
61 dosym /usr/share/ccpn/data ${ein_path}/data
62 dosym /usr/share/ccpn/model ${ein_path}/model
63 }
64 python_foreach_impl symlinking
65
66 dohtml -r doc/*
67 insinto /usr/share/ccpn
68 doins -r data model
69 }

  ViewVC Help
Powered by ViewVC 1.1.20