Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ebuild] songbird-bin-1.0.1 prerelease nightlies
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Loibisch
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2006
Posts: 89

PostPosted: Mon Nov 10, 2008 9:07 pm    Post subject: [ebuild] songbird-bin-1.0.1 prerelease nightlies Reply with quote

Get Songbird!
I was looking for a new media player since I really can't stand the direction Amarok2 is going. After some searching I stumbled upon Songbird, an XUL-based Media Player with plenty of add-ons, a clean interface and powerful music library support.

I was then pretty amazed, that there is no current ebuild for this app in Gentoo.
Here is a forum thread last updated 4 months ago providing an 0.6.0 ebuild
Here is a bugzilla entry providing an 0.7.0 ebuild
Here is an one-month-old 0.8pre ebuild hosted at the songbird website (which is buggy as hell and doesn't even work if you simply copy/paste it)

Why a new ebuild?
Thing is that 0.7 was released about 3 months ago and they're currently prepping their release version 1.0. The most current official build is 1.0 RC1, but the steps towards RC2 can be downloaded as nightly snapshot builds pretty easily. The feature list over the latest official release is well worth the upgrade.

So I took one of the most recent ebuilds I could find and adjusted it to download the 1.0RC2 nightlies, which is the latest and greatest in the Songbird universe (while still supporting most of the add-ons). The biggest advantage over the latest ebuild you could find anywhere else would be gapless playback, which was the only thing preventing me from enjoying Songbird.

The ebuild (songbird-bin-1.0.1_pre903.ebuild)
Code:
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

MY_PRE="${PV#1.0.1_pre}"
DESCRIPTION="A powerful media player based on the Mozilla XUL engine"
HOMEPAGE="http://www.songbirdnest.com/"
SRC_URI="amd64? ( http://developer.songbirdnest.com/builds/Songbird1.0/${MY_PRE}/Songbird_1.0.1pre-${MY_PRE}_linux-x86_64.tar.gz )
         x86? ( http://developer.songbirdnest.com/builds/Songbird1.0/${MY_PRE}/Songbird_1.0.1pre-${MY_PRE}_linux-i686.tar.gz ) "

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="alsa oss esd ogg flac faac faad musepack ugly theora speex ffmpeg gnome jpeg"

RDEPEND="
        alsa?      ( media-plugins/gst-plugins-alsa )
        oss?      ( media-plugins/gst-plugins-oss )
        esd?         ( media-plugins/gst-plugins-esd )
        ogg?         ( media-plugins/gst-plugins-ogg
                    media-plugins/gst-plugins-vorbis )
        gnome?      ( media-plugins/gst-plugins-gconf
                   media-plugins/gst-plugins-gnomevfs )
        flac?      ( media-plugins/gst-plugins-flac )
        faac?      ( media-plugins/gst-plugins-faac )
        faad?      ( media-plugins/gst-plugins-faad )
        ugly?      ( media-libs/gst-plugins-ugly )
        musepack?   ( media-plugins/gst-plugins-musepack )
        theora?      ( media-plugins/gst-plugins-theora )
        speex?      ( media-plugins/gst-plugins-speex )
        ffmpeg?      ( media-plugins/gst-plugins-ffmpeg )
        jpeg?      ( media-plugins/gst-plugins-jpeg )"
DEPEND="${RDEPEND}
        x11-libs/libXdmcp
        x11-libs/libXau
        x11-libs/libXfixes
        x11-libs/libXcursor
        x11-libs/libXrandr
        x11-libs/libXi
        x11-libs/libXrender
        x11-libs/libXext
        x11-libs/libX11
        dev-libs/liboil
        media-libs/gstreamer
        media-libs/gst-plugins-base
        media-plugins/gst-plugins-x
        media-plugins/gst-plugins-xvideo
        media-plugins/gst-plugins-lame
        media-plugins/gst-plugins-mpeg2dec
        media-plugins/gst-plugins-mad
        >=net-misc/neon-0.26.4
        media-plugins/gst-plugins-neon
        >=sys-libs/glibc-2.3.2
        >=x11-libs/gtk+-2.0.0
        >=virtual/xft-7.0
        x11-libs/pango"

S="${WORKDIR}/Songbird"
RESTRICT="strip"

src_install() {
      insinto /opt/songbird
      doins -r *
      fperms 755 /opt/songbird/songbird
      fperms 755 /opt/songbird/songbird-bin
      fperms 755 /opt/songbird/xulrunner/xulrunner
      fperms 755 /opt/songbird/xulrunner/xulrunner-bin
      dosym /opt/songbird/songbird /opt/bin/songbird-bin

      newicon ${S}/chrome/icons/default/default.xpm ${PN}.xpm
      make_desktop_entry /opt/songbird/songbird Songbird ${PN}.xpm /opt/songbird "AudioVideo;Player"
}

pkg_postinst() {
      echo
      ewarn "You have just installed a Songbird development build."
      ewarn "This ebuild is not supported by Gentoo!"
      ewarn ""
      ewarn "A Songbird bugzilla entry dedicated to creating an ebuild"
      ewarn "can be found here:"
      ewarn "http://bugs.gentoo.org/show_bug.cgi?id=139019"
      einfo ""
      einfo "If you need help with Songbird itself you can find at:"
      einfo "http://getsongbird.com/contribute/"
      einfo ""
      einfo "If you require any other music or video plugin, search"
      einfo "your portage tree for media-plugins/gst-plugins-*."
      einfo "Keep in mind that not all plugins might be supported."
      echo
}


Quick install instructions:
  • save the above codepiece as "songbird-bin-1.0.1_pre903.ebuild"
  • put it into the folder "/usr/local/portage/media-sound/songbird-bin" (or whatever your overlay directory is)
  • run "ebuild /usr/local/portage/media-sound/songbird-bin/songbird-bin-1.0.1_pre903.ebuild manifest"
  • add "media-sound/songbird-bin ~x86" or "media-sound/songbird-bin ~amd64" to your keyword file (/etc/portage/package.keywords)
  • emerge songbird-bin :)
  • If you run KDE, run kbuildsycoca (or kbuildsycoca4) to update your start menu


More stuff
Most of the ebuild was copied from other songbird ebuilds I could find, credit needs to be given where credit is due). They're all linked above and if you check the gentoo bugtracker you can see every version of the original songbird ebuild was submitted by someone else. So hell knows who first came up with this...sorry.
I didn't check the dependencies thoroughly (don't really have time for more intense stuff until sometime in December). My main addition was enabling dynamic source package fetching depending on the ebuild filename. All that is necessary to upgrade to a later nightly snapshot is to rename the "songbird-bin-1.0.0_pre834.ebuild" to "songbird-bin-1.0.0_pre###.ebuild", where ### is the new snapshot number. Be warned, that the build numbers are not consecutive, so check out what's available here.

