[arch-commits] Commit in python/repos (6 files)

2017-10-24 Thread Felix Yan
Date: Tuesday, October 24, 2017 @ 15:51:03
  Author: felixonmars
Revision: 308392

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  python/repos/testing-i686/
  python/repos/testing-i686/PKGBUILD
(from rev 308391, python/trunk/PKGBUILD)
  python/repos/testing-i686/dont-make-libpython-readonly.patch
(from rev 308391, python/trunk/dont-make-libpython-readonly.patch)
  python/repos/testing-x86_64/
  python/repos/testing-x86_64/PKGBUILD
(from rev 308391, python/trunk/PKGBUILD)
  python/repos/testing-x86_64/dont-make-libpython-readonly.patch
(from rev 308391, python/trunk/dont-make-libpython-readonly.patch)

---+
 testing-i686/PKGBUILD |  112 
 testing-i686/dont-make-libpython-readonly.patch   |   13 ++
 testing-x86_64/PKGBUILD   |  112 
 testing-x86_64/dont-make-libpython-readonly.patch |   13 ++
 4 files changed, 250 insertions(+)

Copied: python/repos/testing-i686/PKGBUILD (from rev 308391, 
python/trunk/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2017-10-24 15:51:03 UTC (rev 308392)
@@ -0,0 +1,112 @@
+# $Id$
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
+# Contributor: Stéphane Gaudreault 
+# Contributor: Allan McRae 
+# Contributor: Jason Chu 
+
+pkgname=python
+pkgver=3.6.3
+pkgrel=1
+_pybasever=3.6
+pkgdesc="Next generation of the python high-level scripting language"
+arch=('i686' 'x86_64')
+license=('custom')
+url="http://www.python.org/;
+depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
+makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal' 'llvm' 'gdb' 
'xorg-server-xvfb')
+optdepends=('python-setuptools'
+'python-pip'
+'sqlite'
+'mpdecimal: for decimal'
+'xz: for lzma'
+'tk: for tkinter')
+provides=('python3')
+replaces=('python3')
+source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
+dont-make-libpython-readonly.patch)
+sha512sums=('32f24a3adcb7880003c7ecdc5e53e838e774adda76b308961d8215e28db630b2fa2828097817924c76afa4212b2df3362eb64d4e10f37c0147f512ec5aa8662b'
+'SKIP'
+
'2ef96708d5b13ae2a3d2cc62c87b4780e60ecfce914e190564492def3a11d5e56977659f41c7f9d12266e58050c766bce4e2b5d50b708eb792794fa8357920c4')
+validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D')  # Ned Deily (Python 
release signing key) 
+
+prepare() {
+  cd Python-${pkgver}
+
+  # FS#45809
+  patch -p1 -i ../dont-make-libpython-readonly.patch
+
+  # FS#23997
+  sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
+
+  # Ensure that we are using the system copy of various libraries (expat, 
zlib, libffi, and libmpdec),
+  # rather than copies shipped in the tarball
+  rm -r Modules/expat
+  rm -r Modules/zlib
+  rm -r Modules/_ctypes/{darwin,libffi}*
+  rm -r Modules/_decimal/libmpdec
+}
+
+build() {
+  cd Python-${pkgver}
+
+  # Disable bundled pip & setuptools
+  ./configure --prefix=/usr \
+  --enable-shared \
+  --with-threads \
+  --with-computed-gotos \
+  --enable-optimizations \
+  --with-lto \
+  --enable-ipv6 \
+  --with-system-expat \
+  --with-dbmliborder=gdbm:ndbm \
+  --with-system-ffi \
+  --with-system-libmpdec \
+  --enable-loadable-sqlite-extensions \
+  --without-ensurepip
+
+  # Obtain next free server number for xvfb-run; this even works in a chroot 
environment.
+  export servernum=99
+  while ! xvfb-run -a -n "$servernum" /bin/true 2>/dev/null; do 
servernum=$((servernum+1)); done
+
+  LC_CTYPE=en_US.UTF-8 xvfb-run -a -n "$servernum" make EXTRA_CFLAGS="$CFLAGS"
+}
+
+check() {
+  # test_gdb is expected to fail with LTO
+  # test_subprocess hangs on 3.6.3
+
+  cd Python-${pkgver}
+
+  # Obtain next free server number for xvfb-run; this even works in a chroot 
environment.
+  export servernum=99
+  while ! xvfb-run -a -n "$servernum" /bin/true 2>/dev/null; do 
servernum=$((servernum+1)); done
+
+  LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
+  LC_CTYPE=en_US.UTF-8 xvfb-run -a -n "$servernum" \
+"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_gdb 
-x test_subprocess
+}
+
+package() {
+  cd Python-${pkgver}
+
+  # Hack to avoid building again
+  sed -i 's/^all:.*$/all: build_all/' Makefile
+
+  make DESTDIR="${pkgdir}" EXTRA_CFLAGS="$CFLAGS" install
+
+  # Why are these not done by default...
+  ln -s python3   "${pkgdir}"/usr/bin/python
+  ln -s python3-config"${pkgdir}"/usr/bin/python-config
+  ln -s 

[arch-commits] Commit in python/repos (6 files)

2016-12-24 Thread Felix Yan
Date: Saturday, December 24, 2016 @ 08:57:48
  Author: felixonmars
Revision: 284551

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  python/repos/staging-i686/
  python/repos/staging-i686/PKGBUILD
(from rev 284550, python/trunk/PKGBUILD)
  python/repos/staging-i686/dont-make-libpython-readonly.patch
(from rev 284550, python/trunk/dont-make-libpython-readonly.patch)
  python/repos/staging-x86_64/
  python/repos/staging-x86_64/PKGBUILD
(from rev 284550, python/trunk/PKGBUILD)
  python/repos/staging-x86_64/dont-make-libpython-readonly.patch
(from rev 284550, python/trunk/dont-make-libpython-readonly.patch)

---+
 staging-i686/PKGBUILD |  102 
 staging-i686/dont-make-libpython-readonly.patch   |   13 ++
 staging-x86_64/PKGBUILD   |  102 
 staging-x86_64/dont-make-libpython-readonly.patch |   13 ++
 4 files changed, 230 insertions(+)

Copied: python/repos/staging-i686/PKGBUILD (from rev 284550, 
python/trunk/PKGBUILD)
===
--- staging-i686/PKGBUILD   (rev 0)
+++ staging-i686/PKGBUILD   2016-12-24 08:57:48 UTC (rev 284551)
@@ -0,0 +1,102 @@
+# $Id$
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
+# Contributor: Stéphane Gaudreault 
+# Contributor: Allan McRae 
+# Contributor: Jason Chu 
+
+pkgname=python
+pkgver=3.6.0
+pkgrel=1
+_pybasever=3.6
+pkgdesc="Next generation of the python high-level scripting language"
+arch=('i686' 'x86_64')
+license=('custom')
+url="http://www.python.org/;
+depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
+makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal' 'llvm' 'gdb' 
'xorg-server-xvfb')
+optdepends=('python-setuptools'
+'python-pip'
+'sqlite'
+'mpdecimal: for decimal'
+'xz: for lzma'
+'tk: for tkinter')
+provides=('python3')
+replaces=('python3')
+source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
+dont-make-libpython-readonly.patch)
+sha1sums=('18ebf7d726782967d967dc00e3aa08b334fbdd5c'
+  'SKIP'
+  'c22b24324b8e53326702de439c401d97927ee3f2')
+validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D')  # Ned Deily (Python 
release signing key) 
+
+prepare() {
+  cd Python-${pkgver}
+
+  # FS#45809
+  patch -p1 -i ../dont-make-libpython-readonly.patch
+
+  # FS#23997
+  sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
+
+  # Ensure that we are using the system copy of various libraries (expat, 
zlib, libffi, and libmpdec),
+  # rather than copies shipped in the tarball
+  rm -r Modules/expat
+  rm -r Modules/zlib
+  rm -r Modules/_ctypes/{darwin,libffi}*
+  rm -r Modules/_decimal/libmpdec
+}
+
+build() {
+  cd Python-${pkgver}
+
+  # Disable bundled pip & setuptools
+  ./configure --prefix=/usr \
+  --enable-shared \
+  --with-threads \
+  --with-computed-gotos \
+  --enable-optimizations \
+  --with-lto \
+  --enable-ipv6 \
+  --with-system-expat \
+  --with-dbmliborder=gdbm:ndbm \
+  --with-system-ffi \
+  --with-system-libmpdec \
+  --enable-loadable-sqlite-extensions \
+  --without-ensurepip
+
+  LC_CTYPE=en_US.UTF-8 xvfb-run make EXTRA_CFLAGS="$CFLAGS"
+}
+
+check() {
+  # test_gdb is expected to fail with LTO
+
+  cd Python-${pkgver}
+  LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
+  LC_CTYPE=en_US.UTF-8 xvfb-run \
+"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_gdb
+}
+
+package() {
+  cd Python-${pkgver}
+
+  # Hack to avoid building again
+  sed -i 's/^all:.*$/all: build_all/' Makefile
+
+  make DESTDIR="${pkgdir}" EXTRA_CFLAGS="$CFLAGS" install
+
+  # Why are these not done by default...
+  ln -s python3   "${pkgdir}"/usr/bin/python
+  ln -s python3-config"${pkgdir}"/usr/bin/python-config
+  ln -s idle3 "${pkgdir}"/usr/bin/idle
+  ln -s pydoc3"${pkgdir}"/usr/bin/pydoc
+  ln -s python${_pybasever}.1 "${pkgdir}"/usr/share/man/man1/python.1
+
+  # some useful "stuff" FS#46146
+  install -dm755 "${pkgdir}"/usr/lib/python${_pybasever}/Tools/{i18n,scripts}
+  install -m755 Tools/i18n/{msgfmt,pygettext}.py 
"${pkgdir}"/usr/lib/python${_pybasever}/Tools/i18n/
+  install -m755 Tools/scripts/{README,*py} 
"${pkgdir}"/usr/lib/python${_pybasever}/Tools/scripts/
+
+  # License
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}

