diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-22 22:13:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-22 22:13:37 -0500 |
| commit | 171e0b5f950f655c3da943ea59ba2e741425319f (patch) | |
| tree | c520a8c422c7fc58a5149552b1db8a423e469b21 /dev-haskell/alex | |
| parent | f95e0da799133b56968a5a6af89c7fb3366c4777 (diff) | |
| download | baldeagleos-repo-171e0b5f950f655c3da943ea59ba2e741425319f.tar.gz baldeagleos-repo-171e0b5f950f655c3da943ea59ba2e741425319f.tar.xz baldeagleos-repo-171e0b5f950f655c3da943ea59ba2e741425319f.zip | |
Adding metadata
Diffstat (limited to 'dev-haskell/alex')
| -rw-r--r-- | dev-haskell/alex/Manifest | 2 | ||||
| -rw-r--r-- | dev-haskell/alex/alex-3.5.1.0.ebuild | 92 | ||||
| -rw-r--r-- | dev-haskell/alex/files/alex-3.5.1.0-fix-docs.patch | 23 |
3 files changed, 117 insertions, 0 deletions
diff --git a/dev-haskell/alex/Manifest b/dev-haskell/alex/Manifest index 7171c96ded47..b0f78bc9cd45 100644 --- a/dev-haskell/alex/Manifest +++ b/dev-haskell/alex/Manifest @@ -1,3 +1,5 @@ DIST alex-13732056ff8d287f2ee0c4ecb968efe04516c890.tar.gz 103395 BLAKE2B 1254655ec480fe648238df6864d9623f0128bcdbcfca22f5b63e85b24183ece5e21ae8dc5e1a26c5f511233c420a33dc19a6fcbc2824ae56043ba75fc38e5d49 SHA512 5c7e9e0633ea4536fb4be981c123d42bc3ac035732ad5cb88d9f9b38199d13f7ef211f4e2f1fc475490019461bb56eafb702c3b4c61417dd1cc6c555c1a436d2 DIST alex-3.2.7.1.tar.gz 108229 BLAKE2B 1c1c3488c6e0f559003de5edc1250afdd09098eb4da3414d8c461d03ee5f08b94f80e6f6d32366f6d8d0563a068ee8b2a1c9cb7b78bbbf0a1dcf3767ea448ffd SHA512 f8ff12de874b905449fdda0d704f9e4ac30fa3e60e965f82d7bb2d6e3974cf926f85134d32878c48faf0ec4a002ea7240cf6696e1cbcad25a0eebb9d1850cc07 DIST alex-3.2.7.2.tar.gz 85450 BLAKE2B fcb752b24b475e5502b686dec717f613c7fbda8eeb3583f4807e419960479ddaea0e578e7ab81974e480ad9ecf59d8a0bf94341da72d247221e9d2905206641f SHA512 925c652883a12c3d271b212d1a83df15e98b3c8b5a70aecc91786db601101f9544722a04969bc4d84265910c1994cfb79fc6d50aa01a04604c4bb11735513a58 +DIST alex-3.5.1.0.tar.gz 85982 BLAKE2B c64fe47a1741199573b5b022e691dad756240e0b74da1621fd476c7b7bea401e518d76f97a15832397e3f2e4446d16cdb3e85a4bee1f298891ad8abdb5932eba SHA512 aa8aed9aff5bf3b4038d6ad31a0b4748df15dfe925c3be171070dc6a97ed357b04810f94467aa583cb75ba67f23244a0e0656c5294f4c2946e71f28b548586bb +DIST alex-f8fe5f0a294c3ac45ca0374b9b63f5db51a23a2e.tar.gz 98688 BLAKE2B 495a13ca6d8f187a62bfc05dd787198fd61f67e016ff604fafce3e063340748039e9489248a971f79831107ddc28eb8e5de92bfb3efcf9a5c0cf4d205867840b SHA512 020e2400ff5580a6b2ee2e068669cd4040430796316a2d5ad355bff0ed0f0544723813b7b4cb3933a2e87cc3f78d908b7445aeb77120ffcd2dc0269c2bf7d8f7 diff --git a/dev-haskell/alex/alex-3.5.1.0.ebuild b/dev-haskell/alex/alex-3.5.1.0.ebuild new file mode 100644 index 000000000000..6ab96504c62a --- /dev/null +++ b/dev-haskell/alex/alex-3.5.1.0.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# ebuild generated by hackport 0.8.5.1.9999 +#hackport: flags: +small_base + +CABAL_FEATURES="test-suite" +inherit haskell-cabal + +DESCRIPTION="Alex is a tool for generating lexical analysers in Haskell" +HOMEPAGE="https://www.haskell.org/alex/" + +GIT_REPO="https://github.com/haskell/${CABAL_PN}" +GIT_COMMIT="f8fe5f0a294c3ac45ca0374b9b63f5db51a23a2e" +GIT_P="${CABAL_PN}-${GIT_COMMIT}" +GIT_S="${WORKDIR}/${GIT_P}" +SRC_URI+=" doc? ( + ${GIT_REPO}/archive/${GIT_COMMIT}.tar.gz -> ${GIT_P}.tar.gz +)" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" +IUSE="doc static" + +RDEPEND=">=dev-lang/ghc-9.0.2:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-3.4.1.0 + doc? ( + dev-python/sphinx + dev-python/sphinx-rtd-theme + ) + static? ( + dev-libs/libffi[static-libs] + dev-libs/gmp[static-libs] + ) +" +src_prepare() { + if use doc; then + cp -a "${GIT_S}/doc/" "${S}" || die + eapply "${FILESDIR}/${PN}-3.5.1.0-fix-docs.patch" + fi + + haskell-cabal_src_prepare +} + +src_configure() { + # make sure we don't accidentally use those + # installed in system + local configure_flags=( + --with-alex=false + --with-happy=false + --flag=small_base + ) + + if use static; then + configure_flags+=( + --disable-shared + --enable-static + --disable-executable-dynamic + --enable-executable-static + ) + fi + + haskell-cabal_src_configure "${configure_flags[@]}" +} + +src_compile() { + haskell-cabal_src_compile + + if use doc; then + emake -C "${S}/doc/" -j1 + fi +} + +src_test() { + # 1. workaround Setup.hs deadlock: https://github.com/haskell/cabal/issues/2398 + # 2. use freshly built ALEX= binary and datadir path + alex_datadir="${S}"/data \ + emake -k -C tests all ALEX="${S}"/dist/build/alex/alex +} + +src_install() { + haskell-cabal_src_install + + if use doc; then + dodoc -r "${S}/doc/_build/html" + fi +} diff --git a/dev-haskell/alex/files/alex-3.5.1.0-fix-docs.patch b/dev-haskell/alex/files/alex-3.5.1.0-fix-docs.patch new file mode 100644 index 000000000000..25eddff5455c --- /dev/null +++ b/dev-haskell/alex/files/alex-3.5.1.0-fix-docs.patch @@ -0,0 +1,23 @@ +From e461c3b0935a05a169aa22a1b113c08f8989eea6 Mon Sep 17 00:00:00 2001 +From: hololeap <hololeap@users.noreply.github.com> +Date: Sun, 9 Jun 2024 15:09:36 -0600 +Subject: [PATCH 1/1] Fix documentation + +contributing.rst refers to a non-existant 'bug-fixes' doc + +conf.py refers to non-existant '_static' directory + +Signed-off-by: hololeap <hololeap@users.noreply.github.com> +--- a/doc/conf.py ++++ b/doc/conf.py +@@ -49,7 +49,7 @@ html_theme = 'sphinx_rtd_theme' + # Add any paths that contain custom static files (such as style sheets) here, + # relative to this directory. They are copied after the builtin static files, + # so a file named "default.css" will overwrite the builtin "default.css". +-html_static_path = ['_static'] ++#html_static_path = ['_static'] + + # The name of the Pygments (syntax highlighting) style to use. + pygments_style = 'sphinx' +2.39.2 + |
