mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -04:00
net-libs/usockets: version bump to latest commit
adds new optional dependency on dev-cpp/asio Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
This commit is contained in:
@@ -12,31 +12,35 @@ 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="c06112c89b4c1cf5a09b5f8daa2def756b925889"
|
||||
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"
|
||||
SLOT="0"
|
||||
IUSE="libuv +ssl"
|
||||
IUSE="asio libuv +ssl"
|
||||
REQUIRED_USE="?? ( asio libuv )"
|
||||
|
||||
DEPEND="
|
||||
asio? ( dev-cpp/asio[ssl?] )
|
||||
libuv? ( dev-libs/libuv )
|
||||
ssl? ( >=dev-libs/openssl-1.1.0 )
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-0.7.1-Makefile.patch"
|
||||
"${FILESDIR}/${PN}-0.7.1_p20210909-Makefile.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
tc-export CC CXX AR
|
||||
export VERSION="${PV%_*}" \
|
||||
LIB="$(get_libdir)" \
|
||||
WITH_OPENSSL="$(usex ssl 1 0)"
|
||||
WITH_LIBUV="$(usex libuv 1 0)"
|
||||
WITH_OPENSSL="$(usex ssl 1 0)" \
|
||||
WITH_LIBUV="$(usex libuv 1 0)" \
|
||||
WITH_ASIO="$(usex asio 1 0)"
|
||||
default
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user