Gentoo Archives: gentoo-commits

From: Guillaume Horel <guillaume.horel@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-libs/utf8proc/, dev-libs/utf8proc/files/
Date: Mon, 27 Jan 2014 03:01:02
Message-Id: 1390763182.326596f002769e7a6a8d744b2c79ae7c2b2bb747.guillaume_horel@gentoo
1 commit: 326596f002769e7a6a8d744b2c79ae7c2b2bb747
2 Author: Uwe L. Korn <uwelk <AT> xhochy <DOT> com>
3 AuthorDate: Sun Jan 26 19:06:22 2014 +0000
4 Commit: Guillaume Horel <guillaume.horel <AT> gmail <DOT> com>
5 CommitDate: Sun Jan 26 19:06:22 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=326596f0
7
8 Add ebuild for utf8proc
9
10 Package-Manager: portage-2.2.7
11
12 ---
13 dev-libs/utf8proc/ChangeLog | 9 ++++++
14 .../utf8proc/files/utf8proc-1.1.6-buildflags.patch | 11 +++++++
15 .../utf8proc/files/utf8proc-1.1.6-soname.patch | 11 +++++++
16 dev-libs/utf8proc/metadata.xml | 5 +++
17 dev-libs/utf8proc/utf8proc-1.1.6.ebuild | 36 ++++++++++++++++++++++
18 5 files changed, 72 insertions(+)
19
20 diff --git a/dev-libs/utf8proc/ChangeLog b/dev-libs/utf8proc/ChangeLog
21 new file mode 100644
22 index 0000000..f859697
23 --- /dev/null
24 +++ b/dev-libs/utf8proc/ChangeLog
25 @@ -0,0 +1,9 @@
26 +# ChangeLog for dev-libs/utf8proc
27 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 +# $Header: $
29 +
30 +*utf8proc-1.1.6 (26 Jan 2014)
31 +
32 + 26 Jan 2014; <xhochy@g.o> +files/utf8proc-1.1.6-buildflags.patch,
33 + +files/utf8proc-1.1.6-soname.patch, +metadata.xml, +utf8proc-1.1.6.ebuild:
34 + Add ebuild for utf8proc
35
36 diff --git a/dev-libs/utf8proc/files/utf8proc-1.1.6-buildflags.patch b/dev-libs/utf8proc/files/utf8proc-1.1.6-buildflags.patch
37 new file mode 100644
38 index 0000000..d9ff3be
39 --- /dev/null
40 +++ b/dev-libs/utf8proc/files/utf8proc-1.1.6-buildflags.patch
41 @@ -0,0 +1,11 @@
42 +--- a/Makefile 2014-01-26 18:55:57.400996757 +0000
43 ++++ b/Makefile 2014-01-26 19:00:10.264164095 +0000
44 +@@ -3,7 +3,7 @@
45 +
46 + # settings
47 +
48 +-cflags = -O2 -std=c99 -pedantic -Wall -fpic $(CFLAGS)
49 ++cflags = -std=c99 -pedantic -fpic $(CFLAGS)
50 + cc = $(CC) $(cflags)
51 +
52 +
53
54 diff --git a/dev-libs/utf8proc/files/utf8proc-1.1.6-soname.patch b/dev-libs/utf8proc/files/utf8proc-1.1.6-soname.patch
55 new file mode 100644
56 index 0000000..c046370
57 --- /dev/null
58 +++ b/dev-libs/utf8proc/files/utf8proc-1.1.6-soname.patch
59 @@ -0,0 +1,11 @@
60 +--- a/Makefile 2014-01-26 19:01:17.723542649 +0000
61 ++++ b/Makefile 2014-01-26 19:02:24.532907919 +0000
62 +@@ -34,7 +34,7 @@
63 + ar rs libutf8proc.a utf8proc.o
64 +
65 + libutf8proc.so: utf8proc.o
66 +- $(cc) -shared -o libutf8proc.so utf8proc.o
67 ++ $(cc) -Wl,-soname,libutf8proc.so -shared -o libutf8proc.so utf8proc.o
68 + chmod a-x libutf8proc.so
69 +
70 + libutf8proc.dylib: utf8proc.o
71
72 diff --git a/dev-libs/utf8proc/metadata.xml b/dev-libs/utf8proc/metadata.xml
73 new file mode 100644
74 index 0000000..d369d06
75 --- /dev/null
76 +++ b/dev-libs/utf8proc/metadata.xml
77 @@ -0,0 +1,5 @@
78 +<?xml version="1.0" encoding="UTF-8"?>
79 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
80 +<pkgmetadata>
81 + <herd>sci</herd>
82 +</pkgmetadata>
83
84 diff --git a/dev-libs/utf8proc/utf8proc-1.1.6.ebuild b/dev-libs/utf8proc/utf8proc-1.1.6.ebuild
85 new file mode 100644
86 index 0000000..81df460
87 --- /dev/null
88 +++ b/dev-libs/utf8proc/utf8proc-1.1.6.ebuild
89 @@ -0,0 +1,36 @@
90 +# Copyright 1999-2014 Gentoo Foundation
91 +# Distributed under the terms of the GNU General Public License v2
92 +# $Header: $
93 +
94 +EAPI=5
95 +
96 +inherit eutils
97 +
98 +DESCRIPTION="library for processing UTF-8 encoded Unicode strings"
99 +HOMEPAGE="http://www.public-software-group.org/utf8proc"
100 +SRC_URI="http://www.public-software-group.org/pub/projects/${PN}/v${PV}/utf8proc-v${PV}.tar.gz"
101 +S="${WORKDIR}/${PN}-v${PV}"
102 +
103 +LICENSE="MIT"
104 +SLOT="0"
105 +KEYWORDS="~amd64"
106 +IUSE="static-libs"
107 +
108 +DEPEND=""
109 +RDEPEND="${DEPEND}"
110 +
111 +src_prepare() {
112 + epatch "${FILESDIR}"/${P}-soname.patch \
113 + "${FILESDIR}"/${P}-buildflags.patch
114 +}
115 +
116 +src_compile() {
117 + emake libutf8proc.so
118 + use static-libs & emake libutf8proc.a
119 +}
120 +
121 +src_install() {
122 + doheader utf8proc.h
123 + dolib.so libutf8proc.so
124 + use static-libs && dolib.a libutf8proc.a
125 +}