/[gentoo-x86]/app-sci/celestia/celestia-1.3.2_pre20040731.ebuild
Gentoo

Contents of /app-sci/celestia/celestia-1.3.2_pre20040731.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri Oct 1 01:13:48 2004 UTC (15 years ago) by morfic
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
deleting old ebuilds

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-sci/celestia/celestia-1.3.2_pre20040731.ebuild,v 1.5 2004/08/08 19:34:00 morfic Exp $
4
5 inherit eutils flag-o-matic kde-functions
6
7 IUSE=""
8
9 SNAPSHOT="${PV/*_pre}"
10 S="${WORKDIR}/${P/_*}"
11 DESCRIPTION="Celestia is a free real-time space simulation that lets you experience our universe in three dimensions"
12 #SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
13 SRC_URI="http://celestia.teyssier.org/download/daily/${PN}-cvs.${SNAPSHOT}.tgz"
14 HOMEPAGE="http://www.shatters.net/celestia"
15
16 SLOT="0"
17 LICENSE="GPL-2"
18 KEYWORDS="-* ~x86"
19
20 # gnome and kde interfaces are exlcusive
21 DEPEND=">=media-libs/glut-3.7-r2
22 virtual/glu
23 media-libs/jpeg
24 media-libs/libpng
25 >=kde-base/kdelibs-3.0.5"
26
27 pkg_setup() {
28 # Set up X11 implementation
29 X11_IMPLEM_P="$(portageq best_version "${ROOT}" virtual/x11)"
30 X11_IMPLEM="${X11_IMPLEM_P%-[0-9]*}"
31 X11_IMPLEM="${X11_IMPLEM##*\/}"
32
33 einfo "Please note:"
34 einfo "if you experience problems building celestia with nvidia drivers,"
35 einfo "you can try:"
36 einfo "opengl-update ${X11_IMPLEM}"
37 einfo "emerge celestia"
38 einfo "opengl-update nvidia"
39 einfo "------------"
40 einfo "NOTE: kde GUIs only one supported at this time "
41 }
42
43 src_unpack() {
44 unpack ${A}
45 cd ${S}
46 # the patch didn't apply correcty. Had no time to check if the patch
47 # is no longer necessary
48 # epatch ${FILESDIR}/${PN}-1.3.1-gtkmain.patch
49 # adding gcc-3.4 support as posted in
50 # (http://bugs.gentoo.org/show_bug.cgi?id=53479#c2)
51 epatch ${FILESDIR}/resmanager.h.patch || die
52
53 # alright this snapshot seems to have some trouble with installing a
54 # file properly. It wants to install celestia.schemas in / which leads
55 # to an ACCESS VIOLATION. Unfortunately this file even gets installed
56 # when no gtk/gnome is enabled
57 # The following lines prevents this but thinkabout as a dirty hack
58 cd ${S}/src/celestia/gtk || die
59 sed -i -e 's:GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@:GCONF_SCHEMA_FILE_DIR = $(pkgdatadir)/schemas:g' Makefile.in || die
60 sed -i -e 's:GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@:GCONF_SCHEMA_FILE_DIR = $(pkgdatadir)/schemas:g' data/Makefile.in || die
61 cd ${S} || die
62
63 }
64
65 src_compile() {
66 local myconf
67
68 filter-flags "-funroll-loops -frerun-loop-opt"
69 addwrite ${QTDIR}/etc/settings
70 # currently celestia's "gtk support" requires gnome
71 if use kde ; then
72 myconf="$myconf --with-kde --without-gtk"
73 # elif use gnome ; then
74 # myconf="--without-kde --with-gtk"
75 else
76 myconf="--without-kde --without-gtk"
77 # fix for badly written configure script
78 set-kdedir 3
79 set-qtdir 3
80 export kde_widgetdir="$KDEDIR/lib/kde3/plugins/designer"
81 fi
82
83 ./configure --prefix=/usr ${myconf} || die
84
85 emake all || die
86 }
87
88 src_install() {
89 make install prefix=${D}/usr
90
91 # removed NEWS as it is not included in this snapshot
92 dodoc AUTHORS COPYING README TODO controls.txt
93 dohtml manual/*.html manual/*.css
94 }

  ViewVC Help
Powered by ViewVC 1.1.20