Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-mathematics/kayali/
Date: Wed, 04 Dec 2013 16:22:59
Message-Id: 1386173778.4b9addc4dd28084358bf882eb81e2a3dd9747d34.jlec@gentoo
1 commit: 4b9addc4dd28084358bf882eb81e2a3dd9747d34
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 4 16:16:18 2013 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 4 16:16:18 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=4b9addc4
7
8 sci-mathematics/kayali: Bump EAPI to 5; Bump to python-single-r1 eclass
9
10 Package-Manager: portage-2.2.7
11
12 ---
13 sci-mathematics/kayali/ChangeLog | 6 ++++-
14 sci-mathematics/kayali/kayali-0.3.2.ebuild | 43 +++++++++++++++++-------------
15 sci-mathematics/kayali/metadata.xml | 4 +--
16 3 files changed, 31 insertions(+), 22 deletions(-)
17
18 diff --git a/sci-mathematics/kayali/ChangeLog b/sci-mathematics/kayali/ChangeLog
19 index fea15a0..293899f 100644
20 --- a/sci-mathematics/kayali/ChangeLog
21 +++ b/sci-mathematics/kayali/ChangeLog
22 @@ -1,7 +1,11 @@
23 # ChangeLog for sci-mathematics/kayali
24 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
25 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
26 # $Header: $
27
28 + 04 Dec 2013; Justin Lecher <jlec@g.o> kayali-0.3.2.ebuild,
29 + metadata.xml:
30 + Bump EAPI to 5; Bump to python-single-r1 eclass
31 +
32 14 Oct 2010; François Bissey <f.r.bissey@×××××××××.nz>
33 kayali-0.3.2.ebuild:
34 Remove non-working doins
35
36 diff --git a/sci-mathematics/kayali/kayali-0.3.2.ebuild b/sci-mathematics/kayali/kayali-0.3.2.ebuild
37 index 539b8da..4456253 100644
38 --- a/sci-mathematics/kayali/kayali-0.3.2.ebuild
39 +++ b/sci-mathematics/kayali/kayali-0.3.2.ebuild
40 @@ -1,28 +1,30 @@
41 -# Copyright 1999-2010 Gentoo Foundation
42 +# Copyright 1999-2013 Gentoo Foundation
43 # Distributed under the terms of the GNU General Public License v2
44 # $Header: $
45
46 -EAPI="3"
47 +EAPI=5
48
49 -PYTHON_DEPEND="2"
50 +PYTHON_COMPAT=( python{2_6,2_7} )
51
52 -inherit eutils python
53 +inherit eutils python-single-r1
54
55 DESCRIPTION="Qt front-end for Computer Algebra System mainly maxima"
56 HOMEPAGE="http://kayali.sourceforge.net/"
57 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
58
59 LICENSE="GPL-2"
60 -
61 SLOT="0"
62 KEYWORDS="~amd64 ~x86"
63 IUSE="doc"
64
65 -DEPEND=""
66 -RDEPEND="sci-mathematics/maxima
67 - >=dev-python/PyQt4-4.1
68 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
69 +
70 +DEPEND="${PYTHON_DEPS}"
71 +RDEPEND="${DEPEND}
72 + sci-mathematics/maxima
73 + >=dev-python/PyQt4-4.1[${PYTHON_USEDEP}]
74 media-gfx/imagemagick
75 - >=dev-python/reportlab-2.0
76 + >=dev-python/reportlab-2.0[${PYTHON_USEDEP}]
77 >=sci-visualization/gnuplot-4.0"
78
79 # is a GUI, testing done simply by launching application
80 @@ -32,7 +34,7 @@ RESTRICT="test"
81 S=${WORKDIR}/${PN}
82
83 pkg_setup() {
84 - python_set_active_version 2
85 + python-single-r1_pkg_setup
86 }
87
88 src_compile() {
89 @@ -40,19 +42,22 @@ src_compile() {
90 }
91
92 src_install() {
93 - INSTALL_DIR="${EPREFIX}"/usr/share/${PN}
94 + local INSTALL_DIR="${EPREFIX}"/usr/share/${PN}
95 +
96 cat >> "${T}"/kayali <<- EOF
97 #!${EPREFIX}/bin/sh
98 cd ${INSTALL_DIR}
99 - exec $(PYTHON) -OOt kayali.py $@
100 + exec ${EPYTHON} -OOt kayali.py $@
101 EOF
102 - dobin "${T}"/kayali || die
103 +
104 + dobin "${T}"/kayali
105 insinto ${INSTALL_DIR}
106 - doins *.py *.txt *.in* maximab.bat maxima.g || die
107 - doins -r engines icons pdf qt4gui *uic || die
108 + doins *.py *.txt *.in* maximab.bat maxima.g
109 + doins -r engines icons pdf qt4gui *uic
110 +
111 + python_optimize ${INSTALL_DIR}
112 +
113 make_desktop_entry kayali kayali kayali.svg
114 - if use doc; then
115 - dohtml html/* || die
116 - fi
117 - dodoc README || die
118 + use doc && dohtml html/*
119 + dodoc README
120 }
121
122 diff --git a/sci-mathematics/kayali/metadata.xml b/sci-mathematics/kayali/metadata.xml
123 index bad9916..82fef4f 100644
124 --- a/sci-mathematics/kayali/metadata.xml
125 +++ b/sci-mathematics/kayali/metadata.xml
126 @@ -1,8 +1,8 @@
127 <?xml version="1.0" encoding="UTF-8"?>
128 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
129 <pkgmetadata>
130 -<herd>sci-mathematics</herd>
131 -<longdescription lang="en">
132 + <herd>sci-mathematics</herd>
133 + <longdescription lang="en">
134 kayali is a Qt based Computer Algebra System (CAS) that can also be
135 used as an advanced replacement for KDE KCalc. It is essentially a
136 front end GUI forMaxima (and is easily extended to other CAS