summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2020-11-22 18:44:18 +0100
committerConrad Kostecki <conikost@gentoo.org>2020-11-22 18:44:32 +0100
commit2e5274c088fea28e6f97f7f7a7396870b7388b94 (patch)
tree799dfd9f43f85186f02ca1d2bbecd4f19db732e0
parentdev-lua/luasocket: migrate to lua eclass (diff)
downloadgentoo-2e5274c088fea28e6f97f7f7a7396870b7388b94.tar.gz
gentoo-2e5274c088fea28e6f97f7f7a7396870b7388b94.tar.bz2
gentoo-2e5274c088fea28e6f97f7f7a7396870b7388b94.zip
dev-lua/luasocket: bump to newest snapshot
Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
-rw-r--r--dev-lua/luasocket/luasocket-3.0_rc1_p20200328.ebuild73
1 files changed, 73 insertions, 0 deletions
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
+}