forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
samsung-tools-2.3.1.ebuild
55 lines (44 loc) · 1.19 KB
/
samsung-tools-2.3.1.ebuild
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
47
48
49
50
51
52
53
54
55
# 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
}