commit:     40b4491a2536a4c77bfd5b3f3e08083234655913
Author:     Tiziano Müller <dev-zero <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 13 12:16:37 2016 +0000
Commit:     Tiziano Müller <dev-zero <AT> gentoo <DOT> org>
CommitDate: Mon Jun 13 12:16:37 2016 +0000
URL:        https://gitweb.gentoo.org/dev/dev-zero.git/commit/?id=40b4491a

dev-haskell/hslua: add version bump with luajit support

 dev-haskell/hslua/Manifest           |  1 +
 dev-haskell/hslua/hslua-0.4.1.ebuild | 40 ++++++++++++++++++++++++++++++++++++
 dev-haskell/hslua/metadata.xml       | 19 +++++++++++++++++
 profiles/categories                  |  1 +
 4 files changed, 61 insertions(+)

diff --git a/dev-haskell/hslua/Manifest b/dev-haskell/hslua/Manifest
new file mode 100644
index 0000000..642b04c
--- /dev/null
+++ b/dev-haskell/hslua/Manifest
@@ -0,0 +1 @@
+DIST hslua-0.4.1.tar.gz 130342 SHA256 
2df2b4f0566ef2244506f9830e0207fce3bece7c331129f69f446c722136173f SHA512 
fd2bdab758b0ab56e8ca03c022aa16b6e2677fa45f34c60f901d7a545d4b78cc5f32e62504fe64c680c0c55cd69b9718bc91e1541029446b05f092c86611b338
 WHIRLPOOL 
4c7e8faa6d4ff6a53e0a71fde5ab9c00268d667d04809f91cdfd4ace035e4c4507d39e60eee5cf83e12e0a78cf00085c557567c80ddf5c58d0585db5f7e49584

diff --git a/dev-haskell/hslua/hslua-0.4.1.ebuild 
b/dev-haskell/hslua/hslua-0.4.1.ebuild
new file mode 100644
index 0000000..4e30e80
--- /dev/null
+++ b/dev-haskell/hslua/hslua-0.4.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+# ebuild initially generated by hackport 0.4.3.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="A Lua language interpreter embedding in Haskell"
+HOMEPAGE="http://hackage.haskell.org/package/hslua";
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="apicheck luajit system-lua"
+REQUIRED_USE="luajit? ( system-lua )"
+
+RDEPEND=">=dev-haskell/mtl-2.1:=[profile?]
+       >=dev-lang/ghc-7.4.1:=
+       system-lua? (
+               luajit? ( dev-lang/luajit:2 )
+               !luajit? ( <dev-lang/lua-5.2:= )
+       )
+"
+DEPEND="${RDEPEND}
+       >=dev-haskell/cabal-1.8
+       system-lua? ( virtual/pkgconfig )
+"
+
+src_configure() {
+       haskell-cabal_src_configure \
+               $(cabal_flag apicheck apicheck) \
+               $(cabal_flag luajit) \
+               $(usex luajit 
--extra-include-dirs="${EROOT}/usr/include/luajit-2.0") \
+               $(cabal_flag system-lua system-lua)
+}

diff --git a/dev-haskell/hslua/metadata.xml b/dev-haskell/hslua/metadata.xml
new file mode 100644
index 0000000..e1447dd
--- /dev/null
+++ b/dev-haskell/hslua/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Gentoo Haskell</name>
+       </maintainer>
+       <use>
+               <flag name="apicheck">Compile Lua with 
-DLUA_USE_APICHECK..</flag>
+               <flag name="system-lua">Use the system-wide lua instead of the 
bundled copy.</flag>
+       </use>
+       <longdescription>
+               The Scripting.Lua module is a wrapper of Lua language 
interpreter
+               as described in www.lua.org.
+               
+               The package is standalone: full Lua interpreter version 5.1.4
+               is distributed in this package as well.
+       </longdescription>
+</pkgmetadata>

diff --git a/profiles/categories b/profiles/categories
index b6e73af..3c9b08e 100644
--- a/profiles/categories
+++ b/profiles/categories
@@ -88,3 +88,4 @@ sci-chemistry
 sci-electronics
 sci-biology
 virtual
+dev-haskell

Reply via email to