summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2018-01-03 19:36:58 +0100
committerDavid Seifert <soap@gentoo.org>2018-01-03 19:36:58 +0100
commitbf65c87b61b77bcfc15876f487e77fb78b4c49e9 (patch)
treedacdcca86225c907b73e6df28fd4a17bbf060f86 /x11-plugins
parentx11-plugins/pidgin-bot-sentry: Port to EAPI 6 (diff)
downloadgentoo-bf65c87b61b77bcfc15876f487e77fb78b4c49e9.tar.gz
gentoo-bf65c87b61b77bcfc15876f487e77fb78b4c49e9.tar.bz2
gentoo-bf65c87b61b77bcfc15876f487e77fb78b4c49e9.zip
x11-plugins/pidgin-led-notification: Port to EAPI 6
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'x11-plugins')
-rw-r--r--x11-plugins/pidgin-led-notification/pidgin-led-notification-0.1.ebuild33
1 files changed, 18 insertions, 15 deletions
diff --git a/x11-plugins/pidgin-led-notification/pidgin-led-notification-0.1.ebuild b/x11-plugins/pidgin-led-notification/pidgin-led-notification-0.1.ebuild
index 87efacac2590..bcfaf3ba9a2a 100644
--- a/x11-plugins/pidgin-led-notification/pidgin-led-notification-0.1.ebuild
+++ b/x11-plugins/pidgin-led-notification/pidgin-led-notification-0.1.ebuild
@@ -1,14 +1,15 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=3
+EAPI=6
-inherit eutils multilib toolchain-funcs
+inherit toolchain-funcs
-DESCRIPTION="Pidgin plugin to notify by writing user defined strings to (led control) files"
-HOMEPAGE="https://sites.google.com/site/simohmattila/led-notification"
MY_PN=${PN/pidgin-/}
MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="Pidgin plugin to notify by writing user defined strings to (led control) files"
+HOMEPAGE="https://sites.google.com/site/simohmattila/led-notification"
SRC_URI="https://sites.google.com/site/simohmattila/${MY_P}.tar.bz2"
LICENSE="GPL-2"
@@ -16,27 +17,29 @@ SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE=""
-RDEPEND="net-im/pidgin[gtk]
+RDEPEND="
+ net-im/pidgin[gtk]
x11-libs/gtk+:2"
DEPEND="${RDEPEND}
virtual/pkgconfig"
S=${WORKDIR}/${MY_P}
-src_prepare() {
- epatch "${FILESDIR}"/${P}-hardware.patch
-}
+PATCHES=( "${FILESDIR}"/${P}-hardware.patch )
src_compile() {
$(tc-getCC) \
- ${CFLAGS} -fpic $(pkg-config --cflags gtk+-2.0 pidgin) \
+ ${CFLAGS} -fPIC \
+ ${CPPFLAGS} \
+ ${LDFLAGS} \
+ $($(tc-getPKG_CONFIG) --cflags gtk+-2.0 pidgin) \
-shared ${MY_PN}.c -o ${MY_PN}.so \
- ${LDFLAGS} $(pkg-config --libs gtk+-2.0 pidgin) || die
+ $($(tc-getPKG_CONFIG) --libs gtk+-2.0 pidgin) || die
}
src_install() {
- insinto /usr/$(get_libdir)/pidgin
- insopts -m755
- doins ${MY_PN}.so || die
- dodoc README || die
+ exeinto /usr/$(get_libdir)/pidgin
+ doexe ${MY_PN}.so
+
+ einstalldocs
}