diff options
Diffstat (limited to 'dev-lua/lua-openssl')
| -rw-r--r-- | dev-lua/lua-openssl/Manifest | 1 | ||||
| -rw-r--r-- | dev-lua/lua-openssl/lua-openssl-0.8.0.ebuild | 126 | ||||
| -rw-r--r-- | dev-lua/lua-openssl/lua-openssl-0.8.0_p6.ebuild | 18 | ||||
| -rw-r--r-- | dev-lua/lua-openssl/metadata.xml | 6 |
4 files changed, 139 insertions, 12 deletions
diff --git a/dev-lua/lua-openssl/Manifest b/dev-lua/lua-openssl/Manifest index 7cffc5180878..0a92c9352d62 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.0.tar.gz 417904 BLAKE2B ec64c443e1126fb0dd4189a10ca09af88f514be319a877ca3ddc621601037337e38e1618a8ce9d81709accc9457146d7a67c039486b90177c30997941a5ad3e8 SHA512 8e6b28aad2a8f78d61d70a09f125c7d002c328799a8611202debe73978008484fee8d8dd90b8deaff214059f02e042ccf68436185c4299b7dce814daad1311ab DIST lua-openssl-0.8.0_p6.tar.gz 418000 BLAKE2B 34474c607f6e39985c17f142b1067f2438b51c7e6f62861f65fa8c471722b56dee05a7a45eae277b368ee643a1820334de03c08f09c88a17e851925d575df6d4 SHA512 56125b8a88783b48bbeabd56be4732afe22ef54224b3f03f16e3cbc1ce94f554d6d8dea8236bff34786aad2720b53cbd05dcba85ca41497db61f339014fa3b95 diff --git a/dev-lua/lua-openssl/lua-openssl-0.8.0.ebuild b/dev-lua/lua-openssl/lua-openssl-0.8.0.ebuild new file mode 100644 index 000000000000..ac2bc0f6a302 --- /dev/null +++ b/dev-lua/lua-openssl/lua-openssl-0.8.0.ebuild @@ -0,0 +1,126 @@ +# Copyright 2021 Liguros Authors +# Distributed under the terms of the GNU General Public License v2 +EAPI=7 + +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/refs/tags/${PV}-0.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}/${P}-0" + +LICENSE="MIT openssl PHP-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="libressl test" +REQUIRED_USE="${LUA_REQUIRED_USE}" +RESTRICT="!test? ( test )" + +RDEPEND=" + !dev-lua/luaossl + !dev-lua/luasec + libressl? ( dev-libs/libressl:0= ) + !libressl? ( dev-libs/openssl:0=[-bindist] ) + ${LUA_DEPS} +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + test? ( ${RDEPEND} ) +" + +DOCS=( "README.md" "samples/." ) + +src_prepare() { + default + + # Allow override of LUA* variables + sed -e '/LUA /s/:=/?=/g' -e '/LUA_VERSION/s/:=/?=/g' -i Makefile || 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 + + insinto "$(lua_get_lmod_dir)" + doins -r "lib/." + + popd +} + +src_install() { + lua_foreach_impl lua_src_install + + einstalldocs +} diff --git a/dev-lua/lua-openssl/lua-openssl-0.8.0_p6.ebuild b/dev-lua/lua-openssl/lua-openssl-0.8.0_p6.ebuild index 486c9582b329..f48e115a92d8 100644 --- a/dev-lua/lua-openssl/lua-openssl-0.8.0_p6.ebuild +++ b/dev-lua/lua-openssl/lua-openssl-0.8.0_p6.ebuild @@ -1,6 +1,5 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 2021 Liguros Authors # Distributed under the terms of the GNU General Public License v2 - EAPI=7 EGIT_COMMIT_AUX="8d09895473b73e4fb72b7573615f69c36e1860a2" @@ -14,8 +13,9 @@ inherit lua toolchain-funcs DESCRIPTION="OpenSSL binding for Lua" HOMEPAGE="https://github.com/zhaozg/lua-openssl" + SRC_URI=" - https://github.com/zhaozg/${PN}/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.tar.gz + https://github.com/zhaozg/${PN}/archive/refs/tags/${PV}-0.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 " @@ -23,15 +23,16 @@ S="${WORKDIR}/${PN}-${MY_PV}" LICENSE="MIT openssl PHP-3" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" -IUSE="test" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="libressl test" REQUIRED_USE="${LUA_REQUIRED_USE}" RESTRICT="!test? ( test )" RDEPEND=" !dev-lua/luaossl !dev-lua/luasec - dev-libs/openssl:0=[-bindist] + libressl? ( dev-libs/libressl:0= ) + !libressl? ( dev-libs/openssl:0=[-bindist] ) ${LUA_DEPS} " DEPEND="${RDEPEND}" @@ -48,11 +49,6 @@ src_prepare() { # Allow override of LUA* variables sed -e '/LUA /s/:=/?=/g' -e '/LUA_VERSION/s/:=/?=/g' -i Makefile || die - # Disable TestCMS and TestCRL test suite, as it fails - # See: https://github.com/zhaozg/lua-openssl/issues/230 - # See: https://github.com/zhaozg/lua-openssl/issues/231 - sed -e '/6.cms.lua/d' -e '/5.x509_crl.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 diff --git a/dev-lua/lua-openssl/metadata.xml b/dev-lua/lua-openssl/metadata.xml index 5e8e5af8a0e1..40945c01a7ab 100644 --- a/dev-lua/lua-openssl/metadata.xml +++ b/dev-lua/lua-openssl/metadata.xml @@ -1,6 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> + <maintainer type="project"> + <email>dev@liguros.net</email> + <name>Development</name> + </maintainer> <maintainer type="person"> <email>conikost@gentoo.org</email> <name>Conrad Kostecki</name> @@ -16,5 +20,5 @@ <upstream> <remote-id type="github">zhaozg/lua-openssl</remote-id> </upstream> - <origin>gentoo-staging</origin> + <origin>ports</origin> </pkgmetadata>
\ No newline at end of file |
