--- admin/PlamoBuild-template-20170713 2017-07-13 13:07:00.000000000 +0900 +++ plamo/05_ext/Python/PlamoBuild.Python-3.3.6 2018-03-29 07:57:31.000000000 +0900 @@ -1,19 +1,20 @@ #!/bin/sh ###################################################################### -url="" +url="https://www.python.org/ftp/python/3.3.6/Python-3.3.6.tar.xz" verify= digest= branch= commitid= -pkgbase= -vers= +pkgbase=Python +vers=3.3.6 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--enable-shared --enable-loadable-sqlite-extensions + --with-system-expat --with-system-ffi --with-computed-gotos" +DOCS="README LICENSE" template=20170713 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -37,6 +38,17 @@ if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done apply_patches + cd $B + sed -i 's@\(#! /usr\)/local\(/bin/python\)@\1\23@' Lib/cgi.py + if [ $arch == x86_64 ] ; then + sed -i 's@lib\(/python\)@lib64\1@' \ + Lib/{distutils/command/install,sysconfig}.py + sed -i 's@"lib"@"lib64"@' Lib/{distutils/sysconfig,site}.py + sed -i 's@'lib'@'lib64'@' Lib/venv/__init__.py + sed -i '/^SCRIPTDIR/s@lib@lib64@' Makefile.pre.in + sed -i -e '/VERSION/s@lib/@lib64/@' -e '/joinpath/s@lib/@lib64/@' \ + Modules/getpath.c + fi for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -x configure ] ; then @@ -50,7 +62,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make + make LANG=C fi done fi @@ -65,16 +77,27 @@ make install DESTDIR=$P fi done + ln -s /usr/$libdir/libpython3.3m.so $P/usr/$libdir/python3.3/config-3.3m + touch $P/usr/$libdir/python3.3/lib-dynload/* touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/python3.3/config-3.3m + strip_libdir $P/usr/$libdir/python3.3/lib-dynload + touch -t `date '+%m%d0900'` $P/usr/$libdir/python3.3/lib-dynload setup_docdir convert_links + touch -t `date '+%m%d0900'` $P/usr/$libdir/python3.3/config-3.3m tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -maxdepth 1 -name libpython3.*` + tar rvpf $pkg.tar -C $P usr/$libdir/python3.3 + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/python3.3m tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | tail -n+2` tar rvpf $pkg.tar -C $P usr/share/doc/$src + tar rvpf $pkg.tar -C $P install/doinst.sh touch -t `date '+%m%d0900'` $pkg.tar ; xz $pkg.tar ; touch $pkg.tar.xz mv $pkg.tar.xz $pkg.txz cleanup