Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 508344 | Differences between
and this patch

Collapse All | Expand All

(-)system-config-printer-gnome/system-config-printer-gnome-1.4.3-r1.ebuild (-24 / +38 lines)
Lines 1-52 Link Here
1
# Copyright 1999-2014 Gentoo Foundation
1
# Copyright 1999-2014 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/app-admin/system-config-printer-gnome/system-config-printer-gnome-1.4.3-r1.ebuild,v 1.9 2014/08/21 10:38:19 ago Exp $
3
# $Header: $
4
4
5
EAPI="5"
5
EAPI="5"
6
GCONF_DEBUG="no"
6
GCONF_DEBUG="no"
7
PYTHON_COMPAT=( python2_7 )
7
PYTHON_COMPAT=( python{3_2,3_3,3_4} )
8
PYTHON_REQ_USE="xml"
8
PYTHON_REQ_USE="xml"
9
9
10
inherit autotools gnome2 eutils python-single-r1 versionator
10
inherit autotools eutils python-r1 gnome2 systemd
11
11
12
MY_P="${PN%-gnome}-${PV}"
12
DESCRIPTION="Red Hat's printer administration tool"
13
MY_V="$(get_version_component_range 1-2)"
13
HOMEPAGE="http://cyberelk.net/tim/software/${PN}/"
14
14
SRC_URI="http://cyberelk.net/tim/data/${PN}/${PV%.*}/${P}.tar.xz"
15
DESCRIPTION="GNOME frontend for a Red Hat's printer administration tool"
16
HOMEPAGE="http://cyberelk.net/tim/software/system-config-printer/"
17
SRC_URI="http://cyberelk.net/tim/data/system-config-printer/${MY_V}/${MY_P}.tar.xz"
18
15
19
LICENSE="GPL-2"
16
LICENSE="GPL-2"
20
KEYWORDS="~alpha amd64 arm ~ia64 ppc ppc64 ~sh ~sparc x86"
17
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86"
21
SLOT="0"
18
SLOT="0"
22
IUSE="gnome-keyring"
19
IUSE="doc gnome-keyring policykit"
23
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
20
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
24
21
25
# Needs cups running, bug 284005
22
# Needs cups running, bug 284005
26
RESTRICT="test"
23
RESTRICT="test"
27
24
28
# Additional unhandled dependencies
25
# Additional unhandled dependencies:
26
# net-firewall/firewalld[${PYTHON_USEDEP}]
29
# gnome-extra/gnome-packagekit[${PYTHON_USEDEP}] with pygobject:2 ?
27
# gnome-extra/gnome-packagekit[${PYTHON_USEDEP}] with pygobject:2 ?
30
# python samba client: smbc
28
# python samba client: smbc
31
# selinux: needed for troubleshooting
29
# selinux: needed for troubleshooting
32
RDEPEND="
30
COMMON_DEPEND="
33
	${PYTHON_DEPS}
31
	${PYTHON_DEPS}
34
	~app-admin/system-config-printer-common-${PV}
32
	>=dev-libs/glib-2
33
	dev-libs/libxml2[python,${PYTHON_USEDEP}]
34
	dev-python/dbus-python[${PYTHON_USEDEP}]
35
	dev-python/pycairo[${PYTHON_USEDEP}]
35
	dev-python/pycairo[${PYTHON_USEDEP}]
36
	>=dev-python/pycups-1.9.60[${PYTHON_USEDEP}]
36
	>=dev-python/pycups-1.9.60[${PYTHON_USEDEP}]
37
	dev-python/pycurl[${PYTHON_USEDEP}]
37
	dev-python/pygobject:3[${PYTHON_USEDEP}]
38
	dev-python/pygobject:3[${PYTHON_USEDEP}]
39
	net-print/cups[dbus]
38
	x11-libs/gtk+:3[introspection]
40
	x11-libs/gtk+:3[introspection]
39
	x11-libs/libnotify[introspection]
41
	x11-libs/libnotify[introspection]
40
	x11-libs/pango[introspection]
42
	x11-libs/pango[introspection]
43
	virtual/libusb:1
44
	>=virtual/udev-172
41
	gnome-keyring? ( gnome-base/libgnome-keyring[introspection] )
45
	gnome-keyring? ( gnome-base/libgnome-keyring[introspection] )
42
"
46
"
43
DEPEND="${RDEPEND}
47
DEPEND="${COMMON_DEPEND}
48
	!<app-admin/system-config-printer-common-${PV}
49
	!<app-admin/system-config-printer-gnome-${PV}
50
	app-arch/xz-utils
44
	app-text/docbook-xml-dtd:4.1.2
51
	app-text/docbook-xml-dtd:4.1.2
45
	>=app-text/xmlto-0.0.22
52
	>=app-text/xmlto-0.0.22
46
	dev-util/desktop-file-utils
53
	dev-util/desktop-file-utils
47
	dev-util/intltool
54
	dev-util/intltool
48
	sys-devel/gettext
55
	sys-devel/gettext
49
	virtual/pkgconfig
56
	virtual/pkgconfig
57
	doc? ( dev-python/epydoc[${PYTHON_USEDEP}] )
58
"
59
RDEPEND="${COMMON_DEPEND}
60
	policykit? ( >=sys-auth/polkit-0.104-r1 )
50
"
61
"
51
62
52
APP_LINGUAS="ar as bg bn_IN bn br bs ca cs cy da de el en_GB es et fa fi fr gu
63
APP_LINGUAS="ar as bg bn_IN bn br bs ca cs cy da de el en_GB es et fa fi fr gu
Lines 56-76 Link Here
56
	IUSE="${IUSE} linguas_${X}"
67
	IUSE="${IUSE} linguas_${X}"
57
done
68
done
58
69
59
S="${WORKDIR}/${MY_P}"
60
61
# Bug 471472
70
# Bug 471472
62
MAKEOPTS+=" -j1"
71
MAKEOPTS+=" -j1"
63
72
64
pkg_setup() {
73
pkg_setup() {
65
	python-single-r1_pkg_setup
74
	python_setup
66
}
75
}
67
76
68
src_prepare() {
77
src_prepare() {
69
	epatch "${FILESDIR}"/${PN}-1.4.1-split.patch
70
71
	# Fixed typo in D-Bus signature decorator, bug #496792
72
	epatch "${FILESDIR}/${P}-typo-dbus.patch"
73
74
	eautoreconf
78
	eautoreconf
75
	gnome2_src_prepare
79
	gnome2_src_prepare
76
}
80
}
Lines 87-97 Link Here
87
91
88
	gnome2_src_configure \
92
	gnome2_src_configure \
89
		--with-desktop-vendor=Gentoo \
93
		--with-desktop-vendor=Gentoo \
90
		--without-udev-rules \
94
		--with-udev-rules \
95
		$(systemd_with_unitdir) \
91
		${myconf}
96
		${myconf}
92
}
97
}
93
98
99
src_compile() {
100
	emake
101
	use doc && emake html
102
}
103
94
src_install() {
104
src_install() {
105
	default
106
107
	use doc && dohtml -r html/
108
95
	gnome2_src_install
109
	gnome2_src_install
96
	python_fix_shebang "${ED}"
110
	python_fix_shebang "${ED}"
97
}
111
}

Return to bug 508344