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

commit:     fb336176eb848c7e7f93d11c5f089f8a5b6d4ed0
Author:     Amadeusz Żołnowski <aidecoe <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 29 22:17:42 2016 +0000
Commit:     Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org>
CommitDate: Fri Apr 29 22:17:42 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb336176

dev-erlang/protobuffs: Add new package

Package-Manager: portage-2.2.28

 dev-erlang/protobuffs/Manifest                |  1 +
 dev-erlang/protobuffs/metadata.xml            |  8 +++++
 dev-erlang/protobuffs/protobuffs-0.8.2.ebuild | 51 +++++++++++++++++++++++++++
 3 files changed, 60 insertions(+)

diff --git a/dev-erlang/protobuffs/Manifest b/dev-erlang/protobuffs/Manifest
new file mode 100644
index 0000000..7375676
--- /dev/null
+++ b/dev-erlang/protobuffs/Manifest
@@ -0,0 +1 @@
+DIST protobuffs-0.8.2.tar.gz 132660 SHA256 82e196d6d9b95e2df1f420f2d39ca54f6eba92e65ca5aa6119f8310822e6b4d3 SHA512 56e9f8d41c500769724adadf025e3915e2b1ab6b68f1664080a49e783facf3d79b5ec20eb8664db9babeea21fc0637c88b1e4a121ca810247e32831a79171b11 WHIRLPOOL 368524db4587446e75d71b340c2369775c6b9ee5742aef60ee1da41a506c9b72ce4f9ff2fc3ad17d399f4d959415ca013562b6d12da9f68a9ac38516a8a34805

diff --git a/dev-erlang/protobuffs/metadata.xml b/dev-erlang/protobuffs/metadata.xml
new file mode 100644
index 0000000..92f4567
--- /dev/null
+++ b/dev-erlang/protobuffs/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>

diff --git a/dev-erlang/protobuffs/protobuffs-0.8.2.ebuild b/dev-erlang/protobuffs/protobuffs-0.8.2.ebuild
new file mode 100644
index 0000000..816a437
--- /dev/null
+++ b/dev-erlang/protobuffs/protobuffs-0.8.2.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit multilib
+
+MY_PN="erlang_protobuffs"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Google's Protocol Buffers for Erlang"
+HOMEPAGE="https://github.com/basho/erlang_protobuffs"
+SRC_URI="https://github.com/basho/${MY_PN}/archive/${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+CDEPEND=">=dev-lang/erlang-17.1"
+DEPEND="${CDEPEND}
+	dev-util/rebar"
+RDEPEND="${CDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+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/${PN}.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 src
+	dobin bin/protoc-erl
+}


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

only message in thread, other threads:[~2016-05-01 11:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-01 11:18 [gentoo-commits] repo/gentoo:ejabberd-wip commit in: dev-erlang/protobuffs/ 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