summaryrefslogtreecommitdiff
path: root/dev-haskell/lpeg
diff options
context:
space:
mode:
Diffstat (limited to 'dev-haskell/lpeg')
-rw-r--r--dev-haskell/lpeg/Manifest3
-rw-r--r--dev-haskell/lpeg/lpeg-1.0.3.ebuild32
-rw-r--r--dev-haskell/lpeg/metadata.xml14
3 files changed, 49 insertions, 0 deletions
diff --git a/dev-haskell/lpeg/Manifest b/dev-haskell/lpeg/Manifest
new file mode 100644
index 000000000000..519b0de14a6b
--- /dev/null
+++ b/dev-haskell/lpeg/Manifest
@@ -0,0 +1,3 @@
+DIST lpeg-1.0.3.tar.gz 40092 BLAKE2B fa7abf62be859a15b66aacefb8b170488a59a48cf8d209653bb274327af5ad145a047a0e654b37819045eb594389d405813dbe2c9956f91461bf29e4f3ad99d1 SHA512 636a983054576487af8663d627ea16b57894eca18c92a5994abcdeec11acaa1b5d7bb0da1eae0a1a175c75fad44c93a78c5a5e6e7ce25ddac67f5b376559fbdc
+EBUILD lpeg-1.0.3.ebuild 835 BLAKE2B 740c57cf9eb99d0de1600283386d59fe60b9398ae05ef810069837013cc4074cff7cf7b3b8d964f31bb4c64b2b557a1969238ee2c8ff8992dec1e2786f382c83 SHA512 089e1d37b4355794aa2f8c88978eb501c2e96ca098551b1769ba94ff7acdd22498f3847c50a5afe00d4009c3963d75edbe1569b273ac8f2e2c26c72434c43c40
+MISC metadata.xml 523 BLAKE2B 834544fbc615dd439ccd86f32f78d76faa0154923fa93bdd0bb2382d6902ffb48d6a0ce86b4b4cb47c1cd3c58af93771fe5610a47d5d5331e7ed2919e3b76ad2 SHA512 abaab000310fa3ce722b505051deb165f98e3e9ac980f7665698f7de5db717ce56b38c6c8d3d83610daaa5f80111fb45dcfece264abc18a50bb1c122f8e56ba5
diff --git a/dev-haskell/lpeg/lpeg-1.0.3.ebuild b/dev-haskell/lpeg/lpeg-1.0.3.ebuild
new file mode 100644
index 000000000000..c2faa9ca52db
--- /dev/null
+++ b/dev-haskell/lpeg/lpeg-1.0.3.ebuild
@@ -0,0 +1,32 @@
+# 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
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="LPeg - Parsing Expression Grammars For Lua"
+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="rely-on-shared-lpeg-library"
+
+RDEPEND=">=dev-haskell/lua-2.1:=[profile?] <dev-haskell/lua-2.3:=[profile?]
+ >=dev-lang/ghc-8.4.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 \
+ $(cabal_flag rely-on-shared-lpeg-library rely-on-shared-lpeg-library)
+}
diff --git a/dev-haskell/lpeg/metadata.xml b/dev-haskell/lpeg/metadata.xml
new file mode 100644
index 000000000000..604a49e01944
--- /dev/null
+++ b/dev-haskell/lpeg/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>haskell@gentoo.org</email>
+ <name>Gentoo Haskell</name>
+ </maintainer>
+ <use>
+ <flag name="rely-on-shared-lpeg-library">Do not build lpeg from source, but trust that lpeg is
+made available in other ways, e.g., through a
+system-wide installation. The loader will be replaced
+with a placeholder function that only emits a message.</flag>
+ </use>
+</pkgmetadata>