radare2-bindings: improve vala deps

This commit is contained in:
blshkv 2017-05-15 23:59:20 +08:00
parent c0f297abb5
commit 0bca38f33d
No known key found for this signature in database
GPG key ID: 9CCF6FCB8D8A14BF
6 changed files with 1 additions and 180 deletions

View file

@ -1,3 +1 @@
DIST radare2-bindings-1.2.1.tar.gz 1171142 SHA256 7ca75b7b0694fc790b956034f8c792b8aec4ac627108a949a2bd789632ac825d SHA512 fa0283c7018355f07f0fb1aa993846187c005885c071743b153f0f3b5071f211af2c2f614c443958ebeb2c79ea42934f32c80fb4688a8107db3f309e03bd504c WHIRLPOOL 1f566df34a00ea68e15bbbb840d5c2a7399b64bffe5e7df721418649dc41749f2a046ee252949d54176e2aa17d994e307876db1b73b3a652d2a93ce1a05dae04
DIST radare2-bindings-1.3.0.tar.gz 1171146 SHA256 3ea745c99862975310fa3918a8d29b27e317a967443bbf0a8bd8992802882396 SHA512 6787051d6227d6dfa506e46e40522949c9ae3615e7bfd13a9a6fdd97ecc649d009ee913b5ae94879aa1daf1c8d2082a45c1e2e7652412985c2c8f313192e7ad2 WHIRLPOOL 6d988443d11c21bc93436100af358cf75b2d1a1b3583e1d45cece4560bf1ee154013f4abcf82bc1ee6b0be632c12fa35ec0450a88f1226fb8a28ffa51fbc1f96
DIST radare2-bindings-1.4.0.tar.gz 1171161 SHA256 0abd4c854db4932cf16d6b044ac11382f63b97779f9c5bea9167d6be1e14391c SHA512 fbc5276b5480f94230c694e9a1aad3554f96323002c84e8e7c995025d7c0f301c270bae75c728d6ade1bffc9201ef8d1a4e27a01ec2bf2a49459cd7fb4d9dfbc WHIRLPOOL 0480405df2b7dda72eedd53bbdb3a7838c6005780a9ae682d73e52d5f1a913076ed8396f2486097661debd900036b832fe0ca30c52db419251fb46284fe55eb7

View file

@ -1,11 +0,0 @@
--- vapi/r_core.vapi.orig 2017-02-09 17:41:59.000000000 +0800
+++ vapi/r_core.vapi 2017-02-20 10:35:38.395649333 +0800
@@ -160,7 +160,7 @@
public bool yank_paste(uint64 addr, int len);
public int visual(string input);
- public int visual_cmd(string arg);
+ public int visual_cmd(int ch);
public int serve(RIO.Desc fd);

View file

