1 |
commit: 5e6aebb02aa020b7e8cb0dff5bb67693fd31dc5d |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 20 23:36:02 2022 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 20 23:56:19 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e6aebb0 |
7 |
|
8 |
dev-lua/lua-openssl: add 0.8.1_p1 |
9 |
|
10 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
11 |
|
12 |
dev-lua/lua-openssl/Manifest | 1 + |
13 |
dev-lua/lua-openssl/lua-openssl-0.8.1_p1.ebuild | 129 ++++++++++++++++++++++++ |
14 |
2 files changed, 130 insertions(+) |
15 |
|
16 |
diff --git a/dev-lua/lua-openssl/Manifest b/dev-lua/lua-openssl/Manifest |
17 |
index 25b3f2203774..75262db48131 100644 |
18 |
--- a/dev-lua/lua-openssl/Manifest |
19 |
+++ b/dev-lua/lua-openssl/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST lua-auxiliar-8d09895473b73e4fb72b7573615f69c36e1860a2.tar.gz 3690 BLAKE2B 8 |
21 |
DIST lua-compat-5.3-0.10.tar.gz 53695 BLAKE2B e570aedb23b8ed7ca38c4316ffab25b93a0f9f6f0fae79af563ca8a81dd6453ac273e1f9e70674c484a2dec68749e7d53a1c1736a72616c210b8e38a31b3f191 SHA512 f7f39085f4f6b16095f41e635b4c5477b3dab5e42b5b65a9d522941a3807ea521d4a27a77293a3c9d0ecea78a1f6c2a2497394b2d220f4d7d65e23510563d46d |
22 |
DIST lua-openssl-0.8.0_p20210815.tar.gz 421946 BLAKE2B 6e7c0414f4ff3391db24b666f9801ab42a8cdeb3953d675535416cfe049c7429f032dff44bb41aef0cfd16f5c20d8ad29254dfa4a038dc6d5c8f6f5c032d7fa2 SHA512 e6b5cce94969a097d507e697a0b14f88d039ce65ebedf9256f4666728f9bb8cef4d53446f9d559e7a626be6e827b39148b24ddf1df1bbaec1f869a4e1d1dfd76 |
23 |
DIST lua-openssl-0.8.0_p6.tar.gz 418000 BLAKE2B 34474c607f6e39985c17f142b1067f2438b51c7e6f62861f65fa8c471722b56dee05a7a45eae277b368ee643a1820334de03c08f09c88a17e851925d575df6d4 SHA512 56125b8a88783b48bbeabd56be4732afe22ef54224b3f03f16e3cbc1ce94f554d6d8dea8236bff34786aad2720b53cbd05dcba85ca41497db61f339014fa3b95 |
24 |
+DIST lua-openssl-0.8.1_p1.tar.gz 425188 BLAKE2B bf3171e921e144c4a13d78df9d69d89b350d4cd4358640ae8d6eb22faea302f0f0cd7687250ff70a8798e7e02c4656964ebfd90f7e98ea2eff051ad3c562029e SHA512 92be296ed18fa1ef982b70c982151cb223402cb92eb7ff8ae92009553e93f8cd24555aa1b653e20772d74b3fc7a7d4f5fc7fb923e54fec130ff6550d64ef909f |
25 |
|
26 |
diff --git a/dev-lua/lua-openssl/lua-openssl-0.8.1_p1.ebuild b/dev-lua/lua-openssl/lua-openssl-0.8.1_p1.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..002170168ee4 |
29 |
--- /dev/null |
30 |
+++ b/dev-lua/lua-openssl/lua-openssl-0.8.1_p1.ebuild |
31 |
@@ -0,0 +1,129 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+EGIT_COMMIT_AUX="8d09895473b73e4fb72b7573615f69c36e1860a2" |
38 |
+LUA_COMPAT=( lua5-{1..4} luajit ) |
39 |
+MY_PN_AUX="lua-auxiliar" |
40 |
+MY_PN_COMPAT="lua-compat-5.3" |
41 |
+MY_PV="${PV//_p/-}" |
42 |
+MY_PV_COMPAT="0.10" |
43 |
+ |
44 |
+inherit lua toolchain-funcs |
45 |
+ |
46 |
+DESCRIPTION="OpenSSL binding for Lua" |
47 |
+HOMEPAGE="https://github.com/zhaozg/lua-openssl" |
48 |
+SRC_URI=" |
49 |
+ https://github.com/zhaozg/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz |
50 |
+ https://github.com/zhaozg/${MY_PN_AUX}/archive/${EGIT_COMMIT_AUX}.tar.gz -> ${MY_PN_AUX}-${EGIT_COMMIT_AUX}.tar.gz |
51 |
+ https://github.com/keplerproject/${MY_PN_COMPAT}/archive/v${MY_PV_COMPAT}.tar.gz -> ${MY_PN_COMPAT}-${MY_PV_COMPAT}.tar.gz |
52 |
+" |
53 |
+S="${WORKDIR}/${PN}-${MY_PV}" |
54 |
+ |
55 |
+LICENSE="MIT openssl PHP-3" |
56 |
+SLOT="0" |
57 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
58 |
+IUSE="test" |
59 |
+REQUIRED_USE="${LUA_REQUIRED_USE}" |
60 |
+RESTRICT="!test? ( test )" |
61 |
+ |
62 |
+RDEPEND=" |
63 |
+ !dev-lua/luaossl |
64 |
+ !dev-lua/luasec |
65 |
+ dev-libs/openssl:0=[-bindist(-)] |
66 |
+ ${LUA_DEPS} |
67 |
+" |
68 |
+DEPEND="${RDEPEND}" |
69 |
+BDEPEND=" |
70 |
+ virtual/pkgconfig |
71 |
+ test? ( ${RDEPEND} ) |
72 |
+" |
73 |
+ |
74 |
+DOCS=( "README.md" "samples/." ) |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ default |
78 |
+ |
79 |
+ # Allow override of LUA* variables |
80 |
+ sed -e '/LUA /s/:=/?=/g' -e '/LUA_VERSION/s/:=/?=/g' -i Makefile || die |
81 |
+ |
82 |
+ # Disable TestCMS test suite, as it fails |
83 |
+ # See: https://github.com/zhaozg/lua-openssl/issues/230 |
84 |
+ sed -e '/6.cms.lua/d' -i test/test.lua || die |
85 |
+ |
86 |
+ # Prepare needed dependencies (source code files only) |
87 |
+ rm -r deps/{auxiliar,lua-compat} || die |
88 |
+ mv "${WORKDIR}/${MY_PN_AUX}-${EGIT_COMMIT_AUX}" deps/auxiliar || die |
89 |
+ mv "${WORKDIR}/${MY_PN_COMPAT}-${MY_PV_COMPAT}" deps/lua-compat || die |
90 |
+ |
91 |
+ lua_copy_sources |
92 |
+} |
93 |
+ |
94 |
+lua_src_compile() { |
95 |
+ pushd "${BUILD_DIR}" || die |
96 |
+ |
97 |
+ local myemakeargs=( |
98 |
+ "AR=$(tc-getAR)" |
99 |
+ "CC=$(tc-getCC)" |
100 |
+ "LUA=" |
101 |
+ "LUA_CFLAGS=${CFLAGS} $(lua_get_CFLAGS)" |
102 |
+ "LUA_LIBS=${LDFLAGS}" |
103 |
+ "LUA_VERSION=$(ver_cut 1-2 $(lua_get_version))" |
104 |
+ "TARGET_SYS=${CTARGET:-${CHOST}}" |
105 |
+ ) |
106 |
+ |
107 |
+ emake "${myemakeargs[@]}" |
108 |
+ |
109 |
+ popd |
110 |
+} |
111 |
+ |
112 |
+src_compile() { |
113 |
+ lua_foreach_impl lua_src_compile |
114 |
+} |
115 |
+ |
116 |
+lua_src_test() { |
117 |
+ pushd "${BUILD_DIR}" || die |
118 |
+ |
119 |
+ local myemakeargs=( |
120 |
+ "LUA=${ELUA}" |
121 |
+ "LUA_CFLAGS=" |
122 |
+ "LUA_LIBS=" |
123 |
+ "LUA_VERSION=$(ver_cut 1-2 $(lua_get_version))" |
124 |
+ "TARGET_SYS=${CTARGET:-${CHOST}}" |
125 |
+ ) |
126 |
+ |
127 |
+ emake "${myemakeargs[@]}" test |
128 |
+ |
129 |
+ popd |
130 |
+} |
131 |
+ |
132 |
+src_test() { |
133 |
+ lua_foreach_impl lua_src_test |
134 |
+} |
135 |
+ |
136 |
+lua_src_install() { |
137 |
+ pushd "${BUILD_DIR}" || die |
138 |
+ |
139 |
+ local myemakeargs=( |
140 |
+ "LUA=" |
141 |
+ "LUA_CFLAGS=" |
142 |
+ "LUA_LIBDIR=${ED}/$(lua_get_cmod_dir)" |
143 |
+ "LUA_LIBS=" |
144 |
+ "LUA_VERSION=$(ver_cut 1-2 $(lua_get_version))" |
145 |
+ "TARGET_SYS=${CTARGET:-${CHOST}}" |
146 |
+ ) |
147 |
+ |
148 |
+ emake "${myemakeargs[@]}" install |
149 |
+ |
150 |
+ insinto "$(lua_get_lmod_dir)" |
151 |
+ doins -r "lib/." |
152 |
+ |
153 |
+ popd |
154 |
+} |
155 |
+ |
156 |
+src_install() { |
157 |
+ lua_foreach_impl lua_src_install |
158 |
+ |
159 |
+ einstalldocs |
160 |
+} |