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

Collapse All | Expand All

(-)fluxbox-9999.ebuild (-32 / +38 lines)
Lines 1-8 Link Here
1
# Copyright 1999-2013 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/x11-wm/fluxbox/fluxbox-9999.ebuild,v 1.13 2013/01/08 21:32:50 lack Exp $
3
# $Header: $
4
4
5
EAPI=4
5
EAPI=5
6
inherit eutils flag-o-matic toolchain-funcs git-2 prefix
6
inherit eutils flag-o-matic toolchain-funcs git-2 prefix
7
7
8
IUSE="nls xinerama bidi +truetype +imlib +slit +toolbar vim-syntax"
8
IUSE="nls xinerama bidi +truetype +imlib +slit +toolbar vim-syntax"
Lines 12-40 Link Here
12
EGIT_REPO_URI="git://git.fluxbox.org/fluxbox.git"
12
EGIT_REPO_URI="git://git.fluxbox.org/fluxbox.git"
13
SRC_URI=""
13
SRC_URI=""
14
HOMEPAGE="http://www.fluxbox.org"
14
HOMEPAGE="http://www.fluxbox.org"
15
SLOT="0"
16
LICENSE="MIT"
17
KEYWORDS=""
15
18
16
RDEPEND="x11-libs/libXpm
19
RDEPEND="
17
	x11-libs/libXrandr
20
	!!<=x11-misc/fbdesk-1.2.1
21
	!!<=x11-misc/fluxconf-0.9.9
22
	!!<x11-themes/fluxbox-styles-fluxmod-20040809-r1
23
	bidi? ( >=dev-libs/fribidi-0.19.2 )
24
	imlib? ( >=media-libs/imlib2-1.2.0[X] )
25
	truetype? ( media-libs/freetype )
26
	vim-syntax? ( app-vim/fluxbox-syntax )
18
	x11-libs/libXext
27
	x11-libs/libXext
19
	x11-libs/libXft
28
	x11-libs/libXft
29
	x11-libs/libXpm
30
	x11-libs/libXrandr
20
	x11-libs/libXrender
31
	x11-libs/libXrender
21
	|| ( x11-misc/gxmessage x11-apps/xmessage )
22
	xinerama? ( x11-libs/libXinerama )
32
	xinerama? ( x11-libs/libXinerama )
23
	truetype? ( media-libs/freetype )
33
	|| ( x11-misc/gxmessage x11-apps/xmessage )
24
	bidi? ( >=dev-libs/fribidi-0.19.2 )
34
"
25
	imlib? ( >=media-libs/imlib2-1.2.0[X] )
35
DEPEND="
26
	vim-syntax? ( app-vim/fluxbox-syntax )
36
	${RDEPEND}
27
	!!<x11-themes/fluxbox-styles-fluxmod-20040809-r1
37
	bidi? ( virtual/pkgconfig )
28
	!!<=x11-misc/fluxconf-0.9.9
29
	!!<=x11-misc/fbdesk-1.2.1"
30
DEPEND="bidi? ( virtual/pkgconfig )
31
	nls? ( sys-devel/gettext )
38
	nls? ( sys-devel/gettext )
32
	x11-proto/xextproto
39
	x11-proto/xextproto
33
	${RDEPEND}"
