Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rabbitmq-erlang-client from mercurial
Signed-off-by: Nick Gerakines <nick@gerakines.net>
- Loading branch information
1 parent
8bcb87a
commit 869aa77
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
EBUILD rabbitmq-client-9999.ebuild 1093 RMD160 ee0316bfe2dd45a2a7cee8ba6fbf959870bdec27 SHA1 9d760bf6a5e5495a61df41f2f6141fbef91f259b SHA256 0ddd65de381c34d555cb0f853d63d5f820d183574be3583a3f2efa53586e62fb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Copyright 1999-2008 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $$ | ||
|
||
inherit eutils mercurial | ||
|
||
DESCRIPTION="RabbitMQ AMQP erlang client." | ||
HOMEPAGE="http://hg.rabbitmq.com/rabbitmq-erlang-client/" | ||
|
||
SRC_URI="" | ||
|
||
LICENSE="MPL" | ||
SLOT="0" | ||
KEYWORDS="~x86 ~ppc ~sparc ~amd64" | ||
IUSE="" | ||
|
||
DEPEND="dev-erlang/rabbitmq-server" | ||
|
||
RDEPEND="${DEPEND}" | ||
|
||
S=${WORKDIR}/rabbitmq-erlang-client | ||
|
||
EHG_REVISION=v1_5 | ||
|
||
src_unpack() { | ||
mercurial_fetch http://hg.rabbitmq.com/rabbitmq-codegen/ | ||
mercurial_fetch http://hg.rabbitmq.com/rabbitmq-server/ | ||
mercurial_fetch http://hg.rabbitmq.com/rabbitmq-erlang-client/ | ||
cd "${S}" | ||
} | ||
|
||
src_compile() { | ||
cd ${WORKDIR}/rabbitmq-server | ||
sed -i -e 's#AMQP_SPEC_JSON_PATH=$(AMQP_CODEGEN_DIR)/amqp-0.9.1.json#AMQP_SPEC_JSON_PATH=$(AMQP_CODEGEN_DIR)/amqp-0.8.json#' Makefile | ||
make | ||
cd ${WORKDIR}/rabbitmq-erlang-client | ||
make | ||
} | ||
|
||
src_install() { | ||
# erlang module | ||
local targetdir="/usr/$(get_libdir)/erlang/lib/${PN/-/_}-${PV}/" | ||
|
||
einfo "Installing Erlang module to ${targetdir}" | ||
dodir "${targetdir}" | ||
cp -dpR ebin include "${D}/${targetdir}" | ||
} |