pkgsrc-WIP-changes archive

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

LXQT: libqtxdg



Module Name:	pkgsrc-wip
Committed By:	pin <voidpin%protonmail.com@localhost>
Pushed By:	pin
Date:		Wed Nov 13 10:43:25 2024 +0100
Changeset:	b64a94ba72f28b7d18d72f114bdfca8516562290

Modified Files:
	Makefile
Added Files:
	libqtxdg/COMMIT_MSG
	libqtxdg/DESCR
	libqtxdg/Makefile
	libqtxdg/PLIST
	libqtxdg/buildlink3.mk
	libqtxdg/distinfo
	libqtxdg/patches/patch-CMakeLists.txt

Log Message:
LXQT: libqtxdg

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b64a94ba72f28b7d18d72f114bdfca8516562290

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

diffstat:
 Makefile                              |  1 +
 libqtxdg/COMMIT_MSG                   |  5 ++++
 libqtxdg/DESCR                        |  1 +
 libqtxdg/Makefile                     | 46 +++++++++++++++++++++++++++++++++++
 libqtxdg/PLIST                        | 45 ++++++++++++++++++++++++++++++++++
 libqtxdg/buildlink3.mk                | 16 ++++++++++++
 libqtxdg/distinfo                     |  6 +++++
 libqtxdg/patches/patch-CMakeLists.txt | 15 ++++++++++++
 8 files changed, 135 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index e2ceb3db4a..98af0119ca 100644
--- a/Makefile
+++ b/Makefile
@@ -2074,6 +2074,7 @@ SUBDIR+=	libpsurface
 SUBDIR+=	libpthread-stubs
 SUBDIR+=	libpusb
 SUBDIR+=	libqd
+SUBDIR+=	libqtxdg
 SUBDIR+=	libquantum
 SUBDIR+=	libraw1394
 SUBDIR+=	libre
