Skip to content

Commit

Permalink
dev-erlang/meck: Add new package
Browse files Browse the repository at this point in the history
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
  • Loading branch information
aidecoe committed Jun 7, 2016
1 parent d55ef42 commit 0e20d79
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-erlang/meck/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST meck-0.8.3.tar.gz 232910 SHA256 cc20fac15c317c9e5c2aa14e9cea42416f338830f4566a41b78b2e523b0af813 SHA512 2009bba7d9e7825142c335a03f3f67ef1a9407fa0f93d360c3f4854851af789dc3ad65935e42b1f0bc69d0f47a8854d311eaf68628a4088d1bcbe05c4010c5bd WHIRLPOOL 36c64e01df25f06e76853e5027d14ad5fcc547f0438863fbcb4862e7742445bcc4dfd4f284deabe946fb931ea8b840f23a825ed54299efe2872b87806cf5439f
32 changes: 32 additions & 0 deletions dev-erlang/meck/meck-0.8.3.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6

inherit rebar

DESCRIPTION="Mocking library for Erlang"
HOMEPAGE="https://github.com/eproxus/meck"
SRC_URI="https://github.com/eproxus/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ppc ~x86"
IUSE="test"

CDEPEND=">=dev-lang/erlang-17.1"
DEPEND="${CDEPEND}
test? ( >=dev-erlang/hamcrest-0.1.0_p20150103 )"
RDEPEND="${CDEPEND}"

DOCS=( CHANGELOG NOTICE README.md )

src_prepare() {
rebar_src_prepare
rebar_remove_deps test.config
}

src_test() {
erebar -C test.config compile eunit
}
8 changes: 8 additions & 0 deletions dev-erlang/meck/metadata.xml
Original file line number Diff line number Diff line change
@@ -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>[email protected]</email>
<name>Amadeusz Żołnowski</name>
</maintainer>
</pkgmetadata>

0 comments on commit 0e20d79

Please sign in to comment.