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

(-)a/system-config-printer-gnome-1.4.3-r1.ebuild (-30 / +39 lines)
Lines 1-78 Link Here
1
# Copyright 1999-2014 Gentoo Foundation
1
# Copyright 1999-2015 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 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)"
14
15
DESCRIPTION="GNOME frontend for a Red Hat's printer administration tool"
16
HOMEPAGE="http://cyberelk.net/tim/software/system-config-printer/"
13
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"
14
SRC_URI="http://cyberelk.net/tim/data/${PN}/${PV%.*}/${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 ~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 )
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
53
he hi hr hu hy id is it ja ka kn ko lo lv mai mk ml mr ms nb nl nn or pa pl
64
he hi hr hu id is it ja kn ko lv mai mk ml mr ms nb nds nl nn or pa pl pt_BR
54
pt_BR pt ro ru si sk sl sr@latin sr sv ta te th tr uk vi zh_CN zh_TW"
65
pt ro ru si sk sl sr@latin sr sv ta te th tr uk vi zh_CN zh_TW"
55
for X in ${APP_LINGUAS}; do
66
for X in ${APP_LINGUAS}; do
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
}
67
68
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
75
	gnome2_src_prepare
76
}
75
}
77
76
78
src_configure() {
77
src_configure() {
Lines 87-97 Link Here
87
86
88
	gnome2_src_configure \
87
	gnome2_src_configure \
89
		--with-desktop-vendor=Gentoo \
88
		--with-desktop-vendor=Gentoo \
90
		--without-udev-rules \
89
		--with-udev-rules \
90
		$(systemd_with_unitdir) \
91
		${myconf}
91
		${myconf}
92
}
92
}
93
93
94
src_compile() {
95
	emake
96
	use doc && emake html
97
}
98
94
src_install() {
99
src_install() {
100
	default
101
102
	use doc && dohtml -r html/
103
95
	gnome2_src_install
104
	gnome2_src_install
96
	python_fix_shebang "${ED}"
105
	python_fix_shebang "${ED}"
97
}
106
}

Return to bug 508344