| 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 | EAPI=2 |
|---|
| 9 | |
|---|
| 10 | DESCRIPTION="The FreeSmartPhone.org framework APIs." |
|---|
| 11 | HOMEPAGE="http://www.freesmartphone.org/" |
|---|
| 12 | |
|---|
| 13 | EGIT_REPO_URI="git://git.freesmartphone.org/framework.git" |
|---|
| 14 | EGIT_PROJECT="framework" |
|---|
| 15 | EGIT_TREE="116599e055df9833fcf050311cdedf54074f25ae" |
|---|
| 16 | |
|---|
| 17 | LICENSE="GPL-2" |
|---|
| 18 | SLOT="0" |
|---|
| 19 | KEYWORDS="~arm" |
|---|
| 20 | IUSE="gsm gps readline vorbis ivorbis mp3 sid" |
|---|
| 21 | DOCS="README" |
|---|
| 22 | |
|---|
| 23 | RDEPEND="dev-python/dbus-python |
|---|
| 24 | vorbis? ( |
|---|
| 25 | !ivorbis? ( |
|---|
| 26 | media-plugins/gst-plugins-vorbis |
|---|
| 27 | media-plugins/gst-plugins-ogg |
|---|
| 28 | ) |
|---|
| 29 | ) |
|---|
| 30 | ivorbis? ( |
|---|
| 31 | media-plugins/gst-plugins-ivorbis |
|---|
| 32 | media-plugins/gst-plugins-ogg |
|---|
| 33 | ) |
|---|
| 34 | mp3? ( |
|---|
| 35 | media-plugins/gst-plugins-mad |
|---|
| 36 | ) |
|---|
| 37 | sid? ( |
|---|
| 38 | media-plugins/gst-plugins-sidplay |
|---|
| 39 | ) |
|---|
| 40 | |
|---|
| 41 | media-plugins/gst-plugins-alsa |
|---|
| 42 | |
|---|
| 43 | dev-python/gst-python |
|---|
| 44 | dev-python/pygobject |
|---|
| 45 | dev-python/pyyaml |
|---|
| 46 | dev-python/pyserial |
|---|
| 47 | dev-python/pyrtc |
|---|
| 48 | dev-python/pyalsaaudio |
|---|
| 49 | dev-lang/python[threads] |
|---|
| 50 | virtual/alsa-scenarios |
|---|
| 51 | gsm? ( |
|---|
| 52 | ( || ( sys-mobilephone/gsm0710muxd sys-mobilephone/fso-abyss ) ) |
|---|
| 53 | net-dialup/ppp |
|---|
| 54 | ) |
|---|
| 55 | gps? ( || ( sci-geosciences/fso-gpsd sci-geosciences/gpsd ) ) |
|---|
| 56 | readline? ( sys-libs/readline )" |
|---|
| 57 | |
|---|
| 58 | DEPEND="dev-python/cython |
|---|
| 59 | dev-python/setuptools" |
|---|
| 60 | |
|---|
| 61 | src_prepare() { |
|---|
| 62 | # Change the paths for setup.py and add the example config file |
|---|
| 63 | epatch "${FILESDIR}/${P}-setup-paths.patch" |
|---|
| 64 | } |
|---|
| 65 | |
|---|
| 66 | src_install() { |
|---|
| 67 | distutils_src_install |
|---|
| 68 | newinitd "${FILESDIR}/frameworkd" frameworkd |
|---|
| 69 | insinto /etc |
|---|
| 70 | doins conf/example/frameworkd.conf |
|---|
| 71 | } |
|---|
| 72 | |
|---|
| 73 | pkg_postinst() { |
|---|
| 74 | einfo "An example configuration file was installed to /etc/frameworkd.conf," |
|---|
| 75 | einfo "please modify this configuration file to your needs!" |
|---|
| 76 | } |
|---|