Received: by mail.netbsd.org (Postfix, from userid 605) id 10BFE84DEE; Sat, 15 Dec 2018 17:25:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 159D984D9B for ; Sat, 15 Dec 2018 17:25:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id wWvb0JT6J4GK for ; Sat, 15 Dec 2018 17:25:16 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id EFA1C84CFB for ; Sat, 15 Dec 2018 17:25:15 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id D6554FB16; Sat, 15 Dec 2018 17:25:15 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1544894715225100" MIME-Version: 1.0 Date: Sat, 15 Dec 2018 17:25:15 +0000 From: "Leonardo Taccari" Subject: CVS commit: pkgsrc/math/bcal To: pkgsrc-changes@NetBSD.org Reply-To: leot@netbsd.org X-Mailer: log_accum Message-Id: <20181215172515.D6554FB16@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1544894715225100 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: leot Date: Sat Dec 15 17:25:15 UTC 2018 Added Files: pkgsrc/math/bcal: DESCR Makefile PLIST distinfo pkgsrc/math/bcal/patches: patch-Makefile Log Message: 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! To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 pkgsrc/math/bcal/DESCR pkgsrc/math/bcal/Makefile \ pkgsrc/math/bcal/PLIST pkgsrc/math/bcal/distinfo cvs rdiff -u -r0 -r1.1 pkgsrc/math/bcal/patches/patch-Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1544894715225100 Content-Disposition: inline Content-Length: 3263 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Added files: Index: pkgsrc/math/bcal/DESCR diff -u /dev/null pkgsrc/math/bcal/DESCR:1.1 --- /dev/null Sat Dec 15 17:25:15 2018 +++ pkgsrc/math/bcal/DESCR Sat Dec 15 17:25:15 2018 @@ -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. Index: pkgsrc/math/bcal/Makefile diff -u /dev/null pkgsrc/math/bcal/Makefile:1.1 --- /dev/null Sat Dec 15 17:25:15 2018 +++ pkgsrc/math/bcal/Makefile Sat Dec 15 17:25:15 2018 @@ -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 +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" Index: pkgsrc/math/bcal/PLIST diff -u /dev/null pkgsrc/math/bcal/PLIST:1.1 --- /dev/null Sat Dec 15 17:25:15 2018 +++ pkgsrc/math/bcal/PLIST Sat Dec 15 17:25:15 2018 @@ -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 Index: pkgsrc/math/bcal/distinfo diff -u /dev/null pkgsrc/math/bcal/distinfo:1.1 --- /dev/null Sat Dec 15 17:25:15 2018 +++ pkgsrc/math/bcal/distinfo Sat Dec 15 17:25:15 2018 @@ -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 Index: pkgsrc/math/bcal/patches/patch-Makefile diff -u /dev/null pkgsrc/math/bcal/patches/patch-Makefile:1.1 --- /dev/null Sat Dec 15 17:25:15 2018 +++ pkgsrc/math/bcal/patches/patch-Makefile Sat Dec 15 17:25:15 2018 @@ -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 --_----------=_1544894715225100--