ports/155791: Update port: print/c2ps-letter
KATO Tsuguru
tkato432 at yahoo.com
Tue Mar 22 18:20:03 UTC 2011
>Number: 155791
>Category: ports
>Synopsis: Update port: print/c2ps-letter
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Mar 22 18:20:02 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 7.3-RELEASE-p3 i386
>Organization:
>Environment:
>Description:
- Fix WWW: line
- Support CFLAGS properly
Remove file:
files/patch-Makefile
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/print/c2ps-letter/Makefile print/c2ps-letter/Makefile
--- /usr/ports/print/c2ps-letter/Makefile 2011-03-14 21:05:09.000000000 +0900
+++ print/c2ps-letter/Makefile 2011-03-22 17:45:41.000000000 +0900
@@ -7,6 +7,7 @@
PORTNAME= c2ps-${PAPERSIZE}
PORTVERSION= 4.0
+PORTREVISION= 1
CATEGORIES= print
MASTER_SITES= http://www.cs.technion.ac.il/users/c2ps/
DISTNAME= c2ps-${PORTVERSION}
@@ -14,20 +15,23 @@
MAINTAINER= ports at FreeBSD.org
COMMENT= A PostScript pretty-printer for C source
-DEPRECATED= Upstream disapear and distfile is no more available
-EXPIRATION_DATE= 2011-05-01
+MAKE_ARGS= CC="${CC}" CCFLAGS="${CFLAGS}" PREFIX="${PREFIX}" \
+ DEFAULT_PAPER_TYPE="${PS}"
MAN1= c2ps.1
PLIST_FILES= bin/c2ps
-MAKE_ENV= DEFAULT_PAPER_TYPE=${PS}
PAPERSIZE?= letter
PS!= echo ${PAPERSIZE} | awk '{print toupper($$1)}'
-.if ${PAPERSIZE} != a4 && ${PAPERSIZE} != letter
+.if ${PAPERSIZE:L} != a4 && ${PAPERSIZE:L} != letter
.BEGIN:
- @${ECHO} "Invalid value for PAPERSIZE: \"${PAPERSIZE}\""
- @${ECHO} "Possible values are: a4, and letter."
+ @${ECHO_MSG} "Invalid value for PAPERSIZE: \"${PAPERSIZE}\""
+ @${ECHO_MSG} "Possible values are: a4, and letter."
@${FALSE}
.endif
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/c2ps ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/c2ps.1 ${MANPREFIX}/man/man1
+
.include <bsd.port.mk>
diff -urN /usr/ports/print/c2ps-letter/files/patch-aa print/c2ps-letter/files/patch-aa
--- /usr/ports/print/c2ps-letter/files/patch-aa 1998-02-25 21:03:37.000000000 +0900
+++ print/c2ps-letter/files/patch-aa 1970-01-01 09:00:00.000000000 +0900
@@ -1,35 +0,0 @@
---- Makefile.orig Thu May 15 11:50:56 1997
-+++ Makefile Thu Nov 20 22:06:51 1997
-@@ -2,10 +2,7 @@
- # Last modified: Sat Apr 19 1997
-
- RM = rm -f
--CC = gcc
--CCFLAGS = -O
-
--PREFIX = /usr/local
- BIN = $(PREFIX)/bin
- MAN = $(PREFIX)/man/man1
-
-@@ -20,8 +17,6 @@
- FUNCTION_FONT = \"Bookman-LightItalic\"
-
- COMMENT_DIMMING_DEGREE = 0.75
--DEFAULT_PAPER_TYPE = A4
--# possible values are A4 and LETTER
-
-
- #___You don't need to change anything below__________________
-@@ -39,10 +34,10 @@
- install: bininstall maninstall
-
- bininstall: c2ps
-- install -m 755 c2ps $(BIN)
-+ $(BSD_INSTALL_PROGRAM) c2ps $(BIN)
-
- maninstall: c2ps.1
-- install -m 644 c2ps.1 $(MAN)
-+ $(BSD_INSTALL_MAN) c2ps.1 $(MAN)
-
- compile: c2ps.c
- $(CC) $(PREP_OPTIONS) $(CCFLAGS) -o c2ps c2ps.c
diff -urN /usr/ports/print/c2ps-letter/pkg-descr print/c2ps-letter/pkg-descr
--- /usr/ports/print/c2ps-letter/pkg-descr 2009-12-21 15:57:03.000000000 +0900
+++ print/c2ps-letter/pkg-descr 2011-03-22 17:37:59.000000000 +0900
@@ -3,4 +3,4 @@
Released under the GPL by Dmitri Shtilman <dash at vision10.technion.ac.il>
and Dmitri Makarov <dimm at vnet.ibm.com>.
-WWW: http://www.geocities.com/SiliconValley/Park/2055/
+WWW: http://www.cs.technion.ac.il/users/c2ps/
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list