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