1 |
commit: 2d1565c671c36b6a6da9c89fa5fad0a12f3d37e1 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 17 15:36:33 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 17 15:36:33 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d1565c6 |
7 |
|
8 |
sys-libs/libixp: Port to EAPI 7 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/706752 |
11 |
Closes: https://bugs.gentoo.org/732248 |
12 |
Closes: https://bugs.gentoo.org/740914 |
13 |
Package-Manager: Portage-3.0.7, Repoman-3.0.1 |
14 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
15 |
|
16 |
.../libixp/files/libixp-0.5_p20110208-gentoo.patch | 40 ++++++++++++++++++++++ |
17 |
sys-libs/libixp/libixp-0.5_p20110208-r3.ebuild | 37 +++++++++----------- |
18 |
2 files changed, 56 insertions(+), 21 deletions(-) |
19 |
|
20 |
diff --git a/sys-libs/libixp/files/libixp-0.5_p20110208-gentoo.patch b/sys-libs/libixp/files/libixp-0.5_p20110208-gentoo.patch |
21 |
new file mode 100644 |
22 |
index 00000000000..dbe101acef8 |
23 |
--- /dev/null |
24 |
+++ b/sys-libs/libixp/files/libixp-0.5_p20110208-gentoo.patch |
25 |
@@ -0,0 +1,40 @@ |
26 |
+--- a/cmd/ixpc.c |
27 |
++++ b/cmd/ixpc.c |
28 |
+@@ -10,6 +10,8 @@ |
29 |
+ #include <unistd.h> |
30 |
+ #include <ixp_local.h> |
31 |
+ |
32 |
++char *argv0; |
33 |
++ |
34 |
+ /* Temporary */ |
35 |
+ #define fatal(...) ixp_eprint("ixpc: fatal: " __VA_ARGS__); \ |
36 |
+ |
37 |
+--- a/include/ixp.h |
38 |
++++ b/include/ixp.h |
39 |
+@@ -66,13 +66,13 @@ |
40 |
+ |
41 |
+ typedef unsigned char uchar; |
42 |
+ typedef uint16_t ushort; |
43 |
+-typedef uint32_t ulong; |
44 |
++typedef unsigned long ulong; |
45 |
+ typedef uint64_t uvlong; |
46 |
+ |
47 |
+ typedef int64_t vlong; |
48 |
+ |
49 |
+ # define respond ixp_respond |
50 |
+-# define serve_9pcon ixp_serve9pconn |
51 |
++# define serve_9pcon ixp_serve9conn |
52 |
+ #endif |
53 |
+ |
54 |
+ #undef uint |
55 |
+--- a/include/ixp_local.h |
56 |
++++ b/include/ixp_local.h |
57 |
+@@ -12,7 +12,7 @@ |
58 |
+ typedef char* va_list; |
59 |
+ #endif |
60 |
+ |
61 |
+-char *argv0; |
62 |
++extern char *argv0; |
63 |
+ #define ARGBEGIN \ |
64 |
+ int _argtmp=0, _inargv=0; char *_argv=nil; \ |
65 |
+ if(!argv0) {argv0=*argv; argv++, argc--;} \ |
66 |
|
67 |
diff --git a/sys-libs/libixp/libixp-0.5_p20110208-r3.ebuild b/sys-libs/libixp/libixp-0.5_p20110208-r3.ebuild |
68 |
index 8c7dc645c04..bd8a54c6e05 100644 |
69 |
--- a/sys-libs/libixp/libixp-0.5_p20110208-r3.ebuild |
70 |
+++ b/sys-libs/libixp/libixp-0.5_p20110208-r3.ebuild |
71 |
@@ -1,10 +1,9 @@ |
72 |
-# Copyright 1999-2017 Gentoo Foundation |
73 |
+# Copyright 1999-2020 Gentoo Authors |
74 |
# Distributed under the terms of the GNU General Public License v2 |
75 |
|
76 |
-# hg clone https://hg.suckless.org/libixp |
77 |
+EAPI=7 |
78 |
|
79 |
-EAPI=4 |
80 |
-inherit multilib toolchain-funcs |
81 |
+inherit toolchain-funcs |
82 |
|
83 |
DESCRIPTION="A stand-alone client/server 9P library including ixpc client" |
84 |
HOMEPAGE="https://libs.suckless.org/deprecated/libixp" |
85 |
@@ -13,29 +12,25 @@ SRC_URI="mirror://gentoo/${P}.tar.xz" |
86 |
LICENSE="MIT" |
87 |
SLOT="0" |
88 |
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86" |
89 |
-IUSE="" |
90 |
|
91 |
-RDEPEND="" |
92 |
-DEPEND="app-arch/xz-utils" |
93 |
+PATCHES=( |
94 |
+ # https://code.google.com/p/libixp/issues/detail?id=2 |
95 |
+ # https://code.google.com/p/wmii/issues/detail?id=247 |
96 |
+ # https://bugs.gentoo.org/393299 |
97 |
+ "${FILESDIR}"/${P}-gentoo.patch |
98 |
+) |
99 |
|
100 |
-pkg_setup() { |
101 |
+src_configure() { |
102 |
myixpconf=( |
103 |
- PREFIX="/usr" |
104 |
- LIBDIR="/usr/$(get_libdir)" |
105 |
+ PREFIX="${EPREFIX}"/usr |
106 |
+ LIBDIR="${EPREFIX}"/usr/$(get_libdir) |
107 |
+ LIBS= |
108 |
CC="$(tc-getCC) -c" |
109 |
LD="$(tc-getCC) ${LDFLAGS}" |
110 |
AR="$(tc-getAR) crs" |
111 |
- MAKESO="1" |
112 |
+ MAKESO=1 |
113 |
SOLDFLAGS="-shared" |
114 |
- ) |
115 |
-} |
116 |
- |
117 |
-src_prepare() { |
118 |
- # https://code.google.com/p/libixp/issues/detail?id=2 |
119 |
- sed -i -e 's:ixp_serve9pconn:ixp_serve9conn:' include/ixp.h || die |
120 |
- |
121 |
- # https://bugs.gentoo.org/393299 https://code.google.com/p/wmii/issues/detail?id=247 |
122 |
- sed -i -e '69s:uint32_t:unsigned long:' include/ixp.h || die |
123 |
+ ) |
124 |
} |
125 |
|
126 |
src_compile() { |
127 |
@@ -45,5 +40,5 @@ src_compile() { |
128 |
src_install() { |
129 |
emake "${myixpconf[@]}" DESTDIR="${D}" install |
130 |
dolib.so lib/libixp{,_pthread}.so |
131 |
- dodoc NEWS |
132 |
+ einstalldocs |
133 |
} |