diff options
author | Craig Andrews <candrews@gentoo.org> | 2018-11-26 12:50:17 -0500 |
---|---|---|
committer | Craig Andrews <candrews@gentoo.org> | 2018-11-27 09:34:39 -0500 |
commit | 0bd5201e672fac315910ea1d5fb4fd7fb5de4241 (patch) | |
tree | da219f0c2c110fbe22a348d4725c88a8008b31d8 /net-libs | |
parent | net-libs/srt: 1.3.1 version bump (diff) | |
download | gentoo-0bd5201e672fac315910ea1d5fb4fd7fb5de4241.tar.gz gentoo-0bd5201e672fac315910ea1d5fb4fd7fb5de4241.tar.bz2 gentoo-0bd5201e672fac315910ea1d5fb4fd7fb5de4241.zip |
net-libs/srt: Add -9999 live version
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/srt/srt-9999.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/net-libs/srt/srt-9999.ebuild b/net-libs/srt/srt-9999.ebuild new file mode 100644 index 000000000000..6ba9d8717793 --- /dev/null +++ b/net-libs/srt/srt-9999.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-multilib + +DESCRIPTION="Open-source implementation of the Secure Real-time Transport Protocol (SRTP)" +HOMEPAGE="https://github.com/Haivision/srt" + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/Haivision/${PN}.git" + inherit git-r3 +else + SRC_URI="https://github.com/Haivision/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos" +fi + +LICENSE="LGPL-2.1" +SLOT="0" +IUSE="doc libressl gnutls test" + +RDEPEND=" + gnutls? ( net-libs/gnutls ) + !gnutls? ( + !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] ) + libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] ) + ) +" +DEPEND="${RDEPEND} + test? ( dev-cpp/gtest )" +RESTRICT="!test? ( test )" +DOCS=( README.md ) + +PATCHES=( + "${FILESDIR}/${PN}-always-GNUInstallDirs.patch" +) + +src_prepare() { + cmake-utils_src_prepare + sed -i -e "s:hcrypt_ut.c::" "${S}"/haicrypt/*.maf || die + sed -i -e 's:DESTINATION lib:DESTINATION lib${LIB_SUFFIX}:' CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DUSE_GNUTLS=$(usex gnutls) + -DENABLE_UNITTESTS=$(usex test) + ) + cmake-multilib_src_configure +} |