1 |
commit: 8e426ef2f798dccad5ae3140be21f3eb4cd6f56c |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 24 18:12:20 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 27 19:40:26 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e426ef2 |
7 |
|
8 |
dev-lua/luasocket: drop old version |
9 |
|
10 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
11 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
12 |
|
13 |
dev-lua/luasocket/Manifest | 1 - |
14 |
dev-lua/luasocket/files/proxy-fix.patch | 31 ---------- |
15 |
dev-lua/luasocket/luasocket-3.0_rc1-r5.ebuild | 58 ----------------- |
16 |
.../luasocket-3.0_rc1_p20200328-r1.ebuild | 72 ---------------------- |
17 |
4 files changed, 162 deletions(-) |
18 |
|
19 |
diff --git a/dev-lua/luasocket/Manifest b/dev-lua/luasocket/Manifest |
20 |
index ee78a733186..8e11fe11f0a 100644 |
21 |
--- a/dev-lua/luasocket/Manifest |
22 |
+++ b/dev-lua/luasocket/Manifest |
23 |
@@ -1,2 +1 @@ |
24 |
-DIST luasocket-3.0_rc1.tar.gz 328598 BLAKE2B 9cc382d909cfa018edec237ac901220cccb0cf0e3a775b9cd8083487ace42a94dfd280f9423097f677f37ee9f85afcfff844250cd49c0f813b7c50c3adc532c5 SHA512 f6efce259aaacaa11472911471f8a13b118fe009b8953a82c6aa18b9ec829cd1293180904e56935cb130d36d267e3f27c91db2d78e03f7488f3e100571ed0540 |
25 |
DIST luasocket-3.0_rc1_p20200328.tar.gz 335628 BLAKE2B 9e5d3e415337903b689705669b586c4481179a319b4e3428823c8f442d04f26db86bfeca66db7e58d157e31431c31e4f687403f7163b75f57d6f87cdb934717f SHA512 bdf7086a0504b0072b9cfd1266fc4ae89504053801722859a426f567fca00ed76f4c295c2a3a968e93f0036d9b792cf97561e9baa82c09ea23999cfd473227eb |
26 |
|
27 |
diff --git a/dev-lua/luasocket/files/proxy-fix.patch b/dev-lua/luasocket/files/proxy-fix.patch |
28 |
deleted file mode 100644 |
29 |
index 302e63663ff..00000000000 |
30 |
--- a/dev-lua/luasocket/files/proxy-fix.patch |
31 |
+++ /dev/null |
32 |
@@ -1,31 +0,0 @@ |
33 |
-From 1f9ccb2b586c3a7e29db3c99a23ac1cee6907cf2 Mon Sep 17 00:00:00 2001 |
34 |
-From: Pierre Chapuis <catwell@×××××××××.us> |
35 |
-Date: Fri, 5 Jul 2013 18:00:29 +0200 |
36 |
-Subject: [PATCH] http: look for PROXY in _M, not as a global |
37 |
- |
38 |
---- |
39 |
- src/http.lua | 4 ++-- |
40 |
- 1 file changed, 2 insertions(+), 2 deletions(-) |
41 |
- |
42 |
-diff --git a/src/http.lua b/src/http.lua |
43 |
-index 5f70a374..f83dcc55 100644 |
44 |
---- a/src/http.lua |
45 |
-+++ b/src/http.lua |
46 |
-@@ -186,7 +186,7 @@ end |
47 |
- local function adjusturi(reqt) |
48 |
- local u = reqt |
49 |
- -- if there is a proxy, we need the full url. otherwise, just a part. |
50 |
-- if not reqt.proxy and not PROXY then |
51 |
-+ if not reqt.proxy and not _M.PROXY then |
52 |
- u = { |
53 |
- path = socket.try(reqt.path, "invalid path 'nil'"), |
54 |
- params = reqt.params, |
55 |
-@@ -198,7 +198,7 @@ local function adjusturi(reqt) |
56 |
- end |
57 |
- |
58 |
- local function adjustproxy(reqt) |
59 |
-- local proxy = reqt.proxy or PROXY |
60 |
-+ local proxy = reqt.proxy or _M.PROXY |
61 |
- if proxy then |
62 |
- proxy = url.parse(proxy) |
63 |
- return proxy.host, proxy.port or 3128 |
64 |
|
65 |
diff --git a/dev-lua/luasocket/luasocket-3.0_rc1-r5.ebuild b/dev-lua/luasocket/luasocket-3.0_rc1-r5.ebuild |
66 |
deleted file mode 100644 |
67 |
index 8a12093b847..00000000000 |
68 |
--- a/dev-lua/luasocket/luasocket-3.0_rc1-r5.ebuild |
69 |
+++ /dev/null |
70 |
@@ -1,58 +0,0 @@ |
71 |
-# Copyright 1999-2020 Gentoo Authors |
72 |
-# Distributed under the terms of the GNU General Public License v2 |
73 |
- |
74 |
-EAPI=7 |
75 |
- |
76 |
-inherit multilib multilib-minimal flag-o-matic toolchain-funcs |
77 |
- |
78 |
-DESCRIPTION="Networking support library for the Lua language" |
79 |
-HOMEPAGE="http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/ |
80 |
- https://github.com/diegonehab/luasocket" |
81 |
-SRC_URI="https://github.com/diegonehab/${PN}/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz" |
82 |
- |
83 |
-LICENSE="MIT" |
84 |
-SLOT="0" |
85 |
-KEYWORDS="amd64 arm arm64 ~hppa ~mips ppc ppc64 sparc x86" |
86 |
-IUSE="debug" |
87 |
- |
88 |
-RDEPEND=">=dev-lang/lua-5.1.5-r2:0[${MULTILIB_USEDEP}]" |
89 |
-DEPEND="${RDEPEND}" |
90 |
-BDEPEND="virtual/pkgconfig" |
91 |
- |
92 |
-S=${WORKDIR}/${PN}-${PV/_/-} |
93 |
- |
94 |
-RESTRICT="test" |
95 |
- |
96 |
-PATCHES=( |
97 |
- "${FILESDIR}"/proxy-fix.patch |
98 |
-) |
99 |
- |
100 |
-src_prepare() { |
101 |
- default |
102 |
- multilib_copy_sources |
103 |
-} |
104 |
- |
105 |
-multilib_src_compile() { |
106 |
- emake \ |
107 |
- CC="$(tc-getCC) ${CFLAGS}" \ |
108 |
- LD="$(tc-getCC) ${LDFLAGS}"\ |
109 |
- $(usex debug DEBUG="DEBUG" "") |
110 |
-} |
111 |
- |
112 |
-multilib_src_install() { |
113 |
- local luav=$($(tc-getPKG_CONFIG) --variable V lua) |
114 |
- emake \ |
115 |
- DESTDIR="${D}" \ |
116 |
- LUAPREFIX_linux="${EPREFIX}/usr" \ |
117 |
- LUAV=${luav} \ |
118 |
- CDIR_linux=$(get_libdir)/lua/${luav} \ |
119 |
- install-unix |
120 |
- insinto /usr/include/lua${luav}/luasocket |
121 |
- doins src/*.h |
122 |
-} |
123 |
- |
124 |
-multilib_src_install_all() { |
125 |
- dodoc NEW README |
126 |
- docinto html |
127 |
- dodoc -r doc/. |
128 |
-} |
129 |
|
130 |
diff --git a/dev-lua/luasocket/luasocket-3.0_rc1_p20200328-r1.ebuild b/dev-lua/luasocket/luasocket-3.0_rc1_p20200328-r1.ebuild |
131 |
deleted file mode 100644 |
132 |
index b05a982025b..00000000000 |
133 |
--- a/dev-lua/luasocket/luasocket-3.0_rc1_p20200328-r1.ebuild |
134 |
+++ /dev/null |
135 |
@@ -1,72 +0,0 @@ |
136 |
-# Copyright 1999-2020 Gentoo Authors |
137 |
-# Distributed under the terms of the GNU General Public License v2 |
138 |
- |
139 |
-EAPI=7 |
140 |
- |
141 |
-EGIT_COMMIT="5b18e475f38fcf28429b1cc4b17baee3b9793a62" |
142 |
- |
143 |
-inherit flag-o-matic toolchain-funcs |
144 |
- |
145 |
-DESCRIPTION="Networking support library for the Lua language" |
146 |
-HOMEPAGE=" |
147 |
- http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/ |
148 |
- https://github.com/diegonehab/luasocket |
149 |
-" |
150 |
-SRC_URI="https://github.com/diegonehab/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
151 |
-S="${WORKDIR}/${PN}-${EGIT_COMMIT}" |
152 |
- |
153 |
-LICENSE="MIT" |
154 |
-SLOT="0" |
155 |
-KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86" |
156 |
-IUSE="luajit" |
157 |
-RESTRICT="test" |
158 |
- |
159 |
-RDEPEND=" |
160 |
- luajit? ( dev-lang/luajit:2 ) |
161 |
- !luajit? ( dev-lang/lua:0 ) |
162 |
-" |
163 |
-DEPEND="${RDEPEND}" |
164 |
-BDEPEND="virtual/pkgconfig" |
165 |
- |
166 |
-HTML_DOCS="doc/." |
167 |
- |
168 |
-src_prepare() { |
169 |
- default |
170 |
- |
171 |
- # Respect users CFLAGS |
172 |
- sed -e 's/-O2 -ggdb3//g' -i src/makefile || die |
173 |
- |
174 |
- # Workaround for 32-bit systems |
175 |
- append-cflags -fno-stack-protector |
176 |
-} |
177 |
- |
178 |
-src_compile() { |
179 |
- local myemakeargs=( |
180 |
- "CC=$(tc-getCC)" |
181 |
- "LD=$(tc-getCC)" |
182 |
- "LDFLAGS_linux=-O -fpic -shared -o" |
183 |
- "LUAINC_linux=$($(tc-getPKG_CONFIG) --variable includedir $(usex luajit 'luajit' 'lua'))" |
184 |
- "LUAV=5.1" |
185 |
- "MYCFLAGS=${CFLAGS}" |
186 |
- "MYLDFLAGS=${LDFLAGS}" |
187 |
- ) |
188 |
- |
189 |
- emake "${myemakeargs[@]}" all |
190 |
-} |
191 |
- |
192 |
-src_install() { |
193 |
- local myemakeargs=( |
194 |
- "CDIR=$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD $(usex luajit 'luajit' 'lua'))" |
195 |
- "DESTDIR=${ED}" |
196 |
- "LDIR=$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))" |
197 |
- "LUAPREFIX_linux=" |
198 |
- ) |
199 |
- |
200 |
- emake "${myemakeargs[@]}" install |
201 |
- emake "${myemakeargs[@]}" install-unix |
202 |
- |
203 |
- insinto "$($(tc-getPKG_CONFIG) --variable includedir $(usex luajit 'luajit' 'lua'))/luasocket" |
204 |
- doins src/*.h |
205 |
- |
206 |
- einstalldocs |
207 |
-} |