summaryrefslogtreecommitdiff
blob: 47e7486c26c0e09619123b9a91679092653bbed4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

IUSE="ssl"

DESCRIPTION="Sofia-SIP based SIP UA plugin for Gaim"
HOMEPAGE="http://sofia-sip.sourceforge.net/"
SRC_URI="mirror://sourceforge/sofia-sip/sofiasip-gaim-prpl-${PV}.tar.gz"

SLOT="0"
LICENSE="LGPL-2.1"
KEYWORDS="~x86"

RDEPEND="dev-libs/glib
	>=net-libs/sofia-sip-1.11.4
	>=net-im/gaim-1.5.0"

DEPEND="${RDEPEND}
	dev-util/pkgconfig"

RESTRICT="nomirror"

S="${WORKDIR}/sofiasip-gaim-prpl-${PV}"

src_unpack() {
	unpack ${A}
	cd "${S}"

	epatch "${FILESDIR}"/${P}-makefile.diff

	# gaim-1.5 api compat
	epatch "${FILESDIR}"/${P}-gaim15_api.diff
}

src_compile() {
	econf \
		--with-gaim-libdir=/usr/$(get_libdir)/gaim || die

	emake || die
}

src_install() {
	make DESTDIR="${D}" install-plugin || die

	dodoc ChangeLog COPYRIGHTS README TODO COPYING AUTHORS
}