Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 217917 | Differences between
and this patch

Collapse All | Expand All

(-)grass-6.2.1-r1.ebuild (-8 / +5 lines)
Lines 8-18 Link Here
8
MY_PVM=$(delete_all_version_separators ${MY_PV})
8
MY_PVM=$(delete_all_version_separators ${MY_PV})
9
MY_PM=${PN}${MY_PVM}
9
MY_PM=${PN}${MY_PVM}
10
10
11
DESCRIPTION="An open-source GIS with raster and vector functionality, as well as 3D vizualization."
11
DESCRIPTION="An open-source GIS with raster and vector functionality, as well as 3D vizualization."
12
HOMEPAGE="http://grass.itc.it/"
12
HOMEPAGE="http://grass.itc.it/"
13
SRC_URI="http://grass.itc.it/${MY_PM}/source/${P}.tar.gz"
13
SRC_URI="http://grass.itc.it/${MY_PM}/source/${P/_rc/RC}.tar.gz"
14
14
15
LICENSE="GPL-2"
15
LICENSE="GPL-2"
16
SLOT="0"
16
SLOT="0"
17
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
17
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
18
18
Lines 68-77 Link Here
68
	X? (
68
	X? (
69
		x11-proto/xproto
69
		x11-proto/xproto
70
		x11-proto/xextproto
70
		x11-proto/xextproto
71
	)"
71
	)"
72
72
73
S="${WORKDIR}/${P/_rc/RC}"
74
73
src_unpack() {
75
src_unpack() {
74
	local myblas
76
	local myblas
75
	if use gmath; then
77
	if use gmath; then
76
		for d in $(eselect lapack show); do myblas=${d}; done
78
		for d in $(eselect lapack show); do myblas=${d}; done
77
		if [[ -z "${myblas/reference/}" ]] && [[ -z "${myblas/atlas/}" ]]; then
79
		if [[ -z "${myblas/reference/}" ]] && [[ -z "${myblas/atlas/}" ]]; then
Lines 118-128 Link Here
118
		die "Emerge tk without threads."
120
		die "Emerge tk without threads."
119
	fi
121
	fi
120
122
121
	unpack ${A}
123
	unpack ${A}
122
	cd "${S}"
124
	cd "${S}"
123
	use ffmpeg && epatch "${FILESDIR}"/${P}-ffmpeg-fix.patch
124
	epatch rpm/fedora/grass-readline.patch
125
	epatch rpm/fedora/grass-readline.patch
125
	elibtoolize
126
	elibtoolize
126
	elog "Grass Home is ${MY_PM}"
127
	elog "Grass Home is ${MY_PM}"
127
}
128
}
128
129
Lines 142-152 Link Here
142
	else
143
	else
143
		myconf="${myconf} --without-tcltk --without-x"
144
		myconf="${myconf} --without-tcltk --without-x"
144
	fi
145
	fi
145
146
146
	if use opengl; then
147
	if use opengl; then
147
	    epatch "${FILESDIR}"/${P}-html-nviz-fix.patch
148
	    myconf="${myconf} --with-opengl --with-opengl-libs=/usr/$(get_libdir)/opengl/xorg-x11/lib"
148
	    myconf="${myconf} --with-opengl --with-opengl-libs=/usr/$(get_libdir)/opengl/xorg-x11/lib"
149
	    if use glw; then
149
	    if use glw; then
150
		myconf="${myconf} --with-glw"
150
		myconf="${myconf} --with-glw"
151
	    fi
151
	    fi
152
	else
152
	else
Lines 204-217 Link Here
204
	make install UNIX_BIN="${D}"usr/bin BINDIR="${D}"usr/bin \
204
	make install UNIX_BIN="${D}"usr/bin BINDIR="${D}"usr/bin \
205
		PREFIX="${D}"usr INST_DIR="${D}"usr/${MY_PM} \
205
		PREFIX="${D}"usr INST_DIR="${D}"usr/${MY_PM} \
206
		|| die "make install failed!"
206
		|| die "make install failed!"
207
207
208
	# This is now generated in the function below
208
	# This is now generated in the function below
209
	rm "${D}"usr/bin/grass62
209
	rm "${D}"usr/bin/${MY_PM}
210
211
	# Grass Extension Manager conflicts with ruby gems
212
	mv "${D}"usr/bin/gem "${D}"usr/${MY_PM}/bin/
213
210
214
	ebegin "Adding env.d and desktop entry for Grass6..."
211
	ebegin "Adding env.d and desktop entry for Grass6..."
215
	    generate_files
212
	    generate_files
216
	    doenvd 99grass-6
213
	    doenvd 99grass-6
217
	    dobin ${MY_PM}.sh
214
	    dobin ${MY_PM}.sh
Lines 236-246 Link Here
236
	LDPATH="/usr/${MY_PM}/lib"
233
	LDPATH="/usr/${MY_PM}/lib"
237
	MANPATH="/usr/${MY_PM}/man"
234
	MANPATH="/usr/${MY_PM}/man"
238
	GRASS_HOME="/usr/${MY_PM}"
235
	GRASS_HOME="/usr/${MY_PM}"
239
	EOF
236
	EOF
240
237
241
	cat <<-EOF > grass62.sh
238
	cat <<-EOF > ${MY_PM}.sh
242
	######################################################################
239
	######################################################################
243
	# MODULE:       GRASS Initialization
240
	# MODULE:       GRASS Initialization
244
	# AUTHOR(S):    Justin Hickey - Thailand - jhickey@hpcc.nectec.or.th
241
	# AUTHOR(S):    Justin Hickey - Thailand - jhickey@hpcc.nectec.or.th
245
	# COPYRIGHT:    (C) 2000-2005 by the GRASS Development Team
242
	# COPYRIGHT:    (C) 2000-2005 by the GRASS Development Team
246
	# This program is free software under the GNU General Public License
243
	# This program is free software under the GNU General Public License

Return to bug 217917