Copied: python/repos/staging-i686/dont-make-libpython-readonly.patch (from rev 
284550, 

[arch-commits] Commit in python/repos (6 files)

2016-11-07 Thread Bartłomiej Piotrowski
Date: Monday, November 7, 2016 @ 10:08:40
  Author: bpiotrowski
Revision: 280021

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  python/repos/staging-i686/
  python/repos/staging-i686/PKGBUILD
(from rev 280020, python/trunk/PKGBUILD)
  python/repos/staging-i686/dont-make-libpython-readonly.patch
(from rev 280020, python/trunk/dont-make-libpython-readonly.patch)
  python/repos/staging-x86_64/
  python/repos/staging-x86_64/PKGBUILD
(from rev 280020, python/trunk/PKGBUILD)
  python/repos/staging-x86_64/dont-make-libpython-readonly.patch
(from rev 280020, python/trunk/dont-make-libpython-readonly.patch)

---+
 staging-i686/PKGBUILD |  113 
 staging-i686/dont-make-libpython-readonly.patch   |   13 ++
 staging-x86_64/PKGBUILD   |  113 
 staging-x86_64/dont-make-libpython-readonly.patch |   13 ++
 4 files changed, 252 insertions(+)

Copied: python/repos/staging-i686/PKGBUILD (from rev 280020, 
python/trunk/PKGBUILD)
===
--- staging-i686/PKGBUILD   (rev 0)
+++ staging-i686/PKGBUILD   2016-11-07 10:08:40 UTC (rev 280021)
@@ -0,0 +1,113 @@
+# $Id$
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
+# Contributor: Stéphane Gaudreault 
+# Contributor: Allan McRae 
+# Contributor: Jason Chu 
+
+pkgname=python
+pkgver=3.5.2
+pkgrel=2
+_pybasever=3.5
+pkgdesc="Next generation of the python high-level scripting language"
+arch=('i686' 'x86_64')
+license=('custom')
+url="http://www.python.org/;
+depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
+makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal')
+checkdepends=('gdb' 'xorg-server-xvfb')
+optdepends=('python-setuptools'
+'python-pip'
+'sqlite'
+'mpdecimal: for decimal'
+'xz: for lzma'
+'tk: for tkinter')
+options=('!makeflags')
+provides=('python3')
+replaces=('python3')
+source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
+dont-make-libpython-readonly.patch)
+sha1sums=('4843aabacec5bc0cdd3e1f778faa926e532794d2'
+  'SKIP'
+  'c22b24324b8e53326702de439c401d97927ee3f2')
+validpgpkeys=('97FC712E4C024BBEA48A61ED3A5CA953F73C700D')  # Larry Hastings 

