Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-plugins/live/
Date: Fri, 09 Feb 2018 11:39:35
Message-Id: 1518176351.cd1a5cb6ab0c1684078c59805e8a6713c56841d2.aballier@gentoo
1 commit: cd1a5cb6ab0c1684078c59805e8a6713c56841d2
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 9 10:04:53 2018 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 9 11:39:11 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd1a5cb6
7
8 media-plugins/live: bump to 2018.01.29
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 media-plugins/live/Manifest | 1 +
13 media-plugins/live/live-2018.01.29.ebuild | 128 ++++++++++++++++++++++++++++++
14 2 files changed, 129 insertions(+)
15
16 diff --git a/media-plugins/live/Manifest b/media-plugins/live/Manifest
17 index c83b652e2b4..58aec57ed77 100644
18 --- a/media-plugins/live/Manifest
19 +++ b/media-plugins/live/Manifest
20 @@ -4,3 +4,4 @@ DIST live.2017.06.04.tar.gz 629288 BLAKE2B df2e99ab348b92de1b3ac60b53e9f80a41a83
21 DIST live.2017.07.18.tar.gz 629395 BLAKE2B 79a7a31b65d6a116ab36f6f9c590df0957ce84810cb4ac6ae101ae6185bbe80cbbea68a45a0119cb2acb75f7f7647b4f4006449e82b5f02b597f3048bf322d58 SHA512 49e164203a73a94629e66fcf48fde5f937b2c4724a0d4026b1970a8118039ce5cec393b777dea7439c09d3b0789f9f9d7f6f8a5328c4a3dd78a95e05b6525586
22 DIST live.2017.09.12.tar.gz 629538 BLAKE2B 6f2b08d6b73a287663ec2c40faa7ff8b955aea7ca261d3eec69d85ea77f26ee951d14c3aedac48d84be0bdaafccc7a721d83974ce0fc8693aecc63984f377fbe SHA512 09b18b5f5dce28519b6c7cd8d52eb3448711939df051f84c8d6dce0b88d05c982711059f2ce13efccd326b2dbfeb93b88c4e03fe4a88bbd8fcefcb25e51d107d
23 DIST live.2017.10.28.tar.gz 629858 BLAKE2B a1d862ae1356b46fcd4e5ef7e27c47d3fb3abac35add6feb7955f60ddbd93e9242a84102393de67dda0d39c09632a0cc9a5f54d30c9f91d005696d3a566258bd SHA512 eea5bdb8d89e76c8b6aeb6ec04b77af3048cb41f228d230ba4da6045e9bc691a456023d44d8650fe690b08143567ed5af5b633f5b6522debff79344a813dc7d0
24 +DIST live.2018.01.29.tar.gz 630144 BLAKE2B dd58865636a44ccabd0e3b02e1679393f17fb09d82455188d49d4fcb321b21e136a168c0f4c407c1dba3afcb5b541192cd2c5181d7a7710d39d4727526fc39cf SHA512 dfdfcac67acd28f651807de423c6aed00190cfc38ecd361b76d37d8cc27ee2fa91a42a5b8835045680fd7f65c847e41747b948c2c71e6530a3c7e89421c60227
25
26 diff --git a/media-plugins/live/live-2018.01.29.ebuild b/media-plugins/live/live-2018.01.29.ebuild
27 new file mode 100644
28 index 00000000000..bc3998e3bd5
29 --- /dev/null
30 +++ b/media-plugins/live/live-2018.01.29.ebuild
31 @@ -0,0 +1,128 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=5
36 +inherit flag-o-matic eutils toolchain-funcs multilib multilib-minimal
37 +
38 +DESCRIPTION="Libraries for standards-based RTP/RTCP/RTSP multimedia streaming"
39 +HOMEPAGE="http://www.live555.com/"
40 +SRC_URI="http://www.live555.com/liveMedia/public/${P/-/.}.tar.gz
41 + mirror://gentoo/${P/-/.}.tar.gz"
42 +
43 +LICENSE="LGPL-2.1"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
45 +IUSE="examples static-libs"
46 +DOCS=( "live-shared/README" )
47 +
48 +# Alexis Ballier <aballier@g.o>
49 +# Be careful, bump this everytime you bump the package and the ABI has changed.
50 +# If you don't know, ask someone.
51 +LIVE_ABI_VERSION=7
52 +SLOT="0/${LIVE_ABI_VERSION}"
53 +
54 +src_unpack() {
55 + unpack ${A}
56 + mkdir -p "${S}"
57 + mv "${WORKDIR}/live" "${S}/" || die
58 +}
59 +
60 +src_prepare() {
61 + epatch "${FILESDIR}/${PN}-recursive3.patch"
62 +
63 + if use static-libs ; then
64 + cp -pPR live live-shared
65 + mv live live-static
66 + else
67 + mv live live-shared
68 + fi
69 +
70 + use static-libs && cp "${FILESDIR}/config.gentoo-r1" live-static/config.gentoo
71 + cp "${FILESDIR}/config.gentoo-so-r2" live-shared/config.gentoo-so-r1
72 +
73 + case ${CHOST} in
74 + *-solaris*)
75 + use static-libs && { sed -i \
76 + -e '/^COMPILE_OPTS /s/$/ -DSOLARIS -DXLOCALE_NOT_USED/' \
77 + -e '/^LIBS_FOR_CONSOLE_APPLICATION /s/$/ -lsocket -lnsl/' \
78 + live-static/config.gentoo \
79 + || die ; }
80 + sed -i \
81 + -e '/^COMPILE_OPTS /s/$/ -DSOLARIS -DXLOCALE_NOT_USED/' \
82 + -e '/^LIBS_FOR_CONSOLE_APPLICATION /s/$/ -lsocket -lnsl/' \
83 + live-shared/config.gentoo-so-r1 \
84 + || die
85 + ;;
86 + *-darwin*)
87 + use static-libs && { sed -i \
88 + -e '/^COMPILE_OPTS /s/$/ -DBSD=1 -DHAVE_SOCKADDR_LEN=1/' \
89 + -e '/^LINK /s/$/ /' \
90 + -e '/^LIBRARY_LINK /s/$/ /' \
91 + -e '/^LIBRARY_LINK_OPTS /s/-Bstatic//' \
92 + live-static/config.gentoo \
93 + || die static ; }
94 + sed -i \
95 + -e '/^COMPILE_OPTS /s/$/ -DBSD=1 -DHAVE_SOCKADDR_LEN=1/' \
96 + -e '/^LINK /s/$/ /' \
97 + -e '/^LIBRARY_LINK /s/=.*$/= $(CXX) -o /' \
98 + -e '/^LIBRARY_LINK_OPTS /s:-shared.*$:-undefined suppress -flat_namespace -dynamiclib -install_name '"${EPREFIX}/usr/$(get_libdir)/"'$@:' \
99 + -e '/^LIB_SUFFIX /s/so/dylib/' \
100 + live-shared/config.gentoo-so-r1 \
101 + || die shared
102 + ;;
103 + esac
104 + multilib_copy_sources
105 +}
106 +
107 +src_configure() { :; }
108 +
109 +multilib_src_compile() {
110 + tc-export CC CXX LD
111 +
112 + if use static-libs ; then
113 + cd "${BUILD_DIR}/live-static"
114 +
115 + einfo "Beginning static library build"
116 + ./genMakefiles gentoo
117 + emake -j1 LINK_OPTS="-L. $(raw-ldflags)" || die "failed to build static libraries"
118 + fi
119 +
120 + cd "${BUILD_DIR}/live-shared"
121 + einfo "Beginning shared library build"
122 + ./genMakefiles gentoo-so-r1
123 + local suffix=$(get_libname ${LIVE_ABI_VERSION})
124 + emake -j1 LINK_OPTS="-L. ${LDFLAGS}" LIB_SUFFIX="${suffix#.}" || die "failed to build shared libraries"
125 +
126 + for i in liveMedia groupsock UsageEnvironment BasicUsageEnvironment ; do
127 + pushd "${BUILD_DIR}/live-shared/${i}" > /dev/null
128 + ln -s lib${i}.${suffix#.} lib${i}$(get_libname) || die
129 + popd > /dev/null
130 + done
131 +
132 + if multilib_is_native_abi; then
133 + einfo "Beginning programs build"
134 + for i in $(use examples && echo "testProgs") proxyServer mediaServer ; do
135 + cd "${BUILD_DIR}/live-shared/${i}"
136 + emake LINK_OPTS="-L. ${LDFLAGS}" || die "failed to build test programs"
137 + done
138 + fi
139 +}
140 +
141 +multilib_src_install() {
142 + for library in UsageEnvironment liveMedia BasicUsageEnvironment groupsock; do
143 + use static-libs && dolib.a live-static/${library}/lib${library}.a
144 + dolib.so live-shared/${library}/lib${library}$(get_libname ${LIVE_ABI_VERSION})
145 + dosym lib${library}$(get_libname ${LIVE_ABI_VERSION}) /usr/$(get_libdir)/lib${library}$(get_libname)
146 +
147 + insinto /usr/include/${library}
148 + doins live-shared/${library}/include/*h
149 + done
150 +
151 + if multilib_is_native_abi; then
152 + # Should we really install these?
153 + use examples && find live-shared/testProgs -type f -perm 755 -print0 | \
154 + xargs -0 dobin
155 +
156 + dobin live-shared/mediaServer/live555MediaServer
157 + dobin live-shared/proxyServer/live555ProxyServer
158 + fi
159 +}