diff options
author | Сухарик <suhr@i2pmail.org> | 2015-01-05 04:39:48 +0300 |
---|---|---|
committer | Сухарик <suhr@i2pmail.org> | 2015-01-05 08:24:52 +0300 |
commit | 5e2912823aacf1f6a0c2edf77dd2db1f51e78b36 (patch) | |
tree | 25d712f63098f285c40458df2e2d185e79341ad9 /dev-rust | |
parent | dev-lang/rust: dirty fix https://github.com/Heather/gentoo-rust/issues/41 (diff) | |
download | rust-5e2912823aacf1f6a0c2edf77dd2db1f51e78b36.tar.gz rust-5e2912823aacf1f6a0c2edf77dd2db1f51e78b36.tar.bz2 rust-5e2912823aacf1f6a0c2edf77dd2db1f51e78b36.zip |
dev-rust/rust-bindgen: new ebuild
Diffstat (limited to 'dev-rust')
-rw-r--r-- | dev-rust/rust-bindgen/files/rust-bindgen | 2 | ||||
-rw-r--r-- | dev-rust/rust-bindgen/metadata.xml | 7 | ||||
-rw-r--r-- | dev-rust/rust-bindgen/rust-bindgen-9999.ebuild | 38 |
3 files changed, 47 insertions, 0 deletions
diff --git a/dev-rust/rust-bindgen/files/rust-bindgen b/dev-rust/rust-bindgen/files/rust-bindgen new file mode 100644 index 0000000..8f0d72a --- /dev/null +++ b/dev-rust/rust-bindgen/files/rust-bindgen @@ -0,0 +1,2 @@ +#!/bin/sh +LD_PRELOAD="/usr/lib/libclang.so" rust-bindgen-9999 "$@" diff --git a/dev-rust/rust-bindgen/metadata.xml b/dev-rust/rust-bindgen/metadata.xml new file mode 100644 index 0000000..67ba470 --- /dev/null +++ b/dev-rust/rust-bindgen/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>void@asdasd.ru</email> + </maintainer> +</pkgmetadata> diff --git a/dev-rust/rust-bindgen/rust-bindgen-9999.ebuild b/dev-rust/rust-bindgen/rust-bindgen-9999.ebuild new file mode 100644 index 0000000..3550629 --- /dev/null +++ b/dev-rust/rust-bindgen/rust-bindgen-9999.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit eutils git-r3 + +DESCRIPTION="A binding generator for the rust language" +HOMEPAGE="https://github.com/crabtw/rust-bindgen" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="" + +IUSE="" + +EGIT_REPO_URI="git://github.com/crabtw/rust-bindgen.git" + +DEPEND=">=virtual/rust-999 + dev-rust/cargo + >=sys-devel/clang-3.4.2-r100 +" +RDEPEND="${DEPEND}" + +src_configure() { + true +} + +src_compile() { + cargo build --release +} + +src_install() { + install -D -m 755 "${FILESDIR}/rust-bindgen" "${D}/usr/bin/rust-bindgen" + install -D -m 755 target/release/bindgen "${D}/usr/bin/rust-bindgen-9999" + install -D -t "${D}/usr/lib" target/release/libbindgen* +} |