the Fink project is an effort to port
popular Unix programs to Mac OS X
Info2: <<
Package: ptex%type_pkg[-nox]-base
Type: -nox (boolean)
Version: 3.1.10
Revision: 1004
Distribution: 10.5, 10.6
GCC: 4.0
Description: ASCII publishing TeX
BuildDepends: <<
libkpathsea4 (>= 3.5.6-1), t1lib5-nox, libpng3 (>= 1:1.2.8-1), libwww, libncurses5 (>= 5.4-20041023-1006), fink (>= 0.24.12),
libjpeg, libiconv-dev,
ptexenc (>= 0.96-1),
(%type_raw[-nox] = .) t1lib5-x11,
(%type_raw[-nox] = .) gd2 (>= 2.0.33-1),
(%type_raw[-nox] = .) expat1,
(%type_raw[-nox] = .) fontconfig2-dev,
(%type_raw[-nox] = .) freetype219 (>= 2.2.1-4),
(%type_raw[-nox] = .) x11,
(%type_raw[-nox] = .) xmkmf (>= 1.0.2-3),
(%type_raw[-nox] = .) openmotif3
<<
Source: mirror:ctan:systems/unix/teTeX/3.0/distrib/tetex-src-3.0.tar.gz
Source-MD5: 944a4641e79e61043fdaf8f38ecbb4b3
Source2: http://tutimura.ath.cx/~nob/tex/ptetex/ptetex3/ptetex3-20070426.tar.gz
Source2-MD5: 916cded5cf485e1afe03cf2353a449e1
Tar2FilesRename: ptetex3-20070426:ptetex3
Source3: http://hnd.jp.asi.finkmirrors.net/pkgdists/tetex-3.0-security-200709.tar.bz2
Source3-MD5: 461b069855d8c2852c647ebe44f7e1af
Tar3FilesRename: tetex-3.0-security-200709:tetex-3.0-security
Source4: ftp://ftp.riken.go.jp/pub/Linux/gentoo/app-text/tetex/files/tetex-3.0-epstopdf-wrong-rotation.patch
Source4-MD5: b15d18a85d673070c4b9ac48ebc586ed
Source5: ftp://ftp.riken.go.jp/pub/Linux/gentoo/app-text/tetex/files/tetex-3.0_p1-dvipdfm-timezone.patch
Source5-MD5: 8585c6b04f2dda15ac989c61b49d355d
PatchFile: tetex.patch
PatchFile-MD5: b5bc9d386f66b9542970d63adcf8270d
PatchScript: <<
# apply the same patches in tetex.info
sed 's|@PREFIX@|%p|g' < %{PatchFile} | sed 's|@PACKAGE@|%n-%v-%r|g' | patch -p1
perl -pi -e "s|hardcode_direct=yes|hardcode_direct=no|" texk/configure texk/kpathsea/configure utils/texinfo/configure
perl -pi -e 's,-flat_namespace -undefined suppress,-twolevel_namespace -undefined error,g' texk/configure texk/kpathsea/configure utils/texinfo/configure
perl -pi -e 's,\*\.obj\),*.obj | *.dSYM),' texk/configure texk/kpathsea/configure utils/texinfo/configure
perl -pi -e 's,need_relink=yes,need_relink=no,g' texk/ltmain.sh
# Fix xpdf overflows CVE-2005-3193 (impoted from tetex-3.0-20.fc5)
patch -p1 < ../tetex-3.0-security/tetex-3.0-CVE-2005-3193.patch
# Fix xpdf integer overflow CVE-2007-3387 (imported from tetex-3.0-40.1.fc7)
patch -p1 < ../tetex-3.0-security/tetex-3.0-CVE-2007-3387.patch
# Fix overflows in makeindex CVE-2007-0650 (impoted from tetex-3.0-34.fc6)
patch -p1 < ../tetex-3.0-security/tetex-3.0-CVE-2007-0650.patch
# imported from http://bugs.gentoo.org/show_bug.cgi?id=85404
patch -p1 < ../tetex-3.0-epstopdf-wrong-rotation.patch
# imported from http://bugs.gentoo.org/show_bug.cgi?id=94860
sed -i.bak -e 's|\(vptovf weave\)|\1 pdftosrc|' \
-e 's|$(pdftosrc)||' texk/web2c/Makefile.in
# imported from http://bugs.gentoo.org/show_bug.cgi?id=94901
patch -p1 < ../tetex-3.0_p1-dvipdfm-timezone.patch
#################### Let's apply ptetex3 patches ####################
# 1. -dNOKANJI option is not needed
# 2. avoid conflict with the original tetex.patch
# 3. already applied above
# 4. skip md5sum checks
sed -i.bak \
-e 's/-dNOKANJI //' \
-e '/## use TEXMFMAIN/,/Makefile.in/d' \
-e 's/\(.*tetex-3.0-CVE-2005-3193.*\)/#\1/' \
-e '/## post/,$d' ../ptetex3/2extract-src.sh
# not to extract teTeX src (already extracted) and use system's freetype2.
echo "TEXSRC_EXTRACTED=../" >> ../my_option
echo "SYSTEM_FREETYPE2=yes" >> ../my_option
# extract pTeX src and apply patches of ptetex3
(cd ../ptetex3 && ./2extract-src.sh) || exit
# copy ptetex3's docs
cp ../ptetex3/README ptetex3-README
cp ../ptetex3/README.en ptetex3-README.en
cp ../ptetex3/LICENSE ptetex3-LICENSE.src
# don't run mktexlsr, texlinks and fmtutil-sys when make install
# (see also the first paragraph of DescPort)
perl -pi -e 's|\$\(scriptdir\)/mktexlsr|echo "Done."|' \
texk/web2c/ptex/Makefile.in texk/web2c/ptex/jmpost/Makefile.in
perl -pi -e 's|\$\(scriptdir\)/texlinks|echo "Done."|' \
texk/web2c/ptex/Makefile.in texk/web2c/ptex/jmpost/Makefile.in
perl -pi -e 's|\$\(scriptdir\)/fmtutil-sys.*|echo "Done."|' \
texk/web2c/ptex/Makefile.in texk/web2c/ptex/jmpost/Makefile.in
<<
SetCPPFLAGS:-I%p/lib/freetype219/include/freetype2 -I%p/lib/freetype219/include
SetLDFLAGS: -L%p/lib/freetype219/lib
NoSetMAKEFLAGS: true
SetMAKEFLAGS: -j1
ConfigureParams: <<
--without-texi2html --without-texinfo --enable-shared \
--datadir='${prefix}/share' --infodir='${prefix}/share/info' \
--mandir='${prefix}/share/man' --disable-multiplatform --with-system-ncurses \
--with-system-pnglib --with-system-t1lib --with-system-wwwlib \
--with-system-zlib \
--enable-freetype --enable-kanji-iconv --with-ptexenc=UTF8 \
(%type_raw[-nox] = .) --with-system-gd
(%type_raw[-nox] = -nox) --without-x
<<
CompileScript: <<
#!/bin/sh -ev
export PATH=%p/lib/xmkmf/bin:$PATH
export IMAKEINCLUDE=-I%p/lib/X11/config
export PATH=%p/lib/freetype219/bin:${PATH} && ./configure %c && make
<<
InstallScript: <<
#!/bin/bash -ev
export PATH=%p/lib/xmkmf/bin:$PATH
export IMAKEINCLUDE=-I%p/lib/X11/config
make install prefix=%i texmf=%i/share/texmf
echo "Removing files that belong to the libkpathsea4 and ptexenc package..."
rm -R %i/include
rm -R %i/lib
rm %i/share/info/kpathsea.info
echo "Setting up symlinks ..."
export DYLD_LIBRARY_PATH="%b/texk/kpathsea/SHARED" PATH=%i/bin:$PATH TEXMFMAIN=%p/share/texmf-dist ; texlinks --cnffile %i/share/texmf/web2c/fmtutil.cnf --verbose %i/bin
echo "Creating a local texmf tree, and symlinking it into place ..."
mkdir -p %i/etc/texmf.local
%i/bin/mktexlsr %i/etc/texmf.local
mkdir -p %i/share
ln -s %p/etc/texmf.local %i/share/texmf-local
echo "Creating a VARTEXMF tree, including a fonts directory ..."
mkdir -p %i/var/lib/texmf/fonts
%i/bin/mktexlsr %i/var/lib/texmf
echo "Creating a TEXMFCONFIG tree ..."
mkdir -p %i/etc/texmf-config
%i/bin/mktexlsr %i/etc/texmf-config
echo "Removing the ls-R file, which is supplied in the tetex-texmf package ..."
rm -f %i/share/texmf-dist/ls-R
rm -f %i/share/texmf/ls-R
echo "Removing readlink, which is supplied in the debianutils package ..."
rm -f %i/bin/readlink
rm -f %i/share/man/man1/readlink.1
if [ "%type_raw[-nox]" == "." ]; then
echo "Preparing xdvi for the alternatives system ..."
mv %i/bin/xdvi %i/bin/xdvik
mv %i/share/man/man1/xdvi.1 %i/share/man/man1/xdvik.1
mv %i/bin/xdvizilla %i/bin/xdvizillak
mv %i/share/man/man1/xdvizilla.1 %i/share/man/man1/xdvizillak.1
fi
# make font dirs and make links for apple's fonts
install -m 755 -d %i/share/texmf/fonts/{opentype,truetype}
if [ "%type_raw[-nox]" == "." ]; then
ln -s %p/lib/X11/fonts/appleotf %i/share/texmf/fonts/opentype
ln -s %p/lib/X11/fonts/applettf %i/share/texmf/fonts/truetype
fi
# don't edit vfontmap, use updmap-sys instead.
if [ "%type_raw[-nox]" == "." ]; then
cat <<-EOF > %i/share/texmf/xdvi/vfontmap || exit
%%
%% vfontmap -- Do NOT edit this file BY HAND!!
%%
%% An effective file is
%% "%p/var/lib/texmf/fonts/map/xdvi/updmap/xdvi-ptex.map"
%% which is generated by 'updmap-sys'.
%%
%% Use "updmap-sys --setoption xdviRml mincho-font"
%% and "updmap-sys --setoption xdviGbm gothic-font".
%%
EOF
fi
# make links for convenience
ln -s dvips %i/bin/pdvips
if [ "%type_raw[-nox]" == "." ]; then
ln -s xdvik %i/bin/pxdvi
fi
# set PTEX_IN_FILTER
echo "" >> %i/share/texmf/web2c/texmf.cnf
echo "%% character code converter" >> %i/share/texmf/web2c/texmf.cnf
echo "PTEX_IN_FILTER=%p/bin/nkf -j" >> %i/share/texmf/web2c/texmf.cnf
<<
Depends: <<
t1lib5-nox-shlibs, libpng3-shlibs (>= 1:1.2.8-1),
libwww-bin, libncurses5-shlibs (>= 5.4-20041023-1006), ncurses (>= 5.4-20041023-1006),
fink (>= 0.12.0-1), ptexenc-shlibs (>= 0.96-1), ptex-texmf (>= 2.4-56), nkf,
(%type_raw[-nox] = .) applesystemfonts,
(%type_raw[-nox] = .) appleotffonts,
(%type_raw[-nox] = .) t1lib5-x11-shlibs,
(%type_raw[-nox] = -nox) ghostscript-nox,
(%type_raw[-nox] = .) ghostscript,
(%type_raw[-nox] = .) gd2-shlibs (>= 2.0.33-1),
(%type_raw[-nox] = .) x11,
(%type_raw[-nox] = .) x11-shlibs,
(%type_raw[-nox] = .) freetype219-shlibs (>= 2.2.1-4),
(%type_raw[-nox] = .) openmotif3-shlibs
<<
Conflicts: <<
tetex-base (>= 0), tetex-nox-base, ptex-base, ptex-nox-base,
texlive-base (>= 0),
ptex (<= 3.1.9-1055), ptex-nox (<= 3.1.9-1055), ptex-dev (<= 3.1.3-8), ptex-shlibs (<= 3.1.3-8),
mendexk (<= 2.5-1),
(%type_raw[-nox] = .) xdvik (<= 22.40y1-7)
<<
Replaces: <<
tetex-base (>= 0), tetex-nox-base, ptex-base, ptex-nox-base,
texlive-base (>= 0),
context, dvipdfm, epstopdf, pdftex, tetex-macosx, tetex (<= 2.0-3),
ptex (<= 3.1.9-1055), ptex-nox (<= 3.1.9-1055), ptex-dev (<= 3.1.3-8), ptex-shlibs (<= 3.1.3-8),
mendexk (<= 2.5-1),
(%type_raw[-nox] = .) xdvi (<= 22.70-1),
(%type_raw[-nox] = .) xdvik (<= 22.40y1-7)
<<
Provides: <<
tetex-base, tetex3-base, ptex3-base, mendexk,
context, dvipdfm, epstopdf, pdftex, tetex-macosx,
(%type_raw[-nox] = .) xdvik
<<
InfoDocs: web2c.info dvips.info latex.info
DocFiles: <<
ANNOUNCE-3.0:tetex-ANNOUNCE-3.0 CREDITS:tetex-CREDITS
INSTALL:tetex-INSTALL INSTALL.generic:tetex-INSTALL.generic
LICENSE.src:tetex-LICENSE.src PROBLEMS:tetex-PROBLEMS
README:tetex-README README.fink:tetex-README.fink
QuickInstall:tetex-QuickInstall
texk/web2c/ptex/COPYRIGHT texk/web2c/ptex/COPYRIGHT.jis
texk/web2c/ptex/Changes.txt texk/web2c/ptex/INSTALL.txt texk/web2c/ptex/README.txt
ptetex3-README ptetex3-README.en ptetex3-LICENSE.src
<<
PreInstScript: <<
echo "Removing any leftover files from obsolete teTeX installations ..."
rm -f %p/etc/texmf.local/web2c/*
rm -f %p/etc/ls-R/texmf.macosx
rm -Rf %p/share/texmf.macosx
rm -Rf %p/etc/texmf-var
rm -Rf %p/var/lib/texmf
<<
PostInstScript: <<
if [ ! -e %p/share/texmf-dist/tex/context ] ; then
echo " "
echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
echo "+ UPGRADE PROBLEM: We apologize for the inconvenience, but please reinstall +"
echo "+ tetex-texmf and then update or install tetex or tetex-base again. +"
echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
echo " "
exit 1
fi
if [ -e %p/bin/xdvik ] ; then
update-alternatives --install %p/bin/xdvi xdvi %p/bin/xdvik 30 --slave %p/share/man/man1/xdvi.1 xdvi.1 %p/share/man/man1/xdvik.1
update-alternatives --install %p/bin/xdvizilla xdvizilla %p/bin/xdvizillak 30 --slave %p/share/man/man1/xdvizilla.1 xdvizilla.1 %p/share/man/man1/xdvizillak.1
fi
mktexlsr %p/share/texmf %p/etc/texmf-config %p/etc/texmf.local
PATH=%p/bin:${PATH} texconfig-sys init
echo "Adjusting permissions ..."
chmod -R a+rX %p/etc/texmf.local
chmod -R a+rwX %p/var/lib/texmf
chmod -R a+rwX %p/etc/texmf-config
if [ -f ~/Library/texmf/ls-R ]; then chmod a+rw ~/Library/texmf/ls-R; fi
<<
PreRmScript: <<
if [ $1 != "upgrade" ]; then
if [ -e %p/bin/xdvik ]; then
update-alternatives --remove xdvi %p/bin/xdvik
update-alternatives --remove xdvizilla %p/bin/xdvizillak
fi
fi
<<
DescDetail: <<
pTeX is the ASCII publishing TeX distribution. This package can handle
Japanese TeX file and also takes account of vertical writing.
Now provides context, epstopdf, pdftex, and the former tetex-macosx
package.
<<
License: Restrictive/Distributable
DescPort: <<
--- original teTeX Fink package DescPort ----
The Makefile is patched to prevent the mktexlsr, fmtutil, updmap, and texlinks
utilities from running during the install phase (although texlinks is run
after "make install"). The mktexlsr, fmtutil, and updmap utilities are run in
the PostInstall script (the latter two called by texconfig-sys).
User files are stored in $HOME/Library/texmf (not $HOME/texmf) for
backwards-compatibility with earlier Fink teTeX installations.
We also set up a VARTEXMF directory for storing format and font files,
and a TEXMFCONFIG directory for storing configuration files. These latter
can be modified by running "sudo texconfig-sys".
We use update-alternatives for xdvi to allow users to install a different
version if they choose.
We patch libkpathsea's configure script to prevent it linking against an
old copy of the library as it builds.
<<
DescPackaging: <<
This package contains teTeX Fink package. So other pTeX related packages
should follow original teTeX's packaging rule.
----- original DescPackaging of tetex.info -----
Other TeX related packages should use %p/etc/texmf.local/ as their texmf
tree for storing files, rather than %p/share/texmf/. In this way, the
original texmf tree will be preserved. Any such package should list
tetex-base as a dependency, and take care to run
mktexlsr %p/etc/texmf.local
in both PostInstScript and PostRmScript.
There is a variant tetex-nox package with X11 disabled.
texinfo and texi2html are separate packages.
readlink and its manpage are removed since they conflict with debianutils,
an essential Fink package.
Many thanks to the original teTeX maintainer Jeff Whitaker.
----- end of text -----
Many thanks to Jeff Whitaker and Dave Morrison.
<<
Maintainer: Todai Fink Team
Homepage: http://www.ascii.co.jp/pb/ptex/
<<
Info2: <<
Package: ptex%type_pkg[-nox]-base
Type: bundle, -nox (boolean)
Version: 3.1.11
Revision: 2
Distribution: 10.5, 10.6
Depends: texlive%type_pkg[-nox]-base (>= 0.20100722-1), fink-obsolete-packages
Description: Placeholder package to update to texlive%type_pkg[-nox]-base. (OBSOLETE)
PreInstScript: <<
echo "=====NOTICE====="
echo "ptex%type_pkg[-nox]-base is obsolete, having been deprecated in favor of texlive-base."
echo "(Now TeX Live supports pTeX)."
echo "You can remove ptex%type_pkg[-nox]-base now"
echo "================"
<<
DescDetail: <<
ptex%type_pkg[-nox]-base is an obsolete package to allow upgrading of legacy
ptex%type_pkg[-nox]-base packages to current texlive-base with pTeX supports.
<<
Maintainer: Todai Fink Team
Homepage: http://pdb.finkproject.org/pdb/package.php/fink-obsolete-packages
<<