summaryrefslogtreecommitdiff
path: root/dev-lang/epic
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-lang/epic
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-lang/epic')
-rw-r--r--dev-lang/epic/Manifest6
-rw-r--r--dev-lang/epic/epic-0.9.3.3-r1.ebuild39
-rw-r--r--dev-lang/epic/files/epic-0.9.3.3-respect-user-cflags.patch13
-rw-r--r--dev-lang/epic/metadata.xml16
4 files changed, 74 insertions, 0 deletions
diff --git a/dev-lang/epic/Manifest b/dev-lang/epic/Manifest
new file mode 100644
index 000000000000..904bc1fcd630
--- /dev/null
+++ b/dev-lang/epic/Manifest
@@ -0,0 +1,6 @@
+AUX epic-0.9.3.3-respect-user-cflags.patch 324 SHA256 8f5c725bac29b6bf3ec0bad7a00ea6d3036a11f4b2fe7f79d3d7f6243173cab4 SHA512 cb0ca719cd357a88aee3f449877b17a831eff064564f2c27cc2254c61bc4cc41dc2e9746d7c88a56bc70b3132534bf74da2d43e79a3f47ad1ae3e9b489248fba WHIRLPOOL d7e24d7fbfc98d82c241ddca10de6f0ab7ceaf982cf9302ad40ec986ae256bcef23649163506672be3414a988b988ee2666f92a1df1f98144a73e6f916cbe7ef
+DIST epic-0.9.3.3.tar.gz 87163 SHA256 559844322f0f3c6d511d70e1a3166175f4aea084ea0e109b161b4d1d4296e82a SHA512 f957eb5402eebad9d52f0d38cf552c00ff5df9caffce97961e761e7c91ed33dee520cb0255f6547db1c05ed6dda7a3e4833d375a5fc0ebe7e94502736a49c566 WHIRLPOOL be19a826d292f490c618659ba8c482cc74cf2239c1585a1d26b62265623858daeb79bdb65b14ede58d0d695a9a0c7f5397d6c3b94c0e5c9326e3b9cc0533096d
+EBUILD epic-0.9.3.3-r1.ebuild 975 SHA256 d41a0821d468a07152e1928d7b5a52683e0b6d2fb834d30250a15dcf2bd68b7e SHA512 4d3c263d8aa543608e932f17f8e5b0ea66c8316e58fe52a43a66c80a6dc2c91d200a537201bb6f733c272b6db649f32331ba8e767dc860fb6f2f836aaedcd38f WHIRLPOOL 8d189f1e8ea3975761ef7e80339beb41dd9dc484682588620ad600fc75e9eed73cd56271907106dae1bd6b0043e467986855230b430a57e8c0d3bf9ec126fa76
+MISC ChangeLog 3460 SHA256 9c6627e1de65a143e6037cf0733307613be63ac434bff6a49742b50d2d7f32b1 SHA512 c3947dcac29678a12f20b3823eca88fa12b30ffbf59c961e13302de313912b62b0ea2a1ab06bc7866815e123225dbfd63f3bfc58696e77119866fe6e902031ab WHIRLPOOL f6edcdffa269b43530c7c1e99454a6fdd3001f3ae430e65a7a9737ce83a6e388d12ea3d5141c5efb671cc074817a161c13e56bca9479d7fd8f945579ea928007
+MISC ChangeLog-2015 1279 SHA256 ef9519a12ff77c7e9fbf564a375c9cbfae66fdfad9acc6d0d9cc119539e5f218 SHA512 547e1d5a083c94129352b55ed12c6d58fe2ac2c0b30c0b2082bc379a1cfe182be7858b88daf2dcbc47111f0b53640d56f4e9f7399b38afdc48fe9ebc7abb8f5a WHIRLPOOL 2b9705b715d70b3148635ea01800b7aa4ff7bf158b98d85a266ff604355c5745247df7e7a4d37813294cc72b80183658d89b85b91c36e04e62a2d7353d083967
+MISC metadata.xml 680 SHA256 6a6f67c8fe5c444c0ed0188eaa294a8ad0edd27418f3ab841bd4f2f5713364af SHA512 076fbcf53fdd99a52631c4671e21a65d7d430a13fb58b50fd193db180afd7987ff0591aff19e0672f2bf31c3e1ee1be8e532daf62093030db1a8d11267a321a5 WHIRLPOOL f8c3869387a85cabeaf990a8c01c13f9aeb6d4d25663ad2e1f214de248bef25264cf5d4efb84986880c4317e50f64c0d837f08fc98fdee2f42a3ccf268873d48
diff --git a/dev-lang/epic/epic-0.9.3.3-r1.ebuild b/dev-lang/epic/epic-0.9.3.3-r1.ebuild
new file mode 100644
index 000000000000..f7458b8b9a84
--- /dev/null
+++ b/dev-lang/epic/epic-0.9.3.3-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# ebuild generated by hackport 0.4.5.9999
+
+CABAL_FEATURES="bin lib profile haddock hoogle hscolour"
+inherit haskell-cabal
+
+DESCRIPTION="Compiler for a simple functional language"
+HOMEPAGE="http://www.dcs.st-and.ac.uk/~eb/epic.php"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-haskell/cabal:=[profile?]
+ dev-haskell/mtl:=[profile?]
+ >=dev-libs/boehm-gc-7.0:0=[threads]
+ dev-libs/gmp:0=
+ >=dev-lang/ghc-7.4.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.8.0.4
+ dev-haskell/happy
+"
+# Bug #438422, upstream at https://github.com/edwinb/EpiVM/issues/5.
+PATCHES=("${FILESDIR}"/${PN}-0.9.3.3-respect-user-cflags.patch)
+
+src_prepare() {
+ default
+
+ # to disambiguare with net-irc/epic4, bug #432436
+ cabal_chdeps \
+ 'Executable epic' 'Executable epic-epivm'
+}
diff --git a/dev-lang/epic/files/epic-0.9.3.3-respect-user-cflags.patch b/dev-lang/epic/files/epic-0.9.3.3-respect-user-cflags.patch
new file mode 100644
index 000000000000..eedfd253afec
--- /dev/null
+++ b/dev-lang/epic/files/epic-0.9.3.3-respect-user-cflags.patch
@@ -0,0 +1,13 @@
+diff --git a/evm/Makefile b/evm/Makefile
+index 7e6c5ff..f40f1a4 100644
+--- a/evm/Makefile
++++ b/evm/Makefile
+@@ -1,6 +1,7 @@
+ CC = gcc
+ #CFLAGS = -Wall -g -DUSE_BOEHM
+-CFLAGS = -Wall -O3 -DUSE_BOEHM
++CFLAGS ?= -Wall -O3
++CFLAGS += -DUSE_BOEHM
+ OBJS = closure.o stdfuns.o emalloc.o sparks.o
+ INSTALLDIR = ${PREFIX}/lib/evm
+
diff --git a/dev-lang/epic/metadata.xml b/dev-lang/epic/metadata.xml
new file mode 100644
index 000000000000..cd7cd0be0f78
--- /dev/null
+++ b/dev-lang/epic/metadata.xml
@@ -0,0 +1,16 @@
+<?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>
+ </maintainer>
+ <longdescription>
+ Epic is a simple functional language which compiles to
+ reasonably efficient C code, using the Boehm-Demers-Weiser
+ garbage collector (&lt;http://www.hpl.hp.com/personal/Hans_Boehm/gc/&gt;).
+ It is intended as a compiler back end, and is currently used
+ as a back end for Epigram (&lt;http://www.e-pig.org&gt;) and Idris
+ (&lt;http://idris-lang.org/&gt;).
+ It can be invoked either as a library or an application.
+ </longdescription>
+</pkgmetadata>