/[gentoo-x86]/app-portage/porthole/porthole-0.6.1-r1.ebuild
Gentoo

Contents of /app-portage/porthole/porthole-0.6.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Fri Jan 11 19:21:12 2013 UTC (21 months, 1 week ago) by zerochaos
Branch: MAIN
Changes since 1.9: +3 -3 lines
adding ~arm keyword

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key DD11F94A)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-portage/porthole/porthole-0.6.1-r1.ebuild,v 1.9 2012/02/26 09:07:53 patrick Exp $
4
5 EAPI="2"
6 PYTHON_DEPEND="2"
7 SUPPORT_PYTHON_ABIS="1"
8 PYTHON_USE_WITH="xml threads"
9 RESTRICT_PYTHON_ABIS="3.* 2.7-pypy-* *-jython"
10
11 inherit distutils eutils
12
13 DESCRIPTION="A GTK+-based frontend to Portage"
14 HOMEPAGE="http://porthole.sourceforge.net"
15 SRC_URI="mirror://sourceforge/porthole/${P}.tar.bz2"
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="amd64 ~arm ppc ~sparc x86 ~x86-fbsd"
20 IUSE="nls"
21 LANGS="de pl ru vi it fr tr"
22 for X in $LANGS; do IUSE="${IUSE} linguas_${X}"; done
23
24 RDEPEND=">=sys-apps/portage-2.1
25 dev-python/pygtk:2
26 gnome-base/libglade:2.0
27 dev-python/pygtksourceview:2
28 nls? ( virtual/libintl )"
29 DEPEND="${RDEPEND}
30 nls? ( >=sys-devel/gettext-0.14 )"
31 RESTRICT_PYTHON_ABIS="3.*"
32
33 src_prepare() {
34 epatch "${FILESDIR}/${P}-masking_status.patch" # bug 307037
35 }
36
37 src_compile(){
38 # Compile localizations if necessary
39 if use nls ; then
40 cd scripts
41 ./pocompile.sh -emerge ${LINGUAS} || die "pocompile failed"
42 fi
43 }
44
45 src_install() {
46 distutils_src_install
47
48 dodoc TODO README NEWS AUTHORS
49
50 keepdir /var/log/porthole
51 fperms g+w /var/log/porthole
52 keepdir /var/db/porthole
53 fperms g+w /var/db/porthole
54
55 # nls
56 if use nls; then
57 # mo directory doesn't exists with nls enabled and unsupported LINGUAS
58 [[ -d porthole/i18n/mo ]] && domo porthole/i18n/mo/*
59 fi
60 }
61
62 pkg_preinst() {
63 chgrp portage "${D}"/var/log/porthole
64 chgrp portage "${D}"/var/db/porthole
65 }
66
67 pkg_postinst() {
68 einfo
69 einfo "Porthole has updated the way that the upgrades are sent to emerge."
70 einfo "In this new way the user needs to set any 'Settings' menu emerge options"
71 einfo "Porthole automatically adds '--oneshot' for all upgrades selections"
72 einfo "Other options recommended are '--noreplace' along with '--update'"
73 einfo "They allow for portage to skip any packages that might have already"
74 einfo "been upgraded as a dependency of another previously upgraded package"
75 einfo
76 }

  ViewVC Help
Powered by ViewVC 1.1.20