Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libyaml/
Date: Sat, 30 Jun 2018 17:34:52
Message-Id: 1530380070.0c35c78cf76a5875e5ac1f2855c39813cc1abfee.radhermit@gentoo
1 commit: 0c35c78cf76a5875e5ac1f2855c39813cc1abfee
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 30 16:14:41 2018 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 30 17:34:30 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c35c78c
7
8 dev-libs/libyaml: version bump to 0.2.1
9
10 dev-libs/libyaml/Manifest | 1 +
11 dev-libs/libyaml/libyaml-0.2.1.ebuild | 43 +++++++++++++++++++++++++++++++++++
12 2 files changed, 44 insertions(+)
13
14 diff --git a/dev-libs/libyaml/Manifest b/dev-libs/libyaml/Manifest
15 index b63cfddc644..c82040768ab 100644
16 --- a/dev-libs/libyaml/Manifest
17 +++ b/dev-libs/libyaml/Manifest
18 @@ -1 +1,2 @@
19 +DIST libyaml-0.2.1.tar.gz 601443 BLAKE2B 4940d1f0a698a985502d6e1c4d3d064061462642829aecc75a820bebcb7b7e4ae5d62777162063650d24962c93da6449bca791811d0438222d897388ec07c2ea SHA512 f91297c37dbbf03aaff718947474381a4a6a4ee1a39171d7fc32c3710ce55321028f3485ea1fcd52b962da36ed021c0b7ec05718296dca636329a19aecc809b8
20 DIST yaml-0.1.7.tar.gz 527518 BLAKE2B 80bb082e22e7f8275924aaa4f8e95eefdc94e929690ddefdba61f50d57d01428990687d2c7bcc5b277888825b8bc0619c572594dae64ce00013adde685f9a8d9 SHA512 1ee5007dd10db137b5ee80f8117f07390ec04af98d087a5f5475dd2b38d87c699b79ab1676e6c7bfa263323fcdf8edd69fada2b0b7f9c57bef4e46cd65f1e975
21
22 diff --git a/dev-libs/libyaml/libyaml-0.2.1.ebuild b/dev-libs/libyaml/libyaml-0.2.1.ebuild
23 new file mode 100644
24 index 00000000000..dc16d59c679
25 --- /dev/null
26 +++ b/dev-libs/libyaml/libyaml-0.2.1.ebuild
27 @@ -0,0 +1,43 @@
28 +# Copyright 1999-2018 Gentoo Foundation
29 +# Distributed under the terms of the GNU General Public License v2
30 +
31 +EAPI=6
32 +
33 +inherit libtool
34 +
35 +DESCRIPTION="YAML 1.1 parser and emitter written in C"
36 +HOMEPAGE="https://github.com/yaml/libyaml"
37 +SRC_URI="https://github.com/yaml/${PN}/archive/dist-${PV}.tar.gz -> ${P}.tar.gz"
38 +
39 +LICENSE="MIT"
40 +SLOT="0"
41 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
42 +IUSE="doc static-libs test"
43 +
44 +S=${WORKDIR}/${PN}-dist-${PV}
45 +
46 +src_prepare() {
47 + default
48 +
49 + # conditionally remove tests
50 + if ! use test; then
51 + sed -i -e 's: tests::g' Makefile* || die
52 + fi
53 +
54 + elibtoolize # for FreeMiNT
55 +}
56 +
57 +src_configure() {
58 + econf $(use_enable static-libs static)
59 +}
60 +
61 +src_install() {
62 + use doc && HTML_DOCS=( doc/html/. )
63 + default
64 +
65 + find "${D}" -name '*.la' -delete || die
66 +
67 + docinto examples
68 + dodoc tests/example-*.c
69 + docompress -x /usr/share/doc/${PF}/examples
70 +}