Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/luasec/
Date: Sun, 19 Mar 2023 22:12:55
Message-Id: 1679263960.3092422fe354dfb25fd8d7ead1d5992a6e321c80.conikost@gentoo
1 commit: 3092422fe354dfb25fd8d7ead1d5992a6e321c80
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 19 22:09:36 2023 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 19 22:12:40 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3092422f
7
8 dev-lua/luasec: drop 1.3.0
9
10 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
11
12 dev-lua/luasec/Manifest | 1 -
13 dev-lua/luasec/luasec-1.3.0.ebuild | 89 --------------------------------------
14 2 files changed, 90 deletions(-)
15
16 diff --git a/dev-lua/luasec/Manifest b/dev-lua/luasec/Manifest
17 index 73f5a3c54d99..abada21bb7c7 100644
18 --- a/dev-lua/luasec/Manifest
19 +++ b/dev-lua/luasec/Manifest
20 @@ -1,3 +1,2 @@
21 DIST luasec-1.2.0.tar.gz 53379 BLAKE2B dad93b341565b602fa02a5551a127bce42e76cee5abb0314f9cc4a98f162d23b0f8b4b9c0f16423095e4b54ec5ab260ee06bef5993ad46f559ad1295dcc28856 SHA512 5564f73495bef7c5683285ff7648c7b82a3a3dfdce96e88c77cc8835427b6595a694e5a2bf0a4f6332fe52b8aed3d94531607df81260d7597458a6fb0465d3fe
22 -DIST luasec-1.3.0.tar.gz 54704 BLAKE2B f16009922f9fcb60f8e1da99011e683ad6e51afa218b936909a2a6ab9814d892e6d11307b3bf562292d0acd4ad2fb8875e4cc53c21d07f43aa056e54a451a205 SHA512 5dcaca773ad6ee00ca33cfcc2060c763a8c75ad45753a4e5f11e6e76bdb2a49a8b46780efec12146f691f900326218e63c11af5abb709ca84c16bb77ce791943
23 DIST luasec-1.3.1.tar.gz 54807 BLAKE2B e09d340b8bc391830d671dd5cbec76bd5190bebdd2e534800bea8efd19749a4379e2681bb7a6e6551da49109345f0b846904c222c0ecada6135d775e2060bfc7 SHA512 cfa4187518445abc6591bd0c24924122b62252be25ffd5564cf291f9a2ae3702a5fa299ffd265d2e0e8315b90d6783eccace4ff560f54f299161d3c5e3749508
24
25 diff --git a/dev-lua/luasec/luasec-1.3.0.ebuild b/dev-lua/luasec/luasec-1.3.0.ebuild
26 deleted file mode 100644
27 index 56a3d8392158..000000000000
28 --- a/dev-lua/luasec/luasec-1.3.0.ebuild
29 +++ /dev/null
30 @@ -1,89 +0,0 @@
31 -# Copyright 1999-2023 Gentoo Authors
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=8
35 -
36 -LUA_COMPAT=( lua5-{1..4} luajit )
37 -
38 -inherit lua toolchain-funcs
39 -
40 -DESCRIPTION="Lua binding for OpenSSL library to provide TLS/SSL communication"
41 -HOMEPAGE="https://github.com/brunoos/luasec"
42 -SRC_URI="https://github.com/brunoos/luasec/archive/v${PV}.tar.gz -> ${P}.tar.gz"
43 -
44 -LICENSE="MIT"
45 -SLOT="0"
46 -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
47 -
48 -RDEPEND="
49 - >=dev-lua/luasocket-3.0_rc1_p20200328-r103[${LUA_USEDEP}]
50 - dev-libs/openssl:0=
51 - ${LUA_DEPS}
52 -"
53 -DEPEND="${RDEPEND}"
54 -BDEPEND="virtual/pkgconfig"
55 -
56 -lua_src_prepare() {
57 - pushd "${BUILD_DIR}" || die
58 -
59 - ${ELUA} src/options.lua -g /usr/include/openssl/ssl.h > src/options.c || die
60 -
61 - popd
62 -}
63 -
64 -src_prepare() {
65 - default
66 -
67 - # Respect users CFLAGS
68 - sed -e 's/-O2//g' -i src/Makefile || die
69 -
70 - # Allow to redefine libraries linking
71 - sed -e 's/LIBS=/LIBS?=/g' -i src/Makefile || die
72 -
73 - lua_copy_sources
74 -
75 - lua_foreach_impl lua_src_prepare
76 -}
77 -
78 -lua_src_compile() {
79 - pushd "${BUILD_DIR}" || die
80 -
81 - local myemakeargs=(
82 - "CC=$(tc-getCC)"
83 - "CCLD=$(tc-getCC)"
84 - "INC_PATH=-I$(lua_get_include_dir)"
85 - "LIB_PATH=-L$(lua_get_cmod_dir)/socket"
86 - "LIBS=$($(tc-getPKG_CONFIG) --libs openssl) $(lua_get_cmod_dir)/socket/core.so"
87 - "MYLDFLAGS=-Wl,-rpath,$(lua_get_cmod_dir)/socket -Wl,-soname=socket/core.so"
88 - "EXTRA="
89 - "DEFS="
90 - )
91 -
92 - emake "${myemakeargs[@]}" linux
93 -
94 - popd
95 -}
96 -
97 -src_compile() {
98 - lua_foreach_impl lua_src_compile
99 -}
100 -
101 -lua_src_install() {
102 - pushd "${BUILD_DIR}" || die
103 -
104 - local emakeargs=(
105 - "DESTDIR=${ED}"
106 - "LUAPATH=$(lua_get_lmod_dir)"
107 - "LUACPATH=$(lua_get_cmod_dir)"
108 - )
109 -
110 - emake "${emakeargs[@]}" install
111 -
112 - popd
113 -}
114 -
115 -src_install() {
116 - lua_foreach_impl lua_src_install
117 -
118 - einstalldocs
119 -}