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-core-sounds: metadata.xml ChangeLog asterisk-core-sounds-1.4.19.ebuild
Date: Fri, 20 Aug 2010 23:12:57
Message-Id: 20100820231251.2AED72004C@flycatcher.gentoo.org
1 chainsaw 10/08/20 23:12:51
2
3 Added: metadata.xml ChangeLog
4 asterisk-core-sounds-1.4.19.ebuild
5 Log:
6 Initial commit, ebuild by Jaco Kroon. For bug #328513.
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 net-misc/asterisk-core-sounds/metadata.xml
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk-core-sounds/metadata.xml?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk-core-sounds/metadata.xml?rev=1.1&content-type=text/plain
14
15 Index: metadata.xml
16 ===================================================================
17 <?xml version="1.0" encoding="UTF-8"?>
18 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
19 <pkgmetadata>
20 <herd>voip</herd>
21 <maintainer>
22 <email>chainsaw@g.o</email>
23 <name>Tony Vroon</name>
24 </maintainer>
25 <use>
26 <flag name="alaw">Install the sounds files for the alaw codec.</flag>
27 <flag name="g722">Install the sounds files for the g722 codec.</flag>
28 <flag name="g729">Install the sounds files for the g729 codec.</flag>
29 <flag name="gsm">Install the sounds files for the +gsm codec.</flag>
30 <flag name="siren7">Install the sounds files for the siren7 codec.</flag>
31 <flag name="siren14">Install the sounds files for the siren14 codec.</flag>
32 <flag name="sln16">Install the sounds files for the sln16 codec.</flag>
33 <flag name="ulaw">Install the sounds files for the ulaw codec.</flag>
34 <flag name="wav">Install the sounds files for the wav codec.</flag>
35 </use>
36 </pkgmetadata>
37
38
39
40 1.1 net-misc/asterisk-core-sounds/ChangeLog
41
42 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk-core-sounds/ChangeLog?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk-core-sounds/ChangeLog?rev=1.1&content-type=text/plain
44
45 Index: ChangeLog
46 ===================================================================
47 # ChangeLog for net-misc/asterisk-core-sounds
48 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
49 # $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-core-sounds/ChangeLog,v 1.1 2010/08/20 23:12:51 chainsaw Exp $
50
51 *asterisk-core-sounds-1.4.19 (20 Aug 2010)
52
53 20 Aug 2010; <chainsaw@g.o> +asterisk-core-sounds-1.4.19.ebuild,
54 +metadata.xml:
55 Initial commit, ebuild by Jaco Kroon. For bug #328513.
56
57
58
59
60 1.1 net-misc/asterisk-core-sounds/asterisk-core-sounds-1.4.19.ebuild
61
62 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk-core-sounds/asterisk-core-sounds-1.4.19.ebuild?rev=1.1&view=markup
63 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk-core-sounds/asterisk-core-sounds-1.4.19.ebuild?rev=1.1&content-type=text/plain
64
65 Index: asterisk-core-sounds-1.4.19.ebuild
66 ===================================================================
67 # Copyright 1999-2010 Gentoo Foundation
68 # Distributed under the terms of the GNU General Public License v2
69 # $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-core-sounds/asterisk-core-sounds-1.4.19.ebuild,v 1.1 2010/08/20 23:12:51 chainsaw Exp $
70
71 EAPI="2"
72
73 DESCRIPTION="Core sounds for asterisk"
74 HOMEPAGE="http://www.asterisk.org/"
75 LINGUAS="^en fr" # ^ is used to indicate to the loops below to NOT set this as an optional
76 CODECS="alaw g722 g729 +gsm siren7 siren14 sln16 ulaw wav"
77
78 SRC_URI=""
79 IUSE="${CODECS}"
80 for l in ${LINGUAS}; do
81 [[ "${l}" != ^* ]] && IUSE+=" linguas_${l}" && SRC_URI+=" linguas_${l}? ("
82 for c in ${CODECS}; do
83 SRC_URI+=" ${c#+}? ( http://downloads.asterisk.org/pub/telephony/sounds/releases/${PN}-${l#^}-${c#+}-${PV}.tar.gz )"
84 done
85 [[ "${l}" = ^* ]] || SRC_URI+=" )"
86 done
87
88 LICENSE="CCPL-Attribution-ShareAlike-3.0"
89 SLOT="0"
90 KEYWORDS="~amd64 ~x86"
91
92 DEPEND=">=net-misc/asterisk-1.6.2.11-r1"
93
94 S="${WORKDIR}"
95
96 src_unpack() {
97 local ar
98
99 for ar in ${A}; do
100 l="${ar#${PN}-}"
101 l=${l%%-*}
102 echo ">>> Unpacking $ar to ${WORKDIR}/${l}"
103 [ -d "${WORKDIR}/${l}" ] || mkdir "${WORKDIR}/${l}" || die "Error creating unpack directory"
104 tar xf "${DISTDIR}/${ar}" -C "${WORKDIR}/${l}" || die "Error unpacking ${ar}"
105 done
106 }
107
108 src_install() {
109 for l in ${LINGUAS}; do
110 if [[ "${l}" = ^* ]] || use linguas_${l}; then
111 l="${l#^}"
112 dodoc ${l}/CHANGES-${PN%-sounds}-${l}-${PV} ${l}/${PN#asterisk-}-${l}.txt
113 rm ${l}/CHANGES-${PN%-sounds}-${l}-${PV} ${l}/${PN#asterisk-}-${l}.txt
114 fi
115 done
116
117 diropts -m 0770 -o asterisk -g asterisk
118 insopts -m 0660 -o asterisk -g asterisk
119
120 dodir /var/lib/asterisk/sounds
121 insinto /var/lib/asterisk/sounds
122 doins -r .
123 }
124
125 pkg_postinst() {
126 local c has_once_codec=
127
128 for c in ${CODECS}; do
129 use ${c#+} && has_one_codec=1
130 done
131
132 [ -n "${has_one_codec}" ] || ewarn "You have none of the codec use flags (${CODECS}) set. You need to have at least one set in order for this package to be useful."
133 }