head	1.7;
access;
symbols
	pkgsrc-2026Q1:1.6.0.34
	pkgsrc-2026Q1-base:1.6
	pkgsrc-2025Q4:1.6.0.32
	pkgsrc-2025Q4-base:1.6
	pkgsrc-2025Q3:1.6.0.30
	pkgsrc-2025Q3-base:1.6
	pkgsrc-2025Q2:1.6.0.28
	pkgsrc-2025Q2-base:1.6
	pkgsrc-2025Q1:1.6.0.26
	pkgsrc-2025Q1-base:1.6
	pkgsrc-2024Q4:1.6.0.24
	pkgsrc-2024Q4-base:1.6
	pkgsrc-2024Q3:1.6.0.22
	pkgsrc-2024Q3-base:1.6
	pkgsrc-2024Q2:1.6.0.20
	pkgsrc-2024Q2-base:1.6
	pkgsrc-2024Q1:1.6.0.18
	pkgsrc-2024Q1-base:1.6
	pkgsrc-2023Q4:1.6.0.16
	pkgsrc-2023Q4-base:1.6
	pkgsrc-2023Q3:1.6.0.14
	pkgsrc-2023Q3-base:1.6
	pkgsrc-2023Q2:1.6.0.12
	pkgsrc-2023Q2-base:1.6
	pkgsrc-2023Q1:1.6.0.10
	pkgsrc-2023Q1-base:1.6
	pkgsrc-2022Q4:1.6.0.8
	pkgsrc-2022Q4-base:1.6
	pkgsrc-2022Q3:1.6.0.6
	pkgsrc-2022Q3-base:1.6
	pkgsrc-2022Q2:1.6.0.4
	pkgsrc-2022Q2-base:1.6
	pkgsrc-2022Q1:1.6.0.2
	pkgsrc-2022Q1-base:1.6
	pkgsrc-2021Q4:1.5.0.2
	pkgsrc-2021Q4-base:1.5
	pkgsrc-2021Q3:1.4.0.14
	pkgsrc-2021Q3-base:1.4
	pkgsrc-2021Q2:1.4.0.12
	pkgsrc-2021Q2-base:1.4
	pkgsrc-2021Q1:1.4.0.10
	pkgsrc-2021Q1-base:1.4
	pkgsrc-2020Q4:1.4.0.8
	pkgsrc-2020Q4-base:1.4
	pkgsrc-2020Q3:1.4.0.6
	pkgsrc-2020Q3-base:1.4
	pkgsrc-2020Q2:1.4.0.4
	pkgsrc-2020Q2-base:1.4
	pkgsrc-2020Q1:1.4.0.2
	pkgsrc-2020Q1-base:1.4
	pkgsrc-2019Q4:1.3.0.8
	pkgsrc-2019Q4-base:1.3
	pkgsrc-2019Q3:1.3.0.4
	pkgsrc-2019Q3-base:1.3
	pkgsrc-2019Q2:1.3.0.2
	pkgsrc-2019Q2-base:1.3
	pkgsrc-2019Q1:1.1.0.4
	pkgsrc-2019Q1-base:1.1
	pkgsrc-2018Q4:1.1.0.2
	pkgsrc-2018Q4-base:1.1;
locks; strict;
comment	@# @;


1.7
date	2026.04.10.20.35.17;	author sjmulder;	state Exp;
branches;
next	1.6;
commitid	uiwlXgH2611IbsBG;

1.6
date	2022.01.29.14.55.08;	author sjmulder;	state Exp;
branches;
next	1.5;
commitid	lcRgZ4vVtei8yxqD;

1.5
date	2021.11.19.22.19.39;	author sjmulder;	state Exp;
branches;
next	1.4;
commitid	ustPq4Pow4p8ishD;

1.4
date	2020.01.09.12.21.37;	author sjmulder;	state Exp;
branches;
next	1.3;
commitid	sq8wtxcRgzs8Q0SB;