+
+prepare() {
+  cd Python-${pkgver}
+
+  # FS#45809
+  patch -p1 -i ../dont-make-libpython-readonly.patch
+
+  # FS#23997
+  sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
+
+  # Ensure that we are using the system copy of various libraries (expat, 
zlib, libffi, and libmpdec),
+  # rather than copies shipped in the tarball
+  rm -r Modules/expat
+  rm -r Modules/zlib
+  rm -r Modules/_ctypes/{darwin,libffi}*
+  rm -r Modules/_decimal/libmpdec
+}
+
+build() {
+  cd Python-${pkgver}
+
+  # Disable bundled pip & setuptools
+  ./configure --prefix=/usr \
+  --enable-shared \
+  --with-threads \
+  --with-computed-gotos \
+  --enable-ipv6 \
+  --with-system-expat \
+  --with-dbmliborder=gdbm:ndbm \
+  --with-system-ffi \
+  --with-system-libmpdec \
+  --enable-loadable-sqlite-extensions \
+  --without-ensurepip
+
+  make EXTRA_CFLAGS="$CFLAGS"
+}
+
+check() {
+  # Failures:
+  # test_distutils: because of our EXTRA_CFLAGS
+  # test_socket
+
+  # Hacks:
+  # test_tk: xvfb-run
+  # test_unicode_file: LC_CTYPE=en_US.utf-8
+  # test_gdb: SHELL=/bin/sh
+
+  cd Python-${pkgver}
+  SHELL=/bin/sh \
+  LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
+  LC_CTYPE=en_US.utf-8 xvfb-run \
+"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall || warning 
"Expected failure"
+}
+
+package() {
+  cd Python-${pkgver}
+  make DESTDIR="${pkgdir}" EXTRA_CFLAGS="$CFLAGS" install maninstall
+
+  # Why are these not done by default...
+  ln -s python3   "${pkgdir}"/usr/bin/python
+  ln -s python3-config"${pkgdir}"/usr/bin/python-config
+  ln -s idle3 "${pkgdir}"/usr/bin/idle
+  ln -s pydoc3"${pkgdir}"/usr/bin/pydoc
+  ln -s python${_pybasever}.1 "${pkgdir}"/usr/share/man/man1/python.1
+
+  # Fix FS#22552
+  ln -sf ../../libpython${_pybasever}m.so \
+
"${pkgdir}/usr/lib/python${_pybasever}/config-${_pybasever}m/libpython${_pybasever}m.so"
+
+  # some useful "stuff" FS#46146
+  install -dm755 "${pkgdir}"/usr/lib/python${_pybasever}/Tools/{i18n,scripts}
+  install -m755 Tools/i18n/{msgfmt,pygettext}.py 
"${pkgdir}"/usr/lib/python${_pybasever}/Tools/i18n/
+  install -m755 Tools/scripts/{README,*py} 
"${pkgdir}"/usr/lib/python${_pybasever}/Tools/scripts/
+
+  # Clean-up reference to build 

[arch-commits] Commit in python/repos (6 files)

2016-06-28 Thread Felix Yan
Date: Tuesday, June 28, 2016 @ 09:06:03
  Author: felixonmars
Revision: 270755

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  python/repos/testing-i686/
  python/repos/testing-i686/PKGBUILD
(from rev 270754, python/trunk/PKGBUILD)
  python/repos/testing-i686/dont-make-libpython-readonly.patch
(from rev 270754, python/trunk/dont-make-libpython-readonly.patch)
  python/repos/testing-x86_64/
  python/repos/testing-x86_64/PKGBUILD
(from rev 270754, python/trunk/PKGBUILD)
  python/repos/testing-x86_64/dont-make-libpython-readonly.patch
(from rev 270754, python/trunk/dont-make-libpython-readonly.patch)

---+
 testing-i686/PKGBUILD |  111 
 testing-i686/dont-make-libpython-readonly.patch   |   13 ++
 testing-x86_64/PKGBUILD   |  111 
 testing-x86_64/dont-make-libpython-readonly.patch |   13 ++
 4 files changed, 248 insertions(+)

Copied: python/repos/testing-i686/PKGBUILD (from rev 270754, 
python/trunk/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2016-06-28 09:06:03 UTC (rev 270755)
@@ -0,0 +1,111 @@
+# $Id$
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
+# Contributor: Stéphane Gaudreault 
+# Contributor: Allan McRae 
+# Contributor: Jason Chu 
+
+pkgname=python
+pkgver=3.5.2
+pkgrel=1
+_pybasever=3.5
+pkgdesc="Next generation of the python high-level scripting language"
+arch=('i686' 'x86_64')
+license=('custom')
+url="http://www.python.org/;
+depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
+makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal')
+checkdepends=('gdb' 'xorg-server-xvfb')
+optdepends=('python-setuptools'
+'python-pip'
+'sqlite'
+'mpdecimal: for decimal'
+'xz: for lzma'
+'tk: for tkinter')
+options=('!makeflags')
+provides=('python3')
+replaces=('python3')
+source=("http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz;
+dont-make-libpython-readonly.patch)
+sha1sums=('4843aabacec5bc0cdd3e1f778faa926e532794d2'
+  'c22b24324b8e53326702de439c401d97927ee3f2')
+
+prepare() {
+  cd Python-${pkgver}
+
+  # FS#45809
+  patch -p1 -i ../dont-make-libpython-readonly.patch
+
+  # FS#23997
+  sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
+
+  # Ensure that we are using the system copy of various libraries (expat, 
zlib, libffi, and libmpdec),
+  # rather than copies shipped in the tarball
+  rm -r Modules/expat
+  rm -r Modules/zlib
+  rm -r Modules/_ctypes/{darwin,libffi}*
+  rm -r Modules/_decimal/libmpdec
+}
+
+build() {
+  cd Python-${pkgver}
+
+  # Disable bundled pip & setuptools
+  ./configure --prefix=/usr \
+  --enable-shared \
+  --with-threads \
+  --with-computed-gotos \
+  --enable-ipv6 \
+  --with-system-expat \
+  --with-dbmliborder=gdbm:ndbm \
+  --with-system-ffi \
+  --with-system-libmpdec \
+  --enable-loadable-sqlite-extensions \
+  --without-ensurepip
+
+  make EXTRA_CFLAGS="$CFLAGS"
+}
+
+check() {
+  # Failures:
+  # test_distutils: because of our EXTRA_CFLAGS
+  # test_socket
+
+  # Hacks:
+  # test_tk: xvfb-run
+  # test_unicode_file: LC_CTYPE=en_US.utf-8
+  # test_gdb: SHELL=/bin/sh
+
+  cd Python-${pkgver}
+  SHELL=/bin/sh \
+  LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
+  LC_CTYPE=en_US.utf-8 xvfb-run \
+"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall || warning 
"Expected failure"
+}
+
+package() {
+  cd Python-${pkgver}
+  make DESTDIR="${pkgdir}" EXTRA_CFLAGS="$CFLAGS" install maninstall
+
+  # Why are these not done by default...
+  ln -s python3   "${pkgdir}"/usr/bin/python
+  ln -s python3-config"${pkgdir}"/usr/bin/python-config
+  ln -s idle3 "${pkgdir}"/usr/bin/idle
+  ln -s pydoc3"${pkgdir}"/usr/bin/pydoc
+  ln -s python${_pybasever}.1 "${pkgdir}"/usr/share/man/man1/python.1
+
+  # Fix FS#22552
+  ln -sf ../../libpython${_pybasever}m.so \
+
"${pkgdir}/usr/lib/python${_pybasever}/config-${_pybasever}m/libpython${_pybasever}m.so"
+
+  # some useful "stuff" FS#46146
+  install -dm755 "${pkgdir}"/usr/lib/python${_pybasever}/Tools/{i18n,scripts}
+  install -m755 Tools/i18n/{msgfmt,pygettext}.py 
"${pkgdir}"/usr/lib/python${_pybasever}/Tools/i18n/
+  install -m755 Tools/scripts/{README,*py} 
"${pkgdir}"/usr/lib/python${_pybasever}/Tools/scripts/
+
+  # Clean-up reference to build directory
+  sed -i "s|$srcdir/Python-${pkgver}:||" 
"$pkgdir/usr/lib/python${_pybasever}/config-${_pybasever}m/Makefile"
+
+  

[arch-commits] Commit in python/repos (6 files)

2016-03-03 Thread Evangelos Foutras
Date: Thursday, March 3, 2016 @ 10:45:46
  Author: foutrelis
Revision: 260599

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  python/repos/staging-i686/
  python/repos/staging-i686/PKGBUILD
(from rev 260598, python/trunk/PKGBUILD)
  python/repos/staging-i686/dont-make-libpython-readonly.patch
(from rev 260598, python/trunk/dont-make-libpython-readonly.patch)
  python/repos/staging-x86_64/
  python/repos/staging-x86_64/PKGBUILD
(from rev 260598, python/trunk/PKGBUILD)
  python/repos/staging-x86_64/dont-make-libpython-readonly.patch
(from rev 260598, python/trunk/dont-make-libpython-readonly.patch)

---+
 staging-i686/PKGBUILD |  113 
 staging-i686/dont-make-libpython-readonly.patch   |   13 ++
 staging-x86_64/PKGBUILD   |  113 
 staging-x86_64/dont-make-libpython-readonly.patch |   13 ++
 4 files changed, 252 insertions(+)

Copied: python/repos/staging-i686/PKGBUILD (from rev 260598, 
python/trunk/PKGBUILD)
===
--- staging-i686/PKGBUILD   (rev 0)
+++ staging-i686/PKGBUILD   2016-03-03 09:45:46 UTC (rev 260599)
@@ -0,0 +1,113 @@
+# $Id$
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
+# Contributor: Stéphane Gaudreault 
+# Contributor: Allan McRae 
+# Contributor: Jason Chu 
+
+pkgname=python
+pkgver=3.5.1
+pkgrel=2
+_pybasever=3.5
+pkgdesc="Next generation of the python high-level scripting language"
+arch=('i686' 'x86_64')
+license=('custom')
+url="http://www.python.org/;
+depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
+makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal')
+checkdepends=('gdb' 'xorg-server-xvfb')
+optdepends=('python-setuptools'
+'python-pip'
+'sqlite'
+'mpdecimal: for decimal'
+'xz: for lzma'
+'tk: for tkinter')
+options=('!makeflags')
+provides=('python3')
+replaces=('python3')
+source=("http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz;
+dont-make-libpython-readonly.patch)
+sha1sums=('0186da436db76776196612b98bb9c2f76acfe90e'
+  'c22b24324b8e53326702de439c401d97927ee3f2')
+
+prepare() {
+  cd Python-${pkgver}
+
+  # FS#45809
+  patch -p1 -i ../dont-make-libpython-readonly.patch
+
+  # FS#23997
+  sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
+
+  # Ensure that we are using the system copy of various libraries (expat, 
zlib, libffi, and libmpdec),
+  # rather than copies shipped in the tarball
+  rm -r Modules/expat
+  rm -r Modules/zlib
+  rm -r Modules/_ctypes/{darwin,libffi}*
+  rm -r Modules/_decimal/libmpdec
+}
+
+build() {
+  cd Python-${pkgver}
+
+  # Disable bundled pip & setuptools
+  ./configure --prefix=/usr \
+  --enable-shared \
+  --with-threads \
+  --with-computed-gotos \
+  --enable-ipv6 \
+  --with-system-expat \
+  --with-dbmliborder=gdbm:ndbm \
+  --with-system-ffi \
+  --with-system-libmpdec \
+  --enable-loadable-sqlite-extensions \
+  --without-ensurepip
+
+  make EXTRA_CFLAGS="$CFLAGS"
+}
+
+check() {
+  # Failures:
+  # test_pathlib & test_posixpath: https://bugs.python.org/issue24950
+  # test_gdb
+  # test_distutils: because of our EXTRA_CFLAGS
+  # test_nntplib: downloading external files and failed
+
+  # Hacks:
+  # test_tk: xvfb-run
+  # test_unicode_file: LC_CTYPE=en_US.utf-8
+  # test_gdb: SHELL=/bin/sh
+
+  cd Python-${pkgver}
+  SHELL=/bin/sh \
+  LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
+  LC_CTYPE=en_US.utf-8 xvfb-run \
+"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall || warning 
"Expected failure"
+}
+
+package() {
+  cd Python-${pkgver}
+  make DESTDIR="${pkgdir}" EXTRA_CFLAGS="$CFLAGS" install maninstall
+
+  # Why are these not done by default...
+  ln -s python3   "${pkgdir}"/usr/bin/python
+  ln -s python3-config"${pkgdir}"/usr/bin/python-config
+  ln -s idle3 "${pkgdir}"/usr/bin/idle
+  ln -s pydoc3"${pkgdir}"/usr/bin/pydoc
+  ln -s python${_pybasever}.1 "${pkgdir}"/usr/share/man/man1/python.1
+
+  # Fix FS#22552
+  ln -sf ../../libpython${_pybasever}m.so \
+
"${pkgdir}/usr/lib/python${_pybasever}/config-${_pybasever}m/libpython${_pybasever}m.so"
+
+  # some useful "stuff" FS#46146
+  install -dm755 "${pkgdir}"/usr/lib/python${_pybasever}/Tools/{i18n,scripts}
+  install -m755 Tools/i18n/{msgfmt,pygettext}.py 
"${pkgdir}"/usr/lib/python${_pybasever}/Tools/i18n/
+  install -m755 Tools/scripts/{README,*py} 
"${pkgdir}"/usr/lib/python${_pybasever}/Tools/scripts/
+
+  # Clean-up reference to build 

[arch-commits] Commit in python/repos (6 files)

2015-12-07 Thread Felix Yan
Date: Monday, December 7, 2015 @ 15:08:34
  Author: fyan
Revision: 253376

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  python/repos/testing-i686/
  python/repos/testing-i686/PKGBUILD
(from rev 253375, python/trunk/PKGBUILD)
  python/repos/testing-i686/dont-make-libpython-readonly.patch
(from rev 253375, python/trunk/dont-make-libpython-readonly.patch)
  python/repos/testing-x86_64/
  python/repos/testing-x86_64/PKGBUILD
(from rev 253375, python/trunk/PKGBUILD)
  python/repos/testing-x86_64/dont-make-libpython-readonly.patch
(from rev 253375, python/trunk/dont-make-libpython-readonly.patch)

---+
 testing-i686/PKGBUILD |  113 
 testing-i686/dont-make-libpython-readonly.patch   |   13 ++
 testing-x86_64/PKGBUILD   |  113 
 testing-x86_64/dont-make-libpython-readonly.patch |   13 ++
 4 files changed, 252 insertions(+)

Copied: python/repos/testing-i686/PKGBUILD (from rev 253375, 
python/trunk/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2015-12-07 14:08:34 UTC (rev 253376)
@@ -0,0 +1,113 @@
+# $Id$
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
+# Contributor: Stéphane Gaudreault 
+# Contributor: Allan McRae 
+# Contributor: Jason Chu 
+
+pkgname=python
+pkgver=3.5.1
+pkgrel=1
+_pybasever=3.5
+pkgdesc="Next generation of the python high-level scripting language"
+arch=('i686' 'x86_64')
+license=('custom')
+url="http://www.python.org/;
+depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
+makedepends=('tk' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal')
+checkdepends=('gdb' 'xorg-server-xvfb')
+optdepends=('python-setuptools'
+'python-pip'
+'sqlite'
+'mpdecimal: for decimal'
+'xz: for lzma'
+'tk: for tkinter')
+options=('!makeflags')
+provides=('python3')
+replaces=('python3')
+source=("http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz;
+dont-make-libpython-readonly.patch)
+sha1sums=('0186da436db76776196612b98bb9c2f76acfe90e'
+  'c22b24324b8e53326702de439c401d97927ee3f2')
+
+prepare() {
+  cd Python-${pkgver}
+
+  # FS#45809
+  patch -p1 -i ../dont-make-libpython-readonly.patch
+
+  # FS#23997
+  sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
+
+  # Ensure that we are using the system copy of various libraries (expat, 
zlib, libffi, and libmpdec),
+  # rather than copies shipped in the tarball
+  rm -r Modules/expat
+  rm -r Modules/zlib
+  rm -r Modules/_ctypes/{darwin,libffi}*
+  rm -r Modules/_decimal/libmpdec
+}
+
+build() {
+  cd Python-${pkgver}
+
+  # Disable bundled pip & setuptools
+  ./configure --prefix=/usr \
+  --enable-shared \
+  --with-threads \
+  --with-computed-gotos \
+  --enable-ipv6 \
+  --with-system-expat \
+  --with-dbmliborder=gdbm:ndbm \
+  --with-system-ffi \
+  --with-system-libmpdec \
+  --enable-loadable-sqlite-extensions \
+  --without-ensurepip
+
+  make EXTRA_CFLAGS="$CFLAGS"
+}
+
+check() {
+  # Failures:
+  # test_pathlib & test_posixpath: https://bugs.python.org/issue24950
+  # test_gdb
+  # test_distutils: because of our EXTRA_CFLAGS
+  # test_nntplib: downloading external files and failed
+
+  # Hacks:
+  # test_tk: xvfb-run
+  # test_unicode_file: LC_CTYPE=en_US.utf-8
+  # test_gdb: SHELL=/bin/sh
+
+  cd Python-${pkgver}
+  SHELL=/bin/sh \
+  LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
+  LC_CTYPE=en_US.utf-8 xvfb-run \
+"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall || warning 
"Expected failure"
+}
+
+package() {
+  cd Python-${pkgver}
+  make DESTDIR="${pkgdir}" EXTRA_CFLAGS="$CFLAGS" install maninstall
+
+  # Why are these not done by default...
+  ln -s python3   "${pkgdir}"/usr/bin/python
+  ln -s python3-config"${pkgdir}"/usr/bin/python-config
+  ln -s idle3 "${pkgdir}"/usr/bin/idle
+  ln -s pydoc3"${pkgdir}"/usr/bin/pydoc
+  ln -s python${_pybasever}.1 "${pkgdir}"/usr/share/man/man1/python.1
+
+  # Fix FS#22552
+  ln -sf ../../libpython${_pybasever}m.so \
+
"${pkgdir}/usr/lib/python${_pybasever}/config-${_pybasever}m/libpython${_pybasever}m.so"
+
+  # some useful "stuff" FS#46146
+  install -dm755 "${pkgdir}"/usr/lib/python${_pybasever}/Tools/{i18n,scripts}
+  install -m755 Tools/i18n/{msgfmt,pygettext}.py 
"${pkgdir}"/usr/lib/python${_pybasever}/Tools/i18n/
+  install -m755 Tools/scripts/{README,*py} 
"${pkgdir}"/usr/lib/python${_pybasever}/Tools/scripts/
+
+  # Clean-up reference to build 

[arch-commits] Commit in python/repos (6 files)

2014-03-09 Thread Felix Yan
Date: Monday, March 10, 2014 @ 06:11:49
  Author: fyan
Revision: 207466

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  python/repos/testing-i686/
  python/repos/testing-i686/PKGBUILD
(from rev 207465, python/trunk/PKGBUILD)
  python/repos/testing-i686/PKGBUILD.3.4
(from rev 207465, python/trunk/PKGBUILD.3.4)
  python/repos/testing-x86_64/
  python/repos/testing-x86_64/PKGBUILD
(from rev 207465, python/trunk/PKGBUILD)
  python/repos/testing-x86_64/PKGBUILD.3.4
(from rev 207465, python/trunk/PKGBUILD.3.4)

-+
 testing-i686/PKGBUILD   |   86 
 testing-i686/PKGBUILD.3.4   |   89 ++
 testing-x86_64/PKGBUILD |   86 
 testing-x86_64/PKGBUILD.3.4 |   89 ++
 4 files changed, 350 insertions(+)

Copied: python/repos/testing-i686/PKGBUILD (from rev 207465, 
python/trunk/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2014-03-10 05:11:49 UTC (rev 207466)
@@ -0,0 +1,86 @@
+# $Id$
+# Maintainer: Angel Velasquez an...@archlinux.org
+# Maintainer: Felix Yan felixonm...@gmail.com
+# Contributor: Stéphane Gaudreault steph...@archlinux.org
+# Contributor: Allan McRae al...@archlinux.org
+# Contributor: Jason Chu ja...@archlinux.org
+
+pkgname=python
+pkgver=3.3.5
+pkgrel=1
+_pybasever=3.3
+pkgdesc=Next generation of the python high-level scripting language
+arch=('i686' 'x86_64')
+license=('custom')
+url=http://www.python.org/;
+depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
+makedepends=('tk=8.6.0' 'sqlite' 'valgrind' 'bluez-libs' 'mpdecimal')
+optdepends=('sqlite'
+'mpdecimal: for decimal'
+'xz: for lzma'
+'tk: for tkinter')
+options=('!makeflags')
+provides=('python3')
+replaces=('python3')
+source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
+sha1sums=('6683b26dd2cfd23af852abfcf1aedf25bbd44839')
+
+prepare() {
+  cd ${srcdir}/Python-${pkgver}
+
+  # FS#23997
+  sed -i -e s|^#.* /usr/local/bin/python|#!/usr/bin/python| Lib/cgi.py
+
+  # Ensure that we are using the system copy of various libraries (expat, zlib 
and libffi),
+  # rather than copies shipped in the tarball
+  rm -r Modules/expat
+  rm -r Modules/zlib
+  rm -r Modules/_ctypes/{darwin,libffi}*
+  rm -r Modules/_decimal/libmpdec
+}
+
+build() {
+  cd ${srcdir}/Python-${pkgver}
+
+  ./configure --prefix=/usr \
+  --enable-shared \
+  --with-threads \
+  --with-computed-gotos \
+  --enable-ipv6 \
+  --with-valgrind \
+  --with-system-expat \
+  --with-dbmliborder=gdbm:ndbm \
+  --with-system-ffi \
+  --with-system-libmpdec
+
+  make
+}
+
+check() {
+  cd ${srcdir}/Python-${pkgver}
+  LD_LIBRARY_PATH=${srcdir}/Python-${pkgver}:${LD_LIBRARY_PATH} \
+ ${srcdir}/Python-${pkgver}/python -m test.regrtest -x test_posixpath 
test_logging test_uuid
+}
+
+package() {
+  cd ${srcdir}/Python-${pkgver}
+  make DESTDIR=${pkgdir} install maninstall
+
+  # Why are these not done by default...
+  ln -sf python3   ${pkgdir}/usr/bin/python
+  ln -sf python3-config${pkgdir}/usr/bin/python-config
+  ln -sf idle3 ${pkgdir}/usr/bin/idle
+  ln -sf pydoc3${pkgdir}/usr/bin/pydoc
+  ln -sf python${_pybasever}.1 ${pkgdir}/usr/share/man/man1/python3.1
+  ln -sf python${_pybasever}.1 ${pkgdir}/usr/share/man/man1/python.1
+
+  # Fix FS#22552
+  ln -sf ../../libpython${_pybasever}m.so \
+
${pkgdir}/usr/lib/python${_pybasever}/config-${_pybasever}m/libpython${_pybasever}m.so
+
+  # Clean-up reference to build directory
+  sed -i s|$srcdir/Python-${pkgver}:|| 
$pkgdir/usr/lib/python${_pybasever}/config-${_pybasever}m/Makefile
+
+  # License
+  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+}

Copied: python/repos/testing-i686/PKGBUILD.3.4 (from rev 207465, 
python/trunk/PKGBUILD.3.4)
===
--- testing-i686/PKGBUILD.3.4   (rev 0)
+++ testing-i686/PKGBUILD.3.4   2014-03-10 05:11:49 UTC (rev 207466)
@@ -0,0 +1,89 @@
+# $Id: PKGBUILD 205852 2014-02-11 19:50:22Z angvp $
+# Maintainer: Angel Velasquez an...@archlinux.org 
+# Contributor: Stéphane Gaudreault steph...@archlinux.org
+# Contributor: Allan McRae al...@archlinux.org
+# Contributor: Jason Chu ja...@archlinux.org
+
+pkgname=python
+pkgver=3.4.0rc2
+pkgrel=1
+_pybasever=3.4
+pkgdesc=Next generation of the python high-level scripting language
+arch=('i686' 'x86_64')
+license=('custom')
+url=http://www.python.org/;
+depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
+makedepends=('tk=8.6.0' 'sqlite' 'valgrind' 'bluez-libs')

[arch-commits] Commit in python/repos (6 files)

2013-05-21 Thread Stéphane Gaudreault
Date: Tuesday, May 21, 2013 @ 18:50:51
  Author: stephane
Revision: 186172

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  python/repos/testing-i686/
  python/repos/testing-i686/PKGBUILD
(from rev 186171, python/trunk/PKGBUILD)
  python/repos/testing-i686/python-3.3.2-CVE-2013-2099.patch
(from rev 186171, python/trunk/python-3.3.2-CVE-2013-2099.patch)
  python/repos/testing-x86_64/
  python/repos/testing-x86_64/PKGBUILD
(from rev 186171, python/trunk/PKGBUILD)
  python/repos/testing-x86_64/python-3.3.2-CVE-2013-2099.patch
(from rev 186171, python/trunk/python-3.3.2-CVE-2013-2099.patch)

-+
 testing-i686/PKGBUILD   |   78 ++
 testing-i686/python-3.3.2-CVE-2013-2099.patch   |   50 ++
 testing-x86_64/PKGBUILD |   78 ++
 testing-x86_64/python-3.3.2-CVE-2013-2099.patch |   50 ++
 4 files changed, 256 insertions(+)

Copied: python/repos/testing-i686/PKGBUILD (from rev 186171, 
python/trunk/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2013-05-21 16:50:51 UTC (rev 186172)
@@ -0,0 +1,78 @@
+# $Id$
+# Maintainer: Stéphane Gaudreault steph...@archlinux.org
+# Contributor: Allan McRae al...@archlinux.org
+# Contributor: Jason Chu ja...@archlinux.org
+
+pkgname=python
+pkgver=3.3.2
+pkgrel=1
+_pybasever=3.3
+pkgdesc=Next generation of the python high-level scripting language
+arch=('i686' 'x86_64')
+license=('custom')
+url=http://www.python.org/;
+depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
+makedepends=('tk=8.6.0' 'sqlite' 'valgrind' 'bluez')
+optdepends=('tk: for tkinter' 'sqlite')
+provides=('python3')
+replaces=('python3')
+options=('!makeflags')
+source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz
+python-3.3.2-CVE-2013-2099.patch)
+sha1sums=('87009d0c156c6e1354dfec5c98c328cae93950ad'
+  'b7a386b2e2f0811b344898500860ec31ba81ed4d')
+
+build() {
+  cd ${srcdir}/Python-${pkgver}
+
+  # FS#23997
+  sed -i -e s|^#.* /usr/local/bin/python|#!/usr/bin/python| Lib/cgi.py
+
+  # Ensure that we are using the system copy of various libraries (expat, zlib 
and libffi),
+  # rather than copies shipped in the tarball
+  rm -r Modules/expat
+  rm -r Modules/zlib
+  rm -r Modules/_ctypes/{darwin,libffi}*
+
+  patch -Np1 -i ../python-3.3.2-CVE-2013-2099.patch
+
+  ./configure --prefix=/usr \
+  --enable-shared \
+  --with-threads \
+  --with-computed-gotos \
+  --enable-ipv6 \
+  --with-valgrind \
+  --with-system-expat \
+  --with-dbmliborder=gdbm:ndbm \
+  --with-system-ffi
+
+  make
+}
+
+check() {
+  cd ${srcdir}/Python-${pkgver}
+  LD_LIBRARY_PATH=${srcdir}/Python-${pkgver}:${LD_LIBRARY_PATH} \
+ ${srcdir}/Python-${pkgver}/python -m test.regrtest -x test_posixpath 
test_logging
+}
+
+package() {
+  cd ${srcdir}/Python-${pkgver}
+  make DESTDIR=${pkgdir} install maninstall
+
+  # Why are these not done by default...
+  ln -sf python3   ${pkgdir}/usr/bin/python
+  ln -sf python3-config${pkgdir}/usr/bin/python-config
+  ln -sf idle3 ${pkgdir}/usr/bin/idle
+  ln -sf pydoc3${pkgdir}/usr/bin/pydoc
+  ln -sf python${_pybasever}.1 ${pkgdir}/usr/share/man/man1/python3.1
+
+  # Fix FS#22552
+  ln -sf ../../libpython${_pybasever}m.so \
+
${pkgdir}/usr/lib/python${_pybasever}/config-${_pybasever}m/libpython${_pybasever}m.so
+
+  # Clean-up reference to build directory
+  sed -i s|$srcdir/Python-${pkgver}:|| 
$pkgdir/usr/lib/python${_pybasever}/config-${_pybasever}m/Makefile
+
+  # License
+  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+}

Copied: python/repos/testing-i686/python-3.3.2-CVE-2013-2099.patch (from rev 
186171, python/trunk/python-3.3.2-CVE-2013-2099.patch)
===
--- testing-i686/python-3.3.2-CVE-2013-2099.patch   
(rev 0)
+++ testing-i686/python-3.3.2-CVE-2013-2099.patch   2013-05-21 16:50:51 UTC 
(rev 186172)
@@ -0,0 +1,50 @@
+
+# HG changeset patch
+# User Antoine Pitrou solip...@pitrou.net
+# Date 1368892602 -7200
+# Node ID c627638753e2d25a98950585b259104a025937a9
+# Parent  9682241dc8fcb4b1aef083bd30860efa070c3d6d
+Issue #17980: Fix possible abuse of ssl.match_hostname() for denial of service 
using certificates with many wildcards (CVE-2013-2099).
+
+diff --git a/Lib/ssl.py b/Lib/ssl.py
+--- a/Lib/ssl.py
 b/Lib/ssl.py
+@@ -129,9 +129,16 @@ class CertificateError(ValueError):
+ pass
+ 
+ 
+-def _dnsname_to_pat(dn):
++def _dnsname_to_pat(dn, max_wildcards=1):
+ pats = []
+ for frag in dn.split(r'.'):
++if frag.count('*')  max_wildcards:
++ 

[arch-commits] Commit in python/repos (6 files)

2013-04-08 Thread Stéphane Gaudreault
Date: Monday, April 8, 2013 @ 12:27:25
  Author: stephane
Revision: 182150

db-move: moved python from [testing] to [extra] (i686, x86_64)

Added:
  python/repos/extra-i686/PKGBUILD
(from rev 182149, python/repos/testing-i686/PKGBUILD)
  python/repos/extra-x86_64/PKGBUILD
(from rev 182149, python/repos/testing-x86_64/PKGBUILD)
Deleted:
  python/repos/extra-i686/PKGBUILD
  python/repos/extra-x86_64/PKGBUILD
  python/repos/testing-i686/
  python/repos/testing-x86_64/

---+
 /PKGBUILD |  150 
 extra-i686/PKGBUILD   |   75 
 extra-x86_64/PKGBUILD |   75 
 3 files changed, 150 insertions(+), 150 deletions(-)

Deleted: extra-i686/PKGBUILD
===
--- extra-i686/PKGBUILD 2013-04-08 09:28:45 UTC (rev 182149)
+++ extra-i686/PKGBUILD 2013-04-08 10:27:25 UTC (rev 182150)
@@ -1,75 +0,0 @@
-# $Id$
-# Maintainer: Stéphane Gaudreault steph...@archlinux.org
-# Contributor: Allan McRae al...@archlinux.org
-# Contributor: Jason Chu ja...@archlinux.org
-
-pkgname=python
-pkgver=3.3.0
-pkgrel=3
-_pybasever=3.3
-pkgdesc=Next generation of the python high-level scripting language
-arch=('i686' 'x86_64')
-license=('custom')
-url=http://www.python.org/;
-depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
-makedepends=('tk=8.6.0' 'sqlite' 'valgrind' 'bluez')
-optdepends=('tk: for tkinter' 'sqlite')
-provides=('python3')
-replaces=('python3')
-options=('!makeflags')
-source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
-sha1sums=('833d73565e1b665f1878504081dc985a5a06e46a')
-
-build() {
-  cd ${srcdir}/Python-${pkgver}
-
-  # FS#23997
-  sed -i -e s|^#.* /usr/local/bin/python|#!/usr/bin/python| Lib/cgi.py
-
-  # Ensure that we are using the system copy of various libraries (expat, zlib 
and libffi),
-  # rather than copies shipped in the tarball
-  rm -r Modules/expat
-  rm -r Modules/zlib
-  rm -r Modules/_ctypes/{darwin,libffi}*
-
-  ./configure --prefix=/usr \
-  --enable-shared \
-  --with-threads \
-  --with-computed-gotos \
-  --enable-ipv6 \
-  --with-valgrind \
-  --with-system-expat \
-  --with-dbmliborder=gdbm:ndbm \
-  --with-system-ffi
-
-  make
-}
-
-check() {
-  cd ${srcdir}/Python-${pkgver}
-  LD_LIBRARY_PATH=${srcdir}/Python-${pkgver}:${LD_LIBRARY_PATH} \
- ${srcdir}/Python-${pkgver}/python -m test.regrtest -x test_distutils 
test_site \
- test_urllib test_uuid test_pydoc test_logging
-}
-
-package() {
-  cd ${srcdir}/Python-${pkgver}
-  make DESTDIR=${pkgdir} install maninstall
-
-  # Why are these not done by default...
-  ln -sf python3   ${pkgdir}/usr/bin/python
-  ln -sf python3-config${pkgdir}/usr/bin/python-config
-  ln -sf idle3 ${pkgdir}/usr/bin/idle
-  ln -sf pydoc3${pkgdir}/usr/bin/pydoc
-  ln -sf python${_pybasever}.1 ${pkgdir}/usr/share/man/man1/python3.1
-
-  # Fix FS#22552
-  ln -sf ../../libpython${_pybasever}m.so \
-
${pkgdir}/usr/lib/python${_pybasever}/config-${_pybasever}m/libpython${_pybasever}m.so
-
-  # Clean-up reference to build directory
-  sed -i s|$srcdir/Python-${pkgver}:|| 
$pkgdir/usr/lib/python${_pybasever}/config-${_pybasever}m/Makefile
-
-  # License
-  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
-}

Copied: python/repos/extra-i686/PKGBUILD (from rev 182149, 
python/repos/testing-i686/PKGBUILD)
===
--- extra-i686/PKGBUILD (rev 0)
+++ extra-i686/PKGBUILD 2013-04-08 10:27:25 UTC (rev 182150)
@@ -0,0 +1,75 @@
+# $Id$
+# Maintainer: Stéphane Gaudreault steph...@archlinux.org
+# Contributor: Allan McRae al...@archlinux.org
+# Contributor: Jason Chu ja...@archlinux.org
+
+pkgname=python
+pkgver=3.3.1
+pkgrel=1
+_pybasever=3.3
+pkgdesc=Next generation of the python high-level scripting language
+arch=('i686' 'x86_64')
+license=('custom')
+url=http://www.python.org/;
+depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
+makedepends=('tk=8.6.0' 'sqlite' 'valgrind' 'bluez')
+optdepends=('tk: for tkinter' 'sqlite')
+provides=('python3')
+replaces=('python3')
+options=('!makeflags')
+source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
+sha1sums=('393d7302c48bc911cd7faa7fa9b5fbcb9919bddc')
+
+build() {
+  cd ${srcdir}/Python-${pkgver}
+
+  # FS#23997
+  sed -i -e s|^#.* /usr/local/bin/python|#!/usr/bin/python| Lib/cgi.py
+
+  # Ensure that we are using the system copy of various libraries (expat, zlib 
and libffi),
+  # rather than copies shipped in the tarball
+  rm -r Modules/expat
+  rm -r Modules/zlib
+  rm -r Modules/_ctypes/{darwin,libffi}*
+
+  ./configure --prefix=/usr \
+  --enable-shared \
+  --with-threads \
+  

[arch-commits] Commit in python/repos (6 files)

2012-12-24 Thread Evangelos Foutras
Date: Monday, December 24, 2012 @ 19:34:33
  Author: foutrelis
Revision: 173845

db-move: moved python from [testing] to [extra] (i686, x86_64)

Added:
  python/repos/extra-i686/PKGBUILD
(from rev 173837, python/repos/testing-i686/PKGBUILD)
  python/repos/extra-x86_64/PKGBUILD
(from rev 173837, python/repos/testing-x86_64/PKGBUILD)
Deleted:
  python/repos/extra-i686/PKGBUILD
  python/repos/extra-x86_64/PKGBUILD
  python/repos/testing-i686/
  python/repos/testing-x86_64/

---+
 extra-i686/PKGBUILD   |  150 
 extra-x86_64/PKGBUILD |  150 
 2 files changed, 150 insertions(+), 150 deletions(-)

Deleted: extra-i686/PKGBUILD
===
--- extra-i686/PKGBUILD 2012-12-25 00:34:31 UTC (rev 173844)
+++ extra-i686/PKGBUILD 2012-12-25 00:34:33 UTC (rev 173845)
@@ -1,75 +0,0 @@
-# $Id$
-# Maintainer: Stéphane Gaudreault steph...@archlinux.org
-# Contributor: Allan McRae al...@archlinux.org
-# Contributor: Jason Chu ja...@archlinux.org
-
-pkgname=python
-pkgver=3.3.0
-pkgrel=2
-_pybasever=3.3
-pkgdesc=Next generation of the python high-level scripting language
-arch=('i686' 'x86_64')
-license=('custom')
-url=http://www.python.org/;
-depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
-makedepends=('tk' 'sqlite' 'valgrind' 'bluez')
-optdepends=('tk: for tkinter' 'sqlite')
-provides=('python3')
-replaces=('python3')
-options=('!makeflags')
-source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
-sha1sums=('833d73565e1b665f1878504081dc985a5a06e46a')
-
-build() {
-  cd ${srcdir}/Python-${pkgver}
-
-  # FS#23997
-  sed -i -e s|^#.* /usr/local/bin/python|#!/usr/bin/python| Lib/cgi.py
-
-  # Ensure that we are using the system copy of various libraries (expat, zlib 
and libffi),
-  # rather than copies shipped in the tarball
-  rm -r Modules/expat
-  rm -r Modules/zlib
-  rm -r Modules/_ctypes/{darwin,libffi}*
-
-  ./configure --prefix=/usr \
-  --enable-shared \
-  --with-threads \
-  --with-computed-gotos \
-  --enable-ipv6 \
-  --with-valgrind \
-  --with-system-expat \
-  --with-dbmliborder=gdbm:ndbm \
-  --with-system-ffi
-
-  make
-}
-
-check() {
-  cd ${srcdir}/Python-${pkgver}
-  LD_LIBRARY_PATH=${srcdir}/Python-${pkgver}:${LD_LIBRARY_PATH} \
- ${srcdir}/Python-${pkgver}/python -m test.regrtest -x test_distutils 
test_site \
- test_urllib test_uuid test_pydoc test_logging
-}
-
-package() {
-  cd ${srcdir}/Python-${pkgver}
-  make DESTDIR=${pkgdir} install maninstall
-
-  # Why are these not done by default...
-  ln -sf python3   ${pkgdir}/usr/bin/python
-  ln -sf python3-config${pkgdir}/usr/bin/python-config
-  ln -sf idle3 ${pkgdir}/usr/bin/idle
-  ln -sf pydoc3${pkgdir}/usr/bin/pydoc
-  ln -sf python${_pybasever}.1 ${pkgdir}/usr/share/man/man1/python3.1
-
-  # Fix FS#22552
-  ln -sf ../../libpython${_pybasever}m.so \
-
${pkgdir}/usr/lib/python${_pybasever}/config-${_pybasever}m/libpython${_pybasever}m.so
-
-  # Clean-up reference to build directory
-  sed -i s|$srcdir/Python-${pkgver}:|| 
$pkgdir/usr/lib/python${_pybasever}/config-${_pybasever}m/Makefile
-
-  # License
-  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
-}

Copied: python/repos/extra-i686/PKGBUILD (from rev 173837, 
python/repos/testing-i686/PKGBUILD)
===
--- extra-i686/PKGBUILD (rev 0)
+++ extra-i686/PKGBUILD 2012-12-25 00:34:33 UTC (rev 173845)
@@ -0,0 +1,75 @@
+# $Id$
+# Maintainer: Stéphane Gaudreault steph...@archlinux.org
+# Contributor: Allan McRae al...@archlinux.org
+# Contributor: Jason Chu ja...@archlinux.org
+
+pkgname=python
+pkgver=3.3.0
+pkgrel=3
+_pybasever=3.3
+pkgdesc=Next generation of the python high-level scripting language
+arch=('i686' 'x86_64')
+license=('custom')
+url=http://www.python.org/;
+depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
+makedepends=('tk=8.6.0' 'sqlite' 'valgrind' 'bluez')
+optdepends=('tk: for tkinter' 'sqlite')
+provides=('python3')
+replaces=('python3')
+options=('!makeflags')
+source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
+sha1sums=('833d73565e1b665f1878504081dc985a5a06e46a')
+
+build() {
+  cd ${srcdir}/Python-${pkgver}
+
+  # FS#23997
+  sed -i -e s|^#.* /usr/local/bin/python|#!/usr/bin/python| Lib/cgi.py
+
+  # Ensure that we are using the system copy of various libraries (expat, zlib 
and libffi),
+  # rather than copies shipped in the tarball
+  rm -r Modules/expat
+  rm -r Modules/zlib
+  rm -r Modules/_ctypes/{darwin,libffi}*
+
+  ./configure --prefix=/usr \
+  --enable-shared \
+  --with-threads \
+  --with-computed-gotos \
+   

[arch-commits] Commit in python/repos (6 files)

2012-12-23 Thread Evangelos Foutras
Date: Sunday, December 23, 2012 @ 21:20:51
  Author: foutrelis
Revision: 173810

db-move: moved python from [staging] to [testing] (i686, x86_64)

Added:
  python/repos/testing-i686/
  python/repos/testing-i686/PKGBUILD
(from rev 173802, python/repos/staging-i686/PKGBUILD)
  python/repos/testing-x86_64/
  python/repos/testing-x86_64/PKGBUILD
(from rev 173802, python/repos/staging-x86_64/PKGBUILD)
Deleted:
  python/repos/staging-i686/
  python/repos/staging-x86_64/

-+
 testing-i686/PKGBUILD   |   75 ++
 testing-x86_64/PKGBUILD |   75 ++
 2 files changed, 150 insertions(+)

Copied: python/repos/testing-i686/PKGBUILD (from rev 173802, 
python/repos/staging-i686/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2012-12-24 02:20:51 UTC (rev 173810)
@@ -0,0 +1,75 @@
+# $Id$
+# Maintainer: Stéphane Gaudreault steph...@archlinux.org
+# Contributor: Allan McRae al...@archlinux.org
+# Contributor: Jason Chu ja...@archlinux.org
+
+pkgname=python
+pkgver=3.3.0
+pkgrel=3
+_pybasever=3.3
+pkgdesc=Next generation of the python high-level scripting language
+arch=('i686' 'x86_64')
+license=('custom')
+url=http://www.python.org/;
+depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
+makedepends=('tk=8.6.0' 'sqlite' 'valgrind' 'bluez')
+optdepends=('tk: for tkinter' 'sqlite')
+provides=('python3')
+replaces=('python3')
+options=('!makeflags')
+source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
+sha1sums=('833d73565e1b665f1878504081dc985a5a06e46a')
+
+build() {
+  cd ${srcdir}/Python-${pkgver}
+
+  # FS#23997
+  sed -i -e s|^#.* /usr/local/bin/python|#!/usr/bin/python| Lib/cgi.py
+
+  # Ensure that we are using the system copy of various libraries (expat, zlib 
and libffi),
+  # rather than copies shipped in the tarball
+  rm -r Modules/expat
+  rm -r Modules/zlib
+  rm -r Modules/_ctypes/{darwin,libffi}*
+
+  ./configure --prefix=/usr \
+  --enable-shared \
+  --with-threads \
+  --with-computed-gotos \
+  --enable-ipv6 \
+  --with-valgrind \
+  --with-system-expat \
+  --with-dbmliborder=gdbm:ndbm \
+  --with-system-ffi
+
+  make
+}
+
+check() {
+  cd ${srcdir}/Python-${pkgver}
+  LD_LIBRARY_PATH=${srcdir}/Python-${pkgver}:${LD_LIBRARY_PATH} \
+ ${srcdir}/Python-${pkgver}/python -m test.regrtest -x test_distutils 
test_site \
+ test_urllib test_uuid test_pydoc test_logging
+}
+
+package() {
+  cd ${srcdir}/Python-${pkgver}
+  make DESTDIR=${pkgdir} install maninstall
+
+  # Why are these not done by default...
+  ln -sf python3   ${pkgdir}/usr/bin/python
+  ln -sf python3-config${pkgdir}/usr/bin/python-config
+  ln -sf idle3 ${pkgdir}/usr/bin/idle
+  ln -sf pydoc3${pkgdir}/usr/bin/pydoc
+  ln -sf python${_pybasever}.1 ${pkgdir}/usr/share/man/man1/python3.1
+
+  # Fix FS#22552
+  ln -sf ../../libpython${_pybasever}m.so \
+
${pkgdir}/usr/lib/python${_pybasever}/config-${_pybasever}m/libpython${_pybasever}m.so
+
+  # Clean-up reference to build directory
+  sed -i s|$srcdir/Python-${pkgver}:|| 
$pkgdir/usr/lib/python${_pybasever}/config-${_pybasever}m/Makefile
+
+  # License
+  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+}

Copied: python/repos/testing-x86_64/PKGBUILD (from rev 173802, 
python/repos/staging-x86_64/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2012-12-24 02:20:51 UTC (rev 173810)
@@ -0,0 +1,75 @@
+# $Id$
+# Maintainer: Stéphane Gaudreault steph...@archlinux.org
+# Contributor: Allan McRae al...@archlinux.org
+# Contributor: Jason Chu ja...@archlinux.org
+
+pkgname=python
+pkgver=3.3.0
+pkgrel=3
+_pybasever=3.3
+pkgdesc=Next generation of the python high-level scripting language
+arch=('i686' 'x86_64')
+license=('custom')
+url=http://www.python.org/;
+depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
+makedepends=('tk=8.6.0' 'sqlite' 'valgrind' 'bluez')
+optdepends=('tk: for tkinter' 'sqlite')
+provides=('python3')
+replaces=('python3')
+options=('!makeflags')
+source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
+sha1sums=('833d73565e1b665f1878504081dc985a5a06e46a')
+
+build() {
+  cd ${srcdir}/Python-${pkgver}
+
+  # FS#23997
+  sed -i -e s|^#.* /usr/local/bin/python|#!/usr/bin/python| Lib/cgi.py
+
+  # Ensure that we are using the system copy of various libraries (expat, zlib 
and libffi),
+  # rather than copies shipped in the tarball
+  rm -r Modules/expat
+  rm -r Modules/zlib
+  rm -r Modules/_ctypes/{darwin,libffi}*
+
+  ./configure --prefix=/usr \
+  

[arch-commits] Commit in python/repos (6 files)

2012-12-13 Thread Stéphane Gaudreault
Date: Thursday, December 13, 2012 @ 07:39:30
  Author: stephane
Revision: 173215

db-move: moved python from [testing] to [extra] (i686, x86_64)

Added:
  python/repos/extra-i686/PKGBUILD
(from rev 173212, python/repos/testing-i686/PKGBUILD)
  python/repos/extra-x86_64/PKGBUILD
(from rev 173212, python/repos/testing-x86_64/PKGBUILD)
Deleted:
  python/repos/extra-i686/PKGBUILD
  python/repos/extra-x86_64/PKGBUILD
  python/repos/testing-i686/
  python/repos/testing-x86_64/

---+
 extra-i686/PKGBUILD   |  150 
 extra-x86_64/PKGBUILD |  150 
 2 files changed, 150 insertions(+), 150 deletions(-)

Deleted: extra-i686/PKGBUILD
===
--- extra-i686/PKGBUILD 2012-12-13 12:39:26 UTC (rev 173214)
+++ extra-i686/PKGBUILD 2012-12-13 12:39:30 UTC (rev 173215)
@@ -1,75 +0,0 @@
-# $Id$
-# Maintainer: Stéphane Gaudreault steph...@archlinux.org
-# Contributor: Allan McRae al...@archlinux.org
-# Contributor: Jason Chu ja...@archlinux.org
-
-pkgname=python
-pkgver=3.3.0
-pkgrel=1
-_pybasever=3.3
-pkgdesc=Next generation of the python high-level scripting language
-arch=('i686' 'x86_64')
-license=('custom')
-url=http://www.python.org/;
-depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
-makedepends=('tk' 'sqlite' 'valgrind')
-optdepends=('tk: for tkinter' 'sqlite')
-provides=('python3')
-replaces=('python3')
-options=('!makeflags')
-source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
-sha1sums=('833d73565e1b665f1878504081dc985a5a06e46a')
-
-build() {
-  cd ${srcdir}/Python-${pkgver}
-
-  # FS#23997
-  sed -i -e s|^#.* /usr/local/bin/python|#!/usr/bin/python| Lib/cgi.py
-
-  # Ensure that we are using the system copy of various libraries (expat, zlib 
and libffi),
-  # rather than copies shipped in the tarball
-  rm -r Modules/expat
-  rm -r Modules/zlib
-  rm -r Modules/_ctypes/{darwin,libffi}*
-
-  ./configure --prefix=/usr \
-  --enable-shared \
-  --with-threads \
-  --with-computed-gotos \
-  --enable-ipv6 \
-  --with-valgrind \
-  --with-system-expat \
-  --with-dbmliborder=gdbm:ndbm \
-  --with-system-ffi
-
-  make
-}
-
-check() {
-  cd ${srcdir}/Python-${pkgver}
-  LD_LIBRARY_PATH=${srcdir}/Python-${pkgver}:${LD_LIBRARY_PATH} \
- ${srcdir}/Python-${pkgver}/python -m test.regrtest -x test_distutils 
test_site \
- test_urllib test_uuid test_pydoc
-}
-
-package() {
-  cd ${srcdir}/Python-${pkgver}
-  make DESTDIR=${pkgdir} install maninstall
-
-  # Why are these not done by default...
-  ln -sf python3   ${pkgdir}/usr/bin/python
-  ln -sf python3-config${pkgdir}/usr/bin/python-config
-  ln -sf idle3 ${pkgdir}/usr/bin/idle
-  ln -sf pydoc3${pkgdir}/usr/bin/pydoc
-  ln -sf python${_pybasever}.1 ${pkgdir}/usr/share/man/man1/python3.1
-
-  # Fix FS#22552
-  ln -sf ../../libpython${_pybasever}m.so \
-
${pkgdir}/usr/lib/python${_pybasever}/config-${_pybasever}m/libpython${_pybasever}m.so
-
-  # Clean-up reference to build directory
-  sed -i s|$srcdir/Python-${pkgver}:|| 
$pkgdir/usr/lib/python${_pybasever}/config-${_pybasever}m/Makefile
-
-  # License
-  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
-}

Copied: python/repos/extra-i686/PKGBUILD (from rev 173212, 
python/repos/testing-i686/PKGBUILD)
===
--- extra-i686/PKGBUILD (rev 0)
+++ extra-i686/PKGBUILD 2012-12-13 12:39:30 UTC (rev 173215)
@@ -0,0 +1,75 @@
+# $Id$
+# Maintainer: Stéphane Gaudreault steph...@archlinux.org
+# Contributor: Allan McRae al...@archlinux.org
+# Contributor: Jason Chu ja...@archlinux.org
+
+pkgname=python
+pkgver=3.3.0
+pkgrel=2
+_pybasever=3.3
+pkgdesc=Next generation of the python high-level scripting language
+arch=('i686' 'x86_64')
+license=('custom')
+url=http://www.python.org/;
+depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
+makedepends=('tk' 'sqlite' 'valgrind' 'bluez')
+optdepends=('tk: for tkinter' 'sqlite')
+provides=('python3')
+replaces=('python3')
+options=('!makeflags')
+source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
+sha1sums=('833d73565e1b665f1878504081dc985a5a06e46a')
+
+build() {
+  cd ${srcdir}/Python-${pkgver}
+
+  # FS#23997
+  sed -i -e s|^#.* /usr/local/bin/python|#!/usr/bin/python| Lib/cgi.py
+
+  # Ensure that we are using the system copy of various libraries (expat, zlib 
and libffi),
+  # rather than copies shipped in the tarball
+  rm -r Modules/expat
+  rm -r Modules/zlib
+  rm -r Modules/_ctypes/{darwin,libffi}*
+
+  ./configure --prefix=/usr \
+  --enable-shared \
+  --with-threads \
+  --with-computed-gotos \
+  --enable-ipv6 \
+  

[arch-commits] Commit in python/repos (6 files)

2012-10-17 Thread Allan McRae
Date: Wednesday, October 17, 2012 @ 06:19:56
  Author: allan
Revision: 169007

db-move: moved python from [testing] to [extra] (i686, x86_64)

Added:
  python/repos/extra-i686/PKGBUILD
(from rev 168989, python/repos/testing-i686/PKGBUILD)
  python/repos/extra-x86_64/PKGBUILD
(from rev 168989, python/repos/testing-x86_64/PKGBUILD)
Deleted:
  python/repos/extra-i686/PKGBUILD
  python/repos/extra-x86_64/PKGBUILD
  python/repos/testing-i686/
  python/repos/testing-x86_64/

---+
 extra-i686/PKGBUILD   |  151 +++-
 extra-x86_64/PKGBUILD |  151 +++-
 2 files changed, 150 insertions(+), 152 deletions(-)

Deleted: extra-i686/PKGBUILD
===
--- extra-i686/PKGBUILD 2012-10-17 10:19:54 UTC (rev 169006)
+++ extra-i686/PKGBUILD 2012-10-17 10:19:56 UTC (rev 169007)
@@ -1,76 +0,0 @@
-# $Id$
-# Maintainer: Stéphane Gaudreault steph...@archlinux.org
-# Contributor: Allan McRae al...@archlinux.org
-# Contributor: Jason Chu ja...@archlinux.org
-
-pkgname=python
-pkgver=3.2.3
-pkgrel=3
-_pybasever=3.2
-pkgdesc=Next generation of the python high-level scripting language
-arch=('i686' 'x86_64')
-license=('custom')
-url=http://www.python.org/;
-depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
-makedepends=('tk' 'sqlite' 'valgrind')
-optdepends=('tk: for tkinter' 'sqlite')
-provides=('python3')
-replaces=('python3')
-options=('!makeflags')
-source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
-sha1sums=('3d607dbcfdf100dd659978195ccf3ade9d221823')
-
-build() {
-  cd ${srcdir}/Python-${pkgver}
-
-  # FS#23997
-  sed -i -e s|^#.* /usr/local/bin/python|#!/usr/bin/python| Lib/cgi.py
-
-  # Ensure that we are using the system copy of various libraries (expat, zlib 
and libffi),
-  # rather than copies shipped in the tarball
-  rm -r Modules/expat
-  rm -r Modules/zlib
-  rm -r Modules/_ctypes/{darwin,libffi}*
-
-  ./configure --prefix=/usr \
-  --enable-shared \
-  --with-threads \
-  --with-computed-gotos \
-  --enable-ipv6 \
-  --with-valgrind \
-  --with-wide-unicode \
-  --with-system-expat \
-  --with-dbmliborder=gdbm:ndbm \
-  --with-system-ffi
-
-  make
-}
-
-check() {
-  cd ${srcdir}/Python-${pkgver}
-  LD_LIBRARY_PATH=${srcdir}/Python-${pkgver}:${LD_LIBRARY_PATH} \
- ${srcdir}/Python-${pkgver}/python -m test.regrtest -x test_distutils 
test_site \
- test_urllib test_uuid test_pydoc
-}
-
-package() {
-  cd ${srcdir}/Python-${pkgver}
-  make DESTDIR=${pkgdir} install maninstall
-
-  # Why are these not done by default...
-  ln -sf python3   ${pkgdir}/usr/bin/python
-  ln -sf python3-config${pkgdir}/usr/bin/python-config
-  ln -sf idle3 ${pkgdir}/usr/bin/idle
-  ln -sf pydoc3${pkgdir}/usr/bin/pydoc
-  ln -sf python${_pybasever}.1 ${pkgdir}/usr/share/man/man1/python3.1
-
-  # Fix FS#22552
-  ln -sf ../../libpython${_pybasever}mu.so \
-
${pkgdir}/usr/lib/python${_pybasever}/config-${_pybasever}mu/libpython${_pybasever}mu.so
-
-  # Clean-up reference to build directory
-  sed -i s|$srcdir/Python-${pkgver}:|| 
$pkgdir/usr/lib/python${_pybasever}/config-${_pybasever}mu/Makefile
-
-  # License
-  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
-}

