1 |
commit: e85481619918ebda09deae2fedf46c5ded6665f8 |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 26 17:49:51 2018 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 27 14:34:38 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8548161 |
7 |
|
8 |
net-libs/srt: 1.3.1 version bump |
9 |
|
10 |
Closes: https://bugs.gentoo.org/671986 |
11 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
12 |
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> |
13 |
|
14 |
net-libs/srt/Manifest | 1 + |
15 |
net-libs/srt/files/srt-1.3.1-no-rpath.patch | 28 +++++++++++++ |
16 |
net-libs/srt/files/srt-always-GNUInstallDirs.patch | 25 +++++++++++ |
17 |
net-libs/srt/srt-1.3.1.ebuild | 49 ++++++++++++++++++++++ |
18 |
4 files changed, 103 insertions(+) |
19 |
|
20 |
diff --git a/net-libs/srt/Manifest b/net-libs/srt/Manifest |
21 |
index 38bbc15549b..7c2f685cb52 100644 |
22 |
--- a/net-libs/srt/Manifest |
23 |
+++ b/net-libs/srt/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST srt-1.2.2.tar.gz 634049 BLAKE2B 1f650c5d8ab470829212b9c4a1082eb1de4480c8bad4b787a63a2b9c06cb7c8c0ad3a80a06ec5b13e629ec2d18a025ff36e3dcdaa9de8359805e3ff4c1b4d963 SHA512 cb897c97d5fd93b333c8de0805c78c940650a2daf8d821e09e3fb01c7e4b56bd7513cf28545f7ac422fba9fa8420b745f397359a4b9e81cff496c776820ea90a |
26 |
+DIST srt-1.3.1.tar.gz 783953 BLAKE2B 647a67fbc8806f35b6ebc5c24236664262abbccaf41668f3b3db76055917cff767b6d04b1fdd97b676772fbb561f36f3d2f712e1d1165a26033f728c1bf9efdc SHA512 1f8fdfc0e1d92bc8c477651982c23afeacb65e2293a7225227927e1b6f71a01355a3311600097d77b3df638503e4856acbcb52ed270b650480f20b98c1be5ec2 |
27 |
|
28 |
diff --git a/net-libs/srt/files/srt-1.3.1-no-rpath.patch b/net-libs/srt/files/srt-1.3.1-no-rpath.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..6e3650709c6 |
31 |
--- /dev/null |
32 |
+++ b/net-libs/srt/files/srt-1.3.1-no-rpath.patch |
33 |
@@ -0,0 +1,28 @@ |
34 |
+From a90e6ab27bc20fa34536c19828db5be44be4ef4d Mon Sep 17 00:00:00 2001 |
35 |
+From: Craig Andrews <candrews@××××××××××××.com> |
36 |
+Date: Mon, 26 Nov 2018 21:51:20 -0500 |
37 |
+Subject: [PATCH] Do not force rpath on Linux |
38 |
+ |
39 |
+--- |
40 |
+ CMakeLists.txt | 8 -------- |
41 |
+ 1 file changed, 8 deletions(-) |
42 |
+ |
43 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
44 |
+index eb2582c..60c4507 100644 |
45 |
+--- a/CMakeLists.txt |
46 |
++++ b/CMakeLists.txt |
47 |
+@@ -663,14 +663,6 @@ macro(srt_make_application name) |
48 |
+ # set (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) |
49 |
+ # set (FORCE_RPATH BUILD_WITH_INSTALL_RPATH TRUE INSTALL_RPATH_USE_LINK_PATH TRUE) |
50 |
+ |
51 |
+- if (LINUX) |
52 |
+- # This is only needed on Linux, on Windows (including Cygwin) the library file will |
53 |
+- # be placed into the binrary directory anyway. |
54 |
+- # XXX not sure about Mac. |
55 |
+- # See this name used already in install(${TARGET_srt} LIBRARY DESTINATION...). |
56 |
+- set(FORCE_RPATH LINK_FLAGS -Wl,-rpath,.,-rpath,../${CMAKE_INSTALL_LIBDIR} BUILD_WITH_INSTALL_RPATH TRUE INSTALL_RPATH_USE_LINK_PATH TRUE) |
57 |
+- endif() |
58 |
+- |
59 |
+ # We state that Darwin always uses CLANG compiler, which honors this flag the same way. |
60 |
+ set_target_properties(${name} PROPERTIES COMPILE_FLAGS "${CFLAGS_CXX_STANDARD} ${EXTRA_stransmit}" ${FORCE_RPATH}) |
61 |
+ |
62 |
|
63 |
diff --git a/net-libs/srt/files/srt-always-GNUInstallDirs.patch b/net-libs/srt/files/srt-always-GNUInstallDirs.patch |
64 |
new file mode 100644 |
65 |
index 00000000000..94332ad4476 |
66 |
--- /dev/null |
67 |
+++ b/net-libs/srt/files/srt-always-GNUInstallDirs.patch |
68 |
@@ -0,0 +1,25 @@ |
69 |
+From 68190ee0db1bc7577f17c51616966f509f971b0a Mon Sep 17 00:00:00 2001 |
70 |
+From: Craig Andrews <candrews@××××××××××××.com> |
71 |
+Date: Mon, 26 Nov 2018 12:45:38 -0500 |
72 |
+Subject: [PATCH] Always use GNUInstallDirs |
73 |
+ |
74 |
+--- |
75 |
+ CMakeLists.txt | 4 ++-- |
76 |
+ 1 file changed, 2 insertions(+), 2 deletions(-) |
77 |
+ |
78 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
79 |
+index eb2582c..59a41d4 100644 |
80 |
+--- a/CMakeLists.txt |
81 |
++++ b/CMakeLists.txt |
82 |
+@@ -32,9 +32,9 @@ set_if(SYMLINKABLE LINUX OR DARWIN OR CYGWIN) |
83 |
+ # inside "bin" and "lib64" directories. At least this maintains |
84 |
+ # the current status. Shall this be not desired, override values |
85 |
+ # of CMAKE_INSTALL_BINDIR, CMAKE_INSTALL_LIBDIR and CMAKE_INSTALL_INCLUDEDIR. |
86 |
+-if (NOT DEFINED CMAKE_INSTALL_LIBDIR) |
87 |
++# if (NOT DEFINED CMAKE_INSTALL_LIBDIR) |
88 |
+ include(GNUInstallDirs) |
89 |
+-endif() |
90 |
++# endif() |
91 |
+ |
92 |
+ set (SRT_VERSION 1.3.1) |
93 |
+ set_version_variables(SRT_VERSION ${SRT_VERSION}) |
94 |
|
95 |
diff --git a/net-libs/srt/srt-1.3.1.ebuild b/net-libs/srt/srt-1.3.1.ebuild |
96 |
new file mode 100644 |
97 |
index 00000000000..d326da6dca6 |
98 |
--- /dev/null |
99 |
+++ b/net-libs/srt/srt-1.3.1.ebuild |
100 |
@@ -0,0 +1,49 @@ |
101 |
+# Copyright 1999-2018 Gentoo Authors |
102 |
+# Distributed under the terms of the GNU General Public License v2 |
103 |
+ |
104 |
+EAPI=6 |
105 |
+ |
106 |
+inherit cmake-multilib |
107 |
+ |
108 |
+DESCRIPTION="Open-source implementation of the Secure Real-time Transport Protocol (SRTP)" |
109 |
+HOMEPAGE="https://github.com/Haivision/srt" |
110 |
+ |
111 |
+if [[ ${PV} == *9999 ]] ; then |
112 |
+ EGIT_REPO_URI="https://github.com/Haivision/${PN}.git" |
113 |
+ inherit git-r3 |
114 |
+else |
115 |
+ SRC_URI="https://github.com/Haivision/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
116 |
+ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos" |
117 |
+fi |
118 |
+ |
119 |
+LICENSE="LGPL-2.1" |
120 |
+SLOT="0" |
121 |
+IUSE="doc libressl gnutls" |
122 |
+ |
123 |
+RDEPEND=" |
124 |
+ gnutls? ( net-libs/gnutls ) |
125 |
+ !gnutls? ( |
126 |
+ !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] ) |
127 |
+ libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] ) |
128 |
+ ) |
129 |
+" |
130 |
+DEPEND="${RDEPEND}" |
131 |
+DOCS=( README.md ) |
132 |
+ |
133 |
+PATCHES=( |
134 |
+ "${FILESDIR}/${PN}-always-GNUInstallDirs.patch" |
135 |
+ "${FILESDIR}/${P}-no-rpath.patch" |
136 |
+) |
137 |
+ |
138 |
+src_prepare() { |
139 |
+ cmake-utils_src_prepare |
140 |
+ sed -i -e "s:hcrypt_ut.c::" "${S}"/haicrypt/*.maf || die |
141 |
+ sed -i -e 's:DESTINATION lib:DESTINATION lib${LIB_SUFFIX}:' CMakeLists.txt || die |
142 |
+} |
143 |
+ |
144 |
+src_configure() { |
145 |
+ local mycmakeargs=( |
146 |
+ -DUSE_GNUTLS=$(usex gnutls) |
147 |
+ ) |
148 |
+ cmake-multilib_src_configure |
149 |
+} |