SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

72
devel/appstream-glib/Makefile Executable file
View file

@ -0,0 +1,72 @@
COMMENT= library for AppStream metadata
DISTNAME= appstream-glib-0.8.2
EXTRACT_SUFX= .tar.xz
SHARED_LIBS += appstream-glib 3.7 # 8.0.10
CATEGORIES= devel
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
HOMEPAGE= http://people.freedesktop.org/~hughsient/appstream-glib/
# LGPLv2.1
PERMIT_PACKAGE= Yes
WANTLIB += archive c cairo curl fontconfig freetype gdk-3 gdk_pixbuf-2.0
WANTLIB += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 intl json-glib-1.0
WANTLIB += pango-1.0 stemmer uuid yaml-0
MASTER_SITES= http://people.freedesktop.org/~hughsient/appstream-glib/releases/
MODULES= devel/meson \
textproc/intltool \
x11/gnome
MODGNOME_TOOLS= docbook gobject-introspection
# C11
COMPILER= base-clang ports-clang
COMPILER_LANGS= c
BUILD_DEPENDS= devel/gperf
LIB_DEPENDS= archivers/libarchive \
devel/json-glib \
devel/libyaml \
net/curl \
sysutils/e2fsprogs \
textproc/libstemmer \
x11/gtk+3
CONFIGURE_ARGS= -Drpm=false
# disable meson's default of using "-Wl,--as-needed" on ld.bfd arches;
# build failures due to undefined references are often seen.
.include <bsd.port.arch.mk>
.if !${PROPERTIES:Mlld}
CONFIGURE_ARGS += -Db_asneeded=false
.endif
# needed for `make test'
PORTHOME= ${WRKDIST}
pre-configure:
${SUBST_CMD} ${WRKSRC}/client/as-compose.c
cd ${WRKSRC} && sed -i "s,/usr/share,${LOCALBASE}/share,g" \
client/as-util.c \
libappstream-glib/as-utils.c \
libappstream-glib/as-self-test.c \
libappstream-builder/plugins/asb-plugin-desktop.c \
libappstream-builder/plugins/asb-plugin-hardcoded.c \
libappstream-builder/plugins/asb-plugin-shell-extension.c \
libappstream-builder/plugins/asb-plugin-appdata.c \
libappstream-builder/plugins/asb-plugin-font.c \
libappstream-builder/plugins/asb-plugin-gettext.c \
libappstream-builder/plugins/asb-plugin-icon.c \
libappstream-builder/asb-utils.c \
libappstream-builder/asb-self-test.c
###
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
SHA256 (appstream-glib-0.8.2.tar.xz) = cSVlAK3VBI1vCIeJBHCLPQw4dfQC4K3NNY6R1H3Ni5Y=
SIZE (appstream-glib-0.8.2.tar.xz) = 2320880

View file

@ -0,0 +1,12 @@
Index: client/as-compose.c
--- client/as-compose.c.orig
+++ client/as-compose.c
@@ -364,7 +364,7 @@ main (int argc, char **argv)
/* set defaults */
if (prefix == NULL)
- prefix = g_strdup ("/usr");
+ prefix = g_strdup ("${LOCALBASE}");
if (output_dir == NULL)
output_dir = g_build_filename (prefix, "share/app-info/xmls", NULL);
if (icons_dir == NULL)

View file

@ -0,0 +1,12 @@
This library provides GObjects and helper methods to make it easy to
read and write AppStream metadata. It also provides a simple DOM
implementation that makes it easy to edit nodes and convert to and from
the standardized XML representation.
What this library allows you to do:
* Read and write compressed AppStream XML files
* Add and search for applications in an application store
* Get screenshot image data and release announcements
* Easily retrieve the best application data for the current locale
* Efficiently interface with more heavy-weight parsers like expat

View file