Copied: python/repos/extra-i686/PKGBUILD (from rev 168989, 
python/repos/testing-i686/PKGBUILD)
===
--- extra-i686/PKGBUILD (rev 0)
+++ extra-i686/PKGBUILD 2012-10-17 10:19:56 UTC (rev 169007)
@@ -0,0 +1,75 @@
+# $Id$
+# Maintainer: Stéphane Gaudreault steph...@archlinux.org
+# Contributor: Allan McRae al...@archlinux.org
+# Contributor: Jason Chu ja...@archlinux.org
+
+pkgname=python
+pkgver=3.3.0
+pkgrel=1
+_pybasever=3.3
+pkgdesc=Next generation of the python high-level scripting language
+arch=('i686' 'x86_64')
+license=('custom')
+url=http://www.python.org/;
+depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
+makedepends=('tk' 'sqlite' 'valgrind')
+optdepends=('tk: for tkinter' 'sqlite')
+provides=('python3')
+replaces=('python3')
+options=('!makeflags')
+source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
+sha1sums=('833d73565e1b665f1878504081dc985a5a06e46a')
+
+build() {
+  cd ${srcdir}/Python-${pkgver}
+
+  # FS#23997
+  sed -i -e s|^#.* /usr/local/bin/python|#!/usr/bin/python| Lib/cgi.py
+
+  # Ensure that we are using the system copy of various libraries (expat, zlib 
and libffi),
+  # rather than copies shipped in the tarball
+  rm -r Modules/expat
+  rm -r Modules/zlib
+  rm -r Modules/_ctypes/{darwin,libffi}*
+
+  ./configure --prefix=/usr \
+  --enable-shared \
+  --with-threads \
+  --with-computed-gotos \
+   

