commit:     13c451c6ad05a26f233900de7fce14faca99abc7
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 11 09:36:01 2018 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Wed Apr 11 09:36:01 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13c451c6

dev-libs/cppcodec: Add 0.1 release

Package-Manager: Portage-2.3.28, Repoman-2.3.9

 dev-libs/cppcodec/Manifest            |  1 +
 dev-libs/cppcodec/cppcodec-0.1.ebuild | 39 +++++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+)

diff --git a/dev-libs/cppcodec/Manifest b/dev-libs/cppcodec/Manifest
new file mode 100644
index 00000000000..8ddc96cd620
--- /dev/null
+++ b/dev-libs/cppcodec/Manifest
@@ -0,0 +1 @@
+DIST cppcodec-0.1.tar.gz 26932 BLAKE2B 
abfe4aa3126d5900f806682c6ecb60d3cab5eb41e21d68c3f0c55d011c528304be9d286e48c6dac7bd3edea9e519609091053b6aeb2ab85818837b10499b24ae
 SHA512 
8b406755b3d9457e4e265f76abcb7a18daa4566ec9b56ac3a01b44fd62062eef8d91806e0009ce26ade92a35c5c0488eeaf7db695479a2013f8549ac5fa8626f

diff --git a/dev-libs/cppcodec/cppcodec-0.1.ebuild 
b/dev-libs/cppcodec/cppcodec-0.1.ebuild
new file mode 100644
index 00000000000..7a7f9e55ed6
--- /dev/null
+++ b/dev-libs/cppcodec/cppcodec-0.1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
+inherit cmake-utils
+
+DESCRIPTION="C++11 library to encode/decode base64, base64url, base32, 
base32hex and hex"
+HOMEPAGE="https://github.com/tplgy/cppcodec";
+
+if [[ ${PV} == *9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/tplgy/cppcodec.git";
+
+       # Disable pulling in catch
+       EGIT_SUBMODULES=()
+else
+       SRC_URI="https://github.com/tplgy/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+       KEYWORDS="~amd64"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+       test? (
+               virtual/pkgconfig
+               >=dev-cpp/catch-2.2.0
+       )"
+
+src_configure() {
+       local mycmakeargs=(
+               -DBUILD_TESTING=$(usex test)
+       )
+       cmake-utils_src_configure
+}

Reply via email to