Lines 212-217
src_configure() {
Link Here
|
212 |
# Bindings |
212 |
# Bindings |
213 |
-DBUILD_PYTHON_BINDINGS=$(usex python) |
213 |
-DBUILD_PYTHON_BINDINGS=$(usex python) |
214 |
-DBUILD_JAVA_BINDINGS=$(usex java) |
214 |
-DBUILD_JAVA_BINDINGS=$(usex java) |
|
|
215 |
$(usex java -DJAVA_AWT_LIBRARY=/etc/java-config-2/current-system-vm/lib '') |
216 |
$(usex java -DJAVA_JVM_LIBRARY=/etc/java-config-2/current-system-vm/lib '') |
217 |
$(usex java -DJAVA_INCLUDE_PATH=/etc/java-config-2/current-system-vm/include '') |
215 |
# bug #845369 |
218 |
# bug #845369 |
216 |
-DBUILD_CSHARP_BINDINGS=OFF |
219 |
-DBUILD_CSHARP_BINDINGS=OFF |
217 |
|
220 |
|
Lines 260-269
src_test() {
Link Here
|
260 |
src_install() { |
263 |
src_install() { |
261 |
cmake_src_install |
264 |
cmake_src_install |
262 |
use python && python_optimize |
265 |
use python && python_optimize |
|
|
266 |
|
267 |
if use java; then |
268 |
# Move the native library into the proper place for Gentoo. The |
269 |
# library in ${D} has already had its RPATH fixed, so we use it |
270 |
# rather than ${BUILD_DIR}/swig/java/libgdalalljni.so. |
271 |
java-pkg_doso "${D}/usr/share/java/libgdalalljni.so" |
272 |
rm "${D}/usr/share/java/libgdalalljni.so" || die |
273 |
fi |
274 |
|
263 |
# TODO: install docs? |
275 |
# TODO: install docs? |
264 |
} |
276 |
} |
265 |
|
277 |
|
266 |
pkg_postinst() { |
278 |
pkg_postinst() { |
267 |
elog "Check available image and data formats after building with" |
279 |
elog "Check available image and data formats after building with" |
268 |
elog "gdalinfo and ogrinfo (using the --formats switch)." |
280 |
elog "gdalinfo and ogrinfo (using the --formats switch)." |
|
|
281 |
|
282 |
if use java; then |
283 |
elog |
284 |
elog "To use the Java bindings, you need to pass the following to java:" |
285 |
elog " -Djava.library.path=$(java-config -i gdal)" |
286 |
fi |
269 |
} |
287 |
} |
270 |
- |
|
|