diff options
author | Sam James <sam@gentoo.org> | 2023-04-14 01:31:37 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-04-14 01:31:37 +0100 |
commit | 4bad0d382c0e8e3fcc3a4a9f8dc9e98e93ee42d8 (patch) | |
tree | e7b0726de01df9e30511027362a8e0c106370502 /www-apache/mod_musicindex/mod_musicindex-1.4.1-r4.ebuild | |
parent | dev-libs/hyphen: revbump for EAPI change (diff) | |
download | gentoo-4bad0d382c0e8e3fcc3a4a9f8dc9e98e93ee42d8.tar.gz gentoo-4bad0d382c0e8e3fcc3a4a9f8dc9e98e93ee42d8.tar.bz2 gentoo-4bad0d382c0e8e3fcc3a4a9f8dc9e98e93ee42d8.zip |
www-apache/mod_musicindex: revbump for EAPI change
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'www-apache/mod_musicindex/mod_musicindex-1.4.1-r4.ebuild')
-rw-r--r-- | www-apache/mod_musicindex/mod_musicindex-1.4.1-r4.ebuild | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/www-apache/mod_musicindex/mod_musicindex-1.4.1-r4.ebuild b/www-apache/mod_musicindex/mod_musicindex-1.4.1-r4.ebuild new file mode 100644 index 000000000000..1ef181d29e3c --- /dev/null +++ b/www-apache/mod_musicindex/mod_musicindex-1.4.1-r4.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit apache-module autotools + +DESCRIPTION="mod_musicindex allows nice displaying of directories containing music files" +HOMEPAGE="http://hacks.slashdirt.org/sw/musicindex/" +SRC_URI="http://hacks.slashdirt.org/musicindex/${P}.tar.gz + http://validator.w3.org/feed/images/valid-rss.png -> ${P}_valid-rss.png + http://jigsaw.w3.org/css-validator/images/vcss -> ${P}_vcss + http://www.w3.org/Icons/valid-xhtml11 -> ${P}_valid-xhtml11" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+mp3 +mp4 +flac +vorbis +cache mysql archive" + +DEPEND="mp3? ( media-libs/libmad media-libs/libid3tag:= ) + mp4? ( media-libs/libmp4v2:0 ) + flac? ( media-libs/flac:= ) + vorbis? ( media-libs/libvorbis ) + archive? ( app-arch/libarchive:= ) + mysql? ( dev-db/mysql-connector-c:0= )" +RDEPEND="${DEPEND} + sys-devel/libtool" + +APACHE2_MOD_CONF="50_${PN}" +APACHE2_MOD_DEFINE="MUSICINDEX" +DOCS=( AUTHORS BUGS ChangeLog README UPGRADING ) + +PATCHES=( + "${FILESDIR}"/${P}-slibtool.patch #778566 +) + +need_apache2 + +pkg_setup() { + _init_apache2_late +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --with-vorbis-libraries="${ESYSROOT}/usr/$(get_libdir)" \ + --with-libFLAC-libraries="${ESYSROOT}/usr/$(get_libdir)" \ + $(use_enable mp3) \ + $(use_enable mp4) \ + $(use_enable flac) \ + $(use_enable vorbis) \ + $(use_enable archive) \ + $(use_enable cache filecache) \ + $(use_enable mysql mysqlcache) +} + +src_compile() { + default +} + +src_install() { + default + apache-module_src_install + + # install W3C images + insinto /usr/share/mod_musicindex + newins "${DISTDIR}/${P}_valid-rss.png" valid-rss.png + newins "${DISTDIR}/${P}_valid-xhtml11" valid-xhtml11 + newins "${DISTDIR}/${P}_vcss" vcss + + find "${ED}" -type f -name "*.la" -delete || die +} |