diff --git a/devel/Makefile b/devel/Makefile --- 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 --- /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 --- /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 --- 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 @@ 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 \