blob: 93f6b0541ccd8e950773d9b5b85a09aeaec45571 (
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
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/pidgin-led-notification/pidgin-led-notification-0.1.ebuild,v 1.7 2013/02/08 17:11:08 xmw Exp $
EAPI=3
inherit eutils multilib toolchain-funcs
DESCRIPTION="Pidgin plugin to notify by writing user defined strings to (led control) files"
HOMEPAGE="http://sites.google.com/site/simohmattila/led-notification"
MY_PN=${PN/pidgin-/}
MY_P=${MY_PN}-${PV}
SRC_URI="http://sites.google.com/site/simohmattila/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE=""
RDEPEND="net-im/pidgin[gtk]
x11-libs/gtk+:2"
DEPEND="${RDEPEND}
virtual/pkgconfig"
S=${WORKDIR}/${MY_P}
src_prepare() {
epatch "${FILESDIR}"/${P}-hardware.patch
}
src_compile() {
$(tc-getCC) \
${CFLAGS} -fpic $(pkg-config --cflags gtk+-2.0 pidgin) \
-shared ${MY_PN}.c -o ${MY_PN}.so \
${LDFLAGS} $(pkg-config --libs gtk+-2.0 pidgin) || die
}
src_install() {
insinto /usr/$(get_libdir)/pidgin
insopts -m755
doins ${MY_PN}.so || die
dodoc README || die
}
|