Lines 8-14
WANT_AUTOCONF="2.5"
Link Here
|
8 |
|
8 |
|
9 |
PYTHON_DEPEND="python? 2:2.6" |
9 |
PYTHON_DEPEND="python? 2:2.6" |
10 |
|
10 |
|
11 |
inherit autotools eutils libtool perl-module python toolchain-funcs java-pkg-opt-2 |
11 |
inherit autotools eutils libtool perl-module python toolchain-funcs java-pkg-opt-2 flag-o-matic |
12 |
|
12 |
|
13 |
DESCRIPTION="Translator library for raster geospatial data formats (includes OGR support)" |
13 |
DESCRIPTION="Translator library for raster geospatial data formats (includes OGR support)" |
14 |
HOMEPAGE="http://www.gdal.org/" |
14 |
HOMEPAGE="http://www.gdal.org/" |
Lines 17-23
SRC_URI="http://download.osgeo.org/gdal/
Link Here
|
17 |
SLOT="0" |
17 |
SLOT="0" |
18 |
LICENSE="MIT" |
18 |
LICENSE="MIT" |
19 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
19 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
20 |
IUSE="armadillo +aux_xml curl debug doc ecwj2k fits geos gif gml hdf5 java jpeg jpeg2k mdb mysql netcdf odbc opencl ogdi pdf perl png postgres python ruby spatialite sqlite threads xls" |
20 |
IUSE="armadillo +aux_xml curl debug doc ecwj2k fits geos gif gml hdf5 java jpeg |
|
|
21 |
jpeg2k mdb mysql netcdf oci odbc opencl ogdi pdf perl png postgres python ruby |
22 |
spatialite sqlite threads xls" |
21 |
|
23 |
|
22 |
RDEPEND=" |
24 |
RDEPEND=" |
23 |
dev-libs/expat |
25 |
dev-libs/expat |
Lines 37-42
RDEPEND="
Link Here
|
37 |
jpeg2k? ( media-libs/jasper ) |
39 |
jpeg2k? ( media-libs/jasper ) |
38 |
mysql? ( virtual/mysql ) |
40 |
mysql? ( virtual/mysql ) |
39 |
netcdf? ( sci-libs/netcdf ) |
41 |
netcdf? ( sci-libs/netcdf ) |
|
|
42 |
oci? ( dev-db/oracle-instantclient-basic ) |
40 |
odbc? ( dev-db/unixODBC ) |
43 |
odbc? ( dev-db/unixODBC ) |
41 |
ogdi? ( sci-libs/ogdi ) |
44 |
ogdi? ( sci-libs/ogdi ) |
42 |
opencl? ( virtual/opencl ) |
45 |
opencl? ( virtual/opencl ) |
Lines 77-82
pkg_setup() {
Link Here
|
77 |
python_set_active_version 2 |
80 |
python_set_active_version 2 |
78 |
python_pkg_setup |
81 |
python_pkg_setup |
79 |
fi |
82 |
fi |
|
|
83 |
|
84 |
if use oci; then |
85 |
if [[ ! -e "${ROOT}${ORACLE_HOME}" ]] ; then |
86 |
eerror "You have requested OCI (Oracle Call Interface) support" |
87 |
eerror "In order to find the directory of OCI headers and libraries" |
88 |
eerror "${P} needs the ORACLE_HOME variable to be set." |
89 |
eerror "Please check your oracle-instantclient setup." |
90 |
eerror "" |
91 |
die "Variable ORACLE_HOME is not correctly set !" |
92 |
fi |
93 |
fi |
80 |
} |
94 |
} |
81 |
|
95 |
|
82 |
src_unpack() { |
96 |
src_unpack() { |
Lines 85-90
src_unpack() {
Link Here
|
85 |
} |
99 |
} |
86 |
|
100 |
|
87 |
src_prepare() { |
101 |
src_prepare() { |
|
|
102 |
|
103 |
# oci support won't configure with --as-needed ldflag |
104 |
if use oci; then |
105 |
filter-ldflags -Wl,--as-needed |
106 |
fi |
107 |
|
88 |
# fix datadir and docdir placement |
108 |
# fix datadir and docdir placement |
89 |
sed -i \ |
109 |
sed -i \ |
90 |
-e "s:@datadir@:@datadir@/gdal:" \ |
110 |
-e "s:@datadir@:@datadir@/gdal:" \ |
Lines 173-179
src_configure() {
Link Here
|
173 |
--without-msg \ |
193 |
--without-msg \ |
174 |
--without-bsb \ |
194 |
--without-bsb \ |
175 |
--without-dods-root \ |
195 |
--without-dods-root \ |
176 |
--without-oci \ |
|
|
177 |
--without-ingres \ |
196 |
--without-ingres \ |
178 |
--without-dwgdirect \ |
197 |
--without-dwgdirect \ |
179 |
--without-epsilon \ |
198 |
--without-epsilon \ |
Lines 200-205
src_configure() {
Link Here
|
200 |
$(use_with jpeg2k jasper) \ |
219 |
$(use_with jpeg2k jasper) \ |
201 |
$(use_with ecwj2k ecw) \ |
220 |
$(use_with ecwj2k ecw) \ |
202 |
$(use_with gml xerces) \ |
221 |
$(use_with gml xerces) \ |
|
|
222 |
$(use_with oci oci ${ORACLE_HOME}) \ |
203 |
$(use_with odbc) \ |
223 |
$(use_with odbc) \ |
204 |
$(use_with ogdi ogdi "${EPREFIX}"/usr) \ |
224 |
$(use_with ogdi ogdi "${EPREFIX}"/usr) \ |
205 |
$(use_with opencl) \ |
225 |
$(use_with opencl) \ |