aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-lua/cmsgpack/ChangeLog5
l---------[-rw-r--r--]dev-lua/cmsgpack/cmsgpack-0.3.0.ebuild49
-rw-r--r--dev-lua/cmsgpack/cmsgpack-9999.ebuild30
3 files changed, 20 insertions, 64 deletions
diff --git a/dev-lua/cmsgpack/ChangeLog b/dev-lua/cmsgpack/ChangeLog
index bb4420790..9c0a79df6 100644
--- a/dev-lua/cmsgpack/ChangeLog
+++ b/dev-lua/cmsgpack/ChangeLog
@@ -1,7 +1,10 @@
# ChangeLog for dev-lua/cmsgpack
-# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 18 Feb 2015; Justin Lecher <jlec@gentoo.org> cmsgpack-9999.ebuild:
+ dev-lua/cmsgpack: fix SLOT operators; use symlink
+
*cmsgpack-0.3.0 (10 May 2014)
*cmsgpack-9999 (10 May 2014)
diff --git a/dev-lua/cmsgpack/cmsgpack-0.3.0.ebuild b/dev-lua/cmsgpack/cmsgpack-0.3.0.ebuild
index 1ba7e650e..8509204ab 100644..120000
--- a/dev-lua/cmsgpack/cmsgpack-0.3.0.ebuild
+++ b/dev-lua/cmsgpack/cmsgpack-0.3.0.ebuild
@@ -1,48 +1 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=5
-
-inherit toolchain-funcs
-
-DESCRIPTION="A self contained Lua MessagePack C implementation"
-HOMEPAGE="https://github.com/antirez/lua-cmsgpack"
-
-MY_PN="lua_${PN}"
-
-LICENSE="BSD-2"
-SLOT="0"
-IUSE="test"
-
-RDEPEND=">=dev-lang/lua-5.1"
-DEPEND="${RDEPEND}
- dev-libs/msgpack"
-
-if [ "${PV}" = "9999" ]; then
- EGIT_REPO_URI="git://github.com/antirez/lua-cmsgpack.git"
- inherit git-r3
- KEYWORDS=""
- DOCS=( README.md )
-else
- SRC_URI="https://github.com/antirez/lua-${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
- inherit vcs-snapshot
- KEYWORDS="~amd64"
- DOCS=( README )
-
-fi
-
-src_compile() {
- $(tc-getCC) -fPIC ${CFLAGS} -c -o ${MY_PN}.o ${MY_PN}.c || die
- $(tc-getCC) ${LDFLAGS} -shared -o ${PN}.so ${MY_PN}.o || die
-}
-
-src_test() {
- lua test.lua || die
-}
-
-src_install() {
- default
- insinto $($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)
- doins ${PN}.so
-}
+cmsgpack-9999.ebuild \ No newline at end of file
diff --git a/dev-lua/cmsgpack/cmsgpack-9999.ebuild b/dev-lua/cmsgpack/cmsgpack-9999.ebuild
index 1ba7e650e..0d47408d8 100644
--- a/dev-lua/cmsgpack/cmsgpack-9999.ebuild
+++ b/dev-lua/cmsgpack/cmsgpack-9999.ebuild
@@ -1,9 +1,22 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
+if [ "${PV}" = "9999" ]; then
+ EGIT_REPO_URI="git://github.com/antirez/lua-cmsgpack.git"
+ inherit git-r3
+ KEYWORDS=""
+ DOCS=( README.md )
+else
+ SRC_URI="https://github.com/antirez/lua-${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ inherit vcs-snapshot
+ KEYWORDS="~amd64"
+ DOCS=( README )
+
+fi
+
inherit toolchain-funcs
DESCRIPTION="A self contained Lua MessagePack C implementation"
@@ -15,23 +28,10 @@ LICENSE="BSD-2"
SLOT="0"
IUSE="test"
-RDEPEND=">=dev-lang/lua-5.1"
+RDEPEND=">=dev-lang/lua-5.1:0"
DEPEND="${RDEPEND}
dev-libs/msgpack"
-if [ "${PV}" = "9999" ]; then
- EGIT_REPO_URI="git://github.com/antirez/lua-cmsgpack.git"
- inherit git-r3
- KEYWORDS=""
- DOCS=( README.md )
-else
- SRC_URI="https://github.com/antirez/lua-${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
- inherit vcs-snapshot
- KEYWORDS="~amd64"
- DOCS=( README )
-
-fi
-
src_compile() {
$(tc-getCC) -fPIC ${CFLAGS} -c -o ${MY_PN}.o ${MY_PN}.c || die
$(tc-getCC) ${LDFLAGS} -shared -o ${PN}.so ${MY_PN}.o || die