Forums

Skip to content

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

ebuild for ymuse

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
3 posts • Page 1 of 1
Author
Message
jpp_
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 110
Joined: Fri Oct 23, 2009 8:52 pm
Location: Argentina

ebuild for ymuse

  • Quote

Post by jpp_ » Fri Jan 14, 2022 5:08 pm

Good day

Trying to make an ebuild for ymuse

https://github.com/yktoo/ymuse

With this it builds

Code: Select all

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

EGIT_REPO_URI="https://github.com/yktoo/ymuse"
inherit go-module git-r3

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.2.0"
        "github.com/fhs/gompd/v2 v2.2.0/go.mod"
        "github.com/gotk3/gotk3 v0.6.1"
        "github.com/gotk3/gotk3 v0.6.1/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="${EGO_SUM_SRC_URI}"

# TODO: use dev-go/go-licenses or dev-go/go-license-detector to populate this more
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64" 
RDEPEND="x11-libs/gtk+:3"

src_unpack() {
   git-r3_src_unpack
   go-module_src_unpack
}

src_compile() {
   go build || die
}

src_install() {
   dobin ymuse
}
it works also, But i miss some icons, the desktop file and maybe more.
Also i think the ebuild is not ok, because i adapt it from other go ebuild, maybe it has unnecesary part and miss important ones.

in github it describe the install as follow

Clone the source and compile:

Code: Select all

git clone https://github.com/yktoo/ymuse.git
cd ymuse
go generate
go build
Copy over the icons and localisations:

Code: Select all

sudo cp -r resources/icons/* /usr/share/icons/
sudo cp -r resources/i18n/generated/* /usr/share/locale/
sudo update-icon-caches /usr/share/icons/hicolor/*
How do i "translate" that to the ebuild?

i add to the src_install section this, with some other trys, but of course its wrong

Code: Select all

doins -r resources/icons/
doins -r resources/i18n/generated/
doins update-icon-caches /usr/share/icons/hicolor/
Any help would be appreciated, thanks.
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Fri Jan 14, 2022 5:24 pm

For icons look on doicon function from desktop.eclass, use this eclass also for move desktop file with domenu functon.
For localization you should convert .po file in .mo file with msgfmt command on compilation phase (see for example media-gfx/dcraw-9.28.0-r2.ebuild).
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
grknight
Retired Dev
Retired Dev
Posts: 2565
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Fri Jan 14, 2022 5:49 pm

To update desktop/icon cache, inherit xdg and it adds functions to do it for you.
Top
Post Reply

3 posts • 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

 

 

magic