/[gentoo-x86]/sci-visualization/veusz/veusz-1.16.ebuild
Gentoo

Contents of /sci-visualization/veusz/veusz-1.16.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Mon Jul 30 20:36:08 2012 UTC (2 years, 1 month ago) by bicatali
Branch: MAIN
Version bump

(Portage version: 2.2.01.20796-prefix/cvs/Linux x86_64)

1 bicatali 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/sci-visualization/veusz/veusz-1.15.ebuild,v 1.1 2012/04/05 12:31:12 grozin Exp $
4    
5     EAPI=4
6    
7     # python cruft
8     PYTHON_DEPEND="2"
9     SUPPORT_PYTHON_ABIS="1"
10     #RESTRICT_PYTHON_ABIS="3.* *-jython"
11     PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
12    
13     inherit distutils eutils fdo-mime
14    
15     DESCRIPTION="Qt based scientific plotting package with good Postscript output"
16     HOMEPAGE="http://home.gna.org/veusz/ http://pypi.python.org/pypi/veusz"
17     SRC_URI="http://download.gna.org/${PN}/${P}.tar.gz"
18    
19     IUSE="doc examples fits"
20     SLOT="0"
21     KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
22     LICENSE="GPL-2"
23    
24     DEPEND="dev-python/numpy"
25     RDEPEND="${DEPEND}
26     dev-python/PyQt4[X,svg]
27     fits? ( dev-python/pyfits )"
28    
29     src_install() {
30     distutils_src_install
31    
32     if use examples; then
33     insinto /usr/share/doc/${PF}
34     doins -r examples
35     fi
36     use doc && dodoc Documents/manual.pdf && \
37     dohtml -r Documents/{manimages,manual.html}
38    
39     newicon windows/icons/veusz_48.png veusz.png
40     domenu "${FILESDIR}"/veusz.desktop
41     insinto /usr/share/mime/packages
42     doins "${FILESDIR}"/veusz.xml
43     # symlinking the license, bug #341653
44     symlink_license() {
45     dosym /usr/portage/licenses/GPL-2 "$(python_get_sitedir)/${PN}"/COPYING
46     }
47     python_execute_function -q symlink_license
48     }
49    
50     pkg_postinst() {
51     distutils_pkg_postinst
52     fdo-mime_desktop_database_update
53     }
54    
55     pkg_postrm() {
56     distutils_pkg_postrm
57     fdo-mime_desktop_database_update
58     }

  ViewVC Help
Powered by ViewVC 1.1.20