[arch-commits] Commit in python/repos (6 files)

2012-10-16 Thread Allan McRae
Date: Tuesday, October 16, 2012 @ 07:54:17
  Author: allan
Revision: 168851

db-move: moved python from [staging] to [testing] (i686, x86_64)

Added:
  python/repos/testing-i686/
  python/repos/testing-i686/PKGBUILD
(from rev 168833, python/repos/staging-i686/PKGBUILD)
  python/repos/testing-x86_64/
  python/repos/testing-x86_64/PKGBUILD
(from rev 168833, python/repos/staging-x86_64/PKGBUILD)
Deleted:
  python/repos/staging-i686/
  python/repos/staging-x86_64/

-+
 testing-i686/PKGBUILD   |   75 ++
 testing-x86_64/PKGBUILD |   75 ++
 2 files changed, 150 insertions(+)

Copied: python/repos/testing-i686/PKGBUILD (from rev 168833, 
python/repos/staging-i686/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2012-10-16 11:54:17 UTC (rev 168851)
@@ -0,0 +1,75 @@
+# $Id$
+# Maintainer: Stéphane Gaudreault steph...@archlinux.org
+# Contributor: Allan McRae al...@archlinux.org
+# Contributor: Jason Chu ja...@archlinux.org
+
+pkgname=python
+pkgver=3.3.0
+pkgrel=1
+_pybasever=3.3
+pkgdesc=Next generation of the python high-level scripting language
+arch=('i686' 'x86_64')
+license=('custom')
+url=http://www.python.org/;
+depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
+makedepends=('tk' 'sqlite' 'valgrind')
+optdepends=('tk: for tkinter' 'sqlite')
+provides=('python3')
+replaces=('python3')
+options=('!makeflags')
+source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
+sha1sums=('833d73565e1b665f1878504081dc985a5a06e46a')
+
+build() {
+  cd ${srcdir}/Python-${pkgver}
+
+  # FS#23997
+  sed -i -e s|^#.* /usr/local/bin/python|#!/usr/bin/python| Lib/cgi.py
+
+  # Ensure that we are using the system copy of various libraries (expat, zlib 
and libffi),
+  # rather than copies shipped in the tarball
+  rm -r Modules/expat
+  rm -r Modules/zlib
+  rm -r Modules/_ctypes/{darwin,libffi}*
+
+  ./configure --prefix=/usr \
+  --enable-shared \
+  --with-threads \
+  --with-computed-gotos \
+  --enable-ipv6 \
+  --with-valgrind \
+  --with-system-expat \
+  --with-dbmliborder=gdbm:ndbm \
+  --with-system-ffi
+
+  make
+}
+
+check() {
+  cd ${srcdir}/Python-${pkgver}
+  LD_LIBRARY_PATH=${srcdir}/Python-${pkgver}:${LD_LIBRARY_PATH} \
+ ${srcdir}/Python-${pkgver}/python -m test.regrtest -x test_distutils 
test_site \
+ test_urllib test_uuid test_pydoc
+}
+
+package() {
+  cd ${srcdir}/Python-${pkgver}
+  make DESTDIR=${pkgdir} install maninstall
+
+  # Why are these not done by default...
+  ln -sf python3   ${pkgdir}/usr/bin/python
+  ln -sf python3-config${pkgdir}/usr/bin/python-config
+  ln -sf idle3 ${pkgdir}/usr/bin/idle
+  ln -sf pydoc3${pkgdir}/usr/bin/pydoc
+  ln -sf python${_pybasever}.1 ${pkgdir}/usr/share/man/man1/python3.1
+
+  # Fix FS#22552
+  ln -sf ../../libpython${_pybasever}m.so \
+
${pkgdir}/usr/lib/python${_pybasever}/config-${_pybasever}m/libpython${_pybasever}m.so
+
+  # Clean-up reference to build directory
+  sed -i s|$srcdir/Python-${pkgver}:|| 
$pkgdir/usr/lib/python${_pybasever}/config-${_pybasever}m/Makefile
+
+  # License
+  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+}

