Permalink
Browse files

ossimplanet 1.8.10-3 ebuild and required eclass

  • Loading branch information...
1 parent 7a04503 commit b3747b3a8988ff1f4eaee2d9bb648793723ca4bc Dirk Tilger committed Jun 6, 2011
View
@@ -0,0 +1,25 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+#
+# Original Author: Dirk Tilger <dirk.github@miriup.de>
+# Purpose: Have all common functionalities of ossim building in one place.
+#
+
+inherit versionator
+
+DESCRIPTION="High performance software system for remote sensing, image processing, GIS and photogrammetry."
+HOMEPAGE="http://www.ossim.org"
+SRC_URI="http://download.osgeo.org/ossim/src/ossim-${PV}.tgz"
+LICENSE="LGPL-2.1"
+
+MY_PV=$(get_version_component_range 1-3)
+PATCHLEVEL=$(get_version_component_range 4)
+if [[ "x${PATCHLEVEL}" == xp* ]]
+then
+ MY_PV="${MY_PV}-${PATCHLEVEL#p}"
+fi
+
+ESVN_REPO_URI="https://svn.osgeo.org/ossim/tags/ossim-${MY_PV}/${MY_PN:-${PN}}"
+
@@ -6,7 +6,6 @@ EAPI=4
DESCRIPTION="High performance software system for remote sensing, image processing, GIS and photogrammetry."
HOMEPAGE="http://www.ossim.org"
-SRC_URI="http://download.osgeo.org/ossim/src/${P}.tgz"
LICENSE="LGPL-2"
SLOT="0"
@@ -1,3 +1,4 @@
AUX ossimplanet-1.8.4-optional-ephemeris.patch 9137 RMD160 5b3594b21a065288ac5b432cd3ffc75e7a0d3586 SHA1 8e73c72751a0478e3cefef23f0f02b7b228d9496 SHA256 07d713e8e028b12141ab065a3dff437ccf1da04b28e5136df8171b7ac0e62b0f
DIST ossim-1.8.4.tgz 61714460 RMD160 432cf03a562a341311038b8ad0e6d4578d30b67b SHA1 e07e7adc37a989e7c6201c03adcb98094e493bf5 SHA256 9fa1cb77fff824740efbed1eeaf7ca748910f0950023be45d3903d750584937a
-EBUILD ossimplanet-1.8.4.ebuild 1060 RMD160 21d61f32ffd34f09f8a5ea9a8abbbf2393071887 SHA1 a2a6a807dab6c15855ee92b50d4c51ad5db20a92 SHA256 e717723882c4131349ff6a819174bb1a24fa822e06942957f269005407c23dea
+EBUILD ossimplanet-1.8.10_p3.ebuild 1341 RMD160 d46aa993edcfd7f1b4c7b8c3bffb26dd7bc25e12 SHA1 9a2c46a65daa9f0c31385a9769d44059bbc527a2 SHA256 8bff61bdb7288d9fb11103e9115ea65e488449b3d132e192940af38faac6bff6
+EBUILD ossimplanet-1.8.4.ebuild 918 RMD160 6522d07c424759160b91125fd071d2212a79ddfe SHA1 e66520d6a994cd27d564fe2c37528e5bc9643fb6 SHA256 959ac77d33237f9b391ae0ad21cbae7c212facd79b7f188d972971258c2f617c
@@ -0,0 +1,66 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+MY_PN=ossimPlanet
+
+inherit ossim subversion eutils flag-o-matic cmake-utils
+
+unset SRC_URI
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="predator ephemeris"
+
+DEPEND="=sci-geosciences/ossim_package_support-${PV}
+=sci-geosciences/libwms-${PV}
+=sci-geosciences/ossim-${PV}
+dev-games/openscenegraph
+ephemeris? ( dev-games/osgephemeris )
+virtual/opengl
+"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ subversion_src_unpack $*
+}
+
+#src_prepare() {
+# epatch "${FILESDIR}"/${PN}-1.8.4-optional-ephemeris.patch
+#}
+
+src_configure() {
+ mycmakeargs=(
+ )
+ use predator && mycmakeargs+=(-DBUILD_OSSIMPREDATOR:BOOL=ON) ||
+ mycmakeargs+=(-DBUILD_OSSIMPREDATOR:BOOL=OFF)
+ use ephemeris && mycmakeargs+=(-DOSSIMPLANET_ENABLE_EPHEMERIS:BOOL=ON) ||
+ mycmakeargs+=(-DOSSIMPLANET_ENABLE_EPHEMERIS:BOOL=OFF)
+ cmake-utils_src_configure
+}
+
+#src_compile() {
+# myconf=""
+# append-flags -fPIC
+# if use predator
+# then
+# append-flags -DOSSIMPLANET_ENABLE_PREDATOR
+# else
+# myconf="${myconf} ENABLE_PREDATOR=no"
+# fi
+# if use ephemeris
+# then
+# append-flags -DOSSIMPLANET_ENABLE_EPHEMERIS
+# else
+# myconf="${myconf} ENABLE_EPHEMERIS=no"
+# fi
+#
+# cmake-utils_src_compile $*
+#}
+
+src_install() {
+ cd ${S}_build
+ emake DESTDIR="${ED}" install
+}
@@ -7,9 +7,6 @@ MY_PN=ossimPlanet
inherit ossim eutils flag-o-matic
-DESCRIPTION="High performance software system for remote sensing, image processing, GIS and photogrammetry."
-HOMEPAGE="http://www.ossim.org"
-
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64"

0 comments on commit b3747b3

Please sign in to comment.