From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 62CCB138359 for ; Sun, 22 Nov 2020 17:44:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AC9B0E078A; Sun, 22 Nov 2020 17:44:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 10BE0E078A for ; Sun, 22 Nov 2020 17:44:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E8534340B57 for ; Sun, 22 Nov 2020 17:44:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C37EE464 for ; Sun, 22 Nov 2020 17:44:42 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1606067072.2e5274c088fea28e6f97f7f7a7396870b7388b94.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/luasocket/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lua/luasocket/luasocket-3.0_rc1_p20200328.ebuild X-VCS-Directories: dev-lua/luasocket/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 2e5274c088fea28e6f97f7f7a7396870b7388b94 X-VCS-Branch: master Date: Sun, 22 Nov 2020 17:44:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f187a071-6c6f-446e-b6e1-17aaf16a1297 X-Archives-Hash: 433aafcf68e93a50af5a0463b2d1b36e commit: 2e5274c088fea28e6f97f7f7a7396870b7388b94 Author: Conrad Kostecki gentoo org> AuthorDate: Sun Nov 22 17:44:18 2020 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Sun Nov 22 17:44:32 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e5274c0 dev-lua/luasocket: bump to newest snapshot Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Conrad Kostecki gentoo.org> .../luasocket/luasocket-3.0_rc1_p20200328.ebuild | 73 ++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/dev-lua/luasocket/luasocket-3.0_rc1_p20200328.ebuild b/dev-lua/luasocket/luasocket-3.0_rc1_p20200328.ebuild new file mode 100644 index 00000000000..4591859cc60 --- /dev/null +++ b/dev-lua/luasocket/luasocket-3.0_rc1_p20200328.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +EGIT_COMMIT="5b18e475f38fcf28429b1cc4b17baee3b9793a62" +LUA_REQ_USE="${MULTILIB_USEDEP}" + +inherit flag-o-matic multilib multilib-minimal toolchain-funcs + +DESCRIPTION="Networking support library for the Lua language" +HOMEPAGE=" + http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/ + https://github.com/diegonehab/luasocket +" +SRC_URI="https://github.com/diegonehab/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${EGIT_COMMIT}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86" +RESTRICT="test" + +RDEPEND=">=dev-lang/lua-5.1.5-r2:0[${MULTILIB_USEDEP}]" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +HTML_DOCS="doc/." + +src_prepare() { + default + + # Respect users CFLAGS + sed -e 's/-O2 -ggdb3//g' -i src/makefile || die + + # Workaround for 32-bit systems + append-cflags -fno-stack-protector + + multilib_copy_sources +} + +multilib_src_compile() { + local myemakeargs=( + "CC=$(tc-getCC)" + "LD=$(tc-getCC)" + "LDFLAGS_linux=-O -fpic -shared -o" + "LUAINC_linux=$($(tc-getPKG_CONFIG) --variable INSTALL_INC lua)/lua$($(tc-getPKG_CONFIG) --variable V lua)" + "LUAV=$($(tc-getPKG_CONFIG) --variable V lua)" + "MYCFLAGS=${CFLAGS}" + "MYLDFLAGS=${LDFLAGS}" + ) + + emake "${myemakeargs[@]}" all +} + +multilib_src_install() { + local myemakeargs=( + "CDIR=$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)" + "DESTDIR=${ED}" + "LDIR=$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)" + "LUAPREFIX_linux=" + ) + + emake "${myemakeargs[@]}" install + emake "${myemakeargs[@]}" install-unix + + insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_INC lua)/$($(tc-getPKG_CONFIG) --variable V lua)"/luasocket + doins src/*.h +} + +multilib_src_install_all() { + einstalldocs +}