Copied: python/repos/testing-x86_64/PKGBUILD (from rev 168833, 
python/repos/staging-x86_64/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2012-10-16 11:54:17 UTC (rev 168851)
@@ -0,0 +1,75 @@
+# $Id$
+# Maintainer: Stéphane Gaudreault steph...@archlinux.org
+# Contributor: Allan McRae al...@archlinux.org
+# Contributor: Jason Chu ja...@archlinux.org
+
+pkgname=python
+pkgver=3.3.0
+pkgrel=1
+_pybasever=3.3
+pkgdesc=Next generation of the python high-level scripting language
+arch=('i686' 'x86_64')
+license=('custom')
+url=http://www.python.org/;
+depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
+makedepends=('tk' 'sqlite' 'valgrind')
+optdepends=('tk: for tkinter' 'sqlite')
+provides=('python3')
+replaces=('python3')
+options=('!makeflags')
+source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz)
+sha1sums=('833d73565e1b665f1878504081dc985a5a06e46a')
+
+build() {
+  cd ${srcdir}/Python-${pkgver}
+
+  # FS#23997
+  sed -i -e s|^#.* /usr/local/bin/python|#!/usr/bin/python| Lib/cgi.py
+
+  # Ensure that we are using the system copy of various libraries (expat, zlib 
and libffi),
+  # rather than copies shipped in the tarball
+  rm -r Modules/expat
+  rm -r Modules/zlib
+  rm -r Modules/_ctypes/{darwin,libffi}*
+
+  ./configure --prefix=/usr \
+  --enable-shared \
+  --with-threads \
+ 

