Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-misc/vitables/files/, sci-misc/vitables/
Date: Sun, 25 Sep 2016 19:51:37
Message-Id: 1474832943.4c254551198f8617f06ed860a562ea55c7f6621c.soap@gentoo
1 commit: 4c254551198f8617f06ed860a562ea55c7f6621c
2 Author: Gerhard Bräunlich <wippbox <AT> gmx <DOT> net>
3 AuthorDate: Thu Sep 22 16:27:23 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 25 19:49:03 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c254551
7
8 sci-misc/vitables: EAPI bump 4 -> 6
9
10 Package-Manager: portage-2.2.28
11 Closes: https://github.com/gentoo/gentoo/pull/2389
12
13 Signed-off-by: David Seifert <soap <AT> gentoo.org>
14
15 sci-misc/vitables/files/vitables-2.1-no-docs.patch | 4 +-
16 sci-misc/vitables/vitables-2.1-r1.ebuild | 52 ++++++++++++++++++++++
17 2 files changed, 54 insertions(+), 2 deletions(-)
18
19 diff --git a/sci-misc/vitables/files/vitables-2.1-no-docs.patch b/sci-misc/vitables/files/vitables-2.1-no-docs.patch
20 index 307fb65..0d76e26 100644
21 --- a/sci-misc/vitables/files/vitables-2.1-no-docs.patch
22 +++ b/sci-misc/vitables/files/vitables-2.1-no-docs.patch
23 @@ -1,5 +1,5 @@
24 ---- setup.py.orig 2011-02-15 11:05:17.000000000 -0800
25 -+++ setup.py 2012-08-04 12:00:40.704723726 -0700
26 +--- a/setup.py
27 ++++ b/setup.py
28 @@ -34,13 +34,14 @@
29 from distutils.dir_util import copy_tree
30 from distutils.file_util import copy_file
31
32 diff --git a/sci-misc/vitables/vitables-2.1-r1.ebuild b/sci-misc/vitables/vitables-2.1-r1.ebuild
33 new file mode 100644
34 index 00000000..5d9cacc
35 --- /dev/null
36 +++ b/sci-misc/vitables/vitables-2.1-r1.ebuild
37 @@ -0,0 +1,52 @@
38 +# Copyright 1999-2016 Gentoo Foundation
39 +# Distributed under the terms of the GNU General Public License v2
40 +# $Id$
41 +
42 +EAPI=6
43 +
44 +PYTHON_COMPAT=( python2_7 )
45 +
46 +inherit distutils-r1
47 +
48 +MY_P=ViTables-${PV}
49 +
50 +DESCRIPTION="A graphical tool for browsing / editing files in both PyTables and HDF5 formats"
51 +HOMEPAGE="http://vitables.org/"
52 +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
53 +
54 +LICENSE="GPL-3"
55 +SLOT="0"
56 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
57 +IUSE="doc examples"
58 +
59 +RDEPEND="
60 + dev-python/pytables
61 + dev-python/PyQt4[X]" # FIXME: check if any other useflags are needed
62 +DEPEND="${RDEPEND}
63 + doc? ( dev-python/sphinx )"
64 +
65 +S=${WORKDIR}/${MY_P}
66 +
67 +PATCHES=( "${FILESDIR}"/${P}-no-docs.patch )
68 +
69 +python_compile_all() {
70 + distutils-r1_python_compile
71 + # fixme: multiple python (anyone cares?)
72 + use doc && esetup.py build_sphinx
73 +}
74 +
75 +python_install_all() {
76 + dodir /usr/share/icons/hicolor/scalable/apps
77 + dodir /usr/share/applications
78 + distutils-r1_python_install_all
79 +
80 + if use examples; then
81 + docompress -x /usr/share/doc/${PF}/examples
82 + DOCS+=( examples )
83 + fi
84 + if use doc ; then
85 + HTML_DOCS+=( "${BUILD_DIR}"/sphinx/html/. )
86 + DOCS+=( "${BUILD_DIR}"/sphinx/latex/*.pdf )
87 + fi
88 + einstalldocs
89 +}