Ticket #250: freesmartphone-framework-0.5.1.ebuild

File freesmartphone-framework-0.5.1.ebuild, 1.3 KB (added by aelia, 3 years ago)

corrected ebuild (added dep over python[threads])

Line 
1# Copyright 1999-2008 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3# $Header: $
4
5inherit distutils
6inherit git
7
8DESCRIPTION="The FreeSmartPhone.org framework APIs."
9HOMEPAGE="http://www.freesmartphone.org/"
10
11EGIT_REPO_URI="git://git.freesmartphone.org/framework.git"
12EGIT_TREE="tags/milestone5.1"
13EGIT_PROJECT="framework"
14
15LICENSE="GPL-2"
16SLOT="0"
17KEYWORDS="~x86 ~amd64 ~arm"
18IUSE="gsm gps readline"
19DOCS="README"
20
21RDEPEND="dev-python/dbus-python
22        dev-python/gst-python
23        dev-python/pygobject
24        dev-python/pyyaml
25        dev-python/pyserial
26        dev-python/pyrtc
27        dev-lang/python[threads]
28        virtual/alsa-scenarios
29        gsm? ( sys-mobilephone/gsm0710muxd )
30        gps? ( || ( sci-geosciences/fso-gpsd sci-geosciences/gpsd ) )
31        readline? ( sys-libs/readline )"
32DEPEND="dev-python/cython
33        dev-python/setuptools"
34
35src_unpack() {
36        # Fetch and unpack current git sources
37        git_src_unpack
38
39        cd "${S}"
40
41        # Change the paths for setup.py and add the example config file
42        epatch "${FILESDIR}/${P/0.5.1/0.5}-setup-paths.patch"
43}
44
45src_install() {
46        distutils_src_install
47        newinitd "${FILESDIR}/frameworkd" frameworkd
48        insinto /etc
49        doins conf/example/frameworkd.conf
50}
51
52pkg_postinst() {
53        einfo "An example configuration file was installed to /etc/frameworkd.conf,"
54        einfo "please modify this configuration file to your needs!"
55}