From 009eacdd11797c29cf57b5f82d1a5cf40944c0f2 Mon Sep 17 00:00:00 2001 From: David Roman Date: Fri, 17 Feb 2017 18:26:12 +0000 Subject: 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 --- dev-libs/spdlog/Manifest | 1 + dev-libs/spdlog/metadata.xml | 12 ++++++++++++ dev-libs/spdlog/spdlog-0.11.0.ebuild | 34 ++++++++++++++++++++++++++++++++++ dev-libs/spdlog/spdlog-9999.ebuild | 34 ++++++++++++++++++++++++++++++++++ 4 files changed, 81 insertions(+) create mode 100644 dev-libs/spdlog/Manifest create mode 100644 dev-libs/spdlog/metadata.xml create mode 100644 dev-libs/spdlog/spdlog-0.11.0.ebuild create mode 100644 dev-libs/spdlog/spdlog-9999.ebuild (limited to 'dev-libs/spdlog') 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 @@ + + + + + davidroman96@gmail.com + David Roman + + + proxy-maint@gentoo.org + Proxy Maintainers + + 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 +} -- cgit v1.2.3-65-gdbad