anyone using amazonmp3?

Discussions Regarding Software

Moderator: Moderators

anyone using amazonmp3?

Postby rashan » Sun Jul 13, 2008 23:21

I'm curious if anyone is using Amazon's mp3 downloader? Particularly if anyone has gotten it working on their x64 Sabayon installations.

I noticed that the Ewwbuntu community repository for Equo has it available for the 32-bit folks, but that's it's only a 32bit repository. (nice to see it though! :) ).

anyone managed to get it working on their 64bit installs, and if so, what did you do to get it working?
rashan
Baby Hen
 
Posts: 18
Joined: Tue May 08, 2007 16:29

Re: anyone using amazonmp3?

Postby deadfool » Mon Jul 14, 2008 0:53

rashan wrote:I'm curious if anyone is using Amazon's mp3 downloader? Particularly if anyone has gotten it working on their x64 Sabayon installations.

I noticed that the Ewwbuntu community repository for Equo has it available for the 32-bit folks, but that's it's only a 32bit repository. (nice to see it though! :) ).

anyone managed to get it working on their 64bit installs, and if so, what did you do to get it working?


do you want the ebuild? sorry for the 32 bit but i dont have a 64bit processor atm
deadfool
Growing Hen
 
Posts: 124
Joined: Thu Mar 27, 2008 3:56

Re: anyone using amazonmp3?

Postby rashan » Mon Jul 14, 2008 2:03

deadfool wrote:
do you want the ebuild? sorry for the 32 bit but i dont have a 64bit processor atm


Sure, that'd be great!
rashan
Baby Hen
 
Posts: 18
Joined: Tue May 08, 2007 16:29

Re: anyone using amazonmp3?

Postby deadfool » Mon Jul 14, 2008 3:56

Code: Select all
# Distributed under the terms of the GNU General Public License v2
# be kind, give credit:  initial, Paul Cifarelli <[email protected]>

inherit eutils rpm

MY_PN="amazonmp3"
DESCRIPTION="Amazon mp3 downloader"
HOMEPAGE="http://www.amazon.com/gp/dmusic/help/amd.html?ie=UTF8&forceos=LINUX&ASIN=&isTrack="
SRC_URI="amazonmp3-1.0.3-1.fedora8.i386.rpm"
LICENSE="EUBL"
SLOT="0"
KEYWORDS="-* amd64 x86"
IUSE="X"
RESTRICT="strip test fetch"
RDEPEND="dev-cpp/glibmm dev-cpp/cairomm dev-cpp/gtkmm >=dev-libs/boost-1.34"

pkg_nofetch() {
        einfo "Download the Amazon Downloader manually from Amazon's website at"
        einfo ${HOMEPAGE}
        einfo ""
        einfo "Click \"I agree to the terms of use\" &"
        einfo "Choose the Download now Fedora 8 button"
        einfo ""
        einfo "Then place the file ${SRC_URI}"
        einfo "into ${DISTDIR} and restart the emerge."
}

pkg_setup() {
        # This is a binary x86 package => ABI=x86
        has_multilib_profile && ABI="x86"
}

src_unpack() {
        rpm_src_unpack
}

src_install() {

        mkdir -p ${D}/usr/bin
        cp ${WORKDIR}/usr/bin/amazonmp3 ${D}/usr/bin
        chmod +x ${D}/usr/bin

        mkdir -p ${D}/usr/share/applications
        cp ${WORKDIR}/usr/share/applications/amazonmp3.desktop ${D}/usr/share/applications

        mkdir -p ${D}/usr/share/doc/amazonmp3
        cp ${WORKDIR}/usr/share/doc/amazonmp3/help.html ${D}/usr/share/doc/amazonmp3
        cp ${WORKDIR}/usr/share/doc/amazonmp3/license.html ${D}/usr/share/doc/amazonmp3
        cp ${WORKDIR}/usr/share/doc/amazonmp3/releasenotes ${D}/usr/share/doc/amazonmp3

         mkdir -p ${D}/usr/share/mime-info
        cp ${WORKDIR}/usr/share/mime-info/amazonmp3.keys ${D}/usr/share/mime-info
        cp ${WORKDIR}/usr/share/mime-info/amazonmp3.mime ${D}/usr/share/mime-info

        mkdir -p ${D}/usr/share/mime/packages
        cp ${WORKDIR}/usr/share/mime/packages/amazonmp3.xml     ${D}/usr/share/mime/packages

        mkdir -p ${D}/usr/share/mimelnk/audio
        cp ${WORKDIR}/usr/share/mimelnk/audio/x-amzxml.desktop ${D}/usr/share/mimelnk/audio

        mkdir -p ${D}/usr/share/pixmaps
        cp ${WORKDIR}/usr/share/pixmaps/amazonmp3.png ${D}/usr/share/pixmaps

        cd ${D}/usr/share/applications
        domenu amazonmp3.desktop

        dodir /usr/lib
        cd ${D}/usr/lib
        dosym libssl.so /usr/lib/libssl.so.6
        dosym libcrypto.so /usr/lib/libcrypto.so.6
        dosym libboost_date_time.so /usr/lib/libboost_date_time.so.3
        dosym libboost_signals.so /usr/lib/libboost_signals.so.3
        dosym libboost_iostreams.so /usr/lib/libboost_iostreams.so.3
        dosym libboost_thread-mt.so /usr/lib/libboost_thread-mt.so.3

}
deadfool
Growing Hen
 