40
"
34
35
SLOT="0"
36
LICENSE="MIT"
37
KEYWORDS=""
38
41
39
src_prepare() {
42
src_prepare() {
40
	./autogen.sh
43
	./autogen.sh
Lines 45-50 Link Here
45
	epatch "${FILESDIR}/gentoo_style_location-1.1.x.patch"
48
	epatch "${FILESDIR}/gentoo_style_location-1.1.x.patch"
46
	eprefixify util/fluxbox-generate_menu.in
49
	eprefixify util/fluxbox-generate_menu.in
47
50
51
	epatch "${FILESDIR}"/osx-has-otool.patch
52
48
	# Add in the Gentoo -r number to fluxbox -version output.
53
	# Add in the Gentoo -r number to fluxbox -version output.
49
	if [[ "${PR}" == "r0" ]] ; then
54
	if [[ "${PR}" == "r0" ]] ; then
50
		suffix="gentoo"
55
		suffix="gentoo"
Lines 59-75 Link Here
59
src_configure() {
64
src_configure() {
60
	use bidi && append-cppflags "$($(tc-getPKG_CONFIG) --cflags fribidi)"
65
	use bidi && append-cppflags "$($(tc-getPKG_CONFIG) --cflags fribidi)"
61
66
62
	econf \
67
	econf ${myconf} \
63
		$(use_enable nls) \
68
		$(use_enable bidi fribidi ) \
64
		$(use_enable xinerama) \
65
		$(use_enable truetype xft) \
66
		$(use_enable imlib imlib2) \
69
		$(use_enable imlib imlib2) \
70
		$(use_enable nls) \
67
		$(use_enable slit ) \
71
		$(use_enable slit ) \
68
		$(use_enable toolbar ) \
72
		$(use_enable toolbar ) \
69
		$(use_enable bidi fribidi ) \
73
		$(use_enable toolbar systray ) \
74
		$(use_enable truetype xft) \
75
		$(use_enable xinerama) \
70
		--sysconfdir="${EPREFIX}"/etc/X11/${PN} \
76
		--sysconfdir="${EPREFIX}"/etc/X11/${PN} \
71
		--with-style="${EPREFIX}"/usr/share/fluxbox/styles/Emerge \
77
		--with-style="${EPREFIX}"/usr/share/fluxbox/styles/Emerge
72
		${myconf}
73
}
78
}
74
79
75
src_compile() {
80
src_compile() {
Lines 77-105 Link Here
77
82
78
	ebegin "Creating a menu file (may take a while)"
83
	ebegin "Creating a menu file (may take a while)"
79
	mkdir -p "${T}/home/.fluxbox" || die "mkdir home failed"
84
	mkdir -p "${T}/home/.fluxbox" || die "mkdir home failed"
85
	# Call fluxbox-generate_menu through bash since it lacks +x
86
	# chmod 744 may be an equal fix
80
	MENUFILENAME="${S}/data/menu" MENUTITLE="Fluxbox ${PV}" \
87
	MENUFILENAME="${S}/data/menu" MENUTITLE="Fluxbox ${PV}" \
81
		CHECKINIT="no. go away." HOME="${T}/home" \
88
		CHECKINIT="no. go away." HOME="${T}/home" \
82
		"${S}/util/fluxbox-generate_menu" -is -ds \
89
		bash "${S}/util/fluxbox-generate_menu" -is -ds \
83
		|| die "menu generation failed"
90
		|| die "menu generation failed"
84
	eend $?
91
	eend $?
85
}
92
}
86
93
87
src_install() {
94
src_install() {
88
	dodir /usr/share/fluxbox
89
	emake DESTDIR="${D}" STRIP="" install
95
	emake DESTDIR="${D}" STRIP="" install
90
	dodoc README* AUTHORS TODO* ChangeLog NEWS
96
	dodoc README* AUTHORS TODO* ChangeLog NEWS
91
97
92
	dodir /usr/share/xsessions
98
	# Install the generated menu
99
	insinto /usr/share/fluxbox
100
	doins data/menu
101
93
	insinto /usr/share/xsessions
102
	insinto /usr/share/xsessions
94
	doins "${FILESDIR}"/${PN}.desktop
103
	doins "${FILESDIR}"/${PN}.desktop
95
104
96
	exeinto /etc/X11/Sessions
105
	exeinto /etc/X11/Sessions
97
	newexe "${FILESDIR}"/${PN}.xsession fluxbox
106
	newexe "${FILESDIR}"/${PN}.xsession fluxbox
98
107
99
	dodir /usr/share/fluxbox/menu.d
100
101
	# Styles menu framework
108
	# Styles menu framework
102
	dodir /usr/share/fluxbox/menu.d/styles
103
	insinto /usr/share/fluxbox/menu.d/styles
109
	insinto /usr/share/fluxbox/menu.d/styles
104
	doins "${FILESDIR}"/styles-menu-fluxbox
110
	doins "${FILESDIR}"/styles-menu-fluxbox
105
	doins "${FILESDIR}"/styles-menu-commonbox
111
	doins "${FILESDIR}"/styles-menu-commonbox

Return to bug 537356