summaryrefslogtreecommitdiff
blob: f2753c21328539380322dd2bb0145499e0b777df (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/licq-osd/licq-osd-1.3.2.2.ebuild,v 1.2 2008/07/05 15:37:21 loki_val Exp $

inherit multilib autotools

DESCRIPTION="On Screen Display for licq"
HOMEPAGE="http://sourceforge.net/projects/licq-osd"
SRC_URI="mirror://sourceforge/${PN}/osd_${PV}.tgz"
LICENSE="GPL-2"

SLOT="0"
KEYWORDS="~x86 ~ppc ~amd64"
IUSE="nls"
DEPEND=">=net-im/licq-1.3.0_pre
		>=x11-libs/xosd-2.2.2
		nls? ( sys-devel/gettext )"

S=${WORKDIR}/osd-${PV}

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

	rm -f admin/config.guess admin/config.sub admin/ltmain.sh
	AT_M4DIR=admin eautoreconf
}

src_compile() {
	local myconf
	use nls || myconf="--disable-nls"
	myconf="${myconf} --with-licq-includes=/usr/include/licq"

	econf ${myconf} || die
	emake || die
}

src_install() {
	einstall || die

	dodoc README licq_osd.conf TODO AUTHORS

	cd ${D}/usr/$(get_libdir)
	mkdir licq
	mv licq_osd.{so,la} licq/
}