net-libs/usockets: fix library soname version

Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
This commit is contained in:
Aisha Tammy
2021-01-29 02:10:17 +00:00
parent 6ae1d1c21c
commit bd01c5550e
2 changed files with 16 additions and 26 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 2019-2020 Gentoo Authors # Copyright 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=7 EAPI=7
@@ -34,22 +34,17 @@ PATCHES=(
"${FILESDIR}/${PN}-0.6.0-Makefile.patch" "${FILESDIR}/${PN}-0.6.0-Makefile.patch"
) )
src_compile() { src_configure() {
tc-export CC CXX tc-export CC CXX
# the Makefile uses environment variables export VERSION="${PV%_*}" \
emake VERSION=${PV} \ LIB="$(get_libdir)" \
LIB="$(get_libdir)" \ WITH_OPENSSL="$(usex ssl 1 0)"
WITH_OPENSSL=$(usex ssl 1 0) \ WITH_LIBUV="$(usex libuv 1 0)"
WITH_LIBUV=$(usex libuv 1 0) \ default
default
} }
src_install() { src_install() {
emake LIB="$(get_libdir)" \ default
prefix="${EPREFIX%/}/usr" \
DESTDIR="${D}" \
VERSION=${PV} \
install
einstalldocs einstalldocs
if ! use static-libs; then if ! use static-libs; then
rm -f "${ED}/usr/$(get_libdir)/libusockets.a" || die rm -f "${ED}/usr/$(get_libdir)/libusockets.a" || die

View File

@@ -1,4 +1,4 @@
# Copyright 2019-2020 Gentoo Authors # Copyright 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=7 EAPI=7
@@ -34,22 +34,17 @@ PATCHES=(
"${FILESDIR}/${PN}-0.6.0-Makefile.patch" "${FILESDIR}/${PN}-0.6.0-Makefile.patch"
) )
src_compile() { src_configure() {
tc-export CC CXX tc-export CC CXX
# the Makefile uses environment variables export VERSION="${PV%_*}" \
emake VERSION=${PV} \ LIB="$(get_libdir)" \
LIB="$(get_libdir)" \ WITH_OPENSSL="$(usex ssl 1 0)"
WITH_OPENSSL=$(usex ssl 1 0) \ WITH_LIBUV="$(usex libuv 1 0)"
WITH_LIBUV=$(usex libuv 1 0) \ default
default
} }
src_install() { src_install() {
emake LIB="$(get_libdir)" \ default
prefix="${EPREFIX%/}/usr" \
DESTDIR="${D}" \
VERSION=${PV} \
install
einstalldocs einstalldocs
if ! use static-libs; then if ! use static-libs; then
rm -f "${ED}/usr/$(get_libdir)/libusockets.a" || die rm -f "${ED}/usr/$(get_libdir)/libusockets.a" || die