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: Sat, 30 Jan 2016 15:57:02
Message-Id: 1454169411.3484cc3527b14bdbbf301a54a2867fdb02596f9f.aballier@gentoo
1 commit: 3484cc3527b14bdbbf301a54a2867fdb02596f9f
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 30 15:53:21 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 30 15:56:51 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3484cc35
7
8 media-plugins/live: bump to 2016.01.29
9
10 Package-Manager: portage-2.2.27
11 Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>
12
13 media-plugins/live/Manifest | 1 +
14 media-plugins/live/live-2016.01.29.ebuild | 129 ++++++++++++++++++++++++++++++
15 2 files changed, 130 insertions(+)
16
17 diff --git a/media-plugins/live/Manifest b/media-plugins/live/Manifest
18 index 75d0214..71b3453 100644
19 --- a/media-plugins/live/Manifest
20 +++ b/media-plugins/live/Manifest
21 @@ -9,3 +9,4 @@ DIST live.2015.12.22.tar.gz 5644431 SHA256 d0a8a0d13b79a8e34057d4c5c0a65572c2eba
22 DIST live.2016.01.16.tar.gz 630314 SHA256 980f67cbf353e36275a4019277926f66b8d3d34c87f3a036706130760d4c4415 SHA512 160c1e43e783ec9de70eaf925ea8b26c9deaa72061b3ed89987418f6fd6c0600a98caeff192d7b1b8c165c60d1f21eb5a784f282a35b8ad7a5a9b6f10f29fb6e WHIRLPOOL 27e01f1f9088070651cd56417236f03cbaf3d9134b618ba46d6c184eec196f59ea0edcdf0534c732c2fe56acd3d493157615540aeb2c417990d9258fa4497314
23 DIST live.2016.01.20.tar.gz 630353 SHA256 ab12dc388c750cee2d275dd4dd767448e2375178a77f4576f5fbd994befdcad4 SHA512 129a74745ccde26b5e929057e259c0ff549e2e42129c37d411c98f5fd97736e8385e09612ae9aedda32fc78fe29a9d49d69c0fa771cc0dc81fd764e2b153c60a WHIRLPOOL c89819d8b1fa1fb1984624afe91e391ba16764f2b193ee1fd7ddfd55856f1d374a468e35d287d15c2373b235093a8d512820c5866df1cbbc47e4ce38977b964c
24 DIST live.2016.01.24.tar.gz 630466 SHA256 12c41a5d689b695f86a6323ce54a85f97036996e976df4a3fd93adcb62948c77 SHA512 f641a6b5a55c8327bd817cc0d4a9e8ce22fea8dbba48fd80b89d889cf84071962b2856a28d6f6a42b11db8157001f5c976fbe4bc607f7d023aa2701c151bc397 WHIRLPOOL a7e88df885e4031aab047ad7da832a112f6707757ea9e5e343d65277141a5988dcd39ef901ff4b9f05e0962f970048e92ac5052ab613399c53356e27138d787f
25 +DIST live.2016.01.29.tar.gz 630541 SHA256 44243a962adae64703c00264dd2333cfee15d7edbd79de4e5b47fd486df9ecd1 SHA512 3cac45d1649f5752a521b6252d7939c4dce4f9b16a37956c44aa1b6c8f76cb133180bc4b753ac3a3861e51b3ef64269050849053bbe6d5883ff03045cc42a71d WHIRLPOOL 40e7a05f2cc2abb5492206d8aa40b7170215a8f5223abff46ee2f9eb059f2b4078aee729f59af288be2bcff4ce6849cbd0a25d6977a63040789c1e6e29bc57f8
26
27 diff --git a/media-plugins/live/live-2016.01.29.ebuild b/media-plugins/live/live-2016.01.29.ebuild
28 new file mode 100644
29 index 0000000..a787b31
30 --- /dev/null
31 +++ b/media-plugins/live/live-2016.01.29.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 +}