summaryrefslogtreecommitdiff
path: root/app-crypt/scrypt/scrypt-1.3.3.ebuild
blob: 5c862cc78e5d7714164898de9cf898b913b11b17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/tarsnap.asc
inherit verify-sig

DESCRIPTION="A simple password-based encryption utility using scrypt key derivation function"
HOMEPAGE="https://www.tarsnap.com/scrypt.html"
SRC_URI="
	https://www.tarsnap.com/scrypt/${P}.tgz
	verify-sig? ( https://www.tarsnap.com/scrypt/${PN}-sigs-${PV}.asc )
"

LICENSE="BSD-2"
SLOT="0"
KEYWORDS="amd64 x86"

DOCS=( FORMAT )

BDEPEND="verify-sig? ( sec-keys/openpgp-keys-tarsnap )"

src_unpack() {
	if use verify-sig; then
		cd "${DISTDIR}" || die
		verify-sig_verify_signed_checksums \
			${PN}-sigs-${PV}.asc \
			openssl-dgst \
			${P}.tgz
		cd "${WORKDIR}" || die
	fi

	default
}

src_test() {
	# There's an empty check target, so can't call default.
	emake test
}