1 |
jlec 10/05/29 11:15:43 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: vtk-5.6.0-r2.ebuild |
5 |
Removed: vtk-5.6.0-r1.ebuild |
6 |
Log: |
7 |
Don't use bundled libtheora, moved USE ogg -> theora |
8 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.72 sci-libs/vtk/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/vtk/ChangeLog?rev=1.72&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/vtk/ChangeLog?rev=1.72&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/vtk/ChangeLog?r1=1.71&r2=1.72 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/vtk/ChangeLog,v |
20 |
retrieving revision 1.71 |
21 |
retrieving revision 1.72 |
22 |
diff -u -r1.71 -r1.72 |
23 |
--- ChangeLog 29 May 2010 10:13:09 -0000 1.71 |
24 |
+++ ChangeLog 29 May 2010 11:15:43 -0000 1.72 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for sci-libs/vtk |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/vtk/ChangeLog,v 1.71 2010/05/29 10:13:09 jlec Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/vtk/ChangeLog,v 1.72 2010/05/29 11:15:43 jlec Exp $ |
30 |
+ |
31 |
+*vtk-5.6.0-r2 (29 May 2010) |
32 |
+ |
33 |
+ 29 May 2010; Justin Lecher <jlec@g.o> -vtk-5.6.0-r1.ebuild, |
34 |
+ +vtk-5.6.0-r2.ebuild: |
35 |
+ Don't use bundled libtheora, moved USE ogg -> theora |
36 |
|
37 |
29 May 2010; Justin Lecher <jlec@g.o> vtk-5.6.0-r1.ebuild: |
38 |
Added missing DEPS |
39 |
|
40 |
|
41 |
|
42 |
1.1 sci-libs/vtk/vtk-5.6.0-r2.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/vtk/vtk-5.6.0-r2.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/vtk/vtk-5.6.0-r2.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: vtk-5.6.0-r2.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2010 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/vtk/vtk-5.6.0-r2.ebuild,v 1.1 2010/05/29 11:15:43 jlec Exp $ |
52 |
|
53 |
EAPI="3" |
54 |
PYTHON_DEPEND="python? 2" |
55 |
|
56 |
inherit eutils flag-o-matic java-pkg-opt-2 python qt4 versionator toolchain-funcs cmake-utils |
57 |
|
58 |
# Short package version |
59 |
SPV="$(get_version_component_range 1-2)" |
60 |
|
61 |
DESCRIPTION="The Visualization Toolkit" |
62 |
HOMEPAGE="http://www.vtk.org" |
63 |
SRC_URI="http://www.${PN}.org/files/release/${SPV}/${P}.tar.gz |
64 |
examples? ( http://www.${PN}.org/files/release/${SPV}/${PN}data-${PV}.tar.gz ) |
65 |
doc? ( http://www.${PN}.org/doc/release/${SPV}/${PN}DocHtml-${PV}.tar.gz )" |
66 |
|
67 |
LICENSE="BSD LGPL-2" |
68 |
KEYWORDS="~amd64 ~x86" |
69 |
SLOT="0" |
70 |
IUSE="boost cg doc examples java mpi patented python qt4 tcl theora tk threads R" |
71 |
RDEPEND=" |
72 |
mpi? ( virtual/mpi[cxx,romio] ) |
73 |
cg? ( media-gfx/nvidia-cg-toolkit ) |
74 |
tcl? ( >=dev-lang/tcl-8.2.3 ) |
75 |
tk? ( >=dev-lang/tk-8.2.3 ) |
76 |
java? ( >=virtual/jre-1.5 ) |
77 |
qt4? ( |
78 |
x11-libs/qt-core:4 |
79 |
x11-libs/qt-gui:4 |
80 |
x11-libs/qt-opengl:4 |
81 |
x11-libs/qt-sql:4 |
82 |
x11-libs/qt-webkit:4 ) |
83 |
examples? ( |
84 |
x11-libs/qt-core:4[qt3support] |
85 |
x11-libs/qt-gui:4[qt3support] ) |
86 |
theora? ( media-libs/libtheora ) |
87 |
R? ( dev-lang/R ) |
88 |
dev-libs/expat |
89 |
dev-libs/libxml2 |
90 |
media-libs/freetype |
91 |
media-libs/jpeg |
92 |
media-libs/libpng |
93 |
media-libs/mesa |
94 |
media-libs/tiff |
95 |
sys-libs/zlib |
96 |
virtual/opengl |
97 |
x11-libs/libX11 |
98 |
x11-libs/libXmu |
99 |
x11-libs/libXt" |
100 |
|
101 |
DEPEND="${RDEPEND} |
102 |
java? ( >=virtual/jdk-1.5 ) |
103 |
boost? ( >=dev-libs/boost-1.40.0 ) |
104 |
mpi? ( >=dev-util/cmake-2.8.1-r2 ) |
105 |
>=dev-util/cmake-2.6" |
106 |
|
107 |
S="${WORKDIR}"/VTK |
108 |
|
109 |
pkg_setup() { |
110 |
echo |
111 |
einfo "Please note that the VTK build occasionally fails when" |
112 |
einfo "using parallel make. Hence, if you experience a build" |
113 |
einfo "failure please try re-emerging with MAKEOPTS=\"-j1\" first." |
114 |
echo |
115 |
|
116 |
java-pkg-opt-2_pkg_setup |
117 |
|
118 |
use python && python_set_active_version 2 |
119 |
use qt4 && qt4_pkg_setup |
120 |
} |
121 |
|
122 |
src_prepare() { |
123 |
epatch "${FILESDIR}"/${P}-cg-path.patch |
124 |
epatch "${FILESDIR}"/${PN}-5.2.0-tcl-install.patch |
125 |
epatch "${FILESDIR}"/${P}-boost-property_map.patch |
126 |
epatch "${FILESDIR}"/${P}-libpng14.patch |
127 |
epatch "${FILESDIR}"/${P}-R.patch |
128 |
sed -e "s:@VTK_TCL_LIBRARY_DIR@:/usr/$(get_libdir):" \ |
129 |
-i Wrapping/Tcl/pkgIndex.tcl.in \ |
130 |
|| die "Failed to fix tcl pkgIndex file" |
131 |
} |
132 |
|
133 |
src_configure() { |
134 |
# general configuration |
135 |
local mycmakeargs=( |
136 |
-Wno-dev |
137 |
-DVTK_INSTALL_PACKAGE_DIR=/$(get_libdir)/${PN}-${SPV} |
138 |
-DCMAKE_SKIP_RPATH=YES |
139 |
-DVTK_DIR="${S}" |
140 |
-DVTK_INSTALL_LIB_DIR=/$(get_libdir)/ |
141 |
-DVTK_DATA_ROOT:PATH="${EPREFIX}"/usr/share/${PN}/data |
142 |
-DCMAKE_INSTALL_PREFIX="${EPREFIX}"/usr |
143 |
-DBUILD_SHARED_LIBS=ON |
144 |
-DVTK_USE_SYSTEM_EXPAT=ON |
145 |
-DVTK_USE_SYSTEM_FREETYPE=ON |
146 |
-DVTK_USE_SYSTEM_JPEG=ON |
147 |
-DVTK_USE_SYSTEM_LIBXML2=ON |
148 |
-DVTK_USE_SYSTEM_PNG=ON |
149 |
-DVTK_USE_SYSTEM_TIFF=ON |
150 |
-DVTK_USE_SYSTEM_ZLIB=ON |
151 |
-DBUILD_TESTING=OFF |
152 |
-DBUILD_EXAMPLES=OFF |
153 |
-DVTK_USE_HYBRID=ON |
154 |
-DVTK_USE_GL2PS=ON |
155 |
-DVTK_USE_RENDERING=ON) |
156 |
|
157 |
# use flag triggered options |
158 |
mycmakeargs+=( |
159 |
$(cmake-utils_use boost VTK_USE_BOOST) |
160 |
$(cmake-utils_use cg VTK_USE_CG_SHADERS) |
161 |
$(cmake-utils_use doc DOCUMENTATION_HTML_HELP) |
162 |
$(cmake-utils_use_build doc DOCUMENTATION) |
163 |
$(cmake-utils_use java VTK_USE_JAVA) |
164 |
$(cmake-utils_use mpi VTK_USE_MPI) |
165 |
$(cmake-utils_use ogg VTK_USE_OGGTHEORA_ENCODER) |
166 |
$(cmake-utils_use patented VTK_USE_PATENTED) |
167 |
$(cmake-utils_use qt4 VTK_USE_QT) |
168 |
$(cmake-utils_use tcl VTK_WRAP_TCL) |
169 |
$(cmake-utils_use tk VTK_USE_TK) |
170 |
$(cmake-utils_use threads VTK_USE_PARALLEL) |
171 |
$(cmake-utils_use R VTK_USE_GNU_R) ) |
172 |
|
173 |
use ogg && |
174 |
mycmakeargs+=(-DVTK_USE_SYSTEM_OGGTHEORA=ON) |
175 |
|
176 |
# mpi needs the parallel framework |
177 |
if use mpi && use !threads; then |
178 |
mycmakeargs+=(-DVTK_USE_PARALLEL=ON) |
179 |
fi |
180 |
|
181 |
if use java; then |
182 |
mycmakeargs+=( |
183 |
-DVTK_WRAP_JAVA=ON |
184 |
-DJAVA_AWT_INCLUDE_PATH=`java-config -O`/include |
185 |
-DJAVA_INCLUDE_PATH:PATH=`java-config -O`/include |
186 |
-DJAVA_INCLUDE_PATH2:PATH=`java-config -O`/include/linux) |
187 |
|
188 |
if [ "${ARCH}" == "amd64" ]; then |
189 |
mycmakeargs+=(-DJAVA_AWT_LIBRARY=`java-config -O`/jre/lib/${ARCH}/libjawt.so) |
190 |
else |
191 |
mycmakeargs+=(-DJAVA_AWT_LIBRARY:PATH=`java-config -O`/jre/lib/i386/libjawt.so) |
192 |
fi |
193 |
fi |
194 |
|
195 |
if use python; then |
196 |
mycmakeargs+=( |
197 |
-DVTK_WRAP_PYTHON=ON |
198 |
-DPYTHON_INCLUDE_PATH=$(python_get_includedir) |
199 |
-DPYTHON_LIBRARY=$(python_get_library) |
200 |
-DVTK_PYTHON_SETUP_ARGS:STRING=--root="${D}") |
201 |
fi |
202 |
|
203 |
if use qt4 ; then |
204 |
mycmakeargs+=( |
205 |
-DVTK_USE_GUISUPPORT=ON |
206 |
-DVTK_USE_QVTK=ON |
207 |
-DVTK_USE_QVTK_QTOPENGL=ON |
208 |
-DQT_WRAP_CPP=ON |
209 |
-DQT_WRAP_UI=ON |
210 |
-DVTK_INSTALL_QT_DIR=/$(get_libdir)/qt4/plugins/${PN} |
211 |
-DDESIRED_QT_VERSION=4 |
212 |
-DQT_MOC_EXECUTABLE="${EPREFIX}"/usr/bin/moc |
213 |
-DQT_UIC_EXECUTABLE="${EPREFIX}"/usr/bin/uic |
214 |
-DQT_INCLUDE_DIR="${EPREFIX}"/usr/include/qt4 |
215 |
-DQT_QMAKE_EXECUTABLE="${EPREFIX}"/usr/bin/qmake) |
216 |
fi |
217 |
|
218 |
cmake-utils_src_configure |
219 |
} |
220 |
|
221 |
src_install() { |
222 |
cmake-utils_src_install |
223 |
|
224 |
# install docs |
225 |
dohtml "${S}"/README.html || die "Failed to install docs" |
226 |
|
227 |
# install Tcl docs |
228 |
docinto vtk_tcl |
229 |
dodoc "${S}"/Wrapping/Tcl/README || \ |
230 |
die "Failed to install Tcl docs" |
231 |
|
232 |
# install examples |
233 |
if use examples; then |
234 |
dodir /usr/share/${PN} || \ |
235 |
die "Failed to create data/examples directory" |
236 |
|
237 |
cp -pPR "${S}"/Examples "${D}"/usr/share/${PN}/examples || \ |
238 |
die "Failed to copy example files" |
239 |
|
240 |
# fix example's permissions |
241 |
find "${D}"/usr/share/${PN}/examples -type d -exec \ |
242 |
chmod 0755 {} \; || \ |
243 |
die "Failed to fix example directories permissions" |
244 |
find "${D}"/usr/share/${PN}/examples -type f -exec \ |
245 |
chmod 0644 {} \; || \ |
246 |
die "Failed to fix example files permissions" |
247 |
|
248 |
cp -pPR "${WORKDIR}"/VTKData "${D}"/usr/share/${PN}/data || \ |
249 |
die "Failed to copy data files" |
250 |
|
251 |
# fix data's permissions |
252 |
find "${D}"/usr/share/${PN}/data -type d -exec \ |
253 |
chmod 0755 {} \; || \ |
254 |
die "Failed to fix data directories permissions" |
255 |
find "${D}"/usr/share/${PN}/data -type f -exec \ |
256 |
chmod 0644 {} \; || \ |
257 |
die "Failed to fix data files permissions" |
258 |
fi |
259 |
|
260 |
#install big docs |
261 |
if use doc; then |
262 |
cd "${WORKDIR}"/html |
263 |
rm -f *.md5 || die "Failed to remove superfluous hashes" |
264 |
einfo "Installing API docs. This may take some time." |
265 |
insinto "/usr/share/doc/${PF}/api-docs" |
266 |
doins -r ./* || die "Failed to install docs" |
267 |
fi |
268 |
|
269 |
# environment |
270 |
echo "VTK_DATA_ROOT=/usr/share/${PN}/data" >> "${T}"/40${PN} |
271 |
echo "VTK_DIR=/usr/$(get_libdir)/${PN}-${SPV}" >> "${T}"/40${PN} |
272 |
echo "VTKHOME=/usr" >> "${T}"/40${PN} |
273 |
doenvd "${T}"/40${PN} |
274 |
} |
275 |
|
276 |
pkg_postinst() { |
277 |
if use patented; then |
278 |
ewarn "Using patented code in VTK may require a license." |
279 |
ewarn "For more information, please read:" |
280 |
ewarn "http://public.kitware.com/cgi-bin/vtkfaq?req=show&file=faq07.005.htp" |
281 |
fi |
282 |
|
283 |
if use python; then |
284 |
python_mod_optimize vtk |
285 |
fi |
286 |
} |
287 |
|
288 |
pkg_postrm() { |
289 |
if use python; then |
290 |
python_mod_cleanup vtk |
291 |
fi |
292 |
} |