Gentoo Archives: gentoo-commits

From: "Steve Arnold (nerdboy)" <nerdboy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-geosciences/grass: ChangeLog grass-6.2.3.ebuild grass-6.2.1-r1.ebuild
Date: Thu, 01 May 2008 05:19:52
Message-Id: E1JrRCt-0007lQ-Pd@stork.gentoo.org
1 nerdboy 08/05/01 05:19:47
2
3 Modified: ChangeLog
4 Added: grass-6.2.3.ebuild
5 Removed: grass-6.2.1-r1.ebuild
6 Log:
7 updated for testing and stablizing; fixes bugs 217873 and 219764
8 (Portage version: 2.1.5_rc6)
9
10 Revision Changes Path
11 1.51 sci-geosciences/grass/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/ChangeLog?rev=1.51&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/ChangeLog?rev=1.51&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/ChangeLog?r1=1.50&r2=1.51
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/grass/ChangeLog,v
20 retrieving revision 1.50
21 retrieving revision 1.51
22 diff -u -r1.50 -r1.51
23 --- ChangeLog 22 Mar 2008 03:52:38 -0000 1.50
24 +++ ChangeLog 1 May 2008 05:19:47 -0000 1.51
25 @@ -1,6 +1,16 @@
26 # ChangeLog for sci-geosciences/grass
27 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/ChangeLog,v 1.50 2008/03/22 03:52:38 nerdboy Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/ChangeLog,v 1.51 2008/05/01 05:19:47 nerdboy Exp $
30 +
31 +*grass-6.2.3 (01 May 2008)
32 +
33 + 01 May 2008; Steve Arnold <nerdboy@g.o>
34 + +files/grass-6.2.3-html-nonviz.patch,
35 + +files/grass-6.2.3-html-nviz-fix.patch, -grass-6.2.1-r1.ebuild,
36 + +grass-6.2.3.ebuild:
37 + Refined and updated for testing and stablizing; fixes bugs 217873 and
38 + 219764. Thanks to Martin von Gagern <Martin.vGagern@×××.net> for the
39 + updated patches and other suggestions.
40
41 22 Mar 2008; Steve Arnold <nerdboy@g.o> grass-6.2.1-r1.ebuild:
42 Minor cleanup of desktop stuff and adding ~ppc64 keyword back (gdal
43
44
45
46 1.1 sci-geosciences/grass/grass-6.2.3.ebuild
47
48 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/grass-6.2.3.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/grass-6.2.3.ebuild?rev=1.1&content-type=text/plain
50
51 Index: grass-6.2.3.ebuild
52 ===================================================================
53 # Copyright 1999-2008 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-6.2.3.ebuild,v 1.1 2008/05/01 05:19:47 nerdboy Exp $
56
57 inherit eutils autotools fdo-mime versionator
58
59 MY_PV=$(get_version_component_range 1-2 ${PV})
60 MY_PVM=$(delete_all_version_separators ${MY_PV})
61 MY_PM=${PN}${MY_PVM}
62
63 DESCRIPTION="An open-source GIS with raster and vector functionality, as well as 3D vizualization."
64 HOMEPAGE="http://grass.itc.it/"
65 SRC_URI="http://grass.itc.it/${MY_PM}/source/${P}.tar.gz"
66
67 LICENSE="GPL-2"
68 SLOT="0"
69 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
70
71 IUSE="ffmpeg fftw glw gmath jpeg largefile mysql nls odbc opengl png \
72 postgres python readline sqlite tiff truetype X"
73
74 RESTRICT="strip"
75
76 RDEPEND=">=sys-devel/make-3.80
77 >=sys-libs/zlib-1.1.4
78 >=sys-devel/flex-2.5.4a
79 >=sys-devel/bison-1.35
80 >=sys-libs/ncurses-5.3
81 >=sys-libs/gdbm-1.8.0
82 >=sys-devel/gcc-3.2.2
83 || (
84 sys-apps/man
85 sys-apps/man-db )
86 sci-libs/gdal
87 >=sci-libs/proj-4.4.7
88 ffmpeg? ( media-video/ffmpeg )
89 fftw? ( sci-libs/fftw )
90 gmath? ( virtual/blas
91 virtual/lapack )
92 jpeg? ( media-libs/jpeg )
93 mysql? ( dev-db/mysql )
94 odbc? ( >=dev-db/unixODBC-2.0.6 )
95 opengl? ( ( virtual/opengl )
96 ( x11-libs/openmotif )
97 glw? ( media-libs/mesa ) )
98 png? ( >=media-libs/libpng-1.2.2 )
99 postgres? ( >=dev-db/postgresql-7.3 )
100 python? ( dev-lang/python )
101 readline? ( sys-libs/readline )
102 sqlite? ( dev-db/sqlite )
103 tiff? ( >=media-libs/tiff-3.5.7 )
104 truetype? ( >=media-libs/freetype-2.0 )
105 X? (
106 x11-libs/libXmu
107 x11-libs/libXext
108 x11-libs/libXp
109 x11-libs/libX11
110 x11-libs/libXt
111 x11-libs/libSM
112 x11-libs/libICE
113 x11-libs/libXpm
114 x11-libs/libXaw
115 >=dev-lang/tcl-8.4
116 >=dev-lang/tk-8.4
117 )"
118
119 DEPEND="${RDEPEND}
120 X? (
121 x11-proto/xproto
122 x11-proto/xextproto
123 )"
124
125 pkg_setup() {
126 local myblas
127 if use gmath; then
128 for d in $(eselect lapack show); do myblas=${d}; done
129 if [[ -z "${myblas/reference/}" ]] && [[ -z "${myblas/atlas/}" ]]; then
130 ewarn "You need to set lapack to atlas or reference. Do:"
131 ewarn " eselect lapack set <impl>"
132 ewarn "where <impl> is atlas, threaded-atlas or reference"
133 die "setup failed"
134 fi
135 for d in $(eselect blas show); do myblas=${d}; done
136 if [[ -z "${myblas/reference/}" ]] && [[ -z "${myblas/atlas/}" ]]; then
137 ewarn "You need to set blas to atlas or reference. Do:"
138 ewarn " eselect blas set <impl>"
139 ewarn "where <impl> is atlas, threaded-atlas or reference"
140 die "setup failed"
141 fi
142 fi
143
144 if use glw && ! use opengl; then
145 ewarn "You set USE='glw -opengl'. GLw support needs OpenGL."
146 ewarn "OpenGL support also requires X."
147 die "Set opengl and X useflags."
148 fi
149
150 if use glw && ! built_with_use media-libs/mesa motif; then
151 ewarn "GRASS GLw/OpenGL support needs mesa with motif headers."
152 ewarn "Please rebuild mesa with motif support."
153 die "Re-emerge mesa with motif."
154 fi
155
156 if use opengl && ! use X; then
157 ewarn "GRASS OpenGL support needs X (will also pull in Tcl/Tk)."
158 die "Please set the X useflag."
159 fi
160 }
161
162 src_unpack() {
163 unpack ${A}
164 cd "${S}"
165
166 epatch rpm/fedora/grass-readline.patch
167
168 if use opengl; then
169 epatch "${FILESDIR}"/${P}-html-nviz-fix.patch
170 else
171 epatch "${FILESDIR}"/${P}-html-nonviz.patch
172 fi
173
174 # patch missing math functions (yes, this is still needed)
175 sed -i -e "s:\$(EXTRA_LIBS):\$(EXTRA_LIBS) \$(MATHLIB):g" include/Make/Shlib.make
176 echo "MATHLIB=-lm" >> include/Make/Rules.make
177 }
178
179 src_compile() {
180 local myconf
181 myconf="--prefix=/usr --with-cxx --enable-shared \
182 --with-gdal=$(type -P gdal-config) --with-curses --with-proj \
183 --with-includes=/usr/include --with-libs=/usr/$(get_libdir) \
184 --with-proj-includes=/usr/include \
185 --with-proj-libs=/usr/$(get_libdir) \
186 --with-proj-share=/usr/share/proj"
187
188 if use X; then
189 myconf="${myconf} --with-tcltk --with-x \
190 --with-tcltk-includes=/usr/include \
191 --with-tcltk-libs=/usr/$(get_libdir)/tcl8.4"
192 else
193 myconf="${myconf} --without-tcltk --without-x"
194 fi
195
196 if use opengl; then
197 myconf="${myconf} --with-opengl --with-opengl-libs=/usr/$(get_libdir)/opengl/xorg-x11/lib"
198 if use glw; then
199 myconf="${myconf} --with-glw"
200 fi
201 else
202 myconf="${myconf} --without-opengl --without-glw"
203 fi
204
205 if use ffmpeg; then
206 myconf="${myconf} --with-ffmpeg --with-ffmpeg-includes=/usr/include/ffmpeg \
207 --with-ffmpeg-libs=/usr/$(get_libdir)"
208 else
209 myconf="${myconf} --without-ffmpeg"
210 fi
211
212 if use truetype; then
213 myconf="${myconf} --with-freetype \
214 --with-freetype-includes=/usr/include/freetype2"
215 fi
216
217 if use mysql; then
218 myconf="${myconf} --with-mysql --with-mysql-includes=/usr/include/mysql \
219 --with-mysql-libs=/usr/$(get_libdir)/mysql"
220 else
221 myconf="${myconf} --without-mysql"
222 fi
223
224 if use sqlite; then
225 myconf="${myconf} --with-sqlite --with-sqlite-includes=/usr/include
226 --with-sqlite-libs=/usr/$(get_libdir)"
227 else
228 myconf="${myconf} --without-sqlite"
229 fi
230
231 econf ${myconf} --with-libs=/usr/$(get_libdir) \
232 $(use_enable amd64 64bit) \
233 $(use_with fftw) \
234 $(use_with gmath blas) \
235 $(use_with gmath lapack) \
236 $(use_with jpeg) \
237 $(use_enable largefile) \
238 $(use_with opengl motif) \
239 $(use_with nls) \
240 $(use_with odbc) \
241 $(use_with png) \
242 $(use_with postgres) \
243 $(use_with python) \
244 $(use_with readline) \
245 $(use_with tiff) || die "configure failed!"
246
247 emake -j1 || die "emake failed!"
248 }
249
250 src_install() {
251 elog "Grass Home is ${MY_PM}"
252 make install UNIX_BIN="${D}"usr/bin BINDIR="${D}"usr/bin \
253 PREFIX="${D}"usr INST_DIR="${D}"usr/${MY_PM} \
254 || die "make install failed!"
255
256 #
257 sed -i -e "s@${D}@/@" "${D}"usr/bin/${MY_PM}
258
259 # Grass Extension Manager conflicts with ruby gems
260 mv "${D}"usr/bin/gem "${D}"usr/${MY_PM}/bin/
261
262 ebegin "Adding env.d and desktop entry for Grass6..."
263 generate_files
264 doenvd 99grass-6
265 if use X; then
266 doicon "${FILESDIR}"/grass_icon.png
267 domenu ${MY_PM}-grass.desktop
268 fi
269 eend ${?}
270 }
271
272 pkg_postinst() {
273 use X && fdo-mime_desktop_database_update
274
275 elog "Note this version re-enables support for threads in Tcl and Tk."
276 elog "Enable the threads USE flag and rebuild to try it."
277 }
278
279 pkg_postrm() {
280 use X && fdo-mime_desktop_database_update
281 }
282
283 generate_files() {
284 cat <<-EOF > 99grass-6
285 GRASS_LD_LIBRARY_PATH="/usr/${MY_PM}/lib"
286 LDPATH="/usr/${MY_PM}/lib"
287 MANPATH="/usr/${MY_PM}/man"
288 GRASS_HOME="/usr/${MY_PM}"
289 EOF
290
291 cat <<-EOF > ${MY_PM}-grass.desktop
292 [Desktop Entry]
293 Encoding=UTF-8
294 Version=1.0
295 Name=Grass ${PV}
296 Type=Application
297 Comment=GRASS Open Source GIS, derived from the original US Army Corps of Engineers project.
298 Exec=${TERM} -T Grass -e /usr/bin/${MY_PM} -gui
299 Path=
300 Icon=grass_icon.png
301 Categories=Science;Education;
302 Terminal=true
303 EOF
304 }
305
306
307
308 --
309 gentoo-commits@l.g.o mailing list