public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Amadeusz Piotr Żołnowski" <aidecoe@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:ejabberd-wip commit in: dev-erlang/protobuffs/
Date: Sun,  1 May 2016 11:18:03 +0000 (UTC)	[thread overview]
Message-ID: <1461968262.fb336176eb848c7e7f93d11c5f089f8a5b6d4ed0.aidecoe@gentoo> (raw)

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
+}


                 reply	other threads:[~2016-05-01 11:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1461968262.fb336176eb848c7e7f93d11c5f089f8a5b6d4ed0.aidecoe@gentoo \
    --to=aidecoe@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox