X-Git-Url: http://gitweb/?a=blobdiff_plain;f=python3%2FPkgfile;h=8921f40fba2b75c325b3b3ad9ab2e2ff41ba363b;hb=839779a2c819abfb88d76a0a14548a526d62cb19;hp=e1b0638de0fcc4077e0f62156972979e9206df4b;hpb=13e92fc2f5d2aa39b5e45198b6782d4f1df44280;p=ports%2Fopt-arm.git diff --git a/python3/Pkgfile b/python3/Pkgfile index e1b0638..8921f40 100644 --- a/python3/Pkgfile +++ b/python3/Pkgfile @@ -4,48 +4,47 @@ # Depends on: bzip2 expat gdbm libffi libtirpc mpdecimal sqlite3 xz zlib name=python3 -version=3.6.8 +version=3.7.4 release=1 source=(https://www.python.org/ftp/python/$version/Python-$version.tar.xz) build() { - cd Python-$version + 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 + # Ensure that we are using the system copy of various libraries + rm -r Modules/expat + 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" \ - ./configure --prefix=/usr \ - --enable-shared \ - --enable-ipv6 \ - --enable-loadable-sqlite-extensions \ - --with-threads \ - --with-lto \ - --with-system-expat \ - --with-system-ffi \ - --with-system-libmpdec \ - --without-ensurepip + ./configure --prefix=/usr \ + --enable-shared \ + --enable-ipv6 \ + --enable-loadable-sqlite-extensions \ + --with-computed-gotos \ + --with-threads \ + --with-system-expat \ + --with-system-ffi \ + --with-system-libmpdec \ + --without-ensurepip - make - make -j1 DESTDIR=$PKG altinstall maninstall - - ln -s python${version%.*} $PKG/usr/bin/python3 - ln -s python${version%.*}m-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%.*} $PKG/usr/lib/$name - - 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} - rm $PKG/usr/lib/python${version%.*}/idlelib/{README.txt,TODO.txt,idle_test/README.txt} - rm $PKG/usr/lib/python${version%.*}/lib2to3/tests/data/README - rm $PKG/usr/lib/python${version%.*}/site-packages/README.txt - rm $PKG/usr/lib/python${version%.*}/test/{data/README,sndhdrdata/README} - rm $PKG/usr/lib/python${version%.*}/tkinter/test/README + make + make -j1 DESTDIR=$PKG altinstall maninstall + + ln -s python${version%.*} $PKG/usr/bin/python3 + ln -s python${version%.*}m-config $PKG/usr/bin/python3-config + ln -s python${version%.*}m-config $PKG/usr/bin/python${version%.*}-config + ln -s idle${version%.*} $PKG/usr/bin/idle3 + ln -s pydoc${version%.*} $PKG/usr/bin/pydoc3 + ln -s python${version%.*} $PKG/usr/lib/$name + ln -s python-${version%.*}.pc $PKG/usr/lib/pkgconfig/python3.pc + ln -s python${version%.*}m $PKG/usr/include/python${version%.*} + + 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} + rm $PKG/usr/lib/python${version%.*}/idlelib/{README.txt,TODO.txt,idle_test/README.txt} + rm $PKG/usr/lib/python${version%.*}/lib2to3/tests/data/README + rm $PKG/usr/lib/python${version%.*}/site-packages/README.txt + rm $PKG/usr/lib/python${version%.*}/test/{data/README,sndhdrdata/README} + rm $PKG/usr/lib/python${version%.*}/tkinter/test/README }