From c2e8d90902e7666a466d01461f28c0f245273276 Mon Sep 17 00:00:00 2001 From: matoro Date: Wed, 13 Jul 2022 11:56:38 -0400 Subject: dev-haskell/lua: new package, add 2.1.0, 2.2.0 Signed-off-by: matoro Signed-off-by: Sam James --- dev-haskell/lua/Manifest | 2 ++ dev-haskell/lua/lua-2.1.0.ebuild | 39 +++++++++++++++++++++++++++++++++++++++ dev-haskell/lua/lua-2.2.0.ebuild | 38 ++++++++++++++++++++++++++++++++++++++ dev-haskell/lua/metadata.xml | 31 +++++++++++++++++++++++++++++++ 4 files changed, 110 insertions(+) create mode 100644 dev-haskell/lua/Manifest create mode 100644 dev-haskell/lua/lua-2.1.0.ebuild create mode 100644 dev-haskell/lua/lua-2.2.0.ebuild create mode 100644 dev-haskell/lua/metadata.xml (limited to 'dev-haskell/lua') diff --git a/dev-haskell/lua/Manifest b/dev-haskell/lua/Manifest new file mode 100644 index 000000000000..ed735fb75392 --- /dev/null +++ b/dev-haskell/lua/Manifest @@ -0,0 +1,2 @@ +DIST lua-2.1.0.tar.gz 212562 BLAKE2B 916eb056d5e920492821c21fb7a51e2f6cde7d5b17462378baa3fc00f22d4a1ac0435e2671fb3d7d722a972beed5d267c587790e0fa9d066ac3a5af3fd988954 SHA512 1360e163915e14381e457727e0d04abc089fef95b6c14331b355330ec35458d5ddf899f843ce61dffe23b86ceffd0d203fd66f2edb4cc8ce11f00278842e1a94 +DIST lua-2.2.0.tar.gz 260005 BLAKE2B ec79108a72a6060fc82b94aac1e61c51aea0d570bac37add749654d903fec5b62c5caa82932606e9778431c80c68fceb11b5eba9d6c45c183a8f249934d26c55 SHA512 d19f54c9424773557f7ef7929be84dfcb7624d8a617d3383a771fe1ba7d6d5cd724c8fcd40475cde443e02e0cf3164a8869c0d67c90cf04b3b09ef6d876aa727 diff --git a/dev-haskell/lua/lua-2.1.0.ebuild b/dev-haskell/lua/lua-2.1.0.ebuild new file mode 100644 index 000000000000..e3d79624aa13 --- /dev/null +++ b/dev-haskell/lua/lua-2.1.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# ebuild generated by hackport 0.7.1.1.9999 +#hackport: flags: -allow-unsafe-gc,-apicheck,-export-dynamic,-lua_32bits,+pkgconfig,+system-lua + +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal + +DESCRIPTION="Lua, an embeddable scripting language" +HOMEPAGE="https://hslua.org/" +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="+allow-unsafe-gc apicheck +export-dynamic +hardcode-reg-keys lua-32bits" + +RDEPEND=">=dev-lang/ghc-8.4.3:= + dev-lang/lua:5.3 +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-2.2.0.1 + test? ( >=dev-haskell/tasty-0.11 + >=dev-haskell/tasty-hunit-0.9 ) +" + +src_configure() { + haskell-cabal_src_configure \ + --flag=-allow-unsafe-gc \ + --flag=-apicheck \ + --flag=-export-dynamic \ + $(cabal_flag hardcode-reg-keys hardcode-reg-keys) \ + --flag=-lua_32bits \ + --flag=pkg-config \ + --flag=system-lua +} diff --git a/dev-haskell/lua/lua-2.2.0.ebuild b/dev-haskell/lua/lua-2.2.0.ebuild new file mode 100644 index 000000000000..3562e0330b6e --- /dev/null +++ b/dev-haskell/lua/lua-2.2.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# ebuild generated by hackport 0.7.1.1.9999 +#hackport: flags: -allow-unsafe-gc,-apicheck,-export-dynamic,-lua_32bits,pkg-config:system-lua + +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal + +DESCRIPTION="Lua, an embeddable scripting language" +HOMEPAGE="https://hslua.org/" +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="system-lua" + +RDEPEND=">=dev-lang/ghc-8.4.3:= + system-lua? ( dev-lang/lua:5.4 ) +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-2.2.0.1 + test? ( >=dev-haskell/tasty-0.11 + >=dev-haskell/tasty-hunit-0.9 ) + system-lua? ( virtual/pkgconfig ) +" + +src_configure() { + haskell-cabal_src_configure \ + --flag=-allow-unsafe-gc \ + --flag=-apicheck \ + --flag=-export-dynamic \ + --flag=-lua_32bits \ + $(cabal_flag system-lua pkg-config) +} diff --git a/dev-haskell/lua/metadata.xml b/dev-haskell/lua/metadata.xml new file mode 100644 index 000000000000..5b1e564f95ae --- /dev/null +++ b/dev-haskell/lua/metadata.xml @@ -0,0 +1,31 @@ + + + + + haskell@gentoo.org + Gentoo Haskell + + + Allow optimizations which make Lua's garbage collection +potentially unsafe; enabling this should be safe if +there are no callbacks into Haskell during Lua garbage +collection cycles. The flag should be *disabled* if Lua +objects can have Haskell finalizers, i.e., @__gc@ +metamethods that call Haskell function. + Compile Lua with -DLUA_USE_APICHECK. + Add all symbols to dynamic symbol table; disabling this +will make it possible to create fully static binaries, +but renders loading of dynamic C libraries impossible. + Don't use CAPI to determine the names of certain +registry key names but use hard coded values instead. +This flag is required when compiling against Lua 5.3.3 +or earlier, as those versions do not expose the +necessary information in the @lauxlib.h@ header file. +Setting this flag should usually be unproblematic, +except if the used Lua version has been patched +heavily. + Compile Lua with -DLUA_32BITS + Use @pkg-config@ to discover library and include paths. +Setting this flag implies `pkg-config`. + + -- cgit v1.2.3-65-gdbad