Skip to content

Commit

Permalink
devel/appstream-qt: Create a port for Qt bindings to AppStream library.
Browse files Browse the repository at this point in the history
Reviewed by:	tcberner

Sponsored by:	Serenity Cybersecurity, LLC

Differential Revision: https://reviews.freebsd.org/D38462
  • Loading branch information
arrowd committed Feb 13, 2023
1 parent 82cb642 commit 43f1b2d
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 5 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -171,6 +171,7 @@
SUBDIR += app-builder
SUBDIR += appstream
SUBDIR += appstream-glib
SUBDIR += appstream-qt
SUBDIR += apr1
SUBDIR += arachne-pnr
SUBDIR += arcanist
Expand Down
22 changes: 22 additions & 0 deletions 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"
26 changes: 26 additions & 0 deletions 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
13 changes: 8 additions & 5 deletions 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+
Expand All @@ -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 \
Expand Down

0 comments on commit 43f1b2d

Please sign in to comment.