Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 477344 - dev-lua/luasocket-3.0_rc1 version bump
Summary: dev-lua/luasocket-3.0_rc1 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Manuel Rüger (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks: 470702
  Show dependency tree
 
Reported: 2013-07-18 23:43 UTC by Emery Hemingway
Modified: 2013-09-11 15:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
luasocket-3.0_rc1.ebuild (luasocket-3.0_rc1.ebuild,927 bytes, text/plain)
2013-07-18 23:43 UTC, Emery Hemingway
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emery Hemingway 2013-07-18 23:43:32 UTC
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 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-07-18 23:46:22 UTC
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
Comment 2 Manuel Rüger (RETIRED) gentoo-dev 2013-09-11 15:10:23 UTC
*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!