diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2011-10-31 23:20:38 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2011-10-31 23:20:38 +0000 |
commit | 9f0b9027af28a2162f82c6cc7541ed5c868d833a (patch) | |
tree | 823e000760d5d4616758df4b9eb9654240f5173c /sci-astronomy/celestia/celestia-1.6.0.ebuild | |
parent | Version bump. (diff) | |
download | historical-9f0b9027af28a2162f82c6cc7541ed5c868d833a.tar.gz historical-9f0b9027af28a2162f82c6cc7541ed5c868d833a.tar.bz2 historical-9f0b9027af28a2162f82c6cc7541ed5c868d833a.zip |
old, uncompatible with stable png
Package-Manager: portage-2.2.0_alpha71_p73/cvs/Linux x86_64
Diffstat (limited to 'sci-astronomy/celestia/celestia-1.6.0.ebuild')
-rw-r--r-- | sci-astronomy/celestia/celestia-1.6.0.ebuild | 116 |
1 files changed, 0 insertions, 116 deletions
diff --git a/sci-astronomy/celestia/celestia-1.6.0.ebuild b/sci-astronomy/celestia/celestia-1.6.0.ebuild deleted file mode 100644 index ae20eb8269fb..000000000000 --- a/sci-astronomy/celestia/celestia-1.6.0.ebuild +++ /dev/null @@ -1,116 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/celestia/celestia-1.6.0.ebuild,v 1.21 2011/10/23 16:16:08 armin76 Exp $ - -EAPI=2 - -inherit eutils flag-o-matic gnome2 autotools - -DESCRIPTION="OpenGL 3D space simulator" -HOMEPAGE="http://www.shatters.net/celestia/" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ppc ppc64 x86" -IUSE="cairo gnome gtk nls pch theora threads" - -RDEPEND=" - virtual/opengl - virtual/jpeg - media-libs/libpng - >=dev-lang/lua-5.0 - gtk? ( !gnome? ( x11-libs/gtk+:2 >=x11-libs/gtkglext-1.0 ) ) - gnome? ( - x11-libs/gtk+:2 - >=x11-libs/gtkglext-1.0 - >=gnome-base/libgnomeui-2.0 - ) - !gtk? ( !gnome? ( media-libs/freeglut ) ) - cairo? ( x11-libs/cairo ) - theora? ( media-libs/libtheora )" - -DEPEND="${RDEPEND} - dev-util/pkgconfig" - -pkg_setup() { - # Check for one for the following use flags to be set. - if use gnome; then - einfo "USE=\"gnome\" detected." - USE_DESTDIR="1" - CELESTIA_GUI="gnome" - elif use gtk; then - einfo "USE=\"gtk\" detected." - CELESTIA_GUI="gtk" - else - ewarn "If you want to use the full gui, set USE=\"{gnome|gtk}\"" - ewarn "Defaulting to glut support (no GUI)." - CELESTIA_GUI="glut" - fi -} - -src_prepare() { - # make better desktop files - epatch "${FILESDIR}"/${PN}-1.5.0-desktop.patch - # add a ~/.celestia for extra directories - epatch "${FILESDIR}"/${P}-cfg.patch - # as-needed forces to reorganize some files - epatch "${FILESDIR}"/${PN}-1.4.1-as-needed.patch - # missing includes with gcc 4.4 - epatch "${FILESDIR}"/${PN}-1.5.1-gcc44.patch - # needed for proper detection of kde-3.5 in the presence - # of kde4 - epatch "${FILESDIR}"/${P}-kde-3.5.patch \ - "${FILESDIR}"/${P}-libpng14.patch \ - "${FILESDIR}"/${P}-gcc45.patch \ - "${FILESDIR}"/${P}-parallel_install.patch - # remove flags to let the user decide - for cf in -O2 -ffast-math \ - -fexpensive-optimizations \ - -fomit-frame-pointer; do - sed -i \ - -e "s/${cf}//g" \ - configure.in admin/* || die "sed failed" - done - # remove an unused gconf macro killing autoconf when no gnome - # (not needed without eautoreconf) - if ! use gnome; then - sed -i \ - -e '/AM_GCONF_SOURCE_2/d' \ - configure.in || die "sed failed" - fi - eautoreconf - filter-flags "-funroll-loops -frerun-loop-opt" - - ### This version of Celestia has a bug in the font rendering and - ### requires -fsigned-char. We should be able to force this flag - ### on all architectures. See bug #316573. - append-flags "-fsigned-char" -} - -src_configure() { - # force lua in 1.6.0. seems to be inevitable - econf \ - --disable-rpath \ - --with-lua \ - --with-${CELESTIA_GUI} \ - $(use_enable cairo) \ - $(use_enable threads threading) \ - $(use_enable nls) \ - $(use_enable pch) \ - $(use_enable theora) -} - -src_install() { - if [[ ${CELESTIA_GUI} == gnome ]]; then - gnome2_src_install - else - emake DESTDIR="${D}" install || die "emake install failed" - for size in 16 22 32 48 ; do - insinto /usr/share/icons/hicolor/${size}x${size}/apps - newins "${S}"/src/celestia/kde/data/hi${size}-app-${PN}.png ${PN}.png - done - fi - [[ ${CELESTIA_GUI} == glut ]] && domenu celestia.desktop - dodoc AUTHORS README TRANSLATORS *.txt || die -} |