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