1 |
commit: 521ca55c9fc3fc45bb203ee0ed437784b6a7173f |
2 |
Author: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed May 31 17:00:11 2017 +0000 |
4 |
Commit: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
5 |
CommitDate: Wed May 31 17:00:11 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=521ca55c |
7 |
|
8 |
x11-wm/i3: add most recent version |
9 |
|
10 |
Include Alpine Linux patch for GLOB_TILDE. musl does not yet |
11 |
implement it. |
12 |
|
13 |
x11-wm/i3/Manifest | 5 ++ |
14 |
x11-wm/i3/files/i3-4.13-GLOB_TILDE.patch | 73 ++++++++++++++++++++ |
15 |
x11-wm/i3/files/i3-4.13-remove-git-polling.patch | 19 ++++++ |
16 |
x11-wm/i3/i3-4.13-r1.ebuild | 85 ++++++++++++++++++++++++ |
17 |
x11-wm/i3/metadata.xml | 12 ++++ |
18 |
5 files changed, 194 insertions(+) |
19 |
|
20 |
diff --git a/x11-wm/i3/Manifest b/x11-wm/i3/Manifest |
21 |
new file mode 100644 |
22 |
index 0000000..408b6dc |
23 |
--- /dev/null |
24 |
+++ b/x11-wm/i3/Manifest |
25 |
@@ -0,0 +1,5 @@ |
26 |
+AUX i3-4.13-GLOB_TILDE.patch 2473 SHA256 b7d084c53addc71fda13ccb8b3dcca2a32d9ca1590a28bf3be1a0c61870d3817 SHA512 8ce7d00371c43b93dabbe0dadf9caf7c58a68f4a0079f5a9b9552c15c55bfa0df16d7e87a281595af2ac5254632ba28ccf82a467cea16159b41490f6f2910299 WHIRLPOOL 1986a162d00573976aabcae9dda0be129a9937d2d2a7bdf345d8521908ae2a520e6dcfae3b662a0efc081ef845c285a8658abc75ffb9834b173cf6051c3ff42a |
27 |
+AUX i3-4.13-remove-git-polling.patch 580 SHA256 17e814965acd6754a21a4a6d3eed5eb23e0211f9ec0f5e62e6f051b927739f39 SHA512 169eafa91f9499944f65c3b016d6760780d7ada21d718bb96e3bd822741f0d5b30e13dd7493233338e193f1f565872cf896e3e4344a1228fed596c33ed68db8b WHIRLPOOL 87570c35cbe2829b644dff950bfde9b5142dbbcb44ab7dff5714bff44f5bd051d39bd2eaec5baf39ea1b604d92f92ea6c357c1a479d0968ac232aff5908ddd65 |
28 |
+DIST i3-4.13.tar.bz2 1121298 SHA256 94c13183e527a984132a3b050c8bf629626502a6e133e07b413641aec5f8cf8a SHA512 1bb1044e8d86e78d3ccb79d49f0eb26665dcd05a348058a5e57138151d74f57d77830efc3025893170fe1b8ec612f739f75247a427410f96286b09afd2c5f14c WHIRLPOOL c0e9b205837e30d214d525af6ceb8adcc4cbbba42d9aa0eab4e7639cbd8884d827c5783590eb23a6790e8d8d87fb81884afa369e48a7ae474613392dc6f9b371 |
29 |
+EBUILD i3-4.13-r1.ebuild 1890 SHA256 620119a6ddbe5304c5d4767cd1078249d8cbcaf29bf3668049dbb45e3d6e6969 SHA512 5043400c4612d9a303dfc0dae8c399f08c5fa5d975ed323851dfbb29a3b2d6368f76340ea12a292e2f71ef6afe915be3cdb031ef1fc5dd27456c5bdb23fc4d14 WHIRLPOOL bad8c16ed20a3031d0c8b693501dcaeff2c9173c5899adb55317102f8b2eb8b1b411eed2950c2742ddcfd4ffc8b24ac4454b9ef2bfe713c18957ab8a71b37502 |
30 |
+MISC metadata.xml 537 SHA256 a298f706fd26f31d3947bb1646b13fb8c3cb89570adb94cd41ba70678ffa65f9 SHA512 2b59aa00eff648aacae53c1277a7a406a2208e6791aac6f194216c7150abeffcf7453f185547e958ca871a00549f290467ab81b83624567756c06e06443dd9d4 WHIRLPOOL 4bf3a69829932a6e35de2c7736b8e1610cad1c8fabd19661c2fcfbe6f2059c33fa609b68df411634cc832f8608511cd1f686b21492e41edc30bd809e40170b0c |
31 |
|
32 |
diff --git a/x11-wm/i3/files/i3-4.13-GLOB_TILDE.patch b/x11-wm/i3/files/i3-4.13-GLOB_TILDE.patch |
33 |
new file mode 100644 |
34 |
index 0000000..82ad619 |
35 |
--- /dev/null |
36 |
+++ b/x11-wm/i3/files/i3-4.13-GLOB_TILDE.patch |
37 |
@@ -0,0 +1,73 @@ |
38 |
+diff -urp i3-4.11/i3bar/src/main.c i3-4.11.new/i3bar/src/main.c |
39 |
+--- i3-4.11/i3bar/src/main.c 2015-09-30 07:55:10.000000000 +0100 |
40 |
++++ i3-4.11.new/i3bar/src/main.c 2016-02-08 20:03:41.777392482 +0000 |
41 |
+@@ -45,14 +45,20 @@ void debuglog(char *fmt, ...) { |
42 |
+ * |
43 |
+ */ |
44 |
+ char *expand_path(char *path) { |
45 |
+- static glob_t globbuf; |
46 |
+- if (glob(path, GLOB_NOCHECK | GLOB_TILDE, NULL, &globbuf) < 0) { |
47 |
+- ELOG("glob() failed\n"); |
48 |
+- exit(EXIT_FAILURE); |
49 |
++ char *home, *expanded; |
50 |
++ |
51 |
++ if (strncmp(path, "~/", 2) == 0) { |
52 |
++ home = getenv("HOME"); |
53 |
++ if (home != NULL) { |
54 |
++ /* new length: sum - 1 (omit '~') + 1 (for '\0') */ |
55 |
++ expanded = scalloc(strlen(home)+strlen(path), 1); |
56 |
++ strcpy(expanded, home); |
57 |
++ strcat(expanded, path+1); |
58 |
++ return expanded; |
59 |
++ } |
60 |
+ } |
61 |
+- char *result = sstrdup(globbuf.gl_pathc > 0 ? globbuf.gl_pathv[0] : path); |
62 |
+- globfree(&globbuf); |
63 |
+- return result; |
64 |
++ |
65 |
++ return sstrdup(path); |
66 |
+ } |
67 |
+ |
68 |
+ void print_usage(char *elf_name) { |
69 |
+diff -urp i3-4.11/libi3/resolve_tilde.c i3-4.11.new/libi3/resolve_tilde.c |
70 |
+--- i3-4.11/libi3/resolve_tilde.c 2015-09-30 07:55:10.000000000 +0100 |
71 |
++++ i3-4.11.new/libi3/resolve_tilde.c 2016-02-08 20:03:47.849230953 +0000 |
72 |
+@@ -19,27 +19,18 @@ |
73 |
+ * |
74 |
+ */ |
75 |
+ char *resolve_tilde(const char *path) { |
76 |
+- static glob_t globbuf; |
77 |
+- char *head, *tail, *result; |
78 |
++ char *home, *expanded; |
79 |
+ |
80 |
+- tail = strchr(path, '/'); |
81 |
+- head = sstrndup(path, tail ? (size_t)(tail - path) : strlen(path)); |
82 |
+- |
83 |
+- int res = glob(head, GLOB_TILDE, NULL, &globbuf); |
84 |
+- free(head); |
85 |
+- /* no match, or many wildcard matches are bad */ |
86 |
+- if (res == GLOB_NOMATCH || globbuf.gl_pathc != 1) |
87 |
+- result = sstrdup(path); |
88 |
+- else if (res != 0) { |
89 |
+- err(EXIT_FAILURE, "glob() failed"); |
90 |
+- } else { |
91 |
+- head = globbuf.gl_pathv[0]; |
92 |
+- result = scalloc(strlen(head) + (tail ? strlen(tail) : 0) + 1, 1); |
93 |
+- strncpy(result, head, strlen(head)); |
94 |
+- if (tail) |
95 |
+- strncat(result, tail, strlen(tail)); |
96 |
++ if (strncmp(path, "~/", 2) == 0) { |
97 |
++ home = getenv("HOME"); |
98 |
++ if (home != NULL) { |
99 |
++ /* new length: sum - 1 (omit '~') + 1 (for '\0') */ |
100 |
++ expanded = scalloc(strlen(home)+strlen(path), 1); |
101 |
++ strcpy(expanded, home); |
102 |
++ strcat(expanded, path+1); |
103 |
++ return expanded; |
104 |
++ } |
105 |
+ } |
106 |
+- globfree(&globbuf); |
107 |
+ |
108 |
+- return result; |
109 |
++ return sstrdup(path); |
110 |
+ } |
111 |
|
112 |
diff --git a/x11-wm/i3/files/i3-4.13-remove-git-polling.patch b/x11-wm/i3/files/i3-4.13-remove-git-polling.patch |
113 |
new file mode 100644 |
114 |
index 0000000..ca22637 |
115 |
--- /dev/null |
116 |
+++ b/x11-wm/i3/files/i3-4.13-remove-git-polling.patch |
117 |
@@ -0,0 +1,19 @@ |
118 |
+diff -Naur a/configure.ac b/configure.ac |
119 |
+--- a/configure.ac 2017-01-13 13:31:25.250216293 +0100 |
120 |
++++ b/configure.ac 2017-01-13 13:31:55.930217956 +0100 |
121 |
+@@ -146,15 +146,6 @@ |
122 |
+ print_BUILD_MANS=no |
123 |
+ fi |
124 |
+ |
125 |
+-git_dir=`git rev-parse --git-dir 2>/dev/null` |
126 |
+-if test -n "$git_dir"; then |
127 |
+- srcdir=`dirname "$git_dir"` |
128 |
+- exclude_dir=`pwd | sed "s,^$srcdir,,g"` |
129 |
+- if ! grep -q "^$exclude_dir" "$git_dir/info/exclude"; then |
130 |
+- echo "$exclude_dir" >> "$git_dir/info/exclude" |
131 |
+- fi |
132 |
+-fi |
133 |
+- |
134 |
+ echo \ |
135 |
+ "-------------------------------------------------------------------------------- |
136 |
+ build configured: |
137 |
|
138 |
diff --git a/x11-wm/i3/i3-4.13-r1.ebuild b/x11-wm/i3/i3-4.13-r1.ebuild |
139 |
new file mode 100644 |
140 |
index 0000000..8f1699b |
141 |
--- /dev/null |
142 |
+++ b/x11-wm/i3/i3-4.13-r1.ebuild |
143 |
@@ -0,0 +1,85 @@ |
144 |
+# Copyright 1999-2017 Gentoo Foundation |
145 |
+# Distributed under the terms of the GNU General Public License v2 |
146 |
+ |
147 |
+EAPI=6 |
148 |
+ |
149 |
+inherit autotools |
150 |
+ |
151 |
+DESCRIPTION="An improved dynamic tiling window manager" |
152 |
+HOMEPAGE="http://i3wm.org/" |
153 |
+SRC_URI="http://i3wm.org/downloads/${P}.tar.bz2" |
154 |
+ |
155 |
+LICENSE="BSD" |
156 |
+SLOT="0" |
157 |
+KEYWORDS="amd64 ~arm x86" |
158 |
+IUSE="doc" |
159 |
+ |
160 |
+CDEPEND="dev-libs/libev |
161 |
+ dev-libs/libpcre |
162 |
+ >=dev-libs/yajl-2.0.3 |
163 |
+ x11-libs/libxcb[xkb] |
164 |
+ x11-libs/libxkbcommon[X] |
165 |
+ x11-libs/startup-notification |
166 |
+ x11-libs/xcb-util |
167 |
+ x11-libs/xcb-util-cursor |
168 |
+ x11-libs/xcb-util-keysyms |
169 |
+ x11-libs/xcb-util-wm |
170 |
+ x11-libs/xcb-util-xrm |
171 |
+ >=x11-libs/cairo-1.14.4[X,xcb] |
172 |
+ >=x11-libs/pango-1.30.0[X]" |
173 |
+DEPEND="${CDEPEND} |
174 |
+ doc? ( app-text/asciidoc app-text/xmlto dev-lang/perl ) |
175 |
+ virtual/pkgconfig" |
176 |
+RDEPEND="${CDEPEND} |
177 |
+ dev-lang/perl |
178 |
+ dev-perl/AnyEvent-I3 |
179 |
+ dev-perl/JSON-XS" |
180 |
+ |
181 |
+DOCS=( RELEASE-NOTES-${PV} ) |
182 |
+PATCHES=( |
183 |
+ "${FILESDIR}/${P}-remove-git-polling.patch" |
184 |
+ "${FILESDIR}/${P}-GLOB_TILDE.patch" |
185 |
+) |
186 |
+ |
187 |
+src_prepare() { |
188 |
+ default |
189 |
+ if ! use doc ; then |
190 |
+ sed -e '/AC_PATH_PROG(\[PATH_ASCIIDOC/d' -i configure.ac || die |
191 |
+ eautoreconf |
192 |
+ fi |
193 |
+ cat <<- EOF > "${T}"/i3wm |
194 |
+ #!/bin/sh |
195 |
+ exec /usr/bin/i3 |
196 |
+ EOF |
197 |
+} |
198 |
+ |
199 |
+src_configure() { |
200 |
+ local myeconfargs=( --enable-debug=no ) # otherwise injects -O0 -g |
201 |
+ econf "${myeconfargs[@]}" |
202 |
+} |
203 |
+ |
204 |
+src_compile() { |
205 |
+ emake -C "${CBUILD}" |
206 |
+} |
207 |
+ |
208 |
+src_install() { |
209 |
+ emake -C "${CBUILD}" DESTDIR="${D}" install |
210 |
+ if ! use doc ; then |
211 |
+ # install docs shipped with source tarball |
212 |
+ # local HTML_DOCS=( docs/. ) # TODO: install unconditionally? |
213 |
+ doman man/*.1 |
214 |
+ fi |
215 |
+ einstalldocs |
216 |
+ |
217 |
+ exeinto /etc/X11/Sessions |
218 |
+ doexe "${T}"/i3wm |
219 |
+} |
220 |
+ |
221 |
+pkg_postinst() { |
222 |
+ einfo "There are several packages that you may find useful with ${PN} and" |
223 |
+ einfo "their usage is suggested by the upstream maintainers, namely:" |
224 |
+ einfo " x11-misc/dmenu" |
225 |
+ einfo " x11-misc/i3status" |
226 |
+ einfo " x11-misc/i3lock" |
227 |
+ einfo "Please refer to their description for additional info." |
228 |
+} |
229 |
|
230 |
diff --git a/x11-wm/i3/metadata.xml b/x11-wm/i3/metadata.xml |
231 |
new file mode 100644 |
232 |
index 0000000..e220080 |
233 |
--- /dev/null |
234 |
+++ b/x11-wm/i3/metadata.xml |
235 |
@@ -0,0 +1,12 @@ |
236 |
+<?xml version="1.0" encoding="UTF-8"?> |
237 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
238 |
+<pkgmetadata> |
239 |
+ <maintainer type="person"> |
240 |
+ <email>xarthisius@g.o</email> |
241 |
+ <name>Kacper Kowalik</name> |
242 |
+ </maintainer> |
243 |
+ <use> |
244 |
+ <flag name="pango">Use <pkg>x11-libs/pango</pkg> to render text in order to support fonts which have more glyphs (e.g. Kanji). See RELEASE-NOTES for more information</flag> |
245 |
+ <flag name="doc">Build and install the HTML documentation and regenerate the man pages</flag> |
246 |
+ </use> |
247 |
+</pkgmetadata> |