Skip to content

Commit e2b256a

Browse files
author
Lars Wendler
committed
sci-astronomy/celestia: Synced live ebuild
Package-Manager: Portage-2.3.94, Repoman-2.3.21 Signed-off-by: Lars Wendler <[email protected]>
1 parent 7921676 commit e2b256a

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

sci-astronomy/celestia/celestia-9999.ebuild

+16-13
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,27 @@ EAPI=7
55

66
inherit desktop flag-o-matic xdg cmake
77

8-
if [[ "${PV}" = 9999 ]] ; then
9-
inherit git-r3
8+
if [[ ${PV} == *9999 ]] ; then
109
EGIT_REPO_URI="https://github.com/CelestiaProject/Celestia.git"
10+
inherit git-r3
1111
else
12-
SRC_URI="https://github.com/${PN^}Project/${PN^}/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz"
13-
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
12+
if [[ ${PV} == *_p* ]] ; then
13+
COMMIT_ID="df508a0c597a3d96c1c039fa4a973e294021cfba"
14+
SRC_URI="https://github.com/${PN^}Project/${PN^}/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
15+
S="${WORKDIR}/${PN^}-${COMMIT_ID}"
16+
KEYWORDS="~amd64 ~x86"
17+
else
18+
SRC_URI="https://github.com/${PN^}Project/${PN^}/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz"
19+
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
20+
fi
1421
fi
1522

1623
DESCRIPTION="OpenGL 3D space simulator"
1724
HOMEPAGE="https://celestia.space"
1825

19-
LICENSE="GPL-2"
26+
LICENSE="GPL-2+"
2027
SLOT="0"
21-
IUSE="glut nls +qt5 theora"
22-
28+
IUSE="glut lua nls +qt5 theora"
2329
REQUIRED_USE="|| ( glut qt5 )"
2430

2531
BDEPEND="
@@ -28,14 +34,15 @@ BDEPEND="
2834
nls? ( sys-devel/gettext )
2935
"
3036
DEPEND="
31-
>=dev-lang/lua-5.1:*
3237
dev-libs/libfmt:=
3338
media-libs/glew:0
3439
media-libs/libpng:0=
40+
sys-libs/zlib:=
3541
virtual/glu
3642
virtual/jpeg:0
3743
virtual/opengl
3844
glut? ( media-libs/freeglut )
45+
lua? ( dev-lang/lua:* )
3946
qt5? (
4047
dev-qt/qtcore:5
4148
dev-qt/qtgui:5
@@ -58,19 +65,15 @@ PATCHES=(
5865
src_prepare() {
5966
cmake_src_prepare
6067

61-
filter-flags "-funroll-loops -frerun-loop-opt"
62-
6368
### This version of Celestia has a bug in the font rendering and
6469
### requires -fsigned-char. We should be able to force this flag
6570
### on all architectures. See bug #316573.
6671
append-flags "-fsigned-char"
6772
}
6873

6974
src_configure() {
70-
# force lua. Seems still to be inevitable
7175
local mycmakeargs=(
72-
#-DENABLE_CELX="$(usex lua)"
73-
-DENABLE_CELX=ON
76+
-DENABLE_CELX="$(usex lua)"
7477
-DENABLE_NLS="$(usex nls)"
7578
-DENABLE_GLUT="$(usex glut)"
7679
-DENABLE_GTK=OFF

0 commit comments

Comments
 (0)