summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2011-06-12 13:05:35 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2011-06-12 13:05:35 +0000
commit2cdde5bc2ace53451db7909f1d1cc9547bbf6bfb (patch)
tree75eb0edefcaaeb2a203f42ae19430cef320cf52f /dev-haskell/convertible
parentRemove the nopie GCC flag. This fixes build problems with GCC 4.6 (bug #363485). (diff)
downloadhistorical-2cdde5bc2ace53451db7909f1d1cc9547bbf6bfb.tar.gz
historical-2cdde5bc2ace53451db7909f1d1cc9547bbf6bfb.tar.bz2
historical-2cdde5bc2ace53451db7909f1d1cc9547bbf6bfb.zip
Initial version. New package: Typeclasses and instances library for converting between types.
Package-Manager: portage-2.1.10.1/cvs/Linux x86_64
Diffstat (limited to 'dev-haskell/convertible')
-rw-r--r--dev-haskell/convertible/ChangeLog11
-rw-r--r--dev-haskell/convertible/Manifest14
-rw-r--r--dev-haskell/convertible/convertible-1.0.10.0.ebuild51
-rw-r--r--dev-haskell/convertible/metadata.xml16
4 files changed, 92 insertions, 0 deletions
diff --git a/dev-haskell/convertible/ChangeLog b/dev-haskell/convertible/ChangeLog
new file mode 100644
index 000000000000..07fa18517fc9
--- /dev/null
+++ b/dev-haskell/convertible/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-haskell/convertible
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/convertible/ChangeLog,v 1.1 2011/06/12 13:05:35 slyfox Exp $
+
+*convertible-1.0.10.0 (12 Jun 2011)
+
+ 12 Jun 2011; Sergei Trofimovich <slyfox@gentoo.org>
+ +convertible-1.0.10.0.ebuild, +metadata.xml:
+ Initial version. New package: Typeclasses and instances library for
+ converting between types.
+
diff --git a/dev-haskell/convertible/Manifest b/dev-haskell/convertible/Manifest
new file mode 100644
index 000000000000..119a74fe6257
--- /dev/null
+++ b/dev-haskell/convertible/Manifest
@@ -0,0 +1,14 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+DIST convertible-1.0.10.0.tar.gz 23231 RMD160 2ea88cc80584ba6b0f0347808e53f9f54597cd2a SHA1 afaf63327838fdf890245bc093d0b9a94858cdea SHA256 219cba91e1b95334602de0f35554100fcbcc852b2efaa0aab8bfbb0a48eb12de
+EBUILD convertible-1.0.10.0.ebuild 1269 RMD160 4097afc90d46e67ad90b921f64150496c116a5a2 SHA1 febb377fda88da292152cce4a7f5935cb62226a8 SHA256 473d84de0780008749e3110d839a648d956baa06455d38436f1202d92ad53835
+MISC ChangeLog 456 RMD160 49724a99544a874e8bc97c983c85fae2d3c79579 SHA1 35dd6da61024f96a9bd84b6bde4902d256ef1318 SHA256 a319a025b9663c0405543cc5bf07072888e6095fefcb32a9935e21a055612696
+MISC metadata.xml 610 RMD160 1e2b551523c5e2fd565cda7a06c5bb4e5e349379 SHA1 8e8e6485394620de1ca5ef232ca186a24748fd7f SHA256 d41613f5e06ace1c1d7be1aeeb56167872d10aa28575e440725648bfd88d7ecb
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iEYEARECAAYFAk30uloACgkQcaHudmEf86pSiACfUOoNbXeTewX4JMZ+OUpjDQmz
+SGsAnjqtREjU+7erzzEFjxyuGFlROylM
+=sJQO
+-----END PGP SIGNATURE-----
diff --git a/dev-haskell/convertible/convertible-1.0.10.0.ebuild b/dev-haskell/convertible/convertible-1.0.10.0.ebuild
new file mode 100644
index 000000000000..3b7c56dc347e
--- /dev/null
+++ b/dev-haskell/convertible/convertible-1.0.10.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/convertible/convertible-1.0.10.0.ebuild,v 1.1 2011/06/12 13:05:35 slyfox Exp $
+
+# ebuild generated by hackport 0.2.13
+
+EAPI="3"
+
+CABAL_FEATURES="bin lib profile haddock hscolour"
+inherit haskell-cabal
+
+DESCRIPTION="Typeclasses and instances for converting between types"
+HOMEPAGE="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/convertible"
+SRC_URI="http://hackage.haskell.org/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="dev-haskell/mtl
+ >=dev-haskell/text-0.7
+ <=dev-haskell/time-1.2.0.3
+ >=dev-lang/ghc-6.8.2
+ "
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.2
+ test? ( dev-haskell/hunit
+ dev-haskell/quickcheck:2
+ dev-haskell/testpack
+ )
+ "
+
+src_configure() {
+ cabal_src_configure $(cabal_flag test buildtests)
+}
+
+src_test() {
+ # default tests
+ haskell-cabal_src_test || die "cabal test failed"
+
+ # built custom tests
+ "${S}/dist/build/runtests/runtests" || die "unit tests failed"
+}
+
+src_install() {
+ cabal_src_install
+
+ # if tests were enabled, make sure the unit test driver is deleted
+ rm -f "${ED}/usr/bin/runtests"
+}
diff --git a/dev-haskell/convertible/metadata.xml b/dev-haskell/convertible/metadata.xml
new file mode 100644
index 000000000000..fa6f0c901936
--- /dev/null
+++ b/dev-haskell/convertible/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>haskell</herd>
+ <maintainer>
+ <email>haskell@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+ Convertible provides a typeclass with a single function
+ that is designed to help convert between different types: numeric
+ values, dates and times, and the like. The conversions perform bounds
+ checking and return a pure 'Either' value. This means that you need
+ not remember which specific function performs the conversion you
+ desire.
+ </longdescription>
+</pkgmetadata>