pkgsrc-WIP-changes archive

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

Import bcal



Module Name:	pkgsrc-wip
Committed By:	Sijmen J. Mulder <ik%sjmulder.nl@localhost>
Pushed By:	sjmulder
Date:		Wed Dec 12 21:12:51 2018 +0100
Changeset:	77dd9377e3b16a54a8ad207c53c54673ed339eb8

Added Files:
	bcal/DESCR
	bcal/Makefile
	bcal/PLIST
	bcal/distinfo
	bcal/patches/patch-Makefile

Log Message:
Import 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.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=77dd9377e3b16a54a8ad207c53c54673ed339eb8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 bcal/DESCR                  |  8 ++++++++
 bcal/Makefile               | 20 ++++++++++++++++++++
 bcal/PLIST                  |  4 ++++
 bcal/distinfo               |  7 +++++++
 bcal/patches/patch-Makefile | 29 +++++++++++++++++++++++++++++
 5 files changed, 68 insertions(+)

diffs:
diff --git a/bcal/DESCR b/bcal/DESCR
new file mode 100644
index 0000000000..f7ad3b5017
--- /dev/null
+++ b/bcal/DESCR
@@ -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 --git a/bcal/Makefile b/bcal/Makefile
new file mode 100644
index 0000000000..7e1984bc51
--- /dev/null
+++ b/bcal/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD$
+
+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 "../../devel/readline/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/bcal/PLIST b/bcal/PLIST
new file mode 100644
index 0000000000..8f013769ce
--- /dev/null
+++ b/bcal/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+bin/bcal
+man/man1/bcal.1
+share/doc/bcal/README.md
diff --git a/bcal/distinfo b/bcal/distinfo
new file mode 100644
index 0000000000..cd9cd354dc
--- /dev/null
+++ b/bcal/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+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) = cbf6bcd47d503cfa0ee1b5453d955fea1b2bae5d
diff --git a/bcal/patches/patch-Makefile b/bcal/patches/patch-Makefile
new file mode 100644
index 0000000000..13dadfadda
--- /dev/null
+++ b/bcal/patches/patch-Makefile
@@ -0,0 +1,29 @@
+$NetBSD$
+
+ - Respect LDFLAGS
+ - Respect existing LDLIBS
+
+--- Makefile
++++ Makefile
+@@ -6,18 +6,18 @@ 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