app-text/pandoc: huge version bump
This commit is contained in:
parent
36c01efcfe
commit
72b537171f
131 changed files with 2697 additions and 0 deletions
3
dev-haskell/scientific/Manifest
Normal file
3
dev-haskell/scientific/Manifest
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
DIST scientific-0.3.6.2.tar.gz 23510 BLAKE2B 096cd305cdbc4856f48e81de5387b229c4f23fdbfc641243ffa56a74422ec7b224fb2979f22cbdcf747d56c6073ce74ff6ca773093570a8d0a774e2b33d26697 SHA512 47a74524c8fb25d381adf868d823a6b6772f3f69b0b3cf9f9de015a03bc941857ef3fca1b4f8cbf23e998164e71a914e167221e753c6f32dc8644047d1ef57ee
|
||||
EBUILD scientific-0.3.6.2.ebuild 1242 BLAKE2B 498370c1ceb8d43b9770ffc90b37dc1e5a0cd3bc0c03f5fda3200b124273ed9d3ce86fdf0386c16fda49003f87c93644ab1c5400b8c1317c4a2ceab616afda70 SHA512 57cbce129cae09a01c4da14aa98e499f3792e4159d48286cb3745d32681fd141416b3405e1542ed7c80396df389fee0096b5f170b4af65a7f76854f7a9cb1e54
|
||||
MISC metadata.xml 1953 BLAKE2B 2cfe56e981e9948f36303b3e02d07a36c6f88f6e4140c7f0ff5db3bbacf81683f1cced48d9f460a9339086de99f21028f0e0b3b548b57d4bc93e60f4ede3a278 SHA512 8727d35a9e72f9f9e1ecec1e2172c9f84497a6d04cf877619a5e53487cd44b185e9c655afcef70948f286b46b3238f4e0840115ff842cb7b3d29eff98b74c0ee
|
||||
39
dev-haskell/scientific/metadata.xml
Normal file
39
dev-haskell/scientific/metadata.xml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<?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>
|
||||
"Data.Scientific" provides the number type 'Scientific'. Scientific numbers are
|
||||
arbitrary precision and space efficient. They are represented using
|
||||
<http://en.wikipedia.org/wiki/Scientific_notation scientific notation>.
|
||||
The implementation uses a coefficient @c :: 'Integer'@ and a base-10 exponent
|
||||
@e :: 'Int'@. A scientific number corresponds to the
|
||||
'Fractional' number: @'fromInteger' c * 10 '^^' e@.
|
||||
|
||||
Note that since we're using an 'Int' to represent the exponent these numbers
|
||||
aren't truly arbitrary precision. I intend to change the type of the exponent
|
||||
to 'Integer' in a future release.
|
||||
|
||||
The main application of 'Scientific' is to be used as the target of parsing
|
||||
arbitrary precision numbers coming from an untrusted source. The advantages
|
||||
over using 'Rational' for this are that:
|
||||
|
||||
* A 'Scientific' is more efficient to construct. Rational numbers need to be
|
||||
constructed using '%' which has to compute the 'gcd' of the 'numerator' and
|
||||
'denominator'.
|
||||
|
||||
* 'Scientific' is safe against numbers with huge exponents. For example:
|
||||
@1e1000000000 :: 'Rational'@ will fill up all space and crash your
|
||||
program. Scientific works as expected:
|
||||
|
||||
>>> read "1e1000000000" :: Scientific
|
||||
1.0e1000000000
|
||||
|
||||
* Also, the space usage of converting scientific numbers with huge exponents to
|
||||
@'Integral's@ (like: 'Int') or @'RealFloat's@ (like: 'Double' or 'Float')
|
||||
will always be bounded by the target type.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
42
dev-haskell/scientific/scientific-0.3.6.2.ebuild
Normal file
42
dev-haskell/scientific/scientific-0.3.6.2.ebuild
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
# ebuild generated by hackport 0.5.6
|
||||
|
||||
CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
|
||||
inherit haskell-cabal
|
||||
|
||||
DESCRIPTION="Numbers represented using scientific notation"
|
||||
HOMEPAGE="https://github.com/basvandijk/scientific"
|
||||
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="integer-simple"
|
||||
|
||||
RDEPEND=">=dev-haskell/bytestring-builder-0.10.4:=[profile?] <dev-haskell/bytestring-builder-0.11:=[profile?]
|
||||
>=dev-haskell/hashable-1.1.2:=[profile?]
|
||||
>=dev-haskell/integer-logarithms-1:=[profile?]
|
||||
>=dev-haskell/primitive-0.1:=[profile?]
|
||||
>=dev-haskell/text-0.8:=[profile?]
|
||||
>=dev-lang/ghc-7.4.1:=
|
||||
integer-simple? ( dev-haskell/integer-simple:=[profile?] )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-1.10
|
||||
test? ( >=dev-haskell/quickcheck-2.5
|
||||
>=dev-haskell/smallcheck-1.0
|
||||
>=dev-haskell/tasty-0.5
|
||||
>=dev-haskell/tasty-ant-xml-1.0
|
||||
>=dev-haskell/tasty-hunit-0.8
|
||||
>=dev-haskell/tasty-quickcheck-0.8
|
||||
>=dev-haskell/tasty-smallcheck-0.2 )
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
haskell-cabal_src_configure \
|
||||
$(cabal_flag integer-simple integer-simple)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue