summaryrefslogtreecommitdiff
path: root/dev-python/pyds9
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/pyds9
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/pyds9')
-rw-r--r--dev-python/pyds9/Manifest6
-rw-r--r--dev-python/pyds9/files/pyds9-1.8.1-use-system-xpa.patch36
-rw-r--r--dev-python/pyds9/metadata.xml18
-rw-r--r--dev-python/pyds9/pyds9-1.8.1.ebuild25
4 files changed, 85 insertions, 0 deletions
diff --git a/dev-python/pyds9/Manifest b/dev-python/pyds9/Manifest
new file mode 100644
index 000000000000..4b4db81ca2d8
--- /dev/null
+++ b/dev-python/pyds9/Manifest
@@ -0,0 +1,6 @@
+AUX pyds9-1.8.1-use-system-xpa.patch 1089 SHA256 fd9ac5d2862178056ac99d81dc1583665ab918d7d932fcec94e3d0e05d79e868 SHA512 1cb86d67479485abf95898ca88e5949a6a0e2eb96a2eb1aeda777bc3815653f6e1a8a7be9345b1a50eb4fa63c205b6a2a5ef4838a7b585d7e2d5a74e6e60e08c WHIRLPOOL afac5716c8088825783260dfcc54f677b86ff9b99591e974d1f5bcc4692e0df0ea4da0b20debca6b4d0957eec8770b401eb114fa3a1b4140b970efc0a20f1ba3
+DIST pyds9-1.8.1.tar.gz 899377 SHA256 86ebc33b4f493998751a2f4a1c0141c7a4a7aee2ab01b62119bcd75bb3ca7273 SHA512 6924ba2a1c1ccd0b3c068d4923c6a35127da744b91b97ece7d075bfde68ff49e6d24ae55869aa5e0e462f3f488db697dcdb33d217b33b6d63551286d9a95eec9 WHIRLPOOL 68bdbe1b10fc6c2651d20968eb8e419d1649958d4c0f70bff01ca7a9ad69fad7a8c78eaced497b6a5b0627f6de63f7390c3fdf009947faa5d25276174ea97fc7
+EBUILD pyds9-1.8.1.ebuild 608 SHA256 3a77820230aa443d2e047cde3679d83a7e874811449723e9a5da95012d5429c5 SHA512 e28ded24bfea4d430cdfa46c2df53fad226f11293489750e689203ef9ce896dbb6b1e03645414681d79cb8cbc1a772f7df52c72470a28da89a569d52a82b725a WHIRLPOOL b9782df600f2baf3cce2301672ff1e3ece327dae42cc9762b3d8a9c6576032690e507bd86b9b47f78355a555aae77a41b720193a79e9427504bbe975668ba648
+MISC ChangeLog 3105 SHA256 38eb315cc260b27e17fc6b02909691b1393bc0517ad828963e35eed82564fd26 SHA512 c0600af225ae3397999778a7317b66b4a798666613c714821e6fd69adf51b07771779cdf1b75ef89139df26f6f25b04aeb1b2a18a83b092fc0bb83a6fda6bdbd WHIRLPOOL c2fb0a85b43e0f93f056de3239fa7c6c185a9936af9221da15771b6bd9f5f5339343a9a259c2041d4b4b6840cbbb5d650f7dc5dabad62d15518070b345b6b22c
+MISC ChangeLog-2015 1842 SHA256 80ba1ac7fd663e2b80289e3fbb6a8bebb70b1b76e24f36d586510e19c54265b9 SHA512 1b1416965b91f933d34bb5b1a60ce538a669332b972309d27692f409aee1e11318a5755432be5db5ecbe2e77e6ed8241665d98ed8d02be3ca19a97487580c63d WHIRLPOOL 967f6a8bfae3d7401b5fb123313de0ac026171b320d9033ac9ea0e27a715c370456deb9de5133fb594740abf06ad51498102334db0c0fd66fbb712c1fa357fc4
+MISC metadata.xml 689 SHA256 7f63f4829c6593e81cd592740ee43f18b33c226faa5cefaa955734f4cc34f9eb SHA512 edb6305f963fff8c98d5d24f7873bdaf30a49db7defcb2c1b4e76c8bf82d9d4843f217da5a3a7c19cd6eedd41450d9d53c7638b3296b7e6a906808457458b279 WHIRLPOOL 07e63d602577f023e0d75d10144261f7fbc09a46b70393c421456e6fc76dd8b24fb58a7bcb9e2f8a25a86e61aceccf6486202f952912de0eb6978f30c4ab6e59
diff --git a/dev-python/pyds9/files/pyds9-1.8.1-use-system-xpa.patch b/dev-python/pyds9/files/pyds9-1.8.1-use-system-xpa.patch
new file mode 100644
index 000000000000..b84994f76b08
--- /dev/null
+++ b/dev-python/pyds9/files/pyds9-1.8.1-use-system-xpa.patch
@@ -0,0 +1,36 @@
+Author: Ole Streicher <debian@liska.ath.cx>
+Description: Don't install and use the convienience copy provided in the
+ source, but use the one installed by the "libxpa1" package.
+--- a/setup.py
++++ b/setup.py
+@@ -21,7 +21,7 @@
+ xpadir = 'xpa'
+
+
+-def make(which):
++def _disabled_make(which):
+ curdir = os.getcwd()
+ srcDir = os.path.join(os.path.dirname(os.path.abspath(__file__)), xpadir)
+ os.chdir(srcDir)
+@@ -86,10 +86,5 @@
+ author_email='saord@cfa.harvard.edu',
+ url='http://hea-www.harvard.edu/saord/ds9/',
+ py_modules=['pyds9', 'xpa'],
+- data_files=[('', [os.path.join(xpadir, xpalib),
+- os.path.join(xpadir, xpans)])],
+- cmdclass={'build_py': my_build_py,
+- 'install_data': my_install_data,
+- 'clean': my_clean},
+ install_requires=['six']
+ )
+--- a/xpa.py
++++ b/xpa.py
+@@ -28,7 +28,7 @@
+ return _fname
+ return None
+
+-_libpath = _find_shlib('xpa')
++_libpath = 'libxpa.so.1'
+ if _libpath:
+ libxpa = ctypes.cdll.LoadLibrary(_libpath)
+ _ulist = platform.uname()
diff --git a/dev-python/pyds9/metadata.xml b/dev-python/pyds9/metadata.xml
new file mode 100644
index 000000000000..638486c778fb
--- /dev/null
+++ b/dev-python/pyds9/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-astronomy@gentoo.org</email>
+ <name>Gentoo Astronomy Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ The XPA messaging system provides seamless communication between
+ many kinds of Unix programs, including Tcl/Tk programs such as
+ ds9. The pyds9 module uses a Python interface to XPA to communicate
+ with ds9. It supports communication with all of ds9’s XPA access
+ points.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">ericmandel/pyds9</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/pyds9/pyds9-1.8.1.ebuild b/dev-python/pyds9/pyds9-1.8.1.ebuild
new file mode 100644
index 000000000000..018539482069
--- /dev/null
+++ b/dev-python/pyds9/pyds9-1.8.1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python interface to XPA to communicate with DS9"
+HOMEPAGE="https://github.com/ericmandel/pyds9"
+SRC_URI="https://github.com/ericmandel/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND="x11-libs/xpa:0
+ dev-python/six[${PYTHON_USEDEP}]"
+RDEPEND="${DEPEND}"
+
+DOCS=(changelog README.md)
+
+PATCHES=( "${FILESDIR}/${P}-use-system-xpa.patch" )