1 |
commit: 519639679fa386fdda27b75714b3238d95adb2f2 |
2 |
Author: Daniel Campbell <zlg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 31 02:35:30 2017 +0000 |
4 |
Commit: Daniel Campbell <zlg <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 31 02:38:20 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51963967 |
7 |
|
8 |
x11-wm/fluxbox: revbump to fix sandbox issues |
9 |
|
10 |
Bug: 587660 |
11 |
Gentoo-Bug-URL: https://bugs.gentoo.org/587660 |
12 |
|
13 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
14 |
|
15 |
x11-wm/fluxbox/fluxbox-1.3.7-r4.ebuild | 115 +++++++++++++++++++++++++++++++++ |
16 |
1 file changed, 115 insertions(+) |
17 |
|
18 |
diff --git a/x11-wm/fluxbox/fluxbox-1.3.7-r4.ebuild b/x11-wm/fluxbox/fluxbox-1.3.7-r4.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..2edfed184ea |
21 |
--- /dev/null |
22 |
+++ b/x11-wm/fluxbox/fluxbox-1.3.7-r4.ebuild |
23 |
@@ -0,0 +1,115 @@ |
24 |
+# Copyright 1999-2017 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=5 |
28 |
+inherit eutils flag-o-matic toolchain-funcs prefix xdg xdg-utils |
29 |
+ |
30 |
+IUSE="nls xinerama bidi +truetype +imlib +slit +systray +toolbar vim-syntax" |
31 |
+ |
32 |
+REQUIRED_USE="systray? ( toolbar )" |
33 |
+ |
34 |
+DESCRIPTION="Fluxbox is an X11 window manager featuring tabs and an iconbar" |
35 |
+ |
36 |
+SRC_URI="mirror://sourceforge/fluxbox/${P}.tar.xz" |
37 |
+HOMEPAGE="http://www.fluxbox.org" |
38 |
+SLOT="0" |
39 |
+LICENSE="MIT" |
40 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" |
41 |
+ |
42 |
+RDEPEND=" |
43 |
+ !!<=x11-misc/fbdesk-1.2.1 |
44 |
+ !!<=x11-misc/fluxconf-0.9.9 |
45 |
+ !!<x11-themes/fluxbox-styles-fluxmod-20040809-r1 |
46 |
+ bidi? ( >=dev-libs/fribidi-0.19.2 ) |
47 |
+ imlib? ( >=media-libs/imlib2-1.2.0[X] ) |
48 |
+ truetype? ( media-libs/freetype ) |
49 |
+ vim-syntax? ( app-vim/fluxbox-syntax ) |
50 |
+ x11-libs/libXext |
51 |
+ x11-libs/libXft |
52 |
+ x11-libs/libXpm |
53 |
+ x11-libs/libXrandr |
54 |
+ x11-libs/libXrender |
55 |
+ xinerama? ( x11-libs/libXinerama ) |
56 |
+ || ( x11-misc/gxmessage x11-apps/xmessage ) |
57 |
+" |
58 |
+DEPEND=" |
59 |
+ ${RDEPEND} |
60 |
+ bidi? ( virtual/pkgconfig ) |
61 |
+ nls? ( sys-devel/gettext ) |
62 |
+ x11-proto/xextproto |
63 |
+" |
64 |
+ |
65 |
+src_prepare() { |
66 |
+ # We need to be able to include directories rather than just plain |
67 |
+ # files in menu [include] items. This patch will allow us to do clever |
68 |
+ # things with style ebuilds. |
69 |
+ epatch "${FILESDIR}"/gentoo_style_location-1.1.x.patch |
70 |
+ |
71 |
+ eprefixify util/fluxbox-generate_menu.in |
72 |
+ |
73 |
+ epatch "${FILESDIR}"/osx-has-otool.patch |
74 |
+ |
75 |
+ # Fix bug #551522; 1.3.8 will render this obsolete |
76 |
+ epatch "${FILESDIR}"/fix-hidden-toolbar.patch |
77 |
+ |
78 |
+ # Add in the Gentoo -r number to fluxbox -version output. |
79 |
+ if [[ "${PR}" == "r0" ]] ; then |
80 |
+ suffix="gentoo" |
81 |
+ else |
82 |
+ suffix="gentoo-${PR}" |
83 |
+ fi |
84 |
+ sed -i \ |
85 |
+ -e "s~\(__fluxbox_version .@VERSION@\)~\1-${suffix}~" \ |
86 |
+ version.h.in || die "version sed failed" |
87 |
+} |
88 |
+ |
89 |
+src_configure() { |
90 |
+ xdg_environment_reset |
91 |
+ use bidi && append-cppflags "$($(tc-getPKG_CONFIG) --cflags fribidi)" |
92 |
+ |
93 |
+ econf $(use_enable bidi fribidi ) \ |
94 |
+ $(use_enable imlib imlib2) \ |
95 |
+ $(use_enable nls) \ |
96 |
+ $(use_enable slit ) \ |
97 |
+ $(use_enable systray ) \ |
98 |
+ $(use_enable toolbar ) \ |
99 |
+ $(use_enable truetype xft) \ |
100 |
+ $(use_enable xinerama) \ |
101 |
+ --sysconfdir="${EPREFIX}"/etc/X11/${PN} \ |
102 |
+ --with-style="${EPREFIX}"/usr/share/fluxbox/styles/Emerge |
103 |
+} |
104 |
+ |
105 |
+src_compile() { |
106 |
+ default |
107 |
+ |
108 |
+ ebegin "Creating a menu file (may take a while)" |
109 |
+ mkdir -p "${T}/home/.fluxbox" || die "mkdir home failed" |
110 |
+ # Call fluxbox-generate_menu through bash since it lacks +x |
111 |
+ # chmod 744 may be an equal fix |
112 |
+ MENUFILENAME="${S}/data/menu" MENUTITLE="Fluxbox ${PV}" \ |
113 |
+ CHECKINIT="no. go away." HOME="${T}/home" \ |
114 |
+ bash "${S}/util/fluxbox-generate_menu" -is -ds \ |
115 |
+ || die "menu generation failed" |
116 |
+ eend $? |
117 |
+} |
118 |
+ |
119 |
+src_install() { |
120 |
+ emake DESTDIR="${D}" STRIP="" install |
121 |
+ dodoc README* AUTHORS TODO* ChangeLog NEWS |
122 |
+ |
123 |
+ # Install the generated menu |
124 |
+ insinto /usr/share/fluxbox |
125 |
+ doins data/menu |
126 |
+ |
127 |
+ insinto /usr/share/xsessions |
128 |
+ doins "${FILESDIR}"/${PN}.desktop |
129 |
+ |
130 |
+ exeinto /etc/X11/Sessions |
131 |
+ newexe "${FILESDIR}"/${PN}.xsession fluxbox |
132 |
+ |
133 |
+ # Styles menu framework |
134 |
+ insinto /usr/share/fluxbox/menu.d/styles |
135 |
+ doins "${FILESDIR}"/styles-menu-fluxbox |
136 |
+ doins "${FILESDIR}"/styles-menu-commonbox |
137 |
+ doins "${FILESDIR}"/styles-menu-user |
138 |
+} |