summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2009-10-02 21:31:04 +0000
committerJustin Lecher <jlec@gentoo.org>2009-10-02 21:31:04 +0000
commit9fd2534ba5df5b9a7ad2f3ec65b869611f06bc4e (patch)
tree0afa759ea2f130799027c5439dcf66678a9c4554 /media-gfx
parentgnome-extra/nautilus-dropbox: Now using find to remove all .la files (diff)
downloadsunrise-9fd2534ba5df5b9a7ad2f3ec65b869611f06bc4e.tar.gz
sunrise-9fd2534ba5df5b9a7ad2f3ec65b869611f06bc4e.tar.bz2
sunrise-9fd2534ba5df5b9a7ad2f3ec65b869611f06bc4e.zip
media-gfx/ngplant: Initial commit for bug 260096
svn path=/sunrise/; revision=9305
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/ngplant/ChangeLog14
-rw-r--r--media-gfx/ngplant/Manifest5
-rw-r--r--media-gfx/ngplant/files/0.9.7-gcc4.3.patch56
-rw-r--r--media-gfx/ngplant/metadata.xml5
-rw-r--r--media-gfx/ngplant/ngplant-0.9.7.ebuild72
5 files changed, 152 insertions, 0 deletions
diff --git a/media-gfx/ngplant/ChangeLog b/media-gfx/ngplant/ChangeLog
new file mode 100644
index 000000000..773b3805c
--- /dev/null
+++ b/media-gfx/ngplant/ChangeLog
@@ -0,0 +1,14 @@
+# ChangeLog for media-gfx/ngplant
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*ngplant-0.9.7 (02 Oct 2009)
+
+ 01 Oct 2009; Justin Lecher (jlec) <jlec@j-schmitz.net>
+ +files/0.9.7-SCONS.patch, +files/0.9.7-SCONS2.patch,
+ +files/0.9.7-SCONS3.patch, +ngplant-0.9.7.ebuild,
+ +files/0.9.7-gcc4.3.patch, +metadata.xml:
+ initial commit
+ bug 260096
+ I rewrote the ebuild
+
diff --git a/media-gfx/ngplant/Manifest b/media-gfx/ngplant/Manifest
new file mode 100644
index 000000000..48e3db0ec
--- /dev/null
+++ b/media-gfx/ngplant/Manifest
@@ -0,0 +1,5 @@
+AUX 0.9.7-gcc4.3.patch 1097 RMD160 de23982543d666344e4331887850802806c915d8 SHA1 862ae39dbd508c6c7353c53bb481ead3fc794383 SHA256 aa936ae22221d1ef3573b405bb8a4777a96f2c738e7ff6e5f6faf5ccd6b9f725
+DIST ngplant-0.9.7.tar.gz 540493 RMD160 9a67652826ce28f87b85c075096e026afb5f77fe SHA1 bc49bd5b4efba5072ce5d75e7b1bfc8011cefd5e SHA256 02f3791014d3a2fdaec94bbf036f2ffce244ba64e5f7539d6c624ae3b5a87568
+EBUILD ngplant-0.9.7.ebuild 1588 RMD160 3362ce7d7709142d16c4f23cd69153c75a1773f1 SHA1 52cc3b7fe14dd2a193fada18dc2d6c633900d333 SHA256 6cda9a8714916fdcba711f3c729efcd1b16487e2d15478dfb8dba4e60cee83bf
+MISC ChangeLog 410 RMD160 698d04fb29eaef4d07a2fc301e9c11e9b4356c08 SHA1 001f53013974a622b3705c2fb27e333cc8aded37 SHA256 f6bdbdb359187ea42ab0b63c60ffafc917fec3c39c0156427d09da4ca62f0837
+MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
diff --git a/media-gfx/ngplant/files/0.9.7-gcc4.3.patch b/media-gfx/ngplant/files/0.9.7-gcc4.3.patch
new file mode 100644
index 000000000..44c4df078
--- /dev/null
+++ b/media-gfx/ngplant/files/0.9.7-gcc4.3.patch
@@ -0,0 +1,56 @@
+--- ngput/p3dimage.cpp.org
++++ ngput/p3dimage.cpp
+@@ -30,6 +30,7 @@
+ ***************************************************************************/
+
+ #include <stdlib.h>
++#include <cstring>
+
+ #include <ngpcore/p3ddefs.h>
+ #include <ngpcore/p3dtypes.h>
+
+--- ngput/p3dospath.cpp.org
++++ ngput/p3dospath.cpp
+@@ -30,6 +30,9 @@
+ ***************************************************************************/
+
+ #include <stdlib.h>
++#include <cstring>
++#include <climits>
++#include <cstdio>
+
+ #include <string>
+
+--- ngpshot/ngpshot.cpp.org
++++ ngpshot/ngpshot.cpp
+@@ -20,6 +20,7 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <cstring>
+
+ #include <new>
+ #include <string>
+
+--- ngpshot/p3dshaders.cpp.org
++++ ngpshot/p3dshaders.cpp
+@@ -19,6 +19,8 @@
+ ***************************************************************************/
+
+ #include <vector>
++#include <cstdio>
++#include <cstdlib>
+
+ #include <ngput/p3dglext.h>
+
+--- ngpview/ngpview.cpp.org
++++ ngpview/ngpview.cpp
+@@ -20,6 +20,7 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <cstring>
+
+ #include <ngput/p3dglext.h>
+
+
diff --git a/media-gfx/ngplant/metadata.xml b/media-gfx/ngplant/metadata.xml
new file mode 100644
index 000000000..7e3286984
--- /dev/null
+++ b/media-gfx/ngplant/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>maintainer-wanted</herd>
+</pkgmetadata>
diff --git a/media-gfx/ngplant/ngplant-0.9.7.ebuild b/media-gfx/ngplant/ngplant-0.9.7.ebuild
new file mode 100644
index 000000000..84fa894f6
--- /dev/null
+++ b/media-gfx/ngplant/ngplant-0.9.7.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="plant modeling software package"
+HOMEPAGE="http://ngplant.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${PN}/${PV}/${P}.tar.gz"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+LICENSE="GPL-3 BSD"
+IUSE="doc examples"
+
+RDEPEND="
+ media-libs/glew
+ virtual/glut
+ x11-libs/wxGTK:2.8
+ dev-lang/lua"
+DEPEND="${RDEPEND}
+ dev-util/scons
+ dev-util/pkgconfig
+ dev-libs/libxslt"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-gcc4.3.patch
+ rm -rf extern
+
+ sed \
+ -e "s:CC_OPT_FLAGS=.*$:CC_OPT_FLAGS=\'${CFLAGS}\':g" \
+ -i SConstruct \
+ || die "failed to correct CFLAGS"
+
+ sed \
+ -e "s:LINKFLAGS='-s':LINKFLAGS=\'${LDFLAGS}\':g" \
+ -i ngpview/SConscript ${PN}/SConscript devtools/SConscript ngpshot/SConscript \
+ || die "failed to correct LDFLAGS"
+}
+
+src_compile() {
+ scons \
+ CC=$(tc-getCC) \
+ CXX=$(tc-getCXX)\
+ LINKFLAGS="${LDFLAGS}" \
+ GLEW_INC="/usr/include/" \
+ GLEW_LIBPATH="/usr/$(get_libdir)/" \
+ GLEW_LIBS="GLEW GL GLU glut" \
+ LUA_INC="/usr/include/" \
+ LUA_LIBPATH="/usr/$(get_libdir)/" \
+ LUA_LIBS="$(pkg-config lua --libs)" \
+ || die
+}
+
+src_install() {
+ dobin ${PN}/${PN} ngpview/ngpview devtools/ngpbench ngpshot/ngpshot scripts/ngp2obj.py || die
+ dolib.a ngpcore/libngpcore.a ngput/libngput.a || die
+ insinto /usr/share/${PN}/
+ doins -r plugins shaders || die
+
+ dodoc ReleaseNotes || die
+
+ if use examples; then
+ doins -r samples || die
+ fi
+
+ if use doc; then
+ dohtml -r docapi || die
+ fi
+}