Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libmoe/, dev-libs/libmoe/files/
Date: Sun, 27 Nov 2016 12:23:42
Message-Id: 1480249406.df2460aa832676540ed57acf37794250809c77c8.soap@gentoo
1 commit: df2460aa832676540ed57acf37794250809c77c8
2 Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
3 AuthorDate: Sun Nov 27 10:58:44 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 27 12:23:26 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df2460aa
7
8 dev-libs/libmoe: EAPI 6, build with GCC-5
9
10 Gentoo-bug: 570144
11
12 Package-Manager: portage-2.3.0
13 Closes: https://github.com/gentoo/gentoo/pull/2931
14
15 dev-libs/libmoe/files/libmoe-1.5.8-gcc5.patch | 61 +++++++++++++++++++++++++++
16 dev-libs/libmoe/libmoe-1.5.8-r3.ebuild | 40 ++++++++++++++++++
17 2 files changed, 101 insertions(+)
18
19 diff --git a/dev-libs/libmoe/files/libmoe-1.5.8-gcc5.patch b/dev-libs/libmoe/files/libmoe-1.5.8-gcc5.patch
20 new file mode 100644
21 index 00000000..a990a37
22 --- /dev/null
23 +++ b/dev-libs/libmoe/files/libmoe-1.5.8-gcc5.patch
24 @@ -0,0 +1,61 @@
25 +diff -urN b/iso2mb.c c/iso2mb.c
26 +--- b/iso2mb.c 2015-07-06 21:38:49.129658661 +0000
27 ++++ c/iso2mb.c 2015-07-07 18:50:17.211540572 +0000
28 +@@ -513,11 +513,11 @@
29 + return wc;
30 + }
31 +
32 +-mb_wchar_t
33 ++__attribute__ ((gnu_inline)) __inline__ mb_wchar_t
34 + mb_encode_to_wchar(mb_info_t *info)
35 + MB_ENCODE_TO_WCHAR
36 +
37 +-mb_wchar_t
38 ++__attribute__ ((gnu_inline)) __inline__ mb_wchar_t
39 + mb_fetch_wchar(mb_info_t *info)
40 + MB_FETCH_WCHAR
41 +
42 +diff -urN b/mb2iso.c c/mb2iso.c
43 +--- b/mb2iso.c 2015-07-06 21:38:49.133658683 +0000
44 ++++ c/mb2iso.c 2015-07-07 19:07:47.583244156 +0000
45 +@@ -900,7 +900,7 @@
46 + return n;
47 + }
48 +
49 +-size_t
50 ++__attribute__ ((gnu_inline)) __inline__ size_t
51 + mb_store_wchar(mb_wchar_t enc, mb_info_t *info)
52 + MB_STORE_WCHAR
53 +
54 +diff -urN b/mb.h c/mb.h
55 +--- b/mb.h 2015-07-06 21:38:49.133658683 +0000
56 ++++ c/mb.h 2015-07-07 18:50:17.211540572 +0000
57 +@@ -434,7 +434,7 @@
58 + }
59 +
60 + #ifdef __GNUC__
61 +-extern __inline__ mb_wchar_t mb_encode_to_wchar(mb_info_t *info) MB_ENCODE_TO_WCHAR
62 ++extern __attribute__ ((gnu_inline)) __inline__ mb_wchar_t mb_encode_to_wchar(mb_info_t *info);
63 + #else
64 + extern mb_wchar_t mb_encode_to_wchar(mb_info_t *info);
65 + #endif
66 +@@ -449,7 +449,7 @@
67 + }
68 +
69 + #ifdef __GNUC__
70 +-extern __inline__ mb_wchar_t mb_fetch_wchar(mb_info_t *info) MB_FETCH_WCHAR
71 ++extern __attribute__ ((gnu_inline)) __inline__ mb_wchar_t mb_fetch_wchar(mb_info_t *info);
72 + #else
73 + extern mb_wchar_t mb_fetch_wchar(mb_info_t *info);
74 + #endif
75 +@@ -552,7 +552,7 @@
76 + }
77 +
78 + #ifdef __GNUC__
79 +-extern __inline__ size_t mb_store_wchar(mb_wchar_t enc, mb_info_t *info) MB_STORE_WCHAR
80 ++extern __attribute__ ((gnu_inline)) __inline__ size_t mb_store_wchar(mb_wchar_t enc, mb_info_t *info);
81 + #else
82 + extern size_t mb_store_wchar(mb_wchar_t enc, mb_info_t *info);
83 + #endif
84 +
85 +
86
87 diff --git a/dev-libs/libmoe/libmoe-1.5.8-r3.ebuild b/dev-libs/libmoe/libmoe-1.5.8-r3.ebuild
88 new file mode 100644
89 index 00000000..061edf9
90 --- /dev/null
91 +++ b/dev-libs/libmoe/libmoe-1.5.8-r3.ebuild
92 @@ -0,0 +1,40 @@
93 +# Copyright 1999-2016 Gentoo Foundation
94 +# Distributed under the terms of the GNU General Public License v2
95 +# $Id$
96 +
97 +EAPI=6
98 +
99 +inherit toolchain-funcs
100 +
101 +DESCRIPTION="Multi octet character encoding handling library"
102 +HOMEPAGE="http://pub.ks-and-ks.ne.jp/prog/libmoe/"
103 +SRC_URI="http://pub.ks-and-ks.ne.jp/prog/pub/${P}.tar.gz"
104 +
105 +LICENSE="public-domain"
106 +SLOT="0"
107 +KEYWORDS="~amd64 ~ppc ~sparc ~x86"
108 +IUSE=""
109 +
110 +RDEPEND="dev-lang/perl"
111 +DEPEND="${RDEPEND}"
112 +
113 +HTML_DOCS=( libmoe.shtml )
114 +PATCHES=(
115 + "${FILESDIR}/${P}-gentoo.patch"
116 + "${FILESDIR}/${P}-makefile.patch"
117 + "${FILESDIR}/${P}-gcc5.patch" # taken from Debian
118 +)
119 +
120 +src_prepare() {
121 + default
122 +
123 + sed -i \
124 + -e "/^PREFIX=/s:=.*:=${EPREFIX}/usr:" \
125 + -e "/^LIBSODIR=/s:=.*:=\$\{PREFIX}/$(get_libdir):" \
126 + -e "/^MANDIR=/s:=.*:=\$\{PREFIX}/share/man:" \
127 + -e "/^CF=/s:=:=${CFLAGS} :" \
128 + -e "/^LF=/s:=:=${LDFLAGS} :" \
129 + -e "s:=gcc:=$(tc-getCC):" \
130 + -e "/^AR=/s:=ar:=$(tc-getAR):" \
131 + Makefile || die
132 +}