diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-lang/whitespace | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-lang/whitespace')
-rw-r--r-- | dev-lang/whitespace/Manifest | 7 | ||||
-rw-r--r-- | dev-lang/whitespace/files/whitespace-0.4-ghc-7.10.patch | 37 | ||||
-rw-r--r-- | dev-lang/whitespace/files/whitespace-cabal.patch | 24 | ||||
-rw-r--r-- | dev-lang/whitespace/metadata.xml | 11 | ||||
-rw-r--r-- | dev-lang/whitespace/whitespace-0.3.ebuild | 33 | ||||
-rw-r--r-- | dev-lang/whitespace/whitespace-0.4.ebuild | 29 |
6 files changed, 141 insertions, 0 deletions
diff --git a/dev-lang/whitespace/Manifest b/dev-lang/whitespace/Manifest new file mode 100644 index 000000000000..2a9f04e940d4 --- /dev/null +++ b/dev-lang/whitespace/Manifest @@ -0,0 +1,7 @@ +AUX whitespace-0.4-ghc-7.10.patch 814 BLAKE2B f9746fd7bd9e51b7429a14b89d617c256ea76004384a1773b3ef35aeaa8518e96db9d53cf52dba025a96d44b3f97d11b42a3c0fa51bb40c15bfa2dfa65a66d22 SHA512 b0202b848539ef1d04974fce40facc8c0090d35da77d6fc98cb7da296efb89a8b81efda1f3dd045115417fc1471b4298be913992dd4a9772642c31ec5960fa90 +AUX whitespace-cabal.patch 948 BLAKE2B 89d35a4a65cbc9e85e652a16e7c3ed8eb01b77b4aeb1f498d97a5c7e0697540cae0aa351114b5abb001949994df7b7ed5e64dfbf911564b845f3cd9cb4956741 SHA512 5c160defe828f6a533a0faa91ef3db19c8cb0edccc421fbf387f28d7dc681a5f66b4c098108893fad41e22643ec74f265f7ce00119e70f0b98dc2d1a9f7aba46 +DIST whitespace-0.4.tar.gz 16428 BLAKE2B d5353b05b80a14ed0583513568d2889816c9e8b7fca8d5253bb5def584c5d43cb0ed8fa46943e7c6c0f82b6424dd01879b7beaaad813a5beb6fc3081f4dfd618 SHA512 2a1c932d650f6cfd55bb7c08b8882086143bc9ec2b0f639a7452116d86f12daff1a1268d7451003a6bf8635fbf1ad23e9203410fd423ce16d4239c1b552d7046 +DIST wspace-0.3.tgz 15471 BLAKE2B 7b5d5435b78d9ff794c69b21332328d0f21dddd07663076c1d3e8e76469196d109827082cd2dd26b74ecd6305631cb254adf5ffa917707146ace29cd107df192 SHA512 d162e804b0b6c4cba164552678ef3a094153e89a0df5f684e52b93229d88699cf9c7fd31641b88fd8c4653c158b1e77193ebd9cd1edfc47863a09798f67d3487 +EBUILD whitespace-0.3.ebuild 675 BLAKE2B 214fd7c0711f1b901a504a8c4354ec9fd08199beb8421fb551672fd571d6ddb5bec5f7e056111108baa068489962c7a2525dc2e4d277e5de971304f373a726a7 SHA512 7c5a706f4b3a17a68c552eacf2af4d7e0794b0a09aa27801f6cbfed1e70a0030590bc09576aa7fc78b22484d32d550704cb00648db5390c9ebccf8b064461a7b +EBUILD whitespace-0.4.ebuild 612 BLAKE2B 6f1a9081a16c5a1c96e10ca5da426283cf8369c7af2c322c0fc876cf2814dfb6716b452354366481fb7393e6a0814143472de538202730b414b4c13aba42b04b SHA512 2fdf6bf29e5c03471855ee87ad6841b3d9f2e219aac75f3ed65c7a059b83f3aab26b3919d8979d04429c5da7c549e9e3011dfb1abc8010c4b845387b7357311f +MISC metadata.xml 335 BLAKE2B aed6ce9148bbca7ce32faf271998e85b612514fd59accd2010735b4971664479b2ce4fd16673a2a1e534ea92cf5d1df7774038937e7d428d649171bde27937f5 SHA512 eea77baf66a4e0d4bd5a703a6cf31258f47bd2f9f2f6975fa7b4ee401db4fdd6a27e6f0698313d71a059f2ae14b05f5148d2e844f4b7a05d7e5e49b4302a803a diff --git a/dev-lang/whitespace/files/whitespace-0.4-ghc-7.10.patch b/dev-lang/whitespace/files/whitespace-0.4-ghc-7.10.patch new file mode 100644 index 000000000000..6ee31f4e66e3 --- /dev/null +++ b/dev-lang/whitespace/files/whitespace-0.4-ghc-7.10.patch @@ -0,0 +1,37 @@ +diff --git a/VM.hs b/VM.hs +index 8ef93ce..e8113a0 100644 +--- a/VM.hs ++++ b/VM.hs +@@ -1,7 +1,7 @@ + module VM where + +-import Array +-import IO ++import Data.Array ++import System.IO + import System.Random + + {- Stack machine for running whitespace programs -} +diff --git a/main.hs b/main.hs +index 83c60b7..a22ff15 100644 +--- a/main.hs ++++ b/main.hs +@@ -26,7 +26,7 @@ import Input + import VM + import Tokens + +-import System(getArgs) ++import System.Environment (getArgs) + + main :: IO () + main = do +diff --git a/whitespace.cabal b/whitespace.cabal +index 95ae434..e57ac58 100644 +--- a/whitespace.cabal ++++ b/whitespace.cabal +@@ -15,4 +15,4 @@ Extra-Source-Files: VM.hs Tokens.hs Input.hs + + Executable wspace + Main-is: main.hs +- Build-Depends: haskell98, random ++ Build-Depends: base, array, random diff --git a/dev-lang/whitespace/files/whitespace-cabal.patch b/dev-lang/whitespace/files/whitespace-cabal.patch new file mode 100644 index 000000000000..f686d8c4851d --- /dev/null +++ b/dev-lang/whitespace/files/whitespace-cabal.patch @@ -0,0 +1,24 @@ +diff -u -N WSpace/Setup.lhs WSpace.patched/Setup.lhs +--- WSpace/Setup.lhs 1970-01-01 01:00:00.000000000 +0100 ++++ WSpace.patched/Setup.lhs 2013-08-09 01:14:00.415264165 +0200 +@@ -0,0 +1,3 @@ ++#!/usr/bin/env runhaskell ++> import Distribution.Simple ++> main = defaultMain +diff -u -N WSpace/WSpace.cabal WSpace.patched/WSpace.cabal +--- WSpace/WSpace.cabal 1970-01-01 01:00:00.000000000 +0100 ++++ WSpace.patched/WSpace.cabal 2013-08-09 01:44:19.129339177 +0200 +@@ -0,0 +1,10 @@ ++name: WSpace ++version: 0.3 ++synopsis: Whitespace implementation in Haskell. ++category: Language ++Build-Type: Simple ++cabal-version: >= 1.2 ++ ++Executable wspace ++ Main-Is: main.hs ++ Build-Depends: haskell98 +Common subdirectories: WSpace/docs and WSpace.patched/docs +Common subdirectories: WSpace/emacs and WSpace.patched/emacs +Common subdirectories: WSpace/examples and WSpace.patched/examples diff --git a/dev-lang/whitespace/metadata.xml b/dev-lang/whitespace/metadata.xml new file mode 100644 index 000000000000..41574f2e48b6 --- /dev/null +++ b/dev-lang/whitespace/metadata.xml @@ -0,0 +1,11 @@ +<?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> + <upstream> + <remote-id type="github">haroldl/whitespace-nd</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-lang/whitespace/whitespace-0.3.ebuild b/dev-lang/whitespace/whitespace-0.3.ebuild new file mode 100644 index 000000000000..a3d12e7590f6 --- /dev/null +++ b/dev-lang/whitespace/whitespace-0.3.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +CABAL_FEATURES="bin" + +inherit haskell-cabal + +DESCRIPTION="Whitespace language interpreter in haskell" +HOMEPAGE="http://compsoc.dur.ac.uk/whitespace/" +SRC_URI="http://compsoc.dur.ac.uk/whitespace/downloads/wspace-${PV}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples" + +DEPEND="dev-lang/ghc" +RDEPEND="" + +S="${WORKDIR}/WSpace" + +src_prepare() { + epatch -p1 "${FILESDIR}/${PN}-cabal.patch" +} + +src_install() { + cabal_src_install + + dohtml docs/tutorial.html || die "dohtml failed" + use examples && { dodoc -r examples || die "dodoc failed"; } +} diff --git a/dev-lang/whitespace/whitespace-0.4.ebuild b/dev-lang/whitespace/whitespace-0.4.ebuild new file mode 100644 index 000000000000..2074c9e8c41e --- /dev/null +++ b/dev-lang/whitespace/whitespace-0.4.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# ebuild generated by hackport 0.3.5.9999 + +CABAL_FEATURES="bin" +inherit eutils haskell-cabal + +DESCRIPTION="Whitespace, an esoteric programming language" +HOMEPAGE="https://github.com/haroldl/whitespace-nd" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.6.0.3 + dev-haskell/random + >=dev-lang/ghc-6.10.4 +" + +src_prepare() { + epatch "${FILESDIR}"/${P}-ghc-7.10.patch +} |