www-apps/ampache: add
authorKristian Fiskerstrand <kf@sumptuouscapital.com>
Tue, 22 Dec 2015 17:33:52 +0000 (18:33 +0100)
committerKristian Fiskerstrand <kf@sumptuouscapital.com>
Tue, 22 Dec 2015 17:33:52 +0000 (18:33 +0100)
www-apps/ampache/Manifest [new file with mode: 0644]
www-apps/ampache/ampache-3.8.1.ebuild [new file with mode: 0644]
www-apps/ampache/files/installdoc.txt [new file with mode: 0644]
www-apps/ampache/metadata.xml [new file with mode: 0644]

diff --git a/www-apps/ampache/Manifest b/www-apps/ampache/Manifest
new file mode 100644 (file)
index 0000000..fbe2133
--- /dev/null
@@ -0,0 +1,4 @@
+AUX installdoc.txt 223 SHA256 ad163088081a596b3fb1b08ae1c606dbea558f839377d6a19268f4e958acf53e SHA512 07636e6b53e9f259e1195795d15e6dc88e3e5401a700553df55cf7c0a39997c8bdfc3f5a83b0bac2a2ef474bea11d71e442ce6e45ef88b0fac0cf9c3307732d2 WHIRLPOOL 09cbaffcf4a5b41c49aa30703a8d969628da54a38d51eec794b8ef742586e9d8db1266a75ce2a88bd4908320a8e76d3b81a0cc4eb2f3918bd6c6b1c9096d9da6
+DIST 3.8.1.tar.gz 7938754 SHA256 2eff94b5674ceb3cfc3a53c1addb297b016f74b1e732f17e9d05920f2ed2a35a SHA512 70151a2f28ab8998fea9be2817bd9ba7e80eea1aa78867d69f0e250bea7e9f025825566a0b80d06de09c6d73352f6951922cc52da98370c3c341edabffbc6061 WHIRLPOOL f67fc41cf4d25512d2b0834e9903f59e230aeeb0ab9e92394ebc9ae938cabed3de47fae00e1595d3a402f94b7e8d9ed00e5215977f81a972e9e3cd8acc994d82
+EBUILD ampache-3.8.1.ebuild 1167 SHA256 6345d7ab625986b4086f7c027777348cdadef70efd7c111582dd4d96110b6914 SHA512 6cf0b511b223be7b0c61a0a928d486f417efbc80d997eb383577d1a3633d78924e9b5e7c6c17a9ee69f8be26060ef3a448367be1c0916007ce1a7468483559c9 WHIRLPOOL efaba444e3c94c3efc479bff23bbd7f95a532b3c291e4d0ca06d2aba4e2863cefc03617e01101b2da5e9b2f631a82713d463badfe175150cc6853e58b596bd9d
+MISC metadata.xml 263 SHA256 f82adcb8564acf7373c6335204bfc4457c2f7814d8d5f79cd4535a910ddceba0 SHA512 fd9280eedb11c509584a563c93c06404497af5c46e48a3e5aa2e91f3ab0d29358b4eb941ee445695f5f95a07b5d05bced46e89a1a9188b8945e29ef7d133bac4 WHIRLPOOL 9576277ab8479dcdbea700a784d9e35c1050496d6936104f7cc135f27cdce2b6d208961e153828c008ffc5867b8190435309d89c8f359e4cada111e4dc72c953
diff --git a/www-apps/ampache/ampache-3.8.1.ebuild b/www-apps/ampache/ampache-3.8.1.ebuild
new file mode 100644 (file)
index 0000000..70477d4
--- /dev/null
@@ -0,0 +1,47 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+inherit webapp
+
+DESCRIPTION="Ampache is a PHP-based tool for managing, updating and playing your audio files via a web interface"
+HOMEPAGE="http://www.ampache.org/"
+SRC_URI="https://github.com/ampache/ampache/archive/${PV}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="aac flac mp3 ogg transcode"
+
+RDEPEND="dev-lang/php[gd,hash,iconv,mysql,session,unicode,xml,zlib]
+       || ( <dev-lang/php-5.3[pcre] >=dev-lang/php-5.3 )
+       transcode? ( media-sound/lame
+               aac? ( || ( media-libs/faad2 media-sound/alac_decoder ) )
+               flac? ( media-libs/flac )
+               mp3? ( media-sound/mp3splt )
+               ogg? ( media-sound/mp3splt media-sound/vorbis-tools )
+       )"
+DEPEND=""
+
+need_httpd_cgi
+
+src_install() {
+       webapp_src_preinst
+
+       dodoc docs/*
+       rm -rf docs/
+
+       insinto "${MY_HTDOCSDIR}"
+       doins -r .
+
+       webapp_postinst_txt en "${FILESDIR}"/installdoc.txt
+       webapp_src_install
+}
+
+pkg_postinst() {
+       elog "Install and upgrade instructions can be found here:"
+       elog "  /usr/share/doc/${P}/INSTALL.bz2"
+       elog "  /usr/share/doc/${P}/MIGRATION.bz2"
+       webapp_pkg_postinst
+}
diff --git a/www-apps/ampache/files/installdoc.txt b/www-apps/ampache/files/installdoc.txt
new file mode 100644 (file)
index 0000000..cdd6e11
--- /dev/null
@@ -0,0 +1,6 @@
+Install and upgrade instructions can be found here:
+/usr/share/doc/ampache-<version>/INSTALL.gz
+/usr/share/doc/ampache-<version>/MIGRATION.gz
+
+For general information please read:
+/usr/share/doc/ampache-<version>/README.gz
diff --git a/www-apps/ampache/metadata.xml b/www-apps/ampache/metadata.xml
new file mode 100644 (file)
index 0000000..c87b0e7
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <herd>web-apps</herd>
+       <use>
+               <flag name='transcode'>Install optional dependencies for transcoding support</flag>
+       </use>
+</pkgmetadata>