So now go and give Songbird a try. And give me some feedback. Enjoy. :)


Last edited by Loibisch on Sun Dec 21, 2008 11:28 pm; edited 7 times in total
Back to top
View user's profile Send private message
druggo
Apprentice
Apprentice


Joined: 24 Sep 2003
Posts: 289
Location: Hangzhou, China

PostPosted: Tue Nov 11, 2008 2:52 am    Post subject: Reply with quote

nice, nice !

but /opt/bin/songbird-bin doesn't work, because the startup script use ./ to find the binary

so I play it using /opt/songbird/songbird
_________________
HighWayToHell(blog)
http://blog.druggo.org/
Back to top
View user's profile Send private message
Loibisch
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2006
Posts: 89

PostPosted: Tue Nov 11, 2008 9:13 am    Post subject: Reply with quote

druggo wrote:
nice, nice !

but /opt/bin/songbird-bin doesn't work, because the startup script use ./ to find the binary

so I play it using /opt/songbird/songbird

That's really the way it's supposed to be. The line "dosym /opt/songbird/songbird /opt/bin/songbird-bin" sets up a symlink to the songbird wrapper script in your "/opt/bin" directory, and the startup entry created by "make_desktop_entry ..." also creates a shortcut for the songbird wrapper. So all's normal. :)
Back to top
View user's profile Send private message
termite
Guru
Guru


Joined: 06 May 2007
Posts: 466

PostPosted: Tue Nov 11, 2008 1:00 pm    Post subject: Reply with quote

If Songbird was OSS, I'd switch to it, as I agree about Amarok2. For me, it's Amarok 1.4.whatever for now...
Back to top
View user's profile Send private message
Loibisch
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2006
Posts: 89

PostPosted: Tue Nov 11, 2008 1:23 pm    Post subject: Reply with quote

termite wrote:
If Songbird was OSS, I'd switch to it, as I agree about Amarok2. For me, it's Amarok 1.4.whatever for now...

The Songbird Website wrote:
Songbird is an open-source customizable music player that's under active development.

Also see the Songbird licensing FAQ.

I agree this ebuild only installs the binary snapshots, that's because integrating Songbird into the Gentoo build process is currently quite complicated.

