AUX daapd.confd 344 BLAKE2B 62176766f5350bc0335b233431adffae42915abb5fd540e121dbe26da6ce03728bbebed3aa2b79a7044f39374b7ae16e4b11a837a4d5ab3690ecdc027e11ffa7 SHA512 b8e2d1bc61fbaa23d9b99770657fbf3af55a9e6fd39a34af4e90379f5ce883f29458dae48f424b77c3000933932b31106466714838da38e9a159d34af6cbdacc
AUX daapd.initd 583 BLAKE2B 0d84bdf5eb458568e07b2e3866dc36e95f1a2e169055345383b5607a38c347b3457b108385f16df8cce0ca280845a3ff122246af3c06747b91e9f2f7ac39857c SHA512 a584cd71c5673732ac0c31fb92d156f5c480ced066d0686f957d6adf9c769ec234fe46a468077ea6b28efca132336e186fa0adc2200150e9fca11f2800aeb67a
DIST forked-daapd-26.2.tar.gz 3004481 BLAKE2B 1e0bdc1e458996902f62fb1e5a65ec14edb9743cae7663679340a322d5b7a4d8b17803e3a9d7d1718f7ee9d60585dbadda522992eb0bd2813e18268fd72100e2 SHA512 44a1cbd05a7b3376700be14d1f5787f213ed384d146e847f0d0c2483a12d181359e1fc1977e17a6aca63322dc345fdc4e51ad690f2f3f39c235f4c49a6d19165
+DIST forked-daapd-26.4.tar.xz 2481164 BLAKE2B 2ea23bc0ca2a0b34f49c40cb69898dc08ab854906b40f88a8d4e91cc4c24982fd5e418571371c64a1a7eaf98fdd89eefb916c40d05b874c8b7fc3e5a6c0d550f SHA512 16f2a5e3f9c941453b8a20e5c18f91c7cdfd6e696eb28fae1e34bb567081179ce6a6794ca3ba7436601547e08586473d3463aa328e410928d8f47ccd2e42ff1f
EBUILD forked-daapd-26.2.ebuild 1657 BLAKE2B 933280a5a0eaafeef10ab9a45533cc56cdea48045ee4a79c92219db0b3f62589de8542d203bd225b82ff3b39e44059c0516699a07b91b0eb6ab20a1fa8cd122a SHA512 d28573705b90b882dd2535db82d05ea91afa2bec5f9fa6069c4e22f1d6a4f570429f8bd2f209a5cf7883413f8679c81f722e1040fecb5bde2a4649f0c8de5127
+EBUILD forked-daapd-26.4.ebuild 1762 BLAKE2B 449b846f96d095c439a24dd2309074ae8fc8e74e7e51db2439d1a45b0f61fffa189221f714249cb3c72edd73a5717d5ea025f1639bdc2aa8c84a47a39c46fabe SHA512 19a817d258acb5c1443f794d2b5070fa98bfe003700dd9522f7fd582cb796b31ad9674e1bd70f4a883cee91d8ce3d152d2166dd7f2132489e3857095697e5367
MISC metadata.xml 793 BLAKE2B aa9497c2700a6b0fa38496b637d9a65124bccc571ad2afc76ceca831b2fcacca09a31f318ad7eba39d0848476e14057a1e61d3cb1c7880a425c936f979909dbd SHA512 43ef73e58b7e999ee49ac1af5fcf1861e19debcad5cb783f3cec5e977badef997be362520932b97e404b39c5578df91b26821289733458cf1125d41572bf4d34
--- /dev/null
+# 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/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
+}