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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Apr 3 14:44:43 2012 UTC (8 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, cleaned old

(Portage version: 2.2.0_alpha99/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.1.5_p110401.ebuild,v 1.1 2011/04/01 10:29:45 jlec Exp $
4
5 EAPI="3"
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.bz2"
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-${PV}"
25 DEPEND=""
26
27 RESTRICT="binchecks strip"
28
29 S="${WORKDIR}"/ccpnmr/ccpnmr2.1
30
31 src_prepare() {
32 [[ -n ${PATCHSET} ]] && \
33 epatch "${WORKDIR}"/ccpn-update-${MY_MAJOR}-${PATCHSET}.patch
34 }
35
36 src_install() {
37 dodir /usr/share/doc/${PF}/html
38 sed \
39 -e "s:../ccpnmr2.1:${EPREFIX}/usr/share/doc/${PF}/html:g" \
40 ../doc/index.html > "${ED}"/usr/share/doc/${PF}/html/index.html || die
41 treecopy $(find python/ -name doc -type d) "${ED}"/usr/share/doc/${PF}/html/
42 dohtml -r doc/* || die
43 insinto /usr/share/ccpn
44 doins -r data model || die
45 }

  ViewVC Help
Powered by ViewVC 1.1.20