From e16dd114277a9c0101f7dc361688a4d404af8763 Mon Sep 17 00:00:00 2001 From: Justin Wind Date: Sat, 5 Sep 2020 15:19:40 -0700 Subject: [PATCH] add media-sound/forked-daapd-27.2 --- media-sound/forked-daapd/Manifest | 2 + .../forked-daapd/forked-daapd-27.2.ebuild | 82 +++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 media-sound/forked-daapd/forked-daapd-27.2.ebuild diff --git a/media-sound/forked-daapd/Manifest b/media-sound/forked-daapd/Manifest index cad0007..7f9646f 100644 --- a/media-sound/forked-daapd/Manifest +++ b/media-sound/forked-daapd/Manifest @@ -3,7 +3,9 @@ AUX daapd.initd 583 BLAKE2B 0d84bdf5eb458568e07b2e3866dc36e95f1a2e169055345383b5 DIST forked-daapd-26.2.tar.gz 3004481 BLAKE2B 1e0bdc1e458996902f62fb1e5a65ec14edb9743cae7663679340a322d5b7a4d8b17803e3a9d7d1718f7ee9d60585dbadda522992eb0bd2813e18268fd72100e2 SHA512 44a1cbd05a7b3376700be14d1f5787f213ed384d146e847f0d0c2483a12d181359e1fc1977e17a6aca63322dc345fdc4e51ad690f2f3f39c235f4c49a6d19165 DIST forked-daapd-26.4.tar.xz 2481164 BLAKE2B 2ea23bc0ca2a0b34f49c40cb69898dc08ab854906b40f88a8d4e91cc4c24982fd5e418571371c64a1a7eaf98fdd89eefb916c40d05b874c8b7fc3e5a6c0d550f SHA512 16f2a5e3f9c941453b8a20e5c18f91c7cdfd6e696eb28fae1e34bb567081179ce6a6794ca3ba7436601547e08586473d3463aa328e410928d8f47ccd2e42ff1f DIST forked-daapd-26.5.tar.xz 3013288 BLAKE2B 0c7a1375344dec1366c802e7312ad80c967b7c8c5de8ed0710625398c45400560d51b561936c54e29bc39fa57be0398cafcf2ad93c681d9cfde5e5258f517205 SHA512 9fe5caed799817b2a28934687f6e03a3f203b6bb78d55d864d4b722f8aa19a4eb3f9d4ebae470a3ace41a64fb4d2720c803b931ddb4989098f75e9276fc0d5e1 +DIST forked-daapd-27.2.tar.xz 3335304 BLAKE2B d985672d2d25f3a56ae4309d981916cf0038b7d7e2c3c4a7a91520005f46a7632a709b7050c59036cef1a3be34bc543b4a420137f41251bca08e30ca5187aa2b SHA512 67dbb558579706bf69843e7ff7e6186769e7c775e99ea8b7d1a605fe6f3f6deba2fd20ea4ce3a7fb4e2fab07cf900f95233af66555f08a994c493fd73a1a2548 EBUILD forked-daapd-26.2.ebuild 1657 BLAKE2B 933280a5a0eaafeef10ab9a45533cc56cdea48045ee4a79c92219db0b3f62589de8542d203bd225b82ff3b39e44059c0516699a07b91b0eb6ab20a1fa8cd122a SHA512 d28573705b90b882dd2535db82d05ea91afa2bec5f9fa6069c4e22f1d6a4f570429f8bd2f209a5cf7883413f8679c81f722e1040fecb5bde2a4649f0c8de5127 EBUILD forked-daapd-26.4.ebuild 1806 BLAKE2B df123af6260efbaadaa958e187ba2493e66e3a28a42aed0e640ffa4dc73d92ab4ebaf5ca1a128cdf06c74796b5323943c92ff172e0a4db2bda5c37b29cbe1797 SHA512 3c0dca4c6a7a41514b569aef899ed0692ed0432766c4f75f81dfcd9e2beb7b5b7a190885a9dcf8293740b77b053f0b84b002d53669c11c9c1d9692cbb9e357b0 EBUILD forked-daapd-26.5.ebuild 1806 BLAKE2B df123af6260efbaadaa958e187ba2493e66e3a28a42aed0e640ffa4dc73d92ab4ebaf5ca1a128cdf06c74796b5323943c92ff172e0a4db2bda5c37b29cbe1797 SHA512 3c0dca4c6a7a41514b569aef899ed0692ed0432766c4f75f81dfcd9e2beb7b5b7a190885a9dcf8293740b77b053f0b84b002d53669c11c9c1d9692cbb9e357b0 +EBUILD forked-daapd-27.2.ebuild 1811 BLAKE2B c26272f258498e2cd8531b815f821547921e702ee6d2c0df504fa0504d627c6e3c958e373d4e3390371dfc425234bac65817dcdd0ed3255aa5af42c26fb70671 SHA512 19af8c6ef8454a3159ace533376049fd36c44e6fb92dd3aa4aed2d1555788b5e416eed3e427aa09992b97eed7656db472a5d2d41896a47e0cf4755c2269b8bfa MISC metadata.xml 793 BLAKE2B aa9497c2700a6b0fa38496b637d9a65124bccc571ad2afc76ceca831b2fcacca09a31f318ad7eba39d0848476e14057a1e61d3cb1c7880a425c936f979909dbd SHA512 43ef73e58b7e999ee49ac1af5fcf1861e19debcad5cb783f3cec5e977badef997be362520932b97e404b39c5578df91b26821289733458cf1125d41572bf4d34 diff --git a/media-sound/forked-daapd/forked-daapd-27.2.ebuild b/media-sound/forked-daapd/forked-daapd-27.2.ebuild new file mode 100644 index 0000000..3376f43 --- /dev/null +++ b/media-sound/forked-daapd/forked-daapd-27.2.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# TODO: +# Add --enable-spotify when it works + +EAPI=5 + +inherit autotools eutils user + +DESCRIPTION="A DAAP (iTunes) media server" +HOMEPAGE="https://github.com/ejurgensen/forked-daapd" +#SRC_URI="https://github.com/ejurgensen/forked-daapd/archive/${PV}.tar.xz -> ${P}.tar.xz" +SRC_URI="https://github.com/ejurgensen/forked-daapd/releases/download/${PV}/${P}.tar.xz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="alsa flac itunes lastfm mpd musepack" + +# Note: mpd support appears to be standalone, e.g. --enable-mpd doesn't +# result in additional linkage. +RDEPEND=" + dev-db/sqlite:3 + dev-libs/antlr-c:0 + dev-libs/confuse + dev-libs/libevent + dev-libs/libgcrypt:0 + dev-libs/libunistring + dev-libs/libsodium + net-libs/libwebsockets:0/15 + dev-libs/mxml[threads] + net-dns/avahi[dbus] + virtual/ffmpeg + dev-libs/json-c + + alsa? ( media-libs/alsa-lib ) + flac? ( media-libs/flac ) + itunes? ( app-pda/libplist ) + lastfm? ( net-misc/curl ) + musepack? ( media-libs/taglib ) +" + +DEPEND=" + dev-java/antlr:3 + ${RDEPEND} +" + +pkg_setup() { + enewuser daapd + enewgroup daapd +} + +src_prepare() { + # https://github.com/ejurgensen/forked-daapd/pull/185 + #epatch "${FILESDIR}/antlr-3.5.patch" + + eautoreconf +} + +src_configure() { + ac_cv_prog_ANTLR=antlr3.5 \ + econf \ + $(use_enable alsa) \ + $(use_enable flac) \ + $(use_enable musepack) \ + $(use_enable itunes) \ + $(use_enable lastfm) \ + $(use_enable mpd) +} + +src_install() { + emake DESTDIR="${D}" install + + newinitd "${FILESDIR}/daapd.initd" daapd + newconfd "${FILESDIR}/daapd.confd" daapd + + # dodir by itself fails in the likely case of /srv/music having a + # volume mounted already. + test -d /srv/music || dodir /srv/music + + fowners -R daapd:daapd /var/lib/cache/forked-daapd +} -- 2.45.2