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, 29 Nov 2020 15:37:58
Message-Id: 1606663430.928b3aefcd792d1d80ee154a12773f4cf1585621.conikost@gentoo
1 commit: 928b3aefcd792d1d80ee154a12773f4cf1585621
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 29 15:23:50 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 29 15:23:50 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=928b3aef
7
8 dev-lua/luasec: update ebuild
9
10 Updated ebuild not to use clean.
11
12 Package-Manager: Portage-3.0.9, Repoman-3.0.2
13 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
14
15 dev-lua/luasec/luasec-0.9-r102.ebuild | 88 +++++++++++++++++++++++++++++++++++
16 1 file changed, 88 insertions(+)
17
18 diff --git a/dev-lua/luasec/luasec-0.9-r102.ebuild b/dev-lua/luasec/luasec-0.9-r102.ebuild
19 new file mode 100644
20 index 00000000000..d4a31a7034a
21 --- /dev/null
22 +++ b/dev-lua/luasec/luasec-0.9-r102.ebuild
23 @@ -0,0 +1,88 @@
24 +# Copyright 1999-2020 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +LUA_COMPAT=( lua5-{1..3} )
30 +LUA_REQ_USE="deprecated"
31 +
32 +inherit lua toolchain-funcs
33 +
34 +DESCRIPTION="Lua binding for OpenSSL library to provide TLS/SSL communication"
35 +HOMEPAGE="https://github.com/brunoos/luasec"
36 +SRC_URI="https://github.com/brunoos/luasec/archive/v${PV}.tar.gz -> ${P}.tar.gz"
37 +
38 +LICENSE="MIT"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
41 +IUSE="libressl"
42 +REQUIRED_USE="${LUA_REQUIRED_USE}"
43 +
44 +RDEPEND="
45 + >=dev-lua/luasocket-3.0_rc1_p20200328-r100[${LUA_USEDEP}]
46 + libressl? ( dev-libs/libressl:= )
47 + !libressl? ( dev-libs/openssl:0= )
48 + ${LUA_DEPS}
49 +"
50 +DEPEND="${RDEPEND}"
51 +BDEPEND="virtual/pkgconfig"
52 +
53 +lua_src_prepare() {
54 + pushd "${BUILD_DIR}" || die
55 +
56 + ${ELUA} src/options.lua -g /usr/include/openssl/ssl.h > src/options.c || die
57 +
58 + popd
59 +}
60 +
61 +src_prepare() {
62 + default
63 +
64 + # Respect users CFLAGS
65 + sed -e 's/-O2//g' -i src/Makefile || die
66 +
67 + lua_copy_sources
68 +
69 + lua_foreach_impl lua_src_prepare
70 +}
71 +
72 +lua_src_compile() {
73 + pushd "${BUILD_DIR}" || die
74 +
75 + local myemakeargs=(
76 + "CC=$(tc-getCC)"
77 + "LD=$(tc-getCC)"
78 + "INC_PATH=-I$(lua_get_include_dir)"
79 + "LIB_PATH=$(lua_get_CFLAGS)"
80 + "MYCFLAGS=${CFLAGS}"
81 + "MYLDFLAGS=${LDFLAGS}"
82 + )
83 +
84 + emake "${myemakeargs[@]}" linux
85 +
86 + popd
87 +}
88 +
89 +src_compile() {
90 + lua_foreach_impl lua_src_compile
91 +}
92 +
93 +lua_src_install() {
94 + pushd "${BUILD_DIR}" || die
95 +
96 + local emakeargs=(
97 + "DESTDIR=${ED}"
98 + "LUAPATH=$(lua_get_lmod_dir)"
99 + "LUACPATH=$(lua_get_cmod_dir)"
100 + )
101 +
102 + emake "${emakeargs[@]}" install
103 +
104 + popd
105 +}
106 +
107 +src_install() {
108 + lua_foreach_impl lua_src_install
109 +
110 + einstalldocs
111 +}