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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (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.2: +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-2013 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.3.1.ebuild,v 1.2 2013/09/05 19:04:43 mgorny Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python{2_6,2_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.3
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 ein_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
53 symlinking() {
54 in_path=$(python_get_sitedir)/ccpn
55 ein_path="${in_path#${EPREFIX}}"
56 dosym ../../../../share/doc/${PF}/html ${ein_path}/doc
57 for i in ${pydocs}; do
58 dosym /usr/share/doc/${PF}/html/${i} ${ein_path}/${i}
59 done
60 dosym /usr/share/ccpn/data ${ein_path}/data
61 dosym /usr/share/ccpn/model ${ein_path}/model
62 }
63 python_foreach_impl symlinking
64
65 dohtml -r doc/*
66 insinto /usr/share/ccpn
67 doins -r data model
68 }

  ViewVC Help
Powered by ViewVC 1.1.20