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/luasocket/
Date: Sun, 29 Nov 2020 15:38:00
Message-Id: 1606664078.df3228a18387762af34cc6f487583336abfff1d5.conikost@gentoo
1 commit: df3228a18387762af34cc6f487583336abfff1d5
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 29 15:34:38 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 29 15:34:38 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df3228a1
7
8 dev-lua/luasocket: update ebuild
9
10 Updated ebuild not to use clean.
11
12 Package-Manager: Portage-3.0.9, Repoman-3.0.2
13 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
14
15 .../luasocket-3.0_rc1_p20200328-r101.ebuild | 97 ++++++++++++++++++++++
16 1 file changed, 97 insertions(+)
17
18 diff --git a/dev-lua/luasocket/luasocket-3.0_rc1_p20200328-r101.ebuild b/dev-lua/luasocket/luasocket-3.0_rc1_p20200328-r101.ebuild
19 new file mode 100644
20 index 00000000000..dab20430d3c
21 --- /dev/null
22 +++ b/dev-lua/luasocket/luasocket-3.0_rc1_p20200328-r101.ebuild
23 @@ -0,0 +1,97 @@
24 +# Copyright 1999-2020 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +EGIT_COMMIT="5b18e475f38fcf28429b1cc4b17baee3b9793a62"
30 +LUA_COMPAT=( lua5-{1..3} )
31 +LUA_REQ_USE="${MULTILIB_USEDEP}"
32 +MY_P="${PN}-${EGIT_COMMIT}"
33 +
34 +inherit flag-o-matic lua multilib-minimal toolchain-funcs
35 +
36 +DESCRIPTION="Networking support library for the Lua language"
37 +HOMEPAGE="
38 + http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/
39 + https://github.com/diegonehab/luasocket
40 +"
41 +SRC_URI="https://github.com/diegonehab/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
42 +S="${WORKDIR}/${MY_P}"
43 +
44 +LICENSE="MIT"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
47 +REQUIRED_USE="${LUA_REQUIRED_USE}"
48 +RESTRICT="test"
49 +
50 +RDEPEND="${LUA_DEPS}"
51 +DEPEND="${RDEPEND}"
52 +BDEPEND="virtual/pkgconfig"
53 +
54 +HTML_DOCS="doc/."
55 +
56 +src_prepare() {
57 + default
58 +
59 + # Respect users CFLAGS
60 + sed -e 's/-O2 -ggdb3//g' -i src/makefile || die
61 +
62 + # Workaround for 32-bit systems
63 + append-cflags -fno-stack-protector
64 +
65 + lua_copy_sources
66 + lua_foreach_impl multilib_copy_sources
67 +}
68 +
69 +lua_multilib_src_compile() {
70 + pushd "${WORKDIR}/${MY_P}-${ELUA/./-}-${MULTILIB_ABI_FLAG}.${ABI}" || die
71 +
72 + local myemakeargs=(
73 + "CC=$(tc-getCC)"
74 + "LD=$(tc-getCC)"
75 + "LDFLAGS_linux=-O -fpic -shared -o"
76 + "LUAINC_linux=$(lua_get_include_dir)"
77 + "LUAV=${ELUA}"
78 + "MIME_V=1.0.3-${ELUA}"
79 + "MYCFLAGS=${CFLAGS}"
80 + "MYLDFLAGS=${LDFLAGS}"
81 + "SOCKET_V=3.0-rc1-${ELUA}"
82 + )
83 +
84 + emake "${myemakeargs[@]}" all
85 +
86 + popd
87 +}
88 +
89 +multilib_src_compile() {
90 + lua_foreach_impl lua_multilib_src_compile
91 +}
92 +
93 +lua_multilib_src_install() {
94 + pushd "${WORKDIR}/${MY_P}-${ELUA/./-}-${MULTILIB_ABI_FLAG}.${ABI}" || die
95 +
96 + local myemakeargs=(
97 + "CDIR=$(lua_get_cmod_dir)"
98 + "DESTDIR=${ED}"
99 + "LDIR=$(lua_get_lmod_dir)"
100 + "LUAPREFIX_linux="
101 + "MIME_V=1.0.3-${ELUA}"
102 + "SOCKET_V=3.0-rc1-${ELUA}"
103 + )
104 +
105 + emake "${myemakeargs[@]}" install
106 + emake "${myemakeargs[@]}" install-unix
107 +
108 + insinto "$(lua_get_include_dir)"/luasocket
109 + doins src/*.h
110 +
111 + popd
112 +}
113 +
114 +multilib_src_install() {
115 + lua_foreach_impl lua_multilib_src_install
116 +}
117 +
118 +multilib_src_install_all() {
119 + einstalldocs
120 +}