From f2ab3c0131d2166cdc59315d7badaa6155542e87 Mon Sep 17 00:00:00 2001 From: Gabor Pali Date: Sat, 11 Jan 2014 23:09:29 +0100 Subject: [PATCH] Add devel/hs-binary --- archivers/hs-zip-archive/Makefile | 2 +- devel/hs-binary-shared/Makefile | 2 +- devel/hs-binary/Makefile | 13 +++++++++++++ devel/hs-binary/distinfo | 2 ++ devel/hs-binary/pkg-descr | 8 ++++++++ devel/hs-binary/pkg-plist | 2 ++ devel/hs-bytestring-show/Makefile | 2 ++ devel/hs-concrete-typerep/Makefile | 2 +- devel/hs-dyre/Makefile | 2 +- devel/hs-ghc-events/Makefile | 2 +- devel/hs-ghc-events/files/patch-ghc-events.cabal | 11 +++++++++++ devel/hs-hashed-storage/Makefile | 2 +- devel/hs-hoogle/Makefile | 2 +- devel/hs-pointedlist/Makefile | 2 +- devel/hs-shake/Makefile | 2 +- devel/hs-threadscope/Makefile | 4 ++-- devel/hs-timezone-olson/Makefile | 3 ++- devel/hs-uuid/Makefile | 3 ++- devel/hs-vector-binary-instances/Makefile | 2 +- dns/hs-dns/Makefile | 5 +++-- editors/hs-yi/Makefile | 2 +- lang/ghc/bsd.hackage.mk | 1 + lang/hs-idris/Makefile | 8 ++++---- math/hs-Agda/Makefile | 2 +- math/hs-Agda/files/patch-Agda.cabal | 11 +++++++++++ net/hs-maccatcher/Makefile | 2 +- science/hs-bio/Makefile | 3 ++- security/hs-RSA/Makefile | 4 ++-- security/hs-SHA/Makefile | 2 ++ security/hs-pureMD5/Makefile | 2 +- security/hs-pwstore-fast/Makefile | 3 ++- textproc/hs-hxt/Makefile | 5 +++-- 32 files changed, 88 insertions(+), 30 deletions(-) create mode 100644 devel/hs-binary/Makefile create mode 100644 devel/hs-binary/distinfo create mode 100644 devel/hs-binary/pkg-descr create mode 100644 devel/hs-binary/pkg-plist create mode 100644 devel/hs-ghc-events/files/patch-ghc-events.cabal create mode 100644 math/hs-Agda/files/patch-Agda.cabal diff --git a/archivers/hs-zip-archive/Makefile b/archivers/hs-zip-archive/Makefile index f9347cdc..1950a575 100644 --- a/archivers/hs-zip-archive/Makefile +++ b/archivers/hs-zip-archive/Makefile @@ -9,7 +9,7 @@ COMMENT= Library for creating and modifying zip archives LICENSE= BSD -USE_CABAL= digest>=0.0.0.1 mtl text>=0.11 zlib +USE_CABAL= binary>=0.5 digest>=0.0.0.1 mtl text>=0.11 zlib FLAGS_DEFINE= EXECUTABLE diff --git a/devel/hs-binary-shared/Makefile b/devel/hs-binary-shared/Makefile index 623b7dfa..43efc2f0 100644 --- a/devel/hs-binary-shared/Makefile +++ b/devel/hs-binary-shared/Makefile @@ -9,7 +9,7 @@ COMMENT= Sharing for the binary package LICENSE= GPLv2 -USE_CABAL= mtl>=1.1.0.2 +USE_CABAL= binary>=0.5 mtl>=1.1.0.2 .include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" .include diff --git a/devel/hs-binary/Makefile b/devel/hs-binary/Makefile new file mode 100644 index 00000000..bf33d4f2 --- /dev/null +++ b/devel/hs-binary/Makefile @@ -0,0 +1,13 @@ +# $FreeBSD$ + +PORTNAME= binary +PORTVERSION= 0.7.1.0 +CATEGORIES= devel haskell + +MAINTAINER= haskell@FreeBSD.org +COMMENT= Binary serialisation for Haskell values using lazy ByteStrings + +LICENSE= BSD + +.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" +.include diff --git a/devel/hs-binary/distinfo b/devel/hs-binary/distinfo new file mode 100644 index 00000000..eaecbbad --- /dev/null +++ b/devel/hs-binary/distinfo @@ -0,0 +1,2 @@ +SHA256 (cabal/binary-0.7.1.0.tar.gz) = 9622efca717cd4f606dc3f43e93464b6eeb0f35e12dd0207065cc6533e498b99 +SIZE (cabal/binary-0.7.1.0.tar.gz) = 43647 diff --git a/devel/hs-binary/pkg-descr b/devel/hs-binary/pkg-descr new file mode 100644 index 00000000..c382d49c --- /dev/null +++ b/devel/hs-binary/pkg-descr @@ -0,0 +1,8 @@ +Efficient, pure binary serialisation using lazy ByteStrings. Haskell +values may be encoded to and from binary formats, written to disk as +binary, or sent over the network. The format used can be automatically +generated, or you can choose to implement a custom format if needed. +Serialisation speeds of over 1 G/sec have been observed, so this library +should be suitable for high performance scenarios. + +WWW: https://github.com/kolmodin/binary diff --git a/devel/hs-binary/pkg-plist b/devel/hs-binary/pkg-plist new file mode 100644 index 00000000..b61c969f --- /dev/null +++ b/devel/hs-binary/pkg-plist @@ -0,0 +1,2 @@ +@exec %D/bin/ghc-pkg hide binary || return true +@unexec %D/bin/ghc-pkg expose binary || return true diff --git a/devel/hs-bytestring-show/Makefile b/devel/hs-bytestring-show/Makefile index 004ed75b..6a4e9b1c 100644 --- a/devel/hs-bytestring-show/Makefile +++ b/devel/hs-bytestring-show/Makefile @@ -10,5 +10,7 @@ COMMENT= Efficient conversion of values into readable byte strings LICENSE= BSD +USE_CABAL= binary + .include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" .include diff --git a/devel/hs-concrete-typerep/Makefile b/devel/hs-concrete-typerep/Makefile index 3306efe7..bc8cc775 100644 --- a/devel/hs-concrete-typerep/Makefile +++ b/devel/hs-concrete-typerep/Makefile @@ -9,7 +9,7 @@ COMMENT= Binary and Hashable instances for TypeRep LICENSE= BSD -USE_CABAL= hashable +USE_CABAL= binary hashable .include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" .include diff --git a/devel/hs-dyre/Makefile b/devel/hs-dyre/Makefile index 38529c3d..277130be 100644 --- a/devel/hs-dyre/Makefile +++ b/devel/hs-dyre/Makefile @@ -9,7 +9,7 @@ COMMENT= Dynamic reconfiguration in Haskell LICENSE= BSD -USE_CABAL= executable-path ghc-paths io-storage xdg-basedir +USE_CABAL= binary executable-path ghc-paths io-storage xdg-basedir .include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" .include diff --git a/devel/hs-ghc-events/Makefile b/devel/hs-ghc-events/Makefile index f8a3ec1d..4d50f535 100644 --- a/devel/hs-ghc-events/Makefile +++ b/devel/hs-ghc-events/Makefile @@ -10,7 +10,7 @@ COMMENT= Library and tool for parsing .eventlog files from GHC LICENSE= BSD -USE_CABAL= mtl>=1.1 +USE_CABAL= binary>=0.5 mtl>=1.1 EXECUTABLE= ghc-events diff --git a/devel/hs-ghc-events/files/patch-ghc-events.cabal b/devel/hs-ghc-events/files/patch-ghc-events.cabal new file mode 100644 index 00000000..59d4576c --- /dev/null +++ b/devel/hs-ghc-events/files/patch-ghc-events.cabal @@ -0,0 +1,11 @@ +--- ./ghc-events.cabal.orig 2012-11-01 18:39:59.000000000 +0100 ++++ ./ghc-events.cabal 2014-01-11 23:33:15.000000000 +0100 +@@ -29,7 +29,7 @@ + build-depends: base == 4.*, + mtl >= 1.1 && < 3.0, + containers >= 0.2 && < 0.6, +- binary >= 0.5 && < 0.7, ++ binary >= 0.5 && < 0.8, + bytestring >= 0.9.0, + array >= 0.2 && < 0.5 + exposed-modules: GHC.RTS.Events, diff --git a/devel/hs-hashed-storage/Makefile b/devel/hs-hashed-storage/Makefile index e9ced6f8..464b5bb3 100644 --- a/devel/hs-hashed-storage/Makefile +++ b/devel/hs-hashed-storage/Makefile @@ -10,7 +10,7 @@ COMMENT= Hashed file storage support code LICENSE= BSD -USE_CABAL= dataenc extensible-exceptions mmap>=0.5 mtl zlib +USE_CABAL= binary dataenc extensible-exceptions mmap>=0.5 mtl zlib FLAGS_DISABLE= test diff --git a/devel/hs-hoogle/Makefile b/devel/hs-hoogle/Makefile index 4a467843..90788a87 100644 --- a/devel/hs-hoogle/Makefile +++ b/devel/hs-hoogle/Makefile @@ -10,7 +10,7 @@ COMMENT= Haskell API Search LICENSE= BSD -USE_CABAL= aeson>=0.6.1 blaze-builder>=0.2 case-insensitive>=0.2 \ +USE_CABAL= aeson>=0.6.1 binary blaze-builder>=0.2 case-insensitive>=0.2 \ cmdargs>=0.7 conduit>=0.2 haskell-src-exts>=1.14 \ http-types>=0.7 parsec>=2.1 random safe shake>=0.11 \ tagsoup>=0.11 text>=0.11 transformers>=0.2 uniplate>=1.6 \ diff --git a/devel/hs-pointedlist/Makefile b/devel/hs-pointedlist/Makefile index 06ea9d4c..cf5da85d 100644 --- a/devel/hs-pointedlist/Makefile +++ b/devel/hs-pointedlist/Makefile @@ -9,7 +9,7 @@ COMMENT= Zipper-like comonad which works as a list, tracking a position LICENSE= BSD -USE_CABAL= derive fclabels +USE_CABAL= binary derive fclabels .include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" .include diff --git a/devel/hs-shake/Makefile b/devel/hs-shake/Makefile index ad17b749..76523a33 100644 --- a/devel/hs-shake/Makefile +++ b/devel/hs-shake/Makefile @@ -9,7 +9,7 @@ COMMENT= Build system library, like Make, but more accurate dependencies LICENSE= BSD -USE_CABAL= hashable>=1.1.2.3 random transformers>=0.2 \ +USE_CABAL= binary hashable>=1.1.2.3 random transformers>=0.2 \ unordered-containers>=0.2.1 utf8-string>=0.3 EXECUTABLE= shake diff --git a/devel/hs-threadscope/Makefile b/devel/hs-threadscope/Makefile index 6b627125..15906f51 100644 --- a/devel/hs-threadscope/Makefile +++ b/devel/hs-threadscope/Makefile @@ -10,8 +10,8 @@ COMMENT= Graphical tool for profiling parallel Haskell programs LICENSE= BSD -USE_CABAL= cairo ghc-events>=0.4.2 glib gtk>=0.12 gtk2hs-buildtools mtl \ - pango +USE_CABAL= binary cairo ghc-events>=0.4.2 glib gtk>=0.12 \ + gtk2hs-buildtools mtl pango EXECUTABLE= threadscope STANDALONE= yes diff --git a/devel/hs-timezone-olson/Makefile b/devel/hs-timezone-olson/Makefile index c1e49a2a..c17d9ed5 100644 --- a/devel/hs-timezone-olson/Makefile +++ b/devel/hs-timezone-olson/Makefile @@ -10,7 +10,8 @@ COMMENT= Pure Haskell parser and renderer for binary Olson timezone files LICENSE= BSD -USE_CABAL= extensible-exceptions>=0.1.0 timezone-series>=0.1.0 +USE_CABAL= binary>=0.4.1 extensible-exceptions>=0.1.0 \ + timezone-series>=0.1.0 .include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" .include diff --git a/devel/hs-uuid/Makefile b/devel/hs-uuid/Makefile index 1dcdf79b..e0d08010 100644 --- a/devel/hs-uuid/Makefile +++ b/devel/hs-uuid/Makefile @@ -9,7 +9,8 @@ COMMENT= Creating, comparing, parsing and printing Universally Unique Identifier LICENSE= BSD -USE_CABAL= cryptohash>=0.7 hashable network-info random>=1.0.1 +USE_CABAL= binary>=0.4 cryptohash>=0.7 hashable network-info \ + random>=1.0.1 .include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" .include diff --git a/devel/hs-vector-binary-instances/Makefile b/devel/hs-vector-binary-instances/Makefile index e8fc1df6..8be3a77c 100644 --- a/devel/hs-vector-binary-instances/Makefile +++ b/devel/hs-vector-binary-instances/Makefile @@ -9,7 +9,7 @@ COMMENT= Instances of Data.Binary and Data.Serialize for vector LICENSE= BSD -USE_CABAL= cereal vector>=0.6 +USE_CABAL= binary cereal vector>=0.6 .include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" .include diff --git a/dns/hs-dns/Makefile b/dns/hs-dns/Makefile index f105e671..66fa1427 100644 --- a/dns/hs-dns/Makefile +++ b/dns/hs-dns/Makefile @@ -9,8 +9,9 @@ COMMENT= DNS library in Haskell LICENSE= BSD -USE_CABAL= attoparsec attoparsec-conduit blaze-builder conduit>=0.5 \ - iproute>=1.2.4 mtl network>=2.3 network-conduit random +USE_CABAL= attoparsec attoparsec-conduit binary blaze-builder \ + conduit>=0.5 iproute>=1.2.4 mtl network>=2.3 network-conduit \ + random .include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" .include diff --git a/editors/hs-yi/Makefile b/editors/hs-yi/Makefile index a0b0d506..74d41dec 100644 --- a/editors/hs-yi/Makefile +++ b/editors/hs-yi/Makefile @@ -9,7 +9,7 @@ COMMENT= Haskell-Scriptable Editor LICENSE= GPLv2 -USE_CABAL= cautious-file>=1.0.1 concrete-typerep>=0.1.0.2 \ +USE_CABAL= binary>=0.5 cautious-file>=1.0.1 concrete-typerep>=0.1.0.2 \ data-accessor>=0.2.1.4 data-accessor-mtl \ data-accessor-template>=0.2.1.3 derive>=2.4 Diff>=0.1 \ dlist>=0.4.1 dyre>=0.8.11 fingertree>=0 ghc-paths hashable \ diff --git a/lang/ghc/bsd.hackage.mk b/lang/ghc/bsd.hackage.mk index 087d283d..1edbde29 100644 --- a/lang/ghc/bsd.hackage.mk +++ b/lang/ghc/bsd.hackage.mk @@ -40,6 +40,7 @@ base64-string_port= devel/hs-base64-string base-unicode-symbols_port= devel/hs-base-unicode-symbols basic-prelude_port= devel/hs-basic-prelude bifunctors_port= devel/hs-bifunctors +binary_port= devel/hs-binary binary-shared_port= devel/hs-binary-shared bio_port= science/hs-bio bits-atomic_port= devel/hs-bits-atomic diff --git a/lang/hs-idris/Makefile b/lang/hs-idris/Makefile index 47b9411e..395b5402 100644 --- a/lang/hs-idris/Makefile +++ b/lang/hs-idris/Makefile @@ -16,10 +16,10 @@ BUILD_DEPENDS+= boehm-gc>=7.1:${PORTSDIR}/devel/boehm-gc \ RUN_DEPENDS+= boehm-gc>=7.1:${PORTSDIR}/devel/boehm-gc \ gmp>=5.0.2:${PORTSDIR}/math/gmp -USE_CABAL= ansi-terminal ansi-wl-pprint haskeline>=0.7 language-java>=0.2.6 \ - mtl network parsers>=0.9 split text transformers \ - trifecta>=1.1 unordered-containers utf8-string vector \ - vector-binary-instances xml +USE_CABAL= ansi-terminal ansi-wl-pprint binary haskeline>=0.7 \ + language-java>=0.2.6 mtl network parsers>=0.9 split text \ + transformers trifecta>=1.1 unordered-containers utf8-string \ + vector vector-binary-instances xml FLAGS_DEFINE= LLVM_BACKEND FFI GMP FLAGS_DEFAULT= LLVM_BACKEND FFI GMP diff --git a/math/hs-Agda/Makefile b/math/hs-Agda/Makefile index e7d0a6ee..6bc19516 100644 --- a/math/hs-Agda/Makefile +++ b/math/hs-Agda/Makefile @@ -8,7 +8,7 @@ CATEGORIES= math haskell MAINTAINER= haskell@FreeBSD.org COMMENT= Dependently typed functional programming language and proof assistant -USE_CABAL= geniplate>=0.6.0.3 hashable hashtables>=1.0 \ +USE_CABAL= binary>=0.4.4 geniplate>=0.6.0.3 hashable hashtables>=1.0 \ haskeline>=0.6.3.2 haskell-src-exts>=1.9.6 mtl \ QuickCheck>=2.3 parallel text unordered-containers \ xhtml zlib>=0.4.0.1 diff --git a/math/hs-Agda/files/patch-Agda.cabal b/math/hs-Agda/files/patch-Agda.cabal new file mode 100644 index 00000000..a3ea96d1 --- /dev/null +++ b/math/hs-Agda/files/patch-Agda.cabal @@ -0,0 +1,11 @@ +--- ./Agda.cabal.orig 2013-09-27 22:07:07.000000000 +0200 ++++ ./Agda.cabal 2014-01-11 23:23:16.000000000 +0100 +@@ -77,7 +77,7 @@ + pretty >= 1.0 && < 1.2, + bytestring >= 0.9.0.1 && < 0.11, + array >= 0.1 && < 0.5, +- binary >= 0.4.4 && < 0.6, ++ binary >= 0.4.4 && < 0.8, + zlib >= 0.4.0.1 && < 0.6, + filepath >= 1.1 && < 1.4, + process >= 1.0.1.0 && < 1.2, diff --git a/net/hs-maccatcher/Makefile b/net/hs-maccatcher/Makefile index 89713f29..4da6803d 100644 --- a/net/hs-maccatcher/Makefile +++ b/net/hs-maccatcher/Makefile @@ -10,7 +10,7 @@ COMMENT= Obtain the host MAC address on *NIX and Windows LICENSE= BSD -USE_CABAL= parsec +USE_CABAL= binary parsec .include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" .include diff --git a/science/hs-bio/Makefile b/science/hs-bio/Makefile index 63364b31..dccbdd67 100644 --- a/science/hs-bio/Makefile +++ b/science/hs-bio/Makefile @@ -10,7 +10,8 @@ COMMENT= Bioinformatics library LICENSE= LGPL21 -USE_CABAL= mtl parallel parsec QuickCheck>=2 random tagsoup>=0.8 +USE_CABAL= binary>=0.4 mtl parallel parsec QuickCheck>=2 random \ + tagsoup>=0.8 EXECUTABLE= fastout flowclip flx frecover frename orf rselect-pe diff --git a/security/hs-RSA/Makefile b/security/hs-RSA/Makefile index 8cc2aaca..f6a815b7 100644 --- a/security/hs-RSA/Makefile +++ b/security/hs-RSA/Makefile @@ -9,8 +9,8 @@ COMMENT= Implementation of RSA, using the padding schemes of PKCS#1 v2.1 LICENSE= BSD -USE_CABAL= crypto-api>=0.10 crypto-pubkey-types>=0.2 monadcryptorandom>0 \ - pureMD5>0 SHA>0 +USE_CABAL= binary>0.0 crypto-api>=0.10 crypto-pubkey-types>=0.2 \ + monadcryptorandom>0 pureMD5>0 SHA>0 .include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" .include diff --git a/security/hs-SHA/Makefile b/security/hs-SHA/Makefile index 0d62893d..fe3686ef 100644 --- a/security/hs-SHA/Makefile +++ b/security/hs-SHA/Makefile @@ -10,6 +10,8 @@ COMMENT= Implementations of the SHA suite of message digest functions LICENSE= BSD +USE_CABAL= binary + FLAGS_DEFINE= EXE EXE_DESC= Build a SHA2-384 executable similar to 'md5sum' diff --git a/security/hs-pureMD5/Makefile b/security/hs-pureMD5/Makefile index a388c985..e8aefee6 100644 --- a/security/hs-pureMD5/Makefile +++ b/security/hs-pureMD5/Makefile @@ -10,7 +10,7 @@ COMMENT= Haskell-only implementation of MD5 digest (hash) yalgorithm LICENSE= BSD -USE_CABAL= cereal>=0.2 crypto-api tagged +USE_CABAL= binary>=0.4.0 cereal>=0.2 crypto-api tagged .include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" .include diff --git a/security/hs-pwstore-fast/Makefile b/security/hs-pwstore-fast/Makefile index c190c151..7bc23b85 100644 --- a/security/hs-pwstore-fast/Makefile +++ b/security/hs-pwstore-fast/Makefile @@ -9,7 +9,8 @@ COMMENT= Secure password storage LICENSE= BSD -USE_CABAL= base64-bytestring>=0.1 cryptohash>=0.6 random>=1 SHA>=1.6.1 +USE_CABAL= base64-bytestring>=0.1 binary>=0.5 cryptohash>=0.6 random>=1 \ + SHA>=1.6.1 .include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" .include diff --git a/textproc/hs-hxt/Makefile b/textproc/hs-hxt/Makefile index 181a089b..6ccdc3f0 100644 --- a/textproc/hs-hxt/Makefile +++ b/textproc/hs-hxt/Makefile @@ -9,8 +9,9 @@ COMMENT= Collection of tools for processing XML with Haskell LICENSE= MIT -USE_CABAL= HUnit>=1.2 hxt-charproperties>=9.1 hxt-regex-xmlschema>=9 \ - hxt-unicode>=9.0.1 mtl>=2 network>=2.4 parsec>=2.1 +USE_CABAL= binary>=0.5 HUnit>=1.2 hxt-charproperties>=9.1 \ + hxt-regex-xmlschema>=9 hxt-unicode>=9.0.1 mtl>=2 network>=2.4 \ + parsec>=2.1 .include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" .include