diff options
Diffstat (limited to 'dev-haskell')
| -rw-r--r-- | dev-haskell/ghc-paths/Manifest | 1 | ||||
| -rw-r--r-- | dev-haskell/ghc-paths/ghc-paths-0.1.0.12-r3.ebuild | 51 | ||||
| -rw-r--r-- | dev-haskell/ghc-paths/metadata.xml | 11 |
3 files changed, 60 insertions, 3 deletions
diff --git a/dev-haskell/ghc-paths/Manifest b/dev-haskell/ghc-paths/Manifest index eeec592a3c0f..b4dcd9cfa548 100644 --- a/dev-haskell/ghc-paths/Manifest +++ b/dev-haskell/ghc-paths/Manifest @@ -1 +1,2 @@ +DIST ghc-paths-0.1.0.12-rev5.cabal 699 BLAKE2B c23c4c781ff3d47a8a01f067803fb1b71e34b954018990bf03ac81c42e6ca6bc434569c66b2d4cdb13b4f651fe3969a3b3323915a30bfd3d682c4522659044ba SHA512 c68d9f16c28bbac47d6831c5f385e4e21ce2b8188e7b04eb0531ca088b79c2f1169a36650fb5588f73a5e4d78307a0fbbb17af241b8bdc46b9c7dcde39b8d096 DIST ghc-paths-0.1.0.12.tar.gz 2565 BLAKE2B 3e4783a854510a4ae6d6a9d5f4d0fefa7fbc03088aa298d8731c7bdf961ab47553b0e46c1b8d2f61193b669c43fc74e8eb6f948abba4419b0110772d56397c1d SHA512 1c66caf459f5783bde38a47ce1292bf5c47fef21e3f69d7f6c052b4eb39f446ed5decd38f0e4143a90d55ba44ebc0891b4497050cc652cbf3fcad636d45690e9 diff --git a/dev-haskell/ghc-paths/ghc-paths-0.1.0.12-r3.ebuild b/dev-haskell/ghc-paths/ghc-paths-0.1.0.12-r3.ebuild new file mode 100644 index 000000000000..c2d544493b0d --- /dev/null +++ b/dev-haskell/ghc-paths/ghc-paths-0.1.0.12-r3.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# ebuild generated by hackport 0.7.2.1.9999 + +CABAL_HACKAGE_REVISION=5 + +CABAL_FEATURES="lib profile haddock hoogle hscolour" +inherit ghc-package haskell-cabal + +DESCRIPTION="Knowledge of GHC's installation directories" +HOMEPAGE="https://hackage.haskell.org/package/ghc-paths" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" + +RDEPEND=">=dev-lang/ghc-8.4.3:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-2.2.0.1 <dev-haskell/cabal-3.11 +" + +src_prepare() { + haskell-cabal_src_prepare + + # ghc-patch it has awfully unportable (across cabal versions) ghc detection code + # but in gentoo we install it to fixed patch, so remove Setup.hs detection code + cabal-mksetup + + # and use gentoo's hardcoded one: + # a few things we need to replace, and example values + # GHC_PATHS_LIBDIR /usr/lib64/ghc-6.12.0.20091010 + # GHC_PATHS_DOCDIR /usr/share/doc/ghc-6.12.0.20091010/html + # GHC_PATHS_GHC_PKG /usr/bin/ghc-pkg + # GHC_PATHS_GHC /usr/bin/ghc (be careful: GHC_PATHS_GHC is a substring of GHC_PATHS_GHC_PKG) + + cat >"${S}/GHC/Paths.hs" <<-EOF + module GHC.Paths ( ghc, ghc_pkg, libdir, docdir ) where + + libdir, docdir, ghc, ghc_pkg :: FilePath + + libdir = "$(ghc-libdir)" + docdir = "/usr/share/doc/ghc-$(ghc-version)/html" + + ghc = "$(ghc-getghc)" + ghc_pkg = "$(ghc-getghcpkg)" + EOF +} diff --git a/dev-haskell/ghc-paths/metadata.xml b/dev-haskell/ghc-paths/metadata.xml index c7bb0e775ab0..f6c086c0de21 100644 --- a/dev-haskell/ghc-paths/metadata.xml +++ b/dev-haskell/ghc-paths/metadata.xml @@ -1,7 +1,12 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<maintainer type="project"> - <email>haskell@gentoo.org</email> -</maintainer> + <maintainer type="project"> + <email>haskell@gentoo.org</email> + <name>Gentoo Haskell</name> + </maintainer> + <upstream> + <remote-id type="hackage">ghc-paths</remote-id> + <remote-id type="github">simonmar/ghc-paths</remote-id> + </upstream> </pkgmetadata> |
