git: 8b9cb36521d9 - main - devel/rgbds: Update to 1.0.2

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Tue, 21 Jul 2026 23:20:47 UTC
The branch main has been updated by eduardo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8b9cb36521d91d9cc47119d15108616a2b0d8dc2

commit 8b9cb36521d91d9cc47119d15108616a2b0d8dc2
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2026-07-21 22:34:50 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2026-07-21 23:20:32 +0000

    devel/rgbds: Update to 1.0.2
    
    - Do not build tests by default
    - Add external tests excluding nonfree, which omits the Pokémon and
      Legend of Zelda disassemblies
    
    ChangeLog:      https://github.com/gbdev/rgbds/releases/tag/v1.0.2%2Bhotfix
    MFH:            2026Q3
---
 devel/rgbds/Makefile                      | 15 ++++++++++-----
 devel/rgbds/distinfo                      |  6 +++---
 devel/rgbds/files/patch-test_run-tests.sh | 14 --------------
 3 files changed, 13 insertions(+), 22 deletions(-)

diff --git a/devel/rgbds/Makefile b/devel/rgbds/Makefile
index 191208b394be..219aa41fb0a9 100644
--- a/devel/rgbds/Makefile
+++ b/devel/rgbds/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	rgbds
-DISTVERSION=	1.0.1
+DISTVERSION=	1.0.2
 CATEGORIES=	devel games
-MASTER_SITES=	https://github.com/gbdev/rgbds/releases/download/v${DISTVERSION}/
+MASTER_SITES=	https://github.com/gbdev/rgbds/releases/download/v${DISTVERSION}+hotfix/
 DISTNAME=	${PORTNAME}-source
 DIST_SUBDIR=	${PORTNAME}/${DISTVERSION}
 
@@ -12,15 +12,20 @@ WWW=		https://rgbds.gbdev.io/
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	gmake>0:devel/gmake
 LIB_DEPENDS=	libpng16.so:graphics/png
-TEST_DEPENDS=	bash>0:shells/bash \
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \
+		bash>0:shells/bash \
 		git>0:devel/git \
 		xxd>0:sysutils/xxd
 
-USES=		bison cmake:testing pkgconfig shebangfix
+USES=		bison cmake:testing pkgconfig python:test shebangfix
 SHEBANG_FILES=	contrib/view_palettes.sh src/bison.sh test/*.sh test/*/*.sh
 
-CMAKE_OFF=	USE_NONFREE_TESTS
+CMAKE_OFF=	BUILD_TESTING
+CMAKE_TESTING_ARGS=	-DCMAKE_CTEST_ARGUMENTS:STRING="--label-exclude;nonfree"
+
+BINARY_ALIAS=	make=${GMAKE} python3=${PYTHON_CMD} # Needed for external tests
 
 WRKSRC=		${WRKDIR}/rgbds
 
diff --git a/devel/rgbds/distinfo b/devel/rgbds/distinfo
index 3477be217df1..1d2759752e87 100644
--- a/devel/rgbds/distinfo
+++ b/devel/rgbds/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1767262417
-SHA256 (rgbds/1.0.1/rgbds-source.tar.gz) = 0bb80f6aaecc3ac173758686021a98cbb941aa0829124985f977ba8da4e48b21
-SIZE (rgbds/1.0.1/rgbds-source.tar.gz) = 10556029
+TIMESTAMP = 1784655494
+SHA256 (rgbds/1.0.2/rgbds-source.tar.gz) = c404afe6af549b923c2400ac7d5ebf30819a8192dea73bfd4c9b4ff80f3d446e
+SIZE (rgbds/1.0.2/rgbds-source.tar.gz) = 10584242
diff --git a/devel/rgbds/files/patch-test_run-tests.sh b/devel/rgbds/files/patch-test_run-tests.sh
deleted file mode 100644
index 619dcf4217bf..000000000000
--- a/devel/rgbds/files/patch-test_run-tests.sh
+++ /dev/null
@@ -1,14 +0,0 @@
---- test/run-tests.sh.orig	2025-10-01 18:52:13 UTC
-+++ test/run-tests.sh
-@@ -129,11 +129,3 @@ fi
- 	test_downstream pret  pokered          compare pokered.gbc     ea9bcae617fdf159b045185467ae58b2e4a48b9a
- 	test_downstream zladx LADX-Disassembly default azle.gbc        d90ac17e9bf17b6c61624ad9f05447bdb5efc01a
- fi
--test_downstream AntonioND ucity   all      ucity.gbc 5f026649611c9606ce0bf70dc1552e054e7df5bc
--test_downstream pinobatch libbet  all      libbet.gb f117089aa056600e2d404bbcbac96b016fc64611
--test_downstream LIJI32    SameBoy bootroms build/bin/BootROMs/cgb_boot.bin 113903775a9d34b798c2f8076672da6626815a91
--# gb-starter kit fails with any `make` on Windows: https://codeberg.org/ISSOtm/gb-starter-kit/issues/1
--# gb-starter-kit fails with macOS/BSD `make`: https://codeberg.org/ISSOtm/gb-starter-kit/issues/29
--if [[ "${osname%-*}" != "windows" && "${osname%-*}" != "macos" && "${osname%-*}" != "bsd" ]]; then
--	test_downstream ISSOtm gb-starter-kit all bin/boilerplate.gb b4f130169ba73284e0d0e71b53e7baa4eca2f7fe
--fi