summaryrefslogtreecommitdiff
path: root/tetex/Pkgfile
blob: 98573b9d65a468aa6c6b8d11a35d96351df4d42d (plain)
    1 # Maintainer: Johannes Winkelmann, jw at smts dot ch
    2 # Packager: Robert McMeekin, viper at mcmeekin dot info
    3 # Description: TeX distribution for UNIX compatible systems
    4 # URL: http://www.tug.org/tetex/
    5 # Depends on: libpng, ncurses, t1lib, libgd
    6 
    7 name=tetex
    8 version=3.0
    9 release=4
   10 source=(ftp://dante.ctan.org/pub/tex/systems/unix/teTeX/current/distrib/$name-src-$version.tar.gz \
   11     ftp://dante.ctan.org/pub/tex/systems/unix/teTeX/current/distrib/$name-texmf-$version.tar.gz \
   12     ftp://dante.ctan.org/pub/tex/systems/unix/teTeX/current/distrib/$name-texmfsrc-$version.tar.gz \
   13     $name.patch.gz)
   14 
   15 build() {
   16     mkdir -p $PKG/usr/share/texmf
   17     cp -r `/bin/ls | grep -v $name-src-$version` $PKG/usr/share/texmf/
   18     cd $name-src-$version
   19     zcat $SRC/tetex.patch.gz| patch -p0
   20     ./configure --prefix=/usr \
   21 		--datadir=/usr/share \
   22 		--disable-multiplatform \
   23         	--without-texinfo \
   24 		--without-texi2html \
   25 		--without-dialog \
   26 		--without-psutils \
   27 		--with-x \
   28 		--with-xdvi-x-toolkit=xaw \
   29 		--with-system-zlib \
   30 		--with-system-pnglib \
   31 		--with-system-ncurses \
   32 		--with-system-t1lib \
   33 		--with-system-gd
   34 
   35     # Files generated during make, use conflicing getline function.
   36     # Build these manually first.
   37     cd texk/web2c
   38     for i in tangleboot tangle mft otangle weave
   39     do
   40 	make ${i}.c
   41 	sed 's|getline|&_|' -i ${i}.[ch]
   42     done
   43     cd ../../
   44 
   45     # Fix some more getline conflicts
   46     sed 's|getline|&_|' -i texk/web2c/mpware/mpto.c
   47     sed 's|getline|&_|' -i texk/dvipsk/afm2tfm.c
   48 
   49     make
   50 
   51     # temp fix, this tools tries to write in real root
   52     sed -i 's/fmtutil-sys/fmtutil-sys-fix/g' Makefile
   53     sed -i 's/updmap-sys/updmap-sys-fix/g' Makefile
   54 
   55     make DESTDIR=$PKG prefix=$PKG/usr texmf=$PKG/usr/share/texmf install
   56     rm -rf $PKG/usr/info $PKG/usr/share/texmf/doc
   57     rm -f $PKG/usr/share/texmf/tetex.patch.gz
   58 }

Generated by cgit