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

Collapse All | Expand All

(-)file_not_specified_in_diff (-12 / +24 lines)
Line  Link Here
0
-- x11-wm/openbox/openbox-3.5.2.ebuild
0
++ x11-wm/openbox/openbox-3.5.2-r1.ebuild
Lines 3-9 Link Here
3
# $Header: /var/cvsroot/gentoo-x86/x11-wm/openbox/openbox-3.5.2.ebuild,v 1.1 2013/08/14 18:05:31 hwoarang Exp $
3
# $Header: /var/cvsroot/gentoo-x86/x11-wm/openbox/openbox-3.5.2.ebuild,v 1.1 2013/08/14 18:05:31 hwoarang Exp $
4
4
5
EAPI="5"
5
EAPI="5"
6
inherit multilib autotools python eutils
6
7
PYTHON_COMPAT=( python2_6 python2_7 )
8
inherit multilib autotools python-r1 eutils
7
9
8
DESCRIPTION="A standards compliant, fast, light-weight, extensible window manager"
10
DESCRIPTION="A standards compliant, fast, light-weight, extensible window manager"
9
HOMEPAGE="http://openbox.org/"
11
HOMEPAGE="http://openbox.org/"
Lines 13-31 Link Here
13
LICENSE="GPL-2"
15
LICENSE="GPL-2"
14
SLOT="3"
16
SLOT="3"
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~arm-linux ~x86-linux"
17
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~arm-linux ~x86-linux"
16
IUSE="branding debug imlib nls python session startup-notification static-libs"
18
IUSE="branding debug imlib nls session startup-notification static-libs svg xdg"
19
REQUIRED_USE="xdg? ( ${PYTHON_REQUIRED_USE} )"
17
20
18
RDEPEND="dev-libs/glib:2
21
RDEPEND="dev-libs/glib:2
19
	>=dev-libs/libxml2-2.0
22
	>=dev-libs/libxml2-2.0
20
	python? ( dev-python/pyxdg )
21
	>=media-libs/fontconfig-2
23
	>=media-libs/fontconfig-2
22
	x11-libs/libXft
24
	x11-libs/libXft
25
	x11-libs/libXinerama
23
	x11-libs/libXrandr
26
	x11-libs/libXrandr
24
	x11-libs/libXt
27
	x11-libs/libXt
25
	>=x11-libs/pango-1.8[X]
28
	>=x11-libs/pango-1.8[X]
26
	imlib? ( media-libs/imlib2 )
29
	imlib? ( media-libs/imlib2 )
27
	startup-notification? ( >=x11-libs/startup-notification-0.8 )
30
	startup-notification? ( >=x11-libs/startup-notification-0.8 )
28
	x11-libs/libXinerama"
31
	svg? ( gnome-base/librsvg:2 )
32
	xdg? (
33
		${PYTHON_DEPS}
34
		dev-python/pyxdg[${PYTHON_USEDEP}]
35
	)
36
	"
29
DEPEND="${RDEPEND}
37
DEPEND="${RDEPEND}
30
	sys-devel/gettext
38
	sys-devel/gettext
31
	virtual/pkgconfig
39
	virtual/pkgconfig
Lines 34-40 Link Here
34
	x11-proto/xineramaproto"
42
	x11-proto/xineramaproto"
35
43
36
src_prepare() {
44
src_prepare() {
37
	use python && python_convert_shebangs -r 2 .
45
	use xdg && python_export_best
38
	epatch "${FILESDIR}"/${P}-gnome-session.patch
46
	epatch "${FILESDIR}"/${P}-gnome-session.patch
39
	sed -i \
47
	sed -i \
40
		-e "s:-O0 -ggdb ::" \
48
		-e "s:-O0 -ggdb ::" \
Lines 47-59 Link Here
47
src_configure() {
55
src_configure() {
48
	econf \
56
	econf \
49
		--docdir="${EPREFIX}/usr/share/doc/${PF}" \
57
		--docdir="${EPREFIX}/usr/share/doc/${PF}" \
50
		--disable-silent-rules \
51
		$(use_enable debug) \
58
		$(use_enable debug) \
59
		$(use_enable static-libs static) \
60
		$(use_enable nls) \
52
		$(use_enable imlib imlib2) \
61
		$(use_enable imlib imlib2) \
53
		$(use_enable nls) \
62
		$(use_enable svg librsvg) \
54
		$(use_enable startup-notification) \
63
		$(use_enable startup-notification) \
55
		$(use_enable session session-management) \
64
		$(use_enable session session-management) \
56
		$(use_enable static-libs static) \
57
		--with-x
65
		--with-x
58
}
66
}
59
67
Lines 67-76 Link Here
67
		doins -r "${WORKDIR}"/Surreal_Gentoo
75
		doins -r "${WORKDIR}"/Surreal_Gentoo
68
		# make it the default theme
76
		# make it the default theme
69
		sed -i \
77
		sed -i \
70
			"/<theme>/{n; s@<name>.*</name>@<name>Surreal_Gentoo</name>@}" \
78
			-e "/<theme>/{n; s@<name>.*</name>@<name>Surreal_Gentoo</name>@}" \
71
			"${D}"/etc/xdg/openbox/rc.xml \
79
			"${D}"/etc/xdg/openbox/rc.xml \
72
			|| die "failed to set Surreal Gentoo as the default theme"
80
			|| die "failed to set Surreal Gentoo as the default theme"
73
	fi
81
	fi
74
	! use static-libs && rm "${ED}"/usr/$(get_libdir)/lib{obt,obrender}.la
82
	use static-libs || prune_libtool_files --all
75
	! use python && rm "${ED}"/usr/libexec/openbox-xdg-autostart
83
	if use xdg ; then
84
		python_replicate_script "${ED}"/usr/libexec/openbox-xdg-autostart
85
	else
86
		rm "${ED}"/usr/libexec/openbox-xdg-autostart || die
87
	fi
76
}
88
}

Return to bug 481962