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/luaossl/
Date: Wed, 02 Dec 2020 23:30:18
Message-Id: 1606951801.81d6f8c24d408a080750094d8fc8eac2eeb747d9.conikost@gentoo
1 commit: 81d6f8c24d408a080750094d8fc8eac2eeb747d9
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 2 23:03:41 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 2 23:30:01 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81d6f8c2
7
8 dev-lua/luaossl: bump to version 20200709
9
10 Closes: https://bugs.gentoo.org/730024
11 Closes: https://bugs.gentoo.org/737196
12 Closes: https://bugs.gentoo.org/738036
13 Package-Manager: Portage-3.0.9, Repoman-3.0.2
14 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
15
16 dev-lua/luaossl/Manifest | 1 +
17 dev-lua/luaossl/luaossl-20200709.ebuild | 67 +++++++++++++++++++++++++++++++++
18 2 files changed, 68 insertions(+)
19
20 diff --git a/dev-lua/luaossl/Manifest b/dev-lua/luaossl/Manifest
21 index 9849ac7fb15..d0907d437b4 100644
22 --- a/dev-lua/luaossl/Manifest
23 +++ b/dev-lua/luaossl/Manifest
24 @@ -2,3 +2,4 @@ DIST luaossl-20150727.tar.gz 355486 BLAKE2B 81907c3a3f565432eb2d2b17db48f3814968
25 DIST luaossl-rel-20180708.tar.gz 455381 BLAKE2B d57e27638e6aee44a94f85094bab9161f0b87bdb379863fdef4517a1cb3415f4ef7e62967ee1e3fa2dde4d5629a24d732dc8ea0fd2ea54ccd84f69c4b18e2c57 SHA512 b2a73a7e7ace9a01c8c5a26603107f7741de88de32c393ed9134b70d55278c81d48e357955e671654825de282449b9570ecdc6a4fbcf4890439c0200ba471338
26 DIST luaossl-rel-20181207.tar.gz 472294 BLAKE2B 1dd991cd73a432b7f8918d391bd3cbea98d77d4bd6390815840e3c7f63e98b9bcca6d9a4841da663ba7ecaa19880a4f3db4fce09d47d103cfd85f8d920efe84d SHA512 e5412c115d0dda3b3f2446ffd9a8d9b78be3800e834d7a43ec2cde16e56798fe2467d91add3ab8030321e6bf1a12349ecd5987dd88216ab0d7ba4ff451f0fb91
27 DIST luaossl-rel-20190731.tar.gz 350324 BLAKE2B ff80f8ef69472eb0bb908d292f906d4d2be30b6350b04ecc4b4f6414aa6c6d44109a99187d6a89519d60b23ff9259bdda48bf0e51032785abee2002611037033 SHA512 09315deb0c40b59230d80262906cb9f067660242315544179ec5df57a028b088c56a4bb0b944e5975bccf86d521901eae36006c5623ec1159cfca94d05fb6890
28 +DIST luaossl-rel-20200709.tar.gz 352960 BLAKE2B f4cd53937d7a9c724ab9f2f6a13f1da8fa54216f01fe2af7e65cf7ebdad1f8740491ba1fc6bcc2bf4ac377bde0d2e370433e76a5105c6226e0d9745e12bec0ea SHA512 324175f65e9d292ecb1343cfa9e111f1fd17f15e67037bd705d3db95d32b859c039a6e70620d649f446a8e7043a125a75c64de1714f0fe18e077fb9c017bea34
29
30 diff --git a/dev-lua/luaossl/luaossl-20200709.ebuild b/dev-lua/luaossl/luaossl-20200709.ebuild
31 new file mode 100644
32 index 00000000000..0de911787f2
33 --- /dev/null
34 +++ b/dev-lua/luaossl/luaossl-20200709.ebuild
35 @@ -0,0 +1,67 @@
36 +# Copyright 1999-2020 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +MY_P="${PN}-rel-${PV}"
42 +
43 +inherit toolchain-funcs
44 +
45 +DESCRIPTION="Most comprehensive OpenSSL module in the Lua universe"
46 +HOMEPAGE="https://github.com/wahern/luaossl"
47 +SRC_URI="https://github.com/wahern/${PN}/archive/rel-${PV}.tar.gz -> ${MY_P}.tar.gz"
48 +S="${WORKDIR}/${MY_P}"
49 +
50 +LICENSE="MIT"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
53 +IUSE="examples luajit"
54 +
55 +RDEPEND="
56 + dev-libs/openssl:0[-bindist]
57 + !dev-lua/luacrypto
58 + !dev-lua/lua-openssl
59 + !dev-lua/luasec
60 + luajit? ( dev-lang/luajit:2 )
61 + !luajit? ( dev-lang/lua:0 )
62 +"
63 +DEPEND="${RDEPEND}"
64 +BDEPEND="virtual/pkgconfig"
65 +
66 +DOCS=( "doc/." )
67 +
68 +src_prepare() {
69 + default
70 +
71 + # Remove Lua autodetection
72 + # Respect users CFLAGS
73 + sed -e '/LUAPATH :=/d' -e '/LUAPATH_FN =/d' -e '/HAVE_API_FN =/d' -e '/WITH_API_FN/d' -e 's/-O2//g' -i GNUmakefile || die
74 +
75 + # Set LUA version
76 + LUA_VERSION=$($(tc-getPKG_CONFIG) --variable=$(usex luajit abiver V) $(usex luajit luajit lua))
77 +}
78 +
79 +src_compile() {
80 + local myemakeargs=(
81 + "CC=$(tc-getCC)"
82 + "ALL_CPPFLAGS=${CPPFLAGS} -I$($(tc-getPKG_CONFIG) --variable includedir $(usex luajit 'luajit' 'lua'))"
83 + "libdir="
84 + )
85 +
86 + emake "${myemakeargs[@]}" openssl${LUA_VERSION}
87 +}
88 +
89 +src_install() {
90 + local myemakeargs=(
91 + "DESTDIR=${D}"
92 + "lua${LUA_VERSION/./}cpath=$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD $(usex luajit 'luajit' 'lua'))"
93 + "lua${LUA_VERSION/./}path=$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))"
94 + "prefix=${EPREFIX}/usr"
95 + )
96 +
97 + emake "${myemakeargs[@]}" install${LUA_VERSION}
98 +
99 + use examples && dodoc -r "examples/."
100 +
101 + einstalldocs
102 +}