Sync with portage [Wed Oct 21 19:01:30 MSK 2015].

mhiretskiy 87
root 9 years ago
parent 3685168665
commit d2fd77fbff

@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>emacs</herd>
<herd>emacs</herd>
<upstream>
<remote-id type="github">magnars/dash.el</remote-id>
</upstream>
</pkgmetadata>

@ -1,122 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
JAVA_PKG_IUSE="doc"
inherit eutils java-pkg-2 java-ant-2
DESCRIPTION="Mind-mapping software written in Java"
HOMEPAGE="http://freemind.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="groovy latex pdf svg"
CDEPEND="
dev-java/javahelp:0
dev-java/jgoodies-forms:0
dev-java/jibx:0
dev-java/jortho:0
>=dev-java/simplyhtml-0.13.1:0
groovy? ( dev-java/groovy )
latex? ( dev-java/hoteqn:0 )
pdf? (
dev-java/batik:1.8
dev-java/fop:0
)
svg? (
dev-java/batik:1.8
dev-java/fop:0
)"
DEPEND="${CDEPEND}
>=virtual/jdk-1.6
pdf? ( dev-java/avalon-framework:4.2 )
svg? ( dev-java/avalon-framework:4.2 )"
RDEPEND="${CDEPEND}
>=virtual/jre-1.6"
S="${WORKDIR}/${PN}"
java_prepare() {
chmod +x check_for_duplicate_resources.sh || die
# someone got it all wrong (set/unset vs. bool)
sed -i -e 's|<property name="include_latex" value="false"/>||' plugins/build.xml || die
# disable dmg build on Mac OS X
sed -i -e 's:<antcall target="dist_\(macos\|icon\)"/>::p' 'build.xml' || die
use groovy || rm plugins/build_scripting.xml || die
use latex || rm plugins/build_latex.xml || die
use pdf || use svg || rm plugins/build_svg.xml || die
# not compatible with releases of jmapviewer
rm plugins/build_map.xml || die
rm -v $(find "${WORKDIR}" -name '*.jar' -o -name '*.zip') || die
}
src_configure() {
local build_files=( $(find "${S}" -name 'build*.xml') )
JAVA_PKG_BSFIX_NAME="${build_files[@]##*/}"
JAVA_ANT_REWRITE_CLASSPATH="yes"
JAVA_ANT_CLASSPATH_TAGS+=" javadoc"
JAVA_ANT_ENCODING="utf-8"
java-ant-2_src_configure
}
src_compile() {
local svg_deps svg_build_deps
if use pdf || use svg; then
svg_deps="batik-1.8,fop"
svg_build_deps=":$(java-pkg_getjars --build-only avalon-framework-4.2)"
fi
EANT_GENTOO_CLASSPATH="
jgoodies-forms,jibx,javahelp,jortho,simplyhtml
$(usex groovy groovy '')
$(usex latex hoteqn '')
${svg_deps}"
EANT_GENTOO_CLASSPATH_EXTRA="lib/bindings.jar${svg_build_deps}"
EANT_BUILD_TARGET="dist"
EANT_DOC_TARGET="doc"
EANT_ANT_TASKS="jibx"
java-pkg-2_src_compile
}
src_install() {
cd "${WORKDIR}"/bin/dist || die
local dest="/usr/share/${PN}/"
java-pkg_dojar lib/*.jar
if use doc; then
java-pkg_dojavadoc doc/javadoc
rm -r doc/javadoc
fi
insinto "${dest}"
doins -r accessories browser doc plugins patterns.xml
# register plugins for java-dep-check
local plugins="help"
use groovy && plugins+=" script"
use latex && plugins+=" latex"
if use pdf || use svg; then
plugins+=" svg"
fi
local plugin
for plugin in ${plugins}; do
java-pkg_regjar "${ED}"${dest}/plugins/${plugin}/*jar
done
java-pkg_dolauncher ${PN} --java_args "-Dfreemind.base.dir=${EPREFIX}${dest}" \
--pwd "${EPREFIX}${dest}" --main freemind.main.FreeMindStarter
newicon "${S}/images/FreeMindWindowIcon.png" freemind.png
make_desktop_entry freemind Freemind freemind Utility
}

@ -14,7 +14,7 @@ SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
KEYWORDS="amd64 x86"
IUSE="groovy latex pdf svg"
CDEPEND="

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
@ -6,5 +6,7 @@
<name>Thomas Sachau (Tommy[D])</name>
</maintainer>
<herd>java</herd>
<upstream>
<remote-id type="bitbucket">onionnetworks</remote-id>
</upstream>
</pkgmetadata>

@ -18,7 +18,7 @@ else
EKEY_STATE="snap"
fi
inherit enlightenment
inherit enlightenment pax-utils
DESCRIPTION="Enlightenment Foundation Libraries all-in-one package"
@ -256,6 +256,18 @@ src_configure() {
enlightenment_src_configure
}
src_compile() {
if host-is-pax && ! use oldlua ; then
# We need to build the lua code first so we can pax-mark it. #547076
local target='_e_built_sources_target_gogogo_'
printf '%s: $(BUILT_SOURCES)\n' "${target}" >> src/Makefile || die
emake -C src "${target}"
emake -C src bin/elua/elua
pax-mark m src/bin/elua/.libs/elua
fi
enlightenment_src_compile
}
src_install() {
MAKEOPTS+=" -j1"

@ -2,8 +2,9 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
PYTHON_REQ_USE="xml"
inherit libtool flag-o-matic eutils python-r1 autotools prefix multilib-minimal

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>gnome</herd>
<upstream>
<remote-id type="cpe">cpe:/a:xmlsoft:libxml2</remote-id>
</upstream>
<herd>gnome</herd>
<upstream>
<remote-id type="cpe">cpe:/a:xmlsoft:libxml2</remote-id>
</upstream>
</pkgmetadata>

@ -16,7 +16,7 @@ SRC_URI="http://www.mpfr.org/mpfr-${MY_PV}/${MY_P}.tar.xz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
KEYWORDS="alpha amd64 arm ~arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="static-libs"
RDEPEND=">=dev-libs/gmp-4.1.4-r2[${MULTILIB_USEDEP},static-libs?]"

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>ml</herd>
@ -6,4 +6,7 @@
<maintainer>
<email>tomboy64@sina.cn</email>
</maintainer>
<upstream>
<remote-id type="github">mirage/io-page</remote-id>
</upstream>
</pkgmetadata>

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>ml</herd>
@ -6,4 +6,7 @@
<maintainer>
<email>tomboy64@sina.cn</email>
</maintainer>
<upstream>
<remote-id type="github">mirage/mirage-profile</remote-id>
</upstream>
</pkgmetadata>

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>ml</herd>
@ -11,4 +11,7 @@
<flag name="camlp4">Enable support for camlp4</flag>
<flag name="lwt">Enable threads via lwt</flag>
</use>
<upstream>
<remote-id type="github">mirage/ocaml-cstruct</remote-id>
</upstream>
</pkgmetadata>

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>ml</herd>
@ -10,4 +10,7 @@
<flag name="async">support for asynchronous execution</flag>
<flag name="lwt">enable threads via lwt</flag>
</use>
<upstream>
<remote-id type="github">mirage/ocaml-dns</remote-id>
</upstream>
</pkgmetadata>

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>ml</herd>
@ -6,4 +6,7 @@
<maintainer>
<email>tomboy64@sina.cn</email>
</maintainer>
<upstream>
<remote-id type="github">mirage/ocaml-pcap</remote-id>
</upstream>
</pkgmetadata>

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>ml</herd>
@ -9,4 +9,7 @@
<use>
<flag name="allservices">Compile support for all service types</flag>
</use>
<upstream>
<remote-id type="github">mirage/ocaml-uri</remote-id>
</upstream>
</pkgmetadata>

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>ml</herd>
@ -6,4 +6,7 @@
<maintainer>
<email>tomboy64@sina.cn</email>
</maintainer>
<upstream>
<remote-id type="github">OCamlPro/ocplib-endian</remote-id>
</upstream>
</pkgmetadata>

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>ml</herd>
@ -9,4 +9,7 @@
<use>
<flag name="ounit">Enable integration with ounit</flag>
</use>
<upstream>
<remote-id type="github">c-cube/qcheck</remote-id>
</upstream>
</pkgmetadata>

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>ml</herd>
@ -6,4 +6,7 @@
<maintainer>
<email>tomboy64@sina.cn</email>
</maintainer>
<upstream>
<remote-id type="github">rgrinberg/stringext</remote-id>
</upstream>
</pkgmetadata>

@ -3,12 +3,14 @@
# $Id$
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
inherit eutils multibuild multilib python-r1 qmake-utils
DESCRIPTION="Python bindings for the Qt framework"
HOMEPAGE="http://www.riverbankcomputing.com/software/pyqt/intro
HOMEPAGE="
http://www.riverbankcomputing.com/software/pyqt/intro
https://pypi.python.org/pypi/PyQt5"
MY_PN="PyQt-gpl"

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy )
inherit distutils-r1

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
inherit distutils-r1

@ -0,0 +1,16 @@
astropy/tests/helper.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/astropy/tests/helper.py b/astropy/tests/helper.py
index 97d2617..a75db15 100644
--- a/astropy/tests/helper.py
+++ b/astropy/tests/helper.py
@@ -42,7 +42,7 @@ __all__ = ['raises', 'enable_deprecations_as_exceptions', 'remote_data',
'pickle_protocol', 'generic_recursive_equality_test']
-if os.environ.get('ASTROPY_USE_SYSTEM_PYTEST') or '_pytest' in sys.modules:
+if True or os.environ.get('ASTROPY_USE_SYSTEM_PYTEST') or '_pytest' in sys.modules:
import pytest
else:

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
@ -7,4 +7,7 @@
</maintainer>
<longdescription lang="en">
</longdescription>
<upstream>
<remote-id type="pypi">automaton</remote-id>
</upstream>
</pkgmetadata>

@ -3,7 +3,8 @@
# $Id$
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy pypy3 )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
inherit distutils-r1

@ -4,8 +4,9 @@
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy pypy3 )
inherit distutils-r1
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
inherit distutils-r1 eutils
DESCRIPTION="A fast and simple micro-framework for small web-applications"
HOMEPAGE="https://pypi.python.org/pypi/bottle http://bottlepy.org/"
@ -14,11 +15,15 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE=""
IUSE="test"
DEPEND=""
DEPEND="test? ( dev-python/mako[$(python_gen_usedep 'python*')] )"
RDEPEND=""
PATCHES=(
"${FILESDIR}"/${P}-py3.5-backport.patch
)
python_prepare_all() {
sed -i -e '/scripts/d' setup.py || die
@ -34,6 +39,7 @@ python_test() {
}
pkg_postinst() {
optfeature "Templating support" dev-python/mako
elog "Due to problems with bottle.py being in /usr/bin (see bug #474874)"
elog "we do as most other distros and do not install the script anymore."
elog "If you do want/have to call it directly rather than through your app,"

@ -0,0 +1,36 @@
test/test_environ.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/test_environ.py b/test/test_environ.py
old mode 100755
new mode 100644
index 2b8079b..2feebe3
--- a/test/test_environ.py
+++ b/test/test_environ.py
@@ -592,7 +592,7 @@ class TestResponse(unittest.TestCase):
r.set_cookie('name2', 'value', max_age=datetime.timedelta(days=1))
cookies = sorted([value for name, value in r.headerlist
if name.title() == 'Set-Cookie'])
- self.assertEqual(cookies[0], 'name1=value; Max-Age=5')
+ self.assertEqual(cookies[0].lower(), 'name1=value; max-age=5')
self.assertEqual(cookies[1], 'name2=value; Max-Age=86400')
def test_set_cookie_expires(self):
@@ -602,7 +602,7 @@ class TestResponse(unittest.TestCase):
r.set_cookie('name2', 'value', expires=datetime.datetime(1970,1,1,0,0,43))
cookies = sorted([value for name, value in r.headerlist
if name.title() == 'Set-Cookie'])
- self.assertEqual(cookies[0], 'name1=value; expires=Thu, 01 Jan 1970 00:00:42 GMT')
+ self.assertEqual(cookies[0].lower(), 'name1=value; expires=thu, 01 jan 1970 00:00:42 gmt')
self.assertEqual(cookies[1], 'name2=value; expires=Thu, 01 Jan 1970 00:00:43 GMT')
def test_delete_cookie(self):
@@ -611,7 +611,7 @@ class TestResponse(unittest.TestCase):
response.delete_cookie('name')
cookies = [value for name, value in response.headerlist
if name.title() == 'Set-Cookie']
- self.assertTrue('name=;' in cookies[0])
+ self.assertTrue('Max-Age=-1' in cookies[0])
def test_set_header(self):
response = BaseResponse()

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{3,4} )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
inherit distutils-r1

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
inherit distutils-r1

@ -0,0 +1 @@
DIST cycler-0.9.0.tar.gz 3472 SHA256 96dc4ddf27ef62c09990c6196ac1167685e89168042ec0ae4db586de023355bc SHA512 fc48d432eeeff4eb2f148cc3a07ac6affb422481d4d1405fbcb505442d64929ce1cfcbf4cac7e64ce3192b24991dadee591cd01ae8a6118e45d11d316064e6cb WHIRLPOOL 46cba5b7fe4a634ed1e847df90038da4fdeb0ce55ecc811a6adcb71f999417c862c79ff6499984c8bb6403e84f382984ffed6008fdd1b1807491adccc4d5499e

@ -0,0 +1,36 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
inherit distutils-r1
MY_PN="Cycler"
DESCRIPTION="Composable style cycles"
HOMEPAGE="
http://tacaswell.github.io/cycler/
https://pypi.python.org/pypi/Cycler/
http://github.com/matplotlib/cycler"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${P}.tar.gz"
SLOT="0"
LICENSE="BSD"
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
IUSE=""
RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
"
# Not shipped
# https://github.com/matplotlib/cycler/issues/21
RESTRICT=test
python_test() {
${PYTHON} run_tests.py || die
}

@ -0,0 +1,9 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>python</herd>
<upstream>
<remote-id type="github">matplotlib/cycler</remote-id>
<remote-id type="pypi">Cycler</remote-id>
</upstream>
</pkgmetadata>

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{3,4} )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
inherit distutils-r1 flag-o-matic

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{3,4} )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
PYTHON_REQ_USE='readline,sqlite'
inherit distutils-r1 eutils virtualx

@ -2,9 +2,9 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{3,4} pypy pypy3 )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
inherit distutils-r1

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>python</herd>
@ -11,8 +11,9 @@
* logging and tracing of the execution
Joblib is optimized to be fast and robust in particular on large,
long-running functions and has specific optimizations for numpy arrays.
</longdescription>
</longdescription>
<upstream>
<remote-id type="pypi">joblib</remote-id>
<remote-id type="github">joblib/joblib</remote-id>
</upstream>
</pkgmetadata>

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=(python2_7 python3_{3,4} pypy )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy )
inherit distutils-r1

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{3,4} )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
inherit distutils-r1 eutils flag-o-matic toolchain-funcs

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
inherit distutils-r1 eutils versionator

@ -0,0 +1,126 @@
commit f98c4846dc3c15b3d24aafb973764cb9b860d935
Author: Thomas A Caswell <tcaswell@gmail.com>
Date: Sat Jan 10 16:10:29 2015 -0500
MNT : removed deprecated method/kwargs from patheffects
Deprecated in #2462 / 84e0063bd37c629f129d36c548e8ce3a30692cae
attn @pelson had to known-fail a test which was using the
proxy renderer to verify that PathEffectRender was working
correctly.
diff --git a/lib/matplotlib/patheffects.py b/lib/matplotlib/patheffects.py
index 13f8ce0..19e1c4a 100644
--- a/lib/matplotlib/patheffects.py
+++ b/lib/matplotlib/patheffects.py
@@ -10,9 +10,7 @@ from __future__ import (absolute_import, division, print_function,
import six
from matplotlib.backend_bases import RendererBase
-from matplotlib.backends.backend_mixed import MixedModeRenderer
import matplotlib.transforms as mtransforms
-import matplotlib.cbook as cbook
from matplotlib.colors import colorConverter
import matplotlib.patches as mpatches
@@ -42,12 +40,6 @@ class AbstractPathEffect(object):
return transform + self._offset_trans.clear().translate(offset_x,
offset_y)
- def get_proxy_renderer(self, renderer):
- """Return a PathEffectRenderer instance for this PathEffect."""
- cbook.deprecated('v1.4', name='get_proxy_renderer',
- alternative='PathEffectRenderer')
- return PathEffectRenderer([self], renderer)
-
def _update_gc(self, gc, new_gc_dict):
"""
Update the given GraphicsCollection with the given
@@ -219,9 +211,9 @@ class withStroke(Stroke):
class SimplePatchShadow(AbstractPathEffect):
"""A simple shadow via a filled patch."""
- def __init__(self, offset=(2,-2),
- shadow_rgbFace=None, alpha=None, patch_alpha=None,
- rho=0.3, offset_xy=None, **kwargs):
+ def __init__(self, offset=(2, -2),
+ shadow_rgbFace=None, alpha=None,
+ rho=0.3, **kwargs):
"""
Parameters
----------
@@ -241,24 +233,12 @@ class SimplePatchShadow(AbstractPathEffect):
:meth:`AbstractPathEffect._update_gc`.
"""
- if offset_xy is not None:
- cbook.deprecated('v1.4', 'The offset_xy keyword is deprecated. '
- 'Use the offset keyword instead.')
- offset = offset_xy
super(SimplePatchShadow, self).__init__(offset)
if shadow_rgbFace is None:
self._shadow_rgbFace = shadow_rgbFace
else:
self._shadow_rgbFace = colorConverter.to_rgba(shadow_rgbFace)
- if patch_alpha is not None:
- cbook.deprecated('v1.4', 'The patch_alpha keyword is deprecated. '
- 'Use the alpha keyword instead. Transform your '
- 'patch_alpha by alpha = 1 - patch_alpha')
- if alpha is not None:
- raise ValueError("Both alpha and patch_alpha were set. "
- "Just use alpha.")
- alpha = 1 - patch_alpha
if alpha is None:
alpha = 0.3
diff --git a/lib/matplotlib/tests/test_patheffects.py b/lib/matplotlib/tests/test_patheffects.py
index 8298ceb..5af71e5 100644
--- a/lib/matplotlib/tests/test_patheffects.py
+++ b/lib/matplotlib/tests/test_patheffects.py
@@ -5,7 +5,8 @@ import six
import numpy as np
-from matplotlib.testing.decorators import image_comparison, cleanup
+from matplotlib.testing.decorators import (image_comparison, cleanup,
+ knownfailureif)
import matplotlib.pyplot as plt
import matplotlib.patheffects as path_effects
@@ -84,19 +85,7 @@ def test_patheffect3():
@cleanup
-def test_PathEffect_get_proxy():
- pe = path_effects.AbstractPathEffect()
- fig = plt.gcf()
- renderer = fig.canvas.get_renderer()
-
- with mock.patch('matplotlib.cbook.deprecated') as dep:
- proxy_renderer = pe.get_proxy_renderer(renderer)
- assert_equal(proxy_renderer._renderer, renderer)
- assert_equal(proxy_renderer._path_effects, [pe])
- dep.assert_called()
-
-
-@cleanup
+@knownfailureif(True)
def test_PathEffect_points_to_pixels():
fig = plt.figure(dpi=150)
p1, = plt.plot(range(10))
@@ -116,11 +105,9 @@ def test_PathEffect_points_to_pixels():
pe_renderer.points_to_pixels(15))
-def test_SimplePatchShadow_offset_xy():
- with mock.patch('matplotlib.cbook.deprecated') as dep:
- pe = path_effects.SimplePatchShadow(offset_xy=(4, 5))
+def test_SimplePatchShadow_offset():
+ pe = path_effects.SimplePatchShadow(offset=(4, 5))
assert_equal(pe._offset, (4, 5))
- dep.assert_called()
@image_comparison(baseline_images=['collection'])

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
PYTHON_REQ_USE='tk?'
@ -23,6 +23,18 @@ LICENSE="BitstreamVera BSD matplotlib MIT OFL-1.1"
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
IUSE="cairo doc excel examples fltk gtk gtk3 latex pyside qt4 qt5 test tk wxwidgets"
PY2_FLAGS="|| ( $(python_gen_useflags python2_7) )"
REQUIRED_USE="
doc? ( ${PY2_FLAGS} )
excel? ( ${PY2_FLAGS} )
fltk? ( ${PY2_FLAGS} )
gtk? ( ${PY2_FLAGS} )
wxwidgets? ( ${PY2_FLAGS} )
test? (
cairo fltk latex pyside qt5 qt4 tk wxwidgets
|| ( gtk gtk3 )
)"
# #456704 -- a lot of py2-only deps
PY2_USEDEP=$(python_gen_usedep python2_7)
COMMON_DEPEND="
@ -93,18 +105,6 @@ RDEPEND="${COMMON_DEPEND}
qt5? ( dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}] )
"
PY2_FLAGS="|| ( $(python_gen_useflags python2_7) )"
REQUIRED_USE="
doc? ( ${PY2_FLAGS} )
excel? ( ${PY2_FLAGS} )
fltk? ( ${PY2_FLAGS} )
gtk? ( ${PY2_FLAGS} )
wxwidgets? ( ${PY2_FLAGS} )
test? (
cairo fltk latex pyside qt5 qt4 tk wxwidgets
|| ( gtk gtk3 )
)"
RESTRICT="mirror"
# A few C++ source files are written to srcdir.
@ -126,6 +126,10 @@ use_setup() {
fi
}
PATCHES=(
"${FILESDIR}"/${P}-backport-GH5291-2462.patch
)
python_prepare_all() {
# Generates test failures, but fedora does it
# local PATCHES=(

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
PYTHON_REQ_USE='tk?'
@ -24,9 +24,22 @@ LICENSE="BitstreamVera BSD matplotlib MIT OFL-1.1"
KEYWORDS=""
IUSE="cairo doc excel examples fltk gtk gtk3 latex pyside qt4 qt5 test tk wxwidgets"
PY2_FLAGS="|| ( $(python_gen_useflags python2_7) )"
REQUIRED_USE="
doc? ( ${PY2_FLAGS} )
excel? ( ${PY2_FLAGS} )
fltk? ( ${PY2_FLAGS} )
gtk? ( ${PY2_FLAGS} )
wxwidgets? ( ${PY2_FLAGS} )
test? (
cairo fltk latex pyside qt5 qt4 tk wxwidgets
|| ( gtk gtk3 )
)"
# #456704 -- a lot of py2-only deps
PY2_USEDEP=$(python_gen_usedep python2_7)
COMMON_DEPEND="
dev-python/cycler[${PYTHON_USEDEP}]
>=dev-python/numpy-1.6[${PYTHON_USEDEP}]
dev-python/python-dateutil:0[${PYTHON_USEDEP}]
dev-python/pytz[${PYTHON_USEDEP}]
@ -94,18 +107,6 @@ RDEPEND="${COMMON_DEPEND}
qt5? ( dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}] )
"
PY2_FLAGS="|| ( $(python_gen_useflags python2_7) )"
REQUIRED_USE="
doc? ( ${PY2_FLAGS} )
excel? ( ${PY2_FLAGS} )
fltk? ( ${PY2_FLAGS} )
gtk? ( ${PY2_FLAGS} )
wxwidgets? ( ${PY2_FLAGS} )
test? (
cairo fltk latex pyside qt5 qt4 tk wxwidgets
|| ( gtk gtk3 )
)"
RESTRICT="mirror"
# A few C++ source files are written to srcdir.

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{3,4} pypy pypy3 )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
inherit distutils-r1
@ -14,7 +14,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
SLOT="0"
LICENSE="BSD"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
IUSE="test"
RDEPEND=""

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>python</herd>
@ -12,8 +12,10 @@
picklable Python object as well as optimized communications of
Python object exposing the single-segment buffer interface (NumPy
arrays, builtin bytes/string/array objects).
</longdescription>
</longdescription>
<upstream>
<remote-id type="google-code">mpi4py</remote-id>
<remote-id type="bitbucket">mpi4py</remote-id>
<remote-id type="pypi">mpi4py</remote-id>
</upstream>
</pkgmetadata>

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
inherit distutils-r1

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
inherit distutils-r1

@ -0,0 +1,127 @@
From 3a816a4db9b498eb64eb837fdcca0fa8ddbe063e Mon Sep 17 00:00:00 2001
From: Allan Haldane <allan.haldane@gmail.com>
Date: Sat, 17 Oct 2015 14:00:36 -0400
Subject: [PATCH] BUG: recarrays viewed as subarrays don't convert to np.record
type
Record array views were updated in #5943 to return np.record dtype
where possible, but forgot about the case of sub-arrays.
That's fixed here, so accessing subarray fields by attribute or index
works sensibly, as well as viewing a record array as a subarray dtype,
and printing subarrays.
This also happens to fix #6459, since it affects the same lines.
Fixes #6497 #6459
---
numpy/core/records.py | 30 +++++++++++++++++++-----------
numpy/core/tests/test_records.py | 23 +++++++++++++++++++++++
2 files changed, 42 insertions(+), 11 deletions(-)
diff --git a/numpy/core/records.py b/numpy/core/records.py
index 4a99553..4ce3fe9 100644
--- a/numpy/core/records.py
+++ b/numpy/core/records.py
@@ -448,12 +448,14 @@ def __getattribute__(self, attr):
# At this point obj will always be a recarray, since (see
# PyArray_GetField) the type of obj is inherited. Next, if obj.dtype is
- # non-structured, convert it to an ndarray. If obj is structured leave
- # it as a recarray, but make sure to convert to the same dtype.type (eg
- # to preserve numpy.record type if present), since nested structured
- # fields do not inherit type.
+ # non-structured, convert it to an ndarray. Then if obj is structured
+ # with void type convert it to the same dtype.type (eg to preserve
+ # numpy.record type if present), since nested structured fields do not
+ # inherit type. Don't do this for non-void structures though.
if obj.dtype.fields:
- return obj.view(dtype=(self.dtype.type, obj.dtype.fields))
+ if issubclass(obj.dtype.type, nt.void):
+ return obj.view(dtype=(self.dtype.type, obj.dtype))
+ return obj
else:
return obj.view(ndarray)
@@ -463,8 +465,9 @@ def __getattribute__(self, attr):
# Thus, you can't create attributes on-the-fly that are field names.
def __setattr__(self, attr, val):
- # Automatically convert (void) dtypes to records.
- if attr == 'dtype' and issubclass(val.type, nt.void):
+ # Automatically convert (void) structured types to records
+ # (but not non-void structures, subarrays, or non-structured voids)
+ if attr == 'dtype' and issubclass(val.type, nt.void) and val.fields:
val = sb.dtype((record, val))
newattr = attr not in self.__dict__
@@ -499,7 +502,9 @@ def __getitem__(self, indx):
# we might also be returning a single element
if isinstance(obj, ndarray):
if obj.dtype.fields:
- return obj.view(dtype=(self.dtype.type, obj.dtype.fields))
+ if issubclass(obj.dtype.type, nt.void):
+ return obj.view(dtype=(self.dtype.type, obj.dtype))
+ return obj
else:
return obj.view(type=ndarray)
else:
@@ -519,11 +524,14 @@ def __repr__(self):
# If this is a full record array (has numpy.record dtype),
# or if it has a scalar (non-void) dtype with no records,
# represent it using the rec.array function. Since rec.array
- # converts dtype to a numpy.record for us, use only dtype.descr,
- # not repr(dtype).
+ # converts dtype to a numpy.record for us, convert back
+ # to non-record before printing
+ plain_dtype = self.dtype
+ if plain_dtype.type is record:
+ plain_dtype = sb.dtype((nt.void, plain_dtype))
lf = '\n'+' '*len("rec.array(")
return ('rec.array(%s, %sdtype=%s)' %
- (lst, lf, repr(self.dtype.descr)))
+ (lst, lf, plain_dtype))
else:
# otherwise represent it using np.array plus a view
# This should only happen if the user is playing
diff --git a/numpy/core/tests/test_records.py b/numpy/core/tests/test_records.py
index 7a18f29..290bc4f 100644
--- a/numpy/core/tests/test_records.py
+++ b/numpy/core/tests/test_records.py
@@ -121,6 +121,23 @@ def test_recarray_views(self):
assert_equal(type(rv), np.recarray)
assert_equal(rv.dtype.type, np.record)
+ # check that accessing nested structures keep record type, but
+ # not for subarrays, non-void structures, non-structured voids
+ test_dtype = [('a', 'f4,f4'), ('b', 'V8'), ('c', ('f4',2)),
+ ('d', ('i8', 'i4,i4'))]
+ r = np.rec.array([((1,1), b'11111111', [1,1], 1),
+ ((1,1), b'11111111', [1,1], 1)], dtype=test_dtype)
+ assert_equal(r.a.dtype.type, np.record)
+ assert_equal(r.b.dtype.type, np.void)
+ assert_equal(r.c.dtype.type, np.float32)
+ assert_equal(r.d.dtype.type, np.int64)
+ # check the same, but for views
+ r = np.rec.array(np.ones(4, dtype='i4,i4'))
+ assert_equal(r.view('f4,f4').dtype.type, np.record)
+ assert_equal(r.view(('i4',2)).dtype.type, np.int32)
+ assert_equal(r.view('V8').dtype.type, np.void)
+ assert_equal(r.view(('i8', 'i4,i4')).dtype.type, np.int64)
+
#check that we can undo the view
arrs = [np.ones(4, dtype='f4,i4'), np.ones(4, dtype='f8')]
for arr in arrs:
@@ -135,6 +152,12 @@ def test_recarray_repr(self):
a = np.array(np.ones(4, dtype='f8'))
assert_(repr(np.rec.array(a)).startswith('rec.array'))
+ # check that the 'np.record' part of the dtype isn't shown
+ a = np.rec.array(np.ones(3, dtype='i4,i4'))
+ assert_equal(repr(a).find('numpy.record'), -1)
+ a = np.rec.array(np.ones(3, dtype='i4'))
+ assert_(repr(a).find('dtype=int32') != -1)
+
def test_recarray_from_names(self):
ra = np.rec.array([
(1, 'abc', 3.7000002861022949, 0),

@ -0,0 +1,73 @@
From 0d25dc4175e00cdaf9545e8b1b1a5b879cf67248 Mon Sep 17 00:00:00 2001
From: Ethan Kruse <eakruse@uw.edu>
Date: Mon, 19 Oct 2015 13:29:01 -0700
Subject: [PATCH 1/2] Potential fix for #6462
---
numpy/lib/function_base.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index 555d083..fef69df 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -3339,7 +3339,7 @@ def _median(a, axis=None, out=None, overwrite_input=False):
indexer[axis] = slice(index-1, index+1)
# Check if the array contains any nan's
- if np.issubdtype(a.dtype, np.inexact):
+ if np.issubdtype(a.dtype, np.inexact) and sz > 0:
# warn and return nans like mean would
rout = mean(part[indexer], axis=axis, out=out)
part = np.rollaxis(part, axis, part.ndim)
From 59d859fb2160950ac93267d7461ad952145c8724 Mon Sep 17 00:00:00 2001
From: Ethan Kruse <eakruse@uw.edu>
Date: Tue, 20 Oct 2015 11:40:49 -0700
Subject: [PATCH 2/2] Added tests for median of empty arrays
---
numpy/lib/tests/test_function_base.py | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py
index 4516c92..aa41c1f 100644
--- a/numpy/lib/tests/test_function_base.py
+++ b/numpy/lib/tests/test_function_base.py
@@ -2597,6 +2597,36 @@ def test_nan_behavior(self):
assert_equal(np.median(a, (0, 2)), b)
assert_equal(len(w), 1)
+ def test_empty(self):
+ # empty arrays
+ a = np.array([], dtype=float)
+ with warnings.catch_warnings(record=True) as w:
+ warnings.filterwarnings('always', '', RuntimeWarning)
+ assert_equal(np.median(a), np.nan)
+ assert_(w[0].category is RuntimeWarning)
+
+ # multiple dimensions
+ a = np.array([], dtype=float, ndmin=3)
+ # no axis
+ with warnings.catch_warnings(record=True) as w:
+ warnings.filterwarnings('always', '', RuntimeWarning)
+ assert_equal(np.median(a), np.nan)
+ assert_(w[0].category is RuntimeWarning)
+
+ # axis 0 and 1
+ b = np.array([], dtype=float, ndmin=2)
+ with warnings.catch_warnings(record=True) as w:
+ warnings.filterwarnings('always', '', RuntimeWarning)
+ assert_equal(np.median(a, axis=0), b)
+ assert_equal(np.median(a, axis=1), b)
+
+ # axis 2
+ b = np.array(np.nan, dtype=float, ndmin=2)
+ with warnings.catch_warnings(record=True) as w:
+ warnings.filterwarnings('always', '', RuntimeWarning)
+ assert_equal(np.median(a, axis=2), b)
+ assert_(w[0].category is RuntimeWarning)
+
def test_object(self):
o = np.arange(7.)
assert_(type(np.median(o.astype(object))), float)

@ -0,0 +1,154 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
FORTRAN_NEEDED=lapack
inherit distutils-r1 eutils flag-o-matic fortran-2 multilib multiprocessing toolchain-funcs versionator
DOC_PV="1.9.1"
DOC_P="${PN}-${DOC_PV}"
DESCRIPTION="Fast array and numerical python library"
HOMEPAGE="http://www.numpy.org/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
doc? (
http://docs.scipy.org/doc/${DOC_P}/${PN}-html-${DOC_PV}.zip
http://docs.scipy.org/doc/${DOC_P}/${PN}-ref-${DOC_PV}.pdf
http://docs.scipy.org/doc/${DOC_P}/${PN}-user-${DOC_PV}.pdf
)"
# It appears the docs haven't been upgraded, still @ 1.8.1
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
IUSE="doc lapack test"
RDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
lapack? ( virtual/cblas virtual/lapack )"
DEPEND="${RDEPEND}
doc? ( app-arch/unzip )
lapack? ( virtual/pkgconfig )
test? ( >=dev-python/nose-1.0[${PYTHON_USEDEP}] )"
# Uses distutils.command.config.
DISTUTILS_IN_SOURCE_BUILD=1
PATCHES=(
"${FILESDIR}"/${PN}-1.9.2-no-hardcode-blas.patch
"${FILESDIR}"/${P}-backport-1.patch
"${FILESDIR}"/${P}-backport-2.patch
)
src_unpack() {
default
if use doc; then
unzip -qo "${DISTDIR}"/${PN}-html-${DOC_PV}.zip -d html || die
fi
}
pc_incdir() {
$(tc-getPKG_CONFIG) --cflags-only-I $@ | \
sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||'
}
pc_libdir() {
$(tc-getPKG_CONFIG) --libs-only-L $@ | \
sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||'
}
pc_libs() {
$(tc-getPKG_CONFIG) --libs-only-l $@ | \
sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \
-e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \
| tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||'
}
python_prepare_all() {
if use lapack; then
append-ldflags "$($(tc-getPKG_CONFIG) --libs-only-other cblas lapack)"
local libdir="${EPREFIX}"/usr/$(get_libdir)
# make sure _dotblas.so gets built
sed -i -e '/NO_ATLAS_INFO/,+1d' numpy/core/setup.py || die
cat >> site.cfg <<-EOF
[blas]
include_dirs = $(pc_incdir cblas)
library_dirs = $(pc_libdir cblas blas):${libdir}
blas_libs = $(pc_libs cblas blas)
[lapack]
library_dirs = $(pc_libdir lapack):${libdir}
lapack_libs = $(pc_libs lapack)
EOF
else
export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None
fi
export CC="$(tc-getCC) ${CFLAGS}"
append-flags -fno-strict-aliasing
# See progress in http://projects.scipy.org/scipy/numpy/ticket/573
# with the subtle difference that we don't want to break Darwin where
# -shared is not a valid linker argument
if [[ ${CHOST} != *-darwin* ]]; then
append-ldflags -shared
fi
# only one fortran to link with:
# linking with cblas and lapack library will force
# autodetecting and linking to all available fortran compilers
append-fflags -fPIC
if use lapack; then
NUMPY_FCONFIG="config_fc --noopt --noarch"
# workaround bug 335908
[[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95"
fi
# don't version f2py, we will handle it.
sed -i -e '/f2py_exe/s:+os\.path.*$::' numpy/f2py/setup.py || die
# we don't have f2py-3.3
sed \
-e "/f2py_cmd/s:'f2py'.*:'f2py':g" \
-i numpy/tests/test_scripts.py || die
distutils-r1_python_prepare_all
}
python_compile() {
distutils-r1_python_compile -j $(makeopts_jobs) ${NUMPY_FCONFIG}
}
python_test() {
distutils_install_for_testing ${NUMPY_FCONFIG}
cd "${TMPDIR}" || die
${EPYTHON} -c "
import numpy, sys
r = numpy.test(label='full', verbose=3)
sys.exit(0 if r.wasSuccessful() else 1)" || die "Tests fail with ${EPYTHON}"
}
python_install() {
distutils-r1_python_install ${NUMPY_FCONFIG}
}
python_install_all() {
distutils-r1_python_install_all
dodoc COMPATIBILITY DEV_README.txt THANKS.txt
if use doc; then
dohtml -r "${WORKDIR}"/html/*
dodoc "${DISTDIR}"/${PN}-{user,ref}-${DOC_PV}.pdf
fi
# absent in 1.9
#docinto f2py
#dodoc numpy/f2py/docs/*.txt
#doman numpy/f2py/f2py.1
}

@ -1,2 +1,2 @@
DIST oct2py-0.4.0.tar.gz 107828 SHA256 f44da1ff41d8b21806976eaef500f1690c9c023bcd2be9a34d2dbbf26e442f00 SHA512 d62b6c7cc0f3a61e78cd4cd6a43d93a90f5d69187eb946847aa3f1df50edf6402ee845c51094696667afc29c284d6ef6e9af58d74b62ec177c2e4d18108c615e WHIRLPOOL 96da3725d4a53fa74791c219bd03d6adc49f11e47deb0ef864c86acc15f52145e303d4ac669667e79ef90dbb4af4cc7df298f16ebff7d5c20d02710c57c7738b
DIST oct2py-1.3.0.tar.gz 321768 SHA256 f0cae7aae111631c0fffb7f2511ee14fb847b4f501340e8506b0805b50c32f28 SHA512 b9a8896fa463356a08dee7cd2db97bedd5487d93ed33fe73e2c5205118915eac86dcd51dea42dc7338a7f6486704d1c8cb3259c3d8a2b53230c50608d1d043d8 WHIRLPOOL f06214e8005281fec801856596f076a5ad0c35bc3bdc62db3057b320ac1ef8ab07a7f073c4e9ced62ce336c64e773128d333fd0bb26fb891ea6931b84ee22001
DIST oct2py-3.3.3.tar.gz 666775 SHA256 0b881a25043d7be713dab5d38b0f96acef5a4cf8130e5726cb9a6bec78448180 SHA512 02c80be8480c5b846a4269155c54fbea1ce8642c8bba0ecb6074a2468b20b930f8ba6d5eaae6a8274a02c1c6719e5b96ee5a32c0c4c0697c028c98ffa327c8e5 WHIRLPOOL 6eb6802b07b55a2ad0d56a8728262e1bc5720a0d9fab04e5af3e961e6a68821e9c2b52905507439ba388d6761aea047d45526fb39d1e50ca3b2104b20c20eb27

@ -1,13 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>sci-mathematics</herd>
<longdescription lang="en">
<herd>sci-mathematics</herd>
<longdescription lang="en">
Uses Octave to run commands and m-files. Supports any Octave
function or m-file, passing the data seamlessly between Python and
Octave using MAT files.
</longdescription>
<upstream>
<remote-id type="pypi">oct2py</remote-id>
</upstream>
</longdescription>
<upstream>
<remote-id type="pypi">oct2py</remote-id>
<remote-id type="github">blink1073/oct2py</remote-id>
</upstream>
</pkgmetadata>

@ -1,45 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit distutils-r1
DESCRIPTION="Python to GNU Octave bridge"
HOMEPAGE="https://pypi.python.org/pypi/oct2py"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
IUSE="doc examples test"
RDEPEND="
sci-libs/scipy[${PYTHON_USEDEP}]
sci-mathematics/octave"
DEPEND="${RDEPEND}
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
test? ( dev-python/nose[${PYTHON_USEDEP}] )"
python_compile_all() {
if use doc; then
sphinx-build doc html || die
fi
}
python_test() {
nosetests || die "Tests fail with ${EPYTHON}"
}
python_install_all() {
use doc && local HTML_DOCS=( html/. )
distutils-r1_python_install_all
if use examples; then
insinto /usr/share/${PF}/
doins -r example
fi
}

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
PYTHON_COMPAT=( python2_7 python3_{3,4} )
inherit distutils-r1
@ -19,7 +19,7 @@ IUSE="doc examples test"
RDEPEND="
sci-libs/scipy[${PYTHON_USEDEP}]
sci-mathematics/octave"
<sci-mathematics/octave-3.8"
DEPEND="${RDEPEND}
doc? (
dev-python/sphinx-bootstrap-theme[${PYTHON_USEDEP}]
@ -54,10 +54,6 @@ python_test() {
python_install_all() {
use doc && local HTML_DOCS=( html/. )
use examples && EXAMPLES=( example/. )
distutils-r1_python_install_all
if use examples; then
insinto /usr/share/doc/${PF}
doins -r example
fi
}

@ -1,52 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
inherit distutils-r1
DESCRIPTION="Python to GNU Octave bridge"
HOMEPAGE="https://pypi.python.org/pypi/oct2py"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
IUSE="doc examples test"
RDEPEND="
sci-libs/scipy[${PYTHON_USEDEP}]
sci-mathematics/octave"
DEPEND="${RDEPEND}
doc? (
dev-python/sphinx-bootstrap-theme[${PYTHON_USEDEP}]
dev-python/numpydoc[${PYTHON_USEDEP}]
)
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/ipython[${PYTHON_USEDEP}]
)"
python_compile_all() {
if use doc; then
sphinx-build docs html || die
fi
}
python_test() {
nosetests oct2py --with-doctest || die "Tests fail with ${EPYTHON}"
iptest -v IPython.extensions.tests.test_octavemagic || die "Tests fail with ${EPYTHON}"
}
python_install_all() {
use doc && local HTML_DOCS=( html/. )
distutils-r1_python_install_all
if use examples; then
insinto /usr/share/doc/${PF}
doins -r example
fi
}

@ -0,0 +1,63 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
inherit distutils-r1
DESCRIPTION="Python to GNU Octave bridge"
HOMEPAGE="
https://pypi.python.org/pypi/oct2py
http://pythonhosted.org/oct2py/
http://github.com/blink1073/oct2py"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
IUSE="doc examples test"
RDEPEND="
>=dev-python/numpy-1.7.1[${PYTHON_USEDEP}]
>=sci-libs/scipy-0.12[${PYTHON_USEDEP}]
sci-mathematics/octave"
DEPEND="${RDEPEND}
doc? (
dev-python/sphinx-bootstrap-theme[${PYTHON_USEDEP}]
dev-python/numpydoc[${PYTHON_USEDEP}]
)
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/ipython[${PYTHON_USEDEP}]
)"
python_prepare_all() {
# https://github.com/blink1073/oct2py/issues/77
sed \
-e 's:test_help:disabled:g' \
-i oct2py/tests/test_usage.py || die
distutils-r1_python_prepare_all
}
python_compile_all() {
if use doc; then
sphinx-build docs html || die
fi
}
python_test() {
unset DISPLAY
if [[ ${EPYTHON} == python2.7 ]]; then
local OPTIONS="--with-doctest"
fi
nosetests --exe -v oct2py ${OPTIONS} || die "Tests fail with ${EPYTHON}"
}
python_install_all() {
use doc && local HTML_DOCS=( html/. )
use examples && EXAMPLES=( example/. )
distutils-r1_python_install_all
}

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{3,4} )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
inherit distutils-r1 vcs-snapshot

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{3,4} )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
inherit distutils-r1 eutils flag-o-matic virtualx
@ -39,14 +39,13 @@ DEPEND="${CDEPEND}
dev-python/lxml[${PYTHON_USEDEP}]
dev-python/matplotlib[${PYTHON_USEDEP}]
>=dev-python/openpyxl-1.6.1[${PYTHON_USEDEP}]
dev-python/openpyxl[${PYTHON_USEDEP}]
>=dev-python/pytables-3.0.0[${PYTHON_USEDEP}]
dev-python/pytz[${PYTHON_USEDEP}]
dev-python/rpy[${PYTHON_USEDEP}]
sci-libs/scipy[${PYTHON_USEDEP}]
>=dev-python/sphinx-1.2.1[${PYTHON_USEDEP}]
dev-python/xlrd[$(python_gen_usedep 'python2_7')]
dev-python/xlwt[$(python_gen_usedep 'python2_7')]
dev-python/xlrd[${PYTHON_USEDEP}]
dev-python/xlwt[${PYTHON_USEDEP}]
x11-misc/xclip
)
test? (
@ -66,8 +65,8 @@ RDEPEND="${CDEPEND}
dev-python/pytz[${PYTHON_USEDEP}]
sci-libs/scipy[${PYTHON_USEDEP}]
excel? (
dev-python/xlrd[$(python_gen_usedep 'python2_7')]
dev-python/xlwt[$(python_gen_usedep 'python2_7')]
dev-python/xlrd[${PYTHON_USEDEP}]
dev-python/xlwt[${PYTHON_USEDEP}]
|| (
dev-python/xlsxwriter[${PYTHON_USEDEP}]
>=dev-python/openpyxl-1.6.1[${PYTHON_USEDEP}]
@ -85,6 +84,11 @@ python_prepare_all() {
# Prevent un-needed download during build
sed -e "/^ 'sphinx.ext.intersphinx',/d" -i doc/source/conf.py || die
# https://github.com/pydata/pandas/issues/11299
sed \
-e 's:testOdArray:disable:g' \
-i pandas/io/tests/test_json/test_ujson.py || die
distutils-r1_python_prepare_all
}
@ -103,7 +107,7 @@ python_test() {
[[ -n "${FAST_PANDAS}" ]] && test_pandas+=' and not slow'
pushd "${BUILD_DIR}"/lib > /dev/null
VIRTUALX_COMMAND="nosetests"
PYTHONPATH=. MPLCONFIGDIR=. HOME=. \
PYTHONPATH=. MPLCONFIGDIR=. \
virtualmake --verbosity=3 -A "${test_pandas}" pandas
popd > /dev/null
}

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy )
inherit distutils-r1

@ -5,7 +5,8 @@
EAPI=5
# In Python 3.4, pathlib is now part of the standard library.
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
PYTHON_COMPAT=( python{2_7,3_3} pypy )
inherit distutils-r1
DESCRIPTION="Object-oriented filesystem paths"

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
inherit distutils-r1

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{3,4} pypy )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy )
PYTHON_REQ_USE='tk?'
inherit distutils-r1 eutils virtualx

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{3,4} pypy )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy )
inherit distutils-r1

@ -3,7 +3,8 @@
# $Id$
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
inherit distutils-r1 flag-o-matic
@ -21,8 +22,10 @@ IUSE="debug doc examples"
RDEPEND=">=dev-db/postgresql-8.1"
DEPEND="${RDEPEND}
doc? ( dev-python/sphinx[${PYTHON_USEDEP}]
>=dev-python/python-docs-2.7.6-r1:2.7 )"
doc? (
dev-python/sphinx[${PYTHON_USEDEP}]
>=dev-python/python-docs-2.7.6-r1:2.7
)"
RESTRICT="test"
# Remove py3.2 entry from intersphinx setting

@ -0,0 +1,15 @@
tests/memory_mgmt_test.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/memory_mgmt_test.py b/tests/memory_mgmt_test.py
index 08636ae..a7b8a21 100644
--- a/tests/memory_mgmt_test.py
+++ b/tests/memory_mgmt_test.py
@@ -258,4 +258,6 @@ class MemoryMgmtTest(unittest.TestCase):
gc.collect()
new_object_count = len(gc.get_objects())
- self.assertEqual(new_object_count, object_count)
+ # it seems that GC sometimes collects something that existed
+ # before this test ran, GH issues #273/#274
+ self.assertTrue(new_object_count in (object_count, object_count-1))

@ -1,4 +1,4 @@
<?xml version='1.0' encoding='UTF-8'?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>python</herd>

@ -4,7 +4,7 @@
EAPI=5
# The selftests fail with pypy, and urlgrabber segfaults for me.
PYTHON_COMPAT=( python2_7 python3_{3,4} )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
inherit distutils-r1
@ -23,10 +23,12 @@ IUSE="curl_ssl_gnutls curl_ssl_libressl curl_ssl_nss +curl_ssl_openssl examples
# If curl uses gnutls, depend on at least gnutls 2.11.0 so that pycurl
# does not need to initialize gcrypt threading and we do not need to
# explicitly link to libgcrypt.
RDEPEND=">=net-misc/curl-7.25.0-r1[ssl=]
RDEPEND="
>=net-misc/curl-7.25.0-r1[ssl=]
ssl? (
net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_libressl(-)=,curl_ssl_nss(-)=,curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-),-curl_ssl_polarssl(-)]
curl_ssl_gnutls? ( >=net-libs/gnutls-2.11.0 ) )"
curl_ssl_gnutls? ( >=net-libs/gnutls-2.11.0 )
)"
# bottle-0.12.7: https://github.com/pycurl/pycurl/issues/180
# bottle-0.12.7: https://github.com/defnull/bottle/commit/f35197e2a18de1672831a70a163fcfd38327a802
@ -38,6 +40,10 @@ DEPEND="${RDEPEND}
# Needed for individual runs of testsuite by python impls.
DISTUTILS_IN_SOURCE_BUILD=1
PATCHES=(
"${FILESDIR}"/${P}-py3.5-backport.patch
)
python_prepare_all() {
sed -e "/setup_args\['data_files'\] = /d" -i setup.py || die
distutils-r1_python_prepare_all
@ -54,6 +60,9 @@ python_compile() {
}
python_test() {
# Python3.5 test problems
# https://github.com/pycurl/pycurl/issues/273
# https://github.com/pycurl/pycurl/issues/274
emake -j1 do-test
}

@ -4,12 +4,12 @@
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy )
inherit distutils-r1
DESCRIPTION="A high-level Python wrapper for Kerberos/GSSAPI operations"
HOMEPAGE="http://trac.calendarserver.org/"
HOMEPAGE="http://trac.calendarserver.org/wiki/PyKerberos"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}-1.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
@ -17,6 +17,7 @@ SLOT="0"
KEYWORDS="~amd64 ~hppa ~ppc64 ~x86"
IUSE=""
DEPEND="app-crypt/mit-krb5
dev-python/setuptools[${PYTHON_USEDEP}]"
DEPEND="
app-crypt/mit-krb5
dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}"

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python{2_7,3_4} pypy )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy )
inherit check-reqs distutils-r1
@ -18,7 +18,7 @@ KEYWORDS="~amd64 ~hppa ~x86"
IUSE="doc kerberos test"
RDEPEND="
kerberos? ( dev-python/pykerberos )
kerberos? ( dev-python/pykerberos[${PYTHON_USEDEP}] )
"
DEPEND="
${RDEPEND}
@ -55,20 +55,13 @@ python_compile_all() {
fi
}
src_test() {
python_test() {
# Yes, we need TCP/IP for that...
local DB_IP=127.0.0.1
local DB_PORT=27000
export DB_IP DB_PORT
# 1.5G of disk space per run.
local DISTUTILS_NO_PARALLEL_BUILD=1
distutils-r1_src_test
}
python_test() {
local dbpath=${TMPDIR}/mongo.db
local logpath=${TMPDIR}/mongod.log
@ -114,11 +107,11 @@ python_test() {
fi
DB_PORT2=$(( DB_PORT + 1 )) DB_PORT3=$(( DB_PORT + 2 )) esetup.py test || failed=1
mongod --dbpath "${dbpath}" --shutdown
mongod --dbpath "${dbpath}" --shutdown || die
[[ ${failed} ]] && die "Tests fail with ${EPYTHON}"
rm -rf "${dbpath}"
rm -rf "${dbpath}" || die
}
python_install_all() {

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{3,4} )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
MY_PN=tables
MY_P=${MY_PN}-${PV}

@ -4,11 +4,11 @@
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy pypy3 )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
inherit distutils-r1
DESCRIPTION="Adds support for tests durring installation of setup.py files"
DESCRIPTION="Adds support for tests during installation of setup.py files"
HOMEPAGE="https://pypi.python.org/pypi/pytest-runner https://bitbucket.org/pytest-dev/pytest-runner"
SRC_URI="mirror://pypi/p/${PN}/${P}.tar.gz"

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{3,4} )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
inherit distutils-r1 toolchain-funcs
@ -14,7 +14,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm ~mips ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
IUSE="doc examples green test"
# Ensures installation of gevent for test phase

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{3,4} pypy pypy3)
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3)
inherit distutils-r1

@ -1 +1,2 @@
DIST rpy2-2.6.2.tar.gz 171655 SHA256 2e28886b2a6a138cfc057f9b7cddade253e61c9abb43f0eae20dace58b6dfced SHA512 7a060ccc26a03dc93d75edb85d92f1ab31af96ba140932ff8e699cd5855e6078b1e0ffceed135d32deb6c8f273ebcc8b02be38e9b8fc66778cc2adab5745f542 WHIRLPOOL 26d9a9c13e4efa22a232507cfff0b13d650e0528f635dfa9fe464cde50462d2d94a668d1566b537bafaa5462eb66e96005296c6295308b1e3d1c5639da2879b6
DIST rpy2-2.7.2.tar.gz 176481 SHA256 b8c376c2bb78a602effa44c654633f7a11b9bcc582aa3d4828a11302bc290e21 SHA512 d282e81cdd4c69ac4655d019151e2c7ce0aaeeb55479f7f7405ed16ac4124d2f3eedccb37a7d563deb0d8beb69e5ede4d6702a3872b554965442a38ec545f1f4 WHIRLPOOL f19182a1ef392d1b4029ebd984d8828d92ea3bf14c9375490fa099d7a2f82e99c75eb6475dba1d11270bf76dc94eee490157e22ab2c083c51a90b3c1d1a56b7a

@ -1,4 +1,4 @@
<?xml version='1.0' encoding='UTF-8'?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>python</herd>

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
PYTHON_REQ_USE="sqlite"
inherit distutils-r1 flag-o-matic

@ -0,0 +1,53 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
PYTHON_REQ_USE="sqlite"
inherit distutils-r1 flag-o-matic
MYSLOT=2
MY_PN=${PN}${MYSLOT}
MY_P=${MY_PN}-${PV}
DESCRIPTION="Python interface to the R Programming Language"
HOMEPAGE="http://rpy.sourceforge.net/ https://pypi.python.org/pypi/rpy2"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
LICENSE="AGPL-3 GPL-2 LGPL-2.1 MPL-1.1"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="test"
RDEPEND="
>=dev-lang/R-3.1
dev-python/numpy[${PYTHON_USEDEP}]
>=dev-python/pandas-0.13.1[${PYTHON_USEDEP}]
virtual/python-singledispatch[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? ( $(python_gen_cond_dep 'dev-python/singledispatch[${PYTHON_USEDEP}]' python2_7 python3_3) )"
PDEPEND="dev-python/ipython[${PYTHON_USEDEP}]"
# ggplot2 is an optional test dep but not in portage
S="${WORKDIR}/${MY_P}"
# Tarball absent of doc files in doc folder
# https://bitbucket.org/rpy2/rpy2/issues/229
python_compile() {
if ! python_is_python3; then
local CFLAGS=${CFLAGS}
append-cflags -fno-strict-aliasing
fi
distutils-r1_python_compile
}
python_test() {
cd "${BUILD_DIR}"/lib || die
${PYTHON} -m 'rpy2.tests' || die
}

@ -1,8 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>python</herd>
<upstream>
<remote-id type="pypi">serpent</remote-id>
<remote-id type="github">irmen/Serpent</remote-id>
</upstream>
</pkgmetadata>

@ -3,7 +3,8 @@
# $Id$
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy )
inherit distutils-r1
@ -16,7 +17,8 @@ SLOT="0"
KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
IUSE=""
DEPEND="app-arch/unzip
DEPEND="
app-arch/unzip
dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND=""

@ -3,12 +3,14 @@
# $Id$
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy )
inherit distutils-r1
DESCRIPTION="A nice-looking, customizable theme for Sphinx"
HOMEPAGE="https://github.com/irskep/sphinx-better-theme
HOMEPAGE="
https://github.com/irskep/sphinx-better-theme
https://pypi.python.org/pypi/sphinx-better-theme"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>python</herd>
<upstream>
<remote-id type="pypi">sphinx-bootstrap-theme</remote-id>
</upstream>
<herd>python</herd>
<upstream>
<remote-id type="pypi">sphinx-bootstrap-theme</remote-id>
</upstream>
</pkgmetadata>

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy pypy3 )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
inherit distutils-r1
@ -15,7 +15,6 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
IUSE=""
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"

@ -3,7 +3,8 @@
# $Id$
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy )
PYTHON_REQ_USE="sqlite?"
inherit distutils-r1 flag-o-matic
@ -19,12 +20,13 @@ LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
IUSE="doc examples +sqlite test"
REQUIRED_USE="test? ( sqlite )"
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
test? ( dev-python/pytest[${PYTHON_USEDEP}]
test? (
dev-python/pytest[${PYTHON_USEDEP}]
$(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 pypy)
)"
S="${WORKDIR}/${MY_P}"
@ -47,9 +49,9 @@ python_test() {
# Create copies of necessary files in BUILD_DIR.
# https://bitbucket.org/zzzeek/sqlalchemy/issue/3144/
cp -pR examples sqla_nose.py setup.cfg test "${BUILD_DIR}" || die
pushd "${BUILD_DIR}" > /dev/null
pushd "${BUILD_DIR}" > /dev/null || die
if [[ "${EPYTHON}" == "python3.2" ]]; then
2to3 --no-diffs -w test
2to3 --no-diffs -w test || die
fi
# Recently upstream elected to make the testsuite also pytest capable
# "${PYTHON}" sqla_nose.py || die "Testsuite failed under ${EPYTHON}"
@ -59,7 +61,6 @@ python_test() {
python_install_all() {
use doc && HTML_DOCS=( doc/. )
use examples && local EXAMPLES=( examples/. )
distutils-r1_python_install_all

@ -0,0 +1,20 @@
statsmodels/tsa/ar_model.py | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/statsmodels/tsa/ar_model.py b/statsmodels/tsa/ar_model.py
index f0af7ee..fe05634 100644
--- a/statsmodels/tsa/ar_model.py
+++ b/statsmodels/tsa/ar_model.py
@@ -256,10 +256,8 @@ class AR(tsbase.TimeSeriesModel):
Vpinv = np.zeros((p, p), dtype=params.dtype)
for i in range(1, p1):
- Vpinv[i-1, i-1:] = np.correlate(params0, params0[:i],
- old_behavior=False)[:-1]
- Vpinv[i-1, i-1:] -= np.correlate(params0[-i:], params0,
- old_behavior=False)[:-1]
+ Vpinv[i-1, i-1:] = np.correlate(params0, params0[:i])[:-1]
+ Vpinv[i-1, i-1:] -= np.correlate(params0[-i:], params0)[:-1]
Vpinv = Vpinv + Vpinv.T - np.diag(Vpinv.diagonal())
return Vpinv

@ -0,0 +1,30 @@
setup.py | 2 +-
statsmodels/tools/testing.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/setup.py b/setup.py
index 1a7da9a..a6d1b33 100644
--- a/setup.py
+++ b/setup.py
@@ -134,7 +134,7 @@ def check_dependency_versions(min_versions):
(spversion, min_versions['scipy']))
try:
- from pandas.version import short_version as pversion
+ from pandas import __version__ as pversion
except ImportError:
install_requires.append('pandas')
else:
diff --git a/statsmodels/tools/testing.py b/statsmodels/tools/testing.py
index 1fde1de..92e77fc 100644
--- a/statsmodels/tools/testing.py
+++ b/statsmodels/tools/testing.py
@@ -17,7 +17,7 @@ def strip_rc(version):
def is_pandas_min_version(min_version):
'''check whether pandas is at least min_version
'''
- from pandas.version import short_version as pversion
+ from pandas import __version__ as pversion
return StrictVersion(strip_rc(pversion)) >= min_version

@ -1,4 +1,4 @@
<?xml version='1.0' encoding='UTF-8'?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>python</herd>

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{3,4} )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
inherit distutils-r1 virtualx
@ -35,6 +35,11 @@ DEPEND="${CDEPEND}
)
test? ( dev-python/nose[${PYTHON_USEDEP}] )"
PATCHES=(
"${FILESDIR}"/${P}-pandas-0.17.0.patch
"${FILESDIR}"/${P}-numpy-1.10.patch
)
pkg_setup() {
export MPLCONFIGDIR="${T}" HOME="${T}"
}

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{3,4} pypy pypy3 )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
inherit distutils-r1
@ -16,3 +16,10 @@ SLOT="0"
LICENSE="GPL-3+"
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
IUSE=""
# Not shipped
RESTRICT=test
python_test() {
${PYTHON} test_strict_rfc3339.py || die
}

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{3,4} )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
inherit distutils-r1

@ -2,11 +2,11 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
EAPI=5
# One test; FAIL: test_encodeToUTF8 (__main__.UltraJSONTests) under py2.5.
# Fix and repair and re-insert if it's REALLY needed
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
inherit distutils-r1
@ -35,7 +35,7 @@ python_test() {
if [[ "${EPYTHON}" =~ 'python3' ]]; then
cd "${BUILD_DIR}"/lib || die
cp -a "${S}"/tests/ . || die
2to3 -w tests/tests.py
2to3 -w tests/tests.py || die
"${PYTHON}" tests/tests.py || die
rm -rf tests/ || die
else

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy pypy3 )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
inherit distutils-r1

@ -4,7 +4,7 @@
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{3,4} pypy pypy3 )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
inherit distutils-r1

@ -2,9 +2,9 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy )
inherit distutils-r1
@ -17,6 +17,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~ppc-aix ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
IUSE=""
PATCHES=( "${FILESDIR}"/${PN}-0.9.3-column.patch )

@ -1,8 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>python</herd>
<upstream>
<remote-id type="pypi">zope.interface</remote-id>
<remote-id type="github">zopefoundation/zope.interface</remote-id>
</upstream>
</pkgmetadata>

@ -1,52 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
USE_RUBY="ruby19 ruby20 ruby21"
inherit ruby-fakegem
RUBY_FAKEGEM_EXTRAINSTALL="metasm metasm.rb misc samples"
DESCRIPTION="cross-architecture assembler, disassembler, linker, and debugger"
HOMEPAGE="http://metasm.cr0.org/"
SRC_URI="mirror://rubygems/${P}.gem"
LICENSE="BSD"
SLOT="${PV}"
KEYWORDS="~amd64 ~arm ~x86"
#IUSE="development test"
RESTRICT=test
IUSE=""
RDEPEND="${RDEPEND} !dev-ruby/metasploit-model:0"
ruby_add_rdepend ">=dev-ruby/railties-4.0.9:4.0
>=dev-ruby/activesupport-4.0.9:4.0
>=dev-ruby/activemodel-4.0.9:4.0"
ruby_add_bdepend "dev-ruby/bundler"
all_ruby_prepare() {
[ -f Gemfile.lock ] && rm Gemfile.lock
#For now, we don't support development or testing at all
#if ! use development; then
sed -i -e "/^group :development do/,/^end$/d" Gemfile || die
sed -i -e "/s.add_development_dependency/d" "${PN}".gemspec || die
sed -i -e "/spec.add_development_dependency/d" "${PN}".gemspec || die
#fi
#if ! use test; then
sed -i -e "/^group :test do/,/^end$/d" Gemfile || die
#fi
#if ! use test && ! use development; then
sed -i -e "/^group :development, :test do/,/^end$/d" Gemfile || die
#fi
}
each_ruby_prepare() {
if [ -f Gemfile ]
then
BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle install --local || die
BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle check || die
fi
}

@ -23,13 +23,10 @@ IUSE=""
RDEPEND="${RDEPEND} !dev-ruby/metasploit-model:0"
ruby_add_rdepend ">=dev-ruby/railties-4.0.9:4.0
>=dev-ruby/activesupport-4.0.9:4.0
>=dev-ruby/activemodel-4.0.9:4.0"
ruby_add_bdepend "dev-ruby/bundler"
all_ruby_prepare() {
[ -f Gemfile.lock ] && rm Gemfile.lock
[ -f Gemfile.lock ] && rm Gemfile.lock || die
#For now, we don't support development or testing at all
#if ! use development; then
sed -i -e "/^group :development do/,/^end$/d" Gemfile || die

@ -25,20 +25,20 @@ IUSE=""
RESTRICT="test strip"
QA_PREBUILT="
usr/$(get_libdir)/ruby/gems/*/gems/${PN}-${SLOT}/data/meterpreter/msflinker_linux_x86.bin
usr/$(get_libdir)/ruby/gems/*/gems/${PN}-${SLOT}/data/meterpreter/ext_server_sniffer.lso
usr/$(get_libdir)/ruby/gems/*/gems/${PN}-${SLOT}/data/meterpreter/ext_server_networkpug.lso
usr/$(get_libdir)/ruby/gems/*/gems/${PN}-${SLOT}/data/meterpreter/ext_server_stdapi.lso
usr/$(get_libdir)/ruby/gems/*/gems/${PN}-${SLOT}/data/android/libs/armeabi/libndkstager.so
usr/$(get_libdir)/ruby/gems/*/gems/${PN}-${SLOT}/data/android/libs/mips/libndkstager.so
usr/$(get_libdir)/ruby/gems/*/gems/${PN}-${SLOT}/data/android/libs/x86/libndkstager.so
usr/lib*/ruby/gems/*/gems/${PN}-${SLOT}/data/meterpreter/msflinker_linux_x86.bin
usr/lib*/ruby/gems/*/gems/${PN}-${SLOT}/data/meterpreter/ext_server_sniffer.lso
usr/lib*/ruby/gems/*/gems/${PN}-${SLOT}/data/meterpreter/ext_server_networkpug.lso
usr/lib*/ruby/gems/*/gems/${PN}-${SLOT}/data/meterpreter/ext_server_stdapi.lso
usr/lib*/ruby/gems/*/gems/${PN}-${SLOT}/data/android/libs/armeabi/libndkstager.so
usr/lib*/ruby/gems/*/gems/${PN}-${SLOT}/data/android/libs/mips/libndkstager.so
usr/lib*/ruby/gems/*/gems/${PN}-${SLOT}/data/android/libs/x86/libndkstager.so
"
src_install() {
ruby-ng_src_install
#tell revdep-rebuild to ignore binaries meant for the target
dodir /etc/revdep-rebuild
cat <<-EOF > "${ED}"/etc/revdep-rebuild/99-${PN}-${SLOT}
cat <<-EOF > "${ED}"/etc/revdep-rebuild/99-${PN}-${SLOT} || die
#These dirs contain prebuilt binaries for running on the TARGET not the HOST
SEARCH_DIRS_MASK="/usr/lib*/ruby/gems/*/gems/${PN}-${SLOT}/data/android/libs"
EOF

@ -25,20 +25,20 @@ IUSE=""
RESTRICT="test strip"
QA_PREBUILT="
usr/$(get_libdir)/ruby/gems/*/gems/${PN}-${SLOT}/data/meterpreter/msflinker_linux_x86.bin
usr/$(get_libdir)/ruby/gems/*/gems/${PN}-${SLOT}/data/meterpreter/ext_server_sniffer.lso
usr/$(get_libdir)/ruby/gems/*/gems/${PN}-${SLOT}/data/meterpreter/ext_server_networkpug.lso
usr/$(get_libdir)/ruby/gems/*/gems/${PN}-${SLOT}/data/meterpreter/ext_server_stdapi.lso
usr/$(get_libdir)/ruby/gems/*/gems/${PN}-${SLOT}/data/android/libs/armeabi/libndkstager.so
usr/$(get_libdir)/ruby/gems/*/gems/${PN}-${SLOT}/data/android/libs/mips/libndkstager.so
usr/$(get_libdir)/ruby/gems/*/gems/${PN}-${SLOT}/data/android/libs/x86/libndkstager.so
usr/lib*/ruby/gems/*/gems/${PN}-${SLOT}/data/meterpreter/msflinker_linux_x86.bin
usr/lib*/ruby/gems/*/gems/${PN}-${SLOT}/data/meterpreter/ext_server_sniffer.lso
usr/lib*/ruby/gems/*/gems/${PN}-${SLOT}/data/meterpreter/ext_server_networkpug.lso
usr/lib*/ruby/gems/*/gems/${PN}-${SLOT}/data/meterpreter/ext_server_stdapi.lso
usr/lib*/ruby/gems/*/gems/${PN}-${SLOT}/data/android/libs/armeabi/libndkstager.so
usr/lib*/ruby/gems/*/gems/${PN}-${SLOT}/data/android/libs/mips/libndkstager.so
usr/lib*/ruby/gems/*/gems/${PN}-${SLOT}/data/android/libs/x86/libndkstager.so
"
src_install() {
ruby-ng_src_install
#tell revdep-rebuild to ignore binaries meant for the target
dodir /etc/revdep-rebuild
cat <<-EOF > "${ED}"/etc/revdep-rebuild/99-${PN}-${SLOT}
cat <<-EOF > "${ED}"/etc/revdep-rebuild/99-${PN}-${SLOT} || die
#These dirs contain prebuilt binaries for running on the TARGET not the HOST
SEARCH_DIRS_MASK="/usr/lib*/ruby/gems/*/gems/${PN}-${SLOT}/data/android/libs"
EOF

@ -13,7 +13,7 @@ SRC_URI="http://code.call-cc.org/releases/${MY_PV}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86"
KEYWORDS="alpha ~amd64 ~ppc ~ppc64 ~x86"
IUSE="emacs doc"
DOCS=( NEWS README LICENSE )

@ -33,7 +33,7 @@ if [[ ${PV} != *9999 ]]; then
${SRC_URI_KORG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
${SRC_URI_GOOG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
)"
KEYWORDS="~alpha amd64 ~arm ~arm64 hppa ~ia64 ~mips ~ppc ppc64 ~s390 ~sh ~sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
KEYWORDS="alpha amd64 ~arm ~arm64 hppa ~ia64 ~mips ~ppc ppc64 ~s390 ~sh ~sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
fi
LICENSE="GPL-2"

@ -1,4 +1,4 @@
# Copyright 1999-2014 Gentoo Foundation
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@ -8,7 +8,7 @@
# @AUTHOR:
# Original Author: Kevin F. Quinn <kevquinn@gentoo.org>
# Modifications for bugs #365825, #431092, #520198, @ ECLASS markup: Anthony G. Basile <blueness@gentoo.org>
# @BLURB: functions to provide pax markings
# @BLURB: functions to provide PaX markings for hardened kernels
# @DESCRIPTION:
#
# This eclass provides support for manipulating PaX markings on ELF binaries,
@ -32,18 +32,20 @@ _PAX_UTILS_ECLASS=1
PAX_MARKINGS=${PAX_MARKINGS:="PT XT"}
# @FUNCTION: pax-mark
# @USAGE: <flags> {<ELF files>}
# @USAGE: <flags> <ELF files>
# @RETURN: Shell true if we succeed, shell false otherwise
# @DESCRIPTION:
# Marks <ELF files> with provided PaX <flags>
#
# Flags are passed directly to the utilities unchanged
# Flags are passed directly to the utilities unchanged.
#
# @CODE
# p: disable PAGEEXEC P: enable PAGEEXEC
# e: disable EMUTRAMP E: enable EMUTRAMP
# m: disable MPROTECT M: enable MPROTECT
# r: disable RANDMMAP R: enable RANDMMAP
# s: disable SEGMEXEC S: enable SEGMEXEC
# @CODE
#
# Default flags are 'PeMRS', which are the most restrictive settings. Refer
# to http://pax.grsecurity.net/ for details on what these flags are all about.
@ -52,10 +54,9 @@ PAX_MARKINGS=${PAX_MARKINGS:="PT XT"}
# Either ask on the gentoo-hardened mailing list, or CC/assign hardened@g.o on
# the bug report.
pax-mark() {
local f # loop over paxables
local flags # pax flags
local ret=0 # overal return code of this function
local ret=0 # overall return code of this function
# Only the actual PaX flags and z are accepted
# 1. The leading '-' is optional
@ -75,19 +76,19 @@ pax-mark() {
_pax_list_files einfo "$@"
for f in "$@"; do
#First try paxctl -> this might try to create/convert program headers
# First try paxctl -> this might try to create/convert program headers.
if type -p paxctl > /dev/null; then
einfo "PT PaX marking -${flags} ${f} with paxctl"
# First, try modifying the existing PAX_FLAGS header
# First, try modifying the existing PAX_FLAGS header.
paxctl -q${flags} "${f}" && continue
# Second, try creating a PT_PAX header (works on ET_EXEC)
# Even though this is less safe, most exes need it, eg bug #463170
# Second, try creating a PT_PAX header (works on ET_EXEC).
# Even though this is less safe, most exes need it. #463170
paxctl -qC${flags} "${f}" && continue
# Third, try stealing the (unused under PaX) PT_GNU_STACK header
paxctl -qc${flags} "${f}" && continue
fi
#Next try paxctl-ng -> this will not create/convert any program headers
# Next try paxctl-ng -> this will not create/convert any program headers.
if type -p paxctl-ng > /dev/null && paxctl-ng -L ; then
einfo "PT PaX marking -${flags} ${f} with paxctl-ng"
flags="${flags//z}"
@ -96,10 +97,10 @@ pax-mark() {
paxctl-ng -L -${flags} "${f}" && continue
fi
#Finally fall back on scanelf
# Finally fall back on scanelf.
if type -p scanelf > /dev/null && [[ ${PAX_MARKINGS} != "none" ]]; then
scanelf -Xxz ${flags} "$f"
#We failed to set PT_PAX flags
# We failed to set PT_PAX flags.
elif [[ ${PAX_MARKINGS} != "none" ]]; then
elog "Failed to set PT_PAX markings -${flags} ${f}."
ret=1
@ -112,7 +113,7 @@ pax-mark() {
flags="${flags//z}"
for f in "$@"; do
#First try paxctl-ng
# First try paxctl-ng.
if type -p paxctl-ng > /dev/null && paxctl-ng -l ; then
einfo "XT PaX marking -${flags} ${f} with paxctl-ng"
[[ ${dodefault} == "yes" ]] && paxctl-ng -d "${f}"
@ -120,7 +121,7 @@ pax-mark() {
paxctl-ng -l -${flags} "${f}" && continue
fi
#Next try setfattr
# Next try setfattr.
if type -p setfattr > /dev/null; then
[[ "${flags//[!Ee]}" ]] || flags+="e" # bug 447150
einfo "XT PaX marking -${flags} ${f} with setfattr"
@ -128,7 +129,7 @@ pax-mark() {
setfattr -n "user.pax.flags" -v "${flags}" "${f}" && continue
fi
#We failed to set XATTR_PAX flags
# We failed to set XATTR_PAX flags.
if [[ ${PAX_MARKINGS} != "none" ]]; then
elog "Failed to set XATTR_PAX markings -${flags} ${f}."
ret=1
@ -142,8 +143,8 @@ pax-mark() {
}
# @FUNCTION: list-paxables
# @USAGE: {<files>}
# @RETURN: Subset of {<files>} which are ELF executables or shared objects
# @USAGE: <files>
# @RETURN: Subset of <files> which are ELF executables or shared objects
# @DESCRIPTION:
# Print to stdout all of the <files> that are suitable to have PaX flag
# markings, i.e., filter out the ELF executables or shared objects from a list
@ -160,9 +161,9 @@ list-paxables() {
# @RETURN: Shell true if the build process is PaX enabled, shell false otherwise
# @DESCRIPTION:
# This is intended for use where the build process must be modified conditionally
# depending on whether the host is PaX enabled or not. It is not intedened to
# depending on whether the host is PaX enabled or not. It is not indented to
# determine whether the final binaries need PaX markings. Note: if procfs is
# not mounted on /proc, this returns shell false (e.g. Gentoo/FBSD).
# not mounted on /proc, this returns shell false (e.g. Gentoo/FreeBSD).
host-is-pax() {
grep -qs ^PaX: /proc/self/status
}
@ -173,7 +174,7 @@ host-is-pax() {
#
# These functions are for use internally by the eclass - do not use
# them elsewhere as they are not supported (i.e. they may be removed
# or their function may change arbitratily).
# or their function may change arbitrarily).
# Display a list of things, one per line, indented a bit, using the
# display command in $1.

@ -0,0 +1,11 @@
--- src/player_client.c.old 2015-10-21 14:21:04.317896103 +0200
+++ src/player_client.c 2015-10-21 14:21:40.001225103 +0200
@@ -38,7 +38,7 @@
{
player->nick[0] = g_string_new (config->player_name->str);
- g_printerr (player->nick[0]->str);
+ g_printerr ("%s", player->nick[0]->str);
return 0;
}

@ -3,7 +3,7 @@
# $Id$
EAPI=5
inherit games
inherit games eutils
DESCRIPTION="client for the french tarot game maitretarot"
HOMEPAGE="http://www.nongnu.org/maitretarot/"
@ -21,6 +21,10 @@ DEPEND="dev-libs/glib:2
sys-libs/ncurses"
RDEPEND=${DEPEND}
src_prepare() {
epatch "${FILESDIR}"/${P}-format.patch
}
src_install() {
default
prepgamesdirs

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save