Posts: 124
Joined: Thu Mar 27, 2008 3:56

Re: anyone using amazonmp3?

Postby rashan » Mon Jul 14, 2008 5:24

deadfool wrote:
Code: Select all
# Distributed under the terms of the GNU General Public License v2
# be kind, give credit:  initial, Paul Cifarelli <[email protected]>

inherit eutils rpm

MY_PN="amazonmp3"
DESCRIPTION="Amazon mp3 downloader"
HOMEPAGE="http://www.amazon.com/gp/dmusic/help/amd.html?ie=UTF8&forceos=LINUX&ASIN=&isTrack="
SRC_URI="amazonmp3-1.0.3-1.fedora8.i386.rpm"
LICENSE="EUBL"
SLOT="0"
KEYWORDS="-* amd64 x86"
IUSE="X"
RESTRICT="strip test fetch"
RDEPEND="dev-cpp/glibmm dev-cpp/cairomm dev-cpp/gtkmm >=dev-libs/boost-1.34"

pkg_nofetch() {
        einfo "Download the Amazon Downloader manually from Amazon's website at"
        einfo ${HOMEPAGE}
        einfo ""
        einfo "Click \"I agree to the terms of use\" &"
        einfo "Choose the Download now Fedora 8 button"
        einfo ""
        einfo "Then place the file ${SRC_URI}"
        einfo "into ${DISTDIR} and restart the emerge."
}

pkg_setup() {
        # This is a binary x86 package => ABI=x86
        has_multilib_profile && ABI="x86"
}

src_unpack() {
        rpm_src_unpack
}

src_install() {

        mkdir -p ${D}/usr/bin
        cp ${WORKDIR}/usr/bin/amazonmp3 ${D}/usr/bin
        chmod +x ${D}/usr/bin

        mkdir -p ${D}/usr/share/applications
        cp ${WORKDIR}/usr/share/applications/amazonmp3.desktop ${D}/usr/share/applications

        mkdir -p ${D}/usr/share/doc/amazonmp3
        cp ${WORKDIR}/usr/share/doc/amazonmp3/help.html ${D}/usr/share/doc/amazonmp3
        cp ${WORKDIR}/usr/share/doc/amazonmp3/license.html ${D}/usr/share/doc/amazonmp3
        cp ${WORKDIR}/usr/share/doc/amazonmp3/releasenotes ${D}/usr/share/doc/amazonmp3

         mkdir -p ${D}/usr/share/mime-info
        cp ${WORKDIR}/usr/share/mime-info/amazonmp3.keys ${D}/usr/share/mime-info
        cp ${WORKDIR}/usr/share/mime-info/amazonmp3.mime ${D}/usr/share/mime-info

        mkdir -p ${D}/usr/share/mime/packages
        cp ${WORKDIR}/usr/share/mime/packages/amazonmp3.xml     ${D}/usr/share/mime/packages

        mkdir -p ${D}/usr/share/mimelnk/audio
        cp ${WORKDIR}/usr/share/mimelnk/audio/x-amzxml.desktop ${D}/usr/share/mimelnk/audio

        mkdir -p ${D}/usr/share/pixmaps
        cp ${WORKDIR}/usr/share/pixmaps/amazonmp3.png ${D}/usr/share/pixmaps

        cd ${D}/usr/share/applications
        domenu amazonmp3.desktop

        dodir /usr/lib
        cd ${D}/usr/lib
        dosym libssl.so /usr/lib/libssl.so.6
        dosym libcrypto.so /usr/lib/libcrypto.so.6
        dosym libboost_date_time.so /usr/lib/libboost_date_time.so.3
        dosym libboost_signals.so /usr/lib/libboost_signals.so.3
        dosym libboost_iostreams.so /usr/lib/libboost_iostreams.so.3
        dosym libboost_thread-mt.so /usr/lib/libboost_thread-mt.so.3

}


