--- ptex-buildsupport-3.0.orig/strip-tetex-src +++ ptex-buildsupport-3.0/strip-tetex-src @@ -0,0 +1,43 @@ +#!/bin/sh +# by Masayuki Hatta. Public Domain. + +if [ $# -eq 0 ]; then + echo "$0: the name of teTeX source tarball(omit 'tar.gz') must be provided." >&2 + exit 1 +fi + + +# The name of teTeX source tarball (omit ".tar.gz") +TARBALL_NAME="$1" + +echo "Unpacking teTeX source tarball..." +tar xfz $TARBALL_NAME.tar.gz + +echo "Get rid of unnecessary files/directories for building pTeX..." +rm -rf $TARBALL_NAME/utils +rm -rf $TARBALL_NAME/dialog +rm -rf $TARBALL_NAME/fixes +rm -rf $TARBALL_NAME/libs +rm -rf $TARBALL_NAME/patches +rm -rf $TARBALL_NAME/texinfo +rm -rf $TARBALL_NAME/texk/contrib +rm -rf $TARBALL_NAME/texk/djgpp +rm -rf $TARBALL_NAME/texk/dviljk +rm -rf $TARBALL_NAME/texk/dvipdfm +rm -rf $TARBALL_NAME/texk/dvipng +rm -rf $TARBALL_NAME/texk/dvipsk +rm -rf $TARBALL_NAME/texk/etc +rm -rf $TARBALL_NAME/texk/gsftopk +rm -rf $TARBALL_NAME/texk/makeindexk +rm -rf $TARBALL_NAME/texk/odvipsk +rm -rf $TARBALL_NAME/texk/oxdvik +rm -rf $TARBALL_NAME/texk/ps2pkm +rm -rf $TARBALL_NAME/texk/tetex +rm -rf $TARBALL_NAME/texk/xdvik + +echo "Building stripped tarball..." +tar -cf $TARBALL_NAME-stripped.tar $TARBALL_NAME +gzip -9 $TARBALL_NAME-stripped.tar + +rm -rf $TARBALL_NAME +echo "Done." --- ptex-buildsupport-3.0.orig/debian/dirs +++ ptex-buildsupport-3.0/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/src --- ptex-buildsupport-3.0.orig/debian/control +++ ptex-buildsupport-3.0/debian/control @@ -0,0 +1,19 @@ +Source: ptex-buildsupport +Section: tex +Priority: optional +Maintainer: Masayuki Hatta (mhatta) +Build-Depends: debhelper (>> 4.0.0) +Standards-Version: 3.7.3 + +Package: ptex-buildsupport +Architecture: all +Replaces: web2c-src, ptex-builder +Conflicts: web2c-src, ptex-builder +Description: Support files for building ASCII pTeX + This package actually contains a fragment of the latest teTeX source + tarball(will be placed in /usr/src). Since ASCII pTeX is provided as a set + of additional source files to teTeX source tree, you need to install this + package when you build ptex-bin package. A little shell script to + strip down big teTeX source tarball is also included. + . + You don't need to install this package to have a running pTeX system. --- ptex-buildsupport-3.0.orig/debian/compat +++ ptex-buildsupport-3.0/debian/compat @@ -0,0 +1 @@ +4 --- ptex-buildsupport-3.0.orig/debian/changelog +++ ptex-buildsupport-3.0/debian/changelog @@ -0,0 +1,85 @@ +ptex-buildsupport (3.0-3) unstable; urgency=low + + * Bumped to Standards-Version: 3.7.3. + * Fixed various lintian warnings. + + -- Masayuki Hatta (mhatta) Sat, 08 Dec 2007 09:07:24 +0900 + +ptex-buildsupport (3.0-2) unstable; urgency=low + + * Bumped to Standards-Version: 3.7.2. + + -- Masayuki Hatta (mhatta) Sun, 15 Oct 2006 09:12:46 +0900 + +ptex-buildsupport (3.0-1) unstable; urgency=low + + * Works done at Codefest in Malaysia 2006. + * New upstream release (based on vanilla tetex-src 3.0). + * Tweaked strip-tetex-src for handling tetex-src tarball >= 3.0. + * Bumped to Standards-Version: 3.6.2 (no physical changes). + + -- Masayuki Hatta (mhatta) Sat, 4 Mar 2006 12:10:57 +0900 + +ptex-buildsupport (2.0.2-2) unstable; urgency=low + + * Bumped to Standards-Version: 3.6.1. + + -- Masayuki Hatta (mhatta) Sun, 8 Feb 2004 12:38:45 +0900 + +ptex-buildsupport (2.0.2-1) unstable; urgency=low + + * New upstream release. + + -- Masayuki Hatta Sat, 8 Mar 2003 02:17:52 +0900 + +ptex-buildsupport (1.0.7+20021116-1) unstable; urgency=low + + * New upstream release. + * Bumped to Standards-Version: 3.5.8 + + -- Masayuki Hatta Sun, 1 Dec 2002 23:49:00 +0900 + +ptex-buildsupport (1.0.7+20020208-2) unstable; urgency=low + + * Updated to Standards-Version: 3.5.6. + + -- Masayuki Hatta Sat, 31 Aug 2002 17:16:38 +0900 + +ptex-buildsupport (1.0.7+20020208-1) unstable; urgency=low + + * New upstream release. + * Build-Depends -> Build-Depends-Indep. + + -- Masayuki Hatta Sat, 9 Feb 2002 15:19:16 +0900 + +ptex-buildsupport (1.0.7+20011202-1) unstable; urgency=low + + * New upstream release (based on tetex-bin 1.0.7+20011202-3) + * Updated strip-tetex-src. + + -- Masayuki Hatta Sun, 20 Jan 2002 16:16:20 +0900 + +ptex-buildsupport (1.0.7+20001218-2) unstable; urgency=low + + * The "Ain't That Good News" release. + * Initial Release for Debian Project. - closes: #94845 + + -- Masayuki Hatta Tue, 10 Apr 2001 20:12:05 +0900 + +ptex-buildsupport (1.0.7+20001218-1) unstable; urgency=low + + * Initial Release. + * Refined strip-tetex-src. + * Now installs strip-tetex-src in /usr/bin. + + -- Masayuki Hatta Sun, 8 Apr 2001 13:23:46 +0900 + +ptex-buildsupport (1.0.7+20001218-0.1) unstable; urgency=low + + * Test Release. + + -- Masayuki Hatta Tue, 3 Apr 2001 22:03:33 +0900 + +Local variables: +mode: debian-changelog +End: --- ptex-buildsupport-3.0.orig/debian/README.Debian +++ ptex-buildsupport-3.0/debian/README.Debian @@ -0,0 +1,13 @@ +ptex-buildsupport for Debian +------------------------------ + +A little shell script called strip-tetex-src is provided to strip down the +original teTeX source tarball. It's supposed to reduce the size of the +tarball by half. + +How to use: + +1) Get teTeX-src-*.tar.gz from CTAN or its mirror sites. Beta would be ok. +2) $ strip-tetex-src teTeX-src-* (omit '.tar.gz') + + -- Masayuki Hatta , Tue, 3 Apr 2001 22:03:33 +0900 --- ptex-buildsupport-3.0.orig/debian/copyright +++ ptex-buildsupport-3.0/debian/copyright @@ -0,0 +1,19 @@ +This package was debianized by Masayuki Hatta on +Tue, 3 Apr 2001 22:03:33 +0900. + +It was downloaded from ftp://ftp.dante.de/pub/tex/systems/unix/teTeX/current/distib + +Upstream Authors: Thomas Esser et al. + +Copyright: + +The teTeX distribution is free software; you can redistribute it +and/or modify it under the terms of the GNU General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +On Debian GNU/Linux systems, the complete text of the GNU General Public +License may be found in /usr/share/common-licenses/GPL + +The individual parts of this distribution often have their own +copyright. Please look into the respective files for their copyright. --- ptex-buildsupport-3.0.orig/debian/prerm +++ ptex-buildsupport-3.0/debian/prerm @@ -0,0 +1,42 @@ +#! /bin/sh +# prerm script for ptex-buildsupport +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade) +# install-info --quiet --remove /usr/info/elscreen.info.gz + rm -rf /usr/doc/ptex-buildsupport + ;; + deconfigure) + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- ptex-buildsupport-3.0.orig/debian/rules +++ ptex-buildsupport-3.0/debian/rules @@ -0,0 +1,91 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. +# Modified by Masayuki Hatta for ptex-buildsupport. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +############################## +# Things you should change when new upstream version is available. + +# teTeX source tarball +TARBALL=tetex-src-3.0-stripped.tar.gz + +############################## + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + # We have nothing to do. + + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + + # We have nothing to do. + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + + # We have nothing to do. + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/ptex-buildsupport. + install -m 644 $(TARBALL) $(CURDIR)/debian/ptex-buildsupport/usr/src + install -m 755 strip-tetex-src $(CURDIR)/debian/ptex-buildsupport/usr/bin + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir -i + dh_testroot -i +# dh_installdebconf + dh_installdocs -i +# dh_installexamples +# dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installman +# dh_installinfo + dh_installchangelogs -i + dh_link -i + dh_strip -i + dh_compress -i + dh_fixperms -i +# dh_makeshlibs + dh_installdeb -i +# dh_perl + dh_shlibdeps -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure