diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-10-28 09:49:41 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2010-10-28 09:49:41 +0000 |
commit | aa44c2b61903c3acdecb16a42a79a2a86aac3876 (patch) | |
tree | edb5d14ad3b78557fd9dc9bcb2e99210ff6a0336 /net-misc/asterisk-app_icd | |
parent | fix quoting (diff) | |
download | gentoo-2-aa44c2b61903c3acdecb16a42a79a2a86aac3876.tar.gz gentoo-2-aa44c2b61903c3acdecb16a42a79a2a86aac3876.tar.bz2 gentoo-2-aa44c2b61903c3acdecb16a42a79a2a86aac3876.zip |
fix quoting and built_with_use to has_version
(Portage version: 2.2.0_alpha1/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/asterisk-app_icd')
-rw-r--r-- | net-misc/asterisk-app_icd/asterisk-app_icd-1.0.0.ebuild | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/net-misc/asterisk-app_icd/asterisk-app_icd-1.0.0.ebuild b/net-misc/asterisk-app_icd/asterisk-app_icd-1.0.0.ebuild index 7a65a216fc35..f839f8750d97 100644 --- a/net-misc/asterisk-app_icd/asterisk-app_icd-1.0.0.ebuild +++ b/net-misc/asterisk-app_icd/asterisk-app_icd-1.0.0.ebuild @@ -1,7 +1,8 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-app_icd/asterisk-app_icd-1.0.0.ebuild,v 1.7 2006/04/16 00:09:14 stkn Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-app_icd/asterisk-app_icd-1.0.0.ebuild,v 1.8 2010/10/28 09:49:41 ssuominen Exp $ +EAPI=2 inherit eutils MY_PN="icd" @@ -10,32 +11,28 @@ DESCRIPTION="ICD (Intelligent Call Distributor) application plugin for Asterisk" HOMEPAGE="http://icd.sourceforge.net/" SRC_URI="mirror://sourceforge/${MY_PN}/${MY_PN}-${PV}.tar.gz" -IUSE="debug" - LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc x86" +IUSE="debug" -DEPEND="sys-libs/glibc - >=net-misc/asterisk-1.0.7-r1 +RDEPEND=">=net-misc/asterisk-1.0.7-r1 >=net-misc/zaptel-1.0.7-r1 !>=net-misc/asterisk-1.2.0" +DEPEND="${RDEPEND}" S=${WORKDIR}/${MY_PN}-${PV} -src_unpack() { - unpack ${A} - - cd ${S} - epatch ${FILESDIR}/${P}-gentoo.diff +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.diff # asterisk + bristuff - if built_with_use net-misc/asterisk bri; then - epatch ${FILESDIR}/${P}-bristuff.diff + if has_version net-misc/asterisk[bri]; then + epatch "${FILESDIR}"/${P}-bristuff.diff fi # fix segfault in config parser (patch sent upstream) - epatch ${FILESDIR}/${P}-configsegv.diff + epatch "${FILESDIR}"/${P}-configsegv.diff } src_compile() { @@ -52,13 +49,13 @@ src_compile() { } src_install() { - make INSTALL_PREFIX=${D} install || die + make INSTALL_PREFIX="${D}" install || die insinto /etc/asterisk newins icd_config/extensions.conf.sample extensions.conf.icd - chmod -R 750 ${D}/etc/asterisk - chown -R root:asterisk ${D}/etc/asterisk + chmod -R 750 "${D}"/etc/asterisk + chown -R root:asterisk "${D}"/etc/asterisk dodoc README README.memory BUGS *.txt } |