Gentoo Archives: gentoo-commits

From: "Sebastian Pipping (sping)" <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/smolt: smolt-1.4.2.ebuild ChangeLog
Date: Wed, 17 Feb 2010 00:53:09
Message-Id: E1NhYA4-0002gf-1B@stork.gentoo.org
1 sping 10/02/17 00:53:04
2
3 Modified: ChangeLog
4 Added: smolt-1.4.2.ebuild
5 Log:
6 app-admin/smolt: Trivial-bump to 1.4.2
7 (Portage version: 2.2_rc61/cvs/Linux i686)
8
9 Revision Changes Path
10 1.5 app-admin/smolt/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/smolt/ChangeLog?rev=1.5&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/smolt/ChangeLog?rev=1.5&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/smolt/ChangeLog?r1=1.4&r2=1.5
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-admin/smolt/ChangeLog,v
19 retrieving revision 1.4
20 retrieving revision 1.5
21 diff -u -r1.4 -r1.5
22 --- ChangeLog 2 Oct 2009 20:09:32 -0000 1.4
23 +++ ChangeLog 17 Feb 2010 00:53:03 -0000 1.5
24 @@ -1,6 +1,11 @@
25 # ChangeLog for app-admin/smolt
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-admin/smolt/ChangeLog,v 1.4 2009/10/02 20:09:32 sping Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/app-admin/smolt/ChangeLog,v 1.5 2010/02/17 00:53:03 sping Exp $
30 +
31 +*smolt-1.4.2 (17 Feb 2010)
32 +
33 + 17 Feb 2010; Sebastian Pipping <sping@g.o> +smolt-1.4.2.ebuild:
34 + Trivial-bump to 1.4.2
35
36 *smolt-1.4 (02 Oct 2009)
37
38
39
40
41 1.1 app-admin/smolt/smolt-1.4.2.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/smolt/smolt-1.4.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/smolt/smolt-1.4.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: smolt-1.4.2.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-admin/smolt/smolt-1.4.2.ebuild,v 1.1 2010/02/17 00:53:03 sping Exp $
51
52 EAPI="2"
53
54 inherit python eutils
55
56 DESCRIPTION="The Fedora hardware profiler"
57 HOMEPAGE="https://fedorahosted.org/smolt/"
58 SRC_URI="https://fedorahosted.org/releases/s/m/${PN}/${P}.tar.gz"
59
60 LICENSE="|| ( GPL-2 GPL-3 )"
61 SLOT="0"
62 KEYWORDS="~amd64 ~x86"
63 IUSE="qt4"
64
65 DEPEND="virtual/python
66 sys-devel/gettext"
67
68 RDEPEND="${DEPEND}
69 sys-apps/hal
70 >=dev-python/rhpl-0.213
71 >=dev-python/urlgrabber-3.0.0
72 >=dev-python/simplejson-1.7.1
73 dev-python/dbus-python
74 qt4? ( dev-python/PyQt4 )"
75
76 S="${S}/client"
77
78 src_prepare() {
79 epatch "${FILESDIR}"/${PN}-1.4-upstream-{fix-gzip-calls,docdir}.patch
80 }
81
82 src_install() {
83 emake install DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" \
84 || die "Install failed"
85
86 if ! use qt4; then
87 rm "${D}"/usr/bin/smoltGui \
88 "${D}"/usr/share/smolt/client/{gui,smoltGui}.py \
89 "${D}"/usr/share/applications/smolt.desktop \
90 "${D}"/usr/share/man/man1/smoltGui.1.* \
91 || die "rm failed"
92 rmdir "${D}"/usr/share/applications || die "rmdir failed"
93 fi
94
95 bzip2 -9 "${D}"/usr/share/doc/${PF}/PrivacyPolicy || die "bzip2 failed"
96 dodoc ../README ../TODO || die "dodoc failed"
97
98 newinitd "${FILESDIR}"/${PN}-init.d ${PN} || die "newinitd failed"
99 }
100
101 pkg_postinst() {
102 python_mod_optimize "${ROOT}"/usr/share/${PN}
103
104 if ! [ -f "${ROOT}"/etc/smolt/hw-uuid ]; then
105 elog "Creating this machines UUID in ${ROOT}/etc/smolt/hw-uuid"
106 cat /proc/sys/kernel/random/uuid > "${ROOT}"/etc/smolt/hw-uuid
107 UUID=$(cat "${ROOT}"/etc/smolt/hw-uuid)
108 elog "Your UUID is: ${UUID}"
109 fi
110 echo
111 elog "Call smoltSendProfile as root in order to initialize your profile."
112 echo
113 elog "You can withdraw it from the server if you wish to with"
114 elog " smoltDeleteProfile any time later on."
115 echo
116
117 if use qt4 && has_version "<virtual/python-2.5"; then
118 elog "If you want to view your profile on the web from within smoltGui,"
119 elog "you should have a link mozilla-firefox -> firefox in your path."
120 echo
121 fi
122 }
123
124 pkg_postrm() {
125 python_mod_cleanup /usr/share/${PN}
126 }