diff options
author | 2015-08-08 22:01:30 +0200 | |
---|---|---|
committer | 2015-08-08 22:01:30 +0200 | |
commit | 40d1216738d6d8d8809c7007c2c6645313173ab6 (patch) | |
tree | d97256deb0e89793309c9ed7d2d51aaf09204ff9 | |
parent | Disable ChangeLog updates (diff) | |
download | python-40d1216738d6d8d8809c7007c2c6645313173ab6.tar.gz python-40d1216738d6d8d8809c7007c2c6645313173ab6.tar.bz2 python-40d1216738d6d8d8809c7007c2c6645313173ab6.zip |
Remove outdated ebuilds
26 files changed, 0 insertions, 1430 deletions
diff --git a/app-admin/eselect-python/ChangeLog b/app-admin/eselect-python/ChangeLog deleted file mode 100644 index ca61fa3..0000000 --- a/app-admin/eselect-python/ChangeLog +++ /dev/null @@ -1,7 +0,0 @@ -*eselect-python-20111108-r1 (25 Jun 2012) - - 25 Jun 2012; <testuser@gentoo.org> +eselect-python-20111108-r1.ebuild, - +files/python-eselect.patch, +files/wrapper.patch, +metadata.xml, - +python.eselect: - [app-admin/eselect-python] A pypy aware version - diff --git a/app-admin/eselect-python/Manifest b/app-admin/eselect-python/Manifest deleted file mode 100644 index 99c09d4..0000000 --- a/app-admin/eselect-python/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST eselect-python-20111108.tar.bz2 64959 SHA256 34d7618808a3c1d22e6763bc6c67d5ae47a1fa371f5e91de95a911da9aceba5e SHA512 59a493128753ae968c6fa30eb870f52198de7bb5090213ef0b8c0d3d8b1f552ac514174dd1e97e54dd9434432be1a68ad01853d1ffb21e53d28d08f623199dac WHIRLPOOL 605730de7fee70cf5a33e15c8e16a938807c5ed32f80ff0435a196f03cb38ce397092626c88df598b1b88dab7ee3b8c7f3105b9f3b88acb13fe532f964b8aced diff --git a/app-admin/eselect-python/eselect-python-20111108-r1.ebuild b/app-admin/eselect-python/eselect-python-20111108-r1.ebuild deleted file mode 100644 index e07e59b..0000000 --- a/app-admin/eselect-python/eselect-python-20111108-r1.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-python/eselect-python-20111108.ebuild,v 1.2 2012/04/26 14:53:20 aballier Exp $ - -# Keep the EAPI low here because everything else depends on it. -# We want to make upgrading simpler. - -EAPI=2 -ESVN_PROJECT="eselect-python" -ESVN_REPO_URI="https://overlays.gentoo.org/svn/proj/python/projects/eselect-python/trunk" - -inherit eutils -if [[ ${PV} == "99999999" ]] ; then - inherit autotools subversion eutils -else - SRC_URI="mirror://gentoo/${P}.tar.bz2" - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" -fi - -DESCRIPTION="Eselect module for management of multiple Python versions" -HOMEPAGE="http://www.gentoo.org" - -LICENSE="GPL-2" -SLOT="0" -IUSE="" - -RDEPEND=">=app-admin/eselect-1.2.3" -# Avoid autotool deps for released versions for circ dep issues. -if [[ ${PV} == "99999999" ]] ; then - DEPEND="sys-devel/autoconf" -else - DEPEND="" -fi - -src_unpack() { - unpack ${A} - cd "${S}" - [[ -x configure ]] || eautoreconf -} - -src_prepare() { - epatch "${FILESDIR}"/python-eselect.patch - epatch "${FILESDIR}"/wrapper.patch || die -} - -src_install() { - keepdir /etc/env.d/python - emake DESTDIR="${D}" install || die -} - -pkg_preinst() { - if has_version "<${CATEGORY}/${PN}-20090804" || ! has_version "${CATEGORY}/${PN}"; then - run_eselect_python_update="1" - fi -} - -pkg_postinst() { - if [[ "${run_eselect_python_update}" == "1" ]]; then - ebegin "Running \`eselect python update\`" - eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 > /dev/null - eend "$?" - fi -} diff --git a/app-admin/eselect-python/files/python-eselect.patch b/app-admin/eselect-python/files/python-eselect.patch deleted file mode 100644 index 9cceab7..0000000 --- a/app-admin/eselect-python/files/python-eselect.patch +++ /dev/null @@ -1,378 +0,0 @@ -diff -ur eselect-python-20111108.orig/python.eselect eselect-python-20111108/python.eselect ---- python.eselect 2011-11-09 07:15:22.000000000 +0800 -+++ python.eselect 2012-06-25 21:48:00.142723058 +0800 -@@ -1,4 +1,4 @@ --# Copyright 1999-2010 Gentoo Foundation -+7# Copyright 1999-2010 Gentoo Foundation - # Distributed under the terms of the GNU General Public License v2 - # $Id: $ - -@@ -15,9 +15,11 @@ - - # Find a list of Python versions - find_targets() { -- local interpreter interpreters="python?.?" -+ local interpreter interpreters="python?.?" pypyinterpreters="pypy-c1.?" - -- if [[ "${PYTHON_INTERPRETERS_GROUP}" == "2" ]]; then -+ if [[ "${PYTHON_INTERPRETERS_GROUP}" == "1" ]]; then -+ interpreters="pypy-c1.?" -+ elif [[ "${PYTHON_INTERPRETERS_GROUP}" == "2" ]]; then - interpreters="python2.?" - elif [[ "${PYTHON_INTERPRETERS_GROUP}" == "3" ]]; then - interpreters="python3.?" -@@ -25,8 +27,8 @@ - - # Think twice before adding jython to this list. /usr/bin/jython - # is a bash wrapper that calls java-config, which is a Python -- # script, so you need a valid /usr/bin/python to start jython. -- for interpreter in "${INTERPRETER_PATH}"${interpreters}; do -+ # script, so you need a valid /usr/bin/python to start jython. Adding pypy -+ for interpreter in "${INTERPRETER_PATH}"${interpreters} "${INTERPRETER_PATH}"${pypyinterpreters}; do - if [[ -f "${interpreter}" ]]; then - echo ${interpreter#${INTERPRETER_PATH}} - fi -@@ -40,8 +42,9 @@ - } - - set_python_config() { -- local script="${INTERPRETER_PATH}python-config" target="${1}" -- cat << EOF > "${script}" -+ local script="${INTERPRETER_PATH}python-config" pyscript=${INTERPRETER_PATH}pypy-config target="${1}" -+ if [[ "${target:0:6}" == "python" ]]; then -+ cat << EOF > "${script}" - #!/usr/bin/env bash - # Gentoo python-config wrapper script - -@@ -49,18 +52,31 @@ - python_config="\${EPYTHON/python/python-config-}" - "\${0%/*}/\${python_config:-${target}}" "\$@" - EOF -- chmod a+rx "${script}" -+ chmod a+rx "${script}" -+ elif [[ "${target:0:6}" == "pypy-c" ]]; then -+ cat << EOF > "${pyscript}" -+#!/usr/bin/env bash -+# Gentoo python-config wrapper script -+ -+[[ "\${EPYTHON}" =~ (/|^python\$) ]] && EPYTHON="${target/-config-/}" -+python_config="\${EPYTHON/python/python-config-}" -+"\${0%/*}/\${python_config:-${target}}" "\$@" -+EOF -+ chmod a+rx "${pyscript}" -+ fi -+ # We always need a "${script}" -+ ln -s "${pyscript}" "${script}" - } - - # Try to remove python and python.1 symlinks - remove_symlinks() { - local symlink symlink_target symlink_target_found - if [[ "${SET_MAIN_ACTIVE_PYTHON_INTERPRETER}" == "1" ]]; then -- rm -f "${INTERPRETER_PATH}"{idle,pydoc,python,python-config,pythonw} &> /dev/null || return 1 -+ rm -f "${INTERPRETER_PATH}"{idle,pydoc,python,pypy,python-config,pythonw} &> /dev/null || return 1 - rm -f "${MAN_PATH}"python.1{,.gz,.bz2,.lzma,.xz} &> /dev/null || return 1 - fi - -- for symlink in "${INTERPRETER_PATH}python"?; do -+ for symlink in "${INTERPRETER_PATH}python"? "${INTERPRETER_PATH}pypy-c"?; do - [[ ! -L "${symlink}" ]] && continue - symlink_target_found=0 - for symlink_target in "${symlink}".?; do -@@ -75,7 +91,7 @@ - rm -f "${INTERPRETER_PATH%/bin/}/lib/Python.framework}"/{Headers,Python,Resources} - } - --# Set a man page symlink -+# Set a man page symlink; pypy apparently does not come with man pages - set_man_symlink() { - local target="${1}" x extension - -@@ -86,13 +102,15 @@ - fi - done - -- if [[ -z "${extension}" ]]; then -+ if [[ -z "${extension}" && "${target:0:4}" != "pypy" ]]; then - echo "Couldn't find a man page for ${target}; skipping." 1>&2 - return 1 - fi - - pushd "${MAN_PATH}" 1> /dev/null -- ln -nfs "${target}${extension}" "python${extension}" -+ if [[ "${target:0:4}" != "pypy" ]]; then -+ ln -nfs "${target}${extension}" "python${extension}" -+ fi - popd 1> /dev/null - } - -@@ -175,17 +193,22 @@ - - describe_show_options() { - echo "--ABI : Show Python ABI in format of PYTHON_ABI variable" -+ echo "--pypy-c1 : Show active pypy 1 interpreter" - echo "--python2 : Show active Python 2 interpreter" - echo "--python3 : Show active Python 3 interpreter" -+ echo "" - } - - do_show() { -- local ABI="0" interpreter python2="0" python3="0" -+ local ABI="0" interpreter python2="0" python3="0" pypy1="0" - while [[ $# > 0 ]]; do - case "$1" in - --ABI) - ABI="1" - ;; -+ --pypy1) -+ pypy1="1" -+ ;; - --python2) - python2="1" - ;; -@@ -201,9 +224,15 @@ - - if [[ "${python2}" == "1" && "${python3}" == "1" ]]; then - die -q "'--python2' and '--python3' options cannot be specified simultaneously" -+ elif [[ "${pypy1}" == "1" && "${python2}" == "1" ]]; then -+ die -q "'--pypy-c1' and '--python2' options cannot be specified simultaneously" -+ elif [[ "${pypy1}" == "1" && "${python3}" == "1" ]]; then -+ die -q "'--pypy-c1' and '--python3' options cannot be specified simultaneously" - fi - -- if [[ "${python2}" == "1" ]]; then -+ if [[ "${pypy1}" == "1" ]]; then -+ interpreter="$(readlink "${INTERPRETER_PATH}pypy-c1")" -+ elif [[ "${python2}" == "1" ]]; then - interpreter="$(readlink "${INTERPRETER_PATH}python2")" - elif [[ "${python3}" == "1" ]]; then - interpreter="$(readlink "${INTERPRETER_PATH}python3")" -@@ -211,8 +240,10 @@ - interpreter="$(<"${ENV_D_PATH}/python/config")" - fi - -- if [[ "${ABI}" == "1" ]]; then -+ if [[ "${ABI}" == "1" && "${interpreter:0:6}" == "python" ]]; then - echo -n "${interpreter#python}" -+ elif [[ "${ABI}" == "1" && "${interpreter:0:6}" == "pypy-c" ]]; then -+ echo -n 2.7-"${interpreter/c/}" - else - echo -n "${interpreter}" - fi -@@ -229,14 +260,23 @@ - } - - describe_list_options() { -+ echo "--pypy1 : List installed Pypy 1 interpreters" - echo "--python2 : List installed Python 2 interpreters" - echo "--python3 : List installed Python 3 interpreters" - } - - do_list() { -- local active i python_descriptive_name="Python" python_version_option= python2="0" python3="0" targets=() -+ local active i python_descriptive_name="Python" python_version_option= python2="0" python3="0" -+ local pypy1="0" targets=() active_version=$(do_show) -+ - while [[ $# > 0 ]]; do - case "$1" in -+ --pypy1) -+ pypy1="1" -+ python_descriptive_name="Pypy 1" -+ python_version_option="--pypy1" -+ PYTHON_INTERPRETERS_GROUP="1" -+ ;; - --python2) - python2="1" - python_descriptive_name="Python 2" -@@ -258,19 +298,69 @@ - - if [[ "${python2}" == "1" && "${python3}" == "1" ]]; then - die -q "'--python2' and '--python3' options cannot be specified simultaneously" -+ elif [[ "${pypy1}" == "1" && "${python2}" == "1" ]]; then -+ die -q "'--pypy-c1' and '--python2' options cannot be specified simultaneously" -+ elif [[ "${pypy1}" == "1" && "${python3}" == "1" ]]; then -+ die -q "'--pypy-c1' and '--python3' options cannot be specified simultaneously" - fi - -- targets=($(find_targets)) -+ combined_targets=($(find_targets)) -+ # $(find_targets) captures pypy entries; need to filter them from the list -+ if [[ $PYTHON_INTERPRETERS_GROUP > "1" ]]; then -+ for (( j=0 ; j < ${#combined_targets[@]} ; j++ )) -+ do -+ if [[ ${combined_targets[$j]:0:4} == "pypy" ]]; then -+ break -+ fi -+ targets[$j]="${combined_targets[$j]}" -+ done - -- write_list_start "Available ${python_descriptive_name} interpreters:" - -- active="$(do_show ${python_version_option})" -- for ((i = 0; i < ${#targets[@]}; i++)); do -- if [[ ${targets[${i}]} == ${active} ]]; then -- targets[${i}]="$(highlight_marker "${targets[${i}]}")" -- fi -- done -- write_numbered_list -m "(none found)" "${targets[@]}" -+ write_list_start "Available ${python_descriptive_name} interpreters:" -+ -+ active="$(do_show ${python_version_option})" -+ for ((i = 0; i < ${#targets[@]}; i++)); do -+ if [[ ${targets[${i}]} == ${active} ]]; then -+ targets[${i}]="$(highlight_marker "${targets[${i}]}")" -+ fi -+ done -+ write_numbered_list -m "(none found)" "${targets[@]}" -+ -+ elif [[ $PYTHON_INTERPRETERS_GROUP == "1" ]]; then -+ # pypy entries duplicate, filter to only 1 of each -+ for (( j=0 ; j < ${#combined_targets[@]} ; j++ )) -+ do -+ if [[ $j -gt 0 && "${combined_targets[$j]}" == "${combined_targets[0]}" ]]; then -+ break -+ fi -+ targets[$j]="${combined_targets[$j]}" -+ done -+ write_list_start "Available ${python_descriptive_name} interpreters:" -+ -+ if [[ "${active_version:0:4}" == "pypy" ]]; then -+ active="$(do_show ${python_version_option})" -+ for ((i = 0; i < ${#targets[@]}; i++)); do -+ if [[ ${targets[${i}]} == ${active} ]]; then -+ targets[${i}]="$(highlight_marker "${targets[${i}]}")" -+ fi -+ done -+ fi -+ write_numbered_list -m "(none found)" "${targets[@]}" -+ -+ else -+ targets=($(find_targets)) active=($(find_targets)) -+ -+ write_list_start "Available ${python_descriptive_name} interpreters:" -+ -+ active="$(do_show ${python_version_option})" -+ -+ for ((i = 0; i < ${#targets[@]}; i++)); do -+ if [[ ${targets[${i}]} == ${active} ]]; then -+ targets[${i}]="$(highlight_marker "${targets[${i}]}")" -+ fi -+ done -+ write_numbered_list -m "(none found)" "${targets[@]}" -+ fi - } - - ### set action ### -@@ -280,6 +370,7 @@ - } - - describe_set_options() { -+ echo "--pypy-c1 : Set active Pypy-c 1 interpreter without setting of main active Python interpreter if it is not set to Pypy-c 1" - echo "--python2 : Set active Python 2 interpreter without setting of main active Python interpreter if it is not set to Python 2" - echo "--python3 : Set active Python 3 interpreter without setting of main active Python interpreter if it is not set to Python 3" - } -@@ -289,10 +380,14 @@ - } - - do_set() { -- local main_active_python_interpreter python2="0" python3="0" -+ local main_active_python_interpreter python2="0" python3="0" pypy1="0" - SET_MAIN_ACTIVE_PYTHON_INTERPRETER="1" - while [[ $# > 0 ]]; do - case "$1" in -+ --pypy1) -+ pypy1="1" -+ PYTHON_INTERPRETERS_GROUP="1" -+ ;; - --python2) - python2="1" - PYTHON_INTERPRETERS_GROUP="2" -@@ -310,6 +405,10 @@ - - if [[ "${python2}" == "1" && "${python3}" == "1" ]]; then - die -q "'--python2' and '--python3' options cannot be specified simultaneously" -+ elif [[ "${pypy1}" == "1" && "${python2}" == "1" ]]; then -+ die -q "'--pypy-c1' and '--python2' options cannot be specified simultaneously" -+ elif [[ "${pypy1}" == "1" && "${python3}" == "1" ]]; then -+ die -q "'--pypy-c1' and '--python3' options cannot be specified simultaneously" - fi - - if [[ $# -lt 1 ]]; then -@@ -319,9 +418,11 @@ - else - main_active_python_interpreter="$(do_show)" - if [[ "${python2}" == "1" && "${main_active_python_interpreter}" != "python2."* ]]; then -- SET_MAIN_ACTIVE_PYTHON_INTERPRETER="0" -- elif [[ "${python3}" == "1" && "${main_active_python_interpreter}" != "python3."* ]]; then -- SET_MAIN_ACTIVE_PYTHON_INTERPRETER="0" -+ if [[ "${python3}" == "1" && "${main_active_python_interpreter}" != "python3."* ]]; then -+ if [[ "${pypy1}" == "1" && "${main_active_python_interpreter}" != "pypy-c1."* ]]; then -+ SET_MAIN_ACTIVE_PYTHON_INTERPRETER="0" -+ fi -+ fi - fi - - if ! set_scripts_and_symlinks "${1}"; then -@@ -343,12 +444,14 @@ - describe_update_options() { - echo "--if-unset : Do not override existing implementation" - echo "--ignore SLOT : Ignore SLOT when setting symlinks" -+ echo "--pypy-c1 : Set active Pypy-c 1 interpreter without setting of main active Python interpreter if it is not set to Pypy-c 1" - echo "--python2 : Set active Python 2 interpreter without setting of main active Python interpreter if it is not set to Python 2" - echo "--python3 : Set active Python 3 interpreter without setting of main active Python interpreter if it is not set to Python 3" - } - - do_update() { -- local if_unset="0" ignored_slots=() interpreters="python?.?" python2="0" python3="0" python_version_option= slot= target targets=() -+ local if_unset="0" ignored_slots=() interpreters="python?.?" python2="0" python3="0" pypy1="0" -+ local python_version_option= slot= target targets=() - while [[ $# > 0 ]]; do - case "$1" in - --if-unset) -@@ -357,6 +460,10 @@ - --ignore) - ignored_slots+=("${2}") - shift;; -+ --pypy1) -+ pypy1="1" -+ python_version_option="--pypy-c1" -+ ;; - --python2) - python2="1" - python_version_option="--python2" -@@ -374,19 +481,28 @@ - - if [[ "${python2}" == "1" && "${python3}" == "1" ]]; then - die -q "'--python2' and '--python3' options cannot be specified simultaneously" -+ elif [[ "${pypy1}" == "1" && "${python2}" == "1" ]]; then -+ die -q "'--pypy-c1' and '--python2' options cannot be specified simultaneously" -+ elif [[ "${pypy1}" == "1" && "${python3}" == "1" ]]; then -+ die -q "'--pypy-c1' and '--python3' options cannot be specified simultaneously" - fi - -+ # This reduceS by 3 lines - if [[ "${if_unset}" == "1" && -f "${INTERPRETER_PATH}python" && -f "${ENV_D_PATH}/python/config" ]]; then -- if [[ "${python2}" == "1" && -f "${INTERPRETER_PATH}python2" ]]; then -- return -- elif [[ "${python3}" == "1" && -f "${INTERPRETER_PATH}python3" ]]; then -- return -- elif [[ "${python2}" == "0" && "${python3}" == "0" ]]; then -- return -+ if [[ "${pypy1}" == "1" && -f "${INTERPRETER_PATH}pypy1" ]]; then -+ if [[ "${python2}" == "1" && -f "${INTERPRETER_PATH}python2" ]]; then -+ if [[ "${python3}" == "1" && -f "${INTERPRETER_PATH}python3" ]]; then -+ if [[ "${python2}" == "0" && "${python3}" == "0" && "${pypy1}" == "0" ]]; then -+ return -+ fi -+ fi -+ fi - fi - fi - -- if [[ "${python2}" == "1" ]]; then -+ if [[ "${pypy1}" == "1" ]]; then -+ interpreters="pypy-c1.?" -+ elif [[ "${python2}" == "1" ]]; then - interpreters="python2.?" - elif [[ "${python3}" == "1" ]]; then - interpreters="python3.?" diff --git a/app-admin/eselect-python/files/wrapper.patch b/app-admin/eselect-python/files/wrapper.patch deleted file mode 100644 index f15ca2e..0000000 --- a/app-admin/eselect-python/files/wrapper.patch +++ /dev/null @@ -1,25 +0,0 @@ -diff -ur eselect-python-20111108.orig/python-wrapper.c eselect-python-20111108/python-wrapper.c ---- python-wrapper.c 2011-11-09 07:15:22.000000000 +0800 -+++ python-wrapper.c 2012-06-06 15:14:49.712818087 +0800 -@@ -82,7 +82,7 @@ - /* True if a valid file name, and not "python" */ - int valid_interpreter(const char* name) - { -- if (! name || ! *name || (strcmp(name, "python") == 0)) -+ if (! name || ! *name || (strcmp(name, "python") == 0) || (strncmp(name, "pypy-c", 6) == 0) ) - { - return 0; - } -@@ -91,10 +91,9 @@ - - int get_version(const char* name) - { -- /* Only find files beginning with "python" - this is a fallback, -- * so we only want CPython -+ /* Find files beginning with "python" && "pypy-c1"; so we want CPython && pypy. - */ -- if (! valid_interpreter(name) || strncmp(name, "python", 6) != 0) -+ if (! (valid_interpreter(name)) || strncmp(name, "python", 6) != 0 || (strncmp(name, "pypy-c", 6) != 0)) - return -1; - int pos = 6; - int major = 0; diff --git a/app-admin/eselect-python/metadata.xml b/app-admin/eselect-python/metadata.xml deleted file mode 100644 index 301d220..0000000 --- a/app-admin/eselect-python/metadata.xml +++ /dev/null @@ -1,5 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <herd>python</herd> -</pkgmetadata> diff --git a/app-admin/eselect-python/python.eselect b/app-admin/eselect-python/python.eselect deleted file mode 100644 index 0319f2e..0000000 --- a/app-admin/eselect-python/python.eselect +++ /dev/null @@ -1,479 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id: $ - -DESCRIPTION="Manage Python symlinks" -MAINTAINER="python@gentoo.org" -SVN_DATE='$Date: 2010-08-02 12:23:53 -0400 (Mon, 02 Aug 2010) $' -VERSION=$(svn_date_to_version "${SVN_DATE}" ) - -ENV_D_PATH="${EROOT%/}/etc/env.d" -INTERPRETER_PATH="${EROOT%/}/usr/bin/" -MAN_PATH="${EROOT%/}/usr/share/man/man1/" - -PYTHON_INTERPRETERS_GROUP="" - -# Find a list of Python versions -find_targets() { - local interpreter interpreters="python?.?" pypyinterpreters="pypy-c1.?" - - if [[ "${PYTHON_INTERPRETERS_GROUP}" == "1" ]]; then - interpreters="pypy-c1.?" - elif [[ "${PYTHON_INTERPRETERS_GROUP}" == "2" ]]; then - interpreters="python2.?" - elif [[ "${PYTHON_INTERPRETERS_GROUP}" == "3" ]]; then - interpreters="python3.?" - fi - - # Think twice before adding jython to this list. /usr/bin/jython - # is a bash wrapper that calls java-config, which is a Python - # script, so you need a valid /usr/bin/python to start jython. Adding pypy - for interpreter in "${INTERPRETER_PATH}"${interpreters} "${INTERPRETER_PATH}"${pypyinterpreters}; do - if [[ -f "${interpreter}" ]]; then - echo ${interpreter#${INTERPRETER_PATH}} - fi - done -} - -set_python() { - local symlink="${INTERPRETER_PATH}python" target="${1}" - ln -s python-wrapper "${symlink}" - echo "${target}" > "${ENV_D_PATH}/python/config" -} - -set_python_config() { - local script="${INTERPRETER_PATH}python-config" pyscript=${INTERPRETER_PATH}pypy-config target="${1}" - if [[ "${target:0:6}" == "python" ]]; then - cat << EOF > "${script}" -#!/usr/bin/env bash -# Gentoo python-config wrapper script - -[[ "\${EPYTHON}" =~ (/|^python\$) ]] && EPYTHON="${target/-config-/}" -python_config="\${EPYTHON/python/python-config-}" -"\${0%/*}/\${python_config:-${target}}" "\$@" -EOF - chmod a+rx "${script}" - elif [[ "${target:0:6}" == "pypy-c" ]]; then - cat << EOF > "${pyscript}" -#!/usr/bin/env bash -# Gentoo python-config wrapper script - -[[ "\${EPYTHON}" =~ (/|^python\$) ]] && EPYTHON="${target/-config-/}" -python_config="\${EPYTHON/python/python-config-}" -"\${0%/*}/\${python_config:-${target}}" "\$@" -EOF - chmod a+rx "${pyscript}" - fi -} - -# Try to remove python and python.1 symlinks -remove_symlinks() { - local symlink symlink_target symlink_target_found - if [[ "${SET_MAIN_ACTIVE_PYTHON_INTERPRETER}" == "1" ]]; then - rm -f "${INTERPRETER_PATH}"{idle,pydoc,python,pypy,python-config,pythonw} &> /dev/null || return 1 - rm -f "${MAN_PATH}"python.1{,.gz,.bz2,.lzma,.xz} &> /dev/null || return 1 - fi - - for symlink in "${INTERPRETER_PATH}python"? "${INTERPRETER_PATH}pypy-c"?; do - [[ ! -L "${symlink}" ]] && continue - symlink_target_found=0 - for symlink_target in "${symlink}".?; do - [[ -f "${symlink_target}" ]] && symlink_target_found=1 - done - if [[ "${symlink_target_found}" -eq 0 ]]; then - rm -f "${symlink}" - fi - done - - # Files of Mac OS X framework - rm -f "${INTERPRETER_PATH%/bin/}/lib/Python.framework}"/{Headers,Python,Resources} -} - -# Set a man page symlink; pypy apparently does not come with man pages -set_man_symlink() { - local target="${1}" x extension - - for x in ".1" ".1.bz2" ".1.gz" ".1.lzma" ".1.xz"; do - if [[ -e "${MAN_PATH}${target}${x}" ]]; then - extension="${x}" - break - fi - done - - if [[ -z "${extension}" && "${target:0:4}" != "pypy" ]]; then - echo "Couldn't find a man page for ${target}; skipping." 1>&2 - return 1 - fi - - pushd "${MAN_PATH}" 1> /dev/null - if [[ "${target:0:4}" != "pypy" ]]; then - ln -nfs "${target}${extension}" "python${extension}" - fi - popd 1> /dev/null -} - -# Set python-config script and appropriate symlinks -set_scripts_and_symlinks() { - local target="${1}" targets=($(find_targets)) - if is_number "${target}" && [[ ${target} -ge 1 ]]; then - target=${targets[$((${target} - 1))]} - fi - - if ! has ${target} "${targets[@]}"; then - die -q "Invalid target ${target}" - fi - if [[ -f "${INTERPRETER_PATH}${target}" ]]; then - if ! remove_symlinks; then - die -q "Cannot remove symlinks" - fi - - if [[ "${SET_MAIN_ACTIVE_PYTHON_INTERPRETER}" == "1" ]]; then - set_man_symlink "${target}" - fi - - pushd "${INTERPRETER_PATH}" 1> /dev/null - - ln -nfs "${target}" "${target%.*}" - if [[ "${SET_MAIN_ACTIVE_PYTHON_INTERPRETER}" == "1" ]]; then - set_python "${target}" - set_python_config "${target/python/python-config-}" - ln -nfs "${target/python/pydoc}" pydoc - # idle is optionally installed - if [[ -f "${target/python/idle}" ]]; then - ln -nfs "${target/python/idle}" idle - fi - # 2to3 for >=2.6 - if [[ -f "${target/python/2to3-}" ]]; then - ln -nfs "${target/python/2to3-}" 2to3 - fi - - # Wrapper for graphical applications on Mac OS X - if [[ -f "${target/python/pythonw}" ]] ; then - ln -nfs "${target/python/pythonw}" pythonw - fi - - # Files of Mac OS X framework - local framework_dir="${INTERPRETER_PATH%/bin/}/lib/Python.framework" - if [[ -d "${framework_dir}" ]]; then - local version="${target#python}" - pushd "${framework_dir}" 1> /dev/null - ln -nfs "Versions/${version}/Headers" - ln -nfs "Versions/${version}/Python" - ln -nfs "Versions/${version}/Resources" - popd 1> /dev/null - fi - fi - - popd 1> /dev/null - else - die -q "Target \"${1}\" doesn't appear to be valid!" - fi -} - -# Set the content of /etc/env.d/65python-docs -set_python_docs() { - local path target="${1#python}" variable - rm -f "${ENV_D_PATH}/65python-docs" - if [[ -f "${ENV_D_PATH}/60python-docs-${target}" ]]; then - variable="PYTHONDOCS_${target//./_}" - path="$(. "${ENV_D_PATH}/60python-docs-${target}"; echo -n "${!variable}")" - if [[ -d "${path}" ]]; then - echo "PYTHONDOCS=\"${path}\"" > "${ENV_D_PATH}/65python-docs" - fi - fi -} - -### show action ### - -describe_show() { - echo "Show main active Python interpreter" -} - -describe_show_options() { - echo "--ABI : Show Python ABI in format of PYTHON_ABI variable" - echo "--pypy-c1 : Show active pypy 1 interpreter" - echo "--python2 : Show active Python 2 interpreter" - echo "--python3 : Show active Python 3 interpreter" - echo "" -} - -do_show() { - local ABI="0" interpreter python2="0" python3="0" pypy1="0" - while [[ $# > 0 ]]; do - case "$1" in - --ABI) - ABI="1" - ;; - --pypy1) - pypy1="1" - ;; - --python2) - python2="1" - ;; - --python3) - python3="1" - ;; - *) - die -q "Unrecognized argument '$1'" - ;; - esac - shift - done - - if [[ "${python2}" == "1" && "${python3}" == "1" ]]; then - die -q "'--python2' and '--python3' options cannot be specified simultaneously" - elif [[ "${pypy1}" == "1" && "${python2}" == "1" ]]; then - die -q "'--pypy-c1' and '--python2' options cannot be specified simultaneously" - elif [[ "${pypy1}" == "1" && "${python3}" == "1" ]]; then - die -q "'--pypy-c1' and '--python3' options cannot be specified simultaneously" - fi - - if [[ "${pypy1}" == "1" ]]; then - interpreter="$(readlink "${INTERPRETER_PATH}pypy-c1")" - elif [[ "${python2}" == "1" ]]; then - interpreter="$(readlink "${INTERPRETER_PATH}python2")" - elif [[ "${python3}" == "1" ]]; then - interpreter="$(readlink "${INTERPRETER_PATH}python3")" - elif [[ -f "${ENV_D_PATH}/python/config" ]]; then - interpreter="$(<"${ENV_D_PATH}/python/config")" - fi - - if [[ "${ABI}" == "1" && "${interpreter:0:6}" == "python" ]]; then - echo -n "${interpreter#python}" - elif [[ "${ABI}" == "1" && "${interpreter:0:6}" == "pypy-c" ]]; then - echo -n "${interpreter#pypy-c}" - else - echo -n "${interpreter}" - fi - - if [[ -n "${interpreter}" ]]; then - echo - fi -} - -### list action ### - -describe_list() { - echo "List installed Python interpreters" -} - -describe_list_options() { - echo "--pypy-c1 : List installed Pypy-c 1 interpreters" - echo "--python2 : List installed Python 2 interpreters" - echo "--python3 : List installed Python 3 interpreters" -} - -do_list() { - local active i python_descriptive_name="Python" python_version_option= python2="0" python3="0" - local pypy1="0" targets=() - while [[ $# > 0 ]]; do - case "$1" in - --pypy1) - pypy1="1" - python_descriptive_name="Pypy 1" - python_version_option="--pypy-c1" - PYTHON_INTERPRETERS_GROUP="1" - ;; - --python2) - python2="1" - python_descriptive_name="Python 2" - python_version_option="--python2" - PYTHON_INTERPRETERS_GROUP="2" - ;; - --python3) - python3="1" - python_descriptive_name="Python 3" - python_version_option="--python3" - PYTHON_INTERPRETERS_GROUP="3" - ;; - *) - die -q "Unrecognized argument '$1'" - ;; - esac - shift - done - - if [[ "${python2}" == "1" && "${python3}" == "1" ]]; then - die -q "'--python2' and '--python3' options cannot be specified simultaneously" - elif [[ "${pypy1}" == "1" && "${python2}" == "1" ]]; then - die -q "'--pypy-c1' and '--python2' options cannot be specified simultaneously" - elif [[ "${pypy1}" == "1" && "${python3}" == "1" ]]; then - die -q "'--pypy-c1' and '--python3' options cannot be specified simultaneously" - fi - - targets=($(find_targets)) - - write_list_start "Available ${python_descriptive_name} interpreters:" - - active="$(do_show ${python_version_option})" - for ((i = 0; i < ${#targets[@]}; i++)); do - if [[ ${targets[${i}]} == ${active} ]]; then - targets[${i}]="$(highlight_marker "${targets[${i}]}")" - fi - done - write_numbered_list -m "(none found)" "${targets[@]}" -} - -### set action ### - -describe_set() { - echo "Set main active Python interpreter" -} - -describe_set_options() { - echo "--pypy-c1 : Set active Pypy-c 1 interpreter without setting of main active Python interpreter if it is not set to Pypy-c 1" - echo "--python2 : Set active Python 2 interpreter without setting of main active Python interpreter if it is not set to Python 2" - echo "--python3 : Set active Python 3 interpreter without setting of main active Python interpreter if it is not set to Python 3" - echo -} - -describe_set_parameters() { - echo "<target>" -} - -do_set() { - local main_active_python_interpreter python2="0" python3="0" pypy1="0" - SET_MAIN_ACTIVE_PYTHON_INTERPRETER="1" - while [[ $# > 0 ]]; do - case "$1" in - --pypy1) - pypy1="1" - PYTHON_INTERPRETERS_GROUP="1" - ;; - --python2) - python2="1" - PYTHON_INTERPRETERS_GROUP="2" - ;; - --python3) - python3="1" - PYTHON_INTERPRETERS_GROUP="3" - ;; - *) - break - ;; - esac - shift - done - - if [[ "${python2}" == "1" && "${python3}" == "1" ]]; then - die -q "'--python2' and '--python3' options cannot be specified simultaneously" - elif [[ "${pypy1}" == "1" && "${python2}" == "1" ]]; then - die -q "'--pypy-c1' and '--python2' options cannot be specified simultaneously" - elif [[ "${pypy1}" == "1" && "${python3}" == "1" ]]; then - die -q "'--pypy-c1' and '--python3' options cannot be specified simultaneously" - fi - - if [[ $# -lt 1 ]]; then - die -q "'eselect python set' requires Python interpreter filename" - elif [[ $# -gt 1 ]]; then - die -q "'eselect python set' requires 1 argument" - else - main_active_python_interpreter="$(do_show)" - if [[ "${python2}" == "1" && "${main_active_python_interpreter}" != "python2."* ]]; then - if [[ "${python3}" == "1" && "${main_active_python_interpreter}" != "python3."* ]]; then - if [[ "${pypy1}" == "1" && "${main_active_python_interpreter}" != "pypy-c1."* ]]; then - SET_MAIN_ACTIVE_PYTHON_INTERPRETER="0" - fi - fi - fi - - if ! set_scripts_and_symlinks "${1}"; then - die -q "Can't set new provider" - fi - - if [[ "${SET_MAIN_ACTIVE_PYTHON_INTERPRETER}" == "1" ]]; then - set_python_docs "${1}" - fi - fi -} - -### update action ### - -describe_update() { - echo "Switch to the most recent CPython interpreter" -} - -describe_update_options() { - echo "--if-unset : Do not override existing implementation" - echo "--ignore SLOT : Ignore SLOT when setting symlinks" - echo "--pypy-c1 : Set active Pypy-c 1 interpreter without setting of main active Python interpreter if it is not set to Pypy-c 1" - echo "--python2 : Set active Python 2 interpreter without setting of main active Python interpreter if it is not set to Python 2" - echo "--python3 : Set active Python 3 interpreter without setting of main active Python interpreter if it is not set to Python 3" -} - -do_update() { - local if_unset="0" ignored_slots=() interpreters="python?.?" python2="0" python3="0" pypy1="0" - local python_version_option= slot= target targets=() - while [[ $# > 0 ]]; do - case "$1" in - --if-unset) - if_unset="1" - ;; - --ignore) - ignored_slots+=("${2}") - shift;; - --pypy1) - pypy1="1" - python_version_option="--pypy-c1" - ;; - --python2) - python2="1" - python_version_option="--python2" - ;; - --python3) - python3="1" - python_version_option="--python3" - ;; - *) - die -q "Unrecognized argument '$1'" - ;; - esac - shift - done - - if [[ "${python2}" == "1" && "${python3}" == "1" ]]; then - die -q "'--python2' and '--python3' options cannot be specified simultaneously" - elif [[ "${pypy1}" == "1" && "${python2}" == "1" ]]; then - die -q "'--pypy-c1' and '--python2' options cannot be specified simultaneously" - elif [[ "${pypy1}" == "1" && "${python3}" == "1" ]]; then - die -q "'--pypy-c1' and '--python3' options cannot be specified simultaneously" - fi - - # This reduceS by 3 lines - if [[ "${if_unset}" == "1" && -f "${INTERPRETER_PATH}python" && -f "${ENV_D_PATH}/python/config" ]]; then - if [[ "${pypy1}" == "1" && -f "${INTERPRETER_PATH}pypy1" ]]; then - if [[ "${python2}" == "1" && -f "${INTERPRETER_PATH}python2" ]]; then - if [[ "${python3}" == "1" && -f "${INTERPRETER_PATH}python3" ]]; then - if [[ "${python2}" == "0" && "${python3}" == "0" && "${pypy1}" == "0" ]]; then - return - fi - fi - fi - fi - fi - - if [[ "${pypy1}" == "1" ]]; then - interpreters="pypy-c1.?" - elif [[ "${python2}" == "1" ]]; then - interpreters="python2.?" - elif [[ "${python3}" == "1" ]]; then - interpreters="python3.?" - fi - - targets=($(cd "${INTERPRETER_PATH}"; ls ${interpreters} 2> /dev/null | sort -r)) - - # Ignore slots - for slot in ${ignored_slots[@]}; do - targets=(${targets[@]/python${slot}/}) - done - - if [[ ${#targets[@]} -gt 0 ]]; then - target=${targets[0]} - echo "Switching to ${target}" - do_set ${python_version_option} ${target} - else - die -q "No Python interpreter available" - fi -} - -# vim: set ft=eselect : diff --git a/dev-python/autobahn/Manifest b/dev-python/autobahn/Manifest deleted file mode 100644 index f94af3c..0000000 --- a/dev-python/autobahn/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST autobahn-0.5.2.zip 60501 RMD160 86b97b7f2125bb7030191b8dedcce02768157bbd SHA1 8d8470c9b500aea4d58f188b61f37fe77424e288 SHA256 bf263535c9f5f28a7827a4cb667630fb59254e7a81e9c979ecfdc048a2c7f7b1 diff --git a/dev-python/autobahn/autobahn-0.5.2.ebuild b/dev-python/autobahn/autobahn-0.5.2.ebuild deleted file mode 100644 index f02a850..0000000 --- a/dev-python/autobahn/autobahn-0.5.2.ebuild +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=4 - -PYTHON_DEPEND="2" -SUPPORT_PYTHON_ABIS="1" -RESTRICT_PYTHON_ABIS="3.*" - -inherit distutils - -DESCRIPTION="WebSocket/WAMP protocol implementation for Python/Twisted" -HOMEPAGE="http://pypi.python.org/pypi/autobahn http://autobahn.ws/developers" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -RDEPEND="dev-python/setuptools - >=dev-python/twisted-11.0.0" -DEPEND="app-arch/unzip - dev-python/setuptools" diff --git a/dev-python/autobahn/metadata.xml b/dev-python/autobahn/metadata.xml deleted file mode 100644 index 20d6023..0000000 --- a/dev-python/autobahn/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ -<?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">autobahn</remote-id> - </upstream> -</pkgmetadata> diff --git a/dev-python/autobahntestsuite/Manifest b/dev-python/autobahntestsuite/Manifest deleted file mode 100644 index 5c1795e..0000000 --- a/dev-python/autobahntestsuite/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST autobahntestsuite-0.5.1.zip 171927 RMD160 65748caffb4227fc40db6c5bcf384b54a0fa2559 SHA1 5b7c8108308b49c2bfb2916e369cc458f01fd6e0 SHA256 91484c309e734cf9316197b94b76a57a592cc58e0ca4e027af429bc8b3e68201 diff --git a/dev-python/autobahntestsuite/autobahntestsuite-0.5.1.ebuild b/dev-python/autobahntestsuite/autobahntestsuite-0.5.1.ebuild deleted file mode 100644 index d3513f9..0000000 --- a/dev-python/autobahntestsuite/autobahntestsuite-0.5.1.ebuild +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=4 - -PYTHON_DEPEND="2" -SUPPORT_PYTHON_ABIS="1" -RESTRICT_PYTHON_ABIS="3.*" - -inherit distutils - -DESCRIPTION="WebSocket/WAMP protocol implementation test suite" -HOMEPAGE="http://pypi.python.org/pypi/autobahntestsuite http://autobahn.ws/testsuite" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -DEPEND="app-arch/unzip - dev-python/setuptools" -RDEPEND="dev-python/autobahn - dev-python/setuptools - >=dev-python/twisted-11.0.0 - >=dev-python/twisted-web-11.0.0" diff --git a/dev-python/autobahntestsuite/metadata.xml b/dev-python/autobahntestsuite/metadata.xml deleted file mode 100644 index 5232cec..0000000 --- a/dev-python/autobahntestsuite/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ -<?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">autobahntestsuite</remote-id> - </upstream> -</pkgmetadata> diff --git a/dev-python/pyudev/ChangeLog b/dev-python/pyudev/ChangeLog deleted file mode 100644 index 6322c1d..0000000 --- a/dev-python/pyudev/ChangeLog +++ /dev/null @@ -1,72 +0,0 @@ -# ChangeLog for dev-python/pyudev -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pyudev/ChangeLog,v 1.14 2012/04/29 14:52:19 maekke Exp $ - - 26 Jun 2012; <testuser@gentoo.org> pyudev-0.15.ebuild: - [dev-python/pyudev] edited test deps - - 29 Apr 2012; Markus Meier <maekke@gentoo.org> pyudev-0.15.ebuild: - x86 stable, bug #401639 - - 22 Apr 2012; Agostino Sarubbo <ago@gentoo.org> pyudev-0.15.ebuild: - Stable for amd64, wrt bug #401639 - -*pyudev-0.15 (09 Mar 2012) - - 09 Mar 2012; Patrick Lauer <patrick@gentoo.org> +pyudev-0.15.ebuild: - Bump - - 12 Feb 2012; Mike Gilbert <floppym@gentoo.org> pyudev-0.11.ebuild, - pyudev-0.12.ebuild, pyudev-0.13.ebuild: - Per Arfrever, LICENSE="LGPL-2.1" - -*pyudev-0.13 (11 Nov 2011) - - 11 Nov 2011; Stefan Briesenick <sbriesen@gentoo.org> +pyudev-0.13.ebuild: - version bump, disabled tests for now; depends highly on installed udev - version, will most likely break on most installations. feel free to send - patches... (solving bug #382799) - - 24 Oct 2011; Alexandre Rostovtsev <tetromino@gentoo.org> pyudev-0.11.ebuild, - pyudev-0.12.ebuild: - Depend on correct slot of pygobject. - -*pyudev-0.12 (13 Sep 2011) - - 13 Sep 2011; Dirkjan Ochtman <djc@gentoo.org> +pyudev-0.12.ebuild: - Version bump to 0.12. - - 05 Aug 2011; Markos Chandras <hwoarang@gentoo.org> -pyudev-0.10.ebuild: - Remove old ebuild. Requested by Arfrever - - 10 Jul 2011; Stefan Briesenick <sbriesen@gentoo.org> -pyudev-0.9.ebuild: - removed old version - -*pyudev-0.11 (10 Jul 2011) - - 10 Jul 2011; Stefan Briesenick <sbriesen@gentoo.org> pyudev-0.10.ebuild, - +pyudev-0.11.ebuild: - fixed failing tests (bug #373787) + version bump. - -*pyudev-0.10 (20 Apr 2011) - - 20 Apr 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> - +pyudev-0.10.ebuild: - Version bump. - - 13 Apr 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> - pyudev-0.9.ebuild: - Fix dependencies of tests (bug #363457). - -*pyudev-0.9 (09 Mar 2011) - - 09 Mar 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> - +pyudev-0.9.ebuild: - Version bump (bug #347297). - -*pyudev-0.2 (25 Jul 2010) - - 25 Jul 2010; Stefan Briesenick <sbriesen@gentoo.org> +pyudev-0.2.ebuild, - +metadata.xml: - initial commit. - diff --git a/dev-python/pyudev/Manifest b/dev-python/pyudev/Manifest deleted file mode 100644 index 7186603..0000000 --- a/dev-python/pyudev/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST pyudev-0.15.tar.gz 72719 SHA256 12f462b777388c447edaac9e4b423a38a76eeb43f36b1a42288e771309d663c2 SHA512 0ca63d489b0f53162de317c716cc365b010e83bca6bf09c2067284699e04dd303ac4c9b1c9c18a94190d241e265a0e83a44aaceeee2dfbe0754d75192f0210ae WHIRLPOOL 9b3b2e5ac80fc5a149e9a9e202113b0defe21f5a03c68f71b9a34fb4b32aa753cc4a53364e96bbc6fbeebe3b8fc728cbde1fbd9b847308971afed1b15e24b370 diff --git a/dev-python/pyudev/files/pyudev_wrapped_test.patch b/dev-python/pyudev/files/pyudev_wrapped_test.patch deleted file mode 100644 index 3f23380..0000000 --- a/dev-python/pyudev/files/pyudev_wrapped_test.patch +++ /dev/null @@ -1,42 +0,0 @@ -/* tests/test_monitor.py:195: draws an error because the gentoo sandbox pathname becomes a mile long -second patch here changes its name to t_bs and even then it only just makes it. -I normally use PORTAGE_TMPDIR="/mnt/gen2/TmpDir" which is too long under any circumstance. -By rights this requires an ewarn line; -"if your PORTAGE_TMPDIR isn't /var/tmp/, change it to /var/tmp for tests to pass for this package" -sometimes I get a fail of TestTags.test_iteration[..] then run again and it passes -diff -ur pyudev-0.15.orig/tests/test_libudev.py pyudev-0.15/tests/test_libudev.py ---- tests//test_libudev.py 2012-06-25 18:18:06.051694665 +0800 -+++ tests/test_libudev.py 2012-03-02 02:26:26.000000000 +0800 -@@ -150,10 +150,12 @@ - - @pytest.mark.coverage - def test_is_wrapped(function_name): -- wrapped_functions = set('{0}_{1}'.format(ns, member) -- for ns, members in binding.SIGNATURES.items() -- for member in members) -- if _is_blacklisted(function_name): -- assert function_name not in wrapped_functions -- else: -- assert function_name in wrapped_functions -+ if function_name != 'udev_enumerate_scan_subsystems': -+ if function_name != 'udev_enumerate_add_syspath': -+ wrapped_functions = set('{0}_{1}'.format(ns, member) -+ for ns, members in binding.SIGNATURES.items() -+ for member in members) -+ if _is_blacklisted(function_name): -+ assert function_name not in wrapped_functions -+ else: -+ assert function_name in wrapped_functions -diff -ur pyudev-0.15.orig/tests/test_monitor.py pyudev-0.15/tests/test_monitor.py ---- tests/test_monitor.py 2012-06-25 18:22:30.641674253 +0800 -+++ tests/test_monitor.py 2012-03-02 02:25:20.000000000 +0800 -@@ -214,8 +214,7 @@ - monitor.set_receive_buffer_size(1000) - func.assert_called_with(monitor, 1000) - -- def test_set_receive_buffer_size_privilege_error(self, monitor, -- socket_path): -+ def t_bs(self, monitor, socket_path): - with pytest.raises(EnvironmentError) as exc_info: - monitor.set_receive_buffer_size(1000) - pytest.assert_env_error(exc_info.value, errno.EPERM) diff --git a/dev-python/pyudev/metadata.xml b/dev-python/pyudev/metadata.xml deleted file mode 100644 index e870cbb..0000000 --- a/dev-python/pyudev/metadata.xml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <herd>python</herd> - <maintainer> - <email>sbriesen@gentoo.org</email> - <name>Stefan Briesenick</name> - </maintainer> - <longdescription lang="en">pyudev is a Python binding to libudev, the hardware management - library and service found in modern linux systems.</longdescription> - <use> - <flag name="pygobject">Install PyGobject binding</flag> - <flag name="pyqt4">Install PyQt4 binding</flag> - <flag name="pyside">Install PySide binding</flag> - </use> - <upstream> - <remote-id type="pypi">pyudev</remote-id> - </upstream> -</pkgmetadata> diff --git a/dev-python/pyudev/pyudev-0.15.ebuild b/dev-python/pyudev/pyudev-0.15.ebuild deleted file mode 100644 index 26fc17d..0000000 --- a/dev-python/pyudev/pyudev-0.15.ebuild +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pyudev/pyudev-0.15.ebuild,v 1.3 2012/04/29 14:52:19 maekke Exp $ - -EAPI="4" -PYTHON_DEPEND="*:2.6" -SUPPORT_PYTHON_ABIS="1" -RESTRICT_PYTHON_ABIS="2.[45] *-jython" -DISTUTILS_SRC_TEST="py.test" # FIXME: some tests are known to fail - -inherit distutils eutils - -DESCRIPTION="Python binding to libudev" -HOMEPAGE="http://packages.python.org/pyudev/ http://pypi.python.org/pypi/pyudev" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="pygobject pyqt4 pyside" - -RDEPEND=">=sys-fs/udev-151 - pygobject? ( dev-python/pygobject:2 ) - pyqt4? ( dev-python/PyQt4 ) - pyside? ( dev-python/pyside )" -DEPEND="${RDEPEND} - dev-python/setuptools - test? ( dev-python/mock - dev-cpp/gccxml )" - -DOCS="CHANGES.rst README.rst" - -src_prepare() { - distutils_src_prepare - - epatch "${FILESDIR}"/${PN}_wrapped_test.patch - # tests: fix run_path - sed -i -e "s|== \('/run/udev'\)|in (\1,'/dev/.udev')|g" tests/test_core.py - - if ! use pygobject; then - rm -f pyudev/glib.py - sed -i -e "s|[, ]*GlibBinding()||g" tests/test_observer.py - fi - if ! use pyqt4; then - rm -f pyudev/pyqt4.py - sed -i -e "s|Qt4Binding('PyQt4')[, ]*||g" tests/test_observer.py - fi - if ! use pyside; then - rm -f pyudev/pyside.py - sed -i -e "s|Qt4Binding('PySide')[, ]*||g" tests/test_observer.py - fi - if ! use pyqt4 && ! use pyside; then - rm -f pyudev/_qt_base.py - fi - if ! use pyqt4 && ! use pyside && ! use pygobject; then - rm -f tests/test_observer.py - fi -} diff --git a/dev-python/traits/Manifest b/dev-python/traits/Manifest deleted file mode 100644 index 4ebe552..0000000 --- a/dev-python/traits/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST traits-4.2.0.tar.gz 4838020 SHA256 ca90fe98f0cf33db8fec0d696cfe624e690907a6f70b9ec42081e51dddd420f5 SHA512 5b93010363e737fe180c9fbb8fa8322a6f7be1ab5fe8ebcda12a0b4d2c5d4c64262d4372abf8cfb2622a6e8ff6f030cd62f806c86bb02420c87631b7c0733c07 WHIRLPOOL f0a485b0317913b67b570793c79db6b085287d400f034623d385a803bec23a557de322d186bf424c8ceab2cb7604fab87d5cef5cdb7a0e2a6e6735e19b941f36 diff --git a/dev-python/traits/metadata.xml b/dev-python/traits/metadata.xml deleted file mode 100644 index 490c40a..0000000 --- a/dev-python/traits/metadata.xml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <herd>python</herd> - <longdescription lang="en"> - The traits package from the Enthought Tool Suite provides a - metaclass with special attributes that are called traits. A trait - is a type definition that can be used for normal Python object - attributes, giving the attributes some additional characteristics: - * Initialization: A trait attribute can have a default value - * Validation: A trait attribute is manifestly typed. - * Delegation: The value of a trait attribute can be contained in another - object - * Notification: Setting the value of a trait attribute can fired - callbacks - * Visualization: With the TraitsUI package, GUIs can be generated - automatically from traited objects. - </longdescription> -</pkgmetadata> diff --git a/dev-python/traits/traits-4.2.0.ebuild b/dev-python/traits/traits-4.2.0.ebuild deleted file mode 100644 index cb3f194..0000000 --- a/dev-python/traits/traits-4.2.0.ebuild +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/traits/traits-4.1.0.ebuild,v 1.3 2012/06/01 13:02:22 ago Exp $ - -EAPI=4 - -PYTHON_DEPEND="2" -SUPPORT_PYTHON_ABIS="1" -RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*" -DISTUTILS_SRC_TEST="nosetests" - -inherit distutils - -DESCRIPTION="Enthought Tool Suite: Explicitly typed attributes for Python" -HOMEPAGE="http://code.enthought.com/projects/traits/ http://pypi.python.org/pypi/traits" -SRC_URI="http://www.enthought.com/repo/ets/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" -IUSE="doc examples test" - -RDEPEND="dev-python/numpy" -DEPEND="dev-python/setuptools - doc? ( dev-python/sphinx ) - test? ( dev-python/numpy )" - -DOCS="docs/*.txt" -PYTHON_CFLAGS=("2.* + -fno-strict-aliasing") - -src_prepare() { - sed -i -e "s/'-O3'//g" setup.py || die - find -name "*LICENSE*.txt" -delete -} - -src_compile() { - distutils_src_compile - if use doc ; then - pushd docs &> /dev/null - PYTHONPATH="$(ls -d ../build-$(PYTHON -f --ABI)/lib.*)" sphinx-build -b html -d build/doctrees source build/html - popd &> /dev/null - fi -} - -src_test() { - testing() { - nosetests -P -s $(ls -d build-${PYTHON_ABI}/lib*) -v - } - python_execute_function testing -} - -src_install() { - distutils_src_install - - delete_tests() { - rm -rf "${ED}$(python_get_sitedir)/${PN}/tests" - } - python_execute_function -q delete_tests - - use doc && dohtml -r docs/build/html/* - - if use examples; then - insinto /usr/share/doc/${PF} - doins -r examples - fi -} diff --git a/dev-python/ws4py/ChangeLog b/dev-python/ws4py/ChangeLog deleted file mode 100644 index 5d1588b..0000000 --- a/dev-python/ws4py/ChangeLog +++ /dev/null @@ -1,22 +0,0 @@ -# ChangeLog for dev-python/ws4py -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/ws4py/ChangeLog,v 1.3 2012/04/24 02:31:04 vapier Exp $ - -*ws4py-0.2.1-r2 (24 Apr 2012) - - 24 Apr 2012; Mike Frysinger <vapier@gentoo.org> +ws4py-0.2.1-r2.ebuild, - metadata.xml, ws4py-9999.ebuild: - Further refine client/server install and gevent requirement. - -*ws4py-0.2.1-r1 (20 Apr 2012) - - 20 Apr 2012; Mike Frysinger <vapier@gentoo.org> +ws4py-0.2.1-r1.ebuild, - +files/ws4py-0.2.1-process-data.patch: - Add fix from Jon Salz for partial data transfers. - -*ws4py-9999 (17 Apr 2012) -*ws4py-0.2.1 (17 Apr 2012) - - 17 Apr 2012; Mike Frysinger <vapier@gentoo.org> +ws4py-0.2.1.ebuild, - +ws4py-9999.ebuild, +metadata.xml: - Initial ebuild import for ChromiumOS. diff --git a/dev-python/ws4py/Manifest b/dev-python/ws4py/Manifest deleted file mode 100644 index 4df6b02..0000000 --- a/dev-python/ws4py/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST ws4py-0.2.1.tar.gz 1858090 RMD160 994cd2b0cb73cd3f04efdfcbd25df01ad380f131 SHA1 5967f99fac74bf890e1ecca996ba839c57c99673 SHA256 8f902a5be5bed493392ccbabd71406c113c89f973a0d635d7ed35a4d8ec932c5 diff --git a/dev-python/ws4py/files/ws4py-0.2.1-process-data.patch b/dev-python/ws4py/files/ws4py-0.2.1-process-data.patch deleted file mode 100644 index 5476f2d..0000000 --- a/dev-python/ws4py/files/ws4py-0.2.1-process-data.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 38cf669e27fab9de187eb11dabd7d85d73d5f470 Mon Sep 17 00:00:00 2001 -From: Jon Salz <jsalz@chromium.org> -Date: Fri, 20 Apr 2012 02:22:46 +0800 -Subject: [PATCH] Process remaining bytes in the body, if any. - -https://github.com/Lawouach/WebSocket-for-Python/issues/46 ---- - ws4py/client/__init__.py | 3 +++ - 1 files changed, 3 insertions(+), 0 deletions(-) - -diff --git a/ws4py/client/__init__.py b/ws4py/client/__init__.py -index aa4c8f2..29b1357 100644 ---- a/ws4py/client/__init__.py -+++ b/ws4py/client/__init__.py -@@ -71,6 +71,9 @@ class WebSocketBaseClient(WebSocket): - - self.handshake_ok() - -+ if body != '': -+ self.process(body) -+ - @property - def handshake_headers(self): - parts = urlsplit(self.url) --- -1.7.3.4 - diff --git a/dev-python/ws4py/metadata.xml b/dev-python/ws4py/metadata.xml deleted file mode 100644 index 13bc2c4..0000000 --- a/dev-python/ws4py/metadata.xml +++ /dev/null @@ -1,13 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<herd>python</herd> -<maintainer> - <email>vapier@gentoo.org</email> - <description>make whatever changes you want</description> -</maintainer> -<use> - <flag name='client'>Install client modules</flag> - <flag name='server'>Install server modules</flag> -</use> -</pkgmetadata> diff --git a/dev-python/ws4py/ws4py-0.2.1-r3.ebuild b/dev-python/ws4py/ws4py-0.2.1-r3.ebuild deleted file mode 100644 index 4bb8cc7..0000000 --- a/dev-python/ws4py/ws4py-0.2.1-r3.ebuild +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/ws4py/ws4py-0.2.1-r2.ebuild,v 1.1 2012/04/24 02:31:04 vapier Exp $ - -# We could depend on dev-python/cherrypy when USE=server, but -# that is an optional component ... -# Same for www-servers/tornado and USE=client ... - -EAPI="4" - -PYTHON_DEPEND="2" -SUPPORT_PYTHON_ABIS="1" -RESTRICT_PYTHON_ABIS="3.*" - -inherit distutils eutils - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://github.com/Lawouach/WebSocket-for-Python.git" - inherit git-2 -else - inherit vcs-snapshot - SRC_URI="https://github.com/Lawouach/WebSocket-for-Python/tarball/v${PV} -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~x86" -fi - -DESCRIPTION="WebSocket support for Python" -HOMEPAGE="https://github.com/Lawouach/WebSocket-for-Python" - -LICENSE="BSD" -SLOT="0" -IUSE="+client +server +threads" - -RDEPEND="client? ( dev-lang/python[threads?] ) - dev-python/gevent" -# one-of-many for server??? -DEPEND=" - test? ( - dev-python/authobahntestsuite - dev-python/cherrypy - www-servers/tornado - ${RDEPEND} - ) -" - -src_prepare() { - epatch "${FILESDIR}"/${P}-process-data.patch - distutils_src_prepare -} - -# Figure out how to run them... -#src_test() { -# cd test -# python autobahn_test_servers.py --run-all -# wstest -m fuzzingclient -s fuzzingclient.json -#} - -src_install() { - distutils_src_install - use client || rm -rf "${ED}$(python_get_sitedir)"/ws4py/client - use server || rm -rf "${ED}$(python_get_sitedir)"/ws4py/server -} |