Skip to content

Commit

Permalink
devel/appstream-compose: + Generates AppStream XML files based on LOC…
Browse files Browse the repository at this point in the history
…ALBASE contents.

Sponsored by:	Serenity Cybersecurity, LLC
  • Loading branch information
arrowd committed Feb 20, 2023
1 parent 74cd514 commit aa7aa94
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 1 deletion.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -170,6 +170,7 @@
SUBDIR += apitrace
SUBDIR += app-builder
SUBDIR += appstream
SUBDIR += appstream-compose
SUBDIR += appstream-glib
SUBDIR += appstream-qt
SUBDIR += apr1
Expand Down
21 changes: 21 additions & 0 deletions 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"
20 changes: 20 additions & 0 deletions 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
2 changes: 1 addition & 1 deletion devel/appstream/Makefile
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions 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)

0 comments on commit aa7aa94

Please sign in to comment.