From nobody Mon Feb 13 12:42:43 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PFkWl481Sz3qTLy; Mon, 13 Feb 2023 12:42:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PFkWl3cTLz40Dt; Mon, 13 Feb 2023 12:42:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676292163; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YoeibsZUqI2vgCPNv9/sSb40TlFuBkrDCBVAE53JnWc=; b=odou7DBGE6lH18xr6eAEqT7pBGgVPOcFd4L+cCdSkoIRzWKoMKAA7+JrK/+GQWeteO4YCa 3z3nUZcyhccgOsJoMQtBeEcnW/S/H8nXdMlVVXFtUqvKspdNfVKDzPKAWt4jFObTacvAy+ DVPVu9+WqXi6gSKwDMKUJD9/cC1nQUuHXPzVOmh5nYQfxLH70N5N3HiGjvgHGxXAg9aZpM mNHuwGfLsLHzVQq1yRBoF0DFcSxSF3kfCVRGuhMtOrOyrhGo/0G306g+D/Ry5HXBWMH73v 6c0GI57rYrZ7fo36LE+CZ0i+O/0wC36150o5TrQWp59MnkbsJcYO5xRdgRU1uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676292163; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YoeibsZUqI2vgCPNv9/sSb40TlFuBkrDCBVAE53JnWc=; b=nHwnMUr/0POOqvYo5rLk9VmCw4I3EGPBmjLhVdtnjF3Ta+elKpEOBn2Q/IMicH/JLJwz/U pGk+sLrAazP8efuP+rEJQZods9NZRWuWhUnqqw1khtvNej3O8fqDPoekebsLCPILhYirMS /x+8HTOcTHN/X6dGzw/lQb0OUkJXHdutMwbGkmVWHdwswtttfZoHp4ejy18oV69I6DjD9D TkoeBKsKwPHGsxeZF5SwsUxABLPbnf9mpfXQJ0TazJJZVPof+shaoH3V6K3tNgZDAsY77A lx6mAgj51ho2HwfcvqSru5ylECHg30G/g8DC/U6xUc+Thv7Vo+EfzXinaJ3PrA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676292163; a=rsa-sha256; cv=none; b=vLBxbNCYNJWbsoG0nP/SviJep4X4qD1ZyfYqdWm8FCPsArPCP+hcpRSeYYVB7hNwISfVZk cJAVxQ50lu0eIdaYsY+em11CY8dvBteV9Lk/Chv84k5wBQmpeFYgtj8/zkMpLN3dbj/p8b jn91l33fI1ei1S29soN9oCRbr4LV55G6IcaNsUxUA6FYbNeKLFSE30+eqG9tjikxdv4C4F hOwDWjoic9vniUlZW9ZG+rvvoBeybNpOHJx7wMv54EBYGsHfixSzMI4xfwp05pzGFKyNzN 1+gZuMbr08hKV1LgVpLq+3uMwUGAS/825G0eRxdf4fKVFpGaa2Ik1yf1tDPA3g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PFkWl2dwVzJd8; Mon, 13 Feb 2023 12:42:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31DCghOb037134; Mon, 13 Feb 2023 12:42:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31DCghKc037133; Mon, 13 Feb 2023 12:42:43 GMT (envelope-from git) Date: Mon, 13 Feb 2023 12:42:43 GMT Message-Id: <202302131242.31DCghKc037133@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Gleb Popov Subject: git: 43f1b2df21bf - main - devel/appstream-qt: Create a port for Qt bindings to AppStream library. List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: arrowd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 43f1b2df21bf86dc5b795bf0ceb840ea8df77f14 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=43f1b2df21bf86dc5b795bf0ceb840ea8df77f14 commit 43f1b2df21bf86dc5b795bf0ceb840ea8df77f14 Author: Gleb Popov AuthorDate: 2023-02-09 13:39:46 +0000 Commit: Gleb Popov 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 \