summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2013-07-21 17:45:28 +0000
committerJulian Ospald <hasufell@gentoo.org>2013-07-21 17:45:28 +0000
commit8081a8da2a806de640a26ce9ca625c2f0ddb0f5f (patch)
treeae86bd2fc253f594e2bd54acb7aa62051eb2881e /sci-geosciences
parentStable for sh, wrt bug #472558 (diff)
downloadgentoo-2-8081a8da2a806de640a26ce9ca625c2f0ddb0f5f.tar.gz
gentoo-2-8081a8da2a806de640a26ce9ca625c2f0ddb0f5f.tar.bz2
gentoo-2-8081a8da2a806de640a26ce9ca625c2f0ddb0f5f.zip
initial import
(Portage version: 2.2.0_alpha188/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'sci-geosciences')
-rw-r--r--sci-geosciences/osgearth/ChangeLog10
-rw-r--r--sci-geosciences/osgearth/Manifest5
-rw-r--r--sci-geosciences/osgearth/files/osgearth-2.4-FindMiniZip.cmake.patch121
-rw-r--r--sci-geosciences/osgearth/metadata.xml21
-rw-r--r--sci-geosciences/osgearth/osgearth-2.4.ebuild67
5 files changed, 224 insertions, 0 deletions
diff --git a/sci-geosciences/osgearth/ChangeLog b/sci-geosciences/osgearth/ChangeLog
new file mode 100644
index 000000000000..0c80d13ee343
--- /dev/null
+++ b/sci-geosciences/osgearth/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-geosciences/osgearth
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/osgearth/ChangeLog,v 1.1 2013/07/21 17:45:28 hasufell Exp $
+
+*osgearth-2.4 (21 Jul 2013)
+
+ 21 Jul 2013; Julian Ospald <hasufell@gentoo.org> +osgearth-2.4.ebuild,
+ +files/osgearth-2.4-FindMiniZip.cmake.patch, +metadata.xml:
+ initial import
+
diff --git a/sci-geosciences/osgearth/Manifest b/sci-geosciences/osgearth/Manifest
new file mode 100644
index 000000000000..68ee2170c849
--- /dev/null
+++ b/sci-geosciences/osgearth/Manifest
@@ -0,0 +1,5 @@
+AUX osgearth-2.4-FindMiniZip.cmake.patch 3409 SHA256 07253c5a39de8c892f72e192de593dd2d67e05fd469b12aca1198746e00acc08 SHA512 281b282814928e6ad737f15760f627f401d04151f4a1771451b3d0781af50e169349b336b3ed09668edc911a462a2ac444fff3164b318f5f42502214a35832c2 WHIRLPOOL fecab00ca94413dfb34bc74bd569dbdd93a45770e91b728088a48cad175d5bc71aab3c19885c55bc5e07d0cfead2f1d6cd935980003f97b5d368901799dd57e1
+DIST osgearth-2.4.tar.gz 49195211 SHA256 fc832fdd310d380f643f7be2a2ca7af5afa1da2bf557a30ddcc43ba4f2f16bdd SHA512 942370e5f690b66a648b1541889ca5c150a66c11e8099f014bc7e692fc205aa4e7b9feb6007ad49f996ff858ef2fcf071d891abb71766e554dee1e5fb4059c67 WHIRLPOOL f8411f1a28071b58c6449a5a22a236eb9fde3a9cc1efdbb08a4f5cb8d320cce31a458fc31a60395026e13cafea3771bcc4d526b7d993bc12f7dcb4facbd4257f
+EBUILD osgearth-2.4.ebuild 1212 SHA256 5263fe7b992d03b70027eb7a8f11202bfb83137853c0b2b20a7a3d7b20d0bba7 SHA512 ebe174123c9a9c381e6a5262a3e8445b2e1da00b8425372650e22e2449c5c61b08f9aa9c1d001964dfd60c84c93fb0a16a12ff05698f31e2fc2cfbf165544a1c WHIRLPOOL 03e7f416ca713773b580cee361939da10c96ccdc53647da550dea5f63fa19bf84d4208177a411a669fd5edbcff447331b1650588208503a020ff3b6a262b9c80
+MISC ChangeLog 307 SHA256 2aec4a547921954d8ca5270ed49faef0f5ca28b6b3dd8a5de4f74800f4f77a04 SHA512 b1e14e70b0573d9680da23c668b2fb2dc3a335daedefd3fbe9383f21157e1b5761b813a4ba6d1c8748197e4c1c6e3c26e943e1cedf3d1f64b1c60e7672f5d97d WHIRLPOOL 9e81f9fc14a8a19da93389013890f4f2f6097eb7b52b6204c879ef73630333a6f4a4568cc8acac6139c08505d886bef02251cee4ed0c38debc8733249f51980b
+MISC metadata.xml 813 SHA256 b35857ec7a68147f511afd56df2da0d136b806c1ca8ea451b6137b0b83858a13 SHA512 01d4aa615795b4a914445b5d7ccb063f8c27908846b9b1ee4033ad5ab919e5923eaaef6dadb889d8457a25739dc0c0b3a82c9fa10611968576a8c32694d24f71 WHIRLPOOL a601d3fe64163062500bde8c856efd9dee17ad1084028912fd7ecfed09d93c077e8aa9f8b6167104b0caf8a4218ba490f6b20389712a3a833d22df53d56b836a
diff --git a/sci-geosciences/osgearth/files/osgearth-2.4-FindMiniZip.cmake.patch b/sci-geosciences/osgearth/files/osgearth-2.4-FindMiniZip.cmake.patch
new file mode 100644
index 000000000000..326a9b8c4cba
--- /dev/null
+++ b/sci-geosciences/osgearth/files/osgearth-2.4-FindMiniZip.cmake.patch
@@ -0,0 +1,121 @@
+commit 422e0901ddd760b230dc378e3b9359bd6d36200a
+Author: hasufell <hasufell@gentoo.org>
+Date: Sun Jul 21 18:59:14 2013 +0200
+
+ BUILD: fix FindMiniZip.cmake module to use pkg-config
+ https://github.com/gwaldron/osgearth/pull/340
+
+diff --git a/CMakeModules/FindMiniZip.cmake b/CMakeModules/FindMiniZip.cmake
+index c80ebbf..c8cae16 100644
+--- a/CMakeModules/FindMiniZip.cmake
++++ b/CMakeModules/FindMiniZip.cmake
+@@ -5,50 +5,65 @@
+ # MINIZIP_INCLUDE_DIR, where to find the headers
+ #
+
+-FIND_PATH(MINIZIP_INCLUDE_DIR zip.h
+- ${CMAKE_SOURCE_DIR}/src/3rdparty/minizip
+- $ENV{MINIZIP_DIR}/include
+- $ENV{MINIZIP_DIR}
+- $ENV{OSGDIR}/include
+- $ENV{OSGDIR}
+- $ENV{OSG_ROOT}/include
+- ~/Library/Frameworks
+- /Library/Frameworks
+- /usr/local/include
+- /usr/include
+- /sw/include # Fink
+- /opt/local/include # DarwinPorts
+- /opt/csw/include # Blastwave
+- /opt/include
+- [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/include
+- /usr/freeware/include
+-)
++# prefer pkg-config
++IF(UNIX)
++ INCLUDE(FindPkgConfig)
++ IF(PKG_CONFIG_FOUND)
++ pkg_check_modules(MINIZIP QUIET minizip)
++ IF(MINIZIP_FOUND)
++ # pkgconfig does not define the singular names
++ SET(MINIZIP_LIBRARY ${MINIZIP_LIBRARIES})
++ SET(MINIZIP_INCLUDE_DIR ${MINIZIP_INCLUDE_DIRS})
++ ADD_DEFINITIONS(-DOSGEARTH_HAVE_MINIZIP)
++ ENDIF(MINIZIP_FOUND)
++ ENDIF(PKG_CONFIG_FOUND)
++ENDIF(UNIX)
+
+-FIND_LIBRARY(MINIZIP_LIBRARY
+- NAMES minizip
+- PATHS
+- ${CMAKE_SOURCE_DIR}/src/3rdparty/minizip
+- $ENV{MINIZIP_DIR}/lib
+- $ENV{MINIZIP_DIR}
+- $ENV{OSGDIR}/lib
+- $ENV{OSGDIR}
+- $ENV{OSG_ROOT}/lib
+- ~/Library/Frameworks
+- /Library/Frameworks
+- /usr/local/lib
+- /usr/lib
+- /sw/lib
+- /opt/local/lib
+- /opt/csw/lib
+- /opt/lib
+- [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib
+- /usr/freeware/lib64
+-)
+-
+-SET(MINIZIP_FOUND "NO")
+-IF(MINIZIP_LIBRARY AND MINIZIP_INCLUDE_DIR)
+- SET(MINIZIP_FOUND "YES")
+- ADD_DEFINITIONS(-DOSGEARTH_HAVE_MINIZIP)
+-ENDIF(MINIZIP_LIBRARY AND MINIZIP_INCLUDE_DIR)
++# fallback logic
++IF(NOT MINIZIP_FOUND)
++ FIND_PATH(MINIZIP_INCLUDE_DIR zip.h
++ ${CMAKE_SOURCE_DIR}/src/3rdparty/minizip
++ $ENV{MINIZIP_DIR}/include
++ $ENV{MINIZIP_DIR}
++ $ENV{OSGDIR}/include
++ $ENV{OSGDIR}
++ $ENV{OSG_ROOT}/include
++ ~/Library/Frameworks
++ /Library/Frameworks
++ /usr/local/include
++ /usr/include
++ /sw/include # Fink
++ /opt/local/include # DarwinPorts
++ /opt/csw/include # Blastwave
++ /opt/include
++ [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/include
++ /usr/freeware/include
++ )
+
++ FIND_LIBRARY(MINIZIP_LIBRARY
++ NAMES minizip
++ PATHS
++ ${CMAKE_SOURCE_DIR}/src/3rdparty/minizip
++ $ENV{MINIZIP_DIR}/lib
++ $ENV{MINIZIP_DIR}
++ $ENV{OSGDIR}/lib
++ $ENV{OSGDIR}
++ $ENV{OSG_ROOT}/lib
++ ~/Library/Frameworks
++ /Library/Frameworks
++ /usr/local/lib
++ /usr/lib
++ /sw/lib
++ /opt/local/lib
++ /opt/csw/lib
++ /opt/lib
++ [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib
++ /usr/freeware/lib64
++ )
+
++ SET(MINIZIP_FOUND "NO")
++ IF(MINIZIP_LIBRARY AND MINIZIP_INCLUDE_DIR)
++ SET(MINIZIP_FOUND "YES")
++ ADD_DEFINITIONS(-DOSGEARTH_HAVE_MINIZIP)
++ ENDIF(MINIZIP_LIBRARY AND MINIZIP_INCLUDE_DIR)
++ENDIF(NOT MINIZIP_FOUND)
diff --git a/sci-geosciences/osgearth/metadata.xml b/sci-geosciences/osgearth/metadata.xml
new file mode 100644
index 000000000000..f14b44cf6d3a
--- /dev/null
+++ b/sci-geosciences/osgearth/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>hasufell@gentoo.org</email>
+ <name>Julian Ospald</name>
+ </maintainer>
+ <longdescription lang="en">
+ osgEarth is a C++ terrain rendering toolkit. Just create a
+ simple XML file, point it at your imagery, elevation, and
+ vector data, load it into your favorite OpenSceneGraph
+ application, and go! osgEarth supports all kinds of data and
+ comes with lots of examples to help you get up and running
+ quickly and easily.
+ </longdescription>
+ <upstream>
+ <doc lang="en">http://docs.osgearth.org/en/latest</doc>
+ <bugs-to>https://github.com/gwaldron/osgearth/issues</bugs-to>
+ <remote-id type="github">gwaldron/osgearth</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/osgearth/osgearth-2.4.ebuild b/sci-geosciences/osgearth/osgearth-2.4.ebuild
new file mode 100644
index 000000000000..f4442b62f247
--- /dev/null
+++ b/sci-geosciences/osgearth/osgearth-2.4.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/osgearth/osgearth-2.4.ebuild,v 1.1 2013/07/21 17:45:28 hasufell Exp $
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="Dynamic map generation toolkit for OpenSceneGraph"
+HOMEPAGE="http://osgearth.org/"
+SRC_URI="https://github.com/gwaldron/osgearth/archive/${P}.tar.gz"
+
+LICENSE="LGPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc qt4"
+
+RDEPEND="
+ dev-db/sqlite:3
+ dev-games/openscenegraph[curl,qt4?]
+ dev-lang/v8:=
+ dev-libs/tinyxml
+ net-misc/curl
+ sci-libs/gdal
+ sci-libs/geos
+ sys-libs/zlib[minizip]
+ virtual/opengl
+ x11-libs/libX11
+ qt4? (
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtopengl:4
+ )"
+DEPEND="
+ virtual/pkgconfig
+ doc? ( dev-python/sphinx )"
+
+S=${WORKDIR}/${PN}-${P}
+
+PATCHES=( "${FILESDIR}"/${P}-FindMiniZip.cmake.patch )
+
+src_configure() {
+ local mycmakeargs=(
+ -DWITH_EXTERNAL_TINYXML=ON
+ $(cmake-utils_use qt4 OSGEARTH_USE_QT)
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ if use doc ; then
+ emake -C "${S}"/docs man html info
+ fi
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ if use doc ; then
+ dohtml -r "${S}"/docs/build/html/*
+ doman "${S}"/docs/build/man/*
+ doinfo "${S}"/docs/build/texinfo/*.info*
+ fi
+}