From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-python/ginga/Manifest | 7 +++ dev-python/ginga/files/ginga-no-roboto.patch | 19 ++++++ dev-python/ginga/ginga-2.6.4.ebuild | 91 ++++++++++++++++++++++++++++ dev-python/ginga/ginga-2.6.5.ebuild | 82 +++++++++++++++++++++++++ dev-python/ginga/metadata.xml | 20 ++++++ 5 files changed, 219 insertions(+) create mode 100644 dev-python/ginga/Manifest create mode 100644 dev-python/ginga/files/ginga-no-roboto.patch create mode 100644 dev-python/ginga/ginga-2.6.4.ebuild create mode 100644 dev-python/ginga/ginga-2.6.5.ebuild create mode 100644 dev-python/ginga/metadata.xml (limited to 'dev-python/ginga') diff --git a/dev-python/ginga/Manifest b/dev-python/ginga/Manifest new file mode 100644 index 000000000000..2e16b6cb9673 --- /dev/null +++ b/dev-python/ginga/Manifest @@ -0,0 +1,7 @@ +AUX ginga-no-roboto.patch 597 SHA256 18eedf21f0d5bc05ecbf24f08b8dc5ec54c91596dacf497aa151e26eeae7c497 SHA512 e4e03b31ef61b3c71f5a049d23e721634d5c54646abf35d13df05423f2f215ff50aa7c867077bdb0216e2e8482e5a2bd75d24c505fcb09cb4ce96ac21d327c0d WHIRLPOOL fa1a8021df7685cd275d8226b8f20a402e7dcc785fdf453ceba72b952e90340fbb423e4824a91fec80e6a9bbe2b5225345b594c299a2c3fb73280e37b658cb6e +DIST ginga-2.6.4.tar.gz 19971195 SHA256 25d3435af454135c3539108ab41d4a55169e939739e0a947f12643dce16aa16e SHA512 79c471ee3fefb6dc03c90538147b8fa8606b37b7747712f9a69163870e6ae460d259f0ea08388a07163ea8b588676d0208fcdd51577d04cfc334aacbd0c01599 WHIRLPOOL 7ab2c47015446aae322f5a167a4054f40e601f2d0ace9b164a87bf4cf1f084765d7cc05592a69847010fee20b780e47a4532defcd5acfbdf6ba74568dd6dbc52 +DIST ginga-2.6.5.tar.gz 19969984 SHA256 0a8000a2e872d10fd05368cf3fa9d48d67c9191877998d764cd681f3f88b0e25 SHA512 66c55662a8ce1fe683cdf6a83511f39146fadf10d1fedabd6d6c5c46662a3abd2496bd1f0200612a84bdad246f960990e242bccee7a8a13e3aaf88a4884ceb80 WHIRLPOOL 76284b1ada78ff60bfb7e350f71ed1d6e81f73704757574864a64fb437d80fd1ab011fa50daadd231dae75dc3d22efb76d48f14678538e7949a7f56a6f44412e +EBUILD ginga-2.6.4.ebuild 2374 SHA256 c0bcf6701c6fdce01f53f9822d8b112293651632995fbe690a4b68f74edf8eaf SHA512 aa59af7de073aff58f64322fe267aef777cb57eb90f9cdc703b09641a493c16332dca948eb56735de899c64963d9268f1740fbefc69e297fc8737593605f3ee6 WHIRLPOOL aec5b88bea3367c7d2bb98faecf6144a289d54a472135297de9f08bf36a8b719ff9d35ce2d5f74be0be70e9b0776d7bf8a182fe49183d9a7b5e640a934217a35 +EBUILD ginga-2.6.5.ebuild 2156 SHA256 cfc78b6af0594a394b3d35a586a73dd00d27a38d2eab792fb055fc03850ea734 SHA512 07b85cab2aead0c4d34130977cd741dadcdd9e137c7503fcf3d7643c93e9b16bb5462fab272fb1b58bf3da2dd3444389ab5a1e4414262568d614686898833890 WHIRLPOOL 7246772591f3333cb200356e1378f9d162944c88e413f259f31cd28158fe9ff056e259e826842c476620f07d1084ba5e1ff5c413bdb38427dad97f364f8d24d2 +MISC ChangeLog 339 SHA256 0bce9ce422de804941a3b3fa0aecf951b3897ce857fec4f9b7117847c7c6f817 SHA512 6aea6b1b0232b5e7bf104aaa199fa421af8ca8716bd744d4dd125dd6adc2bf1e10d25ea0eb5d1872161609765d99e8a6b6370e2cc35dbaa9d9e999ff6d35b5ba WHIRLPOOL 5cf900e086e8502f1db9103e26d04391c401f0ea6fd746c66cc1747cd80af36912e5e70ffbc1079608cc060e37bae908358c4589b02ac890f492ca7f8e9fad27 +MISC metadata.xml 849 SHA256 016f245aa1b3ca3e29e0ff55a25e6608984b5b02150a2b766fb020704b103d56 SHA512 50343b22bb87eb298d17182553ddbbec417198e65f6c86177760e3fdc1c117f2e40dce6b539831d6dc85f820efa13b0b4e739dc40222c7ad2f318c81b78a2d33 WHIRLPOOL 6728adce7673409f114ccd6aedba88ef82ee6a7cea7b08b2435029af40acebaf69cc434dbd98b0a1012949584c6e592bd12ae307028d964338d7333677ea2cb2 diff --git a/dev-python/ginga/files/ginga-no-roboto.patch b/dev-python/ginga/files/ginga-no-roboto.patch new file mode 100644 index 000000000000..36b222fea5e2 --- /dev/null +++ b/dev-python/ginga/files/ginga-no-roboto.patch @@ -0,0 +1,19 @@ +From: Ole Streicher +Date: Tue, 2 Aug 2016 09:06:36 +0200 +Subject: Don't install the fonts included in the package. + +Use the package roboto-fonts-unhinted instead. +--- + ginga/fonts/setup_package.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/ginga/fonts/setup_package.py b/ginga/fonts/setup_package.py +index 9dd1e93..fe0ed0a 100644 +--- a/ginga/fonts/setup_package.py ++++ b/ginga/fonts/setup_package.py +@@ -3,4 +3,4 @@ from __future__ import absolute_import + + + def get_package_data(): +- return {'ginga.fonts': ['*/*.ttf', '*/*.txt']} ++ return {} diff --git a/dev-python/ginga/ginga-2.6.4.ebuild b/dev-python/ginga/ginga-2.6.4.ebuild new file mode 100644 index 000000000000..69fd1a42bc64 --- /dev/null +++ b/dev-python/ginga/ginga-2.6.4.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_5,3_6} ) +PYTHON_REQ_USE='tk?' + +inherit distutils-r1 eutils fdo-mime virtualx + +DESCRIPTION="Astronomical image toolkit for Python" +HOMEPAGE="https://ejeschke.github.io/ginga" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + +LICENSE="BSD" +SLOT="0" +IUSE="doc examples gtk qt4 qt5 test tk" + +RDEPEND=" + dev-python/astropy[${PYTHON_USEDEP}] + media-fonts/roboto + gtk? ( dev-python/pygobject[${PYTHON_USEDEP},cairo] ) + qt4? ( || ( + dev-python/pyside[${PYTHON_USEDEP},help,X] + dev-python/PyQt4[${PYTHON_USEDEP},help,X] + ) + dev-python/QtPy[${PYTHON_USEDEP},gui] + ) + qt5? ( + dev-python/PyQt5[${PYTHON_USEDEP},help,gui,widgets] + dev-python/QtPy[${PYTHON_USEDEP},gui] + ) +" + +DEPEND="${RDEPEND} + dev-python/astropy-helpers[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] + ) + test? ( + dev-python/QtPy[${PYTHON_USEDEP},gui] + ) +" + +PATCHES=( "${FILESDIR}"/${PN}-no-roboto.patch ) + +python_prepare_all() { + # use system astropy-helpers instead of bundled one + sed -i -e '/auto_use/s/True/False/' setup.cfg || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + python_setup + PYTHONPATH="${BUILD_DIR}"/lib esetup.py build_sphinx --no-intersphinx + fi +} + +python_test() { + virtx esetup.py test +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/_build/html/. ) + distutils-r1_python_install_all + rm -r "${ED%/}"/usr/lib*/*/*/ginga/examples || die + if use examples; then + insinto /usr/share/doc/${PF} + doins -r ginga/examples + fi + domenu ginga.desktop +} + +pkg_postinst() { + optfeature "Pick, Cuts, Histogram, LineProfile" \ + dev-python/matplotlib sci-libs/scipy + optfeature "Online help browser" dev-qt/qtwebkit + optfeature "To save a movie" media-video/mplayer + optfeature "Speeds up rotation and some transformations" \ + dev-python/numexpr dev-python/opencv dev-python/pyopencl + optfeature "Aids in identifying files when opening them" \ + dev-python/filemagic + optfeature "Useful for various RGB file manipulations" dev-python/pillow + + # Update mimedb for the new .desktop file + fdo-mime_desktop_database_update +} diff --git a/dev-python/ginga/ginga-2.6.5.ebuild b/dev-python/ginga/ginga-2.6.5.ebuild new file mode 100644 index 000000000000..e08f9fa4c1f2 --- /dev/null +++ b/dev-python/ginga/ginga-2.6.5.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_5,3_6} ) +PYTHON_REQ_USE='tk?' + +inherit distutils-r1 eutils xdg-utils virtualx + +DESCRIPTION="Astronomical image toolkit for Python" +HOMEPAGE="https://ejeschke.github.io/ginga" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + +LICENSE="BSD" +SLOT="0" +IUSE="examples gtk qt4 qt5 test tk" + +RDEPEND=" + dev-python/astropy[${PYTHON_USEDEP}] + media-fonts/roboto + gtk? ( dev-python/pygobject[${PYTHON_USEDEP},cairo] ) + qt4? ( || ( + dev-python/pyside[${PYTHON_USEDEP},help,X] + dev-python/PyQt4[${PYTHON_USEDEP},help,X] + ) + dev-python/QtPy[${PYTHON_USEDEP},gui] + ) + qt5? ( + dev-python/PyQt5[${PYTHON_USEDEP},help,gui,widgets] + dev-python/QtPy[${PYTHON_USEDEP},gui] + ) +" + +DEPEND="${RDEPEND} + dev-python/astropy-helpers[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/QtPy[${PYTHON_USEDEP},gui] ) +" + +PATCHES=( "${FILESDIR}"/${PN}-no-roboto.patch ) + +python_prepare_all() { + # use system astropy-helpers instead of bundled one + sed -i -e '/auto_use/s/True/False/' setup.cfg || die + distutils-r1_python_prepare_all +} + +python_test() { + virtx esetup.py test +} + +python_install_all() { + distutils-r1_python_install_all + rm -r "${ED%/}"/usr/lib*/*/*/ginga/examples || die + if use examples; then + dodoc -r ginga/examples + docompress -x /usr/share/doc/${PF}/examples + fi + domenu ginga.desktop +} + +pkg_postinst() { + optfeature "Pick, Cuts, Histogram, LineProfile" \ + dev-python/matplotlib sci-libs/scipy + optfeature "Online help browser" dev-qt/qtwebkit + optfeature "To save a movie" media-video/mplayer + optfeature "Speeds up rotation and some transformations" \ + dev-python/numexpr dev-python/opencv dev-python/pyopencl + optfeature "Aids in identifying files when opening them" \ + dev-python/filemagic + optfeature "Useful for various RGB file manipulations" dev-python/pillow + + xdg_desktop_database_update + xdg_mimeinfo_database_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_mimeinfo_database_update +} diff --git a/dev-python/ginga/metadata.xml b/dev-python/ginga/metadata.xml new file mode 100644 index 000000000000..9b4ee82bcef3 --- /dev/null +++ b/dev-python/ginga/metadata.xml @@ -0,0 +1,20 @@ + + + + + sci-astronomy@gentoo.org + Gentoo Astronomy Project + + + Ginga is a toolkit designed for building viewers for scientific image + data in Python, visualizing 2D pixel data in numpy arrays. + It can view astronomical data such as contained in files based on the + FITS (Flexible Image Transport System) file format. It is written and + is maintained by software engineers at the Subaru Telescope, National + Astronomical Observatory of Japan. + + + ginga + ejeschke/ginga + + -- cgit v1.2.3