ports/126302: [PATCH]math/calc: respect CC, CFLAGS, etc.; add tests; fix minor pkg-plist nits

bf bf2006a at yahoo.com
Wed Aug 6 14:10:03 UTC 2008


>Number:         126302
>Category:       ports
>Synopsis:       [PATCH]math/calc: respect CC, CFLAGS, etc.; add tests; fix minor pkg-plist nits
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 06 14:10:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     bf
>Release:        7-STABLE i386
>Organization:
>Environment:
>Description:
The permissions on some installed files are still nonstandard, but that's for another time...
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN calc.orig/Makefile calc/Makefile
--- calc.orig/Makefile	2008-08-06 05:14:20.020381905 -0400
+++ calc/Makefile	2008-08-06 09:31:18.007274652 -0400
@@ -19,4 +19,12 @@
 
 MAN1=		calc.1
 
+CALCPAGER?=	more
+MAKE_ENV+=	CALCPAGER="${CALCPAGER}" CAT="${CAT}" CHMOD="${CHMOD}" CP="${CP}" \
+		GMAKE="${GMAKE}" LN="${LN}" MKDIR="${MKDIR}" MV="${MV}" RM="${RM}" \
+		SED="${SED}" TOUCH="${TOUCH}" TRUE="${TRUE}"
+
+regression-test: build
+	( cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} check )
+
 .include <bsd.port.mk>
diff -ruN calc.orig/files/patch-Makefile calc/files/patch-Makefile
--- calc.orig/files/patch-Makefile	2008-08-06 05:14:20.020381905 -0400
+++ calc/files/patch-Makefile	2008-08-06 09:31:18.007274652 -0400
@@ -1,5 +1,5 @@
---- Makefile.orig	2008-05-10 08:04:43.000000000 -0700
-+++ Makefile	2008-05-10 08:05:39.000000000 -0700
+--- Makefile.orig	2008-05-10 07:58:05.000000000 -0400
++++ Makefile	2008-08-06 08:53:08.992116860 -0400
 @@ -585,7 +585,7 @@
  
  #INCDIR= /usr/local/include
@@ -37,3 +37,103 @@
  #MANDIR= /dev/env/DJDIR/man/man1
  #MANDIR= /usr/man/u_man/man1
  #MANDIR= /usr/contrib/man/man1
+@@ -857,7 +857,7 @@
+ #CALCPAGER= more
+ #CALCPAGER= pg
+ #CALCPAGER= cat
+-CALCPAGER= less
++#CALCPAGER= less
+ #CALCPAGER= less.exe -ci
+ 
+ # Debug/Optimize options for ${CC} and ${LCC}
+@@ -966,8 +966,8 @@
+ # MKDIR_ARG= -p			# use mkdir -p when creating paths
+ # MKDIR_ARG=			# use if system does not understand mkdir -p
+ #
+-MKDIR_ARG= -p
+-#MKDIR_ARG=
++#MKDIR_ARG= -p
++MKDIR_ARG=
+ 
+ # Some out of date operating systems require / want an executable to
+ # end with a certain file extension.  Some compile systems such as
+@@ -999,35 +999,36 @@
+ 
+ # standard utilities used during make
+ #
+-SHELL= /bin/sh
++#SHELL= /bin/sh
+ LANG= C
+-MAKE= make
++#MAKE= make
+ AWK= awk
+-SED= sed
++#SED= sed
+ DIFF= diff
+ GREP= egrep
+ SORT= sort
+ TEE= tee
+ CTAGS= ctags
+-CHMOD= chmod
++#CHMOD= chmod
+ FMT= fmt
+ XARGS= xargs
+ CMP= cmp
+-MKDIR= mkdir
++#MKDIR= mkdir
+ SPLINT= splint
+ SPLINT_OPTS=
+-RM= rm
+-TOUCH= touch
++#RM= rm
++#TOUCH= touch
+ RMDIR= rmdir
+-CP= cp
+-MV= mv
++#CP= cp
++#MV= mv
+ CO= co
+ AR= ar
+-TRUE= true
+-CAT= cat
++#TRUE= true
++#CAT= cat
+ COL= col
+-LN= ln
+-LDCONFIG= ldconfig
++#LN= ln
++#LDCONFIG= ldconfig
++LDCONFIG=
+ # assume the X11 makedepend tool for the depend rule
+ MAKEDEPEND= makedepend
+ STRIP= strip
+@@ -1235,13 +1236,15 @@
+ #
+ CCWARN= -Wall -W -Wno-comment
+ CCWERR=
+-CCOPT= ${DEBUG}
++#CCOPT= ${DEBUG}
++CCOPT=
+ CCMISC=
+ #
+-LCC= gcc
+-CC= ${PURIFY} ${LCC} ${CCWERR}
++LCC= ${CC}
++#CC= ${PURIFY} ${LCC} ${CCWERR}
+ #
+-MAKE= gmake
++#MAKE= gmake
++MAKE= ${GMAKE}
+ #
+ endif
+ 
+@@ -1469,7 +1472,8 @@
+ else
+ ICFLAGS= ${COMMON_CFLAGS} ${CC_SHARE}
+ endif
+-CFLAGS= ${ICFLAGS} ${CCOPT}
++#CFLAGS= ${ICFLAGS} ${CCOPT}
++CFLAGS+= ${ICFLAGS} ${CCOPT}
+ 
+ # Required flags to link files for calc
+ #
diff -ruN calc.orig/pkg-plist calc/pkg-plist
--- calc.orig/pkg-plist	2008-08-06 05:14:20.040381374 -0400
+++ calc/pkg-plist	2008-08-06 09:31:18.007274652 -0400
@@ -483,12 +483,12 @@
 %%DATADIR%%/unitfrac.cal
 %%DATADIR%%/varargs.cal
 %%DATADIR%%/xx_print.cal
- at dirrmtry share/man/man1
- at dirrmtry share/man
- at dirrmtry %%DATADIR%%/help
- at dirrmtry %%DATADIR%%/custom
- at dirrmtry %%DATADIR%%/custhelp
- at dirrmtry %%DATADIR%%
+ at dirrmtry man/man1
+ at dirrmtry man
+ at dirrm %%DATADIR%%/help
+ at dirrm %%DATADIR%%/custom
+ at dirrm %%DATADIR%%/custhelp
+ at dirrm %%DATADIR%%
 @dirrmtry include/calc/custom
- at dirrmtry include/calc
- at dirrmtry bin/cscript
+ at dirrm include/calc
+ at dirrm bin/cscript


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



More information about the freebsd-ports-bugs mailing list