pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/editors/featherpad



Module Name:    pkgsrc
Committed By:   pin
Date:           Tue Sep  5 13:43:15 UTC 2023

Modified Files:
        pkgsrc/editors/featherpad: DESCR Makefile
Added Files:
        pkgsrc/editors/featherpad: options.mk

Log Message:
editors/featherpad: enable Qt6

... and switch to it by default.
Thanks to wiz@ for a quick review.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/editors/featherpad/DESCR
cvs rdiff -u -r1.40 -r1.41 pkgsrc/editors/featherpad/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/editors/featherpad/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/editors/featherpad/DESCR
diff -u pkgsrc/editors/featherpad/DESCR:1.1 pkgsrc/editors/featherpad/DESCR:1.2
--- pkgsrc/editors/featherpad/DESCR:1.1 Thu Feb 13 03:12:18 2020
+++ pkgsrc/editors/featherpad/DESCR     Tue Sep  5 13:43:15 2023
@@ -1,4 +1,4 @@
-FeatherPad is a lightweight Qt5 plain-text editor.
+FeatherPad is a lightweight Qt5/Qt6 plain-text editor.
 It is independent of any desktop environment and has:
   * Drag-and-drop support, including tab detachment and attachment;
   * X11 virtual desktop awareness;

Index: pkgsrc/editors/featherpad/Makefile
diff -u pkgsrc/editors/featherpad/Makefile:1.40 pkgsrc/editors/featherpad/Makefile:1.41
--- pkgsrc/editors/featherpad/Makefile:1.40     Tue Jun 13 10:56:34 2023
+++ pkgsrc/editors/featherpad/Makefile  Tue Sep  5 13:43:15 2023
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.40 2023/06/13 10:56:34 pin Exp $
+# $NetBSD: Makefile,v 1.41 2023/09/05 13:43:15 pin Exp $
 
 VERSION=       1.4.1
 DISTNAME=      FeatherPad-V${VERSION}
 PKGNAME=       featherpad-${VERSION}
+PKGREVISION=    1
 CATEGORIES=    editors
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=tsujan/}
 GITHUB_TAG=    V${PKGVERSION_NOREV}
@@ -13,23 +14,14 @@ COMMENT=    Lightweight Qt5 plain-text edit
 LICENSE=       gnu-gpl-v3
 
 WRKSRC=                ${WRKDIR}/FeatherPad-${VERSION}
-USE_CMAKE=     yes
 USE_TOOLS+=    pkg-config
 USE_LANGUAGES= c c++
 
-CONFIGURE_DIRS=        build
-CMAKE_ARG_PATH=        ..
+.include "options.mk"
 
-pre-configure:
-       ${MKDIR} -p ${WRKSRC}/build
-
-TOOL_DEPENDS+= qt5-qttools-[0-9]*:../../x11/qt5-qttools
-
-.include "../../x11/qt5-qtbase/buildlink3.mk"
-.include "../../x11/qt5-qtx11extras/buildlink3.mk"
-.include "../../x11/qt5-qtsvg/buildlink3.mk"
 .include "../../textproc/hunspell/buildlink3.mk"
 .include "../../x11/libX11/buildlink3.mk"
 .include "../../x11/libXext/buildlink3.mk"
 .include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../devel/cmake/build.mk"
 .include "../../mk/bsd.pkg.mk"

Added files:

Index: pkgsrc/editors/featherpad/options.mk
diff -u /dev/null pkgsrc/editors/featherpad/options.mk:1.1
--- /dev/null   Tue Sep  5 13:43:15 2023
+++ pkgsrc/editors/featherpad/options.mk        Tue Sep  5 13:43:15 2023
@@ -0,0 +1,22 @@
+# $NetBSD: options.mk,v 1.1 2023/09/05 13:43:15 pin Exp $
+
+PKG_OPTIONS_VAR=               PKG_OPTIONS.featherpad
+PKG_OPTIONS_OPTIONAL_GROUPS=   gui
+PKG_OPTIONS_GROUP.gui=         qt5 qt6
+PKG_SUGGESTED_OPTIONS=         qt6
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mqt5)
+TOOL_DEPENDS+= qt5-qttools-[0-9]*:../../x11/qt5-qttools
+.include "../../x11/qt5-qtbase/buildlink3.mk"
+.include "../../x11/qt5-qtx11extras/buildlink3.mk"
+.include "../../x11/qt5-qtsvg/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mqt6)
+CMAKE_ARGS+=   -DENABLE_QT5=OFF
+TOOL_DEPENDS+= qt6-qttools-[0-9]*:../../devel/qt6-qttools
+.include "../../x11/qt6-qtbase/buildlink3.mk"
+.include "../../graphics/qt6-qtsvg/buildlink3.mk"
+.endif



Home | Main Index | Thread Index | Old Index