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

Collapse All | Expand All

(-)/usr/portage/sci-libs/gdal/gdal-1.3.2.ebuild (-23 / +27 lines)
Lines 1-15 Link Here
1
# Copyright 1999-2006 Gentoo Foundation
1
# Copyright 1999-2006 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.3.2.ebuild,v 1.3 2006/06/09 19:22:52 nerdboy Exp $
3
# $Header: $
4
4
5
inherit eutils libtool gnuconfig distutils toolchain-funcs
5
inherit eutils libtool gnuconfig distutils toolchain-funcs
6
6
7
IUSE="jpeg png geos gif jpeg2k netcdf hdf hdf5 python ruby postgres \
7
IUSE="ecw jpeg png geos gif jpeg2k netcdf hdf hdf5 python ruby postgres \
8
	odbc sqlite ogdi fits gml doc debug"
8
	odbc sqlite ogdi fits gml doc debug"
9
9
10
DESCRIPTION="GDAL is a translator library for raster geospatial data formats (includes OGR support)"
10
DESCRIPTION="GDAL is a translator library for raster geospatial data formats (includes OGR support)"
11
HOMEPAGE="http://www.remotesensing.org/gdal/index.html"
11
HOMEPAGE="http://www.remotesensing.org/gdal/index.html"
12
SRC_URI="http://dl.maptools.org/dl/gdal/${P}.tar.gz"
12
PKG="${PN}-1.4.0beta1"
13
SRC_URI="http://dl.maptools.org/dl/gdal/${PKG}.tar.gz"
13
14
14
SLOT="0"
15
SLOT="0"
15
LICENSE="MIT"
16
LICENSE="MIT"
Lines 31-68 Link Here
31
	gml? ( dev-libs/xerces-c )
32
	gml? ( dev-libs/xerces-c )
32
	hdf5? ( >=sci-libs/hdf5-1.6.4 )
33
	hdf5? ( >=sci-libs/hdf5-1.6.4 )
33
	postgres? ( dev-db/postgresql )
34
	postgres? ( dev-db/postgresql )
34
	|| (
35
	netcdf? ( sci-libs/netcdf )
35
	    netcdf? ( sci-libs/netcdf )
36
	hdf? ( sci-libs/hdf )
36
	    hdf? ( sci-libs/hdf )
37
	)
38
	jpeg2k? ( media-libs/jasper )
37
	jpeg2k? ( media-libs/jasper )
39
	odbc?   ( dev-db/unixODBC )
38
	odbc?   ( dev-db/unixODBC )
40
	geos?   ( >=sci-libs/geos-2.2.1 )
39
	geos?   ( >=sci-libs/geos-2.2.1 )
41
	sqlite? ( >=dev-db/sqlite-3 )
40
	sqlite? ( >=dev-db/sqlite-3 )
41
	ecw? ( sci-libs/libecwj2 )
42
	doc? ( app-doc/doxygen )"
42
	doc? ( app-doc/doxygen )"
43
43
44
src_unpack() {
44
S="${WORKDIR}/${PKG}"
45
	unpack ${A}
45
pkg_setup() {
46
	cd ${S}
46
	if use netcdf && use hdf; then
47
	epatch ${FILESDIR}/${P}-destdir.patch || die "epatch failed"
47
		einfo "Please set one USEflag between 'netcdf' and 'hdf', not both"
48
	epatch ${FILESDIR}/${P}-ruby-install.patch || die "epatch failed"
48
		die "use netcdf && use hdf is not valid!"
49
	if [ $(gcc-major-version) -eq 4 ]; then
50
	    epatch ${FILESDIR}/${P}-gcc4-stl.patch || die "epatch failed"
51
	fi
49
	fi
52
	elibtoolize --patch-only
50
	if use hdf; then
53
	gnuconfig_update
54
	if useq netcdf && useq hdf; then
55
	    einfo	"Checking is HDF4 compiled with szip..."
51
	    einfo	"Checking is HDF4 compiled with szip..."
56
	    if built_with_use sci-libs/hdf szip ; then
52
	    if built_with_use sci-libs/hdf szip ; then
57
		einfo	"Found HDF4 compiled with szip. Nice."
53
			einfo	"Found HDF4 compiled with szip. Nice."
58
	    else
54
	    else
59
		ewarn 	"HDF4 (sci-libs/hdf) must be compiled with szip USE flag!"
55
			ewarn 	"HDF4 (sci-libs/hdf) must be compiled with szip USE flag!"
60
		einfo 	"Emerge HDF with szip USE flag and then emerge GDAL."
56
			einfo 	"Emerge HDF with szip USE flag and then emerge GDAL."
61
		die 	"HDF4 not merged with szip use flag"
57
			die 	"HDF4 not merged with szip use flag"
62
	    fi
58
	    fi
63
	fi
59
	fi
64
}
60
}
65
61
62
src_unpack() {
63
	unpack ${A}
64
	cd ${S}
65
	epatch ${FILESDIR}/${P}-ruby-install.patch || die "epatch failed"
66
	elibtoolize --patch-only
67
	gnuconfig_update
68
}
69
66
src_compile() {
70
src_compile() {
67
	distutils_python_version
71
	distutils_python_version
68
72
Lines 73-79 Link Here
73
	    $(use_with postgres pg) $(use_with fits cfitsio) \
77
	    $(use_with postgres pg) $(use_with fits cfitsio) \
74
	    $(use_with netcdf) $(use_with hdf hdf4) $(use_with geos) \
78
	    $(use_with netcdf) $(use_with hdf hdf4) $(use_with geos) \
75
	    $(use_with sqlite) $(use_with jpeg2k jasper) $(use_with odbc) \
79
	    $(use_with sqlite) $(use_with jpeg2k jasper) $(use_with odbc) \
76
	    $(use_with gml xerces) $(use_with hdf5)"
80
	    $(use_with gml xerces) $(use_with hdf5) $(use_with ecw)"
77
	    # mysql support temporarily disabled $(use_with mysql)
81
	    # mysql support temporarily disabled $(use_with mysql)
78
82
79
	# It can't find this
83
	# It can't find this
Lines 122-128 Link Here
122
src_install() {
126
src_install() {
123
	# einstall causes sandbox violations on /usr/lib/libgdal.so
127
	# einstall causes sandbox violations on /usr/lib/libgdal.so
124
	make DESTDIR=${D} install || die "make install failed"
128
	make DESTDIR=${D} install || die "make install failed"
125
	dodoc Doxyfile.man Doxyfile HOWTO-RELEASE NEWS
129
	dodoc Doxyfile HOWTO-RELEASE NEWS
126
	if useq doc ; then
130
	if useq doc ; then
127
	    dohtml html/* || die "install html failed"
131
	    dohtml html/* || die "install html failed"
128
	    docinto ogr
132
	    docinto ogr

Return to bug 122188