mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-24 15:51:03 +02:00
dev-ruby: missing deps
This commit is contained in:
parent
48cb020ffe
commit
aa95ddca02
12 changed files with 241 additions and 0 deletions
1
dev-ruby/activerecord-session_store/Manifest
Normal file
1
dev-ruby/activerecord-session_store/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST activerecord-session_store-1.0.0.gem 12288 SHA256 83a42a2a79cda117c31ff81fbe6f54447e9f7da851bc2819adb703cacf2d18ad SHA512 191beaf7050c2155a70c976f655866cc10ca7aea4f27fe5da2f3aef984584db78ebb24c27dfef0da11040cda0e0707d0dc65473c61177925fe57bd6ef4c34c83 WHIRLPOOL 7158a3520c33a221b3b81406c7e7a36486d4a4427ddb94a3d8ff1463fa84eee8b23d91aaa742c8847352a068089866a2d6a862488f4317cb145db286e5633933
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby20 ruby21"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="An Action Dispatch session store backed by an Active Record class"
|
||||
HOMEPAGE="https://github.com/rails/activerecord-session_store"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="|| ( dev-ruby/actionpack:4.0 dev-ruby/actionpack:4.1 dev-ruby/actionpack:4.2 )
|
||||
|| ( dev-ruby/activerecord:4.0 dev-ruby/activerecord:4.1 dev-ruby/activerecord:4.2 )
|
||||
|| ( dev-ruby/railties:4.0 dev-ruby/railties:4.1 dev-ruby/railties:4.2 )
|
||||
|| ( dev-ruby/rack:1.5 dev-ruby/rack:1.6 dev-ruby/rack:2.0 )
|
||||
>=dev-ruby/multi_json-1.11.2 =dev-ruby/multi_json-1.11*
|
||||
"
|
||||
1
dev-ruby/ckeditor_rails/Manifest
Normal file
1
dev-ruby/ckeditor_rails/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST ckeditor_rails-4.5.3.gem 918016 SHA256 07362b47a7a1992a6797bf614f229869f1aefbec6d6fb8fa3d8295ffebe8bae8 SHA512 2709efc642b3aace608a2f4d28f9b750fbc32a0fa3b54cd9384c6b0a63f5eae12066b8cfce31a429480483ea9df5a47f516cec98ba91acaad5786d6fe9019e64 WHIRLPOOL c2aa1604aff4987bb48ba6686cda85a97fe1a19e1d7d6b7ac76f532257a310fca72153489d4c44a72d455ce5c90e766f9397988811cc2d28af9fdaf88ce7f925
|
||||
17
dev-ruby/ckeditor_rails/ckeditor_rails-4.5.3.ebuild
Normal file
17
dev-ruby/ckeditor_rails/ckeditor_rails-4.5.3.ebuild
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby20 ruby21"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="CKEditor is a javascript library of the WYSIWYG rich-text editor"
|
||||
HOMEPAGE="https://github.com/tsechingho/ckeditor-rails"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
1
dev-ruby/protected_attributes/Manifest
Normal file
1
dev-ruby/protected_attributes/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST protected_attributes-1.1.3.gem 15360 SHA256 e3bf636ae271a55005271a6bfa1b5aca884d7448d56a638f8ea28241a5bef7bd SHA512 78f0b9071f89d8e96d1706045e5af1a90256977f33c00d19fcce2f91c53bbcd27fcd20242f918cb763e2599e4cb7afd085d07c7c00186f54bde94e19f526d84c WHIRLPOOL e2f435f0ca2ad46721164c621627bdbbd25770e2ffd3214d3080d37f40ff47e9fee7ae49f0824523fbe56b895f5c06fd7f4ec2bb6401d5f17dd26a517027536e
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby20 ruby21"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Protect attributes from mass assignment"
|
||||
HOMEPAGE="https://github.com/rails/protected_attributes"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="|| ( dev-ruby/actionpack:4.0 dev-ruby/actionpack:4.1 dev-ruby/actionpack:4.2 )
|
||||
|| ( dev-ruby/activerecord:4.0 dev-ruby/activerecord:4.1 dev-ruby/activerecord:4.2 )
|
||||
|| ( dev-ruby/railties:4.0 dev-ruby/railties:4.1 dev-ruby/railties:4.2 )
|
||||
dev-ruby/sqlite3
|
||||
dev-ruby/mocha:=
|
||||
"
|
||||
1
dev-ruby/similar_text/Manifest
Normal file
1
dev-ruby/similar_text/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST similar_text-0.0.4.gem 6144 SHA256 1575c23746460eed778eeeb66906b450ac80b9b92714eae4bc3a4c6b2be3fbae SHA512 9d498edc832c4662e252f709f13d5181b6e775c255b1fefae2ec587230e31c3feb0b7f4c21a51bdb0038d602e45f1419aeab7a94924c8b2670806fa5622cd601 WHIRLPOOL 844384a00ee8e7147a7748205c81ac45f72b03299c374b981875ce0b012962b004068f01a6ca72e0538b8d1aa8bcc648ca330b500e6aa1ead867d5437df55bee
|
||||
5
dev-ruby/similar_text/ext/similar_text/extconf.rb
Normal file
5
dev-ruby/similar_text/ext/similar_text/extconf.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
require 'mkmf'
|
||||
|
||||
dir_config("similar_text")
|
||||
|
||||
create_makefile("similar_text")
|
||||
97
dev-ruby/similar_text/ext/similar_text/similar_text.c
Normal file
97
dev-ruby/similar_text/ext/similar_text/similar_text.c
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
#include <ruby.h>
|
||||
#include <string.h>
|
||||
|
||||
static void similar_text_similar_str(const char *txt1, int len1, const char *txt2, int len2, int *pos1, int *pos2, int *max)
|
||||
{
|
||||
char *p, *q;
|
||||
char *end1 = (char *) txt1 + len1;
|
||||
char *end2 = (char *) txt2 + len2;
|
||||
int l;
|
||||
|
||||
*max = 0;
|
||||
for (p = (char *) txt1; p < end1; p++) {
|
||||
for (q = (char *) txt2; q < end2; q++) {
|
||||
for (l = 0; (p + l < end1) && (q + l < end2) && (p[l] == q[l]); l++);
|
||||
if (l > *max) {
|
||||
*max = l;
|
||||
*pos1 = p - txt1;
|
||||
*pos2 = q - txt2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static int similar_text_similar_char(const char *txt1, int len1, const char *txt2, int len2)
|
||||
{
|
||||
int sum;
|
||||
int pos1, pos2, max;
|
||||
|
||||
similar_text_similar_str(txt1, len1, txt2, len2, &pos1, &pos2, &max);
|
||||
if ((sum = max)) {
|
||||
if (pos1 && pos2) {
|
||||
sum += similar_text_similar_char(txt1, pos1,
|
||||
txt2, pos2);
|
||||
}
|
||||
if ((pos1 + max < len1) && (pos2 + max < len2)) {
|
||||
sum += similar_text_similar_char(txt1 + pos1 + max, len1 - pos1 - max,
|
||||
txt2 + pos2 + max, len2 - pos2 - max);
|
||||
}
|
||||
}
|
||||
|
||||
return sum;
|
||||
}
|
||||
|
||||
int similar_text(const char *txt1, const char *txt2, double *percent)
|
||||
{
|
||||
size_t t1_len, t2_len;
|
||||
int sim;
|
||||
|
||||
t1_len = strlen(txt1);
|
||||
t2_len = strlen(txt2);
|
||||
|
||||
sim = similar_text_similar_char(txt1, t1_len, txt2, t2_len);
|
||||
*percent = sim * 200.0 / (t1_len + t2_len);
|
||||
|
||||
return sim;
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculate the similarity between strings.
|
||||
*
|
||||
* "Hello, World!".similar("Hello, World!") #=> 100.0
|
||||
*
|
||||
* @return the percentage of similarity between two strings. Type of value Float from 0.0 to 100.0.
|
||||
*/
|
||||
static VALUE t_similar(VALUE str1, VALUE str2)
|
||||
{
|
||||
double percent;
|
||||
|
||||
similar_text(StringValueCStr(str1), StringValueCStr(str2), &percent);
|
||||
|
||||
return rb_float_new(percent);
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculate the similarity between strings.
|
||||
*
|
||||
* 'Hello WORLD!'.similar_chars 'Hello, World!' #=> 8
|
||||
*
|
||||
* @return number of matching chars between strings.
|
||||
*/
|
||||
static VALUE t_similar_chars(VALUE str1, VALUE str2)
|
||||
{
|
||||
double percent;
|
||||
int sim;
|
||||
|
||||
sim = similar_text(StringValueCStr(str1), StringValueCStr(str2), &percent);
|
||||
|
||||
return rb_int_new(sim);
|
||||
}
|
||||
|
||||
void Init_similar_text()
|
||||
{
|
||||
rb_cString = rb_define_class("String", rb_cObject);
|
||||
rb_define_method(rb_cString, "similar", t_similar, 1);
|
||||
rb_define_method(rb_cString, "similar_chars", t_similar_chars, 1);
|
||||
}
|
||||
|
||||
26
dev-ruby/similar_text/similar_text-0.0.4.ebuild
Normal file
26
dev-ruby/similar_text/similar_text-0.0.4.ebuild
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby20 ruby21"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Calculate the similarity between two strings"
|
||||
HOMEPAGE="https://github.com/valcker/similar_text-ruby"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
each_ruby_configure() {
|
||||
${RUBY} -Cext/${PN} extconf.rb || die
|
||||
}
|
||||
|
||||
each_ruby_compile() {
|
||||
emake -Cext/${PN} V=1
|
||||
cp ext/${PN}/${PN}.so lib/
|
||||
}
|
||||
2
www-apps/rda/Manifest
Normal file
2
www-apps/rda/Manifest
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
DIST rda-2.1.tar.gz 703633 SHA256 cb422b54482e41dbebee58fea3988f29c29f0c4c450e5469bf94905b0ab38a14 SHA512 a416f3fbca506811b8ecf636747e5cf7d5b01575f5bc9996c26d3063648890e75f74f0087c846bdcda210a46c98a514f469167b38a230cec8530815d236dec12 WHIRLPOOL ed3a7f7038e57f79f354a3f6263d720dd2e694e57d1624689c76b95588f0034a544917ce039e604a1db004e1f9cb5d506e670844ee95a1eda31524a6851caa61
|
||||
EBUILD rda-2.1.ebuild 923 SHA256 9576a029638fb20ab790dea313162b5c38c3a6757559d2f8cb2ac2e1f1d1f947 SHA512 7ed0caee8f7b3d57b050e538ca3c3a6f8faa179ea31f6de75859f8fe723dee99525042f1b2e56014ed1fe1193d20e232ff12f53cc8f84c56b9b1f9d80f5b6faf WHIRLPOOL f8c4333a8ebdd5440a790972a4570130369dc441b910781b3a807f83fc4fea66b969e1ea8ee74b6d561ae4509106ff0e570349641697683d5cda1a5385865059
|
||||
42
www-apps/rda/rda-2.1.ebuild
Normal file
42
www-apps/rda/rda-2.1.ebuild
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
USE_RUBY="ruby21"
|
||||
inherit ruby-ng
|
||||
|
||||
DESCRIPTION="Web-based application for effective reporting writing"
|
||||
HOMEPAGE="www.itdefence.asia"
|
||||
SRC_URI="${P}.tar.gz"
|
||||
|
||||
LICENSE="none"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
IUSE="+mysql"
|
||||
|
||||
ruby_add_rdepend="dev-ruby/rake
|
||||
dev-ruby/rack:1.6
|
||||
dev-ruby/rubygems
|
||||
dev-ruby/rails:4.2
|
||||
dev-ruby/will_paginate
|
||||
dev-ruby/jquery-rails:4
|
||||
dev-ruby/ckeditor_rails
|
||||
dev-ruby/activerecord-session_store
|
||||
dev-ruby/protected_attributes
|
||||
dev-ruby/similar_text
|
||||
mysql? ( virtual/mysql
|
||||
dev-ruby/mysql2:0.3 )"
|
||||
|
||||
#fix me: group :assets
|
||||
ruby_add_bdepend="
|
||||
|| ( dev-ruby/coffee-rails:4.1 dev-ruby/coffee-rails:4.2 )
|
||||
"
|
||||
|
||||
each_ruby_prepare() {
|
||||
if [ -f Gemfile ]; then
|
||||
MSF_ROOT="." BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle install --local || die
|
||||
MSF_ROOT="." BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle check || die
|
||||
fi
|
||||
}
|
||||
Loading…
Reference in a new issue