www-apps/ampache: add
[portage-overlay.git] / www-apps / ampache / ampache-3.8.1.ebuild
1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Id$
4
5 EAPI="2"
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,session,unicode,xml,zlib]
18         || ( <dev-lang/php-5.3[pcre] >=dev-lang/php-5.3 )
19         transcode? ( media-sound/lame
20                 aac? ( || ( media-libs/faad2 media-sound/alac_decoder ) )
21                 flac? ( media-libs/flac )
22                 mp3? ( media-sound/mp3splt )
23                 ogg? ( media-sound/mp3splt media-sound/vorbis-tools )
24         )"
25 DEPEND=""
26
27 need_httpd_cgi
28
29 src_install() {
30         webapp_src_preinst
31
32         dodoc docs/*
33         rm -rf docs/
34
35         insinto "${MY_HTDOCSDIR}"
36         doins -r .
37
38         webapp_postinst_txt en "${FILESDIR}"/installdoc.txt
39         webapp_src_install
40 }
41
42 pkg_postinst() {
43         elog "Install and upgrade instructions can be found here:"
44         elog "  /usr/share/doc/${P}/INSTALL.bz2"
45         elog "  /usr/share/doc/${P}/MIGRATION.bz2"
46         webapp_pkg_postinst
47 }