[arch-commits] Commit in python/repos (6 files)

2011-11-21 Thread Stéphane Gaudreault
Date: Monday, November 21, 2011 @ 12:38:43
  Author: stephane
Revision: 143041

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  python/repos/staging-i686/
  python/repos/staging-i686/PKGBUILD
(from rev 143040, python/trunk/PKGBUILD)
  python/repos/staging-i686/gdbm-magic-values.patch
(from rev 143040, python/trunk/gdbm-magic-values.patch)
  python/repos/staging-x86_64/
  python/repos/staging-x86_64/PKGBUILD
(from rev 143040, python/trunk/PKGBUILD)
  python/repos/staging-x86_64/gdbm-magic-values.patch
(from rev 143040, python/trunk/gdbm-magic-values.patch)

+
 staging-i686/PKGBUILD  |   81 +++
 staging-i686/gdbm-magic-values.patch   |   13 
 staging-x86_64/PKGBUILD|   81 +++
 staging-x86_64/gdbm-magic-values.patch |   13 
 4 files changed, 188 insertions(+)

Copied: python/repos/staging-i686/PKGBUILD (from rev 143040, 
python/trunk/PKGBUILD)
===
--- staging-i686/PKGBUILD   (rev 0)
+++ staging-i686/PKGBUILD   2011-11-21 17:38:43 UTC (rev 143041)
@@ -0,0 +1,81 @@
+# $Id$
+# Maintainer: Stéphane Gaudreault steph...@archlinux.org
+# Maintainer: Allan McRae al...@archlinux.org
+# Contributor: Jason Chu ja...@archlinux.org
+
+pkgname=python
+pkgver=3.2.2
+pkgrel=2
+_pybasever=3.2
+pkgdesc=Next generation of the python high-level scripting language
+arch=('i686' 'x86_64')
+license=('custom')
+url=http://www.python.org/;
+depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
+makedepends=('tk' 'sqlite3' 'valgrind')
+optdepends=('tk: for tkinter' 'sqlite3')
+provides=('python3')
+replaces=('python3')
+options=('!makeflags')
+source=(http://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz
+gdbm-magic-values.patch)
+sha1sums=('5e654dbd48476193ccdef4d604ed4f45b48c6769'
+  '43bfbe3e23360f412b95cb284ff29b2cbe338be9')
+
+build() {
+  cd ${srcdir}/Python-${pkgver}
+
+  # FS#23997
+  sed -i -e s|^#.* /usr/local/bin/python|#!/usr/bin/python| Lib/cgi.py
+
+  # gdbm has new magic that whichdb does not recognize
+  # http://bugs.python.org/issue13007
+  patch -Np1 -i ../gdbm-magic-values.patch
+
+  # Ensure that we are using the system copy of various libraries (expat, zlib 
and libffi),
+  # rather than copies shipped in the tarball
+  rm -r Modules/expat
+  rm -r Modules/zlib
+  rm -r Modules/_ctypes/{darwin,libffi}*
+
+  ./configure --prefix=/usr \
+  --enable-shared \
+  --with-threads \
+  --with-computed-gotos \
+  --enable-ipv6 \
+  --with-valgrind \
+  --with-wide-unicode \
+  --with-system-expat \
+  --with-dbmliborder=gdbm:ndbm \
+  --with-system-ffi
+
+  make
+}
+
+check() {
+  cd ${srcdir}/Python-${pkgver}
+  LD_LIBRARY_PATH=${srcdir}/Python-${pkgver}:${LD_LIBRARY_PATH} \
+ ${srcdir}/Python-${pkgver}/python -m test.regrtest -x test_distutils 
test_site test_uuid
+}
+
+package() {
+  cd ${srcdir}/Python-${pkgver}
+  make DESTDIR=${pkgdir} install maninstall
+
+  # Why are these not done by default...
+  ln -sf python3   ${pkgdir}/usr/bin/python
+  ln -sf python3-config${pkgdir}/usr/bin/python-config
+  ln -sf idle3 ${pkgdir}/usr/bin/idle
+  ln -sf pydoc3${pkgdir}/usr/bin/pydoc
+  ln -sf python${_pybasever}.1 ${pkgdir}/usr/share/man/man1/python3.1
+
+  # Fix FS#22552
+  ln -sf ../../libpython${_pybasever}mu.so \
+
${pkgdir}/usr/lib/python${_pybasever}/config-${_pybasever}mu/libpython${_pybasever}mu.so
+
+  # Clean-up reference to build directory
+  sed -i s|$srcdir/Python-${pkgver}:|| 
$pkgdir/usr/lib/python${_pybasever}/config-${_pybasever}mu/Makefile
+
+  # License
+  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+}

