You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-laptop/samsung-tools/samsung-tools-2.3.1.ebuild

56 lines
1.2 KiB

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit fdo-mime python-single-r1
DESCRIPTION="Tools for Samsung laptops"
HOMEPAGE="https://launchpad.net/samsung-tools"
SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="${PYTHON_DEPS}
dev-python/dbus-python[${PYTHON_USEDEP}]
dev-python/notify-python[${PYTHON_USEDEP}]
dev-python/pygtk[${PYTHON_USEDEP}]
app-laptop/easy-slow-down-manager
net-wireless/rfkill
sys-apps/vbetool
sys-power/pm-utils
x11-misc/xbindkeys"
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
pkg_setup() {
python-single-r1_pkg_setup
}
src_compile() {
return
}
src_install() {
emake DESTDIR="${D}" install
newinitd "${FILESDIR}"/${PN}.init ${PN}
python_fix_shebang "${D}"/usr/bin
python_fix_shebang "${D}"/usr/share/samsung-tools/system-service.py
python_fix_shebang "${D}"/usr/share/samsung-tools/session-service.py
python_optimize "${D}"/usr/share/samsung-tools/backends
}
pkg_postinst() {
fdo-mime_desktop_database_update
}
pkg_postrm() {
fdo-mime_desktop_database_update
}