Thanks very much. I gave it a quick shot tonight and think I did something wrong. I'll give it another shot tomorrow after I've had some sleep. Did I mention I'm new to this ebuild thing? ;)

For the record, I followed the directions here to setup a local portage overlay. Unfortunately, the example in the wiki downloads and existing ebuild from the bugzilla, so it's not exactly the same situtation I've got going on, and I think that's where I start to go wrong... ;) I created a file (amazonmp3-1.ebuild) in my /usr/local/portage/net-misc/amazonmp3/ directory, and pasted the ebuild from this thread into the empty file. Then, I emerged amazonmp3.
which returns:
Code: Select all
localhost rashan # emerge amazonmp3
Calculating dependencies \!!! Manifest file not found: '/usr/local/portage/net-misc/amazonmp3/Manifest'
... done!

!!! All ebuilds that could satisfy "net-misc/amazonmp3" have been masked.
!!! One of the following masked packages is required to complete your request:
- net-misc/amazonmp3-1 (masked by: corruption)

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.


which probably isnt' quite right... anyways,I'll dig into it more tomorrow and see what I can learn. I appreciate the help,
rashan
Baby Hen
 
Posts: 18
Joined: Tue May 08, 2007 16:29

Re: anyone using amazonmp3?

Postby deadfool » Mon Jul 14, 2008 6:24

did you do ebuild ebuildname digest? if not it wont work
deadfool
Growing Hen
 
Posts: 124
Joined: Thu Mar 27, 2008 3:56

Re: anyone using amazonmp3?

Postby Thev00d00 » Mon Jul 14, 2008 13:39

Added this to x86-64 version to Zenana, feel free to install it from there.

The ebuild needs a bit tinckering to get it to work, you need to change the name of the SRC_URI to SRC_URI="amazonmp3.rpm" (as thats what you get from the amazon downlad site)

EDIT: Getting errors about gtkmm :? Ill see if I can get it sorted
Code: Select all
[email protected] ~ $ amazonmp3
amazonmp3: error while loading shared libraries: libgtkmm-2.4.so.1: cannot open shared object file: No such file or directory


EDIT2: Well libgtkmm-2.4.so.1 is there :?:

EDIT3: Well symlinking gives errors about wrong elf type (ie 64bit not 32)

EDIT4: There are no emul-linux (32bit libaries for x86-64) see http://bugs.gentoo.org/show_bug.cgi?id=224747

Sorry, looks like a no go imo
Last edited by Thev00d00 on Mon Jul 14, 2008 14:38, edited 1 time in total.
Image
Please report Bugs on the Bugzilla, not forum
Please Adopt an Unanswered thread
Website / Blog : v00d00.net
twitter: Follow Me
G+: Circle Me
Thev00d00
Generally Awesome (tm)
 
Posts: 1472
Joined: Wed Feb 21, 2007 15:52
Location: United Kingdom

Re: anyone using amazonmp3?

Postby deadfool » Mon Jul 14, 2008 13:51

strange that worked for me of course it was a couple of months ago
deadfool
Growing Hen
 
Posts: 124
Joined: Thu Mar 27, 2008 3:56

Re: anyone using amazonmp3?

Postby rashan » Tue Jul 15, 2008 0:35

v00d00 wrote:Added this to x86-64 version to Zenana, feel free to install it from there.

Sorry, looks like a no go imo



Well, crap. That's too bad.

I suppose that for now, I'll try to get it working on my old x86 Lappy just to play around with...

Thanks to you both for the help. It's not a total loss, I suppose.. I now know more about ebuilds than I ever thought to. ;)

Cheers!
rashan
Baby Hen
 
Posts: 18
Joined: Tue May 08, 2007 16:29

Re: anyone using amazonmp3?

Postby christo4 » Sat Mar 07, 2009 21:01

Is it still possible to get this for x86 32-bit? I'm new to Sabayon, and can only find the Naendo community repository. Are there others?
christo4
Baby Hen
 
Posts: 12
Joined: Sat Mar 07, 2009 20:52

Next

Return to Software in General

Who is online

Users browsing this forum: No registered users and 1 guest