IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=8.4.6 # If the release number changes, remember to update the symlinks below. PROGNAME="TCL $VERSION" DESC="\ tcl (Tool Command Language) \n\ \n\ Tcl, developed by Dr. John Ousterhout, is a simple to use text-based \n\ script language with many built-in features which make it especially \n\ nice for writing interactive scripts." BUILD=1 MAINTAINER="Mark Post " SOURCE=http://dev.scriptics.com/software/tcltk PKGNAME=tcl-$VERSION-s390-$BUILD TAG=ADD compile() { tar -zxvf $CWD/tcl$VERSION-src.tar.gz chown -R root.root . find . -perm 664 -exec chmod 644 {} \; find . -perm 600 -exec chmod 644 {} \; find . -perm 444 -exec chmod 644 {} \; find . -perm 400 -exec chmod 644 {} \; find . -perm 440 -exec chmod 644 {} \; find . -perm 777 -exec chmod 755 {} \; find . -perm 775 -exec chmod 755 {} \; find . -perm 511 -exec chmod 755 {} \; find . -perm 711 -exec chmod 755 {} \; find . -perm 555 -exec chmod 755 {} \; # Make a copy of the source for the shared library version rm -rf tcl.shared cp -a tcl$VERSION tcl.shared # # build the static version # cd $TMP/tcl$VERSION/unix/ CFLAGS=-O2 \ ./configure --prefix=/usr --disable-shared --enable-man-symlinks make # # build the shared version # cd $TMP/tcl.shared/unix CFLAGS=-O2 \ ./configure --prefix=/usr --enable-shared --enable-man-symlinks make } install() { # # install the static version # cd $TMP/tcl$VERSION/ mkdir -p /package-tcl/usr/doc/tcl$VERSION cp -a README license.terms /package-tcl/usr/doc/tcl$VERSION cd unix/ make install INSTALL_ROOT=/package-tcl # # install the shared version # cd $TMP/tcl.shared/unix # Fix unexpanded ${TCL_DBGX} variables strewn throughout tclConfig.sh: sed -e 's#\${TCL_DBGX}##g' -e 's#\@LDFLAGS_DEBUG\@##g' \ -e 's#\@LDFLAGS_OPTIMIZE\@##g' tclConfig.sh > tclConfig.sh.new mv tclConfig.sh.new tclConfig.sh # Make a script to produce symlinks to gzipped man pages (used when packing later): cat mkLinks | perl -pi -e 's|\.3|foo3foo3|' | perl -pi -e 's|\.3|foo3foo3|' | \ perl -pi -e 's|foo3foo3|.3.gz|' | perl -pi -e 's|foo3foo3|.3.gz|' | \ perl -pi -e 's|\.n|foonfoon|' | perl -pi -e 's|\.n|foonfoon|' | \ perl -pi -e 's|foonfoon|.n.gz|' | perl -pi -e 's|foonfoon|.n.gz|' | \ perl -pi -e 's|ln |ln -sf |' > $CWD/mkgzLinks.sh.new make install INSTALL_ROOT=/package-tcl ( cd /package-tcl/usr/man for dir in 1 3 n; do ( cd man$dir rm -f *.gz find . -type l | xargs rm gzip -9 * sh $CWD/mkgzLinks.sh . ) done ) ( cd /package-tcl/usr/bin rm -rf tclsh ; ln -sf tclsh8.4 tclsh ) ( cd /package-tcl/usr/lib rm -rf libtcl.a ; ln -sf libtcl8.4.a libtcl.a rm -rf libtcl.so ; ln -sf libtcl8.4.so libtcl.so rm -rf libtclstub.a ; ln -sf libtclstub8.4.a libtclstub.a ) } attributes() { chown -R root.bin $PKG/package-tcl/usr/bin } special() { cd $PKG mv package-tcl/* ./ rmdir package-tcl/ cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-tcl/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }