Apologies here is the diff and the png file attached I forgot to do
that.

Thank you for the heads up, Theo Buehler.

On Tue, 2024-07-23 at 12:43 -0400, Jag Talon wrote:
> Hi! I'd like to add a desktop entry for PC-BASIC.
> 
> Icon file is from
> https://github.com/robhagemans/pcbasic/blob/master/make/linux.py#L27
> 
> PNG is from
> https://github.com/robhagemans/pcbasic/releases/download/v2.0.7/python3-pcbasic_2.0.7_all.deb
> 
> Tested on GNOME on amd64. Ok?
> 

-- 
he/him
jagtalon.net
weirder.earth/@jag
Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/pcbasic/Makefile,v
retrieving revision 1.12
diff -u -p -u -r1.12 Makefile
--- Makefile	6 May 2024 12:23:44 -0000	1.12
+++ Makefile	23 Jul 2024 16:38:07 -0000
@@ -1,33 +1,41 @@
-COMMENT =	free, cross-platform emulator for GW-BASIC family (PC-BASIC)
+COMMENT =		free, cross-platform emulator for GW-BASIC family (PC-BASIC)
 
 MODPY_EGG_VERSION =	2.0.7
-GH_ACCOUNT =		robhagemans
-GH_PROJECT =		pcbasic
-GH_TAGNAME =		v${MODPY_EGG_VERSION}
+DIST_TUPLE =		github robhagemans pcbasic v${MODPY_EGG_VERSION} .
 DISTNAME =		pcbasic-${MODPY_EGG_VERSION}
-REVISION =		0
+REVISION =		1
 
-CATEGORIES =	lang
+CATEGORIES =		lang
 
-HOMEPAGE =	http://www.pc-basic.org/
-MAINTAINER =	Brian Callahan <bcal...@openbsd.org>
+HOMEPAGE =		http://www.pc-basic.org/
+MAINTAINER =		Brian Callahan <bcal...@openbsd.org>
 
 # GPLv3+
 PERMIT_PACKAGE =	Yes
 
-MODULES =	lang/python
+MODULES =		lang/python
 
-MODPY_PYBUILD =	hatchling
+MODPY_PYBUILD =		hatchling
 # test_main hangs forever
-MODPY_PYTEST_ARGS = --ignore tests/unit/test_main.py
+MODPY_PYTEST_ARGS = 	--ignore tests/unit/test_main.py
 
-PORTHOME =	${WRKDIST}
+PORTHOME =		${WRKDIST}
 
-BUILD_DEPENDS =	devel/py-hatch-nodejs-version${MODPY_FLAVOR}
+BUILD_DEPENDS =		devel/py-hatch-nodejs-version${MODPY_FLAVOR}
 
-RUN_DEPENDS =	devel/py-parallel${MODPY_FLAVOR} \
-		devel/py-serial${MODPY_FLAVOR} \
-		devel/sdl2-gfx \
-		math/py-numpy${MODPY_FLAVOR}
+RUN_DEPENDS =		devel/py-parallel${MODPY_FLAVOR} \
+			devel/py-serial${MODPY_FLAVOR} \
+			devel/sdl2-gfx \
+			math/py-numpy${MODPY_FLAVOR} \
+			devel/desktop-file-utils
+
+post-install:
+			${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps/
+			${INSTALL_DATA} ${FILESDIR}/pcbasic.png \
+				${PREFIX}/share/pixmaps/
+
+			${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
+			${INSTALL_DATA} ${FILESDIR}/pcbasic.desktop \
+				${PREFIX}/share/applications/
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/lang/pcbasic/distinfo,v
retrieving revision 1.4
diff -u -p -u -r1.4 distinfo
--- distinfo	12 Oct 2023 17:26:56 -0000	1.4
+++ distinfo	23 Jul 2024 16:38:07 -0000
@@ -1,2 +1,2 @@
-SHA256 (pcbasic-2.0.7.tar.gz) = 0qCjIQgwaS/pLJc3QgZue4Mu+eFs5y2I5jpEvL4NSRY=
-SIZE (pcbasic-2.0.7.tar.gz) = 3884589
+SHA256 (robhagemans-pcbasic-v2.0.7.tar.gz) = 0qCjIQgwaS/pLJc3QgZue4Mu+eFs5y2I5jpEvL4NSRY=
+SIZE (robhagemans-pcbasic-v2.0.7.tar.gz) = 3884589
Index: files/pcbasic.desktop
===================================================================
RCS file: files/pcbasic.desktop
diff -N files/pcbasic.desktop
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/pcbasic.desktop	23 Jul 2024 16:38:07 -0000
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=PC-BASIC
+GenericName=GW-BASIC compatible interpreter
+Exec=pcbasic
+Terminal=false
+Type=Application
+Icon=pcbasic
+Categories=Development;IDE;
Index: files/pcbasic.png
===================================================================
RCS file: files/pcbasic.png
diff -N files/pcbasic.png
Binary files /dev/null and pcbasic.png differ
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/lang/pcbasic/pkg/PLIST,v
retrieving revision 1.6
diff -u -p -u -r1.6 PLIST
--- pkg/PLIST	12 Oct 2023 17:26:56 -0000	1.6
+++ pkg/PLIST	23 Jul 2024 16:38:07 -0000
@@ -448,3 +448,7 @@ lib/python${MODPY_VERSION}/site-packages
 lib/python${MODPY_VERSION}/site-packages/pcbasic/lib/
 lib/python${MODPY_VERSION}/site-packages/pcbasic/lib/README.md
 lib/python${MODPY_VERSION}/site-packages/pcbasic/main.py
+share/applications/
+share/applications/pcbasic.desktop
+share/pixmaps/
+share/pixmaps/pcbasic.png

Reply via email to