Gentoo Archives: gentoo-commits

From: Aric Belsito <lluixhi@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: dev-libs/appstream-glib/files/, dev-libs/appstream-glib/
Date: Fri, 29 Jun 2018 21:42:55
Message-Id: 1530308549.a16515e5a86fcf9aebc5c7330ca34d6faac8c8c5.lluixhi@gentoo
1 commit: a16515e5a86fcf9aebc5c7330ca34d6faac8c8c5
2 Author: Aric Belsito <lluixhi <AT> gmail <DOT> com>
3 AuthorDate: Fri Jun 29 21:42:29 2018 +0000
4 Commit: Aric Belsito <lluixhi <AT> gmail <DOT> com>
5 CommitDate: Fri Jun 29 21:42:29 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=a16515e5
7
8 dev-libs/appstream-glib: new package
9
10 dev-libs/appstream-glib/Manifest | 1 +
11 .../appstream-glib/appstream-glib-0.7.9.ebuild | 67 ++++++++++++++++++++++
12 .../appstream-glib-0.7.9-missing-stdint_h.patch | 22 +++++++
13 dev-libs/appstream-glib/metadata.xml | 11 ++++
14 4 files changed, 101 insertions(+)
15
16 diff --git a/dev-libs/appstream-glib/Manifest b/dev-libs/appstream-glib/Manifest
17 new file mode 100644
18 index 0000000..5ac9a0b
19 --- /dev/null
20 +++ b/dev-libs/appstream-glib/Manifest
21 @@ -0,0 +1 @@
22 +DIST appstream-glib-0.7.9.tar.xz 2245728 BLAKE2B fb6f54329bed91f1acaa6218b111fd4527dff7ed412a89cb44a6e4f6cdfb7e0fe4e6f9fb37b6cdc2efa75164dccef323b6d7428a63b08369b941d36b0b9071f0 SHA512 d78cb6f11cad01d67cb33f16e987485177d20b78a8b21cfbabb64ce7b18b813c0d2d1de2faeea199fdc31d12633e899a5596a6cf133cb831a4377d641f79eb7d
23
24 diff --git a/dev-libs/appstream-glib/appstream-glib-0.7.9.ebuild b/dev-libs/appstream-glib/appstream-glib-0.7.9.ebuild
25 new file mode 100644
26 index 0000000..bd56c70
27 --- /dev/null
28 +++ b/dev-libs/appstream-glib/appstream-glib-0.7.9.ebuild
29 @@ -0,0 +1,67 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +inherit xdg meson
36 +
37 +DESCRIPTION="Provides GObjects and helper methods to read and write AppStream metadata"
38 +HOMEPAGE="https://people.freedesktop.org/~hughsient/appstream-glib/"
39 +SRC_URI="https://people.freedesktop.org/~hughsient/${PN}/releases/${P}.tar.xz"
40 +
41 +LICENSE="LGPL-2.1+"
42 +SLOT="0/8" # soname version
43 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
44 +IUSE="doc +introspection stemmer"
45 +
46 +RDEPEND="
47 + >=dev-libs/glib-2.45.8:2
48 + sys-apps/util-linux
49 + app-arch/libarchive
50 + >=net-libs/libsoup-2.51.92:2.4
51 + >=dev-libs/json-glib-1.1.2
52 + >=x11-libs/gdk-pixbuf-2.31.5:2[introspection?]
53 + app-arch/gcab
54 +
55 + x11-libs/gtk+:3
56 + >=media-libs/freetype-2.4:2
57 + >=media-libs/fontconfig-2.11:1.0
58 + dev-libs/libyaml
59 + stemmer? ( dev-libs/snowball-stemmer )
60 + x11-libs/pango
61 + introspection? ( >=dev-libs/gobject-introspection-0.9.8:= )
62 +"
63 +# libxml2 required for glib-compile-resources
64 +DEPEND="${RDEPEND}
65 + dev-util/gperf
66 +
67 + dev-libs/libxml2:2
68 + app-text/docbook-xml-dtd:4.2
69 + dev-libs/libxslt
70 + doc? (
71 + >=dev-util/gtk-doc-1.9
72 + app-text/docbook-xml-dtd:4.3
73 + )
74 + >=sys-devel/gettext-0.19.7
75 +"
76 +# ${PN} superseeds appdata-tools
77 +RDEPEND="${RDEPEND}
78 + !<dev-util/appdata-tools-0.1.8-r1
79 +"
80 +
81 +PATCHES=( "${FILESDIR}/${P}-missing-stdint_h.patch" )
82 +
83 +src_configure() {
84 + local emesonargs=(
85 + -Ddep11=true
86 + -Dbuilder=true
87 + -Drpm=false
88 + -Dalpm=false
89 + -Dfonts=true
90 + $(meson_use stemmer)
91 + -Dman=true
92 + $(meson_use doc gtk-doc)
93 + $(meson_use introspection)
94 + )
95 + meson_src_configure
96 +}
97
98 diff --git a/dev-libs/appstream-glib/files/appstream-glib-0.7.9-missing-stdint_h.patch b/dev-libs/appstream-glib/files/appstream-glib-0.7.9-missing-stdint_h.patch
99 new file mode 100644
100 index 0000000..fe4abc3
101 --- /dev/null
102 +++ b/dev-libs/appstream-glib/files/appstream-glib-0.7.9-missing-stdint_h.patch
103 @@ -0,0 +1,22 @@
104 +diff -Naur appstream-glib-0.7.9.orig/client/as-util.c appstream-glib-0.7.9/client/as-util.c
105 +--- appstream-glib-0.7.9.orig/client/as-util.c 2018-06-29 14:38:14.133404736 -0700
106 ++++ appstream-glib-0.7.9/client/as-util.c 2018-06-29 14:38:54.489404014 -0700
107 +@@ -26,6 +26,7 @@
108 + #include <glib-unix.h>
109 + #include <gio/gio.h>
110 +
111 ++#include <stdint.h>
112 + #include <appstream-glib.h>
113 + #include <archive_entry.h>
114 + #include <archive.h>
115 +diff -Naur appstream-glib-0.7.9.orig/libappstream-glib/as-utils.c appstream-glib-0.7.9/libappstream-glib/as-utils.c
116 +--- appstream-glib-0.7.9.orig/libappstream-glib/as-utils.c 2018-06-29 14:38:14.135404736 -0700
117 ++++ appstream-glib-0.7.9/libappstream-glib/as-utils.c 2018-06-29 14:38:37.927404310 -0700
118 +@@ -33,6 +33,7 @@
119 + #include "config.h"
120 +
121 + #include <fnmatch.h>
122 ++#include <stdint.h>
123 + #include <string.h>
124 + #include <archive_entry.h>
125 + #include <archive.h>
126
127 diff --git a/dev-libs/appstream-glib/metadata.xml b/dev-libs/appstream-glib/metadata.xml
128 new file mode 100644
129 index 0000000..03dc146
130 --- /dev/null
131 +++ b/dev-libs/appstream-glib/metadata.xml
132 @@ -0,0 +1,11 @@
133 +<?xml version="1.0" encoding="UTF-8"?>
134 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
135 +<pkgmetadata>
136 +<maintainer type="project">
137 + <email>gnome@g.o</email>
138 + <name>Gentoo GNOME Desktop</name>
139 +</maintainer>
140 +<use>
141 + <flag name="stemmer">Add word stemming via <pkg>dev-libs/snowball-stemmer</pkg>.</flag>
142 +</use>
143 +</pkgmetadata>