pkgsrc-Changes archive

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

CVS commit: pkgsrc/math/bcal



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.

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@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"
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



Home | Main Index | Thread Index | Old Index