blob: edba8ae2dc76abf47c36f317f1d1c74d50561f7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-print/gnome-cups-manager/gnome-cups-manager-0.31-r2.ebuild,v 1.13 2007/02/14 10:54:50 uberlord Exp $
inherit eutils gnome2 flag-o-matic
DESCRIPTION="GNOME CUPS Printer Management Interface"
HOMEPAGE="http://www.gnome.org/"
#
# Please ensure that gcc-3.4 is stable on the arch before moving this to stable.
#
SRC_URI="${SRC_URI}
http://archive.ubuntu.com/ubuntu/pool/main/g/gnome-cups-manager/gnome-cups-manager_0.31-1.1ubuntu14.diff.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
IUSE=""
# See ChangeLog regarding libgnomeui
RDEPEND=">=x11-libs/gtk+-2.3.1
>=dev-libs/glib-2.3.1
>=gnome-base/libgnome-2
>=gnome-base/libgnomeui-2.2
>=gnome-base/libglade-2
>=gnome-base/libbonobo-2
>=net-print/libgnomecups-0.2.0
gnome-base/gnome-keyring
x11-libs/gksu"
DEPEND=">=x11-libs/gtk+-2.3.1
>=dev-libs/glib-2.3.1
>=gnome-base/libgnome-2
>=gnome-base/libgnomeui-2.2
>=gnome-base/libglade-2
>=gnome-base/libbonobo-2
>=net-print/libgnomecups-0.2.0
gnome-base/gnome-keyring
>=dev-util/pkgconfig-0.9
>=dev-util/intltool-0.28"
DOCS="ChangeLog NEWS README"
src_unpack() {
gnome2_src_unpack
# exclude ubuntu branding
mkdir ${WORKDIR}/ubuntu
cd ${WORKDIR}/ubuntu
cp -r ${S}/{po,ChangeLog,gnome-cups-manager} .
# Remove the ubuntu functions that require external
# scripts fixing bug 147972 (removes LAN browsing detection)
sed -i \
-e '/^---.*ui_browse_share_ctl.patch/,/^---/{/^---.*ui_browse_share_ctl.patch/!d;}' \
${WORKDIR}/gnome-cups-manager_0.31-1.1ubuntu14.diff
epatch ${WORKDIR}/gnome-cups-manager_0.31-1.1ubuntu14.diff
# gksudo does not always work
sed -i "s:gksudo:gksu:" debian/patches/change-su-command.patch
cd ${S}
epatch ${WORKDIR}/ubuntu/debian/patches/*
# bug 141929
use amd64 && replace-flags -O* -O0
}
src_install() {
gnome2_src_install
cd ${WORKDIR}/ubuntu/debian
doman gnome-cups-icon.1 gnome-cups-manager.1 gnome-cups-add.8
domenu gnome-cups-icon.desktop gnome-cups-manager.desktop
}
|