summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-misc')
-rw-r--r--sci-misc/vitables/ChangeLog10
-rw-r--r--sci-misc/vitables/files/vitables-2.0-doc-examples.patch18
-rw-r--r--sci-misc/vitables/metadata.xml8
-rw-r--r--sci-misc/vitables/vitables-2.0.ebuild42
4 files changed, 78 insertions, 0 deletions
diff --git a/sci-misc/vitables/ChangeLog b/sci-misc/vitables/ChangeLog
new file mode 100644
index 000000000000..99d4e80b6706
--- /dev/null
+++ b/sci-misc/vitables/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-misc/vitables
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-misc/vitables/ChangeLog,v 1.1 2009/06/11 20:44:13 spock Exp $
+
+*vitables-2.0 (11 Jun 2009)
+
+ 11 Jun 2009; Michał Januszewski <spock@gentoo.org> +vitables-2.0.ebuild,
+ +files/vitables-2.0-doc-examples.patch, +metadata.xml:
+ Initial commit (bug #268149).
+
diff --git a/sci-misc/vitables/files/vitables-2.0-doc-examples.patch b/sci-misc/vitables/files/vitables-2.0-doc-examples.patch
new file mode 100644
index 000000000000..5c6562a8dbc0
--- /dev/null
+++ b/sci-misc/vitables/files/vitables-2.0-doc-examples.patch
@@ -0,0 +1,18 @@
+diff -Naurp ViTables-2.0-orig/setup.py ViTables-2.0/setup.py
+--- ViTables-2.0-orig/setup.py 2009-06-11 22:32:02.000000000 +0200
++++ ViTables-2.0/setup.py 2009-06-11 22:32:38.000000000 +0200
+@@ -278,14 +278,6 @@ setup(name = 'ViTables', # The name of t
+ 'vitables.vtTables', 'vitables.vtWidgets'],
+ scripts = ['scripts/vitables'],
+ cmdclass = {"install_data":smart_install_data},
+- data_files = [
+- ('examples', glob.glob('examples/*.h5')),
+- ('examples/scripts', glob.glob('examples/scripts/*.py')),
+- ('doc', glob.glob('doc/*.pdf')),
+- ('', ['LICENSE.txt', 'LICENSE.html']),
+- ('', ['VERSION'])
+- ],
+-
+ **setup_args
+ )
+
diff --git a/sci-misc/vitables/metadata.xml b/sci-misc/vitables/metadata.xml
new file mode 100644
index 000000000000..372b7a747b6e
--- /dev/null
+++ b/sci-misc/vitables/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<maintainer>
+ <email>spock@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/sci-misc/vitables/vitables-2.0.ebuild b/sci-misc/vitables/vitables-2.0.ebuild
new file mode 100644
index 000000000000..0905f17c35b8
--- /dev/null
+++ b/sci-misc/vitables/vitables-2.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-misc/vitables/vitables-2.0.ebuild,v 1.1 2009/06/11 20:44:13 spock Exp $
+
+EAPI="2"
+NEED_PYTHON="2.5"
+# Will work with 2.4 if you manually install the uuid package
+
+inherit distutils eutils
+
+DESCRIPTION="A graphical tool for browsing and editing files in both PyTables and HDF5 formats"
+HOMEPAGE="http://vitables.berlios.de/"
+SRC_URI="mirror://berlios/vitables/ViTables-${PV}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="doc examples"
+
+DEPEND=">=dev-python/pytables-2.0
+ >=x11-libs/qt-4.0
+ >=dev-python/PyQt4-4.4"
+RDEPEND="${DEPEND}"
+S="${WORKDIR}/ViTables-${PV}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-doc-examples.patch
+}
+
+src_install() {
+ distutils_src_install
+
+ if use examples; then
+ insinto /usr/share/doc/${P}/examples
+ doins -r examples/*
+ fi
+
+ if use doc; then
+ dodoc doc/*
+ fi
+
+}