Gentoo Archives: gentoo-commits

From: "Jim Ramsay (lack)" <lack@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/pymazon: metadata.xml ChangeLog pymazon-0.9.ebuild
Date: Mon, 28 Jun 2010 16:03:19
Message-Id: 20100628160316.598462C621@corvid.gentoo.org
1 lack 10/06/28 16:03:16
2
3 Added: metadata.xml ChangeLog pymazon-0.9.ebuild
4 Log:
5 Introducing Pymazon-0.9, a graphical open-source replacement for the Amazon.com media downloader (Bug #321599)
6 (Portage version: 2.1.8.3/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 net-misc/pymazon/metadata.xml
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/pymazon/metadata.xml?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/pymazon/metadata.xml?rev=1.1&content-type=text/plain
13
14 Index: metadata.xml
15 ===================================================================
16 <?xml version="1.0" encoding="UTF-8"?>
17 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
18 <pkgmetadata>
19 <herd>desktop-misc</herd>
20 <maintainer>
21 <email>lack@g.o</email>
22 <name>Jim Ramsay</name>
23 </maintainer>
24 </pkgmetadata>
25
26
27
28
29 1.1 net-misc/pymazon/ChangeLog
30
31 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/pymazon/ChangeLog?rev=1.1&view=markup
32 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/pymazon/ChangeLog?rev=1.1&content-type=text/plain
33
34 Index: ChangeLog
35 ===================================================================
36 # ChangeLog for net-misc/pymazon
37 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
38 # $Header: /var/cvsroot/gentoo-x86/net-misc/pymazon/ChangeLog,v 1.1 2010/06/28 16:03:16 lack Exp $
39
40 *pymazon-0.9 (28 Jun 2010)
41
42 28 Jun 2010; Jim Ramsay <lack@g.o> +pymazon-0.9.ebuild,
43 +files/amz.xml, +metadata.xml:
44 Introducing Pymazon-0.9, a graphical open-source replacement for the
45 Amazon.com media downloader (Bug #321599)
46
47
48
49
50 1.1 net-misc/pymazon/pymazon-0.9.ebuild
51
52 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/pymazon/pymazon-0.9.ebuild?rev=1.1&view=markup
53 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/pymazon/pymazon-0.9.ebuild?rev=1.1&content-type=text/plain
54
55 Index: pymazon-0.9.ebuild
56 ===================================================================
57 # Copyright 1999-2010 Gentoo Foundation
58 # Distributed under the terms of the GNU General Public License v2
59 # $Header: /var/cvsroot/gentoo-x86/net-misc/pymazon/pymazon-0.9.ebuild,v 1.1 2010/06/28 16:03:16 lack Exp $
60
61 EAPI=3
62 PYTHON_DEPEND="2"
63 inherit eutils distutils fdo-mime
64
65 MY_P="Pymazon-${PV}"
66 DESCRIPTION="Downloader for the Amazon.com MP3 music store"
67 HOMEPAGE="http://code.google.com/p/pymazon/"
68 SRC_URI="http://pymazon.googlecode.com/files/${MY_P}.tar.gz"
69
70 LICENSE="GPL-3"
71 SLOT="0"
72 KEYWORDS="~x86 ~amd64"
73 IUSE="+gtk +qt4"
74
75 DEPEND=""
76 DEPEND="gtk? ( dev-python/pygtk )
77 qt4? ( dev-python/PyQt4 )"
78 REPEND="${DEPEND}"
79 S="${WORKDIR}/${MY_P}"
80
81 src_install() {
82 distutils_src_install
83
84 insinto /usr/share/pixmaps
85 newins pymazon/resource/icons/download.png pymazon.png
86
87 if ! use gtk && ! use qt4; then
88 EXTRA_FIELDS="\nTerminal=true\nNoDisplay=true"
89 DEFAULTARGS=" -c"
90 fi
91 make_desktop_entry "pymazon${DEFAULTARGS}" "Pymazon MP3 Downloader" \
92 pymazon "Network;FileTransfer" \
93 "MimeType=audio/x-amzxml;${EXTRA_FIELDS}"
94
95 insinto /usr/share/mime/packages
96 doins "${FILESDIR}/amz.xml"
97 }
98
99 pkg_postinst() {
100 distutils_pkg_postinst
101 fdo-mime_desktop_database_update
102 fdo-mime_mime_database_update
103 einfo "To link pymazon with your amazon.com account, visit:"
104 einfo " http://www.amazon.com/gp/dmusic/after_download_manager_install.html"
105 }
106
107 pkg_postrm() {
108 distutils_pkg_postrm
109 fdo-mime_desktop_database_update
110 fdo-mime_mime_database_update
111 }