commit:     9e248e8ebdbb46699427023f949d267f14559fc1
Author:     Sergey Ilinykh <rion4ik <AT> gmail <DOT> com>
AuthorDate: Thu Apr  8 07:42:52 2021 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Apr 13 10:54:54 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e248e8e

net-libs/usrsctp: added version 0.9.5.0

Closes: https://bugs.gentoo.org/774369
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Sergey Ilinykh <rion4ik <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/20301
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 net-libs/usrsctp/Manifest                          |  1 +
 .../files/usrsctp-0.9.5.0-pc-inc-path.patch        | 22 ++++++++++++++++++
 net-libs/usrsctp/usrsctp-0.9.5.0.ebuild            | 26 ++++++++++++++++++++++
 3 files changed, 49 insertions(+)

diff --git a/net-libs/usrsctp/Manifest b/net-libs/usrsctp/Manifest
index 15767869457..53b04499513 100644
--- a/net-libs/usrsctp/Manifest
+++ b/net-libs/usrsctp/Manifest
@@ -1 +1,2 @@
 DIST usrsctp-0.9.3.0_p20201102.tar.gz 770742 BLAKE2B 
94c7b0417a076d627065c625726eb214ec58be90d0965748610f63c076f1c172cb114dc8162af5604751cfe5e86ebf5444f002d07e43c94e461e21f6a3a4819a
 SHA512 
a4bb4dd0ec81b2314e8590cfe5386179697e64d82915a0ef7e8f7a0baf67f88e3da89329ea73b38e8c417668f971f6580e120ed5be8588761b4b334a65ab4120
+DIST usrsctp-0.9.5.0.tar.gz 771701 BLAKE2B 
279394aecea61795360db3b57140c55dc2801f55471fb97754e054ccd5d99c87e17dc637cdcb347be258034175b96efbc18d75a114f47e1957cacef897822df3
 SHA512 
7b28706449f9365ba9750fd39925e7171516a1e3145d123ec69a12486637ae2393ad4c587b056403298dc13c149f0b01a262cbe4852abca42e425d7680c77ee3

diff --git a/net-libs/usrsctp/files/usrsctp-0.9.5.0-pc-inc-path.patch 
b/net-libs/usrsctp/files/usrsctp-0.9.5.0-pc-inc-path.patch
new file mode 100644
index 00000000000..668f522a09e
--- /dev/null
+++ b/net-libs/usrsctp/files/usrsctp-0.9.5.0-pc-inc-path.patch
@@ -0,0 +1,22 @@
+From 70d42ae95a1de83bd317c8cc9503f894671d1392 Mon Sep 17 00:00:00 2001
+From: Michael Tuexen <[email protected]>
+Date: Mon, 29 Mar 2021 13:36:32 +0200
+Subject: [PATCH] Fix https://github.com/sctplab/usrsctp/issues/574
+
+---
+ usrsctplib/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/usrsctplib/CMakeLists.txt b/usrsctplib/CMakeLists.txt
+index aa99cf2f..84bdee2e 100644
+--- a/usrsctplib/CMakeLists.txt
++++ b/usrsctplib/CMakeLists.txt
+@@ -45,7 +45,7 @@ include(GNUInstallDirs)
+ set(prefix ${CMAKE_INSTALL_PREFIX})
+ set(exec_prefix ${prefix})
+ set(libdir ${exec_prefix}/${CMAKE_INSTALL_LIBDIR})
+-set(includedir ${prefix}/${CMAKE_INSTALL_INCLUDEDIR}/usrsctp)
++set(includedir ${prefix}/${CMAKE_INSTALL_INCLUDEDIR})
+ 
+ set(CMAKE_REQUIRED_INCLUDES ${CMAKE_CURRENT_SOURCE_DIR})
+ set(CMAKE_MACOSX_RPATH 1)

diff --git a/net-libs/usrsctp/usrsctp-0.9.5.0.ebuild 
b/net-libs/usrsctp/usrsctp-0.9.5.0.ebuild
new file mode 100644
index 00000000000..b90c995a89d
--- /dev/null
+++ b/net-libs/usrsctp/usrsctp-0.9.5.0.ebuild
@@ -0,0 +1,26 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="A cross-platform userland SCTP stack"
+HOMEPAGE="https://github.com/sctplab/usrsctp";
+SRC_URI="https://github.com/sctplab/usrsctp/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DOCS=( LICENSE.md Manual.md README.md )
+PATCHES=( "${FILESDIR}/${P}-pc-inc-path.patch" )
+
+src_configure() {
+       local mycmakeargs=(
+               -Dsctp_werror=0
+               -Dsctp_build_programs=0
+               -Dsctp_build_shared_lib=1
+       )
+       cmake_src_configure
+}

Reply via email to