|
Line
Link Here
|
| 0 |
-- stellarium-0.10.2.ebuild |
0 |
++ stellarium-0.10.2.ebuild |
|
Lines 7-18
Link Here
|
| 7 |
|
7 |
|
| 8 |
DESCRIPTION="Stellarium renders 3D photo-realistic skies in real time." |
8 |
DESCRIPTION="Stellarium renders 3D photo-realistic skies in real time." |
| 9 |
HOMEPAGE="http://www.stellarium.org/" |
9 |
HOMEPAGE="http://www.stellarium.org/" |
| 10 |
SRC_URI="mirror://sourceforge/stellarium/${P}.tar.gz" |
10 |
SRC_URI="mirror://sourceforge/stellarium/${P}.tar.gz |
|
|
11 |
stars? ( |
| 12 |
mirror://sourceforge/stellarium/stars_4_1v0_0.cat |
| 13 |
mirror://sourceforge/stellarium/stars_5_2v0_0.cat |
| 14 |
mirror://sourceforge/stellarium/stars_6_2v0_0.cat |
| 15 |
mirror://sourceforge/stellarium/stars_7_2v0_0.cat |
| 16 |
mirror://sourceforge/stellarium/stars_8_2v0_0.cat |
| 17 |
)" |
| 11 |
|
18 |
|
| 12 |
LICENSE="GPL-2 BitstreamVera" |
19 |
LICENSE="GPL-2 BitstreamVera" |
| 13 |
SLOT="0" |
20 |
SLOT="0" |
| 14 |
KEYWORDS="amd64 ~ppc ppc64 x86" |
21 |
KEYWORDS="amd64 ~ppc ppc64 x86" |
| 15 |
IUSE="nls" |
22 |
IUSE="nls stars" |
| 16 |
RESTRICT="test" |
23 |
RESTRICT="test" |
| 17 |
|
24 |
|
| 18 |
RDEPEND="virtual/opengl |
25 |
RDEPEND="virtual/opengl |
|
Lines 31-36
Link Here
|
| 31 |
nls? ( sys-devel/gettext ) |
38 |
nls? ( sys-devel/gettext ) |
| 32 |
x11-libs/libXt" |
39 |
x11-libs/libXt" |
| 33 |
|
40 |
|
|
|
41 |
src_prepare() { |
| 42 |
if use stars ; then |
| 43 |
cat "${FILESDIR}"/stars.ini >> stars/default/stars.ini \ |
| 44 |
|| die "cat failed" |
| 45 |
fi |
| 46 |
} |
| 47 |
|
| 34 |
src_configure() { |
48 |
src_configure() { |
| 35 |
mycmakeargs=$(cmake-utils_use_enable nls NLS) |
49 |
mycmakeargs=$(cmake-utils_use_enable nls NLS) |
| 36 |
CMAKE_IN_SOURCE_BUILD=1 cmake-utils_src_configure |
50 |
CMAKE_IN_SOURCE_BUILD=1 cmake-utils_src_configure |
|
Lines 38-43
Link Here
|
| 38 |
|
52 |
|
| 39 |
src_install() { |
53 |
src_install() { |
| 40 |
emake DESTDIR="${D}" install || die "emake install failed" |
54 |
emake DESTDIR="${D}" install || die "emake install failed" |
|
|
55 |
if use stars ; then |
| 56 |
insinto /usr/share/${PN}/stars/default |
| 57 |
doins -r "${DISTDIR}"/*.cat || die "doins failed" |
| 58 |
fi |
| 41 |
newicon doc/images/stellarium-logo.png ${PN}.png |
59 |
newicon doc/images/stellarium-logo.png ${PN}.png |
| 42 |
make_desktop_entry ${PN} Stellarium ${PN} "Education;Science;Astronomy;" |
60 |
make_desktop_entry ${PN} Stellarium ${PN} "Education;Science;Astronomy;" |
| 43 |
dodoc AUTHORS ChangeLog README |
61 |
dodoc AUTHORS ChangeLog README |