Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyfltk/, dev-python/pyfltk/files/
Date: Wed, 03 May 2017 07:38:15
Message-Id: 1493797058.68059e5610eab1c0b0d7791066212b92b3e20a6e.mgorny@gentoo
1 commit: 68059e5610eab1c0b0d7791066212b92b3e20a6e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 3 06:45:07 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed May 3 07:37:38 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68059e56
7
8 dev-python/pyfltk: Clean old versions up
9
10 dev-python/pyfltk/Manifest | 1 -
11 .../files/pyfltk-1.3.0-format-security.patch | 74 ----------------------
12 .../files/pyfltk-1.3.0-linux-3.x-detection.patch | 15 -----
13 dev-python/pyfltk/pyfltk-1.3.0-r2.ebuild | 50 ---------------
14 4 files changed, 140 deletions(-)
15
16 diff --git a/dev-python/pyfltk/Manifest b/dev-python/pyfltk/Manifest
17 index 6f52b4468f5..44b0eebb2b8 100644
18 --- a/dev-python/pyfltk/Manifest
19 +++ b/dev-python/pyfltk/Manifest
20 @@ -1,2 +1 @@
21 -DIST pyFltk-1.3.0.tar.gz 915600 SHA256 c52852d21ee17d495185259b46ac9603d683edde7d7e6d4b6f9268da4ee3de57 SHA512 908a6d9581741454440da92fe921f0a2a01be86a5ec01cbbf2d953eb5f0437efd8e635d7bff6c18015afc877a984872a6592df834709f93a1287307e17fbcc61 WHIRLPOOL 62281ef5c798986f1af82da53887fe40a6cd4f4bcfe7fab8d60fc7f3c4ad9cc2d481ced6b2e2bad7638ef843b9dcf396aa246838f173d2afaeaac530e0236d3b
22 DIST pyFltk-1.3.3.tar.gz 946763 SHA256 246b92c99b8d5610532456a4c956b355f6140514324916cf35efbe6468c4a188 SHA512 dd4bbef8e82d455237dd085622e78e046ac522449fe63610ee5405c24d759482a89aeab07435fefb5223db78cc1f810f1eca8355afb1d0ff3e4b5e10b73bef8f WHIRLPOOL 8d94349db36cd78eeee722e75c9e1cef088e0f2743bd522eb0496f76faf70a159d6987902f308478a992bd7f2cb62a5bb770a80eee25c3e9feaf08b513956ce1
23
24 diff --git a/dev-python/pyfltk/files/pyfltk-1.3.0-format-security.patch b/dev-python/pyfltk/files/pyfltk-1.3.0-format-security.patch
25 deleted file mode 100644
26 index f29b7b3c922..00000000000
27 --- a/dev-python/pyfltk/files/pyfltk-1.3.0-format-security.patch
28 +++ /dev/null
29 @@ -1,74 +0,0 @@
30 - python/fltk_wrap.cpp | 16 ++++++++--------
31 - 1 file changed, 8 insertions(+), 8 deletions(-)
32 -
33 -diff --git a/python/fltk_wrap.cpp b/python/fltk_wrap.cpp
34 -index 9c16f59..ad42e89 100644
35 ---- a/python/fltk_wrap.cpp
36 -+++ b/python/fltk_wrap.cpp
37 -@@ -5238,13 +5238,13 @@ PyObject *Fl_get_font_sizes_tmp(PyObject *self, PyObject *args)
38 -
39 - const char *fl_vararg_input(const char *label, const char *deflt = 0) {
40 - const char* result = 0;
41 -- result = fl_input(label, deflt);
42 -+ result = fl_input("%s", deflt, label);
43 - return result;
44 - };
45 -
46 - const char *fl_vararg_password(const char *label, const char *deflt = 0) {
47 - const char* result = 0;
48 -- result = fl_password(label, deflt);
49 -+ result = fl_password("%s", deflt, label);
50 - return result;
51 - };
52 -
53 -@@ -5282,20 +5282,20 @@ PyObject *Fl_get_font_sizes_tmp(PyObject *self, PyObject *args)
54 -
55 - void fl_mt_message(const char* text) {
56 - Py_BEGIN_ALLOW_THREADS;
57 -- fl_message(text);
58 -+ fl_message("%s", text);
59 - Py_END_ALLOW_THREADS;
60 - };
61 -
62 - void fl_mt_alert(const char* text) {
63 - Py_BEGIN_ALLOW_THREADS;
64 -- fl_alert(text);
65 -+ fl_alert("%s", text);
66 - Py_END_ALLOW_THREADS;
67 - };
68 -
69 - int fl_mt_ask(const char* text) {
70 - int status = 0;
71 - Py_BEGIN_ALLOW_THREADS;
72 -- status = fl_ask(text);
73 -+ status = fl_ask("%s", text);
74 - Py_END_ALLOW_THREADS;
75 - return status;
76 - };
77 -@@ -5303,7 +5303,7 @@ PyObject *Fl_get_font_sizes_tmp(PyObject *self, PyObject *args)
78 - int fl_mt_choice(const char *q,const char *b0,const char *b1,const char *b2) {
79 - int status = 0;
80 - Py_BEGIN_ALLOW_THREADS;
81 -- status = fl_choice(q, b0, b1, b2);
82 -+ status = fl_choice("%s", b0, b1, b2, q);
83 - Py_END_ALLOW_THREADS;
84 - return status;
85 - };
86 -@@ -5311,7 +5311,7 @@ PyObject *Fl_get_font_sizes_tmp(PyObject *self, PyObject *args)
87 - const char *fl_mt_input(const char *label, const char *deflt = 0) {
88 - const char* result = 0;
89 - Py_BEGIN_ALLOW_THREADS;
90 -- result = fl_input(label, deflt);
91 -+ result = fl_input("%s", deflt, label);
92 - Py_END_ALLOW_THREADS;
93 - return result;
94 - };
95 -@@ -5319,7 +5319,7 @@ PyObject *Fl_get_font_sizes_tmp(PyObject *self, PyObject *args)
96 - const char *fl_mt_password(const char *label, const char *deflt = 0) {
97 - const char* result = 0;
98 - Py_BEGIN_ALLOW_THREADS;
99 -- result = fl_password(label, deflt);
100 -+ result = fl_password("%s", deflt, label);
101 - Py_END_ALLOW_THREADS;
102 - return result;
103 - };
104
105 diff --git a/dev-python/pyfltk/files/pyfltk-1.3.0-linux-3.x-detection.patch b/dev-python/pyfltk/files/pyfltk-1.3.0-linux-3.x-detection.patch
106 deleted file mode 100644
107 index 9b084616c87..00000000000
108 --- a/dev-python/pyfltk/files/pyfltk-1.3.0-linux-3.x-detection.patch
109 +++ /dev/null
110 @@ -1,15 +0,0 @@
111 -http://bugs.gentoo.org/show_bug.cgi?id=375253
112 -
113 -http://lipyrary.blogspot.com/2011/09/python-and-linux-kernel-30-sysplatform.html
114 -
115 ---- setup.py
116 -+++ setup.py
117 -@@ -76,7 +76,7 @@
118 - lib_dir_list = [fltk_lib_dir]
119 - lib_list = ["fltk", "kernel32", "user32", "gdi32", "winspool", "comdlg32", "Comctl32", "advapi32", "shell32", "oleaut32", "odbc32", "odbccp32", "stdc++", "msvcr71"]
120 - #link_arg_list=["-Wl,--enable-runtime-pseudo-reloc", "-Wl,--enable-auto-import"]
121 --elif sys.platform == 'linux2':
122 -+elif sys.platform.startswith('linux'):
123 - print "Building for Linux"
124 - # ugly hack to force distutils to use g++ instead of gcc for linking
125 - from distutils import sysconfig
126
127 diff --git a/dev-python/pyfltk/pyfltk-1.3.0-r2.ebuild b/dev-python/pyfltk/pyfltk-1.3.0-r2.ebuild
128 deleted file mode 100644
129 index 4abf9a2b8f0..00000000000
130 --- a/dev-python/pyfltk/pyfltk-1.3.0-r2.ebuild
131 +++ /dev/null
132 @@ -1,50 +0,0 @@
133 -# Copyright 1999-2015 Gentoo Foundation
134 -# Distributed under the terms of the GNU General Public License v2
135 -
136 -# FIXME: MakeSwig.py execution should be made work from pyfltk-1.1.5.ebuild
137 -
138 -EAPI=5
139 -
140 -PYTHON_COMPAT=( python2_7 )
141 -PYTHON_REQ_USE="threads(+)"
142 -
143 -inherit distutils-r1 flag-o-matic
144 -
145 -MY_P=pyFltk-${PV}
146 -
147 -DESCRIPTION="Python interface to Fltk library"
148 -HOMEPAGE="http://pyfltk.sourceforge.net/"
149 -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
150 -
151 -LICENSE="LGPL-2"
152 -SLOT="0"
153 -KEYWORDS="amd64 arm ppc ppc64 x86"
154 -IUSE="doc"
155 -
156 -DEPEND=">=x11-libs/fltk-1.3.0:1[opengl]"
157 -RDEPEND="${DEPEND}"
158 -
159 -S=${WORKDIR}/${MY_P}
160 -
161 -PATCHES=(
162 - "${FILESDIR}"/${P}-linux-3.x-detection.patch
163 - "${FILESDIR}"/${P}-format-security.patch
164 - "${FILESDIR}"/ignore-func.patch
165 - "${FILESDIR}"/fltk_wrap.patch
166 - )
167 -
168 -python_prepare_all() {
169 - # Disable installation of documentation and tests.
170 - sed -i -e '/package_data=/d' setup.py || die
171 -
172 - distutils-r1_python_prepare_all
173 -}
174 -
175 -python_configure_all() {
176 - append-flags -fno-strict-aliasing
177 -}
178 -
179 -python_install_all() {
180 - use doc && local HTML_DOCS=( fltk/docs/. )
181 - distutils-r1_python_install_all
182 -}