I don't really want to keep using Amarok 1.4 because I want to get rid of the old kdelibs installation. Amarok's about the only thing I still need it for (well, that and K3b).
Back to top
View user's profile Send private message
Loibisch
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2006
Posts: 89

PostPosted: Mon Nov 17, 2008 12:49 pm    Post subject: Reply with quote

Updated the ebuild in the first post for the -RC3 prerelease series.
Back to top
View user's profile Send private message
mastersyl
n00b
n00b


Joined: 04 Nov 2008
Posts: 18
Location: St-Jean, Qc

PostPosted: Tue Nov 18, 2008 2:15 am    Post subject: Reply with quote

Quote:
add "media-sound/songbird-bin ~x86" or "media-songbird ~amd64"


I suppose it should be "media-sound/songbird-bin ~amd64" ? anyhow when I do "emerge songbird-bin" I get:

emerge: there are no ebuilds to satisfy "songbird-bin"

It's my first time with overlay, could it be another command like ebuild :?:
Back to top
View user's profile Send private message
mastersyl
n00b
n00b


Joined: 04 Nov 2008
Posts: 18
Location: St-Jean, Qc

PostPosted: Tue Nov 18, 2008 3:27 am    Post subject: Reply with quote

Solved. I have added PORTDIR_OVERLAY="/usr/local/portage/" in make.conf
Back to top
View user's profile Send private message
Loibisch
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2006
Posts: 89

PostPosted: Tue Nov 18, 2008 9:10 am    Post subject: Reply with quote

mastersyl wrote:
Quote:
add "media-sound/songbird-bin ~x86" or "media-songbird ~amd64"


I suppose it should be "media-sound/songbird-bin ~amd64" ? anyhow when I do "emerge songbird-bin" I get:

emerge: there are no ebuilds to satisfy "songbird-bin"

It's my first time with overlay, could it be another command like ebuild :?:


You are of course right, I caught that bug earlier and I'd already fixed it in the Songbird Wiki, but totally forgot about it here. Fixed now.
Glad you figured out how to add your local overlay. Maybe I should add that to the instructions. :)
Back to top
View user's profile Send private message
uaeb
n00b
n00b


Joined: 28 May 2008
Posts: 27

PostPosted: Tue Nov 18, 2008 11:06 pm    Post subject: Reply with quote

A little OT I know, but has anyone had any luck getting LastFM scrobbles working ?

Aside from that, Songbirds looking might might sweet compared to even it's more recent releases.
Back to top
View user's profile Send private message
bssteph
l33t
l33t


Joined: 26 Feb 2003
Posts: 651
Location: Wisconsin

PostPosted: Thu Nov 20, 2008 2:08 am    Post subject: Reply with quote

uaeb wrote:
A little OT I know, but has anyone had any luck getting LastFM scrobbles working ?

Aside from that, Songbirds looking might might sweet compared to even it's more recent releases.


Yeah, I too tried it out because I didn't like Amarok 2. Anyway, about last.fm, I haven't gotten it to work either. Apparently you need to have the last.fm client running for it to work, but even that isn't helping for me.

EDIT: The latest RCs (starting with build 845) are RC3, and the last.fm plugin is only for RC2, it seems. Hopefully it'll update soon.

And of course, thanks for the ebuild, Loibisch! Works great, except you have "fad" instead of "faad" in the IUSE. :)
_________________
Website - All sorts of nonsense (some of it actually Linux related)
Back to top
View user's profile Send private message
bssteph
l33t
l33t


Joined: 26 Feb 2003
Posts: 651
Location: Wisconsin

PostPosted: Thu Nov 20, 2008 5:00 am    Post subject: Reply with quote

bssteph wrote:
Yeah, I too tried it out because I didn't like Amarok 2. Anyway, about last.fm, I haven't gotten it to work either. Apparently you need to have the last.fm client running for it to work, but even that isn't helping for me.

EDIT: The latest RCs (starting with build 845) are RC3, and the last.fm plugin is only for RC2, it seems. Hopefully it'll update soon.


And scrobbling totally works with RC2. Change the ebuild version to pre842, and change references in the tarballs from rc3 to rc2.
_________________
Website - All sorts of nonsense (some of it actually Linux related)
Back to top
View user's profile Send private message
uaeb
n00b
n00b


Joined: 28 May 2008
Posts: 27

PostPosted: Thu Nov 20, 2008 7:27 am    Post subject: Reply with quote

Awesome that did the trick.

I also found something in the recent 850 build changelog about this but was unable to get it working in 850 either ( the latest as of now ) but have updated a bug report on it.
Back to top
View user's profile Send private message
Loibisch
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2006
Posts: 89

