# Copyright 2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit flag-o-matic toolchain-funcs DESCRIPTION="Encrypted personal archives" HOMEPAGE="https://github.com/skeeto/enchive" SRC_URI="https://github.com/skeeto/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="Unlicense" SLOT="0" KEYWORDS="~amd64" IUSE="+agent" DOCS=(NEWS.md README.md) src_prepare() { default sed -i -e '/^.*gzip < enchive.1 .*/d' Makefile || die # do not .gz man pages } src_compile() { append-cppflags -DENCHIVE_OPTION_AGENT=$(usex agent 1 0) emake \ CC="$(tc-getCC)" \ CFLAGS="${CFLAGS} ${CPPFLAGS}" \ LDFLAGS="${LDFLAGS}" } src_install() { emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install doman enchive.1 einstalldocs }