Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/chemBuild/
Date: Wed, 26 Mar 2014 07:59:42
Message-Id: 1395820766.e1a51127853a5aac58d558bcf23c85d33cd60082.jlec@gentoo
1 commit: e1a51127853a5aac58d558bcf23c85d33cd60082
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 26 07:55:42 2014 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 26 07:59:26 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=e1a51127
7
8 sci-chemistry/chemBuild: Version Bump
9
10 Package-Manager: portage-2.2.9-r1
11
12 ---
13 sci-chemistry/chemBuild/ChangeLog | 5 +++
14 sci-chemistry/chemBuild/chemBuild-1.0.4.ebuild | 57 ++++++++++++++++++++++++++
15 2 files changed, 62 insertions(+)
16
17 diff --git a/sci-chemistry/chemBuild/ChangeLog b/sci-chemistry/chemBuild/ChangeLog
18 index 4a29f89..55f36ef 100644
19 --- a/sci-chemistry/chemBuild/ChangeLog
20 +++ b/sci-chemistry/chemBuild/ChangeLog
21 @@ -2,6 +2,11 @@
22 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
23 # $Header: $
24
25 +*chemBuild-1.0.4 (26 Mar 2014)
26 +
27 + 26 Mar 2014; Justin Lecher <jlec@g.o> +chemBuild-1.0.4.ebuild:
28 + Version Bump
29 +
30 08 Jan 2014; Justin Lecher <jlec@g.o> chemBuild-1.0.3.ebuild:
31 Fix double prefix
32
33
34 diff --git a/sci-chemistry/chemBuild/chemBuild-1.0.4.ebuild b/sci-chemistry/chemBuild/chemBuild-1.0.4.ebuild
35 new file mode 100644
36 index 0000000..24554b7
37 --- /dev/null
38 +++ b/sci-chemistry/chemBuild/chemBuild-1.0.4.ebuild
39 @@ -0,0 +1,57 @@
40 +# Copyright 1999-2014 Gentoo Foundation
41 +# Distributed under the terms of the GNU General Public License v2
42 +# $Header: $
43 +
44 +EAPI=5
45 +
46 +PYTHON_COMPAT=( python{2_6,2_7} )
47 +
48 +inherit python-single-r1 toolchain-funcs
49 +
50 +DESCRIPTION="Graphical tool to construct chemical compound definitions for NMR"
51 +HOMEPAGE="http://www.ccpn.ac.uk/software/chembuild"
52 +SRC_URI="http://www2.ccpn.ac.uk/download/ccpnmr/${PN}${PV}_WithApi.tar.gz"
53 +
54 +SLOT="0"
55 +LICENSE="|| ( CCPN LGPL-2.1 )"
56 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
57 +IUSE=""
58 +
59 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
60 +
61 +RDEPEND="dev-python/pyside[webkit,${PYTHON_USEDEP}]"
62 +DEPEND=""
63 +
64 +S="${WORKDIR}"/ccpnmr/ccpnmr3.0/
65 +
66 +#TODO:
67 +#install in sane place
68 +#unbundle data model
69 +#unbundle inchi
70 +#parallel build
71 +
72 +src_install() {
73 + local in_path=$(python_get_sitedir)/${PN}
74 + local _file
75 +
76 + find . -name "*.pyc" -type f -delete
77 + dodir /usr/bin
78 + sed \
79 + -e "s|gentoo_sitedir|$(python_get_sitedir)|g" \
80 + -e "s|gentoolibdir|${EPREFIX}/usr/${libdir}|g" \
81 + -e "s|gentootk|${EPREFIX}/usr/${libdir}/tk${tkver}|g" \
82 + -e "s|gentootcl|${EPREFIX}/usr/${libdir}/tclk${tkver}|g" \
83 + -e "s|gentoopython|${PYTHON}|g" \
84 + -e "s|gentoousr|${EPREFIX}/usr|g" \
85 + -e "s|//|/|g" \
86 + "${FILESDIR}"/${PN} > "${ED}"/usr/bin/${PN} || die
87 + fperms 755 /usr/bin/${PN}
88 +
89 + rm -rf cNg license || die
90 +
91 + ebegin "Installing main files"
92 + python_moduleinto ${PN}
93 + python_domodule *
94 + python_optimize
95 + eend
96 +}