net-dialup/minimodem: change default USE; fix test

sndfile is a sort-of lowest common denominator, which
makes it more appropriate as a default-on USE flag
than more desktop-oriented options such as ALSA.

Additionally, a test USE flag was added.  When disabled,
tests are not run.  Tests depend on sndfile.

Closes: https://bugs.gentoo.org/921846
Signed-off-by: Seth M. Price <sprice623@aol.com>
This commit is contained in:
Seth M. Price
2024-11-21 16:46:11 -05:00
parent 486992ec68
commit 2020b1da97
2 changed files with 10 additions and 4 deletions

View File

@@ -12,8 +12,11 @@ SRC_URI="http://www.whence.com/minimodem/minimodem-${PV}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+alsa pulseaudio sndfile sndio"
REQUIRED_USE+="|| ( alsa pulseaudio sndfile )"
IUSE="alsa pulseaudio +sndfile sndio test"
REQUIRED_USE+="|| ( alsa pulseaudio sndfile )
test? ( sndfile )"
RESTRICT="!test? ( test )"
DEPEND="sndfile? ( media-libs/libsndfile )
sci-libs/fftw:3.0

View File

@@ -11,8 +11,11 @@ EGIT_REPO_URI="https://github.com/kamalmostafa/minimodem"
LICENSE="GPL-3+"
SLOT="0"
IUSE="alsa +pulseaudio sndfile sndio"
REQUIRED_USE+="|| ( alsa pulseaudio sndfile sndio )"
IUSE="alsa pulseaudio +sndfile sndio test"
REQUIRED_USE+="|| ( alsa pulseaudio sndfile sndio )
test ( sndfile )"
RESTRICT="!test? ( test )"
DEPEND="sndfile? ( media-libs/libsndfile )
sci-libs/fftw:3.0