public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Conrad Kostecki" <conikost@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/lua-openssl/
Date: Wed, 31 May 2023 16:18:15 +0000 (UTC)	[thread overview]
Message-ID: <1685549885.74d89ca9c0710c0fe6b2a02aa27458f81ca73214.conikost@gentoo> (raw)

commit:     74d89ca9c0710c0fe6b2a02aa27458f81ca73214
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Wed May 31 16:13:18 2023 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Wed May 31 16:18:05 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74d89ca9

dev-lua/lua-openssl: add 0.8.3_p2

Closes: https://bugs.gentoo.org/907391
Closes: https://bugs.gentoo.org/895864
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 dev-lua/lua-openssl/Manifest                    |   1 +
 dev-lua/lua-openssl/lua-openssl-0.8.3_p2.ebuild | 124 ++++++++++++++++++++++++
 2 files changed, 125 insertions(+)

diff --git a/dev-lua/lua-openssl/Manifest b/dev-lua/lua-openssl/Manifest
index c18358e4d06e..9a996c7db30b 100644
--- a/dev-lua/lua-openssl/Manifest
+++ b/dev-lua/lua-openssl/Manifest
@@ -1,3 +1,4 @@
 DIST lua-auxiliar-8d09895473b73e4fb72b7573615f69c36e1860a2.tar.gz 3690 BLAKE2B 8e31e8ad75bcc5840223068fdc9b634c2cbc42d713bba0792a0b04f8e018e36e3bab16a07aaa725d8b2bbd55c3a74271a21366c2cde1b4c6bd735c9438efedec SHA512 c461c23cd50ef43aa37ce2c819a9a485ead1011ecb5ff083a092e49ac79d5398aff1631f441cb8e59acd820024ed51e74420b74da751c0fccd2cfce94f039952
 DIST lua-compat-5.3-0.10.tar.gz 53695 BLAKE2B e570aedb23b8ed7ca38c4316ffab25b93a0f9f6f0fae79af563ca8a81dd6453ac273e1f9e70674c484a2dec68749e7d53a1c1736a72616c210b8e38a31b3f191 SHA512 f7f39085f4f6b16095f41e635b4c5477b3dab5e42b5b65a9d522941a3807ea521d4a27a77293a3c9d0ecea78a1f6c2a2497394b2d220f4d7d65e23510563d46d
 DIST lua-openssl-0.8.2_p1.tar.gz 400195 BLAKE2B 19d920241e5ee61b9892eb78ef608051ea226a0d3f299b96995b049fc5afb784c2036c2db95b3a141a810acc9372c3376abe61947c4d3758f8769fd572cde26e SHA512 20e547bbd2f153124ea79cc8ee4c652301e833854026ae45e5f24068632afcc43d36ddabf9bfa4645c1cbc09bad99719f4ca1ba1e41331f58fe09c3b91bac705
+DIST lua-openssl-0.8.3_p2.tar.gz 401761 BLAKE2B 3efd8049806e03e8a6a7f77a06d8c1f7d98f2133143d7dc28eb6d0abf7821a93446df6334e906559dec5cb758719157ba75502215aff7081b9e7c977d35f45f4 SHA512 024edd5c88beb267f829c26f746731045fe8f713beca1caf2325ae5a4ee179d220a3ebd3af9c3efb574f16f0bff717d7357756d14a4ff41bd73e56ccc37cedf8

