1 |
bicatali 08/02/27 18:54:55 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: celestia-1.5.0.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.39 sci-astronomy/celestia/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-astronomy/celestia/ChangeLog?rev=1.39&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-astronomy/celestia/ChangeLog?rev=1.39&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-astronomy/celestia/ChangeLog?r1=1.38&r2=1.39 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sci-astronomy/celestia/ChangeLog,v |
19 |
retrieving revision 1.38 |
20 |
retrieving revision 1.39 |
21 |
diff -u -r1.38 -r1.39 |
22 |
--- ChangeLog 26 Feb 2008 17:33:31 -0000 1.38 |
23 |
+++ ChangeLog 27 Feb 2008 18:54:54 -0000 1.39 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for sci-astronomy/celestia |
26 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/celestia/ChangeLog,v 1.38 2008/02/26 17:33:31 bicatali Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/celestia/ChangeLog,v 1.39 2008/02/27 18:54:54 bicatali Exp $ |
29 |
+ |
30 |
+*celestia-1.5.0 (27 Feb 2008) |
31 |
+ |
32 |
+ 27 Feb 2008; Sébastien Fabbro <bicatali@g.o> |
33 |
+ +files/celestia-1.5.0-desktop.patch, +celestia-1.5.0.ebuild: |
34 |
+ Version bump |
35 |
|
36 |
26 Feb 2008; Sébastien Fabbro <bicatali@g.o> |
37 |
files/celestia-1.4.1-kde-datadir.patch, celestia-1.4.1-r2.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 sci-astronomy/celestia/celestia-1.5.0.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-astronomy/celestia/celestia-1.5.0.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-astronomy/celestia/celestia-1.5.0.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: celestia-1.5.0.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2008 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/celestia/celestia-1.5.0.ebuild,v 1.1 2008/02/27 18:54:54 bicatali Exp $ |
51 |
|
52 |
inherit eutils flag-o-matic gnome2 kde-functions autotools |
53 |
|
54 |
DESCRIPTION="OpenGL 3D space simulator" |
55 |
HOMEPAGE="http://www.shatters.net/celestia/" |
56 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
57 |
|
58 |
LICENSE="GPL-2" |
59 |
SLOT="0" |
60 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
61 |
IUSE="arts cairo gnome gtk kde lua nls pch theora threads" |
62 |
|
63 |
RDEPEND="virtual/glu |
64 |
media-libs/jpeg |
65 |
media-libs/libpng |
66 |
gtk? ( !gnome? ( !kde? ( |
67 |
>=x11-libs/gtk+-2.6 |
68 |
>=x11-libs/gtkglext-1.0 |
69 |
) ) ) |
70 |
gnome? ( !kde? ( |
71 |
>=x11-libs/gtk+-2.6 |
72 |
>=x11-libs/gtkglext-1.0 |
73 |
>=gnome-base/libgnomeui-2.0 |
74 |
) ) |
75 |
kde? ( !gnome? ( >=kde-base/kdelibs-3.0.5 ) ) |
76 |
!gtk? ( !gnome? ( !kde? ( virtual/glut ) ) ) |
77 |
arts? ( kde-base/arts ) |
78 |
lua? ( >=dev-lang/lua-5.0 ) |
79 |
cairo? ( x11-libs/cairo ) |
80 |
theora? ( media-libs/libtheora )" |
81 |
|
82 |
DEPEND="${RDEPEND} |
83 |
dev-util/pkgconfig" |
84 |
|
85 |
pkg_setup() { |
86 |
# Check for one for the following use flags to be set. |
87 |
|
88 |
if ! use gnome && use kde; then |
89 |
einfo "USE=\"kde\" detected." |
90 |
CELESTIA_GUI="kde" |
91 |
elif ! use kde && use gnome; then |
92 |
einfo "USE=\"gnome\" detected." |
93 |
USE_DESTDIR="1" |
94 |
CELESTIA_GUI="gnome" |
95 |
elif ! use kde && ! use gnome && use gtk; then |
96 |
einfo "USE=\"gtk\" detected." |
97 |
CELESTIA_GUI="gtk" |
98 |
elif use kde && use gnome; then |
99 |
einfo "Both gnome and kde support requested. Defaulting to kde" |
100 |
CELESTIA_GUI="kde" |
101 |
else |
102 |
ewarn "If you want to use the full gui, set USE=\"{kde/gnome/gtk}\"" |
103 |
ewarn "Defaulting to glut support (no GUI)." |
104 |
CELESTIA_GUI="glut" |
105 |
fi |
106 |
} |
107 |
|
108 |
src_unpack() { |
109 |
|
110 |
unpack ${A} |
111 |
cd "${S}" |
112 |
# make better desktop files |
113 |
epatch "${FILESDIR}"/${P}-desktop.patch |
114 |
|
115 |
# add a ~/.celestia for extra directories |
116 |
epatch "${FILESDIR}"/${PN}-1.4.1-cfg.patch |
117 |
|
118 |
# fix for as-needed (bug #130091) |
119 |
epatch "${FILESDIR}"/${PN}-1.4.1-as-needed.patch |
120 |
|
121 |
# remove flags to let the user decide |
122 |
for cf in -O2 -ffast-math \ |
123 |
-fexpensive-optimizations \ |
124 |
-fomit-frame-pointer; do |
125 |
sed -i \ |
126 |
-e "s/${cf}//g" \ |
127 |
configure.in || die "sed failed" |
128 |
done |
129 |
|
130 |
# remove an unused gconf macro killing autoconf when no gnome |
131 |
# (not needed without eautoreconf) |
132 |
if ! use gnome; then |
133 |
sed -i \ |
134 |
-e '/AM_GCONF_SOURCE_2/d' \ |
135 |
configure.in || die "sed failed" |
136 |
fi |
137 |
|
138 |
eautoreconf |
139 |
} |
140 |
|
141 |
src_compile() { |
142 |
|
143 |
if [[ ${CELESTIA_GUI} == kde ]]; then |
144 |
set-kdedir 3 |
145 |
set-qtdir 3 |
146 |
export kde_widgetdir="${KDEDIR}/lib/kde3/plugins/designer" |
147 |
fi |
148 |
|
149 |
filter-flags "-funroll-loops -frerun-loop-opt" |
150 |
|
151 |
econf \ |
152 |
--with-${CELESTIA_GUI} \ |
153 |
$(use_with arts) \ |
154 |
$(use_with lua) \ |
155 |
$(use_enable cairo) \ |
156 |
$(use_enable threads threading) \ |
157 |
$(use_enable nls) \ |
158 |
$(use_enable pch) \ |
159 |
$(use_enable theora) \ |
160 |
|| die "econf failed" |
161 |
|
162 |
emake || die "emake failed" |
163 |
} |
164 |
|
165 |
src_install() { |
166 |
if [[ ${CELESTIA_GUI} == gnome ]]; then |
167 |
gnome2_src_install |
168 |
else |
169 |
emake DESTDIR="${D}" install || die "emake install failed" |
170 |
for size in 16 22 32 48 ; do |
171 |
insinto /usr/share/icons/hicolor/${size}x${size}/apps |
172 |
newins "${S}"/src/celestia/kde/data/hi${size}-app-${PN}.png ${PN}.png |
173 |
done |
174 |
fi |
175 |
[[ ${CELESTIA_GUI} == glut ]] && domenu celestia.desktop |
176 |
dodoc AUTHORS README TODO TRANSLATORS *.txt || die |
177 |
} |
178 |
|
179 |
|
180 |
|
181 |
-- |
182 |
gentoo-commits@l.g.o mailing list |