| 1 | # Copyright 1999-2008 Gentoo Foundation |
|---|
| 2 | # Distributed under the terms of the GNU General Public License v2 |
|---|
| 3 | # $Header: $ |
|---|
| 4 | |
|---|
| 5 | inherit distutils |
|---|
| 6 | inherit git |
|---|
| 7 | |
|---|
| 8 | DESCRIPTION="The FreeSmartPhone.org framework APIs." |
|---|
| 9 | HOMEPAGE="http://www.freesmartphone.org/" |
|---|
| 10 | |
|---|
| 11 | EGIT_REPO_URI="git://git.freesmartphone.org/framework.git" |
|---|
| 12 | EGIT_TREE="tags/milestone5.1" |
|---|
| 13 | EGIT_PROJECT="framework" |
|---|
| 14 | |
|---|
| 15 | LICENSE="GPL-2" |
|---|
| 16 | SLOT="0" |
|---|
| 17 | KEYWORDS="~x86 ~amd64 ~arm" |
|---|
| 18 | IUSE="gsm gps readline" |
|---|
| 19 | DOCS="README" |
|---|
| 20 | |
|---|
| 21 | RDEPEND="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 )" |
|---|
| 32 | DEPEND="dev-python/cython |
|---|
| 33 | dev-python/setuptools" |
|---|
| 34 | |
|---|
| 35 | src_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 | |
|---|
| 45 | src_install() { |
|---|
| 46 | distutils_src_install |
|---|
| 47 | newinitd "${FILESDIR}/frameworkd" frameworkd |
|---|
| 48 | insinto /etc |
|---|
| 49 | doins conf/example/frameworkd.conf |
|---|
| 50 | } |
|---|
| 51 | |
|---|
| 52 | pkg_postinst() { |
|---|
| 53 | einfo "An example configuration file was installed to /etc/frameworkd.conf," |
|---|
| 54 | einfo "please modify this configuration file to your needs!" |
|---|
| 55 | } |
|---|