mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
app-crypt/elfcrypt: add examples
This commit is contained in:
parent
f0966cf331
commit
521a4113ba
2 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue