summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Matejka <yac@gentoo.org>2013-08-08 23:54:08 +0000
committerJan Matejka <yac@gentoo.org>2013-08-08 23:54:08 +0000
commit58e72a8c21510b467127dbb7fd5fd2a2c5dd01dc (patch)
tree31481e105c316494e9fa25c69879635fe9cef8e5
parentVersion bump. (diff)
downloadgentoo-2-58e72a8c21510b467127dbb7fd5fd2a2c5dd01dc.tar.gz
gentoo-2-58e72a8c21510b467127dbb7fd5fd2a2c5dd01dc.tar.bz2
gentoo-2-58e72a8c21510b467127dbb7fd5fd2a2c5dd01dc.zip
New package dev-lang/whitespace-0.3
(Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key F97A36A1)
-rw-r--r--dev-lang/whitespace/ChangeLog9
-rw-r--r--dev-lang/whitespace/files/whitespace-cabal.patch24
-rw-r--r--dev-lang/whitespace/metadata.xml11
-rw-r--r--dev-lang/whitespace/whitespace-0.3.ebuild34
4 files changed, 78 insertions, 0 deletions
diff --git a/dev-lang/whitespace/ChangeLog b/dev-lang/whitespace/ChangeLog
new file mode 100644
index 000000000000..8c74ef61d518
--- /dev/null
+++ b/dev-lang/whitespace/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-lang/whitespace
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/whitespace/ChangeLog,v 1.1 2013/08/08 23:54:07 yac Exp $
+
+*whitespace-0.3 (08 Aug 2013)
+
+ 08 Aug 2013; Jan Matejka <yac@gentoo.org> +files/whitespace-cabal.patch,
+ +metadata.xml, +whitespace-0.3.ebuild:
+ New package dev-lang/whitespace-0.3
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..410c5e5c0b8d
--- /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>
+ <email>yac@gentoo.org</email>
+ <name>Jan Matejka</name>
+ </maintainer>
+ <longdescription lang="en">
+ </longdescription>
+</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..9aa0cbb3ffa6
--- /dev/null
+++ b/dev-lang/whitespace/whitespace-0.3.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/whitespace/whitespace-0.3.ebuild,v 1.1 2013/08/08 23:54:07 yac Exp $
+
+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"; }
+}