Install this version:
emerge -a =media-sound/catnip-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =media-sound/catnip-9999
Or alternatively:
emerge --autounmask-write -a =media-sound/catnip-9999
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 7 | ~amd64 | 0 |
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit go-module optfeature
DESCRIPTION="terminal audio visualizer"
HOMEPAGE="https://github.com/noriah/catnip"
if [[ ${PV} == 9999 ]]
then
inherit git-r3
EGIT_REPO_URI="https://github.com/noriah/${PN}"
src_unpack() {
git-r3_src_unpack
go-module_live_vendor
}
else
EGO_SUM=(
)
go-module_set_globals
SRC_URI="
https://github.com/noriah/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
${EGO_SUM_SRC_URI}
"
KEYWORDS="~amd64"
fi
LICENSE="MIT Unlicense BSD-2"
SLOT="0"
IUSE="portaudio +fftw"
RDEPEND="
fftw? ( sci-libs/fftw:3.0 )
portaudio? ( media-libs/portaudio )
"
DEPEND="${RDEPEND}"
src_compile() {
go_tags="-tags "
use fftw && go_tags="${go_tags}withfftw,"
use portaudio && go_tags="${go_tags}withportaudio"
go_tags=${go_tags%,}
go_tags=${go_tags%-tags }
go build $go_tags || die
}
src_install() {
einstalldocs
dobin catnip
}
pkg_postinst() {
optfeature "use ffmpeg backends" media-video/ffmpeg
optfeature "use pulseaudio backend with parec" media-sound/pulseaudio
}
Manage flags for this package:
euse -i <flag> -p media-sound/catnip |
euse -E <flag> -p media-sound/catnip |
euse -D <flag> -p media-sound/catnip
fftw? ( sci-libs/fftw:3.0 ) portaudio? ( media-libs/portaudio )
fftw? ( sci-libs/fftw:3.0 ) portaudio? ( media-libs/portaudio )