diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-06 00:10:03 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-06 00:10:03 +0000 |
commit | b256b4b120d8269d4415eac0c354eb603a7bf953 (patch) | |
tree | 4a034d19dc148353dd4ed6094848d51387f8b07e /dev-libs/gost-engine | |
parent | 8973f70e9a2ae4ea8a324e607ea1e8b96c7ff384 (diff) |
gentoo auto-resync : 06:01:2023 - 00:10:03
Diffstat (limited to 'dev-libs/gost-engine')
-rw-r--r-- | dev-libs/gost-engine/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/gost-engine/files/gost-engine-3.0.1-fix-cmake-path.patch | 27 | ||||
-rw-r--r-- | dev-libs/gost-engine/gost-engine-3.0.1-r1.ebuild | 46 |
3 files changed, 75 insertions, 0 deletions
diff --git a/dev-libs/gost-engine/Manifest b/dev-libs/gost-engine/Manifest index 073b50030896..358f6f0b199d 100644 --- a/dev-libs/gost-engine/Manifest +++ b/dev-libs/gost-engine/Manifest @@ -1,5 +1,7 @@ +AUX gost-engine-3.0.1-fix-cmake-path.patch 1279 BLAKE2B 40896fe0942e3de64a32e6c46405390b206c5b3cbf88a6561eeef8f804eb8a300862fa1fbecbc6942c4688640c4d3af30ae22646510b7489135a3440309bf8b3 SHA512 0ee8fd3e8d322b6cb169215e1c7600caafc4c987c356499013855a712996ed7a11d03f1007bafac5548bce291535e5187d0afded0d991d17a0e9840d47ef4645 DIST gost-engine-3.0.1.tar.gz 1645245 BLAKE2B 713a7343f9c11feec361dd2828b00dd7d47518f5a1b047a6e11f8d8eea206ce9058ace1bd70e12b4cb2200789eb8209de671cb5e2692e95391b4e7a82d0badc2 SHA512 eb9fb126393cfe23bcef0f45c05b38d39aadd8909419ebcf6dab4800bd7372b63891e9061f8e70686f8ba5cd58669681895b36320ed6a8cc0ca1ff037aa73b85 DIST libprov-8a126e09547630ef900177625626b6156052f0ee.tar.gz 5693 BLAKE2B e2c9c1a6c31532ea830c94bca9a7e2f0c0d0688c628ba0851ff541a0d9fd9aa727c5ed9b78901032e928ea8cfb63483d3bfeadac40c61ddd990df00e2c7d3cd9 SHA512 4633ca9ad21585483dbaf28e416f0f3416c814bb41b0ccf036e438275d83393e70ed1c2cd0298fc87d8e928074a7afcf3971a0d790014cc0d200c92bb2defe4d +EBUILD gost-engine-3.0.1-r1.ebuild 1191 BLAKE2B b0e57ec1b1107d9948f91af2b05a3ed79989363c18defb6ead0de8c42c8eb721ca0a26246b48f18887530201d92cd2c6a5446b322694873f5910d83ffcb5426e SHA512 6e5456c037870f9dedb12ac149b3a1db573792421b0c851ee46fd0502b498d75eac4bbe315a6ef26d504e66113456a902ed726ce0e7a2574e7336838bce0f4b5 EBUILD gost-engine-3.0.1.ebuild 1137 BLAKE2B 1837b5c9851e8b3a642fa0f7dac180e93fe7e555f75c47647eb34ddedec43124ae48033462b7d2c3eec583a1e6bdf667d96562514189bff49c1230b9b583e2f8 SHA512 0760134d371252b94a0f28b677c56eaba590c01f08be73fc3e8881e56d315546756459c2d96132f4af6a4c76c439034d2ba80e4cd19850cf695e581d5e3bcc01 EBUILD gost-engine-9999.ebuild 1137 BLAKE2B 1837b5c9851e8b3a642fa0f7dac180e93fe7e555f75c47647eb34ddedec43124ae48033462b7d2c3eec583a1e6bdf667d96562514189bff49c1230b9b583e2f8 SHA512 0760134d371252b94a0f28b677c56eaba590c01f08be73fc3e8881e56d315546756459c2d96132f4af6a4c76c439034d2ba80e4cd19850cf695e581d5e3bcc01 MISC metadata.xml 342 BLAKE2B 3f19b05411fb2960f8218ebcce89e66eba7baabeac9a4a78ab2b7bea1657a082387ccd6fc50dd4a25f5d21d54be6e0c1cfe51cc9eff91cf426660be1041ef0a4 SHA512 4a73c89be75bf257bada6ff299eb6cb48b53b2b92dc9b9647d7345b699118ad4a2e5cfcbe61fc74dc624f6ab019bb21bffc5e1fa0005f761b6435b2badfcf4c4 diff --git a/dev-libs/gost-engine/files/gost-engine-3.0.1-fix-cmake-path.patch b/dev-libs/gost-engine/files/gost-engine-3.0.1-fix-cmake-path.patch new file mode 100644 index 000000000000..3d6d7efc9384 --- /dev/null +++ b/dev-libs/gost-engine/files/gost-engine-3.0.1-fix-cmake-path.patch @@ -0,0 +1,27 @@ +From 2b22503cf83c56f27719eccce013999203e69db0 Mon Sep 17 00:00:00 2001 +From: Craig Andrews <candrews@integralblue.com> +Date: Tue, 3 Jan 2023 17:42:02 -0500 +Subject: [PATCH] Correct CMake files installation path + +install(EXPORT GostEngineConfig DESTINATION share/cmake/GostEngine) will to a path like this: +/usr/GostEngine/share/cmake/GostEngine/GostEngineConfig.cmake +which is not standard or expected. These files should be installed to: +/usr/share/cmake/GostEngine/GostEngineConfig.cmake +which can be done by changing the installation line to: +install(EXPORT GostEngineConfig DESTINATION share/cmake/GostEngine) +--- + CMakeLists.txt | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 5053ae45..cae27c3b 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -449,5 +449,5 @@ if (MSVC) + install(FILES $<TARGET_PDB_FILE:gost_prov> + EXPORT GostProviderConfig DESTINATION ${OPENSSL_MODULES_DIR} OPTIONAL) + endif() +-install(EXPORT GostEngineConfig DESTINATION GostEngine/share/cmake/GostEngine) +-install(EXPORT GostProviderConfig DESTINATION GostEngine/share/cmake/GostProvider) ++install(EXPORT GostEngineConfig DESTINATION share/cmake/GostEngine) ++install(EXPORT GostProviderConfig DESTINATION share/cmake/GostProvider) diff --git a/dev-libs/gost-engine/gost-engine-3.0.1-r1.ebuild b/dev-libs/gost-engine/gost-engine-3.0.1-r1.ebuild new file mode 100644 index 000000000000..892b8bb3cdd6 --- /dev/null +++ b/dev-libs/gost-engine/gost-engine-3.0.1-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="A reference implementation of the Russian GOST crypto algorithms for OpenSSL" +HOMEPAGE="https://github.com/gost-engine/engine" +IUSE="test" +RESTRICT="!test? ( test )" +SLOT="0/${PV}" + +COMMON_DEPEND=">=dev-libs/openssl-3.0.0:0=" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig + test? ( + dev-lang/perl + )" +RDEPEND="${COMMON_DEPEND}" + +LICENSE="openssl" + +DOCS=( INSTALL.md README.gost README.md ) + +PATCHES=( + "${FILESDIR}/${P}-fix-cmake-path.patch" +) + +LIBPROV_COMMIT="8a126e09547630ef900177625626b6156052f0ee" +if [[ ${PV} == "9999" ]] ; then + SRC_URI="" + EGIT_REPO_URI="https://github.com/gost-engine/engine.git" + inherit git-r3 +else + KEYWORDS="~amd64 ~hppa" + SRC_URI="https://github.com/gost-engine/engine/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/provider-corner/libprov/archive/${LIBPROV_COMMIT}.tar.gz -> libprov-${LIBPROV_COMMIT}.tar.gz" + S="${WORKDIR}/engine-${PV}" +fi + +src_prepare() { + cp -R "${WORKDIR}/libprov-${LIBPROV_COMMIT}/." "${S}/libprov" || die + cmake_src_prepare + sed 's:Werror:Wno-error:g' -i "${S}/CMakeLists.txt" || die +} |