--- plamo/01_minimum/tcl.txz/old/tcl-20161016/PlamoBuild.tcl-8.5.10 2016-10-16 10:07:44.000000000 +0900 +++ plamo/01_minimum/tcl.txz/tcl/PlamoBuild.tcl-8.6.6 2016-10-18 09:13:35.000000000 +0900 @@ -1,17 +1,17 @@ #!/bin/sh ###################################################################### -url="http://downloads.sourceforge.net/tcl/tcl8.5.10-src.tar.gz" +url="http://downloads.sourceforge.net/tcl/tcl8.6.6-src.tar.gz" pkgbase=tcl -vers=8.5.10 +vers=8.6.6 arch=`uname -m` -build=P2 -src=tcl$vers +build=P1 +src=$pkgbase$vers patchfiles="" OPT_CONFIG="--enable-threads" -DOCS="changes ChangeLog.2000 ChangeLog.1999 ChangeLog.2002 - ChangeLog.2003 ChangeLog.2005 README ChangeLog ChangeLog.2001 - license.terms ChangeLog.2004" +DOCS="ChangeLog.2004 ChangeLog.2002 ChangeLog.2005 ChangeLog.2008 + ChangeLog.1999 changes ChangeLog license.terms ChangeLog.2007 + ChangeLog.2003 README ChangeLog.2000 ChangeLog.2001" ###################################################################### fscheck() { @@ -239,17 +239,17 @@ if [ $arch == x86_64 ] ; then cp -p unix/configure{,.orig} cat <<- "EOF" | patch unix/configure - 18772c18772 + 18923c18923 < TCL_LIBRARY='$(prefix)/lib/tcl$(VERSION)' --- > TCL_LIBRARY='$(prefix)/lib64/tcl$(VERSION)' - 18894,18895c18894,18895 + 19053,19054c19053,19054 < elif test "$prefix/lib" != "$libdir"; then < TCL_PACKAGE_PATH="${libdir} ${prefix}/lib ${TCL_PACKAGE_PATH}" --- > elif test "$prefix/lib64" != "$libdir"; then > TCL_PACKAGE_PATH="${libdir} ${prefix}/lib64 ${TCL_PACKAGE_PATH}" - 18897c18897 + 19056c19056 < TCL_PACKAGE_PATH="${prefix}/lib ${TCL_PACKAGE_PATH}" --- > TCL_PACKAGE_PATH="${prefix}/lib64 ${TCL_PACKAGE_PATH}" @@ -294,14 +294,18 @@ make install DESTDIR=$P install-private-headers fi done - ln -s tclsh8.5 $P/usr/bin/tclsh - mv $P/usr/bin/{tclsh8.5,tclsh} $C - mv $C/{tclsh8.5,tclsh} $P/usr/bin + ln -s tclsh8.6 $P/usr/bin/tclsh + mv $P/usr/bin/{tclsh8.6,sqlite3_analyzer,tclsh} $C + mv $C/{tclsh8.6,sqlite3_analyzer,tclsh} $P/usr/bin touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + for i in `find $P/usr/$libdir -mindepth 2 -name "*.so"` ; do + strip_libdir ${i%/*} + touch -t `date '+%m%d0900'` ${i%/*} + done for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -321,9 +325,9 @@ done convert tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` - tar rvpf $pkg.tar -C $P usr/$libdir/tcl8.5 - tar rvpf $pkg.tar -C $P usr/$libdir/{libtcl8.5.so,tclConfig.sh,libtclstub8.5.a} - tar rvpf $pkg.tar -C $P usr/$libdir/tcl8 + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir -maxdepth 1 ! -name pkgconfig | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man3 | tail -n+2`