PostPosted: Thu Nov 20, 2008 9:31 am    Post subject: Reply with quote

bssteph wrote:
Works great, except you have "fad" instead of "faad" in the IUSE. :)

Thanks for pointing that out, it's fixed. :)
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1160

PostPosted: Tue Dec 02, 2008 6:51 pm    Post subject: Reply with quote

Songbird_1.0.1pre-867_linux-i686.tar.gz


can anybody construct an acceptable ebuild syntax for the above file?

thanks!
_________________
this is a strange strange world.
Back to top
View user's profile Send private message
Loibisch
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2006
Posts: 89

PostPosted: Tue Dec 02, 2008 6:56 pm    Post subject: Reply with quote

Sure, updated the first post, should be working fine. :)
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1160

PostPosted: Wed Dec 03, 2008 7:46 am    Post subject: Reply with quote

Loibisch wrote:
Sure, updated the first post, should be working fine. :)


thanks!
songbird rocks!
_________________
this is a strange strange world.
Back to top
View user's profile Send private message
satanskin
Guru
Guru


Joined: 25 Apr 2005
Posts: 353

PostPosted: Sun Dec 21, 2008 10:58 pm    Post subject: Reply with quote

Anybody seen an ebuild for the latest x86_64 release of songbird?
Back to top
View user's profile Send private message
Loibisch
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2006
Posts: 89

PostPosted: Sun Dec 21, 2008 11:08 pm    Post subject: Reply with quote

You can use the ebuild at the beginning of the thread. Just change the pre-number to 887, I think that's the latest.
Back to top
View user's profile Send private message
satanskin
Guru
Guru


Joined: 25 Apr 2005
Posts: 353

PostPosted: Sun Dec 21, 2008 11:24 pm    Post subject: Reply with quote

ahhhhh guess it would have helped if I actually read over your ebuild. Didn't realize you had included the amd64 in there. BTW, latest release is 903. Pulling it down now. Thanks again!
Back to top
View user's profile Send private message
Loibisch
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2006
Posts: 89

PostPosted: Sun Dec 21, 2008 11:25 pm    Post subject: Reply with quote

Oh yeah, didn't see 903. Anyway, they're all running fine really. :)
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Mon Dec 22, 2008 4:18 am    Post subject: Reply with quote

I recommend you guys work with the Sunrise overlay to keep the songbird-bin ebuild in there up-to-date.
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
uaeb
n00b
n00b


Joined: 28 May 2008
Posts: 27

PostPosted: Mon Dec 22, 2008 7:24 am    Post subject: Reply with quote

yngwin wrote:
I recommend you guys work with the Sunrise overlay to keep the songbird-bin ebuild in there up-to-date.


How would one go about proposing an update to the overlay ? The latest version available within the overlay is 0.7. Plus, the source version of the ebuild doesn't look like it'll be coming any time soon ( if ever, due to the xulrunner +patch issue ), so might that not convince the overlay admins to brush it off ?

Don't get me wrong, I'm all for having it in there myself. I just don't know how or if we can convince those whom make the decisions to do so. Certainly your input as a dev on this would be most welcome.
Back to top
View user's profile Send private message
Loibisch
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2006
Posts: 89

PostPosted: Mon Dec 22, 2008 10:23 am    Post subject: Reply with quote

Yeah, I was looking into that a while ago. There's not going to be a source ebuild soon, as Songbird made some changes to the xulrunner code which probably will not get adopted upstream, despite their good connections to the xulrunner folks. So it's going to be tough using the Gentoo-xulrunner for Songbird. They know the need for system integration, as Gentoo is not the only distribution which demands the use of existing system libraries and tools (Ubuntu et al also don't want severa xulrunner binaries floating around). So they're working on integration, but I don't know when that will actually show in the product.

Anyway, maybe I'll try to get this ebuild into sunrise, I looked into it back when I "made" this ebuild, but didn't have the time at the time. Maybe I'll check into it again. :)
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Mon Dec 22, 2008 4:19 pm    Post subject: Reply with quote

uaeb wrote:
yngwin wrote:
I recommend you guys work with the Sunrise overlay to keep the songbird-bin ebuild in there up-to-date.


How would one go about proposing an update to the overlay ? The latest version available within the overlay is 0.7.

Actually, the latest in Sunrise is 1.0.0_rc3.
And Sunrise is maintained by users, see http://www.gentoo.org/proj/en/sunrise/ and http://overlays.gentoo.org/proj/sunrise/wiki/HowToCommit
and the #gentoo-sunrise IRC channel.
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum