pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/appstream
Module Name: pkgsrc
Committed By: wiz
Date: Sun Oct 15 08:00:14 UTC 2023
Added Files:
pkgsrc/devel/appstream: DESCR Makefile PLIST buildlink3.mk distinfo
pkgsrc/devel/appstream/patches: patch-meson.build
patch-src_as-system-info.c
Log Message:
devel/appstream: import appstream-0.16.3
AppStream is a collaborative effort for making machine-readable
software metadata easily available to programs that need it. It
is part of the Freedesktop ecosystem and provides a convenient way
to retrieve information about available software, making it one of
the building blocks for modern software centers.
AppStream consists of a specification to describe individual software
component metadata in XML (so-called MetaInfo files), as well as
a derived specification for a metadata-collection format to provide
a list of these metadata entries in XML or YAML for easy consumption
by software centers and other tools which need to know about
available software in a repository. In addition to the metadata
specification, AppStream specifies a set of related features to
help providing better metadata for software repositories (primarily
in Linux distributions). This reference implementation of AppStream
provides a shared library to work with these metadata files, features
to index and query their data quickly, as well as other useful
related functionality to make building programs which work with
software metadata very easy.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/appstream/DESCR \
pkgsrc/devel/appstream/Makefile pkgsrc/devel/appstream/PLIST \
pkgsrc/devel/appstream/buildlink3.mk pkgsrc/devel/appstream/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/appstream/patches/patch-meson.build \
pkgsrc/devel/appstream/patches/patch-src_as-system-info.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/devel/appstream/DESCR
diff -u /dev/null pkgsrc/devel/appstream/DESCR:1.1
--- /dev/null Sun Oct 15 08:00:14 2023
+++ pkgsrc/devel/appstream/DESCR Sun Oct 15 08:00:14 2023
@@ -0,0 +1,19 @@
+AppStream is a collaborative effort for making machine-readable
+software metadata easily available to programs that need it. It
+is part of the Freedesktop ecosystem and provides a convenient way
+to retrieve information about available software, making it one of
+the building blocks for modern software centers.
+
+AppStream consists of a specification to describe individual software
+component metadata in XML (so-called MetaInfo files), as well as
+a derived specification for a metadata-collection format to provide
+a list of these metadata entries in XML or YAML for easy consumption
+by software centers and other tools which need to know about
+available software in a repository. In addition to the metadata
+specification, AppStream specifies a set of related features to
+help providing better metadata for software repositories (primarily
+in Linux distributions). This reference implementation of AppStream
+provides a shared library to work with these metadata files, features
+to index and query their data quickly, as well as other useful
+related functionality to make building programs which work with
+software metadata very easy.
Index: pkgsrc/devel/appstream/Makefile
diff -u /dev/null pkgsrc/devel/appstream/Makefile:1.1
--- /dev/null Sun Oct 15 08:00:14 2023
+++ pkgsrc/devel/appstream/Makefile Sun Oct 15 08:00:14 2023
@@ -0,0 +1,43 @@
+# $NetBSD: Makefile,v 1.1 2023/10/15 08:00:14 wiz Exp $
+
+DISTNAME= appstream-0.16.3
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=ximion/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/ximion/appstream/
+COMMENT= Tools and libraries to work with AppStream metadata
+LICENSE= gnu-lgpl-v2.1
+
+#TOOL_DEPENDS+= cmake-[0-9]*:../../devel/cmake
+TOOL_DEPENDS+= gperf-[0-9]*:../../devel/gperf
+TOOL_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt
+TOOL_DEPENDS+= gtk-doc-[0-9]*:../../textproc/gtk-doc
+
+USE_PKGLOCALEDIR= yes
+USE_LANGUAGES= c c++
+USE_TOOLS+= itstool pkg-config
+
+MESON_ARGS+= -Dsystemd=false
+# for running a tool during the build
+MAKE_ENV+= LD_LIBRARY_PATH=${WRKSRC}/output/src
+
+PKGCONFIG_OVERRIDE+= output/meson-private/appstream.pc
+PKGCONFIG_OVERRIDE_STAGE= post-configure
+
+INSTALLATION_DIRS+= share/examples/appstream
+
+CONF_FILES+= ${PREFIX}/share/examples/appstream/appstream.conf ${PKG_SYSCONFDIR}/appstream.conf
+
+post-install:
+ ${MV} ${DESTDIR}${PKG_SYSCONFDIR}/appstream.conf ${DESTDIR}${PREFIX}/share/examples/appstream
+
+.include "../../devel/meson/build.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../devel/gobject-introspection/buildlink3.mk"
+.include "../../textproc/libstemmer/buildlink3.mk"
+.include "../../textproc/libxmlb/buildlink3.mk"
+.include "../../textproc/libyaml/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/appstream/PLIST
diff -u /dev/null pkgsrc/devel/appstream/PLIST:1.1
--- /dev/null Sun Oct 15 08:00:14 2023
+++ pkgsrc/devel/appstream/PLIST Sun Oct 15 08:00:14 2023
@@ -0,0 +1,146 @@
+@comment $NetBSD: PLIST,v 1.1 2023/10/15 08:00:14 wiz Exp $
+bin/appstreamcli
+include/appstream/appstream.h
+include/appstream/as-agreement-section.h
+include/appstream/as-agreement.h
+include/appstream/as-artifact.h
+include/appstream/as-branding.h
+include/appstream/as-bundle.h
+include/appstream/as-category-gir.h
+include/appstream/as-category.h
+include/appstream/as-checksum.h
+include/appstream/as-component.h
+include/appstream/as-content-rating.h
+include/appstream/as-context.h
+include/appstream/as-distro-details.h
+include/appstream/as-enum-types.h
+include/appstream/as-enums.h
+include/appstream/as-icon.h
+include/appstream/as-image.h
+include/appstream/as-issue.h
+include/appstream/as-launchable.h
+include/appstream/as-metadata.h
+include/appstream/as-pool-gir.h
+include/appstream/as-pool.h
+include/appstream/as-provided.h
+include/appstream/as-relation.h
+include/appstream/as-release.h
+include/appstream/as-review.h
+include/appstream/as-screenshot.h
+include/appstream/as-spdx.h
+include/appstream/as-suggested.h
+include/appstream/as-system-info.h
+include/appstream/as-translation.h
+include/appstream/as-utils.h
+include/appstream/as-validator-issue.h
+include/appstream/as-validator.h
+include/appstream/as-vercmp.h
+include/appstream/as-version.h
+include/appstream/as-video.h
+lib/girepository-1.0/AppStream-1.0.typelib
+lib/libappstream.so
+lib/libappstream.so.${PKGVERSION}
+lib/libappstream.so.4
+lib/pkgconfig/appstream.pc
+man/man1/appstreamcli.1
+share/doc/appstream/html/api/annotation-glossary.html
+share/doc/appstream/html/api/api-index-full.html
+share/doc/appstream/html/api/appstream-AsAgreement.html
+share/doc/appstream/html/api/appstream-AsAgreementSection.html
+share/doc/appstream/html/api/appstream-AsArtifact.html
+share/doc/appstream/html/api/appstream-AsBranding.html
+share/doc/appstream/html/api/appstream-AsBundle.html
+share/doc/appstream/html/api/appstream-AsCategory.html
+share/doc/appstream/html/api/appstream-AsChecksum.html
+share/doc/appstream/html/api/appstream-AsComponent.html
+share/doc/appstream/html/api/appstream-AsContentRating.html
+share/doc/appstream/html/api/appstream-AsContext.html
+share/doc/appstream/html/api/appstream-AsDistroDetails.html
+share/doc/appstream/html/api/appstream-AsIcon.html
+share/doc/appstream/html/api/appstream-AsImage.html
+share/doc/appstream/html/api/appstream-AsIssue.html
+share/doc/appstream/html/api/appstream-AsLaunchable.html
+share/doc/appstream/html/api/appstream-AsMetadata.html
+share/doc/appstream/html/api/appstream-AsPool.html
+share/doc/appstream/html/api/appstream-AsProvided.html
+share/doc/appstream/html/api/appstream-AsRelation.html
+share/doc/appstream/html/api/appstream-AsRelease.html
+share/doc/appstream/html/api/appstream-AsReview.html
+share/doc/appstream/html/api/appstream-AsScreenshot.html
+share/doc/appstream/html/api/appstream-AsSuggested.html
+share/doc/appstream/html/api/appstream-AsSystemInfo.html
+share/doc/appstream/html/api/appstream-AsTranslation.html
+share/doc/appstream/html/api/appstream-AsValidator.html
+share/doc/appstream/html/api/appstream-AsValidatorIssue.html
+share/doc/appstream/html/api/appstream-AsVideo.html
+share/doc/appstream/html/api/appstream-as-enums.html
+share/doc/appstream/html/api/appstream-as-spdx.html
+share/doc/appstream/html/api/appstream-as-utils.html
+share/doc/appstream/html/api/appstream.devhelp2
+share/doc/appstream/html/api/ch01.html
+share/doc/appstream/html/api/deprecated-api-index.html
+share/doc/appstream/html/api/home.png
+share/doc/appstream/html/api/index.html
+share/doc/appstream/html/api/left-insensitive.png
+share/doc/appstream/html/api/left.png
+share/doc/appstream/html/api/manpages.html
+share/doc/appstream/html/api/re32.html
+share/doc/appstream/html/api/re33.html
+share/doc/appstream/html/api/right-insensitive.png
+share/doc/appstream/html/api/right.png
+share/doc/appstream/html/api/style.css
+share/doc/appstream/html/api/up-insensitive.png
+share/doc/appstream/html/api/up.png
+share/examples/appstream/appstream.conf
+share/gettext/its/metainfo.its
+share/gettext/its/metainfo.loc
+share/gir-1.0/AppStream-1.0.gir
+share/gtk-doc/html/appstream
+share/installed-tests/appstream/metainfo-validate.test
+share/locale/ain/LC_MESSAGES/appstream.mo
+share/locale/ar/LC_MESSAGES/appstream.mo
+share/locale/bn/LC_MESSAGES/appstream.mo
+share/locale/bn_BD/LC_MESSAGES/appstream.mo
+share/locale/ca/LC_MESSAGES/appstream.mo
+share/locale/ckb/LC_MESSAGES/appstream.mo
+share/locale/cs/LC_MESSAGES/appstream.mo
+share/locale/da/LC_MESSAGES/appstream.mo
+share/locale/de/LC_MESSAGES/appstream.mo
+share/locale/en_GB/LC_MESSAGES/appstream.mo
+share/locale/eo/LC_MESSAGES/appstream.mo
+share/locale/es/LC_MESSAGES/appstream.mo
+share/locale/et/LC_MESSAGES/appstream.mo
+share/locale/eu/LC_MESSAGES/appstream.mo
+share/locale/fi/LC_MESSAGES/appstream.mo
+share/locale/fr/LC_MESSAGES/appstream.mo
+share/locale/gd/LC_MESSAGES/appstream.mo
+share/locale/gl/LC_MESSAGES/appstream.mo
+share/locale/he/LC_MESSAGES/appstream.mo
+share/locale/hi/LC_MESSAGES/appstream.mo
+share/locale/hr/LC_MESSAGES/appstream.mo
+share/locale/hu/LC_MESSAGES/appstream.mo
+share/locale/id/LC_MESSAGES/appstream.mo
+share/locale/it/LC_MESSAGES/appstream.mo
+share/locale/ja/LC_MESSAGES/appstream.mo
+share/locale/ka/LC_MESSAGES/appstream.mo
+share/locale/ko/LC_MESSAGES/appstream.mo
+share/locale/lt/LC_MESSAGES/appstream.mo
+share/locale/nb/LC_MESSAGES/appstream.mo
+share/locale/nl/LC_MESSAGES/appstream.mo
+share/locale/oc/LC_MESSAGES/appstream.mo
+share/locale/pl/LC_MESSAGES/appstream.mo
+share/locale/pt/LC_MESSAGES/appstream.mo
+share/locale/pt_BR/LC_MESSAGES/appstream.mo
+share/locale/ro/LC_MESSAGES/appstream.mo
+share/locale/rom/LC_MESSAGES/appstream.mo
+share/locale/ru/LC_MESSAGES/appstream.mo
+share/locale/sk/LC_MESSAGES/appstream.mo
+share/locale/sl/LC_MESSAGES/appstream.mo
+share/locale/sr/LC_MESSAGES/appstream.mo
+share/locale/sr@latin/LC_MESSAGES/appstream.mo
+share/locale/sv/LC_MESSAGES/appstream.mo
+share/locale/tr/LC_MESSAGES/appstream.mo
+share/locale/uk/LC_MESSAGES/appstream.mo
+share/locale/zh_CN/LC_MESSAGES/appstream.mo
+share/locale/zh_TW/LC_MESSAGES/appstream.mo
+share/metainfo/org.freedesktop.appstream.cli.metainfo.xml
Index: pkgsrc/devel/appstream/buildlink3.mk
diff -u /dev/null pkgsrc/devel/appstream/buildlink3.mk:1.1
--- /dev/null Sun Oct 15 08:00:14 2023
+++ pkgsrc/devel/appstream/buildlink3.mk Sun Oct 15 08:00:14 2023
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1 2023/10/15 08:00:14 wiz Exp $
+
+BUILDLINK_TREE+= appstream
+
+.if !defined(APPSTREAM_BUILDLINK3_MK)
+APPSTREAM_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.appstream+= appstream>=0.16.3
+BUILDLINK_PKGSRCDIR.appstream?= ../../devel/appstream
+
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../textproc/libstemmer/buildlink3.mk"
+.include "../../textproc/libxmlb/buildlink3.mk"
+.include "../../textproc/libyaml/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.endif # APPSTREAM_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -appstream
Index: pkgsrc/devel/appstream/distinfo
diff -u /dev/null pkgsrc/devel/appstream/distinfo:1.1
--- /dev/null Sun Oct 15 08:00:14 2023
+++ pkgsrc/devel/appstream/distinfo Sun Oct 15 08:00:14 2023
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2023/10/15 08:00:14 wiz Exp $
+
+BLAKE2s (appstream-0.16.3.tar.gz) = c724e52e9194151ebf057155d3c4949f9e49321944ad1261535423dd8dc344df
+SHA512 (appstream-0.16.3.tar.gz) = c40897811e6ab47e919dca761d1a4ed9c30664b29d126358176995c80400997de61403d59ddcfac1fbdd2d946cb0cd62fed00e8249184bb713867ce7439b6c32
+Size (appstream-0.16.3.tar.gz) = 3724307 bytes
+SHA1 (patch-meson.build) = a2c1881e332add40b68373f972f2d95ecff15101
+SHA1 (patch-src_as-system-info.c) = da0849420d753589cb0044c0446bdffffaf5f4a9
Index: pkgsrc/devel/appstream/patches/patch-meson.build
diff -u /dev/null pkgsrc/devel/appstream/patches/patch-meson.build:1.1
--- /dev/null Sun Oct 15 08:00:14 2023
+++ pkgsrc/devel/appstream/patches/patch-meson.build Sun Oct 15 08:00:14 2023
@@ -0,0 +1,17 @@
+$NetBSD: patch-meson.build,v 1.1 2023/10/15 08:00:14 wiz Exp $
+
+Disable _POSIX_C_SOURCE=200809L because it removes symlink
+from the namespace on NetBSD.
+
+--- meson.build.orig 2023-08-22 21:51:55.000000000 +0000
++++ meson.build
+@@ -133,7 +133,8 @@ add_project_arguments(
+ )
+
+ # Vendor extensions in system headers
+-add_project_arguments('-D_POSIX_C_SOURCE=200809L', language: 'c')
++# disables symlink() on NetBSD
++#add_project_arguments('-D_POSIX_C_SOURCE=200809L', language: 'c')
+
+ if cc.get_id() == 'clang'
+ # Clang doesn't understand autofree helpers on GMutexLocker and thinks
Index: pkgsrc/devel/appstream/patches/patch-src_as-system-info.c
diff -u /dev/null pkgsrc/devel/appstream/patches/patch-src_as-system-info.c:1.1
--- /dev/null Sun Oct 15 08:00:14 2023
+++ pkgsrc/devel/appstream/patches/patch-src_as-system-info.c Sun Oct 15 08:00:14 2023
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_as-system-info.c,v 1.1 2023/10/15 08:00:14 wiz Exp $
+
+Add NetBSD support.
+
+--- src/as-system-info.c.orig 2023-08-22 21:51:55.000000000 +0000
++++ src/as-system-info.c
+@@ -45,7 +45,7 @@
+
+ #if defined(__linux__)
+ #include <sys/sysinfo.h>
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__NetBSD__)
+ #include <sys/types.h>
+ #include <sys/sysctl.h>
+ #endif
+@@ -405,7 +405,7 @@ as_get_physical_memory_total (void)
+ if (si.mem_unit > 0)
+ return (si.totalram * si.mem_unit) / MB_IN_BYTES;
+ return 0;
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__NetBSD__)
+ unsigned long physmem;
+ sysctl ((int[]){ CTL_HW, HW_PHYSMEM }, 2, &physmem, &(size_t){ sizeof (physmem) }, NULL, 0);
+ return physmem / MB_IN_BYTES;
Home |
Main Index |
Thread Index |
Old Index