Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-dev:musl commit in: app-office/liblangtag/files/, app-office/liblangtag/
Date: Sat, 02 May 2015 23:49:23
Message-Id: 1430610623.083c471384085bd67a1fe0b7a288a2f887d0798a.blueness@gentoo
1 commit: 083c471384085bd67a1fe0b7a288a2f887d0798a
2 Author: tt_1 <herrtimson <AT> yahoo <DOT> de>
3 AuthorDate: Sat May 2 23:50:23 2015 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sat May 2 23:50:23 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/hardened-dev.git/commit/?id=083c4713
7
8 app-office/liblangtag: bug #547368.
9
10 .../liblangtag/files/liblangtag-0.5.1-gcc45.patch | 30 ++++++++++++++
11 .../liblangtag/files/liblangtag-0.5.1-musl.patch | 11 ++++++
12 app-office/liblangtag/liblangtag-0.5.1-r99.ebuild | 46 ++++++++++++++++++++++
13 app-office/liblangtag/metadata.xml | 8 ++++
14 4 files changed, 95 insertions(+)
15
16 diff --git a/app-office/liblangtag/files/liblangtag-0.5.1-gcc45.patch b/app-office/liblangtag/files/liblangtag-0.5.1-gcc45.patch
17 new file mode 100644
18 index 0000000..61bd1d0
19 --- /dev/null
20 +++ b/app-office/liblangtag/files/liblangtag-0.5.1-gcc45.patch
21 @@ -0,0 +1,30 @@
22 +From 4a5ec00d229d9ccf293dc21ce64eb42de7e8118c Mon Sep 17 00:00:00 2001
23 +From: Jung-uk Kim <jkim@×××××××.org>
24 +Date: Thu, 9 May 2013 15:59:35 -0400
25 +Subject: [PATCH] Fix duplicate typedef introduced in 57c47aa.
26 +
27 +---
28 + liblangtag/lt-trie.c | 4 ++--
29 + 1 file changed, 2 insertions(+), 2 deletions(-)
30 +
31 +diff --git a/liblangtag/lt-trie.c b/liblangtag/lt-trie.c
32 +index d2162c9..301a6da 100644
33 +--- a/liblangtag/lt-trie.c
34 ++++ b/liblangtag/lt-trie.c
35 +@@ -33,11 +33,11 @@ struct _lt_trie_t {
36 + lt_iter_tmpl_t parent;
37 + lt_trie_node_t *root;
38 + };
39 +-typedef struct _lt_trie_iter_t {
40 ++struct _lt_trie_iter_t {
41 + lt_iter_t parent;
42 + lt_list_t *stack;
43 + lt_string_t *pos_str;
44 +-} lt_trie_iter_t;
45 ++};
46 +
47 + /*< private >*/
48 + static lt_trie_node_t *
49 +--
50 +1.8.2.3
51 +
52
53 diff --git a/app-office/liblangtag/files/liblangtag-0.5.1-musl.patch b/app-office/liblangtag/files/liblangtag-0.5.1-musl.patch
54 new file mode 100644
55 index 0000000..5caba76
56 --- /dev/null
57 +++ b/app-office/liblangtag/files/liblangtag-0.5.1-musl.patch
58 @@ -0,0 +1,11 @@
59 +diff -ur a/liblangtag-0.5.1/liblangtag/lt-string.h b/liblangtag-0.5.1/liblangtag/lt-string.h
60 +--- a/liblangtag-0.5.1/liblangtag/lt-string.h 2012-12-13 10:59:17.000000000 -0200
61 ++++ b/liblangtag-0.5.1/liblangtag/lt-string.h 2015-04-17 21:34:12.371262196 -0200
62 +@@ -18,6 +18,7 @@
63 + #define __LT_STRING_H__
64 +
65 + #include <liblangtag/lt-macros.h>
66 ++#include <sys/types.h>
67 +
68 + LT_BEGIN_DECLS
69 +
70
71 diff --git a/app-office/liblangtag/liblangtag-0.5.1-r99.ebuild b/app-office/liblangtag/liblangtag-0.5.1-r99.ebuild
72 new file mode 100644
73 index 0000000..fb10c99
74 --- /dev/null
75 +++ b/app-office/liblangtag/liblangtag-0.5.1-r99.ebuild
76 @@ -0,0 +1,46 @@
77 +# Copyright 1999-2013 Gentoo Foundation
78 +# Distributed under the terms of the GNU General Public License v2
79 +# $Header: /var/cvsroot/gentoo-x86/app-text/liblangtag/liblangtag-0.5.1.ebuild,v 1.5 2013/07/30 07:09:38 scarabeus Exp $
80 +
81 +EAPI=5
82 +
83 +inherit autotools-utils
84 +
85 +DESCRIPTION="An interface library to access tags for identifying languages"
86 +HOMEPAGE="http://tagoh.bitbucket.org/liblangtag/"
87 +SRC_URI="https://bitbucket.org/tagoh/${PN}/downloads/${P}.tar.bz2"
88 +
89 +LICENSE="|| ( LGPL-3 MPL-1.1 )"
90 +SLOT="0"
91 +KEYWORDS="amd64 ~arm ppc x86"
92 +IUSE="introspection static-libs test"
93 +
94 +RDEPEND="
95 + dev-libs/glib
96 + dev-libs/libxml2
97 + introspection? ( >=dev-libs/gobject-introspection-0.10.8 )"
98 +DEPEND="${RDEPEND}
99 + dev-libs/gobject-introspection-common
100 + sys-devel/gettext
101 + test? ( dev-libs/check )"
102 +
103 +# Upstream expect liblangtag to be installed when one runs tests...
104 +RESTRICT="test"
105 +
106 +PATCHES=(
107 + "${FILESDIR}/${P}-gcc45.patch"
108 + "${FILESDIR}/${P}-musl.patch"
109 +)
110 +
111 +src_configure() {
112 + local myeconfargs=(
113 + $(use_enable introspection)
114 + $(use_enable test)
115 + )
116 + autotools-utils_src_configure
117 +}
118 +
119 +src_install() {
120 + autotools-utils_src_install
121 + prune_libtool_files --all
122 +}
123
124 diff --git a/app-office/liblangtag/metadata.xml b/app-office/liblangtag/metadata.xml
125 new file mode 100644
126 index 0000000..5aa863f
127 --- /dev/null
128 +++ b/app-office/liblangtag/metadata.xml
129 @@ -0,0 +1,8 @@
130 +<?xml version="1.0" encoding="UTF-8"?>
131 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
132 +<pkgmetadata>
133 + <herd>openoffice</herd>
134 + <use>
135 + <flag name="introspection">Use <pkg>dev-libs/gobject-introspection</pkg> for introspection</flag>
136 + </use>
137 +</pkgmetadata>