Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/srt/
Date: Tue, 27 Nov 2018 14:34:54
Message-Id: 1543329279.0bd5201e672fac315910ea1d5fb4fd7fb5de4241.candrews@gentoo
1 commit: 0bd5201e672fac315910ea1d5fb4fd7fb5de4241
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 26 17:50:17 2018 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 27 14:34:39 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0bd5201e
7
8 net-libs/srt: Add -9999 live version
9
10 Package-Manager: Portage-2.3.52, Repoman-2.3.12
11 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
12
13 net-libs/srt/srt-9999.ebuild | 51 ++++++++++++++++++++++++++++++++++++++++++++
14 1 file changed, 51 insertions(+)
15
16 diff --git a/net-libs/srt/srt-9999.ebuild b/net-libs/srt/srt-9999.ebuild
17 new file mode 100644
18 index 00000000000..6ba9d871779
19 --- /dev/null
20 +++ b/net-libs/srt/srt-9999.ebuild
21 @@ -0,0 +1,51 @@
22 +# Copyright 1999-2018 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +
27 +inherit cmake-multilib
28 +
29 +DESCRIPTION="Open-source implementation of the Secure Real-time Transport Protocol (SRTP)"
30 +HOMEPAGE="https://github.com/Haivision/srt"
31 +
32 +if [[ ${PV} == *9999 ]] ; then
33 + EGIT_REPO_URI="https://github.com/Haivision/${PN}.git"
34 + inherit git-r3
35 +else
36 + SRC_URI="https://github.com/Haivision/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
37 + KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos"
38 +fi
39 +
40 +LICENSE="LGPL-2.1"
41 +SLOT="0"
42 +IUSE="doc libressl gnutls test"
43 +
44 +RDEPEND="
45 + gnutls? ( net-libs/gnutls )
46 + !gnutls? (
47 + !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
48 + libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] )
49 + )
50 +"
51 +DEPEND="${RDEPEND}
52 + test? ( dev-cpp/gtest )"
53 +RESTRICT="!test? ( test )"
54 +DOCS=( README.md )
55 +
56 +PATCHES=(
57 + "${FILESDIR}/${PN}-always-GNUInstallDirs.patch"
58 +)
59 +
60 +src_prepare() {
61 + cmake-utils_src_prepare
62 + sed -i -e "s:hcrypt_ut.c::" "${S}"/haicrypt/*.maf || die
63 + sed -i -e 's:DESTINATION lib:DESTINATION lib${LIB_SUFFIX}:' CMakeLists.txt || die
64 +}
65 +
66 +src_configure() {
67 + local mycmakeargs=(
68 + -DUSE_GNUTLS=$(usex gnutls)
69 + -DENABLE_UNITTESTS=$(usex test)
70 + )
71 + cmake-multilib_src_configure
72 +}