net-libs/kcgi: version bump to 0.12.4

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
This commit is contained in:
Aisha Tammy
2021-04-10 18:30:46 -04:00
parent 878aa4b08c
commit 2ca8088bb8
2 changed files with 55 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST kcgi-0.12.3.tgz 245425 BLAKE2B 8368e7c6ed48e876ee7e6d4e9689166eeca84681cbd65014af4537138b4ace00f1e02a981688bacdda4e7ec6a49d9d46bff3f6cbb0c03e91bff7768fefab8429 SHA512 70a79d10ac1fa2c5d7fc6a8a3b52ddd174842117b45b22a28068ed49649c4165ec1464597c2168e20200fedd39212811dbecfa23a9494989b4ab11b0a51c0fd1
DIST kcgi-0.12.4.tgz 246228 BLAKE2B 9511d7a71ec37928a8f770df8cbe02049b77dac00581579aab2c985ef147e5952b3fa118f1c2b2232ccfabe1a4ee0b7cc54502421990fd31d5755ed06ccff270 SHA512 a4ca9aea17465f6592f15184ae3c13febd0b5e9a23e3ee21ead5857a2800b44b1a79cf90c80d924d96977c2cfd5cb23382a86af9860979018115eec51b893052

View File

@@ -0,0 +1,54 @@
# Copyright 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit multiprocessing toolchain-funcs
DESCRIPTION="minimal CGI library for web applications"
HOMEPAGE="https://kristaps.bsd.lv/kcgi/"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/kristapsdz/kcgi"
else
SRC_URI="https://kristaps.bsd.lv/kcgi/snapshots/${P}.tgz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="ISC"
SLOT="0"
IUSE="test"
RESTRICT="!test? ( test )"
BDEPEND="sys-devel/bmake"
DEPEND="
test? ( net-misc/curl[static-libs] )
"
src_configure() {
./configure PREFIX="${EPREFIX}/usr" \
MANDIR="${EPREFIX}/usr/share/man" \
LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
SBINDIR="${EPREFIX}/usr/bin" || die
echo 'LDADD_LIB_SOCKET += ${LDFLAGS}' >> Makefile.configure || die
}
src_compile() {
bmake -j$(makeopts_jobs) \
CC="$(tc-getCC)" || die
}
src_test() {
bmake -j$(makeopts_jobs) \
CC="$(tc-getCC)" regress || die
}
src_install() {
bmake -j$(makeopts_jobs) \
CC="$(tc-getCC)" \
DESTDIR="${D}" \
MANDIR=/usr/share/man \
install || die
find "${ED}/usr/$(get_libdir)" -name "*.a" -delete
}