Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Feb 2023 15:15:33 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: aa7aa9418206 - main - devel/appstream-compose: + Generates AppStream XML files based on LOCALBASE contents.
Message-ID:  <202302201515.31KFFXMW063732@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=aa7aa9418206216f97fbe133d6a87526e1f02938

commit aa7aa9418206216f97fbe133d6a87526e1f02938
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2023-02-18 11:34:09 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2023-02-20 15:15:24 +0000

    devel/appstream-compose: + Generates AppStream XML files based on LOCALBASE contents.
    
    Sponsored by:   Serenity Cybersecurity, LLC
---
 devel/Makefile                                  |  1 +
 devel/appstream-compose/Makefile                | 21 +++++++++++++++++++++
 devel/appstream-compose/pkg-plist               | 20 ++++++++++++++++++++
 devel/appstream/Makefile                        |  2 +-
 devel/appstream/files/patch-compose_meson.build | 11 +++++++++++
 5 files changed, 54 insertions(+), 1 deletion(-)

diff --git a/devel/Makefile b/devel/Makefile
index b06a274d37ec..1478b7f9038f 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -170,6 +170,7 @@
     SUBDIR += apitrace
     SUBDIR += app-builder
     SUBDIR += appstream
+    SUBDIR += appstream-compose
     SUBDIR += appstream-glib
     SUBDIR += appstream-qt
     SUBDIR += apr1
diff --git a/devel/appstream-compose/Makefile b/devel/appstream-compose/Makefile
new file mode 100644
index 000000000000..06b780de3734
--- /dev/null
+++ b/devel/appstream-compose/Makefile
@@ -0,0 +1,21 @@
+PORTREVISION=	0
+PKGNAMESUFFIX=	Compose
+
+COMMENT?=	AppStream Compose application and library
+
+LIB_DEPENDS=	libappstream.so:devel/appstream
+
+USE_GNOME=	cairo gdkpixbuf2 librsvg2 pango
+
+MESON_ARGS=	-Dcompose=true
+
+MASTERDIR=	${.CURDIR}/../../devel/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-compose/pkg-plist b/devel/appstream-compose/pkg-plist
new file mode 100644
index 000000000000..442967d66064
--- /dev/null
+++ b/devel/appstream-compose/pkg-plist
@@ -0,0 +1,20 @@
+include/appstream-compose/appstream-compose.h
+include/appstream-compose/asc-canvas.h
+include/appstream-compose/asc-compose.h
+include/appstream-compose/asc-directory-unit.h
+include/appstream-compose/asc-enums-types.h
+include/appstream-compose/asc-globals.h
+include/appstream-compose/asc-hint.h
+include/appstream-compose/asc-icon-policy.h
+include/appstream-compose/asc-image.h
+include/appstream-compose/asc-result.h
+include/appstream-compose/asc-unit.h
+include/appstream-compose/asc-utils.h
+lib/girepository-1.0/AppStreamCompose-1.0.typelib
+lib/libappstream-compose.so
+lib/libappstream-compose.so.0
+lib/libappstream-compose.so.0.16.0
+libdata/pkgconfig/appstream-compose.pc
+libexec/appstreamcli-compose
+share/gir-1.0/AppStreamCompose-1.0.gir
+share/metainfo/org.freedesktop.appstream.compose.metainfo.xml
diff --git a/devel/appstream/Makefile b/devel/appstream/Makefile
index b2107808fcd3..026b6693d5c4 100644
--- a/devel/appstream/Makefile
+++ b/devel/appstream/Makefile
@@ -27,7 +27,7 @@ LIB_DEPENDS?=	libcurl.so:ftp/curl \
 USES+=		gettext gnome localbase:ldflags meson pkgconfig \
 		python:3.6+,build tar:xz vala:build
 
-USE_GNOME=	glib20 introspection:build libxml2 libxslt
+USE_GNOME+=	glib20 introspection:build libxml2 libxslt
 USE_LDCONFIG=	yes
 
 CFLAGS+=	-D__BSD_VISIBLE=1
diff --git a/devel/appstream/files/patch-compose_meson.build b/devel/appstream/files/patch-compose_meson.build
new file mode 100644
index 000000000000..884872fcbf75
--- /dev/null
+++ b/devel/appstream/files/patch-compose_meson.build
@@ -0,0 +1,11 @@
+--- compose/meson.build.orig	2023-01-26 21:56:35 UTC
++++ compose/meson.build
+@@ -129,7 +129,7 @@ pc_fixup = run_command(sed_prog,
+ # builds using libappstream. Fix this issue by post-processing the file.
+ sed_prog = find_program('sed')
+ pc_fixup = run_command(sed_prog,
+-                       '-i',
++                       '-i.bak',
+                        '/^Requires.private\|^Libs.private/ d',
+                        join_paths(meson.project_build_root(), 'meson-private', 'appstream-compose.pc'),
+                        check: false)



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