public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/monero-seed/, dev-libs/monero-seed/files/
@ 2020-12-28  7:08 Theo Anderson
  0 siblings, 0 replies; only message in thread
From: Theo Anderson @ 2020-12-28  7:08 UTC (permalink / raw
  To: gentoo-commits

commit:     40e14d86f43b2e0b07705491e2a0938957c0f262
Author:     Theo Anderson <telans <AT> posteo <DOT> de>
AuthorDate: Mon Dec 28 05:45:52 2020 +0000
Commit:     Theo Anderson <telans <AT> posteo <DOT> de>
CommitDate: Mon Dec 28 05:45:52 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=40e14d86

dev-libs/monero-seed: new package 0.1.0

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Theo Anderson <telans <AT> posteo.de>

 dev-libs/monero-seed/Manifest                      |  1 +
 .../files/monero-seed-9999-install-demo.patch      | 37 ++++++++++++++++++++++
 dev-libs/monero-seed/metadata.xml                  |  8 +++++
 dev-libs/monero-seed/monero-seed-0.1.0.ebuild      | 18 +++++++++++
 4 files changed, 64 insertions(+)

diff --git a/dev-libs/monero-seed/Manifest b/dev-libs/monero-seed/Manifest
new file mode 100644
index 00000000..4f4defe4
--- /dev/null
+++ b/dev-libs/monero-seed/Manifest
@@ -0,0 +1 @@
+DIST monero-seed-0.1.0.tar.gz 37474 BLAKE2B ba3f98fc1dc58e5731402d02c1e2b2824f60a35655cfa06272055ef8334af295ade89ae624c60aece19d3962164af4b591e06dd7c5f43b3157dd43fb6987710c SHA512 a539ab4fdebed416600e18c89f20c572e8aab259db0929d60e2b0caa12c661fb84c9cf461306d395ca5c2fa30736ab7df7c43eb21c72757133716304a0a01d69

diff --git a/dev-libs/monero-seed/files/monero-seed-9999-install-demo.patch b/dev-libs/monero-seed/files/monero-seed-9999-install-demo.patch
new file mode 100644
index 00000000..e4b9c434
--- /dev/null
+++ b/dev-libs/monero-seed/files/monero-seed-9999-install-demo.patch
@@ -0,0 +1,37 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 2028ceb..800e1b6 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -2,8 +2,6 @@
+ 
+ cmake_minimum_required(VERSION 3.13)
+ 
+-option(MONERO_SEED_DEMO "Build a demo executable for monero-seed")
+-
+ if(NOT CMAKE_BUILD_TYPE)
+   set(CMAKE_BUILD_TYPE Release)
+   message(STATUS "Setting default build type: ${CMAKE_BUILD_TYPE}")
+@@ -32,16 +30,16 @@ target_include_directories(${PROJECT_NAME} PUBLIC
+   $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
+   $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/monero_seed>)
+ 
+-if(MONERO_SEED_DEMO)
+-  add_executable(demo src/main.cpp)
+-  set_property(TARGET demo PROPERTY CXX_STANDARD 11)
+-  target_link_libraries(demo -Wl,--whole-archive ${PROJECT_NAME} -Wl,--no-whole-archive)
+-endif()
++add_executable(demo src/main.cpp)
++set_property(TARGET demo PROPERTY CXX_STANDARD 11)
++target_link_libraries(demo -Wl,--whole-archive ${PROJECT_NAME} -Wl,--no-whole-archive)
++set_target_properties(demo PROPERTIES OUTPUT_NAME "monero-seed")
+ 
+-install(TARGETS ${PROJECT_NAME}
++install(TARGETS ${PROJECT_NAME} demo
+   EXPORT ${PROJECT_NAME}
+   ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+-  LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
++  LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
++  RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
+ install(DIRECTORY include/
+   DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+ install(EXPORT ${PROJECT_NAME}

diff --git a/dev-libs/monero-seed/metadata.xml b/dev-libs/monero-seed/metadata.xml
new file mode 100644
index 00000000..55a6008a
--- /dev/null
+++ b/dev-libs/monero-seed/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="person">
+    <email>telans@posteo.de</email>
+    <name>Theo Anderson</name>
+  </maintainer>
+</pkgmetadata>

diff --git a/dev-libs/monero-seed/monero-seed-0.1.0.ebuild b/dev-libs/monero-seed/monero-seed-0.1.0.ebuild
new file mode 100644
index 00000000..49effee2
--- /dev/null
+++ b/dev-libs/monero-seed/monero-seed-0.1.0.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="14-word mnemonic seed for Monero"
+HOMEPAGE="https://git.wownero.com/feather/monero-seed"
+SRC_URI="https://git.wownero.com/feather/monero-seed/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+
+S="${WORKDIR}/${PN}"
+
+PATCHES+=( "${FILESDIR}"/${PN}-9999-install-demo.patch )


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-28  7:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-28  7:08 [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/monero-seed/, dev-libs/monero-seed/files/ Theo Anderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox