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