@ -0,0 +1,91 @@
@bin bin/appstream-builder
@bin bin/appstream-compose
@bin bin/appstream-util
include/libappstream-glib/
include/libappstream-glib/appstream-glib.h
include/libappstream-glib/as-agreement-section.h
include/libappstream-glib/as-agreement.h
include/libappstream-glib/as-app-builder.h
include/libappstream-glib/as-app.h
include/libappstream-glib/as-bundle.h
include/libappstream-glib/as-checksum.h
include/libappstream-glib/as-content-rating.h
include/libappstream-glib/as-enums.h
include/libappstream-glib/as-format.h
include/libappstream-glib/as-icon.h
include/libappstream-glib/as-image.h
include/libappstream-glib/as-inf.h
include/libappstream-glib/as-launchable.h
include/libappstream-glib/as-markup.h
include/libappstream-glib/as-monitor.h
include/libappstream-glib/as-node.h
include/libappstream-glib/as-problem.h
include/libappstream-glib/as-profile.h
include/libappstream-glib/as-provide.h
include/libappstream-glib/as-release.h
include/libappstream-glib/as-require.h
include/libappstream-glib/as-review.h
include/libappstream-glib/as-screenshot.h
include/libappstream-glib/as-store.h
include/libappstream-glib/as-suggest.h
include/libappstream-glib/as-tag.h
include/libappstream-glib/as-translation.h
include/libappstream-glib/as-utils.h
include/libappstream-glib/as-version.h
lib/asb-plugins-5/
@so lib/asb-plugins-5/libasb_plugin_appdata.so
@so lib/asb-plugins-5/libasb_plugin_desktop.so
@so lib/asb-plugins-5/libasb_plugin_font.so
@so lib/asb-plugins-5/libasb_plugin_gettext.so
@so lib/asb-plugins-5/libasb_plugin_hardcoded.so
@so lib/asb-plugins-5/libasb_plugin_icon.so
@so lib/asb-plugins-5/libasb_plugin_shell_extension.so
lib/girepository-1.0/AppStreamGlib-1.0.typelib
@lib lib/libappstream-glib.so.${LIBappstream-glib_VERSION}
lib/pkgconfig/appstream-glib.pc
@man man/man1/appstream-builder.1
@man man/man1/appstream-compose.1
@man man/man1/appstream-util.1
share/aclocal/appdata-xml.m4
share/aclocal/appstream-xml.m4
share/bash-completion/completions/appstream-builder
share/bash-completion/completions/appstream-util
share/gettext/its/appdata.its
share/gettext/its/appdata.loc
share/gir-1.0/AppStreamGlib-1.0.gir
share/installed-tests/
share/installed-tests/appstream-glib/
share/installed-tests/appstream-glib/appdata-validate.test
share/installed-tests/appstream-glib/destdir-check.test
share/locale/ca/LC_MESSAGES/appstream-glib.mo
share/locale/cs/LC_MESSAGES/appstream-glib.mo
share/locale/da/LC_MESSAGES/appstream-glib.mo
share/locale/de/LC_MESSAGES/appstream-glib.mo
share/locale/en_GB/LC_MESSAGES/appstream-glib.mo
share/locale/es/LC_MESSAGES/appstream-glib.mo
share/locale/fa/LC_MESSAGES/appstream-glib.mo
share/locale/fi/LC_MESSAGES/appstream-glib.mo
share/locale/fr/LC_MESSAGES/appstream-glib.mo
share/locale/fur/LC_MESSAGES/appstream-glib.mo
share/locale/gl/LC_MESSAGES/appstream-glib.mo
share/locale/hr/LC_MESSAGES/appstream-glib.mo
share/locale/hu/LC_MESSAGES/appstream-glib.mo
share/locale/id/LC_MESSAGES/appstream-glib.mo
share/locale/it/LC_MESSAGES/appstream-glib.mo
share/locale/ka/LC_MESSAGES/appstream-glib.mo
share/locale/ko/LC_MESSAGES/appstream-glib.mo
share/locale/lt/LC_MESSAGES/appstream-glib.mo
share/locale/oc/LC_MESSAGES/appstream-glib.mo
share/locale/pl/LC_MESSAGES/appstream-glib.mo
share/locale/pt/LC_MESSAGES/appstream-glib.mo
share/locale/pt_BR/LC_MESSAGES/appstream-glib.mo
share/locale/ru/LC_MESSAGES/appstream-glib.mo
share/locale/sk/LC_MESSAGES/appstream-glib.mo
share/locale/sl/LC_MESSAGES/appstream-glib.mo
share/locale/sr/LC_MESSAGES/appstream-glib.mo
share/locale/sr@latin/LC_MESSAGES/appstream-glib.mo
share/locale/sv/LC_MESSAGES/appstream-glib.mo
share/locale/tr/LC_MESSAGES/appstream-glib.mo
share/locale/uk/LC_MESSAGES/appstream-glib.mo
share/locale/zh_CN/LC_MESSAGES/appstream-glib.mo
share/locale/zh_TW/LC_MESSAGES/appstream-glib.mo