Gentoo Archives: gentoo-commits

From: Amy Liffey <amynka@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/curaengine/, dev-libs/stb/
Date: Wed, 02 Jan 2019 21:52:18
Message-Id: 1546465728.d1d9eec5390dc20587a59c37d44347cf64b760e3.amynka@gentoo
1 commit: d1d9eec5390dc20587a59c37d44347cf64b760e3
2 Author: Mathy Vanvoorden <mathy <AT> vanvoorden <DOT> be>
3 AuthorDate: Sat Dec 8 22:09:27 2018 +0000
4 Commit: Amy Liffey <amynka <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 2 21:48:48 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1d9eec5
7
8 dev-libs/stb: new package
9
10 This is a header-only package that curaengine uses. Curaengine tries to pull it
11 from git if not found on the system, which causes the build to break. This
12 package installs the header files in a place where cmake will find it during
13 the build.
14
15 Closes: https://bugs.gentoo.org/show_bug.cgi?id=670638
16 Closes: https://bugs.gentoo.org/show_bug.cgi?id=670604
17 Closes: https://bugs.gentoo.org/show_bug.cgi?id=670418
18 Closes: https://bugs.gentoo.org/show_bug.cgi?id=661416
19
20 Signed-off-by: Mathy Vanvoorden <mathy <AT> vanvoorden.be>
21 Signed-off-by: Amy Liffey <amynka <AT> gentoo.org>
22 Package-Manager: Portage[mgorny]-2.3.51.1
23
24 dev-libs/stb/Manifest | 1 +
25 dev-libs/stb/metadata.xml | 19 ++++++++++++++++
26 dev-libs/stb/stb-20180211.ebuild | 34 ++++++++++++++++++++++++++++
27 media-gfx/curaengine/curaengine-3.4.1.ebuild | 5 ++--
28 4 files changed, 57 insertions(+), 2 deletions(-)
29
30 diff --git a/dev-libs/stb/Manifest b/dev-libs/stb/Manifest
31 new file mode 100644
32 index 00000000000..d666f693370
33 --- /dev/null
34 +++ b/dev-libs/stb/Manifest
35 @@ -0,0 +1 @@
36 +DIST stb-20180211.tar.gz 1327803 BLAKE2B a910ac78c5e3760a3e4c74e033d15230c39abd89aeb083ba6c7cd23f8339926e8ab82fde1b6f4fe7a1a312023979a74b961abe263c40b18b3bb8239cbdfa204e SHA512 232ef301d4d6c82c7c5f0e4234b9160cc815f3b6bcc35d341cdf8738646f2f0887ee9838680699f4c9f4274b1390036b2c4fb3ebc2d663af8ff888114dc9f04b
37
38 diff --git a/dev-libs/stb/metadata.xml b/dev-libs/stb/metadata.xml
39 new file mode 100644
40 index 00000000000..c6be08a3261
41 --- /dev/null
42 +++ b/dev-libs/stb/metadata.xml
43 @@ -0,0 +1,19 @@
44 +<?xml version="1.0" encoding="UTF-8"?>
45 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
46 +<pkgmetadata>
47 + <maintainer type="project">
48 + <email>3dprint@g.o</email>
49 + <name>Gentoo 3D Printer Project</name>
50 + </maintainer>
51 + <maintainer type="project">
52 + <email>proxy-maint@g.o</email>
53 + <name>Proxy Maintainers</name>
54 + </maintainer>
55 + <maintainer type="person">
56 + <email>mathy@××××××××××.be</email>
57 + <name>Mathy Vanvoorden</name>
58 + </maintainer>
59 + <upstream>
60 + <remote-id type="github">nothings/stb</remote-id>
61 + </upstream>
62 +</pkgmetadata>
63
64 diff --git a/dev-libs/stb/stb-20180211.ebuild b/dev-libs/stb/stb-20180211.ebuild
65 new file mode 100644
66 index 00000000000..6efc838e61b
67 --- /dev/null
68 +++ b/dev-libs/stb/stb-20180211.ebuild
69 @@ -0,0 +1,34 @@
70 +# Copyright 1999-2018 Gentoo Authors
71 +# Distributed under the terms of the GNU General Public License v2
72 +
73 +EAPI=7
74 +
75 +# There are no offical releases
76 +CHECKSUM="e6afb9cbae4064da8c3e69af3ff5c4629579c1d2"
77 +
78 +DESCRIPTION="single-file public domain (or MIT licensed) libraries for C/C++"
79 +HOMEPAGE="https://github.com/nothings/stb"
80 +SRC_URI="https://github.com/nothings/stb/archive/${CHECKSUM}.tar.gz -> ${P}.tar.gz"
81 +
82 +LICENSE="|| ( MIT Unlicense )"
83 +SLOT="0"
84 +KEYWORDS="~amd64 ~x86"
85 +
86 +IUSE=""
87 +
88 +S="${WORKDIR}/${PN}-${CHECKSUM}"
89 +
90 +DEPEND=""
91 +RDEPEND=""
92 +
93 +src_prepare() {
94 + default
95 +
96 + # Move the header files in a folder so they don't pollute the include dir
97 + mkdir stb || die
98 + mv *.h stb/ || die
99 +}
100 +
101 +src_install() {
102 + doheader -r stb
103 +}
104
105 diff --git a/media-gfx/curaengine/curaengine-3.4.1.ebuild b/media-gfx/curaengine/curaengine-3.4.1.ebuild
106 index 2f945665c4a..00cac9e508c 100644
107 --- a/media-gfx/curaengine/curaengine-3.4.1.ebuild
108 +++ b/media-gfx/curaengine/curaengine-3.4.1.ebuild
109 @@ -1,4 +1,4 @@
110 -# Copyright 1999-2018 Gentoo Foundation
111 +# Copyright 1999-2018 Gentoo Authors
112 # Distributed under the terms of the GNU General Public License v2
113
114 EAPI=6
115 @@ -18,7 +18,8 @@ IUSE="doc test"
116
117 RDEPEND="${PYTHON_DEPS}
118 ~dev-libs/libarcus-${PV}:*
119 - dev-libs/protobuf"
120 + dev-libs/protobuf
121 + dev-libs/stb"
122 DEPEND="${RDEPEND}
123 doc? ( app-doc/doxygen )"