summaryrefslogtreecommitdiff
path: root/dev-haskell/file-location
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-haskell/file-location
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-haskell/file-location')
-rw-r--r--dev-haskell/file-location/Manifest6
-rw-r--r--dev-haskell/file-location/file-location-0.4.9-r1.ebuild35
-rw-r--r--dev-haskell/file-location/file-location-0.4.9.ebuild28
-rw-r--r--dev-haskell/file-location/metadata.xml42
4 files changed, 111 insertions, 0 deletions
diff --git a/dev-haskell/file-location/Manifest b/dev-haskell/file-location/Manifest
new file mode 100644
index 000000000000..6df6bec6c0e0
--- /dev/null
+++ b/dev-haskell/file-location/Manifest
@@ -0,0 +1,6 @@
+DIST file-location-0.4.9.tar.gz 6959 SHA256 be29deb3c2267913f642e511deca988cedd287ae519012d01178d37d05f814dc SHA512 cbea7ef5a6797efd242219a32c7d46b5a0fe2b20d4c93e7ab758cf27519b021c2e2c34ab91d4eedfba8a61a51f81312346d575f8c83296b87b1f7bea8985d40f WHIRLPOOL 5d3988f0773064bcd18f2a5ba3e0c69bdf24a1089cedcf1dd1bf12c0ead4211991e97dd264c86a907ef419773054529f8681bf13f8d15a71a01233fc92fec7a0
+EBUILD file-location-0.4.9-r1.ebuild 881 SHA256 596a14c53d3d47f8a20de590865ebdaf833e0d210c0f63fef520328c73f8fe4d SHA512 5fa82b5758a587f64849546d33e4fdcc2bd44d46e9e197753d20f9b86445e0b0ae2c17c3f9f6f7176fa3da021f27abe52c726725b7b624c95846369e5fdd57da WHIRLPOOL 375f14efc10e416536d28d3bbf86bdb5968c18158250fc0238b366d79fb3e6a64b947f88087e5dc065237948ca6a6243d6451470a917cfe4c94d5fc58a4aaeda
+EBUILD file-location-0.4.9.ebuild 774 SHA256 5720a1bc83e43370f768d721b39e465a7fbd02864fcc2085890b500eac38e9c1 SHA512 3b930e24b6859a5e2e1aa70fa3b117d5041b08888b46b2a73e9392795142875217f4c2afbfc8384ab8e3535d16f50510bafa51e82242b6db5252a060bfae5b33 WHIRLPOOL 21319a7e58446e7522d04eedfc120df74eeb89161cb8c74b8b0ceb6b64af3b0f438dee500ec9e2709b55013f6482e13a485675e29012b558e34f2dcbae849711
+MISC ChangeLog 3138 SHA256 7bb1fc4778c6bce76dd950c8ff53cea55f4493796488495b285eb76b1424cf3b SHA512 feba6df70f06111198e7d75c0d0aade64f626d0c530224f68751385f37a94f657f6a91079abf7b847e9addee06418d06aa7222f88085943e78b30873ad80de0d WHIRLPOOL 2612132d2b292bbf254040de5edc30b9352b77b6b5fc88d007f66568688820d41937994ac9f2e8b493d0f4aadef5ae8ef0361ee7a128a36f04fc05b5e8459e8e
+MISC ChangeLog-2015 1254 SHA256 007e0d92ec24fdd190b651edd60eed9de9ccaa6cebd5100c380f17b82bc08ef4 SHA512 026aef62203901d77c9ecf53fe001d7e5ce26fff485f37b937331180bdc8eae42f0cadd26dd32f8555fea169800a536fd74404bc8daf8bc5066444381443e6f7 WHIRLPOOL baf49eed2371e0179a00bf0bbe64a2df84ba34a187794db23275802c8bfa7d8ec7025956c24f2e85e35109b40f54f66c66e786ba6f33f79bc39374dbf4482b2e
+MISC metadata.xml 1438 SHA256 1546bd37ee39098a1b37a600230a6eecf3e247792145283c8f39fee4ba5d6782 SHA512 becf41f547c76f329ae69bd5518a96cffcdf3161c05d9ffaecf3f6ba91d9a20855e3aefba473c37d4e7d004fc5d923459f50fd8a7a4f657ccfb52482d15c753e WHIRLPOOL 03f77c92127b532bc32709897e363664530f1f77634838ce1c503b1ac2c97b1130c458d20da8461737ef0821aef0e5e564c4c1648eb78d033a25425b3377bdfa
diff --git a/dev-haskell/file-location/file-location-0.4.9-r1.ebuild b/dev-haskell/file-location/file-location-0.4.9-r1.ebuild
new file mode 100644
index 000000000000..ba606f8ae4be
--- /dev/null
+++ b/dev-haskell/file-location/file-location-0.4.9-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.5.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="common functions that show file location information"
+HOMEPAGE="https://github.com/gregwebs/FileLocation.hs"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RESTRICT=test # error stack changed from ghc-7.10
+
+RDEPEND="dev-haskell/hunit:=[profile?]
+ dev-haskell/lifted-base:=[profile?]
+ >=dev-haskell/th-orphans-0.9:=[profile?]
+ >=dev-haskell/transformers-0.2:=[profile?]
+ >=dev-lang/ghc-7.4.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.8
+"
+
+src_prepare() {
+ cabal_chdeps \
+ 'transformers >= 0.2 && < 0.5' 'transformers >= 0.2'
+}
diff --git a/dev-haskell/file-location/file-location-0.4.9.ebuild b/dev-haskell/file-location/file-location-0.4.9.ebuild
new file mode 100644
index 000000000000..a245d34a0e23
--- /dev/null
+++ b/dev-haskell/file-location/file-location-0.4.9.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.5.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="common functions that show file location information"
+HOMEPAGE="https://github.com/gregwebs/FileLocation.hs"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-haskell/hunit:=[profile?]
+ dev-haskell/lifted-base:=[profile?]
+ >=dev-haskell/th-orphans-0.9:=[profile?]
+ >=dev-haskell/transformers-0.2:=[profile?] <dev-haskell/transformers-0.5:=[profile?]
+ >=dev-lang/ghc-7.4.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.8
+"
diff --git a/dev-haskell/file-location/metadata.xml b/dev-haskell/file-location/metadata.xml
new file mode 100644
index 000000000000..fd1840e49f39
--- /dev/null
+++ b/dev-haskell/file-location/metadata.xml
@@ -0,0 +1,42 @@
+<?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>
+ <longdescription>
+ Common debugging/error/exception functions that give file location information
+
+ &gt; $(err "OH NO!")
+ &gt;
+ &gt; main:Main main.hs:16:1 OH NO!
+
+ Notice how it displays package:module file:line:character
+ It exposes the functions err (error), undef (undefined), and trc (Debug.Trace.trace). All of these behave the same as their normal counterpart but also spit out a location.
+
+ Here is my favorite helper, debug, which is like trace but just show the value.
+
+ &gt; debug [1,2,3]
+ &gt;
+ &gt; DEBUG: [1,2,3]
+ &gt; [1,2,3]
+
+ And The Template Haskell version.
+
+ &gt; $(dbg) [1,2,3]
+ &gt;
+ &gt; DEBUG main:Main main.hs:1:3 [1,2,3]
+ &gt; [1,2,3]
+
+ Also there is a version of thrwIO that gives location information
+ &gt; ($(thrwIO) $ AException) `catch` \e -&gt; putStrLn ("Caught " ++ show (e :: AException))
+ &gt;
+ &gt; Caught AException "main:Main test/main.hs:25:6"
+
+ See module for a listing of all the functions with short descriptions, and the homepage for some more examples https://github.com/gregwebs/ErrorLocation.hs
+ </longdescription>
+ <upstream>
+ <remote-id type="github">gregwebs/FileLocation.hs</remote-id>
+ </upstream>
+</pkgmetadata>