guru/app-crypt/reop/reop-2.1.1-r1.ebuild
Haelwenn (lanodan) Monnier 1fd7313bb6
app-crypt/reop: Modern-C fixes
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2024-07-11 01:48:00 +02:00

37 lines
714 B
Bash

# 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"
SRC_URI="https://flak.tedunangst.com/files/${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
}