1 |
commit: 948dbb676ad148f1b0288d8a95de6f8c19dd486c |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 28 19:58:42 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 28 20:43:18 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=948dbb67 |
7 |
|
8 |
sys-apps/vbetool: add 1.2.2 |
9 |
|
10 |
This fork is ~13 years old but it fixes our clang16 issues and |
11 |
several distros are using it, let's take it (albeit unsure how |
12 |
useful this package still is, don't use myself). |
13 |
|
14 |
dev.g.o tarball is a checkout of upstream v1.2.2 tag with no changes. |
15 |
|
16 |
Closes: https://bugs.gentoo.org/787245 |
17 |
Closes: https://bugs.gentoo.org/870523 |
18 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
19 |
|
20 |
sys-apps/vbetool/Manifest | 1 + |
21 |
sys-apps/vbetool/files/vbetool-1.2.2-libx86.patch | 7 +++++ |
22 |
sys-apps/vbetool/vbetool-1.2.2.ebuild | 31 +++++++++++++++++++++++ |
23 |
3 files changed, 39 insertions(+) |
24 |
|
25 |
diff --git a/sys-apps/vbetool/Manifest b/sys-apps/vbetool/Manifest |
26 |
index 4a22534a6505..8f8fce89d84c 100644 |
27 |
--- a/sys-apps/vbetool/Manifest |
28 |
+++ b/sys-apps/vbetool/Manifest |
29 |
@@ -1 +1,2 @@ |
30 |
DIST vbetool-1.1.tar.gz 182826 BLAKE2B 6b30eb468e55bedd766161e373e042b5fdf38fd2926bfc8aeb94404350864e835d41642f19be155fcf9a8fbfdc8b4e237e742cabd00626db5e8d17e7c7c5cf6f SHA512 09d8713516f074fe8e901ab3e24aba7e8b9ddf459b3ee3394b7604e4489a70a27c6dc3604cf1284c49233dba908f00da746c583562af2bc93b6df8ff413efd96 |
31 |
+DIST vbetool-1.2.2.tar.xz 22032 BLAKE2B 0ab3263d347ad382c73265e08bb2d81468e1066212a282eee972f1e806a8cef94a0194878a8f2a113d3c139a58b9b18a8e3e6153ce868803bd74c3724e61d9d2 SHA512 658028e6fd1e1218c08a55de75009b6256f46dd22e259a5ab605d4686baf909688997882ba98ee7bee9b26b0dd334a38ddd7e63d8884626f8c3e0cedf87c4dea |
32 |
|
33 |
diff --git a/sys-apps/vbetool/files/vbetool-1.2.2-libx86.patch b/sys-apps/vbetool/files/vbetool-1.2.2-libx86.patch |
34 |
new file mode 100644 |
35 |
index 000000000000..f3f4c36d0219 |
36 |
--- /dev/null |
37 |
+++ b/sys-apps/vbetool/files/vbetool-1.2.2-libx86.patch |
38 |
@@ -0,0 +1,7 @@ |
39 |
+Gentoo's libx86 package does not have a .pc file (adds -lx86 either way). |
40 |
+--- a/configure.ac |
41 |
++++ b/configure.ac |
42 |
+@@ -38,3 +38,2 @@ |
43 |
+ # Checks for pkg-config packages |
44 |
+-PKG_CHECK_MODULES(LIBX86, x86) |
45 |
+ |
46 |
|
47 |
diff --git a/sys-apps/vbetool/vbetool-1.2.2.ebuild b/sys-apps/vbetool/vbetool-1.2.2.ebuild |
48 |
new file mode 100644 |
49 |
index 000000000000..9ad425b7bd53 |
50 |
--- /dev/null |
51 |
+++ b/sys-apps/vbetool/vbetool-1.2.2.ebuild |
52 |
@@ -0,0 +1,31 @@ |
53 |
+# Copyright 1999-2022 Gentoo Authors |
54 |
+# Distributed under the terms of the GNU General Public License v2 |
55 |
+ |
56 |
+EAPI=8 |
57 |
+ |
58 |
+inherit autotools |
59 |
+ |
60 |
+DESCRIPTION="Run real-mode video BIOS code to alter hw state (i.e. reinitialize video card)" |
61 |
+HOMEPAGE="https://cgit.freedesktop.org/~airlied/vbetool/" |
62 |
+SRC_URI="https://dev.gentoo.org/~ionen/distfiles/${P}.tar.xz" |
63 |
+ |
64 |
+LICENSE="GPL-2" |
65 |
+SLOT="0" |
66 |
+KEYWORDS="~amd64 ~x86" |
67 |
+ |
68 |
+RDEPEND=" |
69 |
+ dev-libs/libx86 |
70 |
+ sys-libs/zlib:= |
71 |
+ x11-libs/libpciaccess" |
72 |
+DEPEND="${RDEPEND}" |
73 |
+BDEPEND="virtual/pkgconfig" |
74 |
+ |
75 |
+PATCHES=( |
76 |
+ "${FILESDIR}"/${P}-libx86.patch |
77 |
+) |
78 |
+ |
79 |
+src_prepare() { |
80 |
+ default |
81 |
+ |
82 |
+ eautoreconf |
83 |
+} |