diff --git a/dev-lua/lua-openssl/lua-openssl-0.8.3_p2.ebuild b/dev-lua/lua-openssl/lua-openssl-0.8.3_p2.ebuild
new file mode 100644
index 000000000000..8b1181de43af
--- /dev/null
+++ b/dev-lua/lua-openssl/lua-openssl-0.8.3_p2.ebuild
@@ -0,0 +1,124 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+EGIT_COMMIT_AUX="8d09895473b73e4fb72b7573615f69c36e1860a2"
+LUA_COMPAT=( lua5-{1..4} luajit )
+MY_PN_AUX="lua-auxiliar"
+MY_PN_COMPAT="lua-compat-5.3"
+MY_PV="${PV//_p/-}"
+MY_PV_COMPAT="0.10"
+
+inherit lua toolchain-funcs
+
+DESCRIPTION="OpenSSL binding for Lua"
+HOMEPAGE="https://github.com/zhaozg/lua-openssl"
+SRC_URI="
+	https://github.com/zhaozg/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz
+	https://github.com/zhaozg/${MY_PN_AUX}/archive/${EGIT_COMMIT_AUX}.tar.gz -> ${MY_PN_AUX}-${EGIT_COMMIT_AUX}.tar.gz
+	https://github.com/keplerproject/${MY_PN_COMPAT}/archive/v${MY_PV_COMPAT}.tar.gz -> ${MY_PN_COMPAT}-${MY_PV_COMPAT}.tar.gz
+"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+LICENSE="MIT openssl PHP-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="test"
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	!dev-lua/luaossl
+	!dev-lua/luasec
+	dev-libs/openssl:0=[-bindist(-)]
+	${LUA_DEPS}
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+	virtual/pkgconfig
+	test? ( ${RDEPEND} )
+"
+
+src_prepare() {
+	default
+
+	# Allow override of LUA* variables
+	sed -e '/LUA  /s/:=/?=/g' -e '/LUA_VERSION/s/:=/?=/g' -i Makefile || die
+
+	# Disable TestCMS test suite, as it fails
+	# See: https://github.com/zhaozg/lua-openssl/issues/230
+	sed -e '/6.cms.lua/d' -i test/test.lua || die
+
+	# Prepare needed dependencies (source code files only)
+	rm -r deps/{auxiliar,lua-compat} || die
+	mv "${WORKDIR}/${MY_PN_AUX}-${EGIT_COMMIT_AUX}" deps/auxiliar || die
+	mv "${WORKDIR}/${MY_PN_COMPAT}-${MY_PV_COMPAT}" deps/lua-compat || die
+
+	lua_copy_sources
+}
+
+lua_src_compile() {
+	pushd "${BUILD_DIR}" || die
+
+	local myemakeargs=(
+		"AR=$(tc-getAR)"
+		"CC=$(tc-getCC)"
+		"LUA="
+		"LUA_CFLAGS=${CFLAGS} $(lua_get_CFLAGS)"
+		"LUA_LIBS=${LDFLAGS}"
+		"LUA_VERSION=$(ver_cut 1-2 $(lua_get_version))"
+		"TARGET_SYS=${CTARGET:-${CHOST}}"
+	)
+
+	emake "${myemakeargs[@]}"
+
+	popd
+}
+
+src_compile() {
+	lua_foreach_impl lua_src_compile
+}
+
+lua_src_test() {
+	pushd "${BUILD_DIR}" || die
+
+	local myemakeargs=(
+		"LUA=${ELUA}"
+		"LUA_CFLAGS="
+		"LUA_LIBS="
+		"LUA_VERSION=$(ver_cut 1-2 $(lua_get_version))"
+		"TARGET_SYS=${CTARGET:-${CHOST}}"
+	)
+
+	emake "${myemakeargs[@]}" test
+
+	popd
+}
+
+src_test() {
+	lua_foreach_impl lua_src_test
+}
+
+lua_src_install() {
+	pushd "${BUILD_DIR}" || die
+
+	local myemakeargs=(
+		"LUA="
+		"LUA_CFLAGS="
+		"LUA_LIBDIR=${ED}/$(lua_get_cmod_dir)"
+		"LUA_LIBS="
+		"LUA_VERSION=$(ver_cut 1-2 $(lua_get_version))"
+		"TARGET_SYS=${CTARGET:-${CHOST}}"
+	)
+
+	emake "${myemakeargs[@]}" install
+
+	popd
+}
+
+src_install() {
+	lua_foreach_impl lua_src_install
+
+	einstalldocs
+}


             reply	other threads:[~2023-05-31 16:18 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-31 16:18 Conrad Kostecki [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-01-23 23:51 [gentoo-commits] repo/gentoo:master commit in: dev-lua/lua-openssl/ Conrad Kostecki
2023-05-31 16:18 Conrad Kostecki
2022-02-04 12:37 Conrad Kostecki
2022-02-04 12:37 Conrad Kostecki
2022-01-20 23:56 Conrad Kostecki
2021-08-16 19:57 Conrad Kostecki
2021-04-30 17:42 Mikle Kolyada
2021-04-22 19:31 Sergei Trofimovich
2021-04-21 20:29 Conrad Kostecki
2021-04-21 20:11 Conrad Kostecki
2021-04-20 21:20 Sergei Trofimovich
2021-04-15 21:38 Conrad Kostecki
2021-04-14 20:08 Conrad Kostecki
2021-04-14 20:08 Conrad Kostecki
2021-02-21 21:22 Conrad Kostecki
2021-01-27 19:48 Conrad Kostecki
2020-12-20 22:56 Conrad Kostecki
2020-12-20 22:56 Conrad Kostecki
2020-12-04 23:10 Conrad Kostecki
2020-12-04 11:32 Conrad Kostecki
2020-12-04 11:15 Conrad Kostecki
2020-12-04 11:12 Conrad Kostecki
2020-12-04 11:12 Conrad Kostecki
2020-11-24 18:12 Conrad Kostecki
2020-11-24 18:12 Conrad Kostecki
2020-06-20  1:27 Aaron Bauman
2020-04-23 20:38 Patrick McLean
2020-01-30  1:19 Patrick McLean
2020-01-28 19:39 Stefan Strogin
2019-12-06  4:29 Patrick McLean
2019-12-06  2:41 Patrick McLean
2018-11-09 22:53 Patrice Clement
2018-09-30 13:24 Michał Górny
2018-09-30 13:24 Michał Górny
2018-04-08 19:59 Jonas Stein
2016-06-26 12:21 Anthony G. Basile
2015-10-24 13:03 Amy Winston
2015-10-24 12:13 Amy Winston

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=1685549885.74d89ca9c0710c0fe6b2a02aa27458f81ca73214.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