1 |
jlec 10/02/06 21:30:16 |
2 |
|
3 |
Added: ccpn-2.1.2.1_p100204.ebuild ChangeLog metadata.xml |
4 |
Log: |
5 |
Initial commit |
6 |
(Portage version: 2.2_rc62/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 sci-chemistry/ccpn/ccpn-2.1.2.1_p100204.ebuild |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/ccpn/ccpn-2.1.2.1_p100204.ebuild?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/ccpn/ccpn-2.1.2.1_p100204.ebuild?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: ccpn-2.1.2.1_p100204.ebuild |
15 |
=================================================================== |
16 |
# Copyright 1999-2010 Gentoo Foundation |
17 |
# Distributed under the terms of the GNU General Public License v2 |
18 |
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ccpn-2.1.2.1_p100204.ebuild,v 1.1 2010/02/06 21:30:16 jlec Exp $ |
19 |
|
20 |
EAPI="3" |
21 |
SUPPORT_PYTHON_ABIS="1" |
22 |
PYTHON_USE_WITH="ssl tk" |
23 |
|
24 |
inherit eutils portability python toolchain-funcs versionator |
25 |
|
26 |
PATCHSET="${PV##*_p}" |
27 |
MY_PN="${PN}mr" |
28 |
MY_PV="$(replace_version_separator 3 _ ${PV%%_p*})" |
29 |
|
30 |
DESCRIPTION="The Collaborative Computing Project for NMR" |
31 |
SRC_URI="http://www.bio.cam.ac.uk/ccpn/download/${MY_PN}/analysis${MY_PV}.tar.gz" |
32 |
[[ -n ${PATCHSET} ]] && SRC_URI="${SRC_URI} http://dev.gentooexperimental.org/~jlec/distfiles/ccpn-update-${PATCHSET}.patch.bz2" |
33 |
HOMEPAGE="http://www.ccpn.ac.uk/ccpn" |
34 |
|
35 |
SLOT="0" |
36 |
LICENSE="|| ( CCPN LGPL-2.1 )" |
37 |
KEYWORDS="~amd64 ~x86" |
38 |
IUSE="+opengl" |
39 |
|
40 |
RDEPEND=" |
41 |
dev-lang/tk |
42 |
dev-python/elementtree |
43 |
dev-python/numpy |
44 |
dev-tcltk/tix |
45 |
opengl? ( virtual/glut )" |
46 |
DEPEND="${RDEPEND}" |
47 |
RESTRICT="mirror" |
48 |
|
49 |
S="${WORKDIR}"/${MY_PN}/${MY_PN}$(get_version_component_range 1-2 ${PV}) |
50 |
|
51 |
src_prepare() { |
52 |
[[ -n ${PATCHSET} ]] && \ |
53 |
epatch "${WORKDIR}"/ccpn-update-${PATCHSET}.patch |
54 |
|
55 |
local tk_ver |
56 |
local myconf |
57 |
|
58 |
tk_ver="$(best_version dev-lang/tk | cut -d- -f3 | cut -d. -f1,2)" |
59 |
|
60 |
if use opengl; then |
61 |
GLUT_NEED_INIT="-DNEED_GLUT_INIT" |
62 |
IGNORE_GL_FLAG="" |
63 |
GL_FLAG="-DUSE_GL_FALSE" |
64 |
GL_DIR="${EPREFIX}/usr" |
65 |
GL_LIB="-lglut -lGLU -lGL" |
66 |
GL_INCLUDE_FLAGS="-I\$(GL_DIR)/include" |
67 |
GL_LIB_FLAGS="-L\$(GL_DIR)/$(get_libdir)" |
68 |
|
69 |
else |
70 |
IGNORE_GL_FLAG="-DIGNORE_GL" |
71 |
GL_FLAG="-DUSE_GL_FALSE" |
72 |
fi |
73 |
|
74 |
GLUT_NOT_IN_GL="" |
75 |
GLUT_FLAG="\$(GLUT_NEED_INIT) \$(GLUT_NOT_IN_GL)" |
76 |
|
77 |
python_copy_sources --no-link |
78 |
|
79 |
preparation() { |
80 |
sed \ |
81 |
-e "s:^\(CC =\).*:\1 $(tc-getCC):g" \ |
82 |
-e "s:^\(OPT_FLAG =\).*:\1 ${CFLAGS}:g" \ |
83 |
-e "s:^\(LINK_FLAGS =.*\):\1 ${LDFLAGS}:g" \ |
84 |
-e "s:^\(IGNORE_GL_FLAG =\).*:\1 ${IGNORE_GL_FLAG}:g" \ |
85 |
-e "s:^\(GL_FLAG =\).*:\1 ${GL_FLAG}:g" \ |
86 |
-e "s:^\(GLUT_NEED_INIT =\).*:\1 ${GLUT_NEED_INIT}:g" \ |
87 |
-e "s:^\(GLUT_NOT_IN_GL =\).*:\1:g" \ |
88 |
-e "s:^\(X11_LIB_FLAGS =\).*:\1 -L${EPREFIX}/usr/$(get_libdir):g" \ |
89 |
-e "s:^\(TCL_LIB_FLAGS =\).*:\1 -L${EPREFIX}/usr/$(get_libdir):g" \ |
90 |
-e "s:^\(TK_LIB_FLAGS =\).*:\1 -L${EPREFIX}/usr/$(get_libdir):g" \ |
91 |
-e "s:^\(PYTHON_INCLUDE_FLAGS =\).*:\1 -I\$(PYTHON_DIR)/include/python$(python_get_version):g" \ |
92 |
-e "s:^\(PYTHON_LIB =\).*:\1 -lpython$(python_get_version):g" \ |
93 |
-e "s:^\(GL_LIB_FLAGS =\).*:\1 -L${EPREFIX}/usr/$(get_libdir):g" \ |
94 |
c/environment_default.txt > c/environment.txt |
95 |
} |
96 |
python_execute_function -s preparation |
97 |
} |
98 |
|
99 |
src_compile() { |
100 |
building() { |
101 |
emake -C c all links |
102 |
} |
103 |
python_execute_function -s building |
104 |
} |
105 |
|
106 |
src_install() { |
107 |
local libdir |
108 |
local tkver |
109 |
|
110 |
libdir=$(get_libdir) |
111 |
tkver=$(best_version dev-lang/tk | cut -d- -f3 | cut -d. -f1,2) |
112 |
|
113 |
for wrapper in analysis dangle dataShifter eci formatConverter pipe2azara; do |
114 |
sed -e "s:gentoo_sitedir:${EPREFIX}/$(python_get_sitedir -f):g" \ |
115 |
-e "s:gentoolibdir:${EPREFIX}/usr/${libdir}:g" \ |
116 |
-e "s:gentootk:${EPREFIX}/usr/${libdir}/tk${tkver}:g" \ |
117 |
-e "s:gentootcl:${EPREFIX}/usr/${libdir}/tclk${tkver}:g" \ |
118 |
-e "s:gentoopython:${EPREFIX}/usr/bin/python:g" \ |
119 |
"${FILESDIR}"/${wrapper} > "${T}"/${wrapper} || die "Fail fix ${wrapper}" |
120 |
dobin "${T}"/${wrapper} || die "Failed to install ${wrapper}" |
121 |
done |
122 |
|
123 |
installation() { |
124 |
local in_path |
125 |
local files |
126 |
|
127 |
in_path=$(python_get_sitedir)/${PN} |
128 |
|
129 |
for i in python/memops/format/compatibility/{Converters,part2/Converters2}.py; do |
130 |
sed \ |
131 |
-e 's:#from __future__:from __future__:g' \ |
132 |
-i ${i} |
133 |
done |
134 |
|
135 |
insinto ${in_path} |
136 |
|
137 |
dodir ${in_path}/c |
138 |
|
139 |
ebegin "Installing main files" |
140 |
doins -r data model python || die "main files installation failed" |
141 |
eend |
142 |
|
143 |
dohtml -r doc/* || die |
144 |
dosym ../../../../share/doc/${PF}/html ${in_path}/doc || die |
145 |
|
146 |
einfo "Adjusting permissions" |
147 |
|
148 |
files="ccpnmr/c/ContourFile.so |
149 |
ccpnmr/c/ContourLevels.so |
150 |
ccpnmr/c/ContourStyle.so |
151 |
ccpnmr/c/PeakList.so |
152 |
ccpnmr/c/SliceFile.so |
153 |
ccpnmr/c/WinPeakList.so |
154 |
ccpnmr/c/AtomCoordList.so |
155 |
ccpnmr/c/AtomCoord.so |
156 |
ccpnmr/c/Bacus.so |
157 |
ccpnmr/c/CloudUtil.so |
158 |
ccpnmr/c/DistConstraintList.so |
159 |
ccpnmr/c/DistConstraint.so |
160 |
ccpnmr/c/DistForce.so |
161 |
ccpnmr/c/Dynamics.so |
162 |
ccpnmr/c/Midge.so |
163 |
ccp/c/StructAtom.so |
164 |
ccp/c/StructBond.so |
165 |
ccp/c/StructStructure.so |
166 |
ccp/c/StructUtil.so |
167 |
memops/c/BlockFile.so |
168 |
memops/c/FitMethod.so |
169 |
memops/c/GlHandler.so |
170 |
memops/c/MemCache.so |
171 |
memops/c/PdfHandler.so |
172 |
memops/c/PsHandler.so |
173 |
memops/c/ShapeFile.so |
174 |
memops/c/StoreFile.so |
175 |
memops/c/StoreHandler.so |
176 |
memops/c/TkHandler.so" |
177 |
|
178 |
for FILE in ${files}; do |
179 |
fperms 755 ${in_path}/python/${FILE} |
180 |
done |
181 |
} |
182 |
python_execute_function -s installation |
183 |
} |
184 |
|
185 |
pkg_postinst() { |
186 |
python_mod_optimize ${PN} |
187 |
} |
188 |
|
189 |
pkg_postrm() { |
190 |
python_mod_cleanup ${PN} |
191 |
} |
192 |
|
193 |
|
194 |
|
195 |
1.1 sci-chemistry/ccpn/ChangeLog |
196 |
|
197 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/ccpn/ChangeLog?rev=1.1&view=markup |
198 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/ccpn/ChangeLog?rev=1.1&content-type=text/plain |
199 |
|
200 |
Index: ChangeLog |
201 |
=================================================================== |
202 |
# ChangeLog for sci-chemistry/ccpn |
203 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
204 |
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ccpn/ChangeLog,v 1.1 2010/02/06 21:30:16 jlec Exp $ |
205 |
|
206 |
*ccpn-2.1.2.1_p100204 (06 Feb 2010) |
207 |
|
208 |
06 Feb 2010; Justin Lecher (jlec) <jlec@g.o> +files/analysis, |
209 |
+files/dangle, +files/dataShifter, +files/eci, +files/formatConverter, |
210 |
+files/pipe2azara, +ccpn-2.1.2.1_p100204.ebuild, +metadata.xml: |
211 |
Initial commit |
212 |
|
213 |
|
214 |
|
215 |
|
216 |
1.1 sci-chemistry/ccpn/metadata.xml |
217 |
|
218 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/ccpn/metadata.xml?rev=1.1&view=markup |
219 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/ccpn/metadata.xml?rev=1.1&content-type=text/plain |
220 |
|
221 |
Index: metadata.xml |
222 |
=================================================================== |
223 |
<?xml version="1.0" encoding="UTF-8"?> |
224 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
225 |
<pkgmetadata> |
226 |
<herd>sci-chemistry</herd> |
227 |
<maintainer> |
228 |
<email>jlec@g.o</email> |
229 |
</maintainer> |
230 |
</pkgmetadata> |