Date: Mon, 28 Jan 2019 21:59:42 +0000 (UTC) From: Stefan Esser <se@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r491519 - in head/math: . gh-bc gnubc Message-ID: <201901282159.x0SLxgrr059232@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: se Date: Mon Jan 28 21:59:41 2019 New Revision: 491519 URL: https://svnweb.freebsd.org/changeset/ports/491519 Log: New port of a BSD licensed and GNU compatible bc and dc program. These programs have been used in a number of other projects over many years and they are highly portable and heavily tested. Obtained from: Gavin Howard <gavin.d.howard@gmail.com> Approved by: antoine (mentor) Added: head/math/gh-bc/ head/math/gh-bc/Makefile (contents, props changed) head/math/gh-bc/distinfo (contents, props changed) head/math/gh-bc/pkg-descr (contents, props changed) Modified: head/math/Makefile head/math/gnubc/Makefile Modified: head/math/Makefile ============================================================================== --- head/math/Makefile Mon Jan 28 21:46:24 2019 (r491518) +++ head/math/Makefile Mon Jan 28 21:59:41 2019 (r491519) @@ -235,6 +235,7 @@ SUBDIR += geonext SUBDIR += gexpr SUBDIR += ggobi + SUBDIR += gh-bc SUBDIR += giacxcas SUBDIR += givaro SUBDIR += gkmap Added: head/math/gh-bc/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/gh-bc/Makefile Mon Jan 28 21:59:41 2019 (r491519) @@ -0,0 +1,34 @@ +# $FreeBSD$ + +PORTNAME= bc +PORTVERSION= 1.1.0 +CATEGORIES= math +PKGNAMEPREFIX= gh- + +MAINTAINER= se@FreeBSD.org +COMMENT= GNU compatible bc/dc calculator + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.md + +USE_GITHUB= yes +GH_ACCOUNT= gavinhoward + +HAS_CONFIGURE= yes +CONFIGURE_SCRIPT= configure.sh +CONFIGURE_ARGS= -G + +CONFLICTS_INSTALL= bc-[0-9]* + +PLIST_FILES= bin/bc bin/dc man/man1/bc.1.gz man/man1/dc.1.gz + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/bin/bc ${STAGEDIR}${PREFIX}/bin/ + ${LN} ${STAGEDIR}${PREFIX}/bin/bc ${STAGEDIR}${PREFIX}/bin/dc + ${INSTALL_MAN} ${WRKSRC}/manuals/bc.1 ${STAGEDIR}${MANPREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/manuals/dc.1 ${STAGEDIR}${MANPREFIX}/man/man1 + +do-test: + ${MAKE} -C ${WRKSRC} test + +.include <bsd.port.mk> Added: head/math/gh-bc/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/gh-bc/distinfo Mon Jan 28 21:59:41 2019 (r491519) @@ -0,0 +1,3 @@ +TIMESTAMP = 1548712045 +SHA256 (gavinhoward-bc-1.1.0_GH0.tar.gz) = 35ed59981aeb0571563bc3445f5948083919d4d834868f361fc4f7dc3c90e998 +SIZE (gavinhoward-bc-1.1.0_GH0.tar.gz) = 160425 Added: head/math/gh-bc/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/gh-bc/pkg-descr Mon Jan 28 21:59:41 2019 (r491519) @@ -0,0 +1,16 @@ +This is an implementation of POSIX bc that implements GNU bc extensions, as +well as the period (".") extension for the BSD flavor of bc. + +bc is an arbitrary precision numeric processing language. Its syntax is +similar to C but differs in many substantial areas. It supports interactive +execution of statements. The bc utility is included in the POSIX 1003.1-2008 +standard. + +This bc also includes an implementation of dc in the same binary, accessible +via a symbolic link, which implements all FreeBSD and GNU extensions. If a +single dc binary is desired, bc can be copied and renamed to dc. + +The "!" command is omitted; I believe that it poses security concerns and +that such functionality is unnecessary. + +WWW: https://github.com/gavinhoward/bc Modified: head/math/gnubc/Makefile ============================================================================== --- head/math/gnubc/Makefile Mon Jan 28 21:46:24 2019 (r491518) +++ head/math/gnubc/Makefile Mon Jan 28 21:59:41 2019 (r491519) @@ -32,6 +32,8 @@ PORTEXAMPLES= ckbook.b \ OPTIONS_DEFINE= EXAMPLES +CONFLICTS_INSTALL= gh-bc-[0-9]* + post-install: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} .for f in ${PORTEXAMPLES}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901282159.x0SLxgrr059232>