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

Collapse All | Expand All

(-)gdal-2.0.0.ebuild.orig (-30 / +8 lines)
Lines 19-25 Link Here
19
SLOT="0"
19
SLOT="0"
20
LICENSE="MIT"
20
LICENSE="MIT"
21
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
21
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
22
IUSE="armadillo +aux_xml curl debug doc fits geos gif gml hdf5 java jpeg jpeg2k mdb mysql netcdf odbc ogdi opencl pdf perl png postgres python ruby spatialite sqlite threads xls"
22
IUSE="armadillo +aux_xml curl debug doc fits geos gif gml hdf5 java jpeg jpeg2k mdb mysql netcdf odbc ogdi opencl pdf perl png postgres python spatialite sqlite threads xls"
23
23
24
RDEPEND="
24
RDEPEND="
25
	dev-libs/expat
25
	dev-libs/expat
Lines 53-71 Link Here
53
		dev-python/setuptools[${PYTHON_USEDEP}]
53
		dev-python/setuptools[${PYTHON_USEDEP}]
54
		dev-python/numpy[${PYTHON_USEDEP}]
54
		dev-python/numpy[${PYTHON_USEDEP}]
55
	)
55
	)
56
	ruby? ( dev-lang/ruby:1.9 )
57
	sqlite? ( dev-db/sqlite:3 )
56
	sqlite? ( dev-db/sqlite:3 )
58
	spatialite? ( dev-db/spatialite )
57
	spatialite? ( dev-db/spatialite )
59
	xls? ( dev-libs/freexl )
58
	xls? ( dev-libs/freexl )
60
"
59
"
61
60
62
SWIG_DEP=">=dev-lang/swig-2.0.2 <=dev-lang/swig-3.0.4"
61
SWIG_DEP=">=dev-lang/swig-2.0.2"
63
DEPEND="${RDEPEND}
62
DEPEND="${RDEPEND}
64
	doc? ( app-doc/doxygen )
63
	doc? ( app-doc/doxygen )
65
	java? ( >=virtual/jdk-1.6 )
64
	java? ( >=virtual/jdk-1.6 )
66
	perl? ( ${SWIG_DEP} )
65
	perl? ( ${SWIG_DEP} )
67
	python? ( ${SWIG_DEP} )
66
	python? ( ${SWIG_DEP} )"
68
	ruby? ( ${SWIG_DEP} )"
69
67
70
AT_M4DIR="${S}/m4"
68
AT_M4DIR="${S}/m4"
71
MAKEOPTS+=" -j1"
69
MAKEOPTS+=" -j1"
Lines 94-101 Link Here
94
		-e "s:--prefix=\$(DESTDIR):--prefix=:" \
92
		-e "s:--prefix=\$(DESTDIR):--prefix=:" \
95
		"${S}"/swig/python/GNUmakefile || die
93
		"${S}"/swig/python/GNUmakefile || die
96
94
97
	epatch "${FILESDIR}"/${PN}-1.10.0-ruby-makefile.patch
98
99
	# -soname is only accepted by GNU ld/ELF
95
	# -soname is only accepted by GNU ld/ELF
100
	[[ ${CHOST} == *-darwin* ]] \
96
	[[ ${CHOST} == *-darwin* ]] \
101
		&& epatch "${FILESDIR}"/${PN}-1.5.0-install_name.patch \
97
		&& epatch "${FILESDIR}"/${PN}-1.5.0-install_name.patch \
Lines 143-153 Link Here
143
gdal_src_configure() {
139
gdal_src_configure() {
144
	local myopts=""
140
	local myopts=""
145
141
146
	if use ruby; then
147
		RUBY_MOD_DIR="$(ruby19 -r rbconfig -e 'print RbConfig::CONFIG["sitearchdir"]')"
148
		echo "Ruby module dir is: $RUBY_MOD_DIR"
149
	fi
150
151
	if use java; then
142
	if use java; then
152
		myopts+="
143
		myopts+="
153
			--with-java=$(java-config --jdk-home 2>/dev/null)
144
			--with-java=$(java-config --jdk-home 2>/dev/null)
Lines 220-226 Link Here
220
		$(use_with png) \
211
		$(use_with png) \
221
		$(use_with postgres pg) \
212
		$(use_with postgres pg) \
222
		$(use_with python) \
213
		$(use_with python) \
223
		$(use_with ruby) \
224
		$(use_with spatialite) \
214
		$(use_with spatialite) \
225
		$(use_with sqlite sqlite3 "${EPREFIX}"/usr) \
215
		$(use_with sqlite sqlite3 "${EPREFIX}"/usr) \
226
		$(use_with threads) \
216
		$(use_with threads) \
Lines 259-271 Link Here
259
}
249
}
260
250
261
src_compile() {
251
src_compile() {
262
	local i
252
	if use perl; then
263
	for i in perl ruby; do
253
		rm "${S}"/swig/perl/*_wrap.cpp
264
		if use $i; then
254
		emake -C "${S}"/swig/perl generate
265
			rm "${S}"/swig/$i/*_wrap.cpp
255
	fi
266
			emake -C "${S}"/swig/$i generate
267
		fi
268
	done
269
256
270
	default
257
	default
271
258
Lines 294-314 Link Here
294
		perl-module_src_install
281
		perl-module_src_install
295
		popd > /dev/null
282
		popd > /dev/null
296
		sed -i \
283
		sed -i \
297
			-e "s:BINDINGS        =       python ruby perl:BINDINGS        =       python ruby:g" \
284
			-e "s:BINDINGS        =       python perl:BINDINGS        =       python:g" \
298
			GDALmake.opt || die
285
			GDALmake.opt || die
299
	fi
286
	fi
300
287
301
	default
288
	default
302
289
303
	if use ruby ; then
304
		# weird reinstall collision; needs manual intervention...
305
		pushd "${S}"/swig/ruby > /dev/null
306
		rm -rf "${D}"${RUBY_MOD_DIR}/gdal
307
		exeinto ${RUBY_MOD_DIR}/gdal
308
		doexe *.so || die "doins ruby modules failed"
309
		popd > /dev/null
310
	fi
311
312
	use perl && perl_delete_localpod
290
	use perl && perl_delete_localpod
313
291
314
	dodoc Doxyfile HOWTO-RELEASE NEWS
292
	dodoc Doxyfile HOWTO-RELEASE NEWS

Return to bug 547832