summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-lua/luainotify/Manifest1
-rw-r--r--dev-lua/luainotify/luainotify-20090818.ebuild55
-rw-r--r--dev-lua/luainotify/metadata.xml12
3 files changed, 68 insertions, 0 deletions
diff --git a/dev-lua/luainotify/Manifest b/dev-lua/luainotify/Manifest
new file mode 100644
index 0000000..109d1b9
--- /dev/null
+++ b/dev-lua/luainotify/Manifest
@@ -0,0 +1 @@
+DIST luainotify-20090818.tar.gz 5550 SHA256 5ec9714c119d108c54ff1f3b9b6b2361dd9d1af57baad46be31d428b9c37f1f6 SHA512 bd0c43c08f48764b2a43142fc43d6661c47201f96449e9c22e8ccf91b1f13993e63d59b802ab44463624224fc429783e386870dbd1d12af799287e796559ff85 WHIRLPOOL ee6369403d5784325f13dff7011bfbb70d06519575a5bf74fed3263ae5fe0cbf70df2c52b5d1666f4b40a495037994c16852044c7998f1c2ac639ad9ef6db744
diff --git a/dev-lua/luainotify/luainotify-20090818.ebuild b/dev-lua/luainotify/luainotify-20090818.ebuild
new file mode 100644
index 0000000..8e063ab
--- /dev/null
+++ b/dev-lua/luainotify/luainotify-20090818.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit multilib eutils
+
+DESCRIPTION="A Lua interface to the Linux inotify subsystem"
+HOMEPAGE="http://www3.telus.net/taj_khattra/luainotify.html"
+SRC_URI="http://www3.telus.net/taj_khattra/${PN}/${P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test valgrind"
+
+RDEPEND="
+ <dev-lang/lua-5.2.0
+ valgrind? (
+ dev-util/valgrind
+ sys-libs/glibc[debug] )"
+DEPEND="${RDEPEND}
+ test? (
+ dev-util/valgrind
+ sys-libs/glibc[debug] )"
+
+src_prepare() {
+ sed -i \
+ -e "s|/usr/local/src/lua/lua-5.1.4|/usr/include|" \
+ -e "s|-O2 -g -Wall|${CFLAGS}|" \
+ -e "s|/src||" \
+ -e "s|-s |${LDFLAGS}|" \
+ Makefile || die
+}
+
+src_compile() {
+ if use test;
+ then
+ emake test
+ fi
+ if use valgrind;
+ then
+ emake valgrind
+ else
+ emake
+ fi
+}
+
+src_install() {
+ insinto /usr/$(get_libdir)/lua/5.1
+ doins inotify.so
+ fperms 755 /usr/$(get_libdir)/lua/5.1/inotify.so
+ dodoc DOC README
+}
diff --git a/dev-lua/luainotify/metadata.xml b/dev-lua/luainotify/metadata.xml
new file mode 100644
index 0000000..4d5e542
--- /dev/null
+++ b/dev-lua/luainotify/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>ThyArmageddon+Gentoo@Gmail.com</email>
+ <name>Elijah El Lazkani</name>
+ </maintainer>
+ <longdescription lang="en">A Lua interface to the Linux inotify subsystem</longdescription>
+ <use>
+ <flag name='valgrind'>USes valgrind to debug the compilation</flag>
+ </use>
+</pkgmetadata>