summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Roman <davidroman96@gmail.com>2017-02-17 18:26:12 +0000
committerDavid Seifert <soap@gentoo.org>2017-03-17 08:35:37 +0100
commit009eacdd11797c29cf57b5f82d1a5cf40944c0f2 (patch)
tree77d37d91141183eeb09a2070c657b0aebb33082e /dev-libs/spdlog
parentnet-analyzer/nmap: Stable for HPPA (bug #612854). (diff)
downloadgentoo-009eacdd11797c29cf57b5f82d1a5cf40944c0f2.tar.gz
gentoo-009eacdd11797c29cf57b5f82d1a5cf40944c0f2.tar.bz2
gentoo-009eacdd11797c29cf57b5f82d1a5cf40944c0f2.zip
dev-libs/spdlog: New package
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
Diffstat (limited to 'dev-libs/spdlog')
-rw-r--r--dev-libs/spdlog/Manifest1
-rw-r--r--dev-libs/spdlog/metadata.xml12
-rw-r--r--dev-libs/spdlog/spdlog-0.11.0.ebuild34
-rw-r--r--dev-libs/spdlog/spdlog-9999.ebuild34
4 files changed, 81 insertions, 0 deletions
diff --git a/dev-libs/spdlog/Manifest b/dev-libs/spdlog/Manifest
new file mode 100644
index 000000000000..daab870776b8
--- /dev/null
+++ b/dev-libs/spdlog/Manifest
@@ -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
index 000000000000..b69fe2e3c4ab
--- /dev/null
+++ b/dev-libs/spdlog/metadata.xml
@@ -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
index 000000000000..10ba2d584b15
--- /dev/null
+++ b/dev-libs/spdlog/spdlog-0.11.0.ebuild
@@ -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
index 000000000000..10ba2d584b15
--- /dev/null
+++ b/dev-libs/spdlog/spdlog-9999.ebuild
@@ -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
+}