Skip to content

Commit

Permalink
dev-haskell/cryptonite: switch to CPU_CLAGS_X86_* IUSEs
Browse files Browse the repository at this point in the history
Reported-by: Michał Górny
Closes: https://bugs.gentoo.org/695058
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Sergei Trofimovich <[email protected]>
  • Loading branch information
Sergei Trofimovich committed Oct 1, 2019
1 parent 66fed57 commit 4f9b108
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 100 deletions.
2 changes: 0 additions & 2 deletions dev-haskell/cryptonite/Manifest
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
DIST cryptonite-0.21.tar.gz 615850 BLAKE2B df5f0273fa40b5401e4bb5df7c4cd5839ab87fdff3d2cef6be80c977433a1adbcdbf1c9d42f79987e4a7a590f8179fd998f93017af396116e10554108566b028 SHA512 7f04ad5f7411bf90f343c13b71438fdd0e1e40cc5c9a5f1553c1f396a278f81cbe3a548ee8bc03b3b63bc66485ce36dc9a93c3dc3e5884f601bbae49efa98cc3
DIST cryptonite-0.7.tar.gz 324734 BLAKE2B b0eabfa2575ed4680de541b5acafa1cc7d95ed5e7faca3ea53dddfdeea98a69ca76d7ea65e6117a8f6faf3c43a0b8f3a39c200e975279a78366140d80d663aff SHA512 077b181b1563087c6c04816a36bfd2efd7a732f72b02e5277f3d987093954ca8e420814b547c7c985418e74e8c838a3c8381b4821f3ed6fa8412b63078fade0e
DIST cryptonite-0.8.tar.gz 325531 BLAKE2B b62d1330de4305e2a7c48063f1745d8f47ef176d356c07b2d533dbdfe02d4d76bd5699f8dda0f258108b2c16b2cf4bbe8228f4565620125839101e721310a05a SHA512 c393e7a93f8d4368ae9ee3130eb44cbc0a4937fdbe27bb918a8900716d9946bae39897717b1c2b3c2531ce69562df3d3260177fa76a6f90ee53ace206fe382a3
20 changes: 10 additions & 10 deletions dev-haskell/cryptonite/cryptonite-0.21.ebuild
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6
EAPI=7

# ebuild generated by hackport 0.5.1.9999
#hackport: flags: -check_alignment,-old_toolchain_inliner
# ebuild generated by hackport 0.6.9999
#hackport: flags: -check_alignment,-old_toolchain_inliner,+support_deepseq,support_aesni:cpu_flags_x86_aes,support_pclmuldq:cpu_flags_x86_sse4_1,support_sse:cpu_flags_x86_sse,support_rdrand:cpu-flags-x86-rdrand,support_blake2_sse:cpu_flags_x86_sse

CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
inherit haskell-cabal
Expand All @@ -15,8 +15,8 @@ SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"

LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
IUSE="+integer-gmp +support_aesni support_blake2_sse +support_deepseq support_pclmuldq +support_rdrand"
KEYWORDS="~amd64 ~x86"
IUSE="+cpu-flags-x86-rdrand +cpu_flags_x86_aes cpu_flags_x86_sse cpu_flags_x86_sse4_1 +integer-gmp"

RDEPEND=">=dev-haskell/memory-0.8:=[profile?]
>=dev-lang/ghc-7.4.1:=
Expand All @@ -35,9 +35,9 @@ src_configure() {
--flag=-check_alignment \
$(cabal_flag integer-gmp integer-gmp) \
--flag=-old_toolchain_inliner \
$(cabal_flag support_aesni support_aesni) \
$(cabal_flag support_blake2_sse support_blake2_sse) \
$(cabal_flag support_deepseq support_deepseq) \
$(cabal_flag support_pclmuldq support_pclmuldq) \
$(cabal_flag support_rdrand support_rdrand)
$(cabal_flag cpu_flags_x86_aes support_aesni) \
$(cabal_flag cpu_flags_x86_sse support_blake2_sse) \
--flag=support_deepseq \
$(cabal_flag cpu_flags_x86_sse4_1 support_pclmuldq) \
$(cabal_flag cpu-flags-x86-rdrand support_rdrand)
}
41 changes: 0 additions & 41 deletions dev-haskell/cryptonite/cryptonite-0.7.ebuild

This file was deleted.

41 changes: 0 additions & 41 deletions dev-haskell/cryptonite/cryptonite-0.8.ebuild

This file was deleted.

8 changes: 2 additions & 6 deletions dev-haskell/cryptonite/metadata.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version='1.0' encoding='UTF-8'?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
Expand Down Expand Up @@ -29,12 +29,8 @@
Evaluate the security related to your requirements before using.
</longdescription>
<use>
<flag name="support_aesni">allow compilation with AESNI on system and architecture that supports it</flag>
<flag name="support_rdrand">allow compilation with AESNI on system and architecture that supports it</flag>
<flag name="support_pclmuldq">Allow compilation with pclmuldq on architecture that supports it</flag>
<flag name="cpu-flags-x86-rdrand">allow compilation with RDRAND on system and architecture that supports it</flag>
<flag name="integer-gmp">Whether or not to use GMP for some functions</flag>
<flag name="support_deepseq">add deepseq instances for cryptographic types</flag>
<flag name="support_blake2_sse">Use SSE optimized version of BLAKE2</flag>
</use>
<upstream>
<remote-id type="github">haskell-crypto/cryptonite</remote-id>
Expand Down

0 comments on commit 4f9b108

Please sign in to comment.