Yet another switch from qt4 to qt5. Update qgit to the latest stable
version from github.

"QGit's project management has now moved to GitHub." --
http://libre.tibirna.org/

Tested on amd64 with some git repos.

OK?

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/qgit/Makefile,v
retrieving revision 1.16
diff -u -p -u -p -r1.16 Makefile
--- Makefile    12 Jul 2019 20:45:57 -0000      1.16
+++ Makefile    28 Jan 2020 06:02:59 -0000
@@ -1,34 +1,28 @@
 # $OpenBSD: Makefile,v 1.16 2019/07/12 20:45:57 sthen Exp $
 
-COMMENT =      qt git repository viewer
+COMMENT =      Qt git repository viewer
 
-# XXX also change MASTER_SITES when updating
-DISTNAME =     qgit-2.5
-REVISION =     1
+V =            2.9
+DISTNAME =     qgit-${V}
 
 CATEGORIES =   devel x11
 
-HOMEPAGE =     http://libre.tibirna.org/projects/qgit
+HOMEPAGE =     https://github.com/tibirna/qgit
 
 # GPLv2
 PERMIT_PACKAGE =       Yes
 
-WANTLIB += ICE QtGui SM X11 Xext Xi Xinerama Xrender c fontconfig
-WANTLIB += freetype m pthread ${COMPILER_LIBCXX}
+WANTLIB += ${COMPILER_LIBCXX} Qt5Core Qt5Gui Qt5Widgets c m
 
-COMPILER =             base-clang ports-gcc base-gcc
+MASTER_SITES = https://github.com/tibirna/qgit/archive/
 
-MASTER_SITES = http://libre.tibirna.org/attachments/download/9/
+MODULES =      devel/cmake \
+               x11/qt5
 
-MODULES =      devel/qmake x11/qt4
+RUN_DEPENDS =  devel/git \
+               devel/desktop-file-utils \
+               x11/gtk+3,-guic
 
-RUN_DEPENDS =  devel/git
-
-WRKSRC =       ${WRKDIR}/redivivus
-
-do-install:
-       ${INSTALL_PROGRAM} ${WRKBUILD}/bin/qgit ${PREFIX}/bin/
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/qgit/
-       ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/qgit/
+WRKSRC =       ${WRKDIR}/qgit-qgit-${V}
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/qgit/distinfo,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 distinfo
--- distinfo    19 Dec 2014 12:29:51 -0000      1.3
+++ distinfo    28 Jan 2020 06:02:59 -0000
@@ -1,2 +1,2 @@
-SHA256 (qgit-2.5.tar.gz) = JfHKKGDYQNh7mRnTT8OhsF1BY2ce2H0pw+SooJ4LJJk=
-SIZE (qgit-2.5.tar.gz) = 250855
+SHA256 (qgit-2.9.tar.gz) = aXiO/afUNNG8CUu0FL2SwmnceJQyYyBjRQCwXWPACOg=
+SIZE (qgit-2.9.tar.gz) = 263875
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/qgit/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 PLIST
--- pkg/PLIST   19 Dec 2014 12:29:51 -0000      1.2
+++ pkg/PLIST   28 Jan 2020 06:02:59 -0000
@@ -1,4 +1,13 @@
 @comment $OpenBSD: PLIST,v 1.2 2014/12/19 12:29:51 jca Exp $
 @bin bin/qgit
-share/doc/qgit/
-share/doc/qgit/README
+share/applications/
+share/applications/qgit.desktop
+share/icons/
+share/icons/hicolor/
+share/icons/hicolor/48x48/
+share/icons/hicolor/48x48/apps/
+share/icons/hicolor/48x48/apps/qgit.png
+share/metainfo/
+share/metainfo/qgit.appdata.xml
+@tag update-desktop-database
+@tag gtk-update-icon-cache %D/share/icons/hicolor

Reply via email to