From: "Conrad Kostecki" <conikost@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/luasec/
Date: Thu, 14 Apr 2022 20:49:19 +0000 (UTC) [thread overview]
Message-ID: <1649968896.882f5c5578c2491a2d1b5619cbf05a2f498aa03e.conikost@gentoo> (raw)
commit: 882f5c5578c2491a2d1b5619cbf05a2f498aa03e
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 14 20:41:36 2022 +0000
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Thu Apr 14 20:41:36 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=882f5c55
dev-lua/luasec: add 1.1.0
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
dev-lua/luasec/Manifest | 1 +
dev-lua/luasec/luasec-1.1.0.ebuild | 89 ++++++++++++++++++++++++++++++++++++++
2 files changed, 90 insertions(+)
diff --git a/dev-lua/luasec/Manifest b/dev-lua/luasec/Manifest
index 58e6b86aab21..448c866a4199 100644
--- a/dev-lua/luasec/Manifest
+++ b/dev-lua/luasec/Manifest
@@ -1 +1,2 @@
DIST luasec-1.0.2.tar.gz 52838 BLAKE2B 41bfaf8af6be56bb46c747b2bf3e938a164f43d2f39cde7386d5795811a555ebad3146344ef491412489de7679f82948bb9fb862e3ae98ab9b73f4116218a5ac SHA512 a873d8217b1ec9e66f50d7319ea0fa467b92b5855e7514dbd00429a26be3546e69fdfc985ac79a80d86f3c6845910b2e14a2198951dcad249b2d1c7d6855453f
+DIST luasec-1.1.0.tar.gz 53060 BLAKE2B c89e8feea3cb66108ed72c81e1525397bd3c58a25372661b49cbc7bb0fa1f4ab81e39b6065d99fc3e376333f36f9290b136c31e654a30248a6a1d30beaa5d5b2 SHA512 ce08be2c62e97ebfab30e867790874030d404d195ce336b149d9501d652e9b8efe201cc2d0bcbb3be16214d7e4763b5871e45cbc22db758724baab9f7cd78568
diff --git a/dev-lua/luasec/luasec-1.1.0.ebuild b/dev-lua/luasec/luasec-1.1.0.ebuild
new file mode 100644
index 000000000000..3e6906534f17
--- /dev/null
+++ b/dev-lua/luasec/luasec-1.1.0.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+
+inherit lua toolchain-funcs
+
+DESCRIPTION="Lua binding for OpenSSL library to provide TLS/SSL communication"
+HOMEPAGE="https://github.com/brunoos/luasec"
+SRC_URI="https://github.com/brunoos/luasec/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+
+RDEPEND="
+ >=dev-lua/luasocket-3.0_rc1_p20200328-r103[${LUA_USEDEP}]
+ dev-libs/openssl:0=
+ ${LUA_DEPS}
+"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+lua_src_prepare() {
+ pushd "${BUILD_DIR}" || die
+
+ ${ELUA} src/options.lua -g /usr/include/openssl/ssl.h > src/options.c || die
+
+ popd
+}
+
+src_prepare() {
+ default
+
+ # Respect users CFLAGS
+ sed -e 's/-O2//g' -i src/Makefile || die
+
+ # Allow to redefine libraries linking
+ sed -e 's/LIBS=/LIBS?=/g' -i src/Makefile || die
+
+ lua_copy_sources
+
+ lua_foreach_impl lua_src_prepare
+}
+
+lua_src_compile() {
+ pushd "${BUILD_DIR}" || die
+
+ local myemakeargs=(
+ "CC=$(tc-getCC)"
+ "CCLD=$(tc-getCC)"
+ "INC_PATH=-I$(lua_get_include_dir)"
+ "LIB_PATH=-L$(lua_get_cmod_dir)/socket"
+ "LIBS=$($(tc-getPKG_CONFIG) --libs openssl) $(lua_get_cmod_dir)/socket/core.so"
+ "MYLDFLAGS=-Wl,-rpath,$(lua_get_cmod_dir)/socket -Wl,-soname=socket/core.so"
+ "EXTRA="
+ "DEFS="
+ )
+
+ emake "${myemakeargs[@]}" linux
+
+ popd
+}
+
+src_compile() {
+ lua_foreach_impl lua_src_compile
+}
+
+lua_src_install() {
+ pushd "${BUILD_DIR}" || die
+
+ local emakeargs=(
+ "DESTDIR=${ED}"
+ "LUAPATH=$(lua_get_lmod_dir)"
+ "LUACPATH=$(lua_get_cmod_dir)"
+ )
+
+ emake "${emakeargs[@]}" install
+
+ popd
+}
+
+src_install() {
+ lua_foreach_impl lua_src_install
+
+ einstalldocs
+}
next reply other threads:[~2022-04-14 20:49 UTC|newest]
Thread overview: 90+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-14 20:49 Conrad Kostecki [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-06-22 20:01 [gentoo-commits] repo/gentoo:master commit in: dev-lua/luasec/ Conrad Kostecki
2023-09-02 19:52 Conrad Kostecki
2023-04-20 5:01 Sam James
2023-04-20 4:38 Arthur Zamarin
2023-04-20 4:38 Arthur Zamarin
2023-04-20 4:17 Sam James
2023-04-20 4:14 Arthur Zamarin
2023-04-20 4:02 Sam James
2023-03-19 22:12 Conrad Kostecki
2023-03-19 22:12 Conrad Kostecki
2023-03-14 20:22 Conrad Kostecki
2022-08-31 19:39 Conrad Kostecki
2022-08-31 18:13 Sam James
2022-08-31 6:38 Arthur Zamarin
2022-08-31 6:27 Jakov Smolić
2022-08-31 2:49 Sam James
2022-08-30 23:58 Sam James
2022-08-30 23:58 Sam James
2022-07-31 13:56 Conrad Kostecki
2022-05-15 14:27 Conrad Kostecki
2022-05-15 11:16 Jakov Smolić
2022-05-15 9:05 Jakov Smolić
2022-05-15 8:52 Jakov Smolić
2022-05-15 8:21 Jakov Smolić
2022-05-15 8:19 Jakov Smolić
2021-11-21 16:47 Conrad Kostecki
2021-11-20 7:26 Agostino Sarubbo
2021-11-19 19:24 Arthur Zamarin
2021-11-19 18:10 Jakov Smolić
2021-11-19 11:39 Arthur Zamarin
2021-11-19 7:24 Arthur Zamarin
2021-11-19 7:24 Arthur Zamarin
2021-10-19 19:56 Conrad Kostecki
2021-10-02 16:32 Conrad Kostecki
2021-10-02 15:43 Sam James
2021-09-21 16:35 Sam James
2021-09-20 4:02 Sam James
2021-09-19 6:39 Agostino Sarubbo
2021-09-19 3:35 Sam James
2021-09-18 21:45 Sam James
2021-06-04 18:35 Conrad Kostecki
2021-06-04 18:21 Sam James
2021-06-03 19:58 Sam James
2021-06-02 1:13 Sam James
2021-06-01 20:18 Sam James
2021-06-01 20:18 Sam James
2021-04-30 17:42 Mikle Kolyada
2021-04-26 21:46 Conrad Kostecki
2021-04-26 21:46 Conrad Kostecki
2021-04-26 10:38 Sam James
2021-04-26 10:34 Sam James
2021-04-25 15:52 Sam James
2021-04-25 15:21 Sam James
2021-04-25 15:21 Sam James
2021-04-25 12:32 Sam James
2021-04-21 20:29 Conrad Kostecki
2021-04-20 21:20 Sergei Trofimovich
2021-04-19 18:32 Sergei Trofimovich
2021-03-26 0:55 Conrad Kostecki
2021-02-21 21:22 Conrad Kostecki
2021-01-27 19:48 Conrad Kostecki
2021-01-27 19:48 Conrad Kostecki
2021-01-23 22:51 Sam James
2020-12-14 17:59 Conrad Kostecki
2020-11-30 13:33 Conrad Kostecki
2020-11-29 15:37 Conrad Kostecki
2020-11-29 15:37 Conrad Kostecki
2020-11-28 17:45 Conrad Kostecki
2020-11-28 17:45 Conrad Kostecki
2020-10-17 23:49 Sam James
2020-10-14 21:24 Conrad Kostecki
2020-10-12 10:21 Agostino Sarubbo
2020-10-12 7:02 Agostino Sarubbo
2020-10-12 6:57 Agostino Sarubbo
2020-10-11 23:54 Conrad Kostecki
2020-10-11 23:27 Conrad Kostecki
2020-07-09 7:54 Joonas Niilola
2020-07-09 7:54 Joonas Niilola
2020-07-09 7:54 Joonas Niilola
2020-01-09 18:41 Rafael Martins
2019-05-19 20:57 Mikle Kolyada
2019-05-19 20:51 Mikle Kolyada
2019-05-16 23:56 Thomas Deutschmann
2018-11-02 20:47 Craig Andrews
2016-11-06 15:18 Rafael Martins
2016-03-02 14:42 Jason Donenfeld
2015-12-03 13:28 Agostino Sarubbo
2015-11-24 20:36 Markus Meier
2015-11-23 8:50 Agostino Sarubbo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1649968896.882f5c5578c2491a2d1b5619cbf05a2f498aa03e.conikost@gentoo \
--to=conikost@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox