summaryrefslogtreecommitdiff
path: root/app-crypt/reop/reop-2.1.1-r2.ebuild
blob: 4e4d53dd13d779a2e8a019e0e8ac16a871bb3dbd (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
# Copyright 2020-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

DESCRIPTION="reasonable expectation of privacy"
HOMEPAGE="https://flak.tedunangst.com/post/reop"
# Ted Unangst infra has been down since early 2026, own copy, same checksum
SRC_URI="https://distfiles.hacktivis.me/releases/reop/${P}.tgz"

LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64"

DEPEND="dev-libs/libsodium:="
RDEPEND="${DEPEND}"

PATCHES=(
	"${FILESDIR}/reop-2.1.1-base64-function-signatures.patch"
	"${FILESDIR}/reop-2.1.1-bcrypt_hash-cdata-sizeof.patch"
)

src_compile() {
	emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="-lsodium ${LDFLAGS}"
}

src_test() {
	cd ./tests || die
	sh ./test.sh || die
	cd .. || die
}
src_install() {
	dobin reop
	doman reop.1
}