summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2008-12-07 06:56:51 +0000
committerAndrey Grozin <grozin@gentoo.org>2008-12-07 06:56:51 +0000
commit0019902a695b60ca04678314f6d5f6a34e8fa191 (patch)
treedd7de2ef8284fe8d8ef8ecd191595971e843fddb /sci-visualization/udav
parentRemove pointless USE=build support. (diff)
downloadgentoo-2-0019902a695b60ca04678314f6d5f6a34e8fa191.tar.gz
gentoo-2-0019902a695b60ca04678314f6d5f6a34e8fa191.tar.bz2
gentoo-2-0019902a695b60ca04678314f6d5f6a34e8fa191.zip
Initial import, based on ebuild in the science overlay.
(Portage version: 2.2_rc17/cvs/Linux 2.6.26-tuxonice i686)
Diffstat (limited to 'sci-visualization/udav')
-rw-r--r--sci-visualization/udav/ChangeLog10
-rw-r--r--sci-visualization/udav/files/udav-0.5-pro.patch29
-rw-r--r--sci-visualization/udav/metadata.xml10
-rw-r--r--sci-visualization/udav/udav-0.5.ebuild39
4 files changed, 88 insertions, 0 deletions
diff --git a/sci-visualization/udav/ChangeLog b/sci-visualization/udav/ChangeLog
new file mode 100644
index 000000000000..bf9748ca735d
--- /dev/null
+++ b/sci-visualization/udav/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-visualization/udav
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/udav/ChangeLog,v 1.1 2008/12/07 06:56:51 grozin Exp $
+
+*udav-0.5 (07 Dec 2008)
+
+ 07 Dec 2008; Andrey Grozin <grozin@gentoo.org> +files/udav-0.5-pro.patch,
+ +metadata.xml, +udav-0.5.ebuild:
+ Initial import, based on ebuild in the science overlay.
+
diff --git a/sci-visualization/udav/files/udav-0.5-pro.patch b/sci-visualization/udav/files/udav-0.5-pro.patch
new file mode 100644
index 000000000000..5e2401afd4c7
--- /dev/null
+++ b/sci-visualization/udav/files/udav-0.5-pro.patch
@@ -0,0 +1,29 @@
+Index: udav-0.5/src/src.pro
+===================================================================
+--- udav-0.5.orig/src/src.pro
++++ udav-0.5/src/src.pro
+@@ -1,4 +1,4 @@
+-DEFINES += MGL_DOC_DIR=\\\"$(MGLDOCDIR)\\\"
++DEFINES += MGL_DOC_DIR=\\\"/usr/share/doc/$(PF)/\\\"
+
+ TEMPLATE = app
+ CONFIG += release \
+@@ -40,7 +40,7 @@ setupdialog.h \
+ DISTFILES += ../TODO \
+ ../ChangeLog.txt
+
+-target.path = /usr/local/bin/
++target.path = /usr/bin/
+ INSTALLS += target \
+ help \
+ pics
+@@ -54,7 +54,7 @@ LIBS += -lmgl
+ help.files += ../help/*.html
+ pics.files += ../help/pics/*.png
+
+-help.path = /usr/local/share/doc/udav/
++help.path = /usr/share/doc/${PF}/
+
+-pics.path = /usr/local/share/doc/udav/pics/
++pics.path = /usr/share/doc/${PF}/pics/
+
diff --git a/sci-visualization/udav/metadata.xml b/sci-visualization/udav/metadata.xml
new file mode 100644
index 000000000000..52b9b1bdfad3
--- /dev/null
+++ b/sci-visualization/udav/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <maintainer>
+ <email>A.G.Grozin@inp.nsk.su</email>
+ <name>Andrey Grozin</name>
+ </maintainer>
+ <longdescription>Universal Data Array Visualization</longdescription>
+</pkgmetadata>
diff --git a/sci-visualization/udav/udav-0.5.ebuild b/sci-visualization/udav/udav-0.5.ebuild
new file mode 100644
index 000000000000..6588f377b219
--- /dev/null
+++ b/sci-visualization/udav/udav-0.5.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/udav/udav-0.5.ebuild,v 1.1 2008/12/07 06:56:51 grozin Exp $
+EAPI=2
+inherit qt4 fdo-mime
+DESCRIPTION="Universal Data Array Visualization"
+HOMEPAGE="http://udav.sourceforge.net/"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+DEPEND="sci-libs/mathgl[hdf5]
+ x11-libs/qt-gui:4"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-pro.patch
+}
+
+src_compile() {
+ eqmake4
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install || die "emake install failed"
+
+ make_desktop_entry ${PN}
+ insinto /usr/share/icons/hicolor/48x48/apps
+ doins src/${PN}.png
+ dosym /usr/share/icons/hicolor/48x48/apps/${PN}.png /usr/share/pixmaps/${PN}.png
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}