Gentoo Archives: gentoo-commits

From: "Tony Vroon (chainsaw)" <chainsaw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/asterisk-g729: asterisk-g729-10.0.3.1.5.ebuild ChangeLog
Date: Tue, 03 Jan 2012 13:29:25
Message-Id: 20120103132914.D56462004B@flycatcher.gentoo.org
1 chainsaw 12/01/03 13:29:14
2
3 Modified: ChangeLog
4 Added: asterisk-g729-10.0.3.1.5.ebuild
5 Log:
6 Version bump, ebuild by Jaco Kroon with input from Agostino "ago" Sarubbo. Closes bug #396415.
7
8 (Portage version: 2.1.10.44/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.3 net-misc/asterisk-g729/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk-g729/ChangeLog?rev=1.3&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk-g729/ChangeLog?rev=1.3&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk-g729/ChangeLog?r1=1.2&r2=1.3
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/asterisk-g729/ChangeLog,v
20 retrieving revision 1.2
21 retrieving revision 1.3
22 diff -u -r1.2 -r1.3
23 --- ChangeLog 3 Jan 2012 13:07:36 -0000 1.2
24 +++ ChangeLog 3 Jan 2012 13:29:14 -0000 1.3
25 @@ -1,6 +1,13 @@
26 # ChangeLog for net-misc/asterisk-g729
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-g729/ChangeLog,v 1.2 2012/01/03 13:07:36 chainsaw Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-g729/ChangeLog,v 1.3 2012/01/03 13:29:14 chainsaw Exp $
30 +
31 +*asterisk-g729-10.0.3.1.5 (03 Jan 2012)
32 +
33 + 03 Jan 2012; Tony Vroon <chainsaw@g.o>
34 + +asterisk-g729-10.0.3.1.5.ebuild:
35 + Version bump, ebuild by Jaco Kroon with input from Agostino "ago" Sarubbo.
36 + Closes bug #396415.
37
38 *asterisk-g729-1.8.4.3.1.5-r1 (03 Jan 2012)
39
40
41
42
43 1.1 net-misc/asterisk-g729/asterisk-g729-10.0.3.1.5.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk-g729/asterisk-g729-10.0.3.1.5.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk-g729/asterisk-g729-10.0.3.1.5.ebuild?rev=1.1&content-type=text/plain
47
48 Index: asterisk-g729-10.0.3.1.5.ebuild
49 ===================================================================
50 # Copyright 1999-2012 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-g729/asterisk-g729-10.0.3.1.5.ebuild,v 1.1 2012/01/03 13:29:14 chainsaw Exp $
53
54 EAPI="4"
55
56 inherit versionator multilib
57
58 DESCRIPTION="G.729 codec and supporting files for asterisk"
59 HOMEPAGE="http://store.digium.com/productview.php?product_code=G729CODEC"
60
61 BENCH_PV=1.0.8
62
63 AST_DPV=10.0
64 AST_PV=10.0
65 MY_PV=$(replace_version_separator 2 _)
66
67 SRC_URI="x86? (
68 http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-athlon_32.tar.gz
69 http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-athlon_xp_32.tar.gz
70 http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-barcelona_32.tar.gz
71 http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-c3_2_32.tar.gz
72 http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-c3_32.tar.gz
73 http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-core2_32.tar.gz
74 http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-generic_32.tar.gz
75 http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-i686_32.tar.gz
76 http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-k6_3_32.tar.gz
77 http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-nocona_32.tar.gz
78 http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-opteron_32.tar.gz
79 http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-opteron_sse3_32.tar.gz
80 http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-pentium3m_32.tar.gz
81 http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-pentium4m_32.tar.gz
82 http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-pentium_m_32.tar.gz
83 http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-prescott_32.tar.gz
84 http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-32/benchg729-${BENCH_PV}-x86_32 -> benchg729-x86_32
85 http://downloads.digium.com/pub/register/x86-32/register -> astregister-x86_32
86 http://downloads.digium.com/pub/register/x86-32/asthostid -> asthostid-x86_32
87 )
88 amd64? (
89 http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-64/codec_g729a-${MY_PV}-barcelona_64.tar.gz
90 http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-64/codec_g729a-${MY_PV}-core2_64.tar.gz
91 http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-64/codec_g729a-${MY_PV}-generic_64.tar.gz
92 http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-64/codec_g729a-${MY_PV}-nocona_64.tar.gz
93 http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-64/codec_g729a-${MY_PV}-opteron_64.tar.gz
94 http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-64/codec_g729a-${MY_PV}-opteron_sse3_64.tar.gz
95 http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-64/benchg729-${BENCH_PV}-x86_64 -> benchg729-x86_64
96 http://downloads.digium.com/pub/register/x86-64/register -> astregister-x86_64
97 http://downloads.digium.com/pub/register/x86-64/asthostid -> asthostid-x86_64
98 )
99 http://g729.uls.co.za/static/g729-stats-collector/collect-g729-stats.sh"
100
101 LICENSE="Digium"
102 SLOT="0"
103 KEYWORDS="~amd64 ~x86"
104 IUSE=""
105
106 DEPEND=""
107 RDEPEND="${DEPEND} =net-misc/asterisk-${AST_DPV-${AST_PV}}*"
108
109 RESTRICT="mirror strip"
110
111 QA_DT_HASH_amd64="usr/lib64/codec_g729a.so usr/sbin/benchg729"
112 QA_DT_HASH_x86="usr/lib/codec_g729a.so usr/sbin/benchg729"
113
114 QA_EXECSTACK="usr/sbin/benchg729 usr/sbin/asthostid usr/sbin/astregister"
115
116 S="${WORKDIR}"
117
118 src_prepare() {
119 local binsuffix
120 local b
121
122 if use x86; then
123 binsuffix=x86_32
124 elif use amd64; then
125 binsuffix=x86_64
126 else
127 die "Ebuild only functions for x86 and amd64."
128 fi
129
130 for b in astregister asthostid benchg729; do
131 cp "${DISTDIR}/${b}-${binsuffix}" "${WORKDIR}/${b}" || die
132 fperms 755 ${b}
133 done
134
135 cp "${DISTDIR}/collect-g729-stats.sh" "${WORKDIR}" || die
136 }
137
138 src_compile() {
139 ./benchg729 | tee benchdata
140 variant=$(sed -nre "s/^Recommended flavor for this system is '([^']*)'.*/\1/p" < benchdata)
141 [ -d codec_g729a-${MY_PV}-${variant}_${size} ] || variant=generic
142 [ -z $variant ] && variant=generic
143 }
144
145 src_install() {
146 local size
147
148 if use x86; then
149 size=32
150 elif use amd64; then
151 size=64
152 else
153 die "Ebuild only functions for x86 and amd64."
154 fi
155
156 dosbin astregister
157 dosbin asthostid
158 dosbin benchg729
159 dosbin collect-g729-stats.sh
160
161 dodoc codec_g729a-${MY_PV}-${variant}_${size}/LICENSE
162 dodoc codec_g729a-${MY_PV}-${variant}_${size}/README
163 insinto usr/$(get_libdir)/asterisk/modules/
164 doins "codec_g729a-${MY_PV}-${variant}_${size}/codec_g729a.so"
165 }
166
167 pkg_postinst() {
168 einfo "Please note that Digium's register utility has been installed as astregister"
169 einfo
170 einfo "Please consider participating in the G.729 stats collection that ULS"
171 einfo "is performing. This will assist in picking better variants for more"
172 einfo "processors as we gather more statistics. All you need to do is run"
173 einfo "the collect-g729-stats.sh command."
174 [ "${variant}" = "generic" ] && einfo "You are using the generic flavor of the codec, in order to install a more appropriate one please install a G.729 license and remerge this package (${PN})."
175 }