diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/pyfltk |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/pyfltk')
-rw-r--r-- | dev-python/pyfltk/Manifest | 7 | ||||
-rw-r--r-- | dev-python/pyfltk/files/fltk_wrap.patch | 14 | ||||
-rw-r--r-- | dev-python/pyfltk/files/ignore-func.patch | 12 | ||||
-rw-r--r-- | dev-python/pyfltk/metadata.xml | 15 | ||||
-rw-r--r-- | dev-python/pyfltk/pyfltk-1.3.3.ebuild | 52 |
5 files changed, 100 insertions, 0 deletions
diff --git a/dev-python/pyfltk/Manifest b/dev-python/pyfltk/Manifest new file mode 100644 index 000000000000..a2be08c52c1a --- /dev/null +++ b/dev-python/pyfltk/Manifest @@ -0,0 +1,7 @@ +AUX fltk_wrap.patch 247 SHA256 bfd4102207c4b4a9432eb3df56e6ede637c1c3c8dc782f08bee85362b60150b0 SHA512 4097f9a657f0cb96e37620b939edb35f4cfcb28b2be643b87f85e5dde8ff9a4f316052cbd5403396698de3e2034bafd164c7111c890a5b6d6bcf818185342bcb WHIRLPOOL 83b5cdd02f8b746c7c9453c9baf2a4c17ab87fe70fa9020d9b25700cd944dba24bd88d541941285cb76cb9f274647e3058bca929c3017f3e8df1d3beba4abd15 +AUX ignore-func.patch 250 SHA256 933c2fa902100598eaa8f93b94db9e2d869b01278a37682585665f981b0de2b7 SHA512 66854b2ce487d1182ada54b437ad79ea5395d87e4b08d89c9ed85b67b21d426609406201c19914e0872ee558d3b3109d3b43a7af036ffb98b781e07731239419 WHIRLPOOL 3c4d6268917d2bc4889698673b53ed2f78ac399dab893bc2a0f1dd6ca9da4b11acad30866f2d951d3b48cc1cc4ca78a38774d6aa12b148deee775383ca7edad0 +DIST pyFltk-1.3.3.tar.gz 946763 SHA256 246b92c99b8d5610532456a4c956b355f6140514324916cf35efbe6468c4a188 SHA512 dd4bbef8e82d455237dd085622e78e046ac522449fe63610ee5405c24d759482a89aeab07435fefb5223db78cc1f810f1eca8355afb1d0ff3e4b5e10b73bef8f WHIRLPOOL 8d94349db36cd78eeee722e75c9e1cef088e0f2743bd522eb0496f76faf70a159d6987902f308478a992bd7f2cb62a5bb770a80eee25c3e9feaf08b513956ce1 +EBUILD pyfltk-1.3.3.ebuild 1093 SHA256 f5ea3f7302e5bfd0fb657040872deb8160b12d473f75b79876c02f846e0d2eda SHA512 a7c5436323ca5720e87f13311777e99c9fcb6b9445301f308214cf91dba8d86ed12e6c2d82c49111e3b4606f1d999662b8b7a23c261cd58eae23d1408aabbfb9 WHIRLPOOL 2247415aea62dd2c1bd6a9c555e55a44421985fb9b74daab4e34a963f52aafde95ab16c4250d2f5a2416accaeff565bb936b5b88503191adb7c32ce4d531ed6b +MISC ChangeLog 5514 SHA256 e9ddaf3ff59348b04ca3d1d266f4341ba1f4b7c1691ddc90e53613de6c5bca2c SHA512 dc0763c809ffa7097eede541eb237bd8ed2a558d91428e891b6e5651c1e065df73bb533e550078369b893957486157e001581afc72e71439e4a7cd80720c693a WHIRLPOOL 0faf488e6cccb010c7ac6e5e3c1d21d952c392fd4f5482d56054e3ceffd61409ec99c04668b9c785818e57cd1a3be869321589227a13423f80584806eca26bd1 +MISC ChangeLog-2015 6681 SHA256 0ee5ff2a44b0ebe6692533fd65762f296a88fdcc38482a459e36aec6374c09e7 SHA512 e0301510f15bb89359f47cf2c628e7c5f324e16a310d0a8ab4a22918b89e34866db97107d9709850c2261d333b4adedd1fe29bb1402420e44848c78e8e28875f WHIRLPOOL 1bb0a7ee5d2c6fe474579b861e5911352289bd6d6f70748472b42e31e1777bf65c83429c103c94240fa8a570f22cb821fdcd3a798d0062c61c8bcbfdb7e9109d +MISC metadata.xml 472 SHA256 8174124557c601b128bc2d9fa81cfe371af36f5b867177332b2f31e3e810b85c SHA512 da7ed2d0b264b2a7864f9acd72248c4bd45aa243009265af3c7e5bb6c46c0ac584e02e8c77c1e4eabe05e212e10ab685684f071d73046fe0146149ecf79912eb WHIRLPOOL 5c7b611aea0b5229008ae61163a9b5b21a0d18ae67549e0326c9b31c9ac8afc17f75e61d5057b7209b65b8baec7ea582ce0492a49c2d37e460b6fc09fc8985fe diff --git a/dev-python/pyfltk/files/fltk_wrap.patch b/dev-python/pyfltk/files/fltk_wrap.patch new file mode 100644 index 000000000000..e0c7ba3a4133 --- /dev/null +++ b/dev-python/pyfltk/files/fltk_wrap.patch @@ -0,0 +1,14 @@ +--- a/python/fltk_wrap.cpp ++++ b/python/fltk_wrap.cpp +@@ -144,7 +144,9 @@ + # define _SCL_SECURE_NO_DEPRECATE + #endif + +- ++int _fl_filename_isdir_quick(const char *n) { ++ return 0; ++} + + /* Python.h has to appear first */ + #include <Python.h> + diff --git a/dev-python/pyfltk/files/ignore-func.patch b/dev-python/pyfltk/files/ignore-func.patch new file mode 100644 index 000000000000..4c3ff48fce54 --- /dev/null +++ b/dev-python/pyfltk/files/ignore-func.patch @@ -0,0 +1,12 @@ +https://sourceforge.net/p/pyfltk/code/506/ + +--- a/swig/filename.i ++++ b/swig/filename.i +@@ -14,6 +14,7 @@ + %ignore fl_alphasort; + %ignore fl_casealphasort; + %ignore fl_casenumericsort; ++%ignore _fl_filename_isdir_quick; + + %include "FL/filename.H" + diff --git a/dev-python/pyfltk/metadata.xml b/dev-python/pyfltk/metadata.xml new file mode 100644 index 000000000000..68eed5608414 --- /dev/null +++ b/dev-python/pyfltk/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <longdescription lang="en"> + Python wrapper for the Fast Light Tool Kit cross-platform graphical + user-interface library, using SWIG. +</longdescription> + <upstream> + <remote-id type="sourceforge">pyfltk</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pyfltk/pyfltk-1.3.3.ebuild b/dev-python/pyfltk/pyfltk-1.3.3.ebuild new file mode 100644 index 000000000000..c668e2245748 --- /dev/null +++ b/dev-python/pyfltk/pyfltk-1.3.3.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# FIXME: MakeSwig.py execution should be made work from pyfltk-1.1.5.ebuild + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 flag-o-matic + +MY_PN="pyFltk-${PV}" +MY_P="pyFltk-${PV}_py3" + +DESCRIPTION="Python interface to Fltk library" +HOMEPAGE="http://pyfltk.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz -> ${MY_PN}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="amd64 arm ppc ppc64 x86" +IUSE="doc" + +DEPEND=" + >=x11-libs/fltk-1.3.0:1[opengl] + !dev-python/pyfltk:1 + " +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${MY_PN} + +PATCHES=( + "${FILESDIR}"/ignore-func.patch + "${FILESDIR}"/fltk_wrap.patch + ) + +python_prepare_all() { + # Disable installation of documentation and tests. + sed -i -e '/package_data=/d' setup.py || die + + distutils-r1_python_prepare_all +} + +python_configure_all() { + append-flags -fno-strict-aliasing +} + +python_install_all() { + use doc && local HTML_DOCS=( fltk/docs/. ) + distutils-r1_python_install_all +} |