dev-libs/stb: new package
authorMathy Vanvoorden <mathy@vanvoorden.be>
Sat, 8 Dec 2018 22:09:27 +0000 (23:09 +0100)
committerAmy Liffey <amynka@gentoo.org>
Wed, 2 Jan 2019 21:48:48 +0000 (22:48 +0100)
This is a header-only package that curaengine uses. Curaengine tries to pull it
from git if not found on the system, which causes the build to break. This
package installs the header files in a place where cmake will find it during
the build.

Closes: https://bugs.gentoo.org/show_bug.cgi?id=670638
Closes: https://bugs.gentoo.org/show_bug.cgi?id=670604
Closes: https://bugs.gentoo.org/show_bug.cgi?id=670418
Closes: https://bugs.gentoo.org/show_bug.cgi?id=661416

Signed-off-by: Mathy Vanvoorden <mathy@vanvoorden.be>
Signed-off-by: Amy Liffey <amynka@gentoo.org>
Package-Manager: Portage[mgorny]-2.3.51.1

dev-libs/stb/Manifest [new file with mode: 0644]
dev-libs/stb/metadata.xml [new file with mode: 0644]
dev-libs/stb/stb-20180211.ebuild [new file with mode: 0644]
media-gfx/curaengine/curaengine-3.4.1.ebuild

diff --git a/dev-libs/stb/Manifest b/dev-libs/stb/Manifest
new file mode 100644 (file)
index 0000000..d666f69
--- /dev/null
@@ -0,0 +1 @@
+DIST stb-20180211.tar.gz 1327803 BLAKE2B a910ac78c5e3760a3e4c74e033d15230c39abd89aeb083ba6c7cd23f8339926e8ab82fde1b6f4fe7a1a312023979a74b961abe263c40b18b3bb8239cbdfa204e SHA512 232ef301d4d6c82c7c5f0e4234b9160cc815f3b6bcc35d341cdf8738646f2f0887ee9838680699f4c9f4274b1390036b2c4fb3ebc2d663af8ff888114dc9f04b
diff --git a/dev-libs/stb/metadata.xml b/dev-libs/stb/metadata.xml
new file mode 100644 (file)
index 0000000..c6be08a
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="project">
+               <email>3dprint@gentoo.org</email>
+               <name>Gentoo 3D Printer Project</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>proxy-maint@gentoo.org</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+       <maintainer type="person">
+               <email>mathy@vanvoorden.be</email>
+               <name>Mathy Vanvoorden</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">nothings/stb</remote-id>
+       </upstream>
+</pkgmetadata>
diff --git a/dev-libs/stb/stb-20180211.ebuild b/dev-libs/stb/stb-20180211.ebuild
new file mode 100644 (file)
index 0000000..6efc838
--- /dev/null
@@ -0,0 +1,34 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+# There are no offical releases
+CHECKSUM="e6afb9cbae4064da8c3e69af3ff5c4629579c1d2"
+
+DESCRIPTION="single-file public domain (or MIT licensed) libraries for C/C++"
+HOMEPAGE="https://github.com/nothings/stb"
+SRC_URI="https://github.com/nothings/stb/archive/${CHECKSUM}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="|| ( MIT Unlicense )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE=""
+
+S="${WORKDIR}/${PN}-${CHECKSUM}"
+
+DEPEND=""
+RDEPEND=""
+
+src_prepare() {
+       default
+
+       # Move the header files in a folder so they don't pollute the include dir
+       mkdir stb || die
+       mv *.h stb/ || die
+}
+
+src_install() {
+       doheader -r stb
+}
index 2f945665c4a1281b29e5836c224eacec738b8e51..00cac9e508c93cf9fc84428d1fbe6e8f07eb8aa7 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -18,7 +18,8 @@ IUSE="doc test"
 
 RDEPEND="${PYTHON_DEPS}
        ~dev-libs/libarcus-${PV}:*
-       dev-libs/protobuf"
+       dev-libs/protobuf
+       dev-libs/stb"
 DEPEND="${RDEPEND}
        doc? ( app-doc/doxygen )"