pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/bcal bcal: Import bcal-2.1 as math/bcal



details:   https://anonhg.NetBSD.org/pkgsrc/rev/722db22fbad6
branches:  trunk
changeset: 388842:722db22fbad6
user:      leot <leot%pkgsrc.org@localhost>
date:      Sat Dec 15 17:25:15 2018 +0000

description:
bcal: Import bcal-2.1 as math/bcal

bcal (Byte CALculator) is a REPL CLI utility for storage expressions,
unit conversions or address calculations. If you can't calculate the
hex address offset for (512 - 16) MiB, or the value when the 43rd bit
of a 64-bit address is set mentally, bcal is for you.

It has a bc(1) mode for general-purpose numerical calculations.

Only 64-bit operating systems are supported.

Packaged by Sijmen J. Mulder in pkgsrc-wip, thanks!

diffstat:

 math/bcal/DESCR                  |   8 ++++++++
 math/bcal/Makefile               |  20 ++++++++++++++++++++
 math/bcal/PLIST                  |   4 ++++
 math/bcal/distinfo               |   7 +++++++
 math/bcal/patches/patch-Makefile |  32 ++++++++++++++++++++++++++++++++
 5 files changed, 71 insertions(+), 0 deletions(-)

diffs (91 lines):

diff -r 50724e3d4fcc -r 722db22fbad6 math/bcal/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/bcal/DESCR   Sat Dec 15 17:25:15 2018 +0000
@@ -0,0 +1,8 @@
+bcal (Byte CALculator) is a REPL CLI utility for storage expressions,
+unit conversions or address calculations. If you can't calculate the
+hex address offset for (512 - 16) MiB, or the value when the 43rd bit
+of a 64-bit address is set mentally, bcal is for you.
+
+It has a bc(1) mode for general-purpose numerical calculations.
+
+Only 64-bit operating systems are supported.
diff -r 50724e3d4fcc -r 722db22fbad6 math/bcal/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/bcal/Makefile        Sat Dec 15 17:25:15 2018 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2018/12/15 17:25:15 leot Exp $
+
+DISTNAME=      bcal-2.1
+CATEGORIES=    math
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=jarun/}
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    ik%sjmulder.nl@localhost
+HOMEPAGE=      https://github.com/jarun/bcal/
+COMMENT=       Storage and general-purpose calculator
+LICENSE=       gnu-gpl-v3
+
+USE_TOOLS+=    gmake
+
+DEPENDS+=      bc-[0-9]*:../../math/bc
+
+MAKE_FLAGS+=   MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+
+.include "../../mk/readline.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 50724e3d4fcc -r 722db22fbad6 math/bcal/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/bcal/PLIST   Sat Dec 15 17:25:15 2018 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2018/12/15 17:25:15 leot Exp $
+bin/bcal
+man/man1/bcal.1
+share/doc/bcal/README.md
diff -r 50724e3d4fcc -r 722db22fbad6 math/bcal/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/bcal/distinfo        Sat Dec 15 17:25:15 2018 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2018/12/15 17:25:15 leot Exp $
+
+SHA1 (bcal-2.1.tar.gz) = 7d2740ee9abd18370449b4b3e46b8ecac77d7072
+RMD160 (bcal-2.1.tar.gz) = ad91e17d1dd2cf86c670929495eefc0b9cd3e468
+SHA512 (bcal-2.1.tar.gz) = 38965b0f27289e283ed9193c14cd962ec29ed401e8d60e7f012098cb62dacd357d8eac6a5e29f001c0ecf9541fdb55166b0ed2b2ac5c6bc98622244249cff03d
+Size (bcal-2.1.tar.gz) = 34175 bytes
+SHA1 (patch-Makefile) = 10df94f072e4d08e73458f690ec8df1cce356320
diff -r 50724e3d4fcc -r 722db22fbad6 math/bcal/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/bcal/patches/patch-Makefile  Sat Dec 15 17:25:15 2018 +0000
@@ -0,0 +1,32 @@
+$NetBSD: patch-Makefile,v 1.1 2018/12/15 17:25:15 leot Exp $
+
+ - Respect LDFLAGS
+ - Respect existing LDLIBS
+ - Remove default -O3
+
+--- Makefile
++++ Makefile
+@@ -4,20 +4,19 @@ MANDIR = $(DESTDIR)$(PREFIX)/share/man/man1
+ DOCDIR = $(DESTDIR)$(PREFIX)/share/doc/bcal
+ STRIP ?= strip
+ 
+-CFLAGS ?= -O3
+ CFLAGS += -Wall -Wextra -Wno-unused-parameter -Werror
+-LDLIBS = -lreadline
++LDLIBS += -lreadline
+ 
+ SRC = $(wildcard src/*.c)
+ INCLUDE = -Iinc
+ 
+ bcal: $(SRC)
+-      $(CC) $(CFLAGS) $(INCLUDE) -o bcal $(SRC) $(LDLIBS)
++      $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDE) -o bcal $(SRC) $(LDLIBS)
+ 
+ all: bcal
+ 
+ x86: $(SRC)
+-      $(CC) -m64 $(CFLAGS) $(INCLUDE) -o bcal $(SRC) $(LDLIBS)
++      $(CC) -m64 $(CFLAGS) $(LDFLAGS) $(INCLUDE) -o bcal $(SRC) $(LDLIBS)
+       strip bcal
+ 
+ distclean: clean



Home | Main Index | Thread Index | Old Index