43 lines
867 B
Bash
43 lines
867 B
Bash
# Copyright 1999-2014 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Id$
|
|
|
|
EAPI=5
|
|
|
|
inherit linux-info vdr-plugin-2 udev
|
|
|
|
DESCRIPTION="VDR Plugin: shows information about the current state of VDR on iMON LCD"
|
|
HOMEPAGE="http://projects.vdr-developer.org/wiki/plg-imonlcd"
|
|
SRC_URI="mirror://vdr-developerorg/408/${P}.tgz"
|
|
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="nls"
|
|
|
|
RDEPEND="media-libs/freetype"
|
|
DEPEND="${RDEPEND}
|
|
nls? ( sys-devel/gettext )"
|
|
|
|
CONFIG_CHECK="~IR_IMON"
|
|
|
|
pkg_setup() {
|
|
linux-info_pkg_setup
|
|
vdr-plugin-2_pkg_setup
|
|
}
|
|
|
|
src_prepare() {
|
|
vdr-plugin-2_src_prepare
|
|
|
|
if ! use nls; then
|
|
sed -i -e 's/\(all: libvdr-$(PLUGIN).so\) i18n/\1/' Makefile || die
|
|
fi
|
|
}
|
|
|
|
src_install() {
|
|
rm -f README.git
|
|
vdr-plugin-2_src_install
|
|
|
|
insinto $(get_udevdir)/rules.d
|
|
doins "${FILESDIR}"/99-imonlcd.rules || die
|
|
}
|