Gentoo Archives: gentoo-commits

From: "Markus Dittrich (markusle)" <markusle@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/vtk: ChangeLog vtk-5.0.3.ebuild
Date: Fri, 22 Feb 2008 13:36:25
Message-Id: E1JSY3V-0003Yp-N0@stork.gentoo.org
1 markusle 08/02/22 13:35:13
2
3 Modified: ChangeLog vtk-5.0.3.ebuild
4 Log:
5 Removed support for mpich and added support for mpich2, openmpi, and lam-mpi. Also fixed some QA issues and added qt4 eclass.
6 (Portage version: 2.1.4.4)
7
8 Revision Changes Path
9 1.40 sci-libs/vtk/ChangeLog
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/vtk/ChangeLog?rev=1.40&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/vtk/ChangeLog?rev=1.40&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/vtk/ChangeLog?r1=1.39&r2=1.40
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/sci-libs/vtk/ChangeLog,v
18 retrieving revision 1.39
19 retrieving revision 1.40
20 diff -u -r1.39 -r1.40
21 --- ChangeLog 19 Aug 2007 03:50:36 -0000 1.39
22 +++ ChangeLog 22 Feb 2008 13:35:13 -0000 1.40
23 @@ -1,6 +1,12 @@
24 # ChangeLog for sci-libs/vtk
25 -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/vtk/ChangeLog,v 1.39 2007/08/19 03:50:36 markusle Exp $
27 +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
28 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/vtk/ChangeLog,v 1.40 2008/02/22 13:35:13 markusle Exp $
29 +
30 + 21 Feb 2008; Markus Dittrich <markusle@g.o>
31 + -files/vtk-5.0.1-python2.5-gentoo.patch, -files/vtk-5.0.3-lammpi.patch,
32 + +files/vtk-5.0.3-mpi.patch, vtk-5.0.3.ebuild:
33 + Removed support for mpich and added support for mpich2, openmpi, and
34 + lam-mpi. Also fixed some QA issues and added qt4 eclass.
35
36 19 Aug 2007; Markus Dittrich <markusle@g.o> vtk-5.0.3.ebuild:
37 Fixed incomplete RDEPEND.
38
39
40
41 1.11 sci-libs/vtk/vtk-5.0.3.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/vtk/vtk-5.0.3.ebuild?rev=1.11&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/vtk/vtk-5.0.3.ebuild?rev=1.11&content-type=text/plain
45 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/vtk/vtk-5.0.3.ebuild?r1=1.10&r2=1.11
46
47 Index: vtk-5.0.3.ebuild
48 ===================================================================
49 RCS file: /var/cvsroot/gentoo-x86/sci-libs/vtk/vtk-5.0.3.ebuild,v
50 retrieving revision 1.10
51 retrieving revision 1.11
52 diff -u -r1.10 -r1.11
53 --- vtk-5.0.3.ebuild 19 Aug 2007 03:50:36 -0000 1.10
54 +++ vtk-5.0.3.ebuild 22 Feb 2008 13:35:13 -0000 1.11
55 @@ -1,8 +1,10 @@
56 -# Copyright 1999-2007 Gentoo Foundation
57 +# Copyright 1999-2008 Gentoo Foundation
58 # Distributed under the terms of the GNU General Public License v2
59 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/vtk/vtk-5.0.3.ebuild,v 1.10 2007/08/19 03:50:36 markusle Exp $
60 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/vtk/vtk-5.0.3.ebuild,v 1.11 2008/02/22 13:35:13 markusle Exp $
61
62 -inherit distutils eutils flag-o-matic toolchain-funcs versionator java-pkg-opt-2 python qt3
63 +EAPI="1"
64 +
65 +inherit distutils eutils flag-o-matic toolchain-funcs versionator java-pkg-opt-2 python qt3 qt4
66
67 # Short package version
68 SPV="$(get_version_component_range 1-2)"
69 @@ -16,13 +18,16 @@
70 KEYWORDS="~amd64 ~x86"
71 SLOT="0"
72 IUSE="doc examples mpi patented python tcl tk threads qt3 qt4"
73 -RDEPEND="mpi? ( virtual/mpi )
74 +RDEPEND="mpi? ( || (
75 + sys-cluster/openmpi
76 + sys-cluster/lam-mpi
77 + sys-cluster/mpich2 ) )
78 python? ( >=dev-lang/python-2.0 )
79 tcl? ( >=dev-lang/tcl-8.2.3 )
80 tk? ( >=dev-lang/tk-8.2.3 )
81 java? ( >=virtual/jre-1.5 )
82 qt3? ( $(qt_min_version 3.3.4) )
83 - qt4? ( >=x11-libs/qt-4.1.0 )
84 + qt4? ( $(qt4_min_version 4.1) )
85 dev-libs/expat
86 media-libs/freetype
87 media-libs/jpeg
88 @@ -53,12 +58,21 @@
89 eerror 'build the examples under qt4!'
90 die "qt4 setup error"
91 fi
92 +
93 + if use mpi && has_version sys-cluster/mpich2; then
94 + append-flags -DMPICH_IGNORE_CXX_SEEK
95 + if ! built_with_use sys-cluster/mpich2 cxx; then
96 + die "Please re-emerge sys-cluster/mpich2 with USE=\"cxx\""
97 + fi
98 + fi
99 +
100 + use qt4 && qt4_pkg_setup
101 }
102
103 src_unpack() {
104 unpack ${A}
105 cd "${S}"
106 - epatch "${FILESDIR}"/${P}-lammpi.patch
107 + epatch "${FILESDIR}"/${P}-mpi.patch
108 }
109
110 src_compile() {
111 @@ -73,13 +87,14 @@
112
113 # Fix Examples cmake file
114 sed -e "s/MAKEPROGRAM/CMAKE_MAKE_PROGRAM/g" \
115 - -i ${S}/Examples/CMakeLists.txt || \
116 + -i "${S}"/Examples/CMakeLists.txt || \
117 die "Failed to fix examples CMakeList.txt"
118
119 # build list of config variable define's to pass to cmake
120 local CMAKE_VARIABLES=""
121 CMAKE_VARIABLES="${CMAKE_VARIABLES} -DCMAKE_SKIP_RPATH:BOOL=YES"
122 CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_DIR:PATH=${S}"
123 + CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_INSTALL_LIB_DIR:PATH=/usr/$(get_libdir)/"
124 CMAKE_VARIABLES="${CMAKE_VARIABLES} -DCMAKE_INSTALL_PREFIX:PATH=/usr"
125 CMAKE_VARIABLES="${CMAKE_VARIABLES} -DBUILD_SHARED_LIBS:BOOL=ON"
126 CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTK_USE_FREETYPE:BOOL=ON"
127 @@ -182,7 +197,7 @@
128 -i "${S}"/Utilities/InstallOnly/*.cmake || \
129 die "Failed to fix cmake files"
130
131 - make DESTDIR=${D} install || die "make install failed"
132 + make DESTDIR="${D}" install || die "make install failed"
133
134 # install docs
135 dohtml "${S}"/README.html || die "Failed to install docs"
136 @@ -206,34 +221,34 @@
137 if use examples; then
138 dodir /usr/share/${PN} || \
139 die "Failed to create examples directory"
140 - cp -pPR ${S}/Examples ${D}/usr/share/${PN}/examples || \
141 + cp -pPR "${S}"/Examples "${D}"/usr/share/${PN}/examples || \
142 die "Failed to copy example files"
143
144 # fix example's permissions
145 - find ${D}/usr/share/${PN}/examples -type d -exec \
146 + find "${D}"/usr/share/${PN}/examples -type d -exec \
147 chmod 0755 {} \; || \
148 die "Failed to fix example directories permissions"
149 - find ${D}/usr/share/${PN}/examples -type f -exec \
150 + find "${D}"/usr/share/${PN}/examples -type f -exec \
151 chmod 0644 {} \; || \
152 die "Failed to fix example files permissions"
153
154 - cp -pPR ${WORKDIR}/VTKData ${D}/usr/share/${PN}/data || \
155 + cp -pPR "${WORKDIR}"/VTKData "${D}"/usr/share/${PN}/data || \
156 die "Failed to copy data files"
157
158 # fix data's permissions
159 - find ${D}/usr/share/${PN}/data -type d -exec \
160 + find "${D}"/usr/share/${PN}/data -type d -exec \
161 chmod 0755 {} \; || \
162 die "Failed to fix data directories permissions"
163 - find ${D}/usr/share/${PN}/data -type f -exec \
164 + find "${D}"/usr/share/${PN}/data -type f -exec \
165 chmod 0644 {} \; || \
166 die "Failed to fix data files permissions"
167 fi
168
169 # environment
170 - echo "VTK_DATA_ROOT=/usr/share/${PN}/data" >> ${T}/40${PN}
171 - echo "VTK_DIR=/usr/lib/${PN}-${SPV}" >> ${T}/40${PN}
172 - echo "VTKHOME=/usr" >> ${T}/40${PN}
173 - doenvd ${T}/40${PN}
174 + echo "VTK_DATA_ROOT=/usr/share/${PN}/data" >> "${T}"/40${PN}
175 + echo "VTK_DIR=/usr/lib/${PN}-${SPV}" >> "${T}"/40${PN}
176 + echo "VTKHOME=/usr" >> "${T}"/40${PN}
177 + doenvd "${T}"/40${PN}
178 }
179
180 pkg_postinst() {
181
182
183
184 --
185 gentoo-commits@l.g.o mailing list