aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorJohan van Selst <johans@FreeBSD.org>2018-02-06 10:55:23 +0000
committerJohan van Selst <johans@FreeBSD.org>2018-02-06 10:55:23 +0000
commit0390e8eea89997ea4ea1037e409033432da3c7b7 (patch)
tree2c4228e4316587b4b3878aed11b298692a8dea2d /math
parentb7c07451a3250051bcc929bc32a6a0848250bb7f (diff)
downloadports-0390e8eea89997ea4ea1037e409033432da3c7b7.tar.gz
ports-0390e8eea89997ea4ea1037e409033432da3c7b7.zip
Notes
Diffstat (limited to 'math')
-rw-r--r--math/calc/Makefile10
-rw-r--r--math/calc/distinfo6
-rw-r--r--math/calc/files/patch-Makefile.ship (renamed from math/calc/files/patch-Makefile)79
3 files changed, 51 insertions, 44 deletions
diff --git a/math/calc/Makefile b/math/calc/Makefile
index 1261880ce7d3..826cd4f20f74 100644
--- a/math/calc/Makefile
+++ b/math/calc/Makefile
@@ -2,21 +2,23 @@
# $FreeBSD$
PORTNAME= calc
-PORTVERSION= 2.12.6.0
+PORTVERSION= 2.12.6.5
CATEGORIES= math
-MASTER_SITES= SF
-
-LICENSE= LGPL21
MAINTAINER= johans@FreeBSD.org
COMMENT= Arbitrary precision calculator
+LICENSE= LGPL21
+
USES= gmake tar:bzip2 readline
USE_LDCONFIG= yes
+USE_GITHUB= yes
+GH_ACCOUNT= lcn2
MAKE_JOBS_UNSAFE= yes
CALCPAGER?= more
+MAKEFILE= Makefile.ship
MAKE_ENV+= CALCPAGER="${CALCPAGER}" CAT="${CAT}" CHMOD="${CHMOD}" \
CP="${CP}" GMAKE="${MAKE_CMD}" LN="${LN}" MKDIR="${MKDIR}" \
MV="${MV}" RM="${RM}" SED="${SED}" TOUCH="${TOUCH}" \
diff --git a/math/calc/distinfo b/math/calc/distinfo
index 7dda0a50550e..c8d847db255e 100644
--- a/math/calc/distinfo
+++ b/math/calc/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1499281492
-SHA256 (calc-2.12.6.0.tar.bz2) = 18dee9d979d8d397ee4a6f57c494a60790034c0ff109b3c552faff97f1ad7cf2
-SIZE (calc-2.12.6.0.tar.bz2) = 959818
+TIMESTAMP = 1517913994
+SHA256 (lcn2-calc-2.12.6.5_GH0.tar.gz) = c87697db966b83e499e046f43e3d772fbcab4b29e452084645885664fa329807
+SIZE (lcn2-calc-2.12.6.5_GH0.tar.gz) = 1112269
diff --git a/math/calc/files/patch-Makefile b/math/calc/files/patch-Makefile.ship
index b01ca289000d..22e72899203d 100644
--- a/math/calc/files/patch-Makefile
+++ b/math/calc/files/patch-Makefile.ship
@@ -1,34 +1,42 @@
---- Makefile.orig 2017-06-02 21:50:17 UTC
-+++ Makefile
-@@ -571,7 +571,7 @@ HAVE_UNUSED=
+--- Makefile.ship.orig 2018-01-29 02:26:08 UTC
++++ Makefile.ship
+@@ -581,7 +581,7 @@ else
+ #endif /* end of skip for non-Gnu makefiles */
- #INCDIR= /usr/local/include
- #INCDIR= /dev/env/DJDIR/include
+ # default INCDIR for non-macOS
-INCDIR= /usr/include
+INCDIR= ${PREFIX}/include
+ #INCDIR= /usr/local/include
+ #INCDIR= /dev/env/DJDIR/include
- # Where to install calc related things
- #
-@@ -610,15 +610,15 @@ INCDIR= /usr/include
- #
- #BINDIR= /usr/local/bin
- #BINDIR= /dev/env/DJDIR/bin
+@@ -644,7 +644,7 @@ else
+ #endif /* end of skip for non-Gnu makefiles */
+
+ # default BINDIR for non-macOS
-BINDIR= /usr/bin
+BINDIR= ${PREFIX}/bin
+ #BINDIR= /usr/local/bin
+ #BINDIR= /dev/env/DJDIR/bin
- #LIBDIR= /usr/local/lib
- #LIBDIR= /dev/env/DJDIR/lib
+@@ -660,7 +660,7 @@ else
+ #endif /* end of skip for non-Gnu makefiles */
+
+ # default LIBDIR for non-macOS
-LIBDIR= /usr/lib
+LIBDIR= ${PREFIX}/lib
+ #LIBDIR= /usr/local/lib
+ #LIBDIR= /dev/env/DJDIR/lib
- #CALC_SHAREDIR= /usr/local/lib/calc
- #CALC_SHAREDIR= /dev/env/DJDIR/share/calc
+@@ -676,7 +676,7 @@ else
+ #endif /* end of skip for non-Gnu makefiles */
+
+ # default CALC_SHAREDIR for non-macOS
-CALC_SHAREDIR= /usr/share/calc
+CALC_SHAREDIR= ${PREFIX}/share/calc
+ #CALC_SHAREDIR= /usr/local/lib/calc
+ #CALC_SHAREDIR= /dev/env/DJDIR/share/calc
- # NOTE: Do not set CALC_INCDIR to /usr/include or /usr/local/include!!!
- # Always be sure that the CALC_INCDIR path ends in /calc to avoid
-@@ -685,7 +685,7 @@ SCRIPTDIR= ${BINDIR}/cscript
+@@ -749,7 +749,7 @@ SCRIPTDIR= ${BINDIR}/cscript
#
# If in doubt, use T=
#
@@ -37,7 +45,7 @@
# where man pages are installed
#
-@@ -696,7 +696,7 @@ T=
+@@ -760,7 +760,7 @@ T=
#MANDIR=
#MANDIR= /usr/local/man/man1
#MANDIR= /usr/man/man1
@@ -46,7 +54,7 @@
#MANDIR= /dev/env/DJDIR/man/man1
#MANDIR= /usr/man/u_man/man1
#MANDIR= /usr/contrib/man/man1
-@@ -831,14 +831,14 @@ CALCRC= ${CALC_SHAREDIR}/startup:~/.calc
+@@ -895,14 +895,14 @@ CALCRC= ${CALC_SHAREDIR}/startup:~/.calc
#
# If in doubt, set USE_READLINE, READLINE_LIB and READLINE_INCLUDE to nothing.
#
@@ -55,10 +63,8 @@
+#USE_READLINE=
+USE_READLINE= -DUSE_READLINE
#
--READLINE_LIB=
--READLINE_EXTRAS=
-+#READLINE_LIB=
-+#READLINE_EXTRAS=
+ READLINE_LIB=
+ READLINE_EXTRAS=
#
-#READLINE_LIB= -lreadline
-#READLINE_EXTRAS= -lhistory -lncurses
@@ -67,7 +73,7 @@
#
#READLINE_LIB= -L/usr/gnu/lib -lreadline
#READLINE_EXTRAS= -lhistory -lncurses
-@@ -872,7 +872,7 @@ READLINE_INCLUDE=
+@@ -936,7 +936,7 @@ READLINE_INCLUDE=
#CALCPAGER= more
#CALCPAGER= pg
#CALCPAGER= cat
@@ -76,7 +82,7 @@
#CALCPAGER= less.exe -ci
# Debug/Optimize options for ${CC} and ${LCC}
-@@ -999,35 +999,36 @@ LIB_EXT_VERSION= ${LIB_EXT}.${VERSION}
+@@ -1063,35 +1063,35 @@ LIB_EXT_VERSION= ${LIB_EXT}.${VERSION}
# standard utilities used during make
#
@@ -122,11 +128,10 @@
-LDCONFIG= ldconfig
+#LN= ln
+#LDCONFIG= ldconfig
-+LDCONFIG=
# assume the X11 makedepend tool for the depend rule
MAKEDEPEND= makedepend
STRIP= strip
-@@ -1327,13 +1328,15 @@ WNO_IMPLICT= -Wno-implicit
+@@ -1381,13 +1381,15 @@ WNO_IMPLICT= -Wno-implicit
WNO_ERROR_LONG_LONG= -Wno-error=long-long
WNO_LONG_LONG= -Wno-long-long
CCWERR=
@@ -146,7 +151,7 @@
#
endif
-@@ -1680,7 +1683,8 @@ ICFLAGS= ${COMMON_CFLAGS} ${CC_STATIC}
+@@ -1734,7 +1736,8 @@ ICFLAGS= ${COMMON_CFLAGS} ${CC_STATIC}
else
ICFLAGS= ${COMMON_CFLAGS} ${CC_SHARE}
endif
@@ -156,7 +161,7 @@
# Required flags to link files for calc
#
-@@ -1865,7 +1869,7 @@ CUSTOM_PASSDOWN= \
+@@ -1919,7 +1922,7 @@ CUSTOM_PASSDOWN= \
COMMON_ADD="${COMMON_ADD}" \
COMMON_CFLAGS="${COMMON_CFLAGS} -I.." \
COMMON_LDFLAGS="${COMMON_LDFLAGS}" \
@@ -165,7 +170,7 @@
CUSTOMCALDIR="${CUSTOMCALDIR}" \
CUSTOMHELPDIR="${CUSTOMHELPDIR}" \
CUSTOMINCDIR="${CUSTOMINCDIR}" \
-@@ -1893,7 +1897,7 @@ CUSTOM_PASSDOWN= \
+@@ -1947,7 +1950,7 @@ CUSTOM_PASSDOWN= \
PURIFY="${PURIFY}" \
Q="${Q}" \
RANLIB="${RANLIB}" \
@@ -174,7 +179,7 @@
RMDIR=${RMDIR} \
SCRIPTDIR="${SCRIPTDIR}" \
SED=${SED} \
-@@ -1920,7 +1924,7 @@ HELP_PASSDOWN= \
+@@ -1974,7 +1977,7 @@ HELP_PASSDOWN= \
COMMON_ADD="${COMMON_ADD}" \
COMMON_CFLAGS="${COMMON_CFLAGS}" \
COMMON_LDFLAGS="${COMMON_LDFLAGS}" \
@@ -183,7 +188,7 @@
EXT=${EXT} \
FMT=${FMT} \
GREP=${GREP} \
-@@ -1935,7 +1939,7 @@ HELP_PASSDOWN= \
+@@ -1989,7 +1992,7 @@ HELP_PASSDOWN= \
MKDIR=${MKDIR} \
MV=${MV} \
Q="${Q}" \
@@ -192,7 +197,7 @@
RMDIR=${RMDIR} \
SCRIPTDIR="${SCRIPTDIR}" \
SED=${SED} \
-@@ -1955,7 +1959,7 @@ CAL_PASSDOWN= \
+@@ -2009,7 +2012,7 @@ CAL_PASSDOWN= \
CHMOD=${CHMOD} \
CMP=${CMP} \
CO=${CO} \
@@ -201,7 +206,7 @@
HELPDIR="${HELPDIR}" \
INCDIR="${INCDIR}" \
LANG=${LANG} \
-@@ -1964,7 +1968,7 @@ CAL_PASSDOWN= \
+@@ -2018,7 +2021,7 @@ CAL_PASSDOWN= \
MKDIR=${MKDIR} \
MV=${MV} \
Q="${Q}" \
@@ -210,7 +215,7 @@
RMDIR=${RMDIR} \
SCRIPTDIR="${SCRIPTDIR}" \
T=${T} \
-@@ -1983,7 +1987,7 @@ CSCRIPT_PASSDOWN= \
+@@ -2037,7 +2040,7 @@ CSCRIPT_PASSDOWN= \
CHMOD=${CHMOD} \
CMP=${CMP} \
CO=${CO} \
@@ -219,7 +224,7 @@
FMT=${FMT} \
HELPDIR="${HELPDIR}" \
INCDIR="${INCDIR}" \
-@@ -1993,7 +1997,7 @@ CSCRIPT_PASSDOWN= \
+@@ -2047,7 +2050,7 @@ CSCRIPT_PASSDOWN= \
MKDIR=${MKDIR} \
MV=${MV} \
Q="${Q}" \