|
Lines 1-11
Link Here
|
| 1 |
# Copyright 1999-2014 Gentoo Foundation |
1 |
# Copyright 1999-2015 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/positron/positron-1.1.ebuild,v 1.15 2014/08/10 21:09:59 slyfox Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/positron/positron-1.1.ebuild,v 1.15 2014/08/10 21:09:59 slyfox Exp $ |
| 4 |
|
4 |
|
| 5 |
EAPI="3" |
5 |
EAPI=5 |
| 6 |
PYTHON_DEPEND="2" |
|
|
| 7 |
|
6 |
|
| 8 |
inherit distutils |
7 |
PYTHON_COMPAT=( python2_7 ) |
|
|
8 |
DISTUTILS_SINGLE_IMPL=1 |
| 9 |
|
| 10 |
inherit distutils-r1 |
| 9 |
|
11 |
|
| 10 |
DESCRIPTION="Synchronization manager for the Neuros Audio Computer (www.neurosaudio.com) portable music player" |
12 |
DESCRIPTION="Synchronization manager for the Neuros Audio Computer (www.neurosaudio.com) portable music player" |
| 11 |
HOMEPAGE="http://www.xiph.org/positron" |
13 |
HOMEPAGE="http://www.xiph.org/positron" |
|
Lines 13-31
Link Here
|
| 13 |
|
15 |
|
| 14 |
LICENSE="BSD" |
16 |
LICENSE="BSD" |
| 15 |
SLOT="0" |
17 |
SLOT="0" |
| 16 |
KEYWORDS="x86 ppc sparc amd64" |
18 |
KEYWORDS="~x86 ~ppc ~sparc ~amd64" |
| 17 |
IUSE="vorbis" |
19 |
IUSE="vorbis" |
| 18 |
|
20 |
|
| 19 |
DEPEND="vorbis? ( dev-python/pyvorbis )" |
21 |
DEPEND="vorbis? ( dev-python/pyvorbis[${PYTHON_USEDEP}] )" |
| 20 |
RDEPEND="${DEPEND}" |
22 |
RDEPEND="" |
| 21 |
|
23 |
|
| 22 |
pkg_setup() { |
24 |
pkg_setup() { |
| 23 |
python_set_active_version 2 |
25 |
python-single-r1_pkg_setup |
| 24 |
python_pkg_setup |
|
|
| 25 |
} |
26 |
} |
| 26 |
|
27 |
|
| 27 |
src_prepare() { |
28 |
python_prepare_all() { |
| 28 |
distutils_src_prepare |
|
|
| 29 |
# install docs in /usr/share/doc/${PF}, bug #241290 |
29 |
# install docs in /usr/share/doc/${PF}, bug #241290 |
| 30 |
sed -i -e "s:share/doc/positron:share/doc/${PF}:" setup.py |
30 |
sed -i -e "s:share/doc/positron:share/doc/${PF}:" setup.py |
|
|
31 |
mv doc/examples ./ || die |
| 32 |
|
| 33 |
distutils-r1_python_prepare_all |
| 31 |
} |
34 |
} |
|
|
35 |
# examples are hard coded in setup.py to be installed as data files |
| 36 |
# Too much hacking req'd to undo what they decided, but what is installed there |
| 37 |
# is quite atypical for a gentoo package. It was left untouched on the initial ebuild |