git: 0adb087f9b58 - main - games/dMagnetic: Update to 0.37

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Mon, 22 May 2023 06:49:12 UTC
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0adb087f9b58eb26ab71ccc1344c7c73f98c2ae9

commit 0adb087f9b58eb26ab71ccc1344c7c73f98c2ae9
Author:     Thomas Dettbarn <dettus@dettus.net>
AuthorDate: 2023-05-19 11:43:22 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2023-05-22 06:44:12 +0000

    games/dMagnetic: Update to 0.37
    
    ChangeLog: https://dettus.net/dMagnetic
    
    PR:             271487
    Reported by:    dettus@dettus.net (maintainer)
---
 games/dMagnetic/Makefile             | 11 +----------
 games/dMagnetic/distinfo             |  6 +++---
 games/dMagnetic/files/patch-Makefile | 34 ++++++++++++++++++++++++++++++++++
 games/dMagnetic/pkg-plist            |  1 +
 4 files changed, 39 insertions(+), 13 deletions(-)

diff --git a/games/dMagnetic/Makefile b/games/dMagnetic/Makefile
index e77d36105f9a..6568a074ce1b 100644
--- a/games/dMagnetic/Makefile
+++ b/games/dMagnetic/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	dMagnetic
-DISTVERSION=	0.36
+DISTVERSION=	0.37
 CATEGORIES=	games
 MASTER_SITES=	https://www.dettus.net/dMagnetic/
 DISTNAME=	${PORTNAME}_${DISTVERSION}
@@ -16,13 +16,4 @@ USES=		tar:bz2
 TEST_ENV=	SHA256_CMD=sha256
 TEST_TARGET=	check
 
-do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
-	${INSTALL_MAN} ${WRKSRC}/dMagneticini.5 ${STAGEDIR}${MANPREFIX}/man/man5
-	${INSTALL_MAN} ${WRKSRC}/dMagnetic.6 ${STAGEDIR}${MANPREFIX}/man/man6
-	${MKDIR} ${STAGEDIR}/${DATADIR}
-	${INSTALL_DATA} ${WRKSRC}/dMagnetic.ini ${STAGEDIR}/${DATADIR}
-	${MKDIR} ${STAGEDIR}/${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}/${DOCSDIR}
-
 .include <bsd.port.mk>
diff --git a/games/dMagnetic/distinfo b/games/dMagnetic/distinfo
index c9526b1e8774..f6e141de2ed2 100644
--- a/games/dMagnetic/distinfo
+++ b/games/dMagnetic/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1674941662
-SHA256 (dMagnetic_0.36.tar.bz2) = 0b7614e47f6711ce58cfbee7188d56d17a92c104004f51ab61798b318e897d8f
-SIZE (dMagnetic_0.36.tar.bz2) = 93540
+TIMESTAMP = 1684423448
+SHA256 (dMagnetic_0.37.tar.bz2) = ad812bb515bc972e23930d643d5abeaed971d550768b1b3f371bd0f72c3c2e89
+SIZE (dMagnetic_0.37.tar.bz2) = 93405
diff --git a/games/dMagnetic/files/patch-Makefile b/games/dMagnetic/files/patch-Makefile
new file mode 100644
index 000000000000..db2655eb70ff
--- /dev/null
+++ b/games/dMagnetic/files/patch-Makefile
@@ -0,0 +1,34 @@
+--- Makefile.orig	2023-05-18 14:19:05.665542600 +0200
++++ Makefile	2023-05-19 11:21:17.325551500 +0200
+@@ -25,10 +25,11 @@
+ 
+ PREFIX?=/usr/local
+ DESTDIR?=/usr/local
+-MYPREFIX=$(DESTDIR)
++MYPREFIX=$(DESTDIR)$(PREFIX)
+ INSTALLBIN=$(MYPREFIX)/bin
+-INSTALLSHARE=$(MYPREFIX)/share/games
+-INSTALLMAN=$(MYPREFIX)/share/man
++INSTALLSHARE=$(MYPREFIX)/share
++INSTALLDOC=$(MYPREFIX)/share/doc
++INSTALLMAN=$(MYPREFIX)/man
+ 
+ CC?=gcc
+ AR?=ar
+@@ -97,13 +98,14 @@
+ 	install -m 755 -d $(INSTALLBIN)
+ 	install -m 755 -d $(INSTALLMAN)/man5/
+ 	install -m 755 -d $(INSTALLMAN)/man6/
++	install -m 755 -d $(INSTALLDOC)/dMagnetic/
+ 	install -m 755 -d $(INSTALLSHARE)/dMagnetic/
+ 
+ 	install -m 755 -s dMagnetic $(INSTALLBIN)/dMagnetic
+ 	install -m 644 dMagneticini.5 $(INSTALLMAN)/man5/dMagneticini.5
+ 	install -m 644 dMagnetic.6 $(INSTALLMAN)/man6/dMagnetic.6
+-	install -m 644 README.txt $(INSTALLSHARE)/dMagnetic/README.txt
+-	install -m 644 LICENSE.txt $(INSTALLSHARE)/dMagnetic/LICENSE.txt
++	install -m 644 README.txt $(INSTALLDOC)/dMagnetic/README.txt
++	install -m 644 LICENSE.txt $(INSTALLDOC)/dMagnetic/LICENSE.txt
+ 	cp dMagnetic.ini $(INSTALLSHARE)/dMagnetic/
+ 
+ 
diff --git a/games/dMagnetic/pkg-plist b/games/dMagnetic/pkg-plist
index fd4d65f8da29..9d8e5ae09956 100644
--- a/games/dMagnetic/pkg-plist
+++ b/games/dMagnetic/pkg-plist
@@ -3,3 +3,4 @@ man/man5/dMagneticini.5.gz
 man/man6/dMagnetic.6.gz
 %%DATADIR%%/dMagnetic.ini
 %%DOCSDIR%%/README.txt
+%%DOCSDIR%%/LICENSE.txt