diff options
author | Craig Andrews <candrews@gentoo.org> | 2021-03-06 15:42:48 -0500 |
---|---|---|
committer | Craig Andrews <candrews@gentoo.org> | 2021-03-06 15:44:04 -0500 |
commit | 8a1b386bd1d68c400e5728dd807fa9af064ef109 (patch) | |
tree | eaf778a11ece18bfe0d9127e1864b34906a50997 /dev-libs/gost-engine | |
parent | net-analyzer/nmap: Update LICENSE (diff) | |
download | gentoo-8a1b386bd1d68c400e5728dd807fa9af064ef109.tar.gz gentoo-8a1b386bd1d68c400e5728dd807fa9af064ef109.tar.bz2 gentoo-8a1b386bd1d68c400e5728dd807fa9af064ef109.zip |
dev-libs/gost-engine: EAPI-7 bump & port to cmake.eclass
Closes: https://bugs.gentoo.org/774486
Package-Manager: Portage-3.0.16, Repoman-3.0.2
Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'dev-libs/gost-engine')
-rw-r--r-- | dev-libs/gost-engine/gost-engine-1.1.0.3_p20181031-r2.ebuild | 39 | ||||
-rw-r--r-- | dev-libs/gost-engine/gost-engine-9999.ebuild | 8 |
2 files changed, 43 insertions, 4 deletions
diff --git a/dev-libs/gost-engine/gost-engine-1.1.0.3_p20181031-r2.ebuild b/dev-libs/gost-engine/gost-engine-1.1.0.3_p20181031-r2.ebuild new file mode 100644 index 000000000000..449f37079b65 --- /dev/null +++ b/dev-libs/gost-engine/gost-engine-1.1.0.3_p20181031-r2.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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-1.1.1:0=" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig + test? ( + dev-lang/perl + )" +RDEPEND="${COMMON_DEPEND}" + +LICENSE="openssl" + +DOCS=( INSTALL.md README.gost README.md ) + +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/e5cc3684f3b3ad40e186e23b00b253d234df92ab.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/engine-e5cc3684f3b3ad40e186e23b00b253d234df92ab" +fi + +src_prepare() { + cmake_src_prepare + sed 's:Werror:Wno-error:g' -i "${S}/CMakeLists.txt" || die +} diff --git a/dev-libs/gost-engine/gost-engine-9999.ebuild b/dev-libs/gost-engine/gost-engine-9999.ebuild index 945c78a4f22b..fd08e96d4a63 100644 --- a/dev-libs/gost-engine/gost-engine-9999.ebuild +++ b/dev-libs/gost-engine/gost-engine-9999.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -inherit cmake-utils +inherit cmake DESCRIPTION="A reference implementation of the Russian GOST crypto algorithms for OpenSSL" HOMEPAGE="https://github.com/gost-engine/engine" @@ -34,6 +34,6 @@ else fi src_prepare() { - cmake-utils_src_prepare + cmake_src_prepare sed 's:Werror:Wno-error:g' -i "${S}/CMakeLists.txt" || die } |