media-sound/go-musicfox - 5.1.0 (gentoo-zh)

Search

Install

Install this version:

emerge -a =media-sound/go-musicfox-5.1.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =media-sound/go-musicfox-5.1.0

Or alternatively:

emerge --autounmask-write -a =media-sound/go-musicfox-5.1.0

Package Information

Description:
Command-line Netease Cloud Music written in Go
Homepage:
https://github.com/go-musicfox/go-musicfox
License:
Apache-2.0 BSD BSD-2 GPL-3 LGPL-3-with-linking-exception MIT

Ebuild Details

Version EAPI Keywords Slot
5.1.0 8 ~amd64 ~loong 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module optfeature

DESCRIPTION="Command-line Netease Cloud Music written in Go"
HOMEPAGE="https://github.com/go-musicfox/go-musicfox"
SRC_URI="https://github.com/go-musicfox/go-musicfox/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="Apache-2.0 BSD BSD-2 GPL-3 LGPL-3-with-linking-exception MIT"
SLOT="0"
KEYWORDS="~amd64 ~loong"
IUSE="clang"

DEPEND="
	media-libs/flac
	media-libs/alsa-lib
"
RDEPEND="${DEPEND}"
BDEPEND="
	${DEPEND}
	>=dev-lang/go-1.26.0
	|| (
		llvm-core/clang
		sys-devel/gcc[objc]
	)
	clang? ( llvm-core/clang )
"

src_compile() {
	if use clang; then
		ego env -w "CC=clang"
		ego env -w "CXX=clang++"
	fi
	local -x GIT_TAG="v${PV}" GIT_REVISION="v${PV}"
	emake LDFLAGS= build
}

src_test() {
	# The randomized integration test intermittently reports no next song.
	ego test ./internal/... ./utils/... -skip '^TestPlaylistManagerWithUIInteraction$'
}

src_install() {
	dobin bin/musicfox
}

pkg_postinst() {
	optfeature "WebView login" net-libs/webkit-gtk:6 net-libs/webkit-gtk:4.1
}

USE Flags

Manage flags for this package: euse -i <flag> -p media-sound/go-musicfox | euse -E <flag> -p media-sound/go-musicfox | euse -D <flag> -p media-sound/go-musicfox

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

	media-libs/flac
	media-libs/alsa-lib

RDEPEND

	media-libs/flac
	media-libs/alsa-lib

BDEPEND

	
	media-libs/flac
	media-libs/alsa-lib

	>=dev-lang/go-1.26.0
	|| (
		llvm-core/clang
		sys-devel/gcc[objc]
	)
	clang? ( llvm-core/clang )

Manifest for 5.1.0

Type File Size Source URLs
DIST go-musicfox-5.1.0.tar.gz 34237991 bytes https://github.com/go-musicfox/go-musicfox/archive/refs/tags/v5.1.0.tar.gz