Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

media-sound/ymuse-0.22 ebuild

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
1 post • Page 1 of 1
Author
Message
Skotlex
Guru
Guru
Posts: 316
Joined: Sat Mar 13, 2004 8:27 pm

media-sound/ymuse-0.22 ebuild

  • Quote

Post by Skotlex » Fri Apr 18, 2025 12:23 am

Completing the work from this thread.
Any comments on improving/cleaning up the ebuild are welcome. :)

Ymuse is a small GTK-3 frontend client for the Music Player Daemon (media-sound/mpd) written in Go.

Code: Select all

# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
inherit go-module xdg desktop

DESCRIPTION="GTK client for Music Player Daemon (MPD) written in Go"
HOMEPAGE="https://github.com/yktoo/ymuse"

#Check go.sum and sync with this 
# Use e.g.: cat go.sum | cut -d" " -f1,2 | awk '{print "\t\"" $0 "\""}'
# (Could maybe use dev-go/get-ego-vendor?)
EGO_SUM=(
	"github.com/fhs/gompd/v2 v2.3.0"
	"github.com/fhs/gompd/v2 v2.3.0/go.mod"
	"github.com/gotk3/gotk3 v0.6.2"
	"github.com/gotk3/gotk3 v0.6.2/go.mod"
	"github.com/op/go-logging v0.0.0-20160315200505-970db520ece7"
	"github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod"
	"github.com/pkg/errors v0.9.1"
	"github.com/pkg/errors v0.9.1/go.mod" 
)

go-module_set_globals

SRC_URI="https://github.com/yktoo/ymuse/archive/refs/tags/v${PV}.tar.gz ${EGO_SUM_SRC_URI}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64"

DEPEND="
	x11-libs/gtk+:3
	>=dev-lang/go-1.21
	"
RDEPEND="${DEPEND}"
BDEPEND="${DEPEND}
	virtual/libc
	x11-libs/gdk-pixbuf
	dev-libs/glib
	sys-devel/gettext
	"

src_unpack() {
	default
	go-module_src_unpack
}

src_compile() {
	for file in "${S}/resources/i18n/"*.po; do
		msgfmt "${file}" -o "${file%.po}.mo" || die
	done
	go build || die
}

src_install() {
	for x in 16 24 32 48 64 128 256 512; do 
		doicon -s ${x} resources/icons/hicolor/${x}x${x}/apps/com.yktoo.ymuse.png
	done
	doicon --size scalable resources/icons/hicolor/scalable/*/*
	domo "${S}/resources/i18n/"*.mo
	dobin ymuse
}

pkg_preinst() {
	xdg_pkg_preinst
}

pkg_postinst() {
	xdg_pkg_postinst
}
Top
Post Reply
1 post • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy