/[gentoo-x86]/net-misc/pymazon/pymazon-0.9-r1.ebuild
Gentoo

Contents of /net-misc/pymazon/pymazon-0.9-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Feb 11 18:47:18 2011 UTC (8 years, 9 months ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
Stable on amd64 wrt bug #354005

(Portage version: 2.1.9.39/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/pymazon/pymazon-0.9-r1.ebuild,v 1.3 2011/02/09 09:02:42 phajdan.jr Exp $
4
5 EAPI=3
6 PYTHON_DEPEND="2"
7 inherit eutils distutils fdo-mime
8
9 MY_P="Pymazon-${PV}"
10 DESCRIPTION="Downloader for the Amazon.com MP3 music store"
11 HOMEPAGE="http://code.google.com/p/pymazon/"
12 SRC_URI="http://pymazon.googlecode.com/files/${MY_P}.tar.gz"
13
14 LICENSE="GPL-3"
15 SLOT="0"
16 KEYWORDS="amd64 x86"
17 IUSE="+gtk +qt4"
18
19 DEPEND="gtk? ( dev-python/pygtk )
20 qt4? ( dev-python/PyQt4 )"
21 RDEPEND="${DEPEND}
22 dev-python/pycrypto"
23 S="${WORKDIR}/${MY_P}"
24
25 pkg_setup() {
26 python_set_active_version 2
27 python_pkg_setup
28 }
29
30 src_install() {
31 distutils_src_install
32
33 insinto /usr/share/pixmaps
34 newins pymazon/resource/icons/download.png pymazon.png
35
36 if ! use gtk && ! use qt4; then
37 EXTRA_FIELDS="\nTerminal=true\nNoDisplay=true"
38 DEFAULTARGS=" -c"
39 fi
40 make_desktop_entry "pymazon${DEFAULTARGS}" "Pymazon MP3 Downloader" \
41 pymazon "Network;FileTransfer" \
42 "MimeType=audio/x-amzxml;${EXTRA_FIELDS}"
43
44 insinto /usr/share/mime/packages
45 doins "${FILESDIR}/amz.xml"
46 }
47
48 pkg_postinst() {
49 distutils_pkg_postinst
50 fdo-mime_desktop_database_update
51 fdo-mime_mime_database_update
52 einfo "To link pymazon with your amazon.com account, visit:"
53 einfo " http://www.amazon.com/gp/dmusic/after_download_manager_install.html"
54 }
55
56 pkg_postrm() {
57 distutils_pkg_postrm
58 fdo-mime_desktop_database_update
59 fdo-mime_mime_database_update
60 }

  ViewVC Help
Powered by ViewVC 1.1.20