Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/luasec/
Date: Fri, 02 Nov 2018 20:47:45
Message-Id: 1541191648.17a59d211abf89c03c7adc40c7bceb466267be4d.candrews@gentoo
1 commit: 17a59d211abf89c03c7adc40c7bceb466267be4d
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 2 20:32:18 2018 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 2 20:47:28 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17a59d21
7
8 dev-lua/luasec: 0.7 version bump, add -9999 live version
9
10 Closes: https://bugs.gentoo.org/666762
11 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
12 Package-Manager: Portage-2.3.51, Repoman-2.3.11
13
14 dev-lua/luasec/Manifest | 1 +
15 dev-lua/luasec/luasec-0.7.ebuild | 49 +++++++++++++++++++++++++++++++++++++++
16 dev-lua/luasec/luasec-9999.ebuild | 49 +++++++++++++++++++++++++++++++++++++++
17 3 files changed, 99 insertions(+)
18
19 diff --git a/dev-lua/luasec/Manifest b/dev-lua/luasec/Manifest
20 index 276a3a3ad09..3ed43bd3414 100644
21 --- a/dev-lua/luasec/Manifest
22 +++ b/dev-lua/luasec/Manifest
23 @@ -1,2 +1,3 @@
24 DIST luasec-0.5.1.tar.gz 46820 BLAKE2B 3b3d33c59c6817a810bb4ab5968657e29d123d5496e9ba28f03636ce389b99fb1e7724d9f2531fc651c86c8252a08973e76ae65ee5ab551cfe4d450519982053 SHA512 c7c92c79d0ec3e12b69f88d810a19397eaf570957d1f13b9695ee435cb6f0f9c31f5bc20a7252aac93d18eed98a5d3fc8a181cd85845a704e469055f215609a8
25 DIST luasec-0.6.tar.gz 51071 BLAKE2B d10761399e074eaa657abad2788936296a6fd33db64291663e385b21fc4a4a19ff96fe1a88db9805a3794406f08c597a03c048cfc8675949baf9eaa9368b8b7f SHA512 f7004a329153d0126a3ea27b4986e9d83fb8f2de9c5c2f0c96427c50cc42e1252c69fd8cc69e2e8d423745d2dbfdb5a781b609938f7f502c7aedeb99fd0778cd
26 +DIST luasec-0.7.tar.gz 47965 BLAKE2B 5bd19cfb5c2529a6fbee221442730c87394f1bf3d5089dd83d18e91ef1a2b88cde19c59988e438eb37e50c02c40a8906ad11ce9b3247b03ea11ed6d9e890b7d6 SHA512 6adf5241aa5a0d92c9dd7fc7f7e426969475548f47979ccc28187471b3bad4132c215de6da1f471d21b05c6558d36309264512c9c4ac70a53d6f6e204cac1358
27
28 diff --git a/dev-lua/luasec/luasec-0.7.ebuild b/dev-lua/luasec/luasec-0.7.ebuild
29 new file mode 100644
30 index 00000000000..df666e66d83
31 --- /dev/null
32 +++ b/dev-lua/luasec/luasec-0.7.ebuild
33 @@ -0,0 +1,49 @@
34 +# Copyright 1999-2018 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +inherit multilib toolchain-funcs
40 +
41 +DESCRIPTION="Lua binding for OpenSSL library to provide TLS/SSL communication"
42 +HOMEPAGE="https://github.com/brunoos/luasec"
43 +
44 +if [[ ${PV} == *9999 ]] ; then
45 + EGIT_REPO_URI="https://github.com/brunoos/${PN}.git"
46 + inherit git-r3
47 +else
48 + SRC_URI="https://github.com/brunoos/luasec/archive/${P}.tar.gz"
49 + KEYWORDS="~amd64 ~arm ~x86"
50 + S=${WORKDIR}/${PN}-${P}
51 +fi
52 +
53 +LICENSE="MIT"
54 +SLOT="0"
55 +IUSE="libressl"
56 +
57 +RDEPEND="
58 + >=dev-lang/lua-5.1:0[deprecated]
59 + dev-lua/luasocket
60 + !libressl? ( dev-libs/openssl:0= ) libressl? ( dev-libs/libressl:= )"
61 +DEPEND="${RDEPEND}
62 + virtual/pkgconfig"
63 +
64 +src_prepare() {
65 + default
66 + sed -i -e "s/-O2//" src/Makefile || die
67 + lua src/options.lua -g /usr/include/openssl/ssl.h > src/options.h || die
68 +}
69 +
70 +src_compile() {
71 + emake \
72 + CC="$(tc-getCC)" \
73 + LD="$(tc-getCC)" \
74 + linux
75 +}
76 +
77 +src_install() {
78 + emake \
79 + LUAPATH="${D}/$(pkg-config --variable INSTALL_LMOD lua)" \
80 + LUACPATH="${D}/$(pkg-config --variable INSTALL_CMOD lua)" \
81 + install
82 +}
83
84 diff --git a/dev-lua/luasec/luasec-9999.ebuild b/dev-lua/luasec/luasec-9999.ebuild
85 new file mode 100644
86 index 00000000000..df666e66d83
87 --- /dev/null
88 +++ b/dev-lua/luasec/luasec-9999.ebuild
89 @@ -0,0 +1,49 @@
90 +# Copyright 1999-2018 Gentoo Authors
91 +# Distributed under the terms of the GNU General Public License v2
92 +
93 +EAPI=7
94 +
95 +inherit multilib toolchain-funcs
96 +
97 +DESCRIPTION="Lua binding for OpenSSL library to provide TLS/SSL communication"
98 +HOMEPAGE="https://github.com/brunoos/luasec"
99 +
100 +if [[ ${PV} == *9999 ]] ; then
101 + EGIT_REPO_URI="https://github.com/brunoos/${PN}.git"
102 + inherit git-r3
103 +else
104 + SRC_URI="https://github.com/brunoos/luasec/archive/${P}.tar.gz"
105 + KEYWORDS="~amd64 ~arm ~x86"
106 + S=${WORKDIR}/${PN}-${P}
107 +fi
108 +
109 +LICENSE="MIT"
110 +SLOT="0"
111 +IUSE="libressl"
112 +
113 +RDEPEND="
114 + >=dev-lang/lua-5.1:0[deprecated]
115 + dev-lua/luasocket
116 + !libressl? ( dev-libs/openssl:0= ) libressl? ( dev-libs/libressl:= )"
117 +DEPEND="${RDEPEND}
118 + virtual/pkgconfig"
119 +
120 +src_prepare() {
121 + default
122 + sed -i -e "s/-O2//" src/Makefile || die
123 + lua src/options.lua -g /usr/include/openssl/ssl.h > src/options.h || die
124 +}
125 +
126 +src_compile() {
127 + emake \
128 + CC="$(tc-getCC)" \
129 + LD="$(tc-getCC)" \
130 + linux
131 +}
132 +
133 +src_install() {
134 + emake \
135 + LUAPATH="${D}/$(pkg-config --variable INSTALL_LMOD lua)" \
136 + LUACPATH="${D}/$(pkg-config --variable INSTALL_CMOD lua)" \
137 + install
138 +}