www-apps/ampache: Ebuild cleanups
[portage-overlay.git] / www-apps / ampache / ampache-3.8.1.ebuild
1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Id$
4
5 EAPI="5"
6
7 inherit webapp
8
9 DESCRIPTION="Ampache is a PHP-based tool for managing, updating and playing your audio files via a web interface"
10 HOMEPAGE="http://www.ampache.org/"
11 SRC_URI="https://github.com/ampache/ampache/archive/${PV}.tar.gz"
12
13 LICENSE="GPL-2"
14 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
15 IUSE="aac flac mp3 ogg transcode"
16
17 RDEPEND="dev-lang/php[gd,hash,iconv,mysql,pdo,session,unicode,xml,zlib]
18         transcode? ( media-sound/lame
19                 aac? ( || ( media-libs/faad2 media-sound/alac_decoder ) )
20                 flac? ( media-libs/flac )
21                 mp3? ( media-sound/mp3splt )
22                 ogg? ( media-sound/mp3splt media-sound/vorbis-tools )
23         )"
24 DEPEND=""
25
26 need_httpd_cgi
27
28 src_install() {
29         webapp_src_preinst
30
31         dodoc docs/*
32         rm -rf docs/
33
34         insinto "${MY_HTDOCSDIR}"
35         doins -r .
36
37         webapp_postinst_txt en "${FILESDIR}"/installdoc.txt
38         webapp_src_install
39 }
40
41 pkg_postinst() {
42         elog "Install and upgrade instructions can be found here:"
43         elog "  /usr/share/doc/${P}/INSTALL.bz2"
44         elog "  /usr/share/doc/${P}/MIGRATION.bz2"
45         webapp_pkg_postinst
46 }