Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-chemistry/coot: coot-0.7.1-r1.ebuild ChangeLog coot-0.7.1.ebuild
Date: Wed, 28 Aug 2013 08:13:10
Message-Id: 20130828081303.BEE352004C@flycatcher.gentoo.org
1 jlec 13/08/28 08:13:03
2
3 Modified: ChangeLog
4 Added: coot-0.7.1-r1.ebuild
5 Removed: coot-0.7.1.ebuild
6 Log:
7 sci-chemistry/coot: Install missing syminfo, #482734
8
9 (Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
10
11 Revision Changes Path
12 1.58 sci-chemistry/coot/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/coot/ChangeLog?rev=1.58&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/coot/ChangeLog?rev=1.58&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/coot/ChangeLog?r1=1.57&r2=1.58
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/coot/ChangeLog,v
21 retrieving revision 1.57
22 retrieving revision 1.58
23 diff -u -r1.57 -r1.58
24 --- ChangeLog 27 Aug 2013 11:46:17 -0000 1.57
25 +++ ChangeLog 28 Aug 2013 08:13:03 -0000 1.58
26 @@ -1,6 +1,12 @@
27 # ChangeLog for sci-chemistry/coot
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/coot/ChangeLog,v 1.57 2013/08/27 11:46:17 jlec Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/coot/ChangeLog,v 1.58 2013/08/28 08:13:03 jlec Exp $
31 +
32 +*coot-0.7.1-r1 (28 Aug 2013)
33 +
34 + 28 Aug 2013; Justin Lecher <jlec@g.o> -coot-0.7.1.ebuild,
35 + +coot-0.7.1-r1.ebuild:
36 + Install missing syminfo, #482734
37
38 27 Aug 2013; Justin Lecher <jlec@g.o> coot-0.7.1.ebuild:
39 Reenable test
40
41
42
43 1.1 sci-chemistry/coot/coot-0.7.1-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/coot/coot-0.7.1-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/coot/coot-0.7.1-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: coot-0.7.1-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2013 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/coot/coot-0.7.1-r1.ebuild,v 1.1 2013/08/28 08:13:03 jlec Exp $
53
54 EAPI=5
55
56 PYTHON_COMPAT=( python{2_6,2_7} )
57
58 AUTOTOOLS_AUTORECONF="true"
59
60 inherit autotools-utils python-single-r1 toolchain-funcs versionator
61
62 MY_S2_PV=$(replace_version_separator 2 - ${PV})
63 MY_S2_P=${PN}-${MY_S2_PV/pre1/pre-1}
64 MY_S_P=${MY_S2_P}-${PR/r/revision-}
65 MY_PV=${PV}
66 MY_P=${PN}-${MY_PV}
67
68 DESCRIPTION="Crystallographic Object-Oriented Toolkit for model building, completion and validation"
69 HOMEPAGE="http://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/"
70 SRC_URI="
71 http://www2.mrc-lmb.cam.ac.uk/Personal/pemsley/coot/source/releases/${MY_P}.tar.gz
72 test? ( http://dev.gentoo.org/~jlec/distfiles/greg-data-${PV}.tar.gz )"
73
74 SLOT="0"
75 LICENSE="GPL-3"
76 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
77 IUSE="+openmp static-libs test"
78
79 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
80
81 AUTOTOOLS_IN_SOURCE_BUILD=1
82
83 SCIDEPS="
84 >=sci-libs/ccp4-libs-6.1
85 sci-libs/clipper
86 >=sci-libs/coot-data-2
87 >=sci-libs/gsl-1.3
88 >=sci-libs/mmdb-1.23
89 sci-libs/ssm
90 sci-libs/monomer-db
91 sci-chemistry/reduce
92 sci-chemistry/refmac
93 sci-chemistry/probe"
94
95 XDEPS="
96 gnome-base/libgnomecanvas
97 gnome-base/librsvg:2
98 media-libs/libpng
99 media-libs/freeglut
100 x11-libs/gtk+:2
101 x11-libs/goocanvas:0
102 x11-libs/gtkglext"
103
104 SCHEMEDEPS="
105 dev-scheme/net-http
106 dev-scheme/guile-gui
107 >=dev-scheme/guile-lib-0.1.6
108 dev-scheme/guile-www
109 >=x11-libs/guile-gtk-2.1"
110
111 RDEPEND="
112 ${SCIDEPS}
113 ${XDEPS}
114 ${SCHEMEDEPS}
115 ${PYTHON_DEPS}
116 dev-python/pygtk:2[${PYTHON_USEDEP}]
117 >=dev-libs/gmp-4.2.2-r2
118 >=net-misc/curl-7.19.6
119 net-dns/libidn"
120 DEPEND="${RDEPEND}
121 >=sys-devel/libtool-2.4-r2
122 dev-lang/swig
123 sys-devel/bc
124 test? ( dev-scheme/greg )"
125
126 S="${WORKDIR}/${MY_P}"
127
128 pkg_setup() {
129 if use openmp; then
130 tc-has-openmp || die "Please use an OPENMP capable compiler"
131 fi
132 python-single-r1_pkg_setup
133 }
134
135 PATCHES=(
136 "${FILESDIR}"/${PN}-0.7-clipper-config.patch
137 "${FILESDIR}"/${PN}-0.7-goocanvas.patch
138 "${FILESDIR}"/${PN}-0.7-mmdb-config.patch
139 "${FILESDIR}"/${PN}-0.7-ssm.patch
140 )
141
142 src_prepare() {
143 sed \
144 -e "s:AM_COOT_SYS_BUILD_TYPE:COOT_SYS_BUILD_TYPE=Gentoo-Linux-${EPYTHON}-gtk2 ; AC_MSG_RESULT([\$COOT_SYS_BUILD_TYPE]); AC_SUBST(COOT_SYS_BUILD_TYPE):g" \
145 -i configure.in || die
146
147 autotools-utils_src_prepare
148 }
149
150 src_configure() {
151 # All the --with's are used to activate various parts.
152 # Yes, this is broken behavior.
153 local myeconfargs=(
154 --includedir='${prefix}/include/coot'
155 --with-goocanvas-prefix="${EPREFIX}/usr"
156 --with-guile
157 --with-python="${EPREFIX}/usr"
158 --with-guile-gtk
159 --with-gtk2
160 --with-pygtk
161 $(use_enable openmp)
162 )
163 autotools-utils_src_configure
164 }
165
166 src_compile() {
167 autotools-utils_src_compile
168 python_fix_shebang "${S}"/src/coot_gtk2.py
169 cp "${S}"/src/coot_gtk2.py python/coot.py || die
170 }
171
172 src_test() {
173 source "${EPREFIX}/etc/profile.d/40ccp4.setup.sh"
174 mkdir "${T}"/coot_test
175
176 export COOT_STANDARD_RESIDUES="${S}/standard-residues.pdb"
177 export COOT_SCHEME_DIR="${S}/scheme/"
178 export COOT_RESOURCES_FILE="${S}/cootrc"
179 export COOT_PIXMAPS_DIR="${S}/pixmaps/"
180 export COOT_DATA_DIR="${S}/"
181 export COOT_PYTHON_DIR="${S}/python/"
182 export PYTHONPATH="${COOT_PYTHON_DIR}:${PYTHONPATH}"
183 export PYTHONHOME="${EPREFIX}"/usr/
184 export CCP4_SCR="${T}"/coot_test/
185 export CLIBD_MON="${EPREFIX}/usr/share/ccp4/data/monomers/"
186 export SYMINFO="${S}/syminfo.lib"
187
188 export COOT_TEST_DATA_DIR="${WORKDIR}"/greg-data
189
190 cat > command-line-greg.scm <<- EOF
191 (use-modules (ice-9 greg))
192 (set! greg-tools (list "greg-tests"))
193 (set! greg-debug #t)
194 (set! greg-verbose 5)
195 (let ((r (greg-test-run)))
196 (if r
197 (coot-real-exit 0)
198 (coot-real-exit 1)))
199 EOF
200
201 einfo "Running test with following paths ..."
202 einfo "COOT_STANDARD_RESIDUES $COOT_STANDARD_RESIDUES"
203 einfo "COOT_SCHEME_DIR $COOT_SCHEME_DIR"
204 einfo "COOT_RESOURCES_FILE $COOT_RESOURCES_FILE"
205 einfo "COOT_PIXMAPS_DIR $COOT_PIXMAPS_DIR"
206 einfo "COOT_DATA_DIR $COOT_DATA_DIR"
207 einfo "COOT_PYTHON_DIR $COOT_PYTHON_DIR"
208 einfo "PYTHONPATH $PYTHONPATH"
209 einfo "PYTHONHOME $PYTHONHOME"
210 einfo "CCP4_SCR ${CCP4_SCR}"
211 einfo "CLIBD_MON ${CLIBD_MON}"
212 einfo "SYMINFO ${SYMINFO}"
213
214 "${S}"/src/coot-real --no-graphics --script command-line-greg.scm || die
215 "${S}"/src/coot-real --no-graphics --script python-tests/coot_unittest.py || die
216 }
217
218 src_install() {
219 autotools-utils_src_install
220 insinto /usr/share/${PN}
221 doins syminfo.lib
222 }