pkgsrc-WIP-changes archive

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

Add libqtxdg: part of LXQt-2.0.x



Module Name:	pkgsrc-wip
Committed By:	pin <voidpin%protonmail.com@localhost>
Pushed By:	pin
Date:		Mon May 27 10:09:45 2024 +0200
Changeset:	fc5859219f4c54e07250ffacc5140f3dd62c5e3c

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

Log Message:
Add libqtxdg: part of LXQt-2.0.x

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

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

diffstat:
 Makefile                              |  1 +
 libqtxdg/DESCR                        |  1 +
 libqtxdg/Makefile                     | 52 +++++++++++++++++++++++++++++++++++
 libqtxdg/PLIST                        | 45 ++++++++++++++++++++++++++++++
 libqtxdg/buildlink3.mk                | 16 +++++++++++
 libqtxdg/distinfo                     |  6 ++++
 libqtxdg/patches/patch-CMakeLists.txt | 15 ++++++++++
 7 files changed, 136 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 36071fec68..9e2dff49b0 100644
--- a/Makefile
+++ b/Makefile
@@ -2023,6 +2023,7 @@ SUBDIR+=	libpthread-stubs
 SUBDIR+=	libpusb
 SUBDIR+=	libqd
 SUBDIR+=	libquantum
+SUBDIR+=	libqtxdg
 SUBDIR+=	libraw1394
 SUBDIR+=	libre
 SUBDIR+=	librem
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..ba93173fdc
--- /dev/null
+++ b/libqtxdg/Makefile
@@ -0,0 +1,52 @@
+# $NetBSD: Makefile,v 1.33 2024/04/06 08:07:03 wiz Exp $
+
+DISTNAME=	libqtxdg-4.0.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_CMAKE=	yes
+USE_TOOLS+=	pkg-config
+USE_LANGUAGES=	c c++
+
+CONFIGURE_DIRS=	build
+CMAKE_ARG_PATH=	..
+
+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
+
+pre-configure:
+	${MKDIR} -p ${WRKSRC}/build
+
+TOOL_DEPENDS+=	lxqt-build-tools>=2.0.0:../../wip/lxqt2-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 "../../mk/bsd.pkg.mk"
diff --git a/libqtxdg/PLIST b/libqtxdg/PLIST
new file mode 100644
index 0000000000..e084867492
--- /dev/null
+++ b/libqtxdg/PLIST
@@ -0,0 +1,45 @@
+@comment $NetBSD$
+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..b89bc45caa
--- /dev/null
+++ b/libqtxdg/buildlink3.mk
@@ -0,0 +1,16 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	libqtxdg
+
+.if !defined(LIBQTXDG_BUILDLINK3_MK)
+LIBQTXDG_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libqtxdg+=	libqtxdg>=4.0.0
+BUILDLINK_PKGSRCDIR.libqtxdg?=		../../wip/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..d46382c054
--- /dev/null
+++ b/libqtxdg/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.12 2023/11/09 03:26:34 gutteridge Exp $
+
+BLAKE2s (libqtxdg-4.0.0.tar.xz) = af4e6dec46b35a6271f133ec98425110d0e661adac4b1b43ad8ce2da0a96fc60
+SHA512 (libqtxdg-4.0.0.tar.xz) = 4a8a32968e74ed54d700cf65c9cfb238001f58d93a9e374e18d60023615d6277f80459dd8477205ce31a6d8caf798cde70b91681df80b1bff3b754e0586868d2
+Size (libqtxdg-4.0.0.tar.xz) = 71508 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..12666a5720
--- /dev/null
+++ b/libqtxdg/patches/patch-CMakeLists.txt
@@ -0,0 +1,15 @@
+$NetBSD$
+
+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