--- admin/PlamoBuild-template-20170204 2017-02-04 18:40:24.000000000 +0900 +++ plamo/04_xapps/old/py2cairo-20170214/PlamoBuild.py2cairo-1.10.0 2017-02-14 12:22:35.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://cairographics.org/releases/py2cairo-1.10.0.tar.bz2" +pkgbase=py2cairo +vers=1.10.0 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="AUTHORS COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1 INSTALL NEWS + README" template=20170204 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -243,20 +244,22 @@ if [ -f config.log ] ; then rm -rf config.cache config.log fi - if [ -x configure ] ; then + false && if [ -x configure ] ; then ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done + ./waf --prefix=/usr --libdir=/usr/$libdir configure fi if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - if [ -f Makefile ] ; then + false && if [ -f Makefile ] ; then make fi done + ./waf build fi if [ $opt_package -eq 1 ] ; then if [ `id -u` -ne 0 ] ; then @@ -270,15 +273,20 @@ touch $W/i.st ; sleep 1 for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - if [ -f Makefile ] ; then + false && if [ -f Makefile ] ; then make install DESTDIR=$P fi done + ./waf --destdir=$P install + touch $P/usr/$libdir/pkgconfig/* + touch $P/usr/$libdir/python*/site-packages/cairo/*.so 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/python*/site-packages/cairo + touch -t `date '+%m%d0900'` $P/usr/$libdir/python*/site-packages/cairo for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -310,9 +318,12 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + touch -t `date '+%m%d0900'` $docdir/$src convert - tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` - tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | tail -n+2` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir/python*/site-packages -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/pycairo tar rvpf $pkg.tar -C $P usr/share/doc/$src touch -t `date '+%m%d0900'` $pkg.tar ; xz $pkg.tar ; touch $pkg.tar.xz mv $pkg.tar.xz $pkg.txz