mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-23 05:53:12 -04:00
net-p2p/feather: version bump
Signed-off-by: Adam Pimentel <adam.pimentel@protonmail.com>
This commit is contained in:
1
dev-util/bc-ur/Manifest
Normal file
1
dev-util/bc-ur/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST bc-ur-0.3.0.tar.gz 93856 BLAKE2B f923d077756aa0828465f9421af575273a80c43693932c12ade5a3dd45edd98174725caee82682fa6257711af8f321d2b398be1bb7f9bded93bad2b48114fedc SHA512 1dc0f320a7c526d8e21caf3a46e753b47cda0b356112b97969046129d24c0e39f298d12a44805bd377af7e63e05e83f1e2b82514a1f72556eca00678e573f234
|
||||
30
dev-util/bc-ur/bc-ur-0.3.0.ebuild
Normal file
30
dev-util/bc-ur/bc-ur-0.3.0.ebuild
Normal file
@@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/build-fix.patch"
|
||||
)
|
||||
DESCRIPTION="Blockchain Commons UR Library"
|
||||
HOMEPAGE="https://github.com/BlockchainCommons/bc-ur/tree/"
|
||||
SRC_URI="https://github.com/BlockchainCommons/bc-ur/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND="
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_compile() {
|
||||
cmake_build bcur_static
|
||||
}
|
||||
92
dev-util/bc-ur/files/build-fix.patch
Normal file
92
dev-util/bc-ur/files/build-fix.patch
Normal file
@@ -0,0 +1,92 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
new file mode 100644
|
||||
index 0000000..a67d57a
|
||||
--- /dev/null
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -0,0 +1,49 @@
|
||||
+cmake_minimum_required(VERSION 3.5)
|
||||
+
|
||||
+project(bcur)
|
||||
+
|
||||
+SET(CMAKE_CXX_STANDARD 17)
|
||||
+
|
||||
+set(bcur_sources
|
||||
+ src/bytewords.cpp
|
||||
+ src/fountain-encoder.cpp
|
||||
+ src/fountain-decoder.cpp
|
||||
+ src/fountain-utils.cpp
|
||||
+ src/xoshiro256.cpp
|
||||
+ src/utils.cpp
|
||||
+ src/random-sampler.cpp
|
||||
+ src/ur-decoder.cpp
|
||||
+ src/ur.cpp
|
||||
+ src/ur-encoder.cpp
|
||||
+ src/memzero.c
|
||||
+ src/crc32.c
|
||||
+ src/sha2.c)
|
||||
+
|
||||
+install(FILES
|
||||
+ src/ur-encoder.hpp
|
||||
+ src/cbor-lite.hpp
|
||||
+ src/fountain-utils.hpp
|
||||
+ src/bc-ur.hpp
|
||||
+ src/bytewords.hpp
|
||||
+ src/ur.hpp
|
||||
+ src/fountain-encoder.hpp
|
||||
+ src/xoshiro256.hpp
|
||||
+ src/utils.hpp
|
||||
+ src/random-sampler.hpp
|
||||
+ src/fountain-decoder.hpp
|
||||
+ src/ur-decoder.hpp
|
||||
+ DESTINATION include/bcur)
|
||||
+
|
||||
+set(CMAKE_BUILD_TYPE Release)
|
||||
+
|
||||
+add_library(bcur_static STATIC ${bcur_sources})
|
||||
+set_property(TARGET bcur_static PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
+set_target_properties(bcur_static PROPERTIES OUTPUT_NAME bcur
|
||||
+ C_STANDARD 17
|
||||
+ C_STANDARD_REQUIRED ON)
|
||||
+
|
||||
+include(GNUInstallDirs)
|
||||
+install(TARGETS bcur_static
|
||||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||||
diff --git a/src/cbor-lite.hpp b/src/cbor-lite.hpp
|
||||
index 945b6d5..267474a 100644
|
||||
--- a/src/cbor-lite.hpp
|
||||
+++ b/src/cbor-lite.hpp
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <iterator>
|
||||
#include <string>
|
||||
#include <type_traits>
|
||||
+#include <cstdint>
|
||||
|
||||
#ifndef __BYTE_ORDER__
|
||||
#error __BYTE_ORDER__ not defined
|
||||
diff --git a/src/memzero.c b/src/memzero.c
|
||||
index 5edc797..b19923a 100644
|
||||
--- a/src/memzero.c
|
||||
+++ b/src/memzero.c
|
||||
@@ -6,7 +6,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
-#include <Windows.h>
|
||||
+#include <windows.h>
|
||||
#endif
|
||||
|
||||
#ifdef __unix__
|
||||
diff --git a/src/xoshiro256.cpp b/src/xoshiro256.cpp
|
||||
index 7e87833..2f40b8b 100644
|
||||
--- a/src/xoshiro256.cpp
|
||||
+++ b/src/xoshiro256.cpp
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "xoshiro256.hpp"
|
||||
#include <limits>
|
||||
+#include <cstring>
|
||||
|
||||
/* Written in 2018 by David Blackman and Sebastiano Vigna (vigna@acm.org)
|
||||
|
||||
15
dev-util/bc-ur/metadata.xml
Normal file
15
dev-util/bc-ur/metadata.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>adam.pimentel46@gmail.com</email>
|
||||
<name>Adam Pimentel</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">BlockchainCommons/bc-ur</remote-id>
|
||||
</upstream>
|
||||
<longdescription lang="en">
|
||||
The Blockchain Commons UR Library is a UR Reference Implementation in C++.
|
||||
URs ("Uniform Resources") are a method for encoding structured binary data for transport in URIs and QR Codes. They are described in BCR-2020-005.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user