/[gentoo-x86]/net-misc/asterisk-addons/asterisk-addons-1.6.2.3.ebuild
Gentoo

Contents of /net-misc/asterisk-addons/asterisk-addons-1.6.2.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Sep 1 14:33:35 2011 UTC (8 years, 3 months ago) by chainsaw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove net-misc/asterisk-addons, which depends on net-misc/asterisk-1.6.*; this has been removed from the tree.

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-addons/asterisk-addons-1.6.2.3.ebuild,v 1.1 2011/03/24 10:26:54 chainsaw Exp $
4
5 EAPI=3
6 inherit eutils
7
8 DESCRIPTION="Asterisk: A Modular Open Source PBX System"
9 HOMEPAGE="http://www.asterisk.org/"
10 SRC_URI="http://downloads.digium.com/pub/asterisk/releases/${P}.tar.gz"
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~amd64 ~x86"
14
15 IUSE="bluetooth elibc_uclibc h323 mysql"
16
17 DEPEND="bluetooth? ( net-wireless/bluez )
18 mysql? ( dev-db/mysql )"
19 RDEPEND="${DEPEND}
20 >=net-misc/asterisk-1.6.2.0"
21
22 src_prepare() {
23 epatch "${FILESDIR}/${PN}-1.6.2.0-parallel-make.diff"
24
25 # forward-ported patch from jaervosz for uclibc
26 if use elibc_uclibc; then
27 epatch "${FILESDIR}/${PN}-1.6.2.0-uclibc.diff"
28 fi
29
30 if ! use bluetooth; then
31 rm "${S}/doc/chan_mobile.txt"
32 rm "${S}/channels/chan_mobile.c"
33 rm "${S}/configs/mobile.conf.sample"
34 fi
35 if ! use h323; then
36 rm "${S}/doc/ChangeLog.chan_ooh323"
37 rm "${S}/doc/chan_ooh323.txt"
38 rm "${S}/channels/chan_ooh323.c"
39 rm -rf "${S}/channels/ooh323c"
40 rm "${S}/channels/chan_ooh323.h"
41 rm "${S}/channels/ooh323cDriver.c"
42 rm "${S}/configs/ooh323.conf.sample"
43 fi
44 }
45
46 src_configure() {
47 econf \
48 --libdir="/usr/$(get_libdir)" \
49 --localstatedir="/var" \
50 $(use_with mysql mysqlclient) \
51 || die "Failed to configure"
52 }
53
54 src_compile() {
55 ASTLDFLAGS="${LDFLAGS}" emake || die "emake failed"
56 }
57
58 src_install() {
59 dodoc configs/*
60 mkdir "${D}/var/lib/asterisk/documentation"
61 emake DESTDIR="${D}" install || die "Failed to install"
62 }

  ViewVC Help
Powered by ViewVC 1.1.20