bafc8ca19a6ff6674b2b20fe7057da7169d9d977
[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         unpack docs/docs/man/man1/ampache.1.bz2
32         doman docs/docs/man/man1/ampache.1
33         rm -rf docs/man || die "Unable to remove local man dir" 
34
35         dodoc docs/*
36         rm -rf docs/ || die "Unable to remove local docs dir"
37
38         insinto "${MY_HTDOCSDIR}"
39         doins -r .
40
41         webapp_postinst_txt en "${FILESDIR}"/installdoc.txt
42         webapp_src_install
43 }
44
45 pkg_postinst() {
46         elog "Install and upgrade instructions can be found here:"
47         elog "  /usr/share/doc/${P}/INSTALL.bz2"
48         elog "  /usr/share/doc/${P}/MIGRATION.bz2"
49         webapp_pkg_postinst
50 }