1.3
date	2019.06.12.20.57.07;	author sjmulder;	state Exp;
branches;
next	1.2;
commitid	WcFfVbtn8XL6tWqB;

1.2
date	2019.05.06.09.17.12;	author sjmulder;	state Exp;
branches;
next	1.1;
commitid	v0v0LOzYtpWWM7mB;

1.1
date	2018.12.15.17.25.15;	author leot;	state Exp;
branches;
next	;
commitid	YJhUBMFK4Jc23V3B;


desc
@@


1.7
log
@math/bcal: Update to 2.5

Changes:
 - remove dependency on external tools (bc, calc)
 - support general purpose calculations (program option/prompt
   switch 'b')
    - arithmetic: addition, subtraction, multiplication, division,
      modulo
    - bitwise: AND (&), OR (|), XOR (^), complement (~), lshift (<<),
      rshift (>>)
    - functions: exp(n), log(base, n), ln(n) [natural log],
      pow(n, exponent), root(radical, n)
 - add program option/prompt switch p to show bit positions with bit
   value of a number
 - remove commas from input for general purpose calculations

Package now includes a test target.
@
text
@# $NetBSD: Makefile,v 1.6 2022/01/29 14:55:08 sjmulder Exp $

DISTNAME=	bcal-2.5
CATEGORIES=	math
MASTER_SITES=	${MASTER_SITE_GITHUB:=jarun/}
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	sjmulder@@NetBSD.org
HOMEPAGE=	https://github.com/jarun/bcal/
COMMENT=	Storage and general-purpose calculator
LICENSE=	gnu-gpl-v3

TEST_DEPENDS+=	${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test

# "Only 64-bit operating systems are supported." (README.md)
ONLY_FOR_PLATFORM=	${LP64PLATFORMS}

USE_TOOLS+=	gmake
MAKE_FLAGS+=	MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
# No -O3 and -Werror
MAKE_FLAGS+=	CFLAGS_OPTIMIZATION=
MAKE_FLAGS+=	CFLAGS_WARNINGS="-Wall -Wextra -Wno-unused-parameter"

do-test:
	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} ./test.py

.include "../../lang/python/pyversion.mk"
.include "../../mk/readline.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.6
log
@math/bcal: Update to 2.4

 - Support "exit" and "quit" at prompt
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2021/11/19 22:19:39 sjmulder Exp $
d3 1
a3 1
DISTNAME=	bcal-2.4
d13 2
a18 1
DEPENDS+=	bc-[0-9]*:../../math/bc
d24 4
@


1.5
log
@math/bcal: Update to 2.3

Changes:
 - show binary conversion output in octets for readability
 - handle ^D
 - quit program or 'exit' or 'quit'
 - fix broken terminal with calc as backend on "undefined input" (#36)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2020/01/09 12:21:37 sjmulder Exp $
d3 1
a3 1
DISTNAME=	bcal-2.3
@


1.4
log
@bcal: Update to 2.2

Changes:
 - Support calc for multi-base expressions
 - To use calc, export BCAL_USE_CALC=1
 - Fix lint issues
 - Fix issue #30
 - Updated auto-generated packages
 - More portable Makefile
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2019/06/12 20:57:07 sjmulder Exp $
d3 1
a3 1
DISTNAME=	bcal-2.2
@


1.3
log
@math/bcal: restrict to 64 bit platforms

bcal is 64 bit only by design so use ONLY_FOR_PLATFORM to prevent build
failures on unsupported platforms.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2019/05/06 09:17:12 sjmulder Exp $
d3 1
a3 1
DISTNAME=	bcal-2.1
d19 3
@


1.2
log
@Update my (sjmulder) maintainer email address
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2018/12/15 17:25:15 leot Exp $
d13 3
a16 1

a17 1

@


1.1
log
@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!
@
text
@d1 1
a1 1
# $NetBSD$
d8 1
a8 1
MAINTAINER=	ik@@sjmulder.nl
@

