diff options
Diffstat (limited to 'media-sound/cplay/cplay-1.50.ebuild')
-rw-r--r-- | media-sound/cplay/cplay-1.50.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/media-sound/cplay/cplay-1.50.ebuild b/media-sound/cplay/cplay-1.50.ebuild new file mode 100644 index 000000000000..42f895b02686 --- /dev/null +++ b/media-sound/cplay/cplay-1.50.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit python-single-r1 + +DESCRIPTION="A Curses front-end for various audio players" +HOMEPAGE="https://github.com/hukka/cplay/" +SRC_URI="https://github.com/hukka/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="mp3 vorbis" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + vorbis? ( media-sound/vorbis-tools ) + mp3? ( || ( media-sound/mpg123 + media-sound/mpg321 + media-sound/madplay + media-sound/splay ) )" +DEPEND="${RDEPEND} + sys-devel/gettext" + +src_prepare() { + default + sed -i -e 's:make:$(MAKE):' Makefile || die + sed -i -e "s:/usr/local:${EPREFIX}/usr:" cplay || die +} + +src_install() { + emake PREFIX="${ED%/}/usr" recursive-install + einstalldocs + + python_fix_shebang cplay + dobin cplay + doman cplay.1 +} |