summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Żołnowski <aidecoe@gentoo.org>2016-06-06 23:15:23 +0100
committerAmadeusz Żołnowski <aidecoe@gentoo.org>2016-06-07 23:20:19 +0100
commit47a591d4781fa42418e736190921e590cbf1eb3e (patch)
tree6931fc139c77f585f7ba932440246e50b6bebc55 /dev-erlang/hamcrest
parentdev-erlang/goldrush: Add new package (diff)
downloadgentoo-47a591d4781fa42418e736190921e590cbf1eb3e.tar.gz
gentoo-47a591d4781fa42418e736190921e590cbf1eb3e.tar.bz2
gentoo-47a591d4781fa42418e736190921e590cbf1eb3e.zip
dev-erlang/hamcrest: Add new package
It is debundled from net-im/ejabberd-16.04 and therefore inherits keywords from ejabberd: ~amd64, ~arm, ~ppc and ~x86. ~ia64 and ~sparc are not inherited because other dependency is missing these keywords and there's no chance it can get them any time soon. Package-Manager: portage-2.3.0_rc1
Diffstat (limited to 'dev-erlang/hamcrest')
-rw-r--r--dev-erlang/hamcrest/Manifest1
-rw-r--r--dev-erlang/hamcrest/hamcrest-0.1.0_p20150103.ebuild38
-rw-r--r--dev-erlang/hamcrest/metadata.xml8
3 files changed, 47 insertions, 0 deletions
diff --git a/dev-erlang/hamcrest/Manifest b/dev-erlang/hamcrest/Manifest
new file mode 100644
index 000000000000..6c1d4a442400
--- /dev/null
+++ b/dev-erlang/hamcrest/Manifest
@@ -0,0 +1 @@
+DIST hamcrest-0.1.0_p20150103.tar.gz 160516 SHA256 4d218370ab4f557636dc4867f5996637e1cfdbc6e5b6d0703591c9be1b8a0860 SHA512 d7ed0db598f15e5a2724c31d35a2e34ca55ff37d715c1e8a4b35fd438567f1ae2c4d266dee7215690e8508f77f625a551b7ecbef06582a9ffddb9d14d895fab8 WHIRLPOOL 4a8af0847ed2586e8038a62c178afcf69e48ae258c5d430824e28315c2beefa7abf9a68bff03959c4793e2738a6aeec7318133c11784e217bb3d6464705a91bf
diff --git a/dev-erlang/hamcrest/hamcrest-0.1.0_p20150103.ebuild b/dev-erlang/hamcrest/hamcrest-0.1.0_p20150103.ebuild
new file mode 100644
index 000000000000..f75b91a077f5
--- /dev/null
+++ b/dev-erlang/hamcrest/hamcrest-0.1.0_p20150103.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit rebar
+
+DESCRIPTION="Erlang port of Hamcrest"
+HOMEPAGE="https://github.com/hyperthunk/hamcrest-erlang"
+SRC_URI="https://dev.gentoo.org/~aidecoe/distfiles/${CATEGORY}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~x86"
+IUSE="test"
+
+CDEPEND=">=dev-lang/erlang-17.1"
+DEPEND="${CDEPEND}
+ test? ( >=dev-erlang/proper-1.1 )"
+RDEPEND="${CDEPEND}"
+
+DOCS=( NOTES README.markdown TODO.md )
+
+# FIXME: Fails, reported upstream:
+# FIXME: https://github.com/hyperthunk/hamcrest-erlang/issues/21
+RESTRICT="test"
+
+# Override with EAPI default because it's missing hamcrest.app.src and doesn't
+# have any deps.
+src_prepare() {
+ default
+}
+
+src_test() {
+ rebar_remove_deps test.config
+ erebar -C test.config compile ct
+}
diff --git a/dev-erlang/hamcrest/metadata.xml b/dev-erlang/hamcrest/metadata.xml
new file mode 100644
index 000000000000..674f5ad944f3
--- /dev/null
+++ b/dev-erlang/hamcrest/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>aidecoe@gentoo.org</email>
+ <name>Amadeusz Żołnowski</name>
+ </maintainer>
+</pkgmetadata>