From: "Conrad Kostecki" <conikost@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/luasec/
Date: Tue, 19 Oct 2021 19:56:31 +0000 (UTC) [thread overview]
Message-ID: <1634673345.3d98f204040e019732c3a6b24b3f4095b34ff782.conikost@gentoo> (raw)
commit: 3d98f204040e019732c3a6b24b3f4095b34ff782
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Mon Oct 18 22:35:24 2021 +0000
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Tue Oct 19 19:55:45 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d98f204
dev-lua/luasec: unbundle luasocket usage
Closes: https://github.com/gentoo/gentoo/pull/22631
Closes: https://bugs.gentoo.org/730352
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
dev-lua/luasec/luasec-1.0.2-r1.ebuild | 89 +++++++++++++++++++++++++++++++++++
1 file changed, 89 insertions(+)
diff --git a/dev-lua/luasec/luasec-1.0.2-r1.ebuild b/dev-lua/luasec/luasec-1.0.2-r1.ebuild
new file mode 100644
index 00000000000..b347d6e6c49
--- /dev/null
+++ b/dev-lua/luasec/luasec-1.0.2-r1.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2021 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:[~2021-10-19 19:56 UTC|newest]
Thread overview: 90+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-19 19:56 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ć
2022-04-14 20:49 Conrad Kostecki
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-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=1634673345.3d98f204040e019732c3a6b24b3f4095b34ff782.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