public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:ejabberd-wip commit in: dev-erlang/jiffy/
@ 2016-04-28 23:03 Amadeusz Piotr Żołnowski
  0 siblings, 0 replies; only message in thread
From: Amadeusz Piotr Żołnowski @ 2016-04-28 23:03 UTC (permalink / raw
  To: gentoo-commits

commit:     e3e57acb68af7718c4583e37547c693a8c73278c
Author:     Amadeusz Żołnowski <aidecoe <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 28 22:55:33 2016 +0000
Commit:     Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org>
CommitDate: Thu Apr 28 22:55:33 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3e57acb

dev-erlang/jiffy: Add new package

Package-Manager: portage-2.2.28

 dev-erlang/jiffy/Manifest            |  1 +
 dev-erlang/jiffy/jiffy-0.14.5.ebuild | 47 ++++++++++++++++++++++++++++++++++++
 dev-erlang/jiffy/metadata.xml        |  8 ++++++
 3 files changed, 56 insertions(+)

diff --git a/dev-erlang/jiffy/Manifest b/dev-erlang/jiffy/Manifest
new file mode 100644
index 0000000..5537ac1
--- /dev/null
+++ b/dev-erlang/jiffy/Manifest
@@ -0,0 +1 @@
+DIST jiffy-0.14.5.tar.gz 1856258 SHA256 d61dfe9fc7504bd662b9d22d7ebb95fa4e1c1f678c14b1aa4127e15b16d4c1b0 SHA512 1e84352dcb5cdb27da6c1cd1a8deeb04ca6b4d7ebf9d0b07eb0c47b15c93ce371fe0a778ed9fc1091fbf033dd02e7768bc95f94fbd2a6ed2c6742306fc3dac9e WHIRLPOOL 36cad5b28ec78bee9af198122bd4b3389d2131749442209376af003f9ddcd2d154c74f229acd28fcea9364ee403ca9c57186a659a1fee20376d3292d5504a97d

diff --git a/dev-erlang/jiffy/jiffy-0.14.5.ebuild b/dev-erlang/jiffy/jiffy-0.14.5.ebuild
new file mode 100644
index 0000000..28b45d0
--- /dev/null
+++ b/dev-erlang/jiffy/jiffy-0.14.5.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit multilib
+
+DESCRIPTION="JSON NIFs for Erlang"
+HOMEPAGE="https://github.com/davisp/jiffy"
+SRC_URI="https://github.com/davisp/${PN}/archive/${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+CDEPEND=">=dev-lang/erlang-17.1"
+DEPEND="${CDEPEND}
+	dev-util/rebar"
+RDEPEND="${CDEPEND}"
+
+DOCS=( README.md )
+
+get_erl_libs() {
+	echo "/usr/$(get_libdir)/erlang/lib"
+}
+
+src_prepare() {
+	# Suppress deps check.
+	cat<<EOF >>"${S}/rebar.config.script"
+lists:keystore(deps, 1, CONFIG, {deps, []}).
+EOF
+	sed -e "s/vsn, git/vsn, \"${PV}\"/" \
+		-i "${S}/src/jiffy.app.src" || die
+}
+
+src_compile() {
+	export ERL_LIBS="${EPREFIX}$(get_erl_libs)"
+	rebar compile || die 'rebar compile failed'
+}
+
+src_install() {
+	insinto "$(get_erl_libs)/${P}"
+	doins -r ebin priv src
+	dodoc "${DOCS[@]}"
+}

diff --git a/dev-erlang/jiffy/metadata.xml b/dev-erlang/jiffy/metadata.xml
new file mode 100644
index 0000000..92f4567
--- /dev/null
+++ b/dev-erlang/jiffy/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>
+		<email>aidecoe@gentoo.org</email>
+		<name>Amadeusz Żołnowski</name>
+	</maintainer>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-04-28 23:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-28 23:03 [gentoo-commits] repo/gentoo:ejabberd-wip commit in: dev-erlang/jiffy/ Amadeusz Piotr Żołnowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox