app-crypt/elfcrypt: add examples

This commit is contained in:
rick 2025-11-23 20:53:14 +01:00
parent f0966cf331
commit 521a4113ba
No known key found for this signature in database
GPG key ID: D3FB4A5EDD2CBF02
2 changed files with 10 additions and 0 deletions

View file

@ -14,6 +14,7 @@ SRC_URI="https://github.com/droberson/ELFcrypt/archive/${HASH_COMMIT}.tar.gz ->
KEYWORDS="~amd64 ~x86" KEYWORDS="~amd64 ~x86"
S="${WORKDIR}/ELFcrypt-${HASH_COMMIT}" S="${WORKDIR}/ELFcrypt-${HASH_COMMIT}"
IUSE="examples"
LICENSE="MIT" LICENSE="MIT"
SLOT="0" SLOT="0"
@ -30,4 +31,8 @@ src_prepare() {
src_install() { src_install() {
dobin ELFcrypt dobin ELFcrypt
dodoc README.md dodoc README.md
if use examples; then
dodoc example.c
docompress -x /usr/share/doc/${PF}/example.c
fi
} }

View file

@ -21,6 +21,7 @@ fi
LICENSE="MIT" LICENSE="MIT"
SLOT="0" SLOT="0"
IUSE="examples"
src_prepare() { src_prepare() {
sed -e "s/gcc/$(tc-getCC)/" \ sed -e "s/gcc/$(tc-getCC)/" \
@ -35,4 +36,8 @@ src_prepare() {
src_install() { src_install() {
dobin ELFcrypt dobin ELFcrypt
dodoc README.md dodoc README.md
if use examples; then
dodoc example.c
docompress -x /usr/share/doc/${PF}/example.c
fi
} }