# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 CABAL_HACKAGE_REVISION=2 CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" CABAL_PN="${PN^^}" inherit haskell-cabal DESCRIPTION="Implementation of RSA, using the padding schemes of PKCS#1 v2.1" HOMEPAGE="https://github.com/GaloisInc/RSA" LICENSE="BSD" SLOT="0/${PV}" KEYWORDS="~amd64 ~x86" RDEPEND="dev-haskell/crypto-api:=[profile?] dev-haskell/crypto-pubkey-types:=[profile?] dev-haskell/sha:=[profile?] dev-lang/ghc:=" DEPEND="${RDEPEND}" BDEPEND="dev-haskell/cabal:= test? ( dev-haskell/crypto-pubkey-types:=[profile?] dev-haskell/quickcheck:=[profile?] dev-haskell/tagged:=[profile?] dev-haskell/test-framework:=[profile?] dev-haskell/test-framework-quickcheck2:=[profile?] )" src_prepare() { haskell-cabal_src_prepare sed -i '/license-file/,+1d' RSA.cabal || die "sed failed" }