Created attachment 353612 [details] luasocket-3.0_rc1.ebuild Attached is an ebuild for the latest release of luasocket, which now has IPv6 support.
Comment on attachment 353612 [details] luasocket-3.0_rc1.ebuild --- luasocket-2.0.2.ebuild 2012-08-13 15:27:07.000000000 +0200 +++ - 2013-07-19 01:45:43.569152544 +0200 @@ -1,48 +1,41 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lua/luasocket/luasocket-2.0.2.ebuild,v 1.4 2012/08/13 10:33:04 johu Exp $ +# $Header: $ -EAPI=2 +EAPI=5 -inherit multilib toolchain-funcs flag-o-matic eutils +inherit git-2 multilib versionator + +MY_PV=$(replace_version_separator 2 '-' ) DESCRIPTION="Networking support library for the Lua language." -HOMEPAGE="http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/" -SRC_URI="http://luaforge.net/frs/download.php/2664/${P}.tar.gz" +HOMEPAGE="https://github.com/diegonehab/luasocket" +EGIT_REPO_URI="git://github.com/diegonehab/luasocket.git \ + https://github.com/diegonehab/luasocket.git" +EGIT_COMMIT="v${MY_PV}" LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 x86" +KEYWORDS="~amd64" IUSE="debug" RDEPEND=">=dev-lang/lua-5.1[deprecated]" -DEPEND="${RDEPEND} - virtual/pkgconfig" - -src_prepare() { - # Unix socket support is needed by app-crypt/ekeyd, but upstream - # does not seem to enable it by default. - epatch "${FILESDIR}"/${P}-unixsocket.patch -} +DEPEND="${RDEPEND}" src_compile() { - # We append flags here to avoid editing the config file - use debug && append-flags -DLUASOCKET_DEBUG - append-flags -fPIC - emake \ - CFLAGS="${CFLAGS}" \ - LDFLAGS="${LDFLAGS}" \ - CC="$(tc-getCC)" \ - LD="$(tc-getCC) -shared" \ - || die + CC="$(tc-getCC) ${CFLAGS}" \ + LD="$(tc-getCC) ${LDFLAGS}" \ + $(use debug && echo "DEBUG=DEBUG") } src_install() { emake install \ - INSTALL_TOP_SHARE="${D}/$(pkg-config --variable INSTALL_LMOD lua)" \ - INSTALL_TOP_LIB="${D}/$(pkg-config --variable INSTALL_CMOD lua | sed -e "s:lib/:$(get_libdir)/:")" \ - || die + DESTDIR="${D}" \ + LUAINC_linux_base=/usr \ + LUAPREFIX_linux=/usr \ + CDIR_linux="$(get_libdir)/lua/5.1" + # Hardcoded to dev-lang/lua-5.1 ^ dodoc NEW README || die dohtml doc/* || die
*luasocket-3.0_rc1 (11 Sep 2013) 11 Sep 2013; Manuel Rüger <mrueg@gentoo.org> +luasocket-3.0_rc1.ebuild, luasocket-2.0.2.ebuild: Version bump. Fixes bug #477344. Thanks to Emery Hemingway for inital ebuild patch. Fixed, thanks!