diff --git a/libqtxdg/COMMIT_MSG b/libqtxdg/COMMIT_MSG
new file mode 100644
index 0000000000..f4481ea96c
--- /dev/null
+++ b/libqtxdg/COMMIT_MSG
@@ -0,0 +1,5 @@
+x11/libqtxdg: update to 4.1.0
+
+libqtxdg-4.1.0 / 2024-11-05
+============================
+ * Bumped the version to 4.1.0.
diff --git a/libqtxdg/DESCR b/libqtxdg/DESCR
new file mode 100644
index 0000000000..b2efa3de8f
--- /dev/null
+++ b/libqtxdg/DESCR
@@ -0,0 +1 @@
+Library providing freedesktop.org specs implementations for Qt.
diff --git a/libqtxdg/Makefile b/libqtxdg/Makefile
new file mode 100644
index 0000000000..cd0dd54219
--- /dev/null
+++ b/libqtxdg/Makefile
@@ -0,0 +1,46 @@
+# $NetBSD: Makefile,v 1.39 2024/11/01 12:55:07 wiz Exp $
+
+DISTNAME=	libqtxdg-4.1.0
+CATEGORIES=	x11
+MASTER_SITES=	${MASTER_SITE_GITHUB:=lxqt/}
+GITHUB_RELEASE=	${PKGVERSION_NOREV}
+EXTRACT_SUFX=	.tar.xz
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/lxqt/libqtxdg/
+COMMENT=	Qt implementation of freedesktop.org xdg specs
+LICENSE=	gnu-lgpl-v2.1
+
+USE_TOOLS+=	pkg-config
+USE_LANGUAGES=	c c++
+
+QTXDG_CONF=		share/lxqt
+PKG_SYSCONFSUBDIR=	xdg
+
+SUBST_CLASSES+=		prefix
+SUBST_MESSAGE.prefix=	Fixing paths.
+SUBST_STAGE.prefix=	pre-configure
+SUBST_FILES.prefix=	src/qtxdg/xdgdirs.cpp
+SUBST_SED.prefix=	-e 's,/etc/xdg,${PKG_SYSCONFDIR},g'
+SUBST_SED.prefix+=	-e 's,/usr/share,${PREFIX}/share,g'
+
+CONF_FILES=	${QTXDG_CONF}/lxqt-qtxdg.conf \
+		${PKG_SYSCONFDIR}/lxqt-qtxdg.conf
+CONF_FILES+=	${QTXDG_CONF}/qtxdg.conf \
+		${PKG_SYSCONFDIR}/qtxdg.conf
+
+BUILDLINK_TRANSFORM.SunOS+=	rm:-fuse-linker-plugin
+
+TOOL_DEPENDS+=	lxqt-build-tools>=2.1.0:../../devel/lxqt-build-tools
+TOOL_DEPENDS+=	qt6-qttools-[0-9]*:../../devel/qt6-qttools
+
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} != "NetBSD" || ${X11_TYPE} == "modular"
+DEPENDS+=	{xterm,mxterm}-[0-9]*:../../x11/xterm
+.endif
+
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../x11/qt6-qtbase/buildlink3.mk"
+.include "../../graphics/qt6-qtsvg/buildlink3.mk"
+.include "../../devel/cmake/build.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/libqtxdg/PLIST b/libqtxdg/PLIST
new file mode 100644
index 0000000000..d062973fc0
--- /dev/null
+++ b/libqtxdg/PLIST
@@ -0,0 +1,45 @@
+@comment $NetBSD: PLIST,v 1.6 2024/08/02 16:54:22 pin Exp $
+include/qt6xdg/XdgAction
+include/qt6xdg/XdgAutoStart
+include/qt6xdg/XdgDefaultApps
+include/qt6xdg/XdgDesktopFile
+include/qt6xdg/XdgDirs
+include/qt6xdg/XdgIcon
+include/qt6xdg/XdgMenu
+include/qt6xdg/XdgMenuWidget
+include/qt6xdg/XdgMimeApps
+include/qt6xdg/XdgMimeType
+include/qt6xdg/XmlHelper
+include/qt6xdg/xdgaction.h
+include/qt6xdg/xdgautostart.h
+include/qt6xdg/xdgdefaultapps.h
+include/qt6xdg/xdgdesktopfile.h
+include/qt6xdg/xdgdirs.h
+include/qt6xdg/xdgicon.h
+include/qt6xdg/xdgmacros.h
+include/qt6xdg/xdgmenu.h
+include/qt6xdg/xdgmenuwidget.h
+include/qt6xdg/xdgmimeapps.h
+include/qt6xdg/xdgmimetype.h
+include/qt6xdg/xmlhelper.h
+include/qt6xdgiconloader/${PKGVERSION}/private/xdgiconloader/xdgiconloader_p.h
+include/qt6xdgiconloader/xdgiconloader_export.h
+lib/libQt6Xdg.so
+lib/libQt6Xdg.so.4
+lib/libQt6Xdg.so.${PKGVERSION}
+lib/libQt6XdgIconLoader.so
+lib/libQt6XdgIconLoader.so.4
+lib/libQt6XdgIconLoader.so.${PKGVERSION}
+lib/pkgconfig/Qt6Xdg.pc
+lib/pkgconfig/Qt6XdgIconLoader.pc
+qt6/plugins/iconengines/libQt6XdgIconPlugin.so
+share/cmake/qt6xdg/qt6xdg-config-version.cmake
+share/cmake/qt6xdg/qt6xdg-config.cmake
+share/cmake/qt6xdg/qt6xdg-targets-release.cmake
+share/cmake/qt6xdg/qt6xdg-targets.cmake
+share/cmake/qt6xdgiconloader/qt6xdgiconloader-config-version.cmake
+share/cmake/qt6xdgiconloader/qt6xdgiconloader-config.cmake
+share/cmake/qt6xdgiconloader/qt6xdgiconloader-targets-release.cmake
+share/cmake/qt6xdgiconloader/qt6xdgiconloader-targets.cmake
+share/lxqt/lxqt-qtxdg.conf
+share/lxqt/qtxdg.conf
diff --git a/libqtxdg/buildlink3.mk b/libqtxdg/buildlink3.mk
new file mode 100644
index 0000000000..c96c211560
--- /dev/null
+++ b/libqtxdg/buildlink3.mk
@@ -0,0 +1,16 @@
+# $NetBSD: buildlink3.mk,v 1.30 2024/11/01 12:55:07 wiz Exp $
+
+BUILDLINK_TREE+=	libqtxdg
+
+.if !defined(LIBQTXDG_BUILDLINK3_MK)
+LIBQTXDG_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libqtxdg+=	libqtxdg>=4.1.0
+BUILDLINK_PKGSRCDIR.libqtxdg?=		../../x11/libqtxdg
+
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../x11/qt6-qtbase/buildlink3.mk"
+.include "../../graphics/qt6-qtsvg/buildlink3.mk"
+.endif	# LIBQTXDG_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-libqtxdg
diff --git a/libqtxdg/distinfo b/libqtxdg/distinfo
new file mode 100644
index 0000000000..465951a869
--- /dev/null
+++ b/libqtxdg/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.14 2024/10/31 15:21:01 abs Exp $
+
+BLAKE2s (libqtxdg-4.1.0.tar.xz) = 6230f021a81298b79605752f0019f0ccc44e218abc298ac5bf97e739039ad2e3
+SHA512 (libqtxdg-4.1.0.tar.xz) = 6c28b611d32284e28982b89658c051297ed739d35e9d795b837e822d93651a4c282695c7fa8fe27861cd1e5703578b8dcc28711ba1ad0a73cc3686f0eef461ea
+Size (libqtxdg-4.1.0.tar.xz) = 71980 bytes
+SHA1 (patch-CMakeLists.txt) = 62a8164883471f77dcef08160c0eabf6348b5a2e
diff --git a/libqtxdg/patches/patch-CMakeLists.txt b/libqtxdg/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000000..a73bd59deb
--- /dev/null
+++ b/libqtxdg/patches/patch-CMakeLists.txt
@@ -0,0 +1,15 @@
+$NetBSD: patch-CMakeLists.txt,v 1.2 2024/08/02 16:54:22 pin Exp $
+
+Install config files to pkgsrc standard location.
+
+--- CMakeLists.txt.orig	2024-05-27 07:57:49.656959023 +0000
++++ CMakeLists.txt
+@@ -68,7 +68,7 @@ message(STATUS "Building ${PROJECT_NAME}
+ if (QTXDG_INSTALL_DEFAPPS_CONFIG)
+     file(GLOB QTXDG_CONFIG_FILES config/*.conf)
+     set(QTXDG_DEFAPPS_CONF_INSTALL_DIR
+-        "${LXQT_ETC_XDG_DIR}" CACHE PATH "Path to qtxdg default apps conf files install dir")
++        "${CMAKE_INSTALL_FULL_DATADIR}/lxqt" CACHE PATH "Path to qtxdg default apps conf files install dir")
+     mark_as_advanced(QTXDG_DEFAPPS_CONF_INSTALL_DIR)
+ endif()
+ 


Home | Main Index | Thread Index | Old Index