Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Feb 2023 12:42:43 GMT
From:      Gleb Popov <arrowd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 43f1b2df21bf - main - devel/appstream-qt: Create a port for Qt bindings to AppStream library.
Message-ID:  <202302131242.31DCghKc037133@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=43f1b2df21bf86dc5b795bf0ceb840ea8df77f14

commit 43f1b2df21bf86dc5b795bf0ceb840ea8df77f14
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2023-02-09 13:39:46 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2023-02-13 12:42:38 +0000

    devel/appstream-qt: Create a port for Qt bindings to AppStream library.
    
    Reviewed by:    tcberner
    
    Sponsored by:   Serenity Cybersecurity, LLC
    
    Differential Revision: https://reviews.freebsd.org/D38462
---
 devel/Makefile               |  1 +
 devel/appstream-qt/Makefile  | 22 ++++++++++++++++++++++
 devel/appstream-qt/pkg-plist | 26 ++++++++++++++++++++++++++
 devel/appstream/Makefile     | 13 ++++++++-----
 4 files changed, 57 insertions(+), 5 deletions(-)

diff --git a/devel/Makefile b/devel/Makefile
index 5f21c99b0a8f..51839dec375a 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -171,6 +171,7 @@
     SUBDIR += app-builder
     SUBDIR += appstream
     SUBDIR += appstream-glib
+    SUBDIR += appstream-qt
     SUBDIR += apr1
     SUBDIR += arachne-pnr
     SUBDIR += arcanist
diff --git a/devel/appstream-qt/Makefile b/devel/appstream-qt/Makefile
new file mode 100644
index 000000000000..69f354e4a134
--- /dev/null
+++ b/devel/appstream-qt/Makefile
@@ -0,0 +1,22 @@
+PKGNAMESUFFIX=	Qt
+
+COMMENT?=	Qt bindings to AppStream
+
+LIB_DEPENDS=	libappstream.so:devel/appstream
+
+USES=		qt:5
+
+USE_QT=		core buildtools:build qmake:build testlib:build
+
+MESON_ARGS=	-Dqt=true
+
+MASTERDIR=	${.CURDIR}/../appstream
+PLIST=		${.CURDIR}/pkg-plist
+
+post-install:
+	# remove files belonging to the master port
+	${XARGS} -L 1 -I % ${RM} -rf ${STAGEDIR}${PREFIX}/% < ${MASTERDIR}/pkg-plist
+	${FIND} ${STAGEDIR}${PREFIX} -empty -delete
+	${RM} -rf ${STAGEDIR}${PREFIX}/etc ${STAGEDIR}${PREFIX}/man
+
+.include	"${MASTERDIR}/Makefile"
diff --git a/devel/appstream-qt/pkg-plist b/devel/appstream-qt/pkg-plist
new file mode 100644
index 000000000000..e701a08f5b01
--- /dev/null
+++ b/devel/appstream-qt/pkg-plist
@@ -0,0 +1,26 @@
+include/AppStreamQt/appstreamqt_export.h
+include/AppStreamQt/bundle.h
+include/AppStreamQt/category.h
+include/AppStreamQt/component.h
+include/AppStreamQt/contentrating.h
+include/AppStreamQt/icon.h
+include/AppStreamQt/image.h
+include/AppStreamQt/launchable.h
+include/AppStreamQt/metadata.h
+include/AppStreamQt/pool.h
+include/AppStreamQt/provided.h
+include/AppStreamQt/relation.h
+include/AppStreamQt/release.h
+include/AppStreamQt/screenshot.h
+include/AppStreamQt/spdx.h
+include/AppStreamQt/suggested.h
+include/AppStreamQt/systeminfo.h
+include/AppStreamQt/translation.h
+include/AppStreamQt/utils.h
+include/AppStreamQt/version.h
+include/AppStreamQt/video.h
+lib/cmake/AppStreamQt/AppStreamQtConfig.cmake
+lib/cmake/AppStreamQt/AppStreamQtConfigVersion.cmake
+lib/libAppStreamQt.so
+lib/libAppStreamQt.so.0.16.0
+lib/libAppStreamQt.so.2
diff --git a/devel/appstream/Makefile b/devel/appstream/Makefile
index ca5a5a69bfcf..f4b7c37c3a49 100644
--- a/devel/appstream/Makefile
+++ b/devel/appstream/Makefile
@@ -1,10 +1,13 @@
-PORTNAME=	AppStream
+# Some knobs are defined with ?= and += to allow them
+# being overriden by devel/appstream-qt slave port
+
+PORTNAME?=	AppStream
 DISTVERSION=	0.16.0
 CATEGORIES=	devel
 MASTER_SITES=	https://www.freedesktop.org/software/${PORTNAME:tl}/releases/
 
 MAINTAINER=	desktop@FreeBSD.org
-COMMENT=	Machine-readable software metadata for desktop environments
+COMMENT?=	Machine-readable software metadata for desktop environments
 WWW=		https://www.freedesktop.org/wiki/Distributions/AppStream/
 
 LICENSE=	GPLv2+ LGPL21+
@@ -14,20 +17,20 @@ BUILD_DEPENDS=	docbook-xsl>=0:textproc/docbook-xsl \
 		gperf>0:devel/gperf \
 		itstool:textproc/itstool \
 		lmdb>0:databases/lmdb
-LIB_DEPENDS=	libcurl.so:ftp/curl \
+LIB_DEPENDS?=	libcurl.so:ftp/curl \
 		liblmdb.so:databases/lmdb \
 		libstemmer.so:textproc/snowballstemmer \
 		libxmlb.so:textproc/libxmlb \
 		libyaml.so:textproc/libyaml
 
-USES=		gettext gnome localbase:ldflags meson pkgconfig \
+USES+=		gettext gnome localbase:ldflags meson pkgconfig \
 		python:3.6+,build tar:xz vala:build
 
 USE_GNOME=	glib20 introspection:build libxml2 libxslt
 USE_LDCONFIG=	yes
 
 CFLAGS+=	-D__BSD_VISIBLE=1
-MESON_ARGS=	-Dstemming=true \
+MESON_ARGS+=	-Dstemming=true \
 		-Dvapi=true \
 		-Dapidocs=false \
 		-Dinstall-docs=false \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302131242.31DCghKc037133>