git: 5717daedf4e3 - main - lang/tcbasic: Update to 2.3.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 21 Apr 2024 12:06:18 UTC
The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/ports/commit/?id=5717daedf4e3129dd46808b8367ef01adb67ac0f commit 5717daedf4e3129dd46808b8367ef01adb67ac0f Author: mew14930xvi <mew14930xvi@inbox.lv> AuthorDate: 2024-04-20 17:16:11 +0000 Commit: Fernando Apesteguía <fernape@FreeBSD.org> CommitDate: 2024-04-21 12:06:05 +0000 lang/tcbasic: Update to 2.3.0 ChangeLog: https://github.com/tcort/tcbasic/releases/tag/v2.3.0 * Add FOR/NEXT loops * Add integer division operator (\) and exponentiation operator (^) * Add built-in functions: CLS, INT, SHELL, BEEP * Allow spaces between GO and TO as well as GO and SUB. * Allow mixed case keywords * Improved error checking and reporting * Switch from autotools build system to cmake build system * Increase randomness of RANDOMIZE * Documentation updates PR: 278067 Reported by: mew14930xvi@inbox.lv Approved by: linuxgeek@gmail.com (maintainer, timeout > 2 weeks) --- lang/tcbasic/Makefile | 16 +++++++++++----- lang/tcbasic/distinfo | 6 +++--- lang/tcbasic/files/patch-CMakeLists.txt | 12 ++++++++++++ 3 files changed, 26 insertions(+), 8 deletions(-) diff --git a/lang/tcbasic/Makefile b/lang/tcbasic/Makefile index 135150a17f6e..20970d039346 100644 --- a/lang/tcbasic/Makefile +++ b/lang/tcbasic/Makefile @@ -1,18 +1,24 @@ PORTNAME= tcbasic -PORTVERSION= 2.2.0 -PORTREVISION= 1 +DISTVERSION= 2.3.0 CATEGORIES= lang -MASTER_SITES= https://github.com/tcort/${PORTNAME}/releases/download/v${PORTVERSION}/ +MASTER_SITES= https://github.com/tcort/${PORTNAME}/archive/refs/tags/v${PORTVERSION}/ MAINTAINER= linuxgeek@gmail.com COMMENT= Small BASIC Interpreter written in C WWW= https://github.com/tcort/tcbasic LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING -GNU_CONFIGURE= yes -GNU_CONFIGURE_MANPREFIX=${PREFIX}/share +USES= cmake PLIST_FILES= bin/tcbasic share/man/man1/tcbasic.1.gz +PORTEXAMPLES= * + +OPTIONS_DEFINE= EXAMPLES + +do-install-EXAMPLES-on: + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/*.bas ${STAGEDIR}${EXAMPLESDIR} .include <bsd.port.mk> diff --git a/lang/tcbasic/distinfo b/lang/tcbasic/distinfo index f02a611fdb45..19dd3e488ade 100644 --- a/lang/tcbasic/distinfo +++ b/lang/tcbasic/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1505046706 -SHA256 (tcbasic-2.2.0.tar.gz) = 0fd87000f5c192ead1d02a2169e46eb6316660e89113ab3e901426e585a0054b -SIZE (tcbasic-2.2.0.tar.gz) = 135017 +TIMESTAMP = 1711889808 +SHA256 (tcbasic-2.3.0.tar.gz) = db95f8bcc7c11c1597e3ccaf695ab85221400f18c9f20fcc5a7d949a4d23b657 +SIZE (tcbasic-2.3.0.tar.gz) = 46450 diff --git a/lang/tcbasic/files/patch-CMakeLists.txt b/lang/tcbasic/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..d66aee48fa73 --- /dev/null +++ b/lang/tcbasic/files/patch-CMakeLists.txt @@ -0,0 +1,12 @@ +--- CMakeLists.txt.orig 2020-11-17 19:28:20 UTC ++++ CMakeLists.txt +@@ -38,8 +38,7 @@ install(TARGETS tcbasic DESTINATION bin) + add_executable(tcbasic ${SOURCES}) + target_link_libraries(tcbasic m) + install(TARGETS tcbasic DESTINATION bin) +-install(FILES ${PROJECT_BINARY_DIR}/man/tcbasic.1 DESTINATION man/man1) +-install(DIRECTORY ${PROJECT_SOURCE_DIR}/examples DESTINATION share/${PROJECT_NAME}) ++install(FILES ${PROJECT_BINARY_DIR}/man/tcbasic.1 DESTINATION share/man/man1) + + include(CTest) + enable_testing()