Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Feb 2003 15:51:38 +0100 (CET)
From:      Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/48140: Update Port: print/apsfilter (conditional A4 dependencies)
Message-ID:  <200302101451.h1AEpcTq076847@puget.esil.univ-mrs.fr>

next in thread | raw e-mail | index | archive | help
>Number:         48140
>Category:       ports
>Synopsis:       Update Port: print/apsfilter (conditional A4 dependencies)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 10 07:00:25 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        FreeBSD 5.0-RELEASE i386
>Organization:
Universite de la Mediterranee
>Environment:
System: FreeBSD puget.esil.univ-mrs.fr 5.0-RELEASE FreeBSD 5.0-RELEASE #0: Tue Jan 28 12:10:55 CET 2003 root@puget.esil.univ-mrs.fr:/usr/obj/usr/src/sys/ASSIMILATED i386


>Description:
	Patch to allow A4 psutils and a2ps dependencies when using BATCH mode.
>How-To-Repeat:
>Fix:


diff -u apsfilter.old/Makefile apsfilter/Makefile
--- apsfilter.old/Makefile	Fri Feb  7 16:29:12 2003
+++ apsfilter/Makefile	Fri Feb  7 16:33:41 2003
@@ -37,7 +37,13 @@
 # - APSFILTER_ALL	build and install all supported filter utilities
 # - WITHOUT_X11		toggles not to build tools that need X11, even if
 #			APSFILTER_ALL is set
+# - A4_PAPER		sets the default paper size to A4 for dependencies
 #
+.if defined(A4_PAPER)
+PAPER_SIZE=a4
+.else
+PAPER_SIZE=letter
+.endif
 .if defined(BATCH) && defined(APSFILTER_ALL)
 #
 # Build and install all filter apsfilter knows about (rather expensive)
@@ -55,8 +61,8 @@
 RUN_DEPENDS+=	melt:${PORTSDIR}/archivers/freeze
 RUN_DEPENDS+=	lzop:${PORTSDIR}/archivers/lzop
 # all needed "ASCII to ps" filter utilities
-RUN_DEPENDS+=	a2ps:${PORTSDIR}/print/a2ps-letter
-RUN_DEPENDS+=	enscript:${PORTSDIR}/print/enscript-letter
+RUN_DEPENDS+=	a2ps:${PORTSDIR}/print/a2ps-${PAPER_SIZE}
+RUN_DEPENDS+=	enscript:${PORTSDIR}/print/enscript-${PAPER_SIZE}
 RUN_DEPENDS+=	mpage:${PORTSDIR}/print/mpage
 RUN_DEPENDS+=	recode:${PORTSDIR}/converters/recode
 # all needed "ARCHIVE" extraction utilities
@@ -71,7 +77,7 @@
 # all needed "xxx to ps" filter utilities
 RUN_DEPENDS+=	fitstopnm:${PORTSDIR}/graphics/netpbm
 RUN_DEPENDS+=	htmldoc:${PORTSDIR}/textproc/htmldoc
-RUN_DEPENDS+=	psnup:${PORTSDIR}/print/psutils-letter
+RUN_DEPENDS+=	psnup:${PORTSDIR}/print/psutils-${PAPER_SIZE}
 .if !defined(WITHOUT_X11)
 # "xxx to ps" filter utilities that require X
 RUN_DEPENDS+=	acroread4:${PORTSDIR}/print/acroread4
@@ -101,8 +107,8 @@
 RUN_DEPENDS=	gs:${PORTSDIR}/print/ghostscript-gnu
 .endif
 # most important "xxx to ps" filter utilities
-RUN_DEPENDS+=	a2ps:${PORTSDIR}/print/a2ps-letter
-RUN_DEPENDS+=	psnup:${PORTSDIR}/print/psutils-letter
+RUN_DEPENDS+=	a2ps:${PORTSDIR}/print/a2ps-${PAPER_SIZE}
+RUN_DEPENDS+=	psnup:${PORTSDIR}/print/psutils-${PAPER_SIZE}
 .endif
 
 # needed for aps2file :-/
Common subdirectories: apsfilter.old/scripts and apsfilter/scripts

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302101451.h1AEpcTq076847>