Date: Sun, 6 Feb 2000 18:20:41 +0900 (JST) From: sanpei@sanpei.org To: FreeBSD-gnats-submit@freebsd.org Subject: ports/16514: new port: print/poster (resize a postscript image to print on larger media and/or multiple sheets) Message-ID: <200002060920.SAA19617@lavender.yy.cs.keio.ac.jp>
next in thread | raw e-mail | index | archive | help
>Number: 16514 >Category: ports >Synopsis: new port: print/poster (resize a postscript image to print on larger media and/or multiple sheets) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Feb 6 01:40:03 PST 2000 >Closed-Date: >Last-Modified: >Originator: MIHIRA Yoshiro >Release: FreeBSD 4.0-CURRENT i386 >Organization: Yokohama, Japan >Environment: >Description: Hi. I ported print/poster: resize a postscript image to print on larger media and/or multiple sheets. % poster -p A3 -o foo.ps hoge.ps Thank you. >How-To-Repeat: >Fix: #!/bin/sh # This is a shell archive (produced by GNU sharutils 4.2). # To extract the files from this archive, save it to some FILE, remove # everything before the `!/bin/sh' line above, then type `sh FILE'. # # Made on 2000-02-06 18:16 JST by <sanpei@lavender.yy.cs.keio.ac.jp>. # Source directory was `/tmp/q/ports'. # # Existing files will *not* be overwritten unless `-c' is specified. # # This shar contains: # length mode name # ------ ---------- ------------------------------------------ # 74 -rw-r--r-- print/poster/pkg/COMMENT # 433 -rw-r--r-- print/poster/pkg/DESCR # 11 -rw-r--r-- print/poster/pkg/PLIST # 521 -rw-r--r-- print/poster/Makefile # 55 -rw-r--r-- print/poster/files/md5 # 311 -rw-r--r-- print/poster/patches/patch-aa # save_IFS="${IFS}" IFS="${IFS}:" gettext_dir=FAILED locale_dir=FAILED first_param="$1" for dir in $PATH do if test "$gettext_dir" = FAILED && test -f $dir/gettext \ && ($dir/gettext --version >/dev/null 2>&1) then set `$dir/gettext --version 2>&1` if test "$3" = GNU then gettext_dir=$dir fi fi if test "$locale_dir" = FAILED && test -f $dir/shar \ && ($dir/shar --print-text-domain-dir >/dev/null 2>&1) then locale_dir=`$dir/shar --print-text-domain-dir` fi done IFS="$save_IFS" if test "$locale_dir" = FAILED || test "$gettext_dir" = FAILED then echo=echo else TEXTDOMAINDIR=$locale_dir export TEXTDOMAINDIR TEXTDOMAIN=sharutils export TEXTDOMAIN echo="$gettext_dir/gettext -s" fi touch -am 1231235999 $$.touch >/dev/null 2>&1 if test ! -f 1231235999 && test -f $$.touch; then shar_touch=touch else shar_touch=: echo $echo 'WARNING: not restoring timestamps. Consider getting and' $echo "installing GNU \`touch', distributed in GNU File Utilities..." echo fi rm -f 1231235999 $$.touch # if mkdir _sh19497; then $echo 'x -' 'creating lock directory' else $echo 'failed to create lock directory' exit 1 fi # ============= print/poster/pkg/COMMENT ============== if test ! -d 'print'; then $echo 'x -' 'creating directory' 'print' mkdir 'print' fi if test ! -d 'print/poster'; then $echo 'x -' 'creating directory' 'print/poster' mkdir 'print/poster' fi if test ! -d 'print/poster/pkg'; then $echo 'x -' 'creating directory' 'print/poster/pkg' mkdir 'print/poster/pkg' fi if test -f 'print/poster/pkg/COMMENT' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'print/poster/pkg/COMMENT' '(file already exists)' else $echo 'x -' extracting 'print/poster/pkg/COMMENT' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'print/poster/pkg/COMMENT' && resize a postscript image to print on larger media and/or multiple sheets SHAR_EOF $shar_touch -am 01161102100 'print/poster/pkg/COMMENT' && chmod 0644 'print/poster/pkg/COMMENT' || $echo 'restore of' 'print/poster/pkg/COMMENT' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'print/poster/pkg/COMMENT:' 'MD5 check failed' 86b86faf96ed48ae95a44972fa783dab print/poster/pkg/COMMENT SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'print/poster/pkg/COMMENT'`" test 74 -eq "$shar_count" || $echo 'print/poster/pkg/COMMENT:' 'original size' '74,' 'current size' "$shar_count!" fi fi # ============= print/poster/pkg/DESCR ============== if test -f 'print/poster/pkg/DESCR' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'print/poster/pkg/DESCR' '(file already exists)' else $echo 'x -' extracting 'print/poster/pkg/DESCR' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'print/poster/pkg/DESCR' && Here you have the new release of `poster', to scale postscript images to a larger size, and print them on larger media and/or tile them to print on multiple sheets. With respect to the earlier release: - support is added for foreign (Non European A*) media sizes. - options for scaling became more flexible - original restrictions on white margins in your drawing are removed. For a complete explanation see the accompanying manual. SHAR_EOF $shar_touch -am 01161102100 'print/poster/pkg/DESCR' && chmod 0644 'print/poster/pkg/DESCR' || $echo 'restore of' 'print/poster/pkg/DESCR' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'print/poster/pkg/DESCR:' 'MD5 check failed' 478e3086e742e50dc995d5b9241bfc55 print/poster/pkg/DESCR SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'print/poster/pkg/DESCR'`" test 433 -eq "$shar_count" || $echo 'print/poster/pkg/DESCR:' 'original size' '433,' 'current size' "$shar_count!" fi fi # ============= print/poster/pkg/PLIST ============== if test -f 'print/poster/pkg/PLIST' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'print/poster/pkg/PLIST' '(file already exists)' else $echo 'x -' extracting 'print/poster/pkg/PLIST' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'print/poster/pkg/PLIST' && bin/poster SHAR_EOF $shar_touch -am 01161055100 'print/poster/pkg/PLIST' && chmod 0644 'print/poster/pkg/PLIST' || $echo 'restore of' 'print/poster/pkg/PLIST' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'print/poster/pkg/PLIST:' 'MD5 check failed' f0a3fa463f0b341f8e06293326106688 print/poster/pkg/PLIST SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'print/poster/pkg/PLIST'`" test 11 -eq "$shar_count" || $echo 'print/poster/pkg/PLIST:' 'original size' '11,' 'current size' "$shar_count!" fi fi # ============= print/poster/Makefile ============== if test -f 'print/poster/Makefile' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'print/poster/Makefile' '(file already exists)' else $echo 'x -' extracting 'print/poster/Makefile' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'print/poster/Makefile' && # New ports collection makefile for: poster # Version required: 1.0 # Date created: 15 January 2000 # Whom: Yoshiro MIHIRA <sanpei@sanpei.org> # # $FreeBSD$ # X DISTNAME= poster PKGNAME= poster-1.0 CATEGORIES= print MASTER_SITES= ftp://ftp.ics.ele.tue.nl/pub/users/jos/poster/ X MAINTAINER= sanpei@sanpei.org X ALL_TARGET= poster NO_WRKSUBDIR= yes X MAN1= poster.1 X do-install: X @${INSTALL_PROGRAM} ${WRKSRC}/${DISTNAME} ${PREFIX}/bin X @${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.1 ${PREFIX}/man/man1/ X X.include <bsd.port.mk> SHAR_EOF $shar_touch -am 01161101100 'print/poster/Makefile' && chmod 0644 'print/poster/Makefile' || $echo 'restore of' 'print/poster/Makefile' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'print/poster/Makefile:' 'MD5 check failed' 45b46b2eda355e5d038d4d695dbaa127 print/poster/Makefile SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'print/poster/Makefile'`" test 521 -eq "$shar_count" || $echo 'print/poster/Makefile:' 'original size' '521,' 'current size' "$shar_count!" fi fi # ============= print/poster/files/md5 ============== if test ! -d 'print/poster/files'; then $echo 'x -' 'creating directory' 'print/poster/files' mkdir 'print/poster/files' fi if test -f 'print/poster/files/md5' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'print/poster/files/md5' '(file already exists)' else $echo 'x -' extracting 'print/poster/files/md5' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'print/poster/files/md5' && MD5 (poster.tar.gz) = d00b3b1c7c239b2eb205637f8a5a0868 SHAR_EOF $shar_touch -am 01161045100 'print/poster/files/md5' && chmod 0644 'print/poster/files/md5' || $echo 'restore of' 'print/poster/files/md5' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'print/poster/files/md5:' 'MD5 check failed' 5a12ce8373c779f82632ba272c0a0b94 print/poster/files/md5 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'print/poster/files/md5'`" test 55 -eq "$shar_count" || $echo 'print/poster/files/md5:' 'original size' '55,' 'current size' "$shar_count!" fi fi # ============= print/poster/patches/patch-aa ============== if test ! -d 'print/poster/patches'; then $echo 'x -' 'creating directory' 'print/poster/patches' mkdir 'print/poster/patches' fi if test -f 'print/poster/patches/patch-aa' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'print/poster/patches/patch-aa' '(file already exists)' else $echo 'x -' extracting 'print/poster/patches/patch-aa' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'print/poster/patches/patch-aa' && --- poster.c.org Thu Apr 29 00:22:46 1999 +++ poster.c Sun Jan 30 00:48:11 2000 @@ -570,7 +570,7 @@ X X got_bb = 0; X dsc_cont = inbody = gotall = level = atend = 0; - while (!gotall && (gets(buf) != NULL)) + while (!gotall && (fgets(buf, BUFSIZE, stdin) != NULL)) X { X if (buf[0] != '%') X { dsc_cont = 0; SHAR_EOF $shar_touch -am 01300052100 'print/poster/patches/patch-aa' && chmod 0644 'print/poster/patches/patch-aa' || $echo 'restore of' 'print/poster/patches/patch-aa' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'print/poster/patches/patch-aa:' 'MD5 check failed' b3d3be94e30dfc61bd03621e1b0c65f5 print/poster/patches/patch-aa SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'print/poster/patches/patch-aa'`" test 311 -eq "$shar_count" || $echo 'print/poster/patches/patch-aa:' 'original size' '311,' 'current size' "$shar_count!" fi fi rm -fr _sh19497 exit 0 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200002060920.SAA19617>