diff options
Diffstat (limited to 'dev-lang/bff')
-rw-r--r-- | dev-lang/bff/Manifest | 3 | ||||
-rw-r--r-- | dev-lang/bff/bff-1.0.5.ebuild | 35 | ||||
-rw-r--r-- | dev-lang/bff/metadata.xml | 11 |
3 files changed, 49 insertions, 0 deletions
diff --git a/dev-lang/bff/Manifest b/dev-lang/bff/Manifest new file mode 100644 index 000000000000..d4628cdf1b61 --- /dev/null +++ b/dev-lang/bff/Manifest @@ -0,0 +1,3 @@ +DIST bff-1.0.5.tar.gz 4833 BLAKE2B 9e3b44da9cd001552119e25764b171c86027755583f79a13b1d1035ecbab134df0aa31234c1479370599dd56a76a7f1c67eff61d2c1189430bab6a9a22f629d8 SHA512 78e481f6f371421ce6f046041fe6d48be2e11000ddda82f60244c0100665469c4aff4f151d297bb533140d723f68d5a3844e0c29a256b022ac93cafbd2abe9fd +EBUILD bff-1.0.5.ebuild 778 BLAKE2B 8a1accd3809accc014a2cea3208e306ee223efa3c45f6b8f7d1e7efef5c41c2921ca6cc9530c40205d5bb01fb8ff5a68b460509929e6028f3181954437829f8b SHA512 f2798b8ea848d52ada18c1a8ff6f2070b8bc2a1208a00c280073437ac57e0ad0ba5e6fb58b5db2df3fe427868e5ae554b2fcab70f4adb6056cbc0fadfd0e2b04 +MISC metadata.xml 358 BLAKE2B 475e8fa2af079096f259abc30d2f886eb2b568182394c5fa3a1c081754be7d151a3d10564315d6006232d6f2e7e68103337377db045c13a4fca1e05723d5ff0d SHA512 dc6a26609f65e38ec703c857c686e555170ad4021a994c3a39af131a9f3a38d6207a70558aae46dc5927dda8a9f735795d879a1ac4088ffeac5d09a068627f9c diff --git a/dev-lang/bff/bff-1.0.5.ebuild b/dev-lang/bff/bff-1.0.5.ebuild new file mode 100644 index 000000000000..ee9b8d706a87 --- /dev/null +++ b/dev-lang/bff/bff-1.0.5.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="A brainfuck interpreter" +HOMEPAGE="https://github.com/apankrat/bff" +SRC_URI="https://github.com/apankrat/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm ia64 m68k ppc ppc64 s390 sh x86" +IUSE="test" + +DEPEND="" +RDEPEND="" + +src_compile() { + # Makefile is not nice + emake -f /dev/null CC="$(tc-getCC)" bff +} + +src_test() { + ebegin "Running mandelbrot test" + ./bff samples/mandelbrot.b > mandelbrot.out + eend $? || die + md5sum -c <<< '5024283fa65866ddd347b877798e84d8 mandelbrot.out' \ + && cat mandelbrot.out \ + || die "mandelbrot did not output correctly" +} + +src_install() { + dobin bff +} diff --git a/dev-lang/bff/metadata.xml b/dev-lang/bff/metadata.xml new file mode 100644 index 000000000000..50b475c648bb --- /dev/null +++ b/dev-lang/bff/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="person"> + <email>amynka@gentoo.org</email> +</maintainer> +<longdescription lang="en"> + bff is a slightly optimized interpreter for brainfuck, a turing-complete + programming language. +</longdescription> +</pkgmetadata> |