summaryrefslogtreecommitdiff
blob: f8a75766501dc2ad3b795c85a7a6240a41fcf3a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

DESCRIPTION="Read-only FUSE filesystem which transcodes FLAC audio files to MP3 when read"
HOMEPAGE="https://khenriks.github.io/mp3fs/"
SRC_URI="https://github.com/khenriks/mp3fs/releases/download/v${PV}/${P}.tar.gz"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+flac vorbis"

REQUIRED_USE="|| ( flac vorbis )"
RESTRICT="test"

DEPEND="
	media-libs/libid3tag:=
	media-sound/lame
	sys-fs/fuse:0=
	flac? ( >=media-libs/flac-1.1.4:=[cxx] )
	vorbis? ( >=media-libs/libvorbis-1.3.0 )
"
RDEPEND="${DEPEND}"

src_configure() {
	econf \
		$(use_with flac) \
		$(use_with vorbis)
}

src_compile() {
	emake AR="$(tc-getAR)"
}