dev-libs/lsbcrypt: fix to install the built lib

* Drop superfluous eclasses
* Add the public-domain license
* Patch tests to abort on failure
* Actually install the compiled lib in src_install

Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
This commit is contained in:
Lucio Sauer
2023-07-02 22:17:12 +02:00
parent b33d12fed0
commit 736541eab9
3 changed files with 84 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
COMMIT="55ff64349dec3012cfbbb1c4f92d4dbd46920213"
DESCRIPTION="libcrypt wrapper for LiteSpeedTech"
HOMEPAGE="https://github.com/litespeedtech/libbcrypt/"
SRC_URI="https://github.com/litespeedtech/libbcrypt/archive/${COMMIT}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="CC0-1.0 public-domain"
SLOT="0"
KEYWORDS="~amd64"
S="${WORKDIR}/libbcrypt-${COMMIT}"
PATCHES=(
"${FILESDIR}"/${PV}-fix-tests.patch
)
src_test() {
default
./bcrypt_test || die "Tests failed!"
}
src_install() {
newlib.a bcrypt.a libbcrypt.a
einstalldocs
}