1 |
commit: 449645d3a0cf19fb66d1cfeaea85b301adc2b11a |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 26 07:39:09 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=449645d3 |
7 |
|
8 |
sci-chemistry/specView: Version BUmp |
9 |
|
10 |
Package-Manager: portage-2.2.9-r1 |
11 |
|
12 |
--- |
13 |
sci-chemistry/specView/ChangeLog | 5 ++ |
14 |
sci-chemistry/specView/specView-1.0.3_p2.ebuild | 88 +++++++++++++++++++++++++ |
15 |
2 files changed, 93 insertions(+) |
16 |
|
17 |
diff --git a/sci-chemistry/specView/ChangeLog b/sci-chemistry/specView/ChangeLog |
18 |
index 6fcf527..e7854b8 100644 |
19 |
--- a/sci-chemistry/specView/ChangeLog |
20 |
+++ b/sci-chemistry/specView/ChangeLog |
21 |
@@ -2,6 +2,11 @@ |
22 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
23 |
# $Header: $ |
24 |
|
25 |
+*specView-1.0.3_p2 (26 Mar 2014) |
26 |
+ |
27 |
+ 26 Mar 2014; Justin Lecher <jlec@g.o> +specView-1.0.3_p2.ebuild: |
28 |
+ Version BUmp |
29 |
+ |
30 |
08 Jan 2014; Justin Lecher <jlec@g.o> specView-1.0.3.ebuild: |
31 |
Fix double prefix |
32 |
|
33 |
|
34 |
diff --git a/sci-chemistry/specView/specView-1.0.3_p2.ebuild b/sci-chemistry/specView/specView-1.0.3_p2.ebuild |
35 |
new file mode 100644 |
36 |
index 0000000..279a8fc |
37 |
--- /dev/null |
38 |
+++ b/sci-chemistry/specView/specView-1.0.3_p2.ebuild |
39 |
@@ -0,0 +1,88 @@ |
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 multilib python-single-r1 toolchain-funcs |
49 |
+ |
50 |
+DESCRIPTION="Fast way to visualise NMR spectrum and peak data" |
51 |
+HOMEPAGE="http://www.ccpn.ac.uk/software/specview" |
52 |
+SRC_URI="http://www2.ccpn.ac.uk/download/ccpnmr/${PN}${PV/_p/r}.tar.gz" |
53 |
+ |
54 |
+SLOT="0" |
55 |
+LICENSE="|| ( CCPN LGPL-2.1 )" |
56 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
57 |
+IUSE="" |
58 |
+ |
59 |
+RDEPEND=" |
60 |
+ dev-python/pyopengl[${PYTHON_USEDEP}] |
61 |
+ dev-python/pyside[webkit,${PYTHON_USEDEP}]" |
62 |
+DEPEND="${RDEPEND}" |
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_prepare() { |
73 |
+ sed \ |
74 |
+ -e "s|/usr|\"${EPREFIX}/usr\"|g" \ |
75 |
+ -e "s|^\(CC =\).*|\1 $(tc-getCC)|g" \ |
76 |
+ -e '/^MALLOC_FLAG/s:^:#:g' \ |
77 |
+ -e "/^OPT_FLAG/s:=.*$:= ${CFLAGS}:g" \ |
78 |
+ -e "/^LINK_FLAGS/s:$: ${LDFLAGS}:g" \ |
79 |
+ -e "/^PYTHON_DIR/s:=.*:= \"${EPREFIX}/usr\":g" \ |
80 |
+ -e "/^PYTHON_LIB/s:=.*:= $(python_get_LIBS):g" \ |
81 |
+ -e "/^PYTHON_INCLUDE_FLAGS/s:=.*:= -I\"$(python_get_includedir)\" -I\"$(python_get_sitedir)/numpy/core/include/numpy\":g" \ |
82 |
+ -e "/^PYTHON_LIB_FLAGS/s:=.*:= -L\"${EPREFIX}/usr/$(get_libdir)\":g" \ |
83 |
+ -e "/^SHARED_FLAGS/s:=.*:= -shared:g" \ |
84 |
+ -e "/^GL_DIR/s:=.*:= \"${EPREFIX}/usr/$(get_libdir)\":g" \ |
85 |
+ -e "/^GL_INCLUDE_FLAGS/s:=.*:= -I\"${EPREFIX}/usr/include\":g" \ |
86 |
+ -e "/^GL_LIB_FLAGS/s:=.*:= -L\"${EPREFIX}/usr/$(get_libdir)\":g" \ |
87 |
+ cNg/environment_default.txt > cNg/environment.txt || die |
88 |
+ echo "SHARED_LINK_PARM = ${LDFLAGS}" >> cNg/environment.txt || die |
89 |
+ |
90 |
+ rm -rf license || die |
91 |
+ |
92 |
+ sed \ |
93 |
+ -e 's:ln -s:cp -f:g' \ |
94 |
+ -i $(find python -name linkSharedObjs) || die |
95 |
+} |
96 |
+ |
97 |
+src_compile() { |
98 |
+ emake -C cNg all |
99 |
+ emake -j1 -C cNg links |
100 |
+} |
101 |
+ |
102 |
+src_install() { |
103 |
+ local in_path=$(python_get_sitedir)/${PN} |
104 |
+ local _file |
105 |
+ |
106 |
+ find . -name "*.pyc" -type f -delete |
107 |
+ dodir /usr/bin |
108 |
+ sed \ |
109 |
+ -e "s|gentoo_sitedir|$(python_get_sitedir)|g" \ |
110 |
+ -e "s|gentoolibdir|${EPREFIX}/usr/${libdir}|g" \ |
111 |
+ -e "s|gentootk|${EPREFIX}/usr/${libdir}/tk${tkver}|g" \ |
112 |
+ -e "s|gentootcl|${EPREFIX}/usr/${libdir}/tclk${tkver}|g" \ |
113 |
+ -e "s|gentoopython|${PYTHON}|g" \ |
114 |
+ -e "s|gentoousr|\"${EPREFIX}/usr\"|g" \ |
115 |
+ -e "s|//|/|g" \ |
116 |
+ "${FILESDIR}"/${PN} > "${ED}"/usr/bin/${PN} || die |
117 |
+ fperms 755 /usr/bin/${PN} |
118 |
+ |
119 |
+ dodir "${in_path#${EPREFIX}}/cNg" |
120 |
+ rm -rf cNg || die |
121 |
+ |
122 |
+ ebegin "Installing main files" |
123 |
+ python_moduleinto ${PN} |
124 |
+ python_domodule * |
125 |
+ eend |
126 |
+ python_optimize |
127 |
+} |