dev-libs/spdlog: New package
authorDavid Roman <davidroman96@gmail.com>
Fri, 17 Feb 2017 18:26:12 +0000 (18:26 +0000)
committerDavid Seifert <soap@gentoo.org>
Fri, 17 Mar 2017 07:35:37 +0000 (08:35 +0100)
Live ebuild is included.

spdlog is a C++ logging library.
Other distributions already have a package for this library.

Gentoo Bug: #592708
Closes: https://github.com/gentoo/gentoo/pull/4000

dev-libs/spdlog/Manifest [new file with mode: 0644]
dev-libs/spdlog/metadata.xml [new file with mode: 0644]
dev-libs/spdlog/spdlog-0.11.0.ebuild [new file with mode: 0644]
dev-libs/spdlog/spdlog-9999.ebuild [new file with mode: 0644]

diff --git a/dev-libs/spdlog/Manifest b/dev-libs/spdlog/Manifest
new file mode 100644 (file)
index 0000000..daab870
--- /dev/null
@@ -0,0 +1 @@
+DIST spdlog-0.11.0.tar.gz 146346 SHA256 8c0f1810fb6b7d23fef70c2ea8b6fa6768ac8d18d6e0de39be1f48865e22916e SHA512 958d6301d6189dc8cfd2891fb746f1cd6e0b54da6296d334e6d969184772760d3ae67d622beb01b70b662c850f11b06424b12ef19204b569a664fbe99b6aecff WHIRLPOOL f8bafd46c4e7f7158a71fba07780c9c590693989adc46205c01556e3edd54482bbcd5b90a32255e6b3e0866f853c898edcfbbbec610f052d8bb641e587ddd40c
diff --git a/dev-libs/spdlog/metadata.xml b/dev-libs/spdlog/metadata.xml
new file mode 100644 (file)
index 0000000..b69fe2e
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="person">
+               <email>davidroman96@gmail.com</email>
+               <name>David Roman</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>proxy-maint@gentoo.org</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+</pkgmetadata>
diff --git a/dev-libs/spdlog/spdlog-0.11.0.ebuild b/dev-libs/spdlog/spdlog-0.11.0.ebuild
new file mode 100644 (file)
index 0000000..10ba2d5
--- /dev/null
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="Very fast, header only, C++ logging library."
+HOMEPAGE="https://github.com/gabime/spdlog"
+
+if [[ ${PV} == *9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/gabime/spdlog"
+else
+       SRC_URI="https://github.com/gabime/spdlog/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="test"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_configure() {
+       local mycmakeargs=( -DSPDLOG_BUILD_EXAMPLES=no )
+       if [[ ${PV} == *9999 ]]; then
+               mycmakeargs+=( -DSPDLOG_BUILD_TESTING=$(usex test) )
+       else
+               mycmakeargs+=( -DSPDLOG_BUILD_TESTS=$(usex test) )
+       fi
+       cmake-utils_src_configure
+}
diff --git a/dev-libs/spdlog/spdlog-9999.ebuild b/dev-libs/spdlog/spdlog-9999.ebuild
new file mode 100644 (file)
index 0000000..10ba2d5
--- /dev/null
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="Very fast, header only, C++ logging library."
+HOMEPAGE="https://github.com/gabime/spdlog"
+
+if [[ ${PV} == *9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/gabime/spdlog"
+else
+       SRC_URI="https://github.com/gabime/spdlog/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="test"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_configure() {
+       local mycmakeargs=( -DSPDLOG_BUILD_EXAMPLES=no )
+       if [[ ${PV} == *9999 ]]; then
+               mycmakeargs+=( -DSPDLOG_BUILD_TESTING=$(usex test) )
+       else
+               mycmakeargs+=( -DSPDLOG_BUILD_TESTS=$(usex test) )
+       fi
+       cmake-utils_src_configure
+}