--- mgp-1.13a.orig/debian/control +++ mgp-1.13a/debian/control @@ -0,0 +1,19 @@ +Source: mgp +Section: x11 +Priority: optional +Maintainer: Debian QA Group +Build-Depends: debhelper (>= 5.0.0), quilt, cpp, devscripts, xutils-dev, flex, bison, pkg-config, x11proto-core-dev, x11proto-xext-dev, x11proto-render-dev, libice-dev, libxrender-dev, libx11-dev, libxt-dev, libsm-dev, libpng12-0-dev, libmng-dev, libjpeg62-dev, libxext-dev, libxft-dev, libfreetype6-dev, libxkbfile-dev, libxmu-dev, libxtst-dev, gawk | awk, sharutils, zlib1g-dev, libgif-dev, libtiff4-dev, libm17n-dev, libfontconfig1-dev, imlib11-dev +Standards-Version: 3.8.0 +Homepage: http://member.wide.ad.jp/wg/mgp/ + +Package: mgp +Architecture: any +Depends: ${shlibs:Depends}, perl | perl5 +Recommends: libjpeg-progs, pnmtopng, netpbm, sharutils +Suggests: emacsen-common, ghostscript, texlive, ttf-freefont, ttf-opensymbol, ttf-kochi-gothic, ttf-kochi-mincho, ttf-sazanami-gothic, ttf-sazanami-mincho, asiya24-vfont, gsfonts-x11 +Description: MagicPoint- an X11 based presentation tool + MagicPoint is an X11 based presentation tool. It is designed to make + simple presentations easy while to make complicated presentations + possible. Its presentation file (whose suffix is typically .mgp) is + just text so that you can create presentation files quickly with your + favorite editor (e.g. Emacs). --- mgp-1.13a.orig/debian/emacsen-startup +++ mgp-1.13a/debian/emacsen-startup @@ -0,0 +1,6 @@ +;; mgp-init.el +(setq load-path (cons "/usr/share/emacs/site-lisp/mgp/" load-path)) +(setq auto-mode-alist (cons '("\\.mgp?\\'" . mgp-mode) auto-mode-alist)) +(autoload 'mgp-mode "mgp-mode") +(setq mgp-options "-g 800x600") +(setq mgp-window-height 6) --- mgp-1.13a.orig/debian/changelog +++ mgp-1.13a/debian/changelog @@ -0,0 +1,502 @@ +mgp (1.13a-1) unstable; urgency=low + + * QA upload. + + Set maintainer to Debian QA Group + * New upstream release. (Closes: #478184). + * Change libungif4-dev build-dep to libgif-dev. + * Change gs suggests to ghostscript. + * Change tetex-bin suggests to texlive. + * Make distclean not ignore errors. + * Remove empty /usr/sbin dir. + * Move dh_makeshlibs before dh_installdeb. + * Change `pwd` to $(CURDIR) in rules. + * Remove language extension from scripts in /usr/bin. (Policy 10.4). + * Add Homepage field. + * Add watch file. + * Add quilt patch system. + + Move old inline patches to quilt where necessary. + * 04_tex2eps_bashism.diff: Fix bashism. (Closes: #486050). + + Thanks to Vincent Zweije for the patch. + * Bump Standards Version to 3.8.0. + + -- Barry deFreese Tue, 23 Dec 2008 23:23:03 -0500 + +mgp (1.11b-7.1) unstable; urgency=low + + * Non-maintainer upload. + * Test disabling imlib. + + -- Barry deFreese Fri, 12 Dec 2008 15:22:06 -0500 + +mgp (1.11b-7) unstable; urgency=low + + * rebuild for Xorg + closes: Bug#363114 + * enable freetype again + + -- Fumitoshi UKAI Tue, 25 Apr 2006 00:21:35 +0900 + +mgp (1.11b-6) unstable; urgency=low + + * debian/control: + update build-depends: replace xlibs-dev to + libx11-dev, libxext-dev, libxft-dev, libxkbfile-dev, libxmu-dev, + libxtst-dev, x-dev + closes: Bug#347137 + * drop freetype support, because we can't compile both freetype and + xft2 enabled. + * debian/control: + remove dependency to obsoleted packages + ttf-openoffice, ttf-xtt-wadalab-gothic, ttf-xtt-watanabe-mincho, + msttcorefonts, watanabe-vfont + add new fonts + ttf-freefont, ttf-opensymbol, ttf-sazanami-gothic, ttf-sazanami-mincho + closes: Bug#329062, Bug#335272 + * contrib/mgp2html.pl.in + apply patch to escape < to < + closes: Bug#243492 + * apply patch to explain -U option. + closes: Bug#328373 + * debian/compat: use compat level 5 + + -- Fumitoshi UKAI Thu, 12 Jan 2006 01:27:54 +0900 + +mgp (1.11b-5) unstable; urgency=low + + * failed to enable freetype + add missing build-depends: libttf-dev + closes: Bug#315406 + * fix freetype rendering problem + need cast for TT_Char_Index() for ttf version >= 1.4, not == 1.4 + closes: Bug#315412 + + -- Fumitoshi UKAI Thu, 23 Jun 2005 00:55:17 +0900 + +mgp (1.11b-4) unstable; urgency=high + + * apply Kenichi Handa's patch + * fix segfault when html generation mode (mgp -D) + * improve font handling + + -- Fumitoshi UKAI Wed, 1 Jun 2005 00:04:26 +0900 + +mgp (1.11b-3) unstable; urgency=high + + * fix broken m17n support + closes: Bug#308213 + * add missing build-depends: libfontconfig1-dev + + -- Fumitoshi UKAI Sun, 15 May 2005 23:53:37 +0900 + +mgp (1.11b-2) unstable; urgency=low + + * build with --with-m17n-lib + add build-depends: libm17n-dev + closes: Bug#302348 + + -- Fumitoshi UKAI Tue, 19 Apr 2005 01:48:06 +0900 + +mgp (1.11b-1) unstable; urgency=low + + * New upstream release + (bugfix) suppress flickering screen when ctrl key is pressed + + -- Fumitoshi UKAI Tue, 28 Sep 2004 02:17:49 +0900 + +mgp (1.11a-1) unstable; urgency=low + + * New upstream release + + -- Fumitoshi UKAI Sun, 19 Sep 2004 03:19:31 +0900 + +mgp (1.10a-4) unstable; urgency=medium + + * rebuild with new imlib1 (with libtiff4) + closes: Bug#262800, Bug#257831 + + -- Fumitoshi UKAI Mon, 2 Aug 2004 12:33:48 +0900 + +mgp (1.10a-3.1) unstable; urgency=low + + * Non-Maintainer Upload by Gunnar Wolf + * Fixed FTBFS due to changes in recent Freetype (Closes: #232794) + + -- Gunnar Wolf Fri, 5 Mar 2004 12:48:47 -0600 + +mgp (1.10a-3) unstable; urgency=low + + * rebuild with freetype + closes: Bug#198994 + + -- Fumitoshi UKAI Wed, 24 Sep 2003 22:46:03 +0900 + +mgp (1.10a-2) unstable; urgency=low + + * apply patch [mgp-users-jp 01341] + fix opaque in XFT2 + + -- Fumitoshi UKAI Fri, 5 Sep 2003 03:20:12 +0900 + +mgp (1.10a-1) unstable; urgency=low + + * New upstream release + see /usr/share/doc/mgp/changelog.gz + * support %tab 0. closes: Bug#186192 + + -- Fumitoshi UKAI Wed, 25 Jun 2003 01:21:59 +0900 + +mgp (1.09a.20030519-4) unstable; urgency=low + + * apply patch http://www.mew.org/ml/mgp-users-jp/msg01328.html + closes: Bug#196235 + + -- Fumitoshi UKAI Fri, 6 Jun 2003 01:32:18 +0900 + +mgp (1.09a.20030519-3) unstable; urgency=low + + * debian/control: build-depends: cpp + + -- Fumitoshi UKAI Sun, 1 Jun 2003 02:26:03 +0900 + +mgp (1.09a.20030519-2) unstable; urgency=low + + * debian/control: build-depends: imlib11-dev. closes: Bug#195494 + * image/rlelib.c: no need . closes: Bug#194084 + + -- Fumitoshi UKAI Sun, 1 Jun 2003 00:30:59 +0900 + +mgp (1.09a.20030519-1) unstable; urgency=low + + * New upstream release + * fix segfault when a14,k14 not found. closes: Bug#177862 + + -- Fumitoshi UKAI Mon, 19 May 2003 23:15:10 +0900 + +mgp (1.09a.20030314-3) unstable; urgency=low + + * minor fix for draw.c + [mgp-users-jp 01199] + + -- Fumitoshi UKAI Sun, 6 Apr 2003 02:50:48 +0900 + +mgp (1.09a.20030314-2) unstable; urgency=low + + * '%cont, font "foo"' didn't work. apply Andrew Bennetts's patch + closes: Bug#185591 + * update default.mgp + + -- Fumitoshi UKAI Fri, 21 Mar 2003 01:19:50 +0900 + +mgp (1.09a.20030314-1) unstable; urgency=low + + * New upstream release + * defoma-app purge mgp + + -- Fumitoshi UKAI Sat, 15 Mar 2003 00:37:57 +0900 + +mgp (1.09a.20030219-1) unstable; urgency=low + + * New upstream release + * use Xft2 + fontconfig, drop defoma + * disable vflib, freetype support, closes: Bug#52703, closes: Bug#67399 + * help message not in sync with behaviour (-E, -P), closes: Bug#161045 + * dumps with bad image type, closes: Bug#127110 + * mgp sees locales. maybe you needs %charset + see /usr/share/doc/mgp/README.lang. closes: Bug#119932 + * not only debian's mgp, but also upstream mgp is secure by default + closes: Bug#148198 + + -- Fumitoshi UKAI Thu, 20 Feb 2003 02:11:47 +0900 + +mgp (1.09a-8) unstable; urgency=low + + * build-depends: libpng3-dev, closes: Bug#165171 + * apply patch: print.c landspace + from Ian Goldberg + + -- Fumitoshi UKAI Mon, 15 Jul 2002 00:48:46 +0900 + +mgp (1.09a-7) unstable; urgency=low + + * sync with mgp-current + + -- Fumitoshi UKAI Tue, 25 Jun 2002 00:09:11 +0900 + +mgp (1.09a-6) unstable; urgency=low + + * debian/rules: remove bashism + * debian/default.mgp: add comments, closes: Bug#128787 + * contrib/mgp2html.pl.in: fix backslash handling, closes: Bug#150624 + * contrib/mgp2html.pl.in: fix cont handling, closes: Bug#150630 + * mgpembed.pl.in: fix newimage handling, closes: Bug#149670 + + -- Fumitoshi UKAI Sun, 23 Jun 2002 23:35:11 +0900 + +mgp (1.09a-5) unstable; urgency=low + + * defomanized, font configuration is generated as + /var/lib/defoma/mgp.d/font.mgp by defoma. see README.debian + closes: Bug#128122 + Unfortunately, some font packages, such as ttf-openoffice, msttcorefonts + don't have defoma support, so mgp.defoma script has urgly hack to + supports these for now. + * default.mgp now installed under /etc/mgp + + -- Fumitoshi UKAI Tue, 8 Jan 2002 22:41:23 +0900 + +mgp (1.09a-4) unstable; urgency=high + + * '-S' option should be default. To run command, use '-U' + closes: Bug#122404 + * [mgp-users-jp 00919] Some problems on `--enable-freetype-charset16' + + -- Fumitoshi UKAI Wed, 26 Dec 2001 02:55:06 +0900 + +mgp (1.09a-3) unstable; urgency=low + + * add --with-vfontcap, closes: Bug#121611 + * dont check by test -f "$with_vfontcap" + + -- Fumitoshi UKAI Thu, 29 Nov 2001 22:24:51 +0900 + +mgp (1.09a-2) unstable; urgency=low + + * README.lang: note about %charset, closes: Bug#109653 + * mgp.man: fix warnings, closes: Bug#118768 + mdoc warning: Empty input line #276 + mdoc warning: Unknown keyword `indent' in .Bl request (#281) + * mgp.man: SYNTAX is /usr/share/doc/mgp/SYNTAX.gz, closes: Bug#121102 + + -- Fumitoshi UKAI Tue, 27 Nov 2001 01:31:30 +0900 + +mgp (1.09a-1) unstable; urgency=low + + * new upstream version + + -- Fumitoshi UKAI Fri, 28 Sep 2001 00:22:19 +0900 + +mgp (1.08a.20010524-2) unstable; urgency=low + + * build with libungif4, closes: Bug#101671 + + -- Fumitoshi UKAI Sun, 24 Jun 2001 00:47:22 +0900 + +mgp (1.08a.20010524-1) unstable; urgency=low + + * officially mgp 1.08a released + + -- Fumitoshi UKAI Thu, 24 May 2001 21:45:14 +0900 + +mgp (1.08a-2) unstable; urgency=low + + * (mgp.man) mgp sometimes invokes ghostscript(1) to render postscript + image*s*, suggested by Martin Schulze + * (configure.in) check libVFlib2.so instead of libVFlib2.so.* + closes: Bug#97284 + * (debian/mgp-print6) add sample script to generate eps of 6 slides/page + using mgp,gs,netpbm,tgif + + -- Fumitoshi UKAI Mon, 14 May 2001 03:07:17 +0900 + +mgp (1.08a-1) unstable; urgency=low + + * new upstream version + + -- Fumitoshi UKAI Sat, 12 May 2001 01:01:39 +0900 + +mgp (1.07a.20010423-1) unstable; urgency=low + + * new upstream version + (release candidate 1.08a?) + + -- Fumitoshi UKAI Sat, 28 Apr 2001 02:00:13 +0900 + +mgp (1.07a.20010326-1) unstable; urgency=low + + * new upstream version + (release candidate 1.08a) + + -- Fumitoshi UKAI Tue, 27 Mar 2001 02:33:44 +0900 + +mgp (1.07a.20010212-3) unstable; urgency=low + + * fix build-depends: xlib6g-dev -> xlibs-dev + + -- Fumitoshi UKAI Mon, 19 Feb 2001 21:58:24 +0900 + +mgp (1.07a.20010212-2) unstable; urgency=low + + * add build-depends: xutils, closes: Bug#86495 + + -- Fumitoshi UKAI Mon, 19 Feb 2001 01:21:31 +0900 + +mgp (1.07a.20010212-1) unstable; urgency=low + + * new upstream snapshot + - support MNG for animation + * [upstream]setlocale(LC_CTYPE, "") instead of LC_ALL, closes: Bug#85273 + * add fonts suggestions, closes: Bug#79313, Bug#78291 + * fix mgpnet, closes: Bug#75690 + * (draw.c) epstoimage(): fflush() instead of fsync(-1), closes: Bug#69063 + * dont install Imakefile, Makefile, closes: Bug#62406 + * (draw.c) fix long line by truefont segfault, closes: Bug#52449 + + -- Fumitoshi UKAI Wed, 14 Feb 2001 15:34:33 +0900 + +mgp (1.07a-2) unstable; urgency=low + + * Fix Build-Depends: closes: Bug#69719 + * Change not to use JIS X0208 chars for page guide, plist.c:pg_draw(), + so no more needs xfonts-cjk, I hope. - closes: Bug#62151, Bug#65864 + * Don't install Makefile in examples, closes: Bug#69491 + * fix typo in sample/embed.mgp,embed-jp.mgp, closes: Bug#62407 + * fix typo in sample/gradtion.mgp, closes: Bug#62408 + * gif support already enabled, closes: Bug#52880 + + -- Fumitoshi UKAI Mon, 28 Aug 2000 22:39:40 +0900 + +mgp (1.07a-1) unstable; urgency=low + + * New upstream release + + -- Fumitoshi UKAI Mon, 13 Mar 2000 23:40:38 +0900 + +mgp (1.06a.19991206-2) frozen unstable; urgency=low + + * enable gif because it is considered as RC bug, closes: Bug#59476 + * fix DEFAULT_GSDEV + + -- Fumitoshi UKAI Sat, 4 Mar 2000 23:25:49 +0900 + +mgp (1.06a.19991206-1) unstable; urgency=low + + * new upstream snapshot release + * fix assertion failed on window resize, closes: Bug#51251 + * fix switching off jotting mode using mouse2 adds a dot, closes: Bug#51502 + * fix segfault by `%xfonts "times" "iso8859-2"' + + -- Fumitoshi UKAI Tue, 7 Dec 1999 00:25:35 +0900 + +mgp (1.06a.19991129-1) unstable; urgency=low + + * new upstream snapshot release + + -- Fumitoshi UKAI Tue, 30 Nov 1999 00:13:29 +0900 + +mgp (1.06a-3) unstable; urgency=low + + * use $(DEB_HOST_GNU_TYPE) for configure + * fix build error with latest version of freetype2-dev + * back default vfont to minsl, because watanabe-vfont already available + + -- Fumitoshi UKAI Mon, 22 Nov 1999 02:08:29 +0900 + +mgp (1.06a-2) unstable; urgency=low + + * change default vfont from minsl (watanabe-vfont) to gothsl (asiya24-vfont) + because watanabe-vfont is not available now. + closes: Bug#46124, #39443, #43475 + * /usr/doc/mgp -> /usr/share/doc/mgp + + -- Fumitoshi UKAI Tue, 28 Sep 1999 22:43:41 +0900 + +mgp (1.06a-1) unstable; urgency=low + + * new upstream release + * --enable-freetype-charset16 + * README.lang; closes: Bug#40384. + + -- Fumitoshi UKAI Thu, 5 Aug 1999 14:53:04 +0000 + +mgp (1.05a.990712-1) unstable; urgency=low + + * closes: Bug#31615 + * depends perl5, closes: Bug#41464. + * new upstream version. closes: Bug#40014. + + -- Fumitoshi UKAI Sun, 18 Jul 1999 13:32:49 +0900 + +mgp (1.04a-5) unstable; urgency=low + + * (font.c) do nothing in vfc_setfont() when mgp -x vflib + fixed bug#39443. + + -- Fumitoshi UKAI Mon, 14 Jun 1999 14:45:40 +0900 + +mgp (1.04a-4) unstable; urgency=low + + * build with vflib again, closes Bug#39327 + * change FREETYPEFONTDIR="/usr/share/fonts/trutype/", + and use /usr/bin/gunzip instead of /usr/contrib/bin/gunzip, see Bug#39328 + * generate jpeg instead of gif in case of generate html pages + and Recommends: imagemagick + * install mime entry for application/x-magicpoint, closes Bug#37884 + * use locale, closes Bug#35722 + + -- Fumitoshi UKAI Fri, 11 Jun 1999 03:15:36 +0900 + +mgp (1.04a-3) unstable; urgency=low + + * build with --disable-vflib + * don't compress example files, close Bug/JP#555 + + -- Fumitoshi UKAI Thu, 8 Oct 1998 15:38:07 +0900 + +mgp (1.04a-2) unstable; urgency=low + + * built in slink environments (w/ freetype2), close Bug#JP/542 + + -- Fumitoshi UKAI Wed, 9 Sep 1998 20:03:53 +0900 + +mgp (1.04a-1) unstable; urgency=low + + * new upstream version + + -- Fumitoshi UKAI Mon, 7 Sep 1998 19:14:25 +0900 + +mgp (1.03a-1) unstable; urgency=low + + * recompiled with libc6 + + -- Fumitoshi UKAI Wed, 8 Apr 1998 12:18:33 +0900 + +mgp (1.03a-0bo1) unstable; urgency=low + + * new upstream version + + -- Fumitoshi UKAI Wed, 8 Apr 1998 12:10:23 +0900 + +mgp (1.02a-1.2.0.1) unstable; urgency=low + + * recompiled with libc6 + + -- Fumitoshi UKAI Fri, 6 Feb 1998 16:30:28 +0900 + +mgp (1.02a-1.1.3.1) unstable; urgency=low + + * use CVS + + -- Fumitoshi UKAI Fri, 6 Feb 1998 16:21:32 +0900 + +mgp (1.02a-1.1.3) unstable; urgency=low + + * new upstream revision + allow libVFlib.so + Makefile shell script fix + * apply [mgp-users-jp 00093] + + -- Fumitoshi UKAI Wed, 28 Jan 1998 18:22:45 +0900 + +mgp (1.00a-1.2) unstable; urgency=low + + * compiled with libc6 + + -- Fumitoshi UKAI Wed, 24 Dec 1997 18:06:01 +0900 + +mgp (1.00a-1) unstable; urgency=low + + * Initial Release. + + -- Fumitoshi UKAI Wed, 24 Dec 1997 16:17:59 +0900 + + --- mgp-1.13a.orig/debian/watch +++ mgp-1.13a/debian/watch @@ -0,0 +1,3 @@ +version=3 + +ftp://sh.wide.ad.jp/WIDE/free-ware/mgp/magicpoint-([\d.]+[a-z])\.tar\.gz --- mgp-1.13a.orig/debian/mgp-print6 +++ mgp-1.13a/debian/mgp-print6 @@ -0,0 +1,128 @@ +#! /usr/bin/perl + +# Copyright (C) 2000, 2001 Kaoru Maeda. +# All rights reserved. + +# This file can be freely distributed +# under the same condition as Perl. + +$argc = 0; +$opt_resolution = "800x600"; +$opt_opts = ""; +while ($argc <= $#ARGV) { + if ($ARGV[$argc] eq "-h" || $ARGV[$argc] eq "--help") { + "$0 [-g WIDTHxHEIGHT] [-o mgp-option] mgp-file\n"; + exit; + } elsif ($ARGV[$argc] eq "-g") { + if (($argc < $#ARGV) && ($ARGV[$argc+1] !~ /^-/)) { + $opt_resolution = $ARGV[++$argc]; + } + } elsif ($ARGV[$argc] eq "-o") { + if (($argc < $#ARGV)) { + $opt_opts = $ARGV[++$argc]; + } + } else { + $stem = $ARGV[$argc]; + $stem =~ s/\.mgp?//; + } + $argc++; +} + +$tmpdir = "PRINT6"; + +@PAGES = glob("$tmpdir/mgp00???.eps"); + +if (!-d $tmpdir || !@PAGES) { + + if (-d $tmpdir) { + system("rm -rf $tmpdir"); + } + mkdir $tmpdir, 0777; + + system("mgp -D $tmpdir -E png -o -g $opt_resolution+0+0 -X ppmraw+ $opt_opts $stem.mgp"); + + @PNGS = glob("$tmpdir/mgp00???.png"); + for $png (@PNGS) { + ($eps = $png) =~ s/\.png/.eps/; + print STDERR "$png -> $eps\n"; + system("pngtopnm $png | ppmtopgm | perl -pe 'tr/\\372/\\377/' | pnmtops -dpi 600 -scale 0.6 -noturn > $eps"); + } + + @PAGES = glob("$tmpdir/mgp00???.eps"); +} + +$pages = 0; +$o = 0; +@LOC = ('48,128,509,474', + '544,128,1005,474', + '48,576,509,922', + '544,576,1005,922', + '48,1024,509,1370', + '544,1024,1005,1370', + ); + +while (@PAGES) { + @P = splice(@PAGES, 0, scalar @LOC); + $pages++; + push(@out, qq[page($pages,"",1,'').\n]); + @loc = @LOC; + for $file (@P) { + $mtime = (stat $file)[9]; + $mtime = localtime($mtime); + $loc = shift(@loc); + $x = <$stem-6.obj"); + print OUT @out; + close OUT; + + system("tgif -print -ps $stem-6.obj"); + unlink("$stem-6.obj"); +__END__ --- mgp-1.13a.orig/debian/compat +++ mgp-1.13a/debian/compat @@ -0,0 +1 @@ +5 --- mgp-1.13a.orig/debian/postrm +++ mgp-1.13a/debian/postrm @@ -0,0 +1,37 @@ +#! /bin/sh +# postrm script for mgp +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see /usr/share/doc/packaging-manual/ + +case "$1" in + purge) + test -f /etc/defoma/mgp.subst-rule && rm -f /etc/defoma/mgp.subst-rule + ;; + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + + --- mgp-1.13a.orig/debian/default.mgp +++ mgp-1.13a/debian/default.mgp @@ -0,0 +1,21 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% +%% This default.mgp is "Xft2" oriented. +%deffont "standard" xfont "serif" +%deffont "thick" xfont "sans-serif" +%deffont "typewriter" xfont "monospace" +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% +%% Default settings per each line numbers. +%% +%default 1 area 90 90, leftfill, size 2, fore "white", back "black", font "thick" +%default 2 size 7, vgap 10, prefix " " +%default 3 size 2, bar "gray70", vgap 10 +%default 4 size 5, fore "white", vgap 30, prefix " ", font "standard" +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% +%% Default settings that are applied to TAB-indented lines. +%% +%tab 1 size 5, vgap 40, prefix " ", icon box "green" 50 +%tab 2 size 4, vgap 40, prefix " ", icon arc "yellow" 50 +%tab 3 size 3, vgap 40, prefix " ", icon delta3 "white" 40 --- mgp-1.13a.orig/debian/mime +++ mgp-1.13a/debian/mime @@ -0,0 +1 @@ +application/x-magicpoint; mgp -S %s; test=test "$DISPLAY"; description=MagicPoint presentation; nametemplate=%s.mgp --- mgp-1.13a.orig/debian/postinst +++ mgp-1.13a/debian/postinst @@ -0,0 +1,50 @@ +#! /bin/sh +# postinst script for mgp +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/share/doc/packaging-manual/ +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure) + if dpkg --compare-versions "$2" le-nl 1.09a.20030314-1 && \ + test -x /usr/bin/defoma-app; then + defoma-app purge mgp || true + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst 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 + + --- mgp-1.13a.orig/debian/dirs +++ mgp-1.13a/debian/dirs @@ -0,0 +1,3 @@ +usr/bin +usr/share/doc/mgp/examples +usr/share/emacs/site-lisp/mgp --- mgp-1.13a.orig/debian/copyright +++ mgp-1.13a/debian/copyright @@ -0,0 +1,32 @@ +This package was debianized by Fumitoshi UKAI ukai@debian.or.jp on +Wed, 24 Dec 1997 16:17:59 +0900. + +It was downloaded from http://member.wide.ad.jp/wg/mgp/ +(snapshot version ftp://sh.wide.ad.jp/WIDE/free-ware/mgp-snap/) + +Copyright: +Copyright (C) 1997 and 1998 WIDE Project. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. Neither the name of the project nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. --- mgp-1.13a.orig/debian/rules +++ mgp-1.13a/debian/rules @@ -0,0 +1,130 @@ +#!/usr/bin/make -f +# Made with the aid of debmake, by Christoph Lameter, +# based on the sample debian/rules file for GNU hello by Ian Jackson. + +DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +CFLAGS = -Wall +INSTALLFLAGS = -p +INSTPGMFLAGS = +debug= +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) +CFLAGS += -g +debug=--enable-debug +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) +INSTPGMFLAGS += -s +endif + +FONTDIR=/usr/share/fonts/truetype + +package=mgp + +build: build-stamp +build-stamp: + dh_testdir + + $(MAKE) -f /usr/share/quilt/quilt.make patch + + ./configure --prefix=/usr $(debug) --enable-locale --enable-freetype --enable-freetype-charset16 --enable-xft2 --disable-vflib --enable-gif --with-m17n-lib $(DEB_HOST_GNU_TYPE) + #./configure --prefix=/usr $(debug) --enable-locale --disable-freetype --enable-xft2 --disable-vflib --enable-gif --with-m17n-lib $(DEB_HOST_GNU_TYPE) + xmkmf + make Makefiles + # XXX: it take too much time to comile unimap.c with -O + make CFLAGS="$(CFLAGS) -DFREETYPEFONTDIR=\\\"$(FONTDIR)\\\"" \ + LIBDIR=/etc \ + ctlwords.h unimap.o + make CFLAGS="-O2 $(CFLAGS) -DFREETYPEFONTDIR=\\\"$(FONTDIR)\\\"" \ + LIBDIR=/etc + touch build-stamp + +clean: + dh_testdir + dh_testroot + -rm -f build-stamp install-stamp + [ ! -f Makefile ] || make distclean + -rm -f `find . -name "*~"` + -rm -rf debian/mgp debian/files* core debian/substvars + -rm -f Makefile Imakefile *._man + + $(MAKE) -f /usr/share/quilt/quilt.make unpatch + + dh_clean + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + make install DESTDIR=$(CURDIR)/debian/mgp prefix=$(CURDIR)/debian/mgp/usr \ + INSTPGMFLAGS="$(INSTPGMFLAGS)" INSTALLFLAGS="$(INSTALLFLAGS)" \ + LIBDIR=/etc + make install.man DESTDIR=$(CURDIR)/debian/mgp prefix=$(CURDIR)/debian/mgp/usr \ + INSTALLFLAGS="$(INSTALLFLAGS)" \ + LIBDIR=/etc + # contrib + install -d $(CURDIR)/debian/mgp/usr/share/doc/mgp/contrib/mgp-el + install -m 755 contrib/eqn2eps.sh \ + contrib/mgp2html.pl contrib/mgp2latex.pl \ + contrib/tex2eps.sh \ + $(CURDIR)/debian/mgp/usr/bin/ + install -m 644 contrib/mgp-el/README \ + $(CURDIR)/debian/mgp/usr/share/doc/mgp/contrib/mgp-el + install -m 644 contrib/mgp-el/mgp.sty \ + $(CURDIR)/debian/mgp/usr/share/doc/mgp/contrib/mgp-el + install -m 644 contrib/mgp-el/sample.tex \ + $(CURDIR)/debian/mgp/usr/share/doc/mgp/contrib/mgp-el + install -m 644 contrib/mgp-mode.el contrib/mgp-el/mgp.el \ + $(CURDIR)/debian/mgp/usr/share/emacs/site-lisp/mgp + -rm $(CURDIR)/debian/mgp/etc/mgp/* + cp debian/default.mgp $(CURDIR)/debian/mgp/etc/mgp/default.mgp + + #Rename shell scripts to remove .sh extension. + mv $(CURDIR)/debian/mgp/usr/bin/eqn2eps.sh \ + $(CURDIR)/debian/mgp/usr/bin/eqn2eps + mv $(CURDIR)/debian/mgp/usr/bin/tex2eps.sh \ + $(CURDIR)/debian/mgp/usr/bin/tex2eps + mv $(CURDIR)/debian/mgp/usr/bin/mgp2html.pl \ + $(CURDIR)/debian/mgp/usr/bin/mgp2html + mv $(CURDIR)/debian/mgp/usr/bin/mgp2latex.pl \ + $(CURDIR)/debian/mgp/usr/bin/mgp2latex + + touch install-stamp + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install +# dh_testversion + dh_testdir + dh_testroot + dh_installdocs COPYRIGHT COPYRIGHT.jp FAQ \ + README README.fonts README.fonts.jp README.lang \ + SYNTAX TODO.jp USAGE USAGE.jp + dh_installexamples `find sample -type f ! -name '*akefile*' ! -name .cvsignore -print` debian/mgp-print6 + dh_installmenu + dh_installmime + dh_installcron +# dh_installman + dh_installinit + dh_installemacsen + dh_installchangelogs RELNOTES +# dh_movefiles + dh_strip + dh_compress --exclude=examples + dh_fixperms +# dh_suidregister + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary --- mgp-1.13a.orig/debian/TODO +++ mgp-1.13a/debian/TODO @@ -0,0 +1,5 @@ +TODO lists + +fix bugs + - upstream developments + --- mgp-1.13a.orig/debian/README.debian +++ mgp-1.13a/debian/README.debian @@ -0,0 +1,25 @@ +mgp for DEBIAN +---------------------- + +MagicPoint -- an X11 based presensaion tool + +This is alpha release of MagicPoint. We're planing to add version +control mechanism of .mgp file for forward compatibly. But currently, +such a mechanism is missing. Please use this package at your own risk. + +MagicPoint is an X11 based presentation tool. It is designed to make +simple presentations easy while to make complicated presentations +possible. Its presentation file (whose suffix is typically .mgp) is +just text so that you can create presentation files quickly with your +favorite editor (e.g. Emacs). + +MagicPoint is completely free but absolutely no warranty. For more +information, please refer to COPYRIGHT or COPYRIGHT.jp. + +Needless to say, you must install necessary font to render your (or +sample) mgp slides. + +Note that some directives such as %filter, %system is disabled +by default. If you want to use them, use -U (unsecure) option. + +Fumitoshi UKAI , Wed, 24 Dec 1997 16:17:59 +0900 --- mgp-1.13a.orig/debian/patches/01_mgpnet_in.diff +++ mgp-1.13a/debian/patches/01_mgpnet_in.diff @@ -0,0 +1,149 @@ +Index: magicpoint-1.13a/contrib/mgpnet.in +=================================================================== +--- magicpoint-1.13a.orig/contrib/mgpnet.in 2008-12-24 10:52:03.000000000 -0500 ++++ magicpoint-1.13a/contrib/mgpnet.in 2008-12-24 11:00:47.000000000 -0500 +@@ -32,7 +32,7 @@ + + # configurations + $tmpdir = '/tmp'; +-$httpdatestr = "date '+\%a, \%d \%b \%Y \%H:\%M:\%S \%Z'"; ++$httpdatestr = "env LC_ALL=C date '+\%a, \%d \%b \%Y \%H:\%M:\%S \%Z'"; + $seltimeout = 1; + $refreshtimeout = 10; + $debug = 0; +@@ -53,6 +53,7 @@ + } while ($hostname =~ /^127\./); + close(IN); + }; ++ $hostname =~ s/^addr://; # for GNU/Linux, by ukai + print "http://$hostname:$port/\n"; + exit 0; + } +@@ -150,19 +151,19 @@ + vec($rin, fileno(S), 1) = 1; + vec($win, fileno(S), 1) = 1; + $ewin = $rin | $win; +- print STDERR "waiting for connetion...\n" if ($debug); ++ print STDERR "waiting for connection...\n" if ($debug); + ($nfound, $timeleft) = + select($rout = $rin, $wout = $win, $eout = $ein, $seltimeout); + next if ($nfound <= 0); + if (vec($rout, fileno(S), 1)) { +- print STDERR "accepting connetion...\n" if ($debug); ++ print STDERR "accepting connection...\n" if ($debug); + accept(NS, S) || do { + print STDERR "server: accept fail\n" if ($debug); + next; + }; + + $acceptstat++; +- print STDERR "connetion accepted...\n" if ($debug); ++ print STDERR "connection accepted...\n" if ($debug); + + $pid = fork; + if ($pid < 0) { +@@ -185,7 +186,7 @@ + } + } + print STDERR "leaving MagicPoint Netserver...\n"; +-print STDERR "accepted $acceptstat connetions so far.\n"; ++print STDERR "accepted $acceptstat connections so far.\n"; + close(NS); + close(S); + unlink($imagefile); +@@ -214,7 +215,7 @@ + $imgtmp = &tmpname; + $errout = ($debug ? '' : '2>&-'); + system "xwintoppm -silent -name MagicPoint | ". +- "ppmquant 256 $errout | ppmtogif $errout > $imgtmp"; ++ "ppmquant 256 $errout | ppmtopng $errout > $imgtmp"; + if (-z $imgtmp) { + unlink $imgtmp; + $checkcontent = ''; +@@ -245,10 +246,10 @@ + local($httpreq, $httpmethod, $httppath, $httpver, $httphost); + local($httpagent); + local($imgplace, $imgwidth, $imgheight, $buf, $imglen); +- local($cthtml, $ctgif); ++ local($cthtml, $ctpng); + + $cthtml = ($usecharset ? 'text/html; charset=us-ascii' : 'text/html'); +- $ctgif = 'image/gif'; ++ $ctgif = 'image/png'; + + $httpreq = ; + print STDERR 'HTTP in> ' . $httpreq if ($debug); +@@ -256,7 +257,7 @@ + $httpmethod = $httppath = $httpver = ''; + ($httpmethod, $httppath, $httpver) = split(/\s+/, $httpreq); + $httppath =~ s/http:\/\/[^:\/]+(:\d+)\//\//; +- if ($httpver eq '' || $httpver eq 'HTTP/1.0') { ++ if ($httpver eq '' || $httpver =~ m'HTTP/1.0') { + ; # ok + } else { + &httpheader(501, $cthtml) if ($httpver); +@@ -318,7 +319,7 @@ + print <MagicPoint Netserver + +-\"presentation
+ +
normal +@@ -340,7 +341,7 @@ +
+ + EOF +- } elsif ($httppath eq '/presentation.gif') { ++ } elsif ($httppath eq '/presentation.png') { + open(IMG, "< $imagefile") || do { + $checkcontent = ''; # invalidate + &httpheader(404, $cthtml) if ($httpver); +@@ -350,13 +351,13 @@ + File Not found +

File Not found

+ The requested URL $httppath was not found on this server.

+-Looks like a mitake in configuration. ++Looks like a mistake in configuration. + Contact the administrator.

+ + EOF + return; + }; +- &httpheader(200, $ctgif) if ($httpver); ++ &httpheader(200, $ctpng) if ($httpver); + return if ($httpmethod ne 'GET'); + + while (0 < ($imglen = sysread(IMG, $buf, 4096))) { +@@ -415,7 +416,7 @@ + 'XXX4', 'SO_REUSEPORT', 'XXX5', 'SOCK_STREAM', 'XXX6', 'WNOHANG', + ); + $tmpnam = &tmpname; +- open(CPP, "| @CPP@ >$tmpnam") || return; ++ open(CPP, "| @CPP@ - >$tmpnam") || return; + print CPP "#include \n"; + print CPP "#include \n"; + foreach $tmp (keys %varnames) { +@@ -439,12 +440,19 @@ + $havesinlen = 0; $sockaddr = 'S n a4 x8'; + } + ++ use Socket; + foreach $i (keys %varnames) { + if (@tmp2 = grep($_ =~ /^$i/, @tmp1)) { + $tmp = (split(/\s+/, @tmp2[0]))[1]; + $tmp = oct($tmp) if ($tmp =~ /^0/); +- next if ($tmp !~ /^[0-9]+$/); +- eval "\$$varnames{$i} = \$tmp;"; ++ if ($tmp =~ /^[0-9]+$/) { ++ eval "\$$varnames{$i} = \$tmp;"; ++ } else { ++ # some constant defined by enum, so we can not ++ # always use cpp as above. I believe use Socket ++ # is more reliable in these days. ++ eval "\$$varnames{$i} = &$varnames{$i};"; ++ } + } + } + } --- mgp-1.13a.orig/debian/patches/series +++ mgp-1.13a/debian/patches/series @@ -0,0 +1,4 @@ +01_mgp2html.diff +01_mgpnet_in.diff +03_README_lang.diff +04_tex2ps_bashism.diff --- mgp-1.13a.orig/debian/patches/01_mgp2html.diff +++ mgp-1.13a/debian/patches/01_mgp2html.diff @@ -0,0 +1,52 @@ +Index: magicpoint-1.13a/contrib/mgp2html.pl.in +=================================================================== +--- magicpoint-1.13a.orig/contrib/mgp2html.pl.in 2008-12-24 10:44:59.000000000 -0500 ++++ magicpoint-1.13a/contrib/mgp2html.pl.in 2008-12-24 10:50:05.000000000 -0500 +@@ -79,10 +79,18 @@ + + &prologue; + while (<>) { +- s/\n$//; ++ s/[\n\r]*$//; # trim CR and LF ++ s/; # concatenate next line ++ s/[\n\r]*$//; # trim CR and LF ++ } ++ + if ($_ eq '' || $_ =~ /^[^%]/) { + $line++; + $cont = 0 if ($cont == 2); +@@ -103,6 +111,8 @@ + next; + } + ++ $cont = 0 if ($cont == 2); ++ $cont = 2 if ($cont == 1); + &cmds($_); + } + &pageepilogue; +@@ -152,14 +162,15 @@ + if (!$doimage) { + # don't use images + } elsif (scalar(@dir) == 2 || scalar(@dir) == 3) { +- print "\"$dir[1]\"\n"; ++ &output("\"$dir[1]\"\n"); + } elsif (scalar(@dir) == 4) { + # interpretation wrong +- print "\"$dir[1]\"\n"; ++ &output("\"$dir[1]\"\n"); + } elsif (scalar(@dir) >= 5) { + # interpretation wrong +- print "\"$dir[1]\"\n"; ++ &output("\"$dir[1]\"\n"); + } ++ $endline = "
\n"; + } elsif ($dir[0] eq 'nodefault') { + $nodefault++; + } elsif ($dir[0] =~ /^(left|leftfill|right|center)$/) { --- mgp-1.13a.orig/debian/patches/03_README_lang.diff +++ mgp-1.13a/debian/patches/03_README_lang.diff @@ -0,0 +1,14 @@ +Index: magicpoint-1.13a/README.lang +=================================================================== +--- magicpoint-1.13a.orig/README.lang 2008-12-24 11:12:12.000000000 -0500 ++++ magicpoint-1.13a/README.lang 2008-12-24 11:12:48.000000000 -0500 +@@ -16,6 +16,9 @@ + + %charset "iso8859-1" + ++Note that this directive can be used after %page directive, that is, ++you can't use %charset directive in preamble. ++ + In the future, we will add more encodings to charset directive, like + "iso2022-jp", or "euc-jp" + --- mgp-1.13a.orig/debian/patches/04_tex2ps_bashism.diff +++ mgp-1.13a/debian/patches/04_tex2ps_bashism.diff @@ -0,0 +1,13 @@ +Index: magicpoint-1.13a/contrib/tex2eps.sh +=================================================================== +--- magicpoint-1.13a.orig/contrib/tex2eps.sh 2008-12-24 11:59:36.000000000 -0500 ++++ magicpoint-1.13a/contrib/tex2eps.sh 2008-12-24 12:00:07.000000000 -0500 +@@ -13,7 +13,7 @@ + # temporary filename (without .eps suffix) + tmp=$1 + +-echo '\nopagenumbers' > $tmp.tex ++printf '\\nopagenumbers\n' > $tmp.tex + cat >> $tmp.tex + echo '\end' >> $tmp.tex + tex $tmp.tex > /dev/null 2> /dev/null