diff options
author | Daniel Goller <morfic@gentoo.org> | 2004-09-01 00:09:47 +0000 |
---|---|---|
committer | Daniel Goller <morfic@gentoo.org> | 2004-09-01 00:09:47 +0000 |
commit | 37f806e4158645f5525b84b68f480356555fa144 (patch) | |
tree | 6b9f0f42923a9c062284ea12827be6611a592df3 /app-sci/celestia | |
parent | ver bump (Manifest recommit) (diff) | |
download | gentoo-2-37f806e4158645f5525b84b68f480356555fa144.tar.gz gentoo-2-37f806e4158645f5525b84b68f480356555fa144.tar.bz2 gentoo-2-37f806e4158645f5525b84b68f480356555fa144.zip |
version bump, updated depends
Diffstat (limited to 'app-sci/celestia')
-rw-r--r-- | app-sci/celestia/ChangeLog | 8 | ||||
-rw-r--r-- | app-sci/celestia/Manifest | 2 | ||||
-rw-r--r-- | app-sci/celestia/celestia-1.3.2.ebuild | 106 | ||||
-rw-r--r-- | app-sci/celestia/files/digest-celestia-1.3.2 | 1 |
4 files changed, 116 insertions, 1 deletions
diff --git a/app-sci/celestia/ChangeLog b/app-sci/celestia/ChangeLog index 76cef745a283..6e65498ccd6f 100644 --- a/app-sci/celestia/ChangeLog +++ b/app-sci/celestia/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-sci/celestia # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-sci/celestia/ChangeLog,v 1.16 2004/08/19 04:24:43 morfic Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-sci/celestia/ChangeLog,v 1.17 2004/09/01 00:09:47 morfic Exp $ + +*celestia-1.3.2 (31 Aug 2004) + + 31 Aug 2004; Daniel Goller <morfic@gentoo.org> +celestia-1.3.2.ebuild: + new version, updated depends + thanks Giacomo Perale, Bret Towe 18 Aug 2004; Daniel Goller <morfic@gentoo.org> -celestia-1.2.2.ebuild, -celestia-1.2.4.ebuild, -celestia-1.2.5.ebuild, diff --git a/app-sci/celestia/Manifest b/app-sci/celestia/Manifest index 5deeb0ccfbb3..a7c5195e5ae1 100644 --- a/app-sci/celestia/Manifest +++ b/app-sci/celestia/Manifest @@ -5,10 +5,12 @@ MD5 881ad207128ff8ef475049306d2249a8 celestia-1.3.1.ebuild 2308 MD5 0f4d71adea6a063dd7b7924cb7b9e095 celestia-1.3.0.ebuild 2099 MD5 fd99548d1ee9dc4518b8dd410469ca65 ChangeLog 4067 MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156 +MD5 96789960f7194b5437dd4ac739cf1211 celestia-1.3.2.ebuild 2902 MD5 48aea4af15487f0c322ff982360d7ee8 files/celestia-1.3.1-gtkmain.patch 2501 MD5 f96a6eb019a59bf1a643b96c43657af8 files/resmanager.h.patch 893 MD5 95f9f0d84c71195fe1f00ba37ea79c0e files/digest-celestia-1.3.0 68 MD5 03b2de07240ae616efd0d19d150b65bb files/digest-celestia-1.3.1 68 +MD5 d4ff8e51fb3a546279e7442cf24e07d7 files/digest-celestia-1.3.2 68 MD5 95f9f0d84c71195fe1f00ba37ea79c0e files/digest-celestia-1.3.0-r1 68 MD5 dc73960da16b895c574e12aa0066553e files/digest-celestia-1.3.2_pre20040731 72 MD5 dc73960da16b895c574e12aa0066553e files/digest-celestia-1.3.2_pre20040731-r1 72 diff --git a/app-sci/celestia/celestia-1.3.2.ebuild b/app-sci/celestia/celestia-1.3.2.ebuild new file mode 100644 index 000000000000..f3c3ec68a802 --- /dev/null +++ b/app-sci/celestia/celestia-1.3.2.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-sci/celestia/celestia-1.3.2.ebuild,v 1.1 2004/09/01 00:09:47 morfic Exp $ + +inherit eutils flag-o-matic gnome2 kde-functions + +DESCRIPTION="Celestia is a free real-time space simulation that lets you experience our universe in three dimensions" +HOMEPAGE="http://www.shatters.net/celestia/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="gnome gtk kde" + +DEPEND=">=media-libs/glut-3.7.1 + virtual/glu + media-libs/jpeg + media-libs/libpng + dev-lang/lua + gtk? ( >=x11-libs/gtk+-2.0 + >=x11-libs/gtkglext-1.0 ) + gnome? ( >=gnome-base/libgnomeui-2.0 ) + kde? ( >=kde-base/kdelibs-3.0.5 )" + +pkg_setup() { + # Check for one for the following use flags to be set. + if use kde; then + einfo "USE=\"kde\" detected. This will override any gnome/gtk USE preferences." + export MYMAKE="kde" + elif use gnome; then + einfo "USE=\"gnome\" detected." + export MYMAKE="gnome" + elif use gtk; then + einfo "USE=\"gtk\" detected." + export MYMAKE="gtk" + else + eerror "You must set at least one of USE=\"{kde/gnome/gtk}\"" + ewarn "Please set one of the USE flags end re-emerge" + ewarn "ie. 'env USE=\"kde\" emerge celestia" + die "No valid USE flags set" + fi + + # Get X11 implementation + X11_IMPLEM_P="$(portageq best_version "${ROOT}" virtual/x11)" + X11_IMPLEM="${X11_IMPLEM_P%-[0-9]*}" + X11_IMPLEM="${X11_IMPLEM##*\/}" + + einfo "Please note:" + einfo "if you experience problems building celestia with nvidia drivers," + einfo "you can try:" + einfo "opengl-update ${X11_IMPLEM}" + einfo "emerge celestia" + einfo "opengl-update nvidia" +} + +src_unpack() { + unpack ${A} + cd ${S} + + # adding gcc-3.4 support as posted in + # (http://bugs.gentoo.org/show_bug.cgi?id=53479#c2) + epatch ${FILESDIR}/resmanager.h.patch \ + || die "patching gcc 3.4 support failed" + + if [ "${MYMAKE}" != "gnome" ]; then + # alright this snapshot seems to have some trouble with installing a + # file properly. It wants to install celestia.schemas in / which leads + # to an ACCESS VIOLATION. Unfortunately this file even gets installed + # when no gtk/gnome is enabled + # The following lines prevents this but thinkabout as a dirty hack + cd ${S}/src/celestia/gtk || die + sed -i -e 's:@GCONF_SCHEMA_FILE_DIR@:$(pkgdatadir)/schemas:g' \ + Makefile.in || die + sed -i -e 's:@GCONF_SCHEMA_FILE_DIR@:$(pkgdatadir)/schemas:g' \ + data/Makefile.in || die + fi +} + +src_compile() { + filter-flags "-funroll-loops -frerun-loop-opt" + addwrite ${QTDIR}/etc/settings + + if [ "${MYMAKE}" = "kde" ]; then + set-kdedir 3 + set-qtdir 3 + export kde_widgetdir="$KDEDIR/lib/kde3/plugins/designer" + fi + + ./configure --prefix=/usr \ + --with-lua \ + --with-${MYMAKE} || die + + emake all || die +} + +src_install() { + if [ "${MYMAKE}" = "gnome" ]; then + gnome2_src_install + else + make install prefix=${D}/usr + fi + + dodoc AUTHORS COPYING README TODO controls.txt + dohtml manual/*.html manual/*.css +} diff --git a/app-sci/celestia/files/digest-celestia-1.3.2 b/app-sci/celestia/files/digest-celestia-1.3.2 new file mode 100644 index 000000000000..bb7d18b18d57 --- /dev/null +++ b/app-sci/celestia/files/digest-celestia-1.3.2 @@ -0,0 +1 @@ +MD5 0aaf86592a8989a0576e34c1f4cb3c2a celestia-1.3.2.tar.gz 18091458 |