Copied: python/repos/staging-i686/gdbm-magic-values.patch (from rev 143040, 
python/trunk/gdbm-magic-values.patch)
===
--- staging-i686/gdbm-magic-values.patch(rev 0)
+++ staging-i686/gdbm-magic-values.patch2011-11-21 17:38:43 UTC (rev 
143041)
@@ -0,0 +1,13 @@
+diff -up Python-3.2.2/Lib/dbm/__init__.py.gdbm-1.9-magic 
Python-3.2.2/Lib/dbm/__init__.py
+--- Python-3.2.2/Lib/dbm/__init__.py.gdbm-1.9-magic2011-09-03 
12:16:40.0 -0400
 Python-3.2.2/Lib/dbm/__init__.py   2011-09-30 15:47:27.488863694 -0400
+@@ -166,7 +166,7 @@ def whichdb(filename):
+ return 
+ 
+ # Check for GNU dbm
+-if magic == 0x13579ace:
++if magic in (0x13579ace, 0x13579acd, 0x13579acf):
+ return dbm.gnu
+ 
+ # Later versions of Berkeley db hash file have a 12-byte pad in
+diff -up Python-3.2.2/Misc/NEWS.gdbm-1.9-magic Python-3.2.2/Misc/NEWS

Copied: python/repos/staging-x86_64/PKGBUILD (from rev