net-libs/usockets: fix cstdlib include error

also fix direct CC and CXX calls

Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
This commit is contained in:
epsilonKNOT
2020-11-23 09:50:54 -05:00
parent d70e31ee01
commit acc02dcb79
3 changed files with 11 additions and 7 deletions

View File

@@ -3,7 +3,7 @@
EAPI=7
inherit multilib
inherit toolchain-funcs
DESCRIPTION="tiny eventing, networking & crypto for async applications"
HOMEPAGE="https://github.com/uNetworking/uSockets"
@@ -12,9 +12,10 @@ if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/uNetworking/uSockets.git"
else
SRC_URI="https://github.com/uNetworking/uSockets/archive/v${PV}.tar.gz -> ${P}.tar.gz"
COMMIT=7683672d87067cd75b854f4e36b9820f4809a4be
SRC_URI="https://github.com/uNetworking/uSockets/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm64 ~x86"
S="${WORKDIR}/uSockets-${PV}"
S="${WORKDIR}/uSockets-${COMMIT}"
fi
LICENSE="Apache-2.0"
@@ -33,6 +34,7 @@ PATCHES=(
)
src_compile() {
tc-export CC CXX
# the Makefile uses environment variables
emake VERSION=${PV} \
LIB="$(get_libdir)" \