summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2015-11-05 18:31:27 -0600
committerWilliam Hubbs <williamh@gentoo.org>2015-11-05 18:33:16 -0600
commitd331b133dad3196327c55cc14c6daf08e43f1d02 (patch)
tree747157c03aa3ae7c3140f551ee929fcf1dc01054 /dev-lua/luacov
parentdev-db/percona-server: Add patch for tests and update test instructions (diff)
downloadgentoo-d331b133dad3196327c55cc14c6daf08e43f1d02.tar.gz
gentoo-d331b133dad3196327c55cc14c6daf08e43f1d02.tar.bz2
gentoo-d331b133dad3196327c55cc14c6daf08e43f1d02.zip
dev-lua/luacov: initial commit
Diffstat (limited to 'dev-lua/luacov')
-rw-r--r--dev-lua/luacov/Manifest1
-rw-r--r--dev-lua/luacov/files/luacov-0.8-fix-makefile.patch25
-rw-r--r--dev-lua/luacov/luacov-0.8.ebuild37
-rw-r--r--dev-lua/luacov/metadata.xml11
4 files changed, 74 insertions, 0 deletions
diff --git a/dev-lua/luacov/Manifest b/dev-lua/luacov/Manifest
new file mode 100644
index 000000000000..499ba8f09891
--- /dev/null
+++ b/dev-lua/luacov/Manifest
@@ -0,0 +1 @@
+DIST luacov-0.8.tar.gz 33613 SHA256 fa4497c2345e3c679ea7fca5dd725efd6d467e051f4dbc5c76c7f7303b99f584 SHA512 03d6ee519a570ff0430bcc32f547b9beb01691bd8c7ad8655e78d732223c6c25e4a63d816fd99640568251b836d5e3cc736bd5d780f5ecd3986d855ed5edfa11 WHIRLPOOL e309c80bec56445446f0ddd512b8ccc05c4982cccb0858fa1ed6f8db06f00098317c8281d6c357188cd36bfbd11d4147b1a4b33a9f361065a7ba23fa9e1df30b
diff --git a/dev-lua/luacov/files/luacov-0.8-fix-makefile.patch b/dev-lua/luacov/files/luacov-0.8-fix-makefile.patch
new file mode 100644
index 000000000000..7a4ea6ba9ea7
--- /dev/null
+++ b/dev-lua/luacov/files/luacov-0.8-fix-makefile.patch
@@ -0,0 +1,25 @@
+diff --git a/Makefile b/Makefile
+index 477f9de..adad2cc 100644
+--- a/Makefile
++++ b/Makefile
+@@ -6,13 +6,13 @@ BINDIR=$(PREFIX)/bin
+ LUADIR=$(PREFIX)/share/lua/5.1/
+
+ install:
+- mkdir -p $(BINDIR)
+- cp src/bin/luacov $(BINDIR)
+- chmod +x $(BINDIR)/luacov
+- mkdir -p $(LUADIR)
+- cp src/luacov.lua $(LUADIR)
+- mkdir -p $(LUADIR)/luacov
+- cp src/luacov/*.lua $(LUADIR)/luacov
++ mkdir -p $(DESTDIR)$(BINDIR)
++ cp src/bin/luacov $(DESTDIR)$(BINDIR)
++ chmod +x $(DESTDIR)$(BINDIR)/luacov
++ mkdir -p $(DESTDIR)$(LUADIR)
++ cp src/luacov.lua $(DESTDIR)$(LUADIR)
++ mkdir -p $(DESTDIR)$(LUADIR)/luacov
++ cp src/luacov/*.lua $(DESTDIR)$(LUADIR)/luacov
+
+ dist:
+ rm -rf $(PACKAGE)-$(VERSION)
diff --git a/dev-lua/luacov/luacov-0.8.ebuild b/dev-lua/luacov/luacov-0.8.ebuild
new file mode 100644
index 000000000000..d1fd6c10266d
--- /dev/null
+++ b/dev-lua/luacov/luacov-0.8.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="LuaCov is a simple coverage analyzer for Lua scripts"
+HOMEPAGE="https://github.com/keplerproject/luacov"
+SRC_URI="https://github.com/keplerproject/luacov/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+COMMON_DEPEND=">=dev-lang/lua-5.1"
+DEPEND="${COMMON_DEPEND}
+virtual/pkgconfig"
+RDEPEND="${COMMON_DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PF}-fix-makefile.patch
+}
+
+src_compile() {
+ return 0
+}
+
+src_install() {
+ emake DESTDIR="${ED}" \
+ PREFIX=/usr \
+ LUADIR="$(pkg-config --variable INSTALL_LMOD lua)" install
+dohtml -r doc/*
+ dodoc -r examples
+}
diff --git a/dev-lua/luacov/metadata.xml b/dev-lua/luacov/metadata.xml
new file mode 100644
index 000000000000..d3a313ac0407
--- /dev/null
+++ b/dev-lua/luacov/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>williamh@gentoo.org</email>
+ <name>William Hubbs</name>
+ </maintainer>
+ <longdescription lang="en">
+ LuaCov is a coverage analyzer for Lua scripts.
+ </longdescription>
+</pkgmetadata>