Merge branch '3.2' into 3.3

This commit is contained in:
Danny Rawlins 2017-02-12 19:10:08 +11:00
commit 7f06245e9d
5 changed files with 46 additions and 9 deletions

8
mpdecimal/.footprint Normal file
View File

@ -0,0 +1,8 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/include/
-rw-r--r-- root/root usr/include/mpdecimal.h
drwxr-xr-x root/root usr/lib/
-rw-r--r-- root/root usr/lib/libmpdec.a
lrwxrwxrwx root/root usr/lib/libmpdec.so -> libmpdec.so.2.4.2
lrwxrwxrwx root/root usr/lib/libmpdec.so.2 -> libmpdec.so.2.4.2
-rwxr-xr-x root/root usr/lib/libmpdec.so.2.4.2

1
mpdecimal/.md5sum Normal file
View File

@ -0,0 +1 @@
aa63cab5d06a96855a44da2db90a29d9 mpdecimal-2.4.2.tar.gz

20
mpdecimal/Pkgfile Normal file
View File

@ -0,0 +1,20 @@
# Description: Package for correctly-rounded arbitrary precision decimal floating point arithmetic.
# URL: http://www.bytereef.org/mpdecimal/index.html
# Maintainer: Danny Rawlins, crux at romster dot me
name=mpdecimal
version=2.4.2
release=1
source=(http://www.bytereef.org/software/$name/releases/$name-$version.tar.gz)
build() {
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/doc
rmdir $PKG/usr/share
}

View File

@ -8,10 +8,8 @@ lrwxrwxrwx root/root usr/bin/pydoc3 -> pydoc3.6
lrwxrwxrwx root/root usr/bin/python3 -> python3.6
lrwxrwxrwx root/root usr/bin/python3-config -> python3.6-config
-rwxr-xr-x root/root usr/bin/python3.6
lrwxrwxrwx root/root usr/bin/python3.6-config -> python3.6m-config
-rwxr-xr-x root/root usr/bin/python3.6m
-rwxr-xr-x root/root usr/bin/python3.6m-config
lrwxrwxrwx root/root usr/bin/pyvenv -> pyvenv-3.6
-rwxr-xr-x root/root usr/bin/pyvenv-3.6
drwxr-xr-x root/root usr/include/
drwxr-xr-x root/root usr/include/python3.6m/
@ -121,8 +119,6 @@ lrwxrwxrwx root/root usr/lib/libpython3.6m.so -> libpython3.6m.so.1.0
-r-xr-xr-x root/root usr/lib/libpython3.so
drwxr-xr-x root/root usr/lib/pkgconfig/
-rw-r--r-- root/root usr/lib/pkgconfig/python-3.6.pc
lrwxrwxrwx root/root usr/lib/pkgconfig/python-3.6m.pc -> python-3.6.pc
lrwxrwxrwx root/root usr/lib/pkgconfig/python3.pc -> python-3.6.pc
lrwxrwxrwx root/root usr/lib/python3 -> python3.6
drwxr-xr-x root/root usr/lib/python3.6/
-rw-r--r-- root/root usr/lib/python3.6/LICENSE.txt

View File

@ -1,16 +1,22 @@
# Description: Python interpreter, version 3.
# URL: https://www.python.org/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: bzip2 expat gdbm libffi openssl sqlite3 xz zlib
# Depends on: bzip2 expat gdbm libffi mpdecimal sqlite3 xz zlib
name=python3
version=3.6.0
release=1
release=2
source=(https://www.python.org/ftp/python/$version/Python-$version.tar.xz)
build() {
cd Python-$version
# Ensure that we are using the system copy of various libraries
rm -r Modules/expat
rm -r Modules/zlib
rm -r Modules/_ctypes/{darwin,libffi}*
rm -r Modules/_decimal/libmpdec
# set OPT to the python default without -O3 or -g
# our CFLAGS are used as well
OPT="-Wall -Wstrict-prototypes -Wno-unused-result -Wsign-compare -fwrapv" \
@ -19,16 +25,22 @@ build() {
--enable-ipv6 \
--enable-loadable-sqlite-extensions \
--with-threads \
--with-lto \
--with-system-expat \
--with-system-ffi \
--with-system-libmpdec \
--without-ensurepip
make
make -j1 DESTDIR=$PKG install
make -j1 DESTDIR=$PKG altinstall
ln -s python${version%.*} $PKG/usr/lib/$name
ln -s python${version%.*} $PKG/usr/bin/python3
ln -s python${version%.*}-config $PKG/usr/bin/python3-config
ln -s idle${version%.*} $PKG/usr/bin/idle3
ln -s pydoc${version%.*} $PKG/usr/bin/pydoc3
ln -s python${version%.*}.1 $PKG/usr/share/man/man1/python3.1
ln -s python${version%.*} $PKG/usr/lib/$name
rm $PKG/usr/bin/2to3
rm $PKG/usr/lib/python${version%.*}/ctypes/macholib/README.ctypes
rm $PKG/usr/lib/python${version%.*}/distutils/README
rm $PKG/usr/lib/python${version%.*}/idlelib/{ChangeLog,NEWS.txt,NEWS2x.txt}