# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit apache-module DESCRIPTION="mod_musicindex is an Apache module aimed at being a C alternative to the Perl module Apache::MP3. It allows nice displaying of directories containing music files" HOMEPAGE="http://freshmeat.net/redir/musicindex/42102/url_homepage/musicindex" SRC_URI="http://www.parisc-linux.org/~varenet/musicindex/${PN}-1.2.2.tar.gz" LICENSE="GNU" SLOT="0" KEYWORDS="~x86" IUSE="mp3 vorbis flac mp4 filecache prettyfolders" DEPEND="www-servers/apache mp3? ( media-libs/libmad ) vorbis? ( media-libs/liboggz ) flac? ( media-libs/flac ) mp4? ( media-libs/libmp4v2 ) " RDEPEND="${DEPENDS}" S="${WORKDIR}/${PN}-1.2.2" APACHE2_MOD_DEFINE="MUSICINDEX" need_apache2 src_unpack() { unpack ${A} cd "${S}" } src_compile () { econf \ $(use_enable mp3) \ $(use_enable vorbis) \ $(use_enable flac) \ $(use_enable mp4) \ $(use_enable filecache) \ $(use_enable prettyfolders) \ || die "econf failed" emake || die "emake failed" } src_install() { apache-module_src_install dodoc AUTHORS BUGS ChangeLog README UPGRADING }