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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Jan 11 19:21:12 2013 UTC (3 years, 8 months ago) by zerochaos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +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-r3.ebuild,v 1.1 2012/03/04 04:12:36 dolsen 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.* *-jython 2.7-pypy-*"
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
32 src_prepare() {
33 epatch "${FILESDIR}/${P}-masking_status.patch" # bug 307037
34 epatch "${FILESDIR}/${P}-missing_import.patch" # bug 323179
35 epatch "${FILESDIR}/${P}-missing-attribute.patch" #bug 323179
36 }
37
38 src_compile(){
39 # Compile localizations if necessary
40 if use nls ; then
41 cd scripts
42 ./pocompile.sh -emerge ${LINGUAS} || die "pocompile failed"
43 fi
44 }
45
46 src_install() {
47 distutils_src_install
48
49 dodoc TODO README NEWS AUTHORS
50
51 keepdir /var/log/porthole
52 fperms g+w /var/log/porthole
53 keepdir /var/db/porthole
54 fperms g+w /var/db/porthole
55
56 # nls
57 if use nls; then
58 # mo directory doesn't exists with nls enabled and unsupported LINGUAS
59 [[ -d porthole/i18n/mo ]] && domo porthole/i18n/mo/*
60 fi
61 }
62
63 pkg_preinst() {
64 chgrp portage "${D}"/var/log/porthole
65 chgrp portage "${D}"/var/db/porthole
66 }
67
68 pkg_postinst() {
69 einfo
70 einfo "Porthole has updated the way that the upgrades are sent to emerge."
71 einfo "In this new way the user needs to set any 'Settings' menu emerge options"
72 einfo "Porthole automatically adds '--oneshot' for all upgrades selections"
73 einfo "Other options recommended are '--noreplace' along with '--update'"
74 einfo "They allow for portage to skip any packages that might have already"
75 einfo "been upgraded as a dependency of another previously upgraded package"
76 einfo
77 }

  ViewVC Help
Powered by ViewVC 1.1.20