@ -1,31 +0,0 @@
From c11a5dd7d343b101c2cceab03c31f2f59adadf70 Mon Sep 17 00:00:00 2001
From: pancake <pancake@nopcode.org>
Date: Thu, 9 Jul 2015 16:43:38 +0200
Subject: [PATCH] Use Ruby gemdir as installation path
---
Makefile | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/Makefile b/Makefile
index 695d8b1..db05a25 100644
--- a/Makefile
+++ b/Makefile
@@ -199,12 +199,12 @@ install-go:
install-java:
cd java && ${MAKE} install
+RUBYPATH=$(shell gem environment gemdir | sed -e s,gems/,,)
install-ruby:
- for a in 1.8 1.9.1; do \
- mkdir -p ${DESTDIR}${PREFIX}/lib/ruby/$$a/r2 ; \
- echo "Installing ruby$$a r2 modules..." ; \
- cp -rf ruby/* ${DESTDIR}${PREFIX}/lib/ruby/$$a/r2 ; \
- done
+ echo "Installing radare2 Ruby modules..."
+ rm -rf ${DESTDIR}${RUBYPATH}/r2
+ mkdir -p ${DESTDIR}${RUBYPATH}/r2
+ cp -rf ruby/* ${DESTDIR}${RUBYPATH}/r2
install-perl:
# hack for slpm

View file

@ -1,70 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
PYTHON_COMPAT=( python2_7 )
inherit eutils python-single-r1
DESCRIPTION="Language bindings for radare2"
HOMEPAGE="http://www.radare.org"
HOMEPAGE="https://github.com/radare/radare2-bindings"
SRC_URI="https://github.com/radare/radare2-bindings/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~x86 ~amd64"
#full set: "ctypes cxx guile java lua node-ffi perl php5 python ruby"
IUSE="ctypes cxx guile lua perl php5 python ruby"
#QA_MULTILIB_PATHS="usr/lib/ruby/1.9.1/r2/.*"
RDEPEND="
cxx? ( sys-devel/gcc:*[cxx] )
perl? ( dev-lang/perl )
guile? ( dev-scheme/guile:* )
lua? ( >=dev-lang/lua-5.1.4:* )
php5? ( >=dev-lang/php-5.3.8:* )
ruby? ( || ( dev-lang/ruby:2.1 dev-lang/ruby:2.2 ) )
"
DEPEND="${RDEPEND}
~dev-util/radare2-${PV}
virtual/pkgconfig
dev-util/valabind
dev-lang/swig
>=dev-lang/vala-0.14"
src_prepare(){
epatch "${FILESDIR}/01_use_python_2.7.patch"
#https://github.com/radare/radare2-bindings/issues/145
epatch "${FILESDIR}/${PV}-r_core.patch"
# sed -i "s| test -f |# test -f |g" Makefile || die
eapply_user
}
src_configure(){
local myconf
local mylang
use php5 && myconf="php"
for mylang in ctypes cxx guile lua perl python ruby; do
if use $mylang; then
[ -z "$myconf" ] || myconf+=","
myconf+="$mylang"
fi
done
#not included languages will be disabled
econf --enable="$myconf"
}
src_install() {
# emake install INSTALL_ROOT="${D}"
default
python_optimize
}

View file

@ -1,64 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 )
inherit eutils python-single-r1
DESCRIPTION="Language bindings for radare2"
HOMEPAGE="http://www.radare.org"
HOMEPAGE="https://github.com/radare/radare2-bindings"
SRC_URI="https://github.com/radare/radare2-bindings/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~x86 ~amd64"
#full set: "ctypes cxx guile java lua node-ffi perl php5 python ruby"
IUSE="ctypes cxx guile lua perl php5 python ruby"
#QA_MULTILIB_PATHS="usr/lib/ruby/1.9.1/r2/.*"
RDEPEND="
cxx? ( sys-devel/gcc:*[cxx] )
perl? ( dev-lang/perl )
guile? ( dev-scheme/guile:* )
lua? ( >=dev-lang/lua-5.1.4:* )
php5? ( >=dev-lang/php-5.3.8:* )
ruby? ( || ( dev-lang/ruby:2.1 dev-lang/ruby:2.2 ) )
"
DEPEND="${RDEPEND}
~dev-util/radare2-${PV}
virtual/pkgconfig
dev-util/valabind
dev-lang/swig
>=dev-lang/vala-0.14"
src_prepare(){
epatch "${FILESDIR}/01_use_python_2.7.patch"
eapply_user
}
src_configure(){
local myconf
local mylang
use php5 && myconf="php"
for mylang in ctypes cxx guile lua perl python ruby; do
if use $mylang; then
[ -z "$myconf" ] || myconf+=","
myconf+="$mylang"
fi
done
#not included languages will be disabled
econf --enable="$myconf"
}
src_install() {
# emake install INSTALL_ROOT="${D}"
default
python_optimize
}

View file

@ -32,8 +32,7 @@ DEPEND="${RDEPEND}
~dev-util/radare2-${PV}
virtual/pkgconfig
dev-util/valabind
dev-lang/swig
>=dev-lang/vala-0.14"
dev-lang/swig"
src_prepare(){
epatch "${FILESDIR}/01_use_python_2.7.patch"