summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sci-visualization/veusz/ChangeLog8
-rw-r--r--sci-visualization/veusz/files/veusz.desktop10
-rw-r--r--sci-visualization/veusz/files/veusz.xml10
-rw-r--r--sci-visualization/veusz/veusz-1.1.ebuild32
-rw-r--r--sci-visualization/veusz/veusz-1.3-r1.ebuild50
5 files changed, 77 insertions, 33 deletions
diff --git a/sci-visualization/veusz/ChangeLog b/sci-visualization/veusz/ChangeLog
index 801a4c7b719b..f72788e701f4 100644
--- a/sci-visualization/veusz/ChangeLog
+++ b/sci-visualization/veusz/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-visualization/veusz
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-visualization/veusz/ChangeLog,v 1.12 2009/02/26 21:36:48 grozin Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/veusz/ChangeLog,v 1.13 2009/02/27 14:56:55 bicatali Exp $
+
+*veusz-1.3-r1 (27 Feb 2009)
+
+ 27 Feb 2009; Sébastien Fabbro <bicatali@gentoo.org> +files/veusz.desktop,
+ +files/veusz.xml, -veusz-1.1.ebuild, +veusz-1.3-r1.ebuild:
+ Added desktop menu and mime info, reorganized docs
*veusz-1.3 (26 Feb 2009)
diff --git a/sci-visualization/veusz/files/veusz.desktop b/sci-visualization/veusz/files/veusz.desktop
new file mode 100644
index 000000000000..5c00781b2059
--- /dev/null
+++ b/sci-visualization/veusz/files/veusz.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Veusz
+GenericName=Veusz scientific plotting
+Comment=For graphing and manipulation of scientific data
+MimeType=application/x-veusz
+Exec=veusz %F
+Icon=veusz
+Terminal=false
+Type=Application
+Categories=Graphics;DataVisualization;
diff --git a/sci-visualization/veusz/files/veusz.xml b/sci-visualization/veusz/files/veusz.xml
new file mode 100644
index 000000000000..7e6d83d322f7
--- /dev/null
+++ b/sci-visualization/veusz/files/veusz.xml
@@ -0,0 +1,10 @@
+<?xml version='1.0'?>
+<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
+ <mime-type type="application/x-veusz">
+ <comment>Veusz saved graph</comment>
+ <glob pattern="*.vsz"/>
+ <magic priority="50">
+ <match type="string" value="# Veusz saved document" offset="0"/>
+ </magic>
+ </mime-type>
+</mime-info>
diff --git a/sci-visualization/veusz/veusz-1.1.ebuild b/sci-visualization/veusz/veusz-1.1.ebuild
deleted file mode 100644
index bb21469dc90c..000000000000
--- a/sci-visualization/veusz/veusz-1.1.ebuild
+++ /dev/null
@@ -1,32 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-visualization/veusz/veusz-1.1.ebuild,v 1.1 2008/10/06 06:00:35 grozin Exp $
-
-inherit distutils
-
-DESCRIPTION="Qt based scientific plotting package with good Postscript output."
-HOMEPAGE="http://home.gna.org/veusz/"
-SRC_URI="http://download.gna.org/${PN}/${P}.tar.gz"
-
-IUSE="doc examples fits"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-LICENSE="GPL-2"
-
-DEPEND="dev-python/numpy"
-
-RDEPEND="${DEPEND}
- >=dev-python/PyQt4-4.3
- fits? ( >=dev-python/pyfits-1.1 )"
-
-src_install() {
- distutils_src_install
- insinto /usr/share/doc/${PF}
- if use doc; then
- doins -r examples || die "examples install failed"
- fi
- if use doc; then
- cd Documents
- doins -r Interface.txt manual.html manimages manual.pdf || die "doc install failed"
- fi
-}
diff --git a/sci-visualization/veusz/veusz-1.3-r1.ebuild b/sci-visualization/veusz/veusz-1.3-r1.ebuild
new file mode 100644
index 000000000000..1a7379acce81
--- /dev/null
+++ b/sci-visualization/veusz/veusz-1.3-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/veusz/veusz-1.3-r1.ebuild,v 1.1 2009/02/27 14:56:55 bicatali Exp $
+
+inherit eutils distutils fdo-mime
+
+DESCRIPTION="Qt based scientific plotting package with good Postscript output"
+HOMEPAGE="http://home.gna.org/veusz/"
+SRC_URI="http://download.gna.org/${PN}/${P}.tar.gz"
+
+IUSE="doc examples fits"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+LICENSE="GPL-2"
+
+DEPEND="dev-python/numpy"
+RDEPEND="${DEPEND}
+ dev-python/PyQt4
+ fits? ( dev-python/pyfits )"
+
+src_install() {
+ distutils_src_install
+ dodoc Interface.txt
+ insinto /usr/share/doc/${PF}
+ if use examples; then
+ doins -r examples || die "examples install failed"
+ fi
+ if use doc; then
+ cd Documents
+ insinto /usr/share/doc/${PF}
+ doins manual.pdf
+ insinto /usr/share/doc/${PF}/html
+ doins -r manual.html manimages \
+ || die "doc install failed"
+ fi
+ newicon "${S}"/windows/icons/veusz_48.png veusz.png
+ domenu "${FILESDIR}"/veusz.desktop
+ insinto /usr/share/mime/packages
+ doins "${FILESDIR}"/veusz.xml
+}
+
+pkg_postinst() {
+ distutils_pkg_postinst
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ distutils_pkg_postrm
+ fdo-mime_desktop_database_update
+}