blob: dad87e5a82e0da2088fc8cefb977c17582146647 (
plain) (
blame)
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
56
57
58
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 )
inherit eutils python-single-r1
DESCRIPTION="Proximity detector for your mobile phone via bluetooth"
HOMEPAGE="http://blueproximity.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
IUSE=""
MY_AVAILABLE_LINGUAS="de en es fa hu it ru sv th"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
DEPEND=""
RDEPEND="
${PYTHON_DEPS}
$(python_gen_cond_dep '
dev-python/pygobject[${PYTHON_MULTI_USEDEP}]
dev-python/configobj[${PYTHON_MULTI_USEDEP}]
dev-python/pybluez[${PYTHON_MULTI_USEDEP}]
>=dev-python/pygtk-2.0[${PYTHON_MULTI_USEDEP}]
')
"
S="${WORKDIR}/${P}.orig"
src_install() {
sed -i -r "s:\`dirname \\\$PRG\`:/usr/lib/${PN}:" start_proximity.sh
sed -i "s#python #${PYTHON} #" start_proximity.sh
newbin start_proximity.sh blueproximity
insinto "/usr/lib/${PN}"
doins blueproximity*
doins proximity*
dodoc README
dodoc ChangeLog
doman doc/blueproximity.1
dohtml doc/*
insinto /usr/share/applications
doins addons/blueproximity.desktop
insinto /usr/share/pixmaps
doins addons/blueproximity.xpm
strip-linguas ${MY_AVAILABLE_LINGUAS}
for l in ${LINGUAS};
do
dodir "/usr/lib/${PN}/LANG/${l}"
cp -r "${S}/LANG/${l}" "${D}/usr/lib/${PN}/LANG"
done
}
|