/[gentoo-x86]/sci-astronomy/stellarium/stellarium-0.11.4a.ebuild
Gentoo

Contents of /sci-astronomy/stellarium/stellarium-0.11.4a.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sun Apr 28 13:48:22 2013 UTC (17 months, 4 weeks ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.1.11.62/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-astronomy/stellarium/stellarium-0.11.4a.ebuild,v 1.7 2013/03/02 23:15:03 hwoarang Exp $
4
5 EAPI=4
6 CMAKE_MIN_VERSION="2.4.7"
7
8 inherit cmake-utils eutils flag-o-matic
9
10 DESCRIPTION="Stellarium renders 3D photo-realistic skies in real time"
11 HOMEPAGE="http://www.stellarium.org/"
12 SRC_URI="mirror://sourceforge/stellarium/${P}.tar.gz
13 stars? (
14 mirror://sourceforge/stellarium/stars_4_1v0_0.cat
15 mirror://sourceforge/stellarium/stars_5_2v0_0.cat
16 mirror://sourceforge/stellarium/stars_6_2v0_0.cat
17 mirror://sourceforge/stellarium/stars_7_2v0_0.cat
18 mirror://sourceforge/stellarium/stars_8_2v0_0.cat
19 )"
20
21 LICENSE="GPL-2"
22 SLOT="0"
23 KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux"
24 IUSE="debug nls stars"
25 RESTRICT="test"
26
27 RDEPEND="virtual/opengl
28 virtual/glu
29 media-libs/freetype:2
30 >=dev-qt/qtcore-4.8.0:4
31 dev-qt/qtgui:4
32 dev-qt/qtopengl:4
33 dev-qt/qtscript:4
34 dev-qt/qtsvg:4
35 dev-qt/qttest:4
36 media-fonts/dejavu
37 nls? ( virtual/libintl )"
38 DEPEND="${RDEPEND}
39 nls? ( sys-devel/gettext )
40 x11-libs/libXt"
41 DOCS=( AUTHORS ChangeLog README )
42
43 LANGS=( af ak am ar as ast az be bg bn br bs ca cs cy da de el en en_CA
44 en_GB en_US eo es et eu fa fi fil fr ga gd gl gu he hi hr hu hy ia id
45 is it ja ka kk kn ko ky la lb lo lt lv mk ml mn mr ms mt nan nb nl nn pa
46 pl pt pt_BR ro ru se si sk sl sq sr sv sw ta te tg th tl tr tt uk uz vi
47 zh_CN zh_HK zh_TW zu )
48 for X in "${LANGS[@]}" ; do
49 IUSE="${IUSE} linguas_${X}"
50 done
51
52 S=${WORKDIR}/${PN}-${PV/a/}
53
54 src_prepare() {
55 sed -e '/aa ab ae/d' -e "/GETTEXT_CREATE_TRANSLATIONS/a \ ${LINGUAS}" \
56 -i po/stellarium{,-skycultures}/CMakeLists.txt || die #403647
57 epatch "${FILESDIR}"/${P}-desktop.patch
58 use debug || append-cppflags -DQT_NO_DEBUG #415769
59 }
60
61 src_configure() {
62 local mycmakeargs=( $(cmake-utils_use_enable nls NLS) )
63 CMAKE_IN_SOURCE_BUILD=1 cmake-utils_src_configure
64 }
65
66 src_install() {
67 default
68
69 # use the more up-to-date system fonts
70 rm "${ED}"/usr/share/stellarium/data/DejaVuSans{Mono,}.ttf || die
71 dosym ../../fonts/dejavu/DejaVuSans.ttf /usr/share/stellarium/data/DejaVuSans.ttf
72 dosym ../../fonts/dejavu/DejaVuSansMono.ttf /usr/share/stellarium/data/DejaVuSansMono.ttf
73
74 if use stars ; then
75 insinto /usr/share/${PN}/stars/default
76 doins "${DISTDIR}"/stars_[45678]_[12]v0_0*.cat
77 fi
78 newicon doc/images/stellarium-logo.png ${PN}.png
79 }

  ViewVC Help
Powered by ViewVC 1.1.20