From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-haskell/pcre-light/Manifest | 6 ++++ .../pcre-light/files/pcre-light-0.4-ghc-7.7.patch | 39 ++++++++++++++++++++++ dev-haskell/pcre-light/metadata.xml | 21 ++++++++++++ dev-haskell/pcre-light/pcre-light-0.4-r1.ebuild | 27 +++++++++++++++ dev-haskell/pcre-light/pcre-light-0.4.0.4.ebuild | 26 +++++++++++++++ 5 files changed, 119 insertions(+) create mode 100644 dev-haskell/pcre-light/Manifest create mode 100644 dev-haskell/pcre-light/files/pcre-light-0.4-ghc-7.7.patch create mode 100644 dev-haskell/pcre-light/metadata.xml create mode 100644 dev-haskell/pcre-light/pcre-light-0.4-r1.ebuild create mode 100644 dev-haskell/pcre-light/pcre-light-0.4.0.4.ebuild (limited to 'dev-haskell/pcre-light') diff --git a/dev-haskell/pcre-light/Manifest b/dev-haskell/pcre-light/Manifest new file mode 100644 index 000000000000..c761222731c0 --- /dev/null +++ b/dev-haskell/pcre-light/Manifest @@ -0,0 +1,6 @@ +AUX pcre-light-0.4-ghc-7.7.patch 1454 BLAKE2B 655e6e9b0e398b645615e11bd7d9ef28511f9aeecfc438967eb6edbefccfca35e1ad06c4316920155bf68441129a72e0b8c87698dacad7fcc43e08b12dc5ca72 SHA512 48cec940fee9b5eea9835d2538bd00e0020f5c83f211c96b4076453304e342567789da5e911f717df80cf51ad1e07365f4d1f914b3f18dc99a44331f749750f1 +DIST pcre-light-0.4.0.4.tar.gz 15065 BLAKE2B 5ce576bc77e61265326bda0109ce5b8692f06401630400a5f3e8fc94afe3cf7334c0800774bc5acae251a78d4ffe488a3c3435c67d467f75c9ff58c2d8a33996 SHA512 ca5f52a8737b2785b4d3eb7c1463233dc579cf10bdb620397f842d4bddafbe636b992f725f85086e5916f2def163d5d25661acd24a358421e2f7f859a2f876f0 +DIST pcre-light-0.4.tar.gz 28943 BLAKE2B 3458990cddf6361c7b67fcc66c8abfb900e6e1efd93c1eb5b8ab9d46337911e5122dc20d5ba9a1cb28a9cafbab64d06bb15e79361d64e06bb4f6c19674fe40ad SHA512 1cbb37743018e0199d3c23f5cda34a41514ecc375650f2a79935c16b12b4411e5ce1d7fc84b29fbb41458a2493998471cbefc54adbf848d59877c6be4d34b6aa +EBUILD pcre-light-0.4-r1.ebuild 664 BLAKE2B 7b7f3a6fb367e837a5df6ccc86f6cdb7c9cd0653bb42bbe9f532d1abd9345ca161bad05d25bba7d9dc77f90abf9c4a379a429ba53872ac2097d8d07d8e303a39 SHA512 1ca387a68cda342fc98a2caad58c31cd9edc0b076ebadee996c612bb18e375bf5fe00c98b99a84dc0cf488d1f94b9c81f4ba06e4daea7415ef68930f9ead68d3 +EBUILD pcre-light-0.4.0.4.ebuild 629 BLAKE2B 425826896f2554527087d445dc337965f85fa5ad14d80163da7062d268c4ea3216ef0f1078e4f645ccc4272ba69bcbe8cc7ba20b7b3a10808edd1fcb34afced2 SHA512 2b6819af4922a0f863d188e407cdf3dc49cd20fb546913325851fa384b4e585df4ad249dbaa6f735575ad601080129e8940b3b445552fe67891be803f0de6a5b +MISC metadata.xml 742 BLAKE2B 729536ebe79ab8a3a9fd3497c1b4d51d9b0c73d5ba7848ae2466386c6b0cd2524b4c1bb61dbc7952cd2736eaf3ee718dadb9c4fcaa3923cced061ea4d43d274d SHA512 0d8f8db2294a8c2f867f93a69161cc50e8284de0e9aa632c39d4b4ae96fc7d79226ee47e6092fa1af2e925e1e8c3471a1033faea43243d78dc2d3d18c8442e2e diff --git a/dev-haskell/pcre-light/files/pcre-light-0.4-ghc-7.7.patch b/dev-haskell/pcre-light/files/pcre-light-0.4-ghc-7.7.patch new file mode 100644 index 000000000000..2b4181929f60 --- /dev/null +++ b/dev-haskell/pcre-light/files/pcre-light-0.4-ghc-7.7.patch @@ -0,0 +1,39 @@ +diff --git a/Text/Regex/PCRE/Light.hs b/Text/Regex/PCRE/Light.hs +index 80c28a0..7fc9581 100644 +--- a/Text/Regex/PCRE/Light.hs ++++ b/Text/Regex/PCRE/Light.hs +@@ -77,6 +77,7 @@ import qualified Data.ByteString as S + #if __GLASGOW_HASKELL__ >= 608 + import qualified Data.ByteString.Internal as S + import qualified Data.ByteString.Unsafe as S ++import qualified System.IO.Unsafe as U + #else + import qualified Data.ByteString.Base as S + #endif +@@ -193,7 +194,7 @@ compile s o = case compileM s o of + -- > Left "nothing to repeat" + -- + compileM :: S.ByteString -> [PCREOption] -> Either String Regex +-compileM str os = unsafePerformIO $ ++compileM str os = U.unsafePerformIO $ + S.useAsCString str $ \pattern -> do + alloca $ \errptr -> do + alloca $ \erroffset -> do +@@ -263,7 +264,7 @@ compileM str os = unsafePerformIO $ + -- is returned. + -- + match :: Regex -> S.ByteString -> [PCREExecOption] -> Maybe [S.ByteString] +-match (Regex pcre_fp _) subject os = unsafePerformIO $ do ++match (Regex pcre_fp _) subject os = U.unsafePerformIO $ do + withForeignPtr pcre_fp $ \pcre_ptr -> do + n_capt <- captureCount' pcre_ptr + +@@ -324,7 +325,7 @@ match (Regex pcre_fp _) subject os = unsafePerformIO $ do + + + captureCount :: Regex -> Int +-captureCount (Regex pcre_fp _) = unsafePerformIO $ do ++captureCount (Regex pcre_fp _) = U.unsafePerformIO $ do + withForeignPtr pcre_fp $ \pcre_ptr -> do + captureCount' pcre_ptr + diff --git a/dev-haskell/pcre-light/metadata.xml b/dev-haskell/pcre-light/metadata.xml new file mode 100644 index 000000000000..db85e01eaea8 --- /dev/null +++ b/dev-haskell/pcre-light/metadata.xml @@ -0,0 +1,21 @@ + + + + + haskell@gentoo.org + Gentoo Haskell + + + A small, efficient and portable regex library for Perl 5 compatible regular expressions + + The PCRE library is a set of functions that implement regular + expression pattern matching using the same syntax and semantics as Perl 5. + + Test coverage data for this library is available at: + <http://code.haskell.org/~dons/tests/pcre-light/hpc_index.html> + + + + Daniel-Diaz/pcre-light + + diff --git a/dev-haskell/pcre-light/pcre-light-0.4-r1.ebuild b/dev-haskell/pcre-light/pcre-light-0.4-r1.ebuild new file mode 100644 index 000000000000..10929efdfe69 --- /dev/null +++ b/dev-haskell/pcre-light/pcre-light-0.4-r1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# ebuild generated by hackport 0.3.4.9999 + +CABAL_FEATURES="lib profile haddock hoogle hscolour" +inherit base haskell-cabal + +DESCRIPTION="Portable regex library for Perl 5 compatible regular expressions" +HOMEPAGE="http://code.haskell.org/~dons/code/pcre-light" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="amd64 x86 ~amd64-linux" +IUSE="" + +RDEPEND=">=dev-lang/ghc-6.10.4:= + dev-libs/libpcre +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.6.0.3 +" + +PATCHES=("${FILESDIR}"/${P}-ghc-7.7.patch) diff --git a/dev-haskell/pcre-light/pcre-light-0.4.0.4.ebuild b/dev-haskell/pcre-light/pcre-light-0.4.0.4.ebuild new file mode 100644 index 000000000000..d1560fba8ded --- /dev/null +++ b/dev-haskell/pcre-light/pcre-light-0.4.0.4.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# ebuild generated by hackport 0.4.6.9999 + +CABAL_FEATURES="lib profile haddock hoogle hscolour" +inherit haskell-cabal + +DESCRIPTION="Portable regex library for Perl 5 compatible regular expressions" +HOMEPAGE="https://github.com/Daniel-Diaz/pcre-light" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86 ~amd64-linux" +IUSE="" + +RDEPEND=">=dev-lang/ghc-7.4.1:= + dev-libs/libpcre +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.2.0 + virtual/pkgconfig +" -- cgit v1.2.3