Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-apps/kstars/files/, kde-apps/kstars/
Date: Tue, 28 Apr 2015 14:44:24
Message-Id: 1429906603.2fc674d0a7b02a43691657cd0542b56f51107a8c.mrueg@gentoo
1 commit: 2fc674d0a7b02a43691657cd0542b56f51107a8c
2 Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
3 AuthorDate: Thu Apr 23 00:40:49 2015 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 24 20:16:43 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=2fc674d0
7
8 [kde-apps/kstars] Frameworks merged to master
9
10 Package-Manager: portage-2.2.18
11
12 .../kstars-15.04.0-use-python2-explicitly.patch | 11 ++++
13 kde-apps/kstars/kstars-9999.ebuild | 61 +++++++++++++++++-----
14 kde-apps/kstars/metadata.xml | 2 +
15 3 files changed, 60 insertions(+), 14 deletions(-)
16
17 diff --git a/kde-apps/kstars/files/kstars-15.04.0-use-python2-explicitly.patch b/kde-apps/kstars/files/kstars-15.04.0-use-python2-explicitly.patch
18 new file mode 100644
19 index 0000000..5dce23c
20 --- /dev/null
21 +++ b/kde-apps/kstars/files/kstars-15.04.0-use-python2-explicitly.patch
22 @@ -0,0 +1,11 @@
23 +--- kstars/skycomponents/supernovaecomponent.cpp 2015-04-23 15:10:15.927651208 +0200
24 ++++ kstars/skycomponents/supernovaecomponent.cpp.new 2015-04-23 15:11:03.107647326 +0200
25 +@@ -233,7 +233,7 @@
26 + //qDebug()<<filename;
27 + m_Parser = new QProcess;
28 + connect( m_Parser, SIGNAL( finished( int, QProcess::ExitStatus ) ), this, SLOT( slotDataFileUpdateFinished( int, QProcess::ExitStatus ) ) );
29 +- m_Parser->start("python", args);
30 ++ m_Parser->start("python2", args);
31 + }
32 +
33 + void SupernovaeComponent::slotDataFileUpdateFinished( int exitCode, QProcess::ExitStatus exitStatus )
34
35 diff --git a/kde-apps/kstars/kstars-9999.ebuild b/kde-apps/kstars/kstars-9999.ebuild
36 index 3176814..c9b6ba9 100644
37 --- a/kde-apps/kstars/kstars-9999.ebuild
38 +++ b/kde-apps/kstars/kstars-9999.ebuild
39 @@ -4,32 +4,65 @@
40
41 EAPI=5
42
43 -KDE_HANDBOOK="optional"
44 -inherit flag-o-matic kde4-base
45 +KDE_HANDBOOK="true"
46 +PYTHON_COMPAT=( python2_7 )
47 +inherit kde5 python-single-r1
48
49 -DESCRIPTION="KDE Desktop Planetarium"
50 +DESCRIPTION="Desktop Planetarium"
51 HOMEPAGE="http://www.kde.org/applications/education/kstars http://edu.kde.org/kstars"
52 KEYWORDS=""
53 -IUSE="debug fits indi"
54 +IUSE="fits indi wcs xplanet"
55
56 REQUIRED_USE="indi? ( fits )"
57
58 +# TODO: AstrometryNet requires new package
59 +# FIXME: doesn't build without sci-libs/cfitsio as of 15.04.0
60 DEPEND="
61 + $(add_frameworks_dep kconfig)
62 + $(add_frameworks_dep kdbusaddons)
63 + $(add_frameworks_dep kguiaddons)
64 + $(add_frameworks_dep ki18n)
65 + $(add_frameworks_dep kiconthemes)
66 + $(add_frameworks_dep kinit)
67 + $(add_frameworks_dep kjobwidgets)
68 + $(add_frameworks_dep kio)
69 + $(add_frameworks_dep knewstuff)
70 + $(add_frameworks_dep kplotting)
71 + $(add_frameworks_dep ktexteditor)
72 + $(add_frameworks_dep kwidgetsaddons)
73 + $(add_frameworks_dep kwindowsystem)
74 + $(add_frameworks_dep kxmlgui)
75 dev-cpp/eigen:3
76 - $(add_kdeapps_dep libkdeedu)
77 - fits? ( >=sci-libs/cfitsio-0.390 )
78 - indi? ( >=sci-libs/indilib-0.9.8 )
79 + dev-qt/qtdeclarative:5
80 + dev-qt/qtgui:5
81 + dev-qt/qtmultimedia:5
82 + dev-qt/qtopengl:5
83 + dev-qt/qtprintsupport:5
84 + dev-qt/qtscript:5
85 + dev-qt/qtsql:5
86 + dev-qt/qtsvg:5
87 + dev-qt/qtwidgets:5
88 + dev-qt/qtxml:5
89 + >=sci-libs/cfitsio-0.390
90 + sys-libs/zlib
91 + indi? ( >=sci-libs/indilib-1.0.0 )
92 + wcs? ( sci-astronomy/wcslib )
93 + xplanet? ( x11-misc/xplanet )
94 +"
95 +RDEPEND="${DEPEND}
96 + ${PYTHON_DEPS}
97 "
98 -RDEPEND="${DEPEND}"
99
100 -src_configure() {
101 - # Bug 308903
102 - use ppc64 && append-flags -mminimal-toc
103 +# Regression from commit e9f1b544eda238c068fbbbbf612f291c734ea5aa
104 +# Inspiration from https://git.reviewboard.kde.org/r/110787/
105 +PATCHES=( "${FILESDIR}/${PN}-15.04.0-use-python2-explicitly.patch" )
106
107 +src_configure() {
108 local mycmakeargs=(
109 - $(cmake-utils_use_with fits CFitsio)
110 - $(cmake-utils_use_with indi)
111 + $(cmake-utils_use_find_package indi)
112 + $(cmake-utils_use_find_package wcs WCSLIB)
113 + $(cmake-utils_use_find_package xplanet Xplanet)
114 )
115
116 - kde4-base_src_configure
117 + kde5_src_configure
118 }
119
120 diff --git a/kde-apps/kstars/metadata.xml b/kde-apps/kstars/metadata.xml
121 index 79595fb..730c4cb 100644
122 --- a/kde-apps/kstars/metadata.xml
123 +++ b/kde-apps/kstars/metadata.xml
124 @@ -4,6 +4,8 @@
125 <use>
126 <flag name="fits">Enable support for the FITS image format through cfitsio</flag>
127 <flag name="indi">Enable support for Astronomical control library using libindi</flag>
128 + <flag name="wcs">Enable support for World Coordinate System library using wcslib</flag>
129 + <flag name="xplanet">Enable support for Xplanet</flag>
130 </use>
131 <herd>kde</herd>
132 </pkgmetadata>