parent
0755f39760
commit
39da447f4b
@ -1,3 +1 @@
|
||||
DIST krb5-1.13-signed.tar 12083200 SHA256 dc8f79ae9ab777d0f815e84ed02ac4ccfe3d5826eb4947a195dfce9fd95a9582 SHA512 99cf647ab39f5a34acaf2049908f91d3f3822f4afd3b9dad1630b31c72518398069f4f3d3840168122cb12aa5e5540466729bc714fbda96eb9403e635f88d244 WHIRLPOOL 4cb9bff7c9bf97cbe2a41eaa0f253a8c891b9beff9a2e65f1652eae235c90b811efeae1ee7b608e90ad993a3959a787a06a34f62cec1a709b2fe6ec59f91e3d1
|
||||
DIST krb5-1.13.1-signed.tar 12093440 SHA256 4df629fdf97f362cf81edbf38d613b32b492dd88c876cf3aa1c66562f296663e SHA512 f26dce8f682bd3fbf38a15df5f91722b573d4df4cc193f7ba8dc369cbbee8f4bc2a72f56513d2cf27697ce8baaf954afe04e3eefc15c2883fa1d5260145aef6e WHIRLPOOL ec44c449661124e5352c67a8256f2e314e5ef1e9fbdd49405d70f461d9f5bc925b5b71fd4d4ef15f28d233337fb44c09ba89edeb86ac8e750b2252b8cbd38ec1
|
||||
DIST krb5-1.13.2-signed.tar 12113920 SHA256 e528c30b0209c741f6f320cb83122ded92f291802b6a1a1dc1a01dcdb3ff6de1 SHA512 d3f8dde220876bd24703c488122ba8e54ffaa7f8f2c7d325e5d198a4e171248673fc1d5d3c997c6d2e66c314e2b7f4609eb980a789c3556a79458ab4411e61b5 WHIRLPOOL 9f29f4d76b7b2225f18707a95b217ce0eab7ae963ba547460fa6e7ffdc43e3c350ae070265c52b9751a70f80a95086e39c29dc2c44e0a22d17f9b48f7bf838f7
|
||||
|
@ -1,343 +0,0 @@
|
||||
diff --git a/src/kadmin/server/kadm_rpc_svc.c b/src/kadmin/server/kadm_rpc_svc.c
|
||||
index 3837931..f4d2a7c 100644
|
||||
--- a/src/kadmin/server/kadm_rpc_svc.c
|
||||
+++ b/src/kadmin/server/kadm_rpc_svc.c
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
-#include <k5-platform.h>
|
||||
+#include <k5-int.h>
|
||||
#include <gssrpc/rpc.h>
|
||||
#include <gssapi/gssapi_krb5.h> /* for gss_nt_krb5_name */
|
||||
#include <syslog.h>
|
||||
@@ -296,14 +296,8 @@ check_rpcsec_auth(struct svc_req *rqstp)
|
||||
c1 = krb5_princ_component(kctx, princ, 0);
|
||||
c2 = krb5_princ_component(kctx, princ, 1);
|
||||
realm = krb5_princ_realm(kctx, princ);
|
||||
- if (strncmp(handle->params.realm, realm->data, realm->length) == 0
|
||||
- && strncmp("kadmin", c1->data, c1->length) == 0) {
|
||||
-
|
||||
- if (strncmp("history", c2->data, c2->length) == 0)
|
||||
- goto fail_princ;
|
||||
- else
|
||||
- success = 1;
|
||||
- }
|
||||
+ success = data_eq_string(*realm, handle->params.realm) &&
|
||||
+ data_eq_string(*c1, "kadmin") && !data_eq_string(*c2, "history");
|
||||
|
||||
fail_princ:
|
||||
if (!success) {
|
||||
diff --git a/src/lib/gssapi/krb5/context_time.c b/src/lib/gssapi/krb5/context_time.c
|
||||
index b3d1db0..a18cfb0 100644
|
||||
--- a/src/lib/gssapi/krb5/context_time.c
|
||||
+++ b/src/lib/gssapi/krb5/context_time.c
|
||||
@@ -40,7 +40,7 @@ krb5_gss_context_time(minor_status, context_handle, time_rec)
|
||||
|
||||
ctx = (krb5_gss_ctx_id_rec *) context_handle;
|
||||
|
||||
- if (! ctx->established) {
|
||||
+ if (ctx->terminated || !ctx->established) {
|
||||
*minor_status = KG_CTX_INCOMPLETE;
|
||||
return(GSS_S_NO_CONTEXT);
|
||||
}
|
||||
diff --git a/src/lib/gssapi/krb5/export_sec_context.c b/src/lib/gssapi/krb5/export_sec_context.c
|
||||
index 18a3a34..1b3de68 100644
|
||||
--- a/src/lib/gssapi/krb5/export_sec_context.c
|
||||
+++ b/src/lib/gssapi/krb5/export_sec_context.c
|
||||
@@ -45,6 +45,11 @@ krb5_gss_export_sec_context(minor_status, context_handle, interprocess_token)
|
||||
*minor_status = 0;
|
||||
|
||||
ctx = (krb5_gss_ctx_id_t) *context_handle;
|
||||
+ if (ctx->terminated) {
|
||||
+ *minor_status = KG_CTX_INCOMPLETE;
|
||||
+ return (GSS_S_NO_CONTEXT);
|
||||
+ }
|
||||
+
|
||||
context = ctx->k5_context;
|
||||
kret = krb5_gss_ser_init(context);
|
||||
if (kret)
|
||||
diff --git a/src/lib/gssapi/krb5/gssapiP_krb5.h b/src/lib/gssapi/krb5/gssapiP_krb5.h
|
||||
index 7e807cc..a0e8625 100644
|
||||
--- a/src/lib/gssapi/krb5/gssapiP_krb5.h
|
||||
+++ b/src/lib/gssapi/krb5/gssapiP_krb5.h
|
||||
@@ -206,6 +206,7 @@ typedef struct _krb5_gss_ctx_id_rec {
|
||||
unsigned int established : 1;
|
||||
unsigned int have_acceptor_subkey : 1;
|
||||
unsigned int seed_init : 1; /* XXX tested but never actually set */
|
||||
+ unsigned int terminated : 1;
|
||||
OM_uint32 gss_flags;
|
||||
unsigned char seed[16];
|
||||
krb5_gss_name_t here;
|
||||
diff --git a/src/lib/gssapi/krb5/gssapi_krb5.c b/src/lib/gssapi/krb5/gssapi_krb5.c
|
||||
index 6456b23..77b7fff 100644
|
||||
--- a/src/lib/gssapi/krb5/gssapi_krb5.c
|
||||
+++ b/src/lib/gssapi/krb5/gssapi_krb5.c
|
||||
@@ -369,7 +369,7 @@ krb5_gss_inquire_sec_context_by_oid (OM_uint32 *minor_status,
|
||||
|
||||
ctx = (krb5_gss_ctx_id_rec *) context_handle;
|
||||
|
||||
- if (!ctx->established)
|
||||
+ if (ctx->terminated || !ctx->established)
|
||||
return GSS_S_NO_CONTEXT;
|
||||
|
||||
for (i = 0; i < sizeof(krb5_gss_inquire_sec_context_by_oid_ops)/
|
||||
diff --git a/src/lib/gssapi/krb5/inq_context.c b/src/lib/gssapi/krb5/inq_context.c
|
||||
index eacb0fd..096df2a 100644
|
||||
--- a/src/lib/gssapi/krb5/inq_context.c
|
||||
+++ b/src/lib/gssapi/krb5/inq_context.c
|
||||
@@ -105,7 +105,7 @@ krb5_gss_inquire_context(minor_status, context_handle, initiator_name,
|
||||
|
||||
ctx = (krb5_gss_ctx_id_rec *) context_handle;
|
||||
|
||||
- if (! ctx->established) {
|
||||
+ if (ctx->terminated || !ctx->established) {
|
||||
*minor_status = KG_CTX_INCOMPLETE;
|
||||
return(GSS_S_NO_CONTEXT);
|
||||
}
|
||||
diff --git a/src/lib/gssapi/krb5/k5seal.c b/src/lib/gssapi/krb5/k5seal.c
|
||||
index 7665cba..f1c74dd 100644
|
||||
--- a/src/lib/gssapi/krb5/k5seal.c
|
||||
+++ b/src/lib/gssapi/krb5/k5seal.c
|
||||
@@ -342,7 +342,7 @@ kg_seal(minor_status, context_handle, conf_req_flag, qop_req,
|
||||
|
||||
ctx = (krb5_gss_ctx_id_rec *) context_handle;
|
||||
|
||||
- if (! ctx->established) {
|
||||
+ if (ctx->terminated || !ctx->established) {
|
||||
*minor_status = KG_CTX_INCOMPLETE;
|
||||
return(GSS_S_NO_CONTEXT);
|
||||
}
|
||||
diff --git a/src/lib/gssapi/krb5/k5sealiov.c b/src/lib/gssapi/krb5/k5sealiov.c
|
||||
index a129670..b53e348 100644
|
||||
--- a/src/lib/gssapi/krb5/k5sealiov.c
|
||||
+++ b/src/lib/gssapi/krb5/k5sealiov.c
|
||||
@@ -281,7 +281,7 @@ kg_seal_iov(OM_uint32 *minor_status,
|
||||
}
|
||||
|
||||
ctx = (krb5_gss_ctx_id_rec *)context_handle;
|
||||
- if (!ctx->established) {
|
||||
+ if (ctx->terminated || !ctx->established) {
|
||||
*minor_status = KG_CTX_INCOMPLETE;
|
||||
return GSS_S_NO_CONTEXT;
|
||||
}
|
||||
diff --git a/src/lib/gssapi/krb5/k5unseal.c b/src/lib/gssapi/krb5/k5unseal.c
|
||||
index 0573958..673c883 100644
|
||||
--- a/src/lib/gssapi/krb5/k5unseal.c
|
||||
+++ b/src/lib/gssapi/krb5/k5unseal.c
|
||||
@@ -492,7 +492,7 @@ kg_unseal(minor_status, context_handle, input_token_buffer,
|
||||
|
||||
ctx = (krb5_gss_ctx_id_rec *) context_handle;
|
||||
|
||||
- if (! ctx->established) {
|
||||
+ if (ctx->terminated || !ctx->established) {
|
||||
*minor_status = KG_CTX_INCOMPLETE;
|
||||
return(GSS_S_NO_CONTEXT);
|
||||
}
|
||||
diff --git a/src/lib/gssapi/krb5/k5unsealiov.c b/src/lib/gssapi/krb5/k5unsealiov.c
|
||||
index f34d802..8b67042 100644
|
||||
--- a/src/lib/gssapi/krb5/k5unsealiov.c
|
||||
+++ b/src/lib/gssapi/krb5/k5unsealiov.c
|
||||
@@ -625,7 +625,7 @@ kg_unseal_iov(OM_uint32 *minor_status,
|
||||
OM_uint32 code;
|
||||
|
||||
ctx = (krb5_gss_ctx_id_rec *)context_handle;
|
||||
- if (!ctx->established) {
|
||||
+ if (ctx->terminated || !ctx->established) {
|
||||
*minor_status = KG_CTX_INCOMPLETE;
|
||||
return GSS_S_NO_CONTEXT;
|
||||
}
|
||||
diff --git a/src/lib/gssapi/krb5/lucid_context.c b/src/lib/gssapi/krb5/lucid_context.c
|
||||
index 85df7fd..449e71f 100644
|
||||
--- a/src/lib/gssapi/krb5/lucid_context.c
|
||||
+++ b/src/lib/gssapi/krb5/lucid_context.c
|
||||
@@ -75,6 +75,11 @@ gss_krb5int_export_lucid_sec_context(
|
||||
*minor_status = 0;
|
||||
*data_set = GSS_C_NO_BUFFER_SET;
|
||||
|
||||
+ if (ctx->terminated || !ctx->established) {
|
||||
+ *minor_status = KG_CTX_INCOMPLETE;
|
||||
+ return GSS_S_NO_CONTEXT;
|
||||
+ }
|
||||
+
|
||||
retval = generic_gss_oid_decompose(minor_status,
|
||||
GSS_KRB5_EXPORT_LUCID_SEC_CONTEXT_OID,
|
||||
GSS_KRB5_EXPORT_LUCID_SEC_CONTEXT_OID_LENGTH,
|
||||
diff --git a/src/lib/gssapi/krb5/prf.c b/src/lib/gssapi/krb5/prf.c
|
||||
index e19291f..e897074 100644
|
||||
--- a/src/lib/gssapi/krb5/prf.c
|
||||
+++ b/src/lib/gssapi/krb5/prf.c
|
||||
@@ -58,6 +58,10 @@ krb5_gss_pseudo_random(OM_uint32 *minor_status,
|
||||
ns.data = NULL;
|
||||
|
||||
ctx = (krb5_gss_ctx_id_t)context;
|
||||
+ if (ctx->terminated || !ctx->established) {
|
||||
+ *minor_status = KG_CTX_INCOMPLETE;
|
||||
+ return GSS_S_NO_CONTEXT;
|
||||
+ }
|
||||
|
||||
switch (prf_key) {
|
||||
case GSS_C_PRF_KEY_FULL:
|
||||
diff --git a/src/lib/gssapi/krb5/process_context_token.c b/src/lib/gssapi/krb5/process_context_token.c
|
||||
index ae33180..a672f48 100644
|
||||
--- a/src/lib/gssapi/krb5/process_context_token.c
|
||||
+++ b/src/lib/gssapi/krb5/process_context_token.c
|
||||
@@ -39,11 +39,18 @@ krb5_gss_process_context_token(minor_status, context_handle,
|
||||
|
||||
ctx = (krb5_gss_ctx_id_t) context_handle;
|
||||
|
||||
- if (! ctx->established) {
|
||||
+ if (ctx->terminated || !ctx->established) {
|
||||
*minor_status = KG_CTX_INCOMPLETE;
|
||||
return(GSS_S_NO_CONTEXT);
|
||||
}
|
||||
|
||||
+ /* We only support context deletion tokens for now, and RFC 4121 does not
|
||||
+ * define a context deletion token. */
|
||||
+ if (ctx->proto) {
|
||||
+ *minor_status = 0;
|
||||
+ return(GSS_S_DEFECTIVE_TOKEN);
|
||||
+ }
|
||||
+
|
||||
/* "unseal" the token */
|
||||
|
||||
if (GSS_ERROR(majerr = kg_unseal(minor_status, context_handle,
|
||||
@@ -52,8 +59,8 @@ krb5_gss_process_context_token(minor_status, context_handle,
|
||||
KG_TOK_DEL_CTX)))
|
||||
return(majerr);
|
||||
|
||||
- /* that's it. delete the context */
|
||||
-
|
||||
- return(krb5_gss_delete_sec_context(minor_status, &context_handle,
|
||||
- GSS_C_NO_BUFFER));
|
||||
+ /* Mark the context as terminated, but do not delete it (as that would
|
||||
+ * leave the caller with a dangling context handle). */
|
||||
+ ctx->terminated = 1;
|
||||
+ return(GSS_S_COMPLETE);
|
||||
}
|
||||
diff --git a/src/lib/gssapi/krb5/wrap_size_limit.c b/src/lib/gssapi/krb5/wrap_size_limit.c
|
||||
index 7bc4221..ed5c599 100644
|
||||
--- a/src/lib/gssapi/krb5/wrap_size_limit.c
|
||||
+++ b/src/lib/gssapi/krb5/wrap_size_limit.c
|
||||
@@ -95,7 +95,7 @@ krb5_gss_wrap_size_limit(minor_status, context_handle, conf_req_flag,
|
||||
}
|
||||
|
||||
ctx = (krb5_gss_ctx_id_rec *) context_handle;
|
||||
- if (! ctx->established) {
|
||||
+ if (ctx->terminated || !ctx->established) {
|
||||
*minor_status = KG_CTX_INCOMPLETE;
|
||||
return(GSS_S_NO_CONTEXT);
|
||||
}
|
||||
diff --git a/src/lib/gssapi/mechglue/mglueP.h b/src/lib/gssapi/mechglue/mglueP.h
|
||||
index e56b9c1..2b5145e 100644
|
||||
--- a/src/lib/gssapi/mechglue/mglueP.h
|
||||
+++ b/src/lib/gssapi/mechglue/mglueP.h
|
||||
@@ -25,7 +25,6 @@ do { \
|
||||
*/
|
||||
typedef struct gss_union_ctx_id_struct {
|
||||
struct gss_union_ctx_id_struct *loopback;
|
||||
- struct gss_union_ctx_id_struct *interposer;
|
||||
gss_OID mech_type;
|
||||
gss_ctx_id_t internal_ctx_id;
|
||||
} gss_union_ctx_id_desc, *gss_union_ctx_id_t;
|
||||
diff --git a/src/lib/kadm5/kadm_rpc_xdr.c b/src/lib/kadm5/kadm_rpc_xdr.c
|
||||
index 42ac783..975f94c 100644
|
||||
--- a/src/lib/kadm5/kadm_rpc_xdr.c
|
||||
+++ b/src/lib/kadm5/kadm_rpc_xdr.c
|
||||
@@ -320,6 +320,7 @@ bool_t xdr_krb5_tl_data(XDR *xdrs, krb5_tl_data **tl_data_head)
|
||||
free(tl);
|
||||
tl = tl2;
|
||||
}
|
||||
+ *tl_data_head = NULL;
|
||||
break;
|
||||
|
||||
case XDR_ENCODE:
|
||||
@@ -1096,6 +1097,7 @@ xdr_krb5_principal(XDR *xdrs, krb5_principal *objp)
|
||||
case XDR_FREE:
|
||||
if(*objp != NULL)
|
||||
krb5_free_principal(context, *objp);
|
||||
+ *objp = NULL;
|
||||
break;
|
||||
}
|
||||
return TRUE;
|
||||
diff --git a/src/lib/rpc/auth_gssapi_misc.c b/src/lib/rpc/auth_gssapi_misc.c
|
||||
index 53bdb98..a05ea19 100644
|
||||
--- a/src/lib/rpc/auth_gssapi_misc.c
|
||||
+++ b/src/lib/rpc/auth_gssapi_misc.c
|
||||
@@ -322,7 +322,6 @@ bool_t auth_gssapi_unwrap_data(
|
||||
if (! (*xdr_func)(&temp_xdrs, xdr_ptr)) {
|
||||
PRINTF(("gssapi_unwrap_data: deserializing arguments failed\n"));
|
||||
gss_release_buffer(minor, &out_buf);
|
||||
- xdr_free(xdr_func, xdr_ptr);
|
||||
XDR_DESTROY(&temp_xdrs);
|
||||
return FALSE;
|
||||
}
|
||||
diff --git a/src/lib/rpc/svc_auth_gss.c b/src/lib/rpc/svc_auth_gss.c
|
||||
index 09a3534..b81c4a3 100644
|
||||
--- a/src/lib/rpc/svc_auth_gss.c
|
||||
+++ b/src/lib/rpc/svc_auth_gss.c
|
||||
@@ -65,16 +65,6 @@ extern const gss_OID_desc * const gss_mech_spkm3;
|
||||
|
||||
extern SVCAUTH svc_auth_none;
|
||||
|
||||
-/*
|
||||
- * from mit-krb5-1.2.1 mechglue/mglueP.h:
|
||||
- * Array of context IDs typed by mechanism OID
|
||||
- */
|
||||
-typedef struct gss_union_ctx_id_t {
|
||||
- gss_OID mech_type;
|
||||
- gss_ctx_id_t internal_ctx_id;
|
||||
-} gss_union_ctx_id_desc, *gss_union_ctx_id_t;
|
||||
-
|
||||
-
|
||||
static auth_gssapi_log_badauth_func log_badauth = NULL;
|
||||
static caddr_t log_badauth_data = NULL;
|
||||
static auth_gssapi_log_badauth2_func log_badauth2 = NULL;
|
||||
@@ -239,16 +229,8 @@ svcauth_gss_accept_sec_context(struct svc_req *rqst,
|
||||
gd->ctx = GSS_C_NO_CONTEXT;
|
||||
goto errout;
|
||||
}
|
||||
- /*
|
||||
- * ANDROS: krb5 mechglue returns ctx of size 8 - two pointers,
|
||||
- * one to the mechanism oid, one to the internal_ctx_id
|
||||
- */
|
||||
- if ((gr->gr_ctx.value = mem_alloc(sizeof(gss_union_ctx_id_desc))) == NULL) {
|
||||
- fprintf(stderr, "svcauth_gss_accept_context: out of memory\n");
|
||||
- goto errout;
|
||||
- }
|
||||
- memcpy(gr->gr_ctx.value, gd->ctx, sizeof(gss_union_ctx_id_desc));
|
||||
- gr->gr_ctx.length = sizeof(gss_union_ctx_id_desc);
|
||||
+ gr->gr_ctx.value = "xxxx";
|
||||
+ gr->gr_ctx.length = 4;
|
||||
|
||||
/* gr->gr_win = 0x00000005; ANDROS: for debugging linux kernel version... */
|
||||
gr->gr_win = sizeof(gd->seqmask) * 8;
|
||||
@@ -520,8 +502,6 @@ gssrpc__svcauth_gss(struct svc_req *rqst, struct rpc_msg *msg,
|
||||
|
||||
if (!svcauth_gss_nextverf(rqst, htonl(gr.gr_win))) {
|
||||
gss_release_buffer(&min_stat, &gr.gr_token);
|
||||
- mem_free(gr.gr_ctx.value,
|
||||
- sizeof(gss_union_ctx_id_desc));
|
||||
ret_freegc (AUTH_FAILED);
|
||||
}
|
||||
*no_dispatch = TRUE;
|
||||
@@ -531,7 +511,6 @@ gssrpc__svcauth_gss(struct svc_req *rqst, struct rpc_msg *msg,
|
||||
|
||||
gss_release_buffer(&min_stat, &gr.gr_token);
|
||||
gss_release_buffer(&min_stat, &gd->checksum);
|
||||
- mem_free(gr.gr_ctx.value, sizeof(gss_union_ctx_id_desc));
|
||||
if (!call_stat)
|
||||
ret_freegc (AUTH_FAILED);
|
||||
|
||||
diff --git a/src/tests/gssapi/t_prf.c b/src/tests/gssapi/t_prf.c
|
||||
index 254f8fb..7f04899 100644
|
||||
--- a/src/tests/gssapi/t_prf.c
|
||||
+++ b/src/tests/gssapi/t_prf.c
|
||||
@@ -127,6 +127,7 @@ main(int argc, char *argv[])
|
||||
uctx.mech_type = &mech_krb5;
|
||||
uctx.internal_ctx_id = (gss_ctx_id_t)&kgctx;
|
||||
kgctx.k5_context = NULL;
|
||||
+ kgctx.established = 1;
|
||||
kgctx.have_acceptor_subkey = 1;
|
||||
kb1.contents = k1buf;
|
||||
kb2.contents = k2buf;
|
@ -1,19 +0,0 @@
|
||||
diff --git a/src/plugins/kdb/ldap/libkdb_ldap/ldap_pwd_policy.c b/src/plugins/kdb/ldap/libkdb_ldap/ldap_pwd_policy.c
|
||||
index 522773e..6779f51 100644
|
||||
--- a/src/plugins/kdb/ldap/libkdb_ldap/ldap_pwd_policy.c
|
||||
+++ b/src/plugins/kdb/ldap/libkdb_ldap/ldap_pwd_policy.c
|
||||
@@ -314,10 +314,11 @@ krb5_ldap_get_password_policy_from_dn(krb5_context context, char *pol_name,
|
||||
LDAP_SEARCH(pol_dn, LDAP_SCOPE_BASE, "(objectclass=krbPwdPolicy)", password_policy_attributes);
|
||||
|
||||
ent=ldap_first_entry(ld, result);
|
||||
- if (ent != NULL) {
|
||||
- if ((st = populate_policy(context, ld, ent, pol_name, *policy)) != 0)
|
||||
- goto cleanup;
|
||||
+ if (ent == NULL) {
|
||||
+ st = KRB5_KDB_NOENTRY;
|
||||
+ goto cleanup;
|
||||
}
|
||||
+ st = populate_policy(context, ld, ent, pol_name, *policy);
|
||||
|
||||
cleanup:
|
||||
ldap_msgfree(result);
|
@ -1,56 +0,0 @@
|
||||
diff --git a/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c b/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c
|
||||
index 3e560d9..10b5982 100644
|
||||
--- a/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c
|
||||
+++ b/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c
|
||||
@@ -406,14 +406,14 @@ krb5_encode_krbsecretkey(krb5_key_data *key_data_in, int n_key_data,
|
||||
int num_versions = 1;
|
||||
int i, j, last;
|
||||
krb5_error_code err = 0;
|
||||
- krb5_key_data *key_data;
|
||||
+ krb5_key_data *key_data = NULL;
|
||||
|
||||
- if (n_key_data <= 0)
|
||||
+ if (n_key_data < 0)
|
||||
return NULL;
|
||||
|
||||
/* Make a shallow copy of the key data so we can alter it. */
|
||||
key_data = k5calloc(n_key_data, sizeof(*key_data), &err);
|
||||
- if (key_data_in == NULL)
|
||||
+ if (key_data == NULL)
|
||||
goto cleanup;
|
||||
memcpy(key_data, key_data_in, n_key_data * sizeof(*key_data));
|
||||
|
||||
@@ -467,9 +467,8 @@ krb5_encode_krbsecretkey(krb5_key_data *key_data_in, int n_key_data,
|
||||
free(key_data);
|
||||
if (err != 0) {
|
||||
if (ret != NULL) {
|
||||
- for (i = 0; i <= num_versions; i++)
|
||||
- if (ret[i] != NULL)
|
||||
- free (ret[i]);
|
||||
+ for (i = 0; ret[i] != NULL; i++)
|
||||
+ free (ret[i]);
|
||||
free (ret);
|
||||
ret = NULL;
|
||||
}
|
||||
@@ -1036,9 +1035,19 @@ krb5_ldap_put_principal(krb5_context context, krb5_db_entry *entry,
|
||||
bersecretkey = krb5_encode_krbsecretkey (entry->key_data,
|
||||
entry->n_key_data, mkvno);
|
||||
|
||||
- if ((st=krb5_add_ber_mem_ldap_mod(&mods, "krbprincipalkey",
|
||||
- LDAP_MOD_REPLACE | LDAP_MOD_BVALUES, bersecretkey)) != 0)
|
||||
+ if (bersecretkey == NULL) {
|
||||
+ st = ENOMEM;
|
||||
goto cleanup;
|
||||
+ }
|
||||
+ /* An empty list of bervals is only accepted for modify operations,
|
||||
+ * not add operations. */
|
||||
+ if (bersecretkey[0] != NULL || !create_standalone_prinicipal) {
|
||||
+ st = krb5_add_ber_mem_ldap_mod(&mods, "krbprincipalkey",
|
||||
+ LDAP_MOD_REPLACE | LDAP_MOD_BVALUES,
|
||||
+ bersecretkey);
|
||||
+ if (st != 0)
|
||||
+ goto cleanup;
|
||||
+ }
|
||||
|
||||
if (!(entry->mask & KADM5_PRINCIPAL)) {
|
||||
memset(strval, 0, sizeof(strval));
|
@ -1,154 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-crypt/mit-krb5/mit-krb5-1.13-r1.ebuild,v 1.11 2015/03/25 08:00:31 jlec Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib-minimal python-any-r1 versionator
|
||||
|
||||
MY_P="${P/mit-}"
|
||||
P_DIR=$(get_version_component_range 1-2)
|
||||
DESCRIPTION="MIT Kerberos V"
|
||||
HOMEPAGE="http://web.mit.edu/kerberos/www/"
|
||||
SRC_URI="http://web.mit.edu/kerberos/dist/krb5/${P_DIR}/${MY_P}-signed.tar"
|
||||
|
||||
LICENSE="openafs-krb5-a BSD MIT OPENLDAP BSD-2 HPND BSD-4 ISC RSA CC-BY-SA-3.0 || ( BSD-2 GPL-2+ )"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86"
|
||||
IUSE="doc +keyutils openldap +pkinit selinux +threads test xinetd"
|
||||
|
||||
CDEPEND="
|
||||
!!app-crypt/heimdal
|
||||
>=sys-libs/e2fsprogs-libs-1.42.9[${MULTILIB_USEDEP}]
|
||||
|| (
|
||||
>=dev-libs/libverto-0.2.5[libev,${MULTILIB_USEDEP}]
|
||||
>=dev-libs/libverto-0.2.5[libevent,${MULTILIB_USEDEP}]
|
||||
>=dev-libs/libverto-0.2.5[tevent,${MULTILIB_USEDEP}]
|
||||
)
|
||||
keyutils? ( >=sys-apps/keyutils-1.5.8[${MULTILIB_USEDEP}] )
|
||||
openldap? ( >=net-nds/openldap-2.4.38-r1[${MULTILIB_USEDEP}] )
|
||||
pkinit? ( >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}] )
|
||||
xinetd? ( sys-apps/xinetd )
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20140508-r1
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
DEPEND="${CDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
virtual/yacc
|
||||
doc? ( virtual/latex-base )
|
||||
test? (
|
||||
${PYTHON_DEPS}
|
||||
dev-lang/tcl:0
|
||||
dev-util/dejagnu
|
||||
)"
|
||||
RDEPEND="${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-kerberos )"
|
||||
|
||||
S=${WORKDIR}/${MY_P}/src
|
||||
|
||||
MULTILIB_CHOST_TOOLS=(
|
||||
/usr/bin/krb5-config
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
unpack ./"${MY_P}".tar.gz
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-1.12_warn_cflags.patch"
|
||||
epatch "${FILESDIR}/${PN}-config_LDFLAGS.patch"
|
||||
epatch "${FILESDIR}/${PN}-CVE-2014-5353.patch"
|
||||
epatch "${FILESDIR}/${PN}-CVE-2014-5354.patch"
|
||||
epatch "${FILESDIR}/2015-001-patch-r113.patch"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-cppflags "-I${EPREFIX}/usr/include/et"
|
||||
# QA
|
||||
append-flags -fno-strict-aliasing
|
||||
append-flags -fno-strict-overflow
|
||||
|
||||
multilib-minimal_src_configure
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
use keyutils || export ac_cv_header_keyutils_h=no
|
||||
ECONF_SOURCE=${S} \
|
||||
WARN_CFLAGS="set" \
|
||||
econf \
|
||||
$(use_with openldap ldap) \
|
||||
"$(multilib_native_use_with test tcl "${EPREFIX}/usr")" \
|
||||
$(use_enable pkinit) \
|
||||
$(use_enable threads thread-support) \
|
||||
--without-hesiod \
|
||||
--enable-shared \
|
||||
--with-system-et \
|
||||
--with-system-ss \
|
||||
--enable-dns-for-realm \
|
||||
--enable-kdc-lookaside-cache \
|
||||
--with-system-verto \
|
||||
--disable-rpath
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake -j1
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
multilib_is_native_abi && emake -j1 check
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
EXAMPLEDIR="${EPREFIX}/usr/share/doc/${PF}/examples" \
|
||||
install
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
# default database dir
|
||||
keepdir /var/lib/krb5kdc
|
||||
|
||||
cd ..
|
||||
dodoc README
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/html/*
|
||||
docinto pdf
|
||||
dodoc doc/pdf/*.pdf
|
||||
fi
|
||||
|
||||
newinitd "${FILESDIR}"/mit-krb5kadmind.initd-r1 mit-krb5kadmind
|
||||
newinitd "${FILESDIR}"/mit-krb5kdc.initd-r1 mit-krb5kdc
|
||||
newinitd "${FILESDIR}"/mit-krb5kpropd.initd-r1 mit-krb5kpropd
|
||||
|
||||
insinto /etc
|
||||
newins "${ED}/usr/share/doc/${PF}/examples/krb5.conf" krb5.conf.example
|
||||
insinto /var/lib/krb5kdc
|
||||
newins "${ED}/usr/share/doc/${PF}/examples/kdc.conf" kdc.conf.example
|
||||
|
||||
if use openldap ; then
|
||||
insinto /etc/openldap/schema
|
||||
doins "${S}/plugins/kdb/ldap/libkdb_ldap/kerberos.schema"
|
||||
fi
|
||||
|
||||
if use xinetd ; then
|
||||
insinto /etc/xinetd.d
|
||||
newins "${FILESDIR}/kpropd.xinetd" kpropd
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if has_version "<${CATEGORY}/${PN}-1.8.0" ; then
|
||||
elog "MIT split the Kerberos applications from the base Kerberos"
|
||||
elog "distribution. Kerberized versions of telnet, rlogin, rsh, rcp,"
|
||||
elog "ftp clients and telnet, ftp deamons now live in"
|
||||
elog "\"app-crypt/mit-krb5-appl\" package."
|
||||
fi
|
||||
}
|
@ -1,151 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-crypt/mit-krb5/mit-krb5-1.13.1.ebuild,v 1.2 2015/03/25 08:00:31 jlec Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib-minimal python-any-r1 versionator
|
||||
|
||||
MY_P="${P/mit-}"
|
||||
P_DIR=$(get_version_component_range 1-2)
|
||||
DESCRIPTION="MIT Kerberos V"
|
||||
HOMEPAGE="http://web.mit.edu/kerberos/www/"
|
||||
SRC_URI="http://web.mit.edu/kerberos/dist/krb5/${P_DIR}/${MY_P}-signed.tar"
|
||||
|
||||
LICENSE="openafs-krb5-a BSD MIT OPENLDAP BSD-2 HPND BSD-4 ISC RSA CC-BY-SA-3.0 || ( BSD-2 GPL-2+ )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
||||
IUSE="doc +keyutils openldap +pkinit selinux +threads test xinetd"
|
||||
|
||||
CDEPEND="
|
||||
!!app-crypt/heimdal
|
||||
>=sys-libs/e2fsprogs-libs-1.42.9[${MULTILIB_USEDEP}]
|
||||
|| (
|
||||
>=dev-libs/libverto-0.2.5[libev,${MULTILIB_USEDEP}]
|
||||
>=dev-libs/libverto-0.2.5[libevent,${MULTILIB_USEDEP}]
|
||||
>=dev-libs/libverto-0.2.5[tevent,${MULTILIB_USEDEP}]
|
||||
)
|
||||
keyutils? ( >=sys-apps/keyutils-1.5.8[${MULTILIB_USEDEP}] )
|
||||
openldap? ( >=net-nds/openldap-2.4.38-r1[${MULTILIB_USEDEP}] )
|
||||
pkinit? ( >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}] )
|
||||
xinetd? ( sys-apps/xinetd )
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20140508-r1
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
DEPEND="${CDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
virtual/yacc
|
||||
doc? ( virtual/latex-base )
|
||||
test? (
|
||||
${PYTHON_DEPS}
|
||||
dev-lang/tcl:0
|
||||
dev-util/dejagnu
|
||||
)"
|
||||
RDEPEND="${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-kerberos )"
|
||||
|
||||
S=${WORKDIR}/${MY_P}/src
|
||||
|
||||
MULTILIB_CHOST_TOOLS=(
|
||||
/usr/bin/krb5-config
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
unpack ./"${MY_P}".tar.gz
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-1.12_warn_cflags.patch"
|
||||
epatch "${FILESDIR}/${PN}-config_LDFLAGS.patch"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-cppflags "-I${EPREFIX}/usr/include/et"
|
||||
# QA
|
||||
append-flags -fno-strict-aliasing
|
||||
append-flags -fno-strict-overflow
|
||||
|
||||
multilib-minimal_src_configure
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
use keyutils || export ac_cv_header_keyutils_h=no
|
||||
ECONF_SOURCE=${S} \
|
||||
WARN_CFLAGS="set" \
|
||||
econf \
|
||||
$(use_with openldap ldap) \
|
||||
"$(multilib_native_use_with test tcl "${EPREFIX}/usr")" \
|
||||
$(use_enable pkinit) \
|
||||
$(use_enable threads thread-support) \
|
||||
--without-hesiod \
|
||||
--enable-shared \
|
||||
--with-system-et \
|
||||
--with-system-ss \
|
||||
--enable-dns-for-realm \
|
||||
--enable-kdc-lookaside-cache \
|
||||
--with-system-verto \
|
||||
--disable-rpath
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake -j1
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
multilib_is_native_abi && emake -j1 check
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
EXAMPLEDIR="${EPREFIX}/usr/share/doc/${PF}/examples" \
|
||||
install
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
# default database dir
|
||||
keepdir /var/lib/krb5kdc
|
||||
|
||||
cd ..
|
||||
dodoc README
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/html/*
|
||||
docinto pdf
|
||||
dodoc doc/pdf/*.pdf
|
||||
fi
|
||||
|
||||
newinitd "${FILESDIR}"/mit-krb5kadmind.initd-r1 mit-krb5kadmind
|
||||
newinitd "${FILESDIR}"/mit-krb5kdc.initd-r1 mit-krb5kdc
|
||||
newinitd "${FILESDIR}"/mit-krb5kpropd.initd-r1 mit-krb5kpropd
|
||||
|
||||
insinto /etc
|
||||
newins "${ED}/usr/share/doc/${PF}/examples/krb5.conf" krb5.conf.example
|
||||
insinto /var/lib/krb5kdc
|
||||
newins "${ED}/usr/share/doc/${PF}/examples/kdc.conf" kdc.conf.example
|
||||
|
||||
if use openldap ; then
|
||||
insinto /etc/openldap/schema
|
||||
doins "${S}/plugins/kdb/ldap/libkdb_ldap/kerberos.schema"
|
||||
fi
|
||||
|
||||
if use xinetd ; then
|
||||
insinto /etc/xinetd.d
|
||||
newins "${FILESDIR}/kpropd.xinetd" kpropd
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if has_version "<${CATEGORY}/${PN}-1.8.0" ; then
|
||||
elog "MIT split the Kerberos applications from the base Kerberos"
|
||||
elog "distribution. Kerberized versions of telnet, rlogin, rsh, rcp,"
|
||||
elog "ftp clients and telnet, ftp deamons now live in"
|
||||
elog "\"app-crypt/mit-krb5-appl\" package."
|
||||
fi
|
||||
}
|
@ -1,73 +0,0 @@
|
||||
# /etc/conf.d/libvirtd
|
||||
|
||||
# Startup dependency
|
||||
# libvirtd typically requires all networks to be up and settled which
|
||||
# is what rc_need="net" provides. However if you only use specific networks
|
||||
# for libvirtd, you may override this. Or if you only use libvirtd locally.
|
||||
rc_need="net"
|
||||
|
||||
# LIBVIRTD_OPTS
|
||||
# You may want to add '--listen' to have libvirtd listen for tcp/ip
|
||||
# connections if you want to use libvirt for remote control. Please
|
||||
# consult 'libvirtd --help' for more options.
|
||||
#LIBVIRTD_OPTS="--listen"
|
||||
|
||||
# LIBVIRTD_KVM_SHUTDOWN
|
||||
# controls the behavior for kvm guests on daemon shutdown. Defaults to
|
||||
# "shutdown"
|
||||
#
|
||||
# Valid options:
|
||||
# * shutdown
|
||||
# - Sends an ACPI shutdown (think when you tap the power button on your
|
||||
# machine and it begins a graceful shutdown). If your VM ignores this,
|
||||
# it will have the power yanked out from under it in
|
||||
# LIBVIRTD_KVM_SHUTDOWN_MAXWAIT seconds.
|
||||
# * managedsave
|
||||
# - Performs a state save external to the VM. qemu-kvm will stop stop the
|
||||
# CPU and save off all state to a separate file. When the machine is
|
||||
# started again, it will resume like nothing ever happened. This is
|
||||
# guarenteed to always successfully stop your machine and restart it.
|
||||
# However it may take some time to finish.
|
||||
# * none
|
||||
# - No attempts will be made to stop any VMs. If you are restarting your
|
||||
# machine the qemu-kvm process will be simply killed, which may result
|
||||
# in your VMs having disk corruption.
|
||||
LIBVIRTD_KVM_SHUTDOWN="shutdown"
|
||||
|
||||
# LIBVIRTD_KVM_SHUTDOWN_MAXWAIT
|
||||
# timeout in seconds until stopping libvirtd and "pulling the plug" on
|
||||
# the remaining VM's still in a running state
|
||||
LIBVIRTD_KVM_SHUTDOWN_MAXWAIT="500"
|
||||
|
||||
# LIBVIRTD_KVM_RESTART
|
||||
# controls the behavior for kvm guests on daemon restart. Defaults to
|
||||
# "none"
|
||||
#
|
||||
# Valid options:
|
||||
# * <empty>
|
||||
# - apply the same policy on daemon restart as defined by
|
||||
# LIBVIRTD_KVM_SHUTDOWN for the shutdown
|
||||
# * shutdown
|
||||
# * managedsave
|
||||
# * none
|
||||
# - as defined for LIBVIRTD_KVM_SHUTDOWN
|
||||
LIBVIRTD_KVM_RESTART="none"
|
||||
|
||||
# LIBVIRTD_KVM_NET_SHUTDOWN
|
||||
# If libvirtd created networks for you (e.g. NATed networks) then this
|
||||
# init script will shut them down for you if this is set to 'yes'.
|
||||
# Otherwise, the networks will be left running once libvirt is shutdown.
|
||||
# For this option to be useful you must have enabled the 'virt-network'
|
||||
# USE flag and have had libvirt create a NATed network for you. Valid
|
||||
# values: 'yes' or 'no'
|
||||
LIBVIRTD_KVM_NET_SHUTDOWN="yes"
|
||||
|
||||
# LIBVIRTD_KVM_NET_RESTART
|
||||
# Valid options:
|
||||
# * <empty>
|
||||
# - apply the same policy on daemon restart as defined by
|
||||
# LIBVIRTD_KVM_NET_SHUTDOWN for the shutdown
|
||||
# * yes
|
||||
# * no
|
||||
# - as defined for LIBVIRTD_KVM_NET_SHUTDOWN
|
||||
LIBVIRTD_KVM_NET_RESTART=""
|
@ -1,168 +0,0 @@
|
||||
#!/sbin/runscript
|
||||
|
||||
description="Virtual Machine Management daemon (libvirt)"
|
||||
extra_started_commands="reload halt"
|
||||
description_halt="Stops the libvirt daemon without stopping your VMs"
|
||||
description_reload="Restarts the libvirt daemon without stopping your VMs"
|
||||
|
||||
depend() {
|
||||
USE_FLAG_FIREWALLD
|
||||
use USE_FLAG_AVAHI USE_FLAG_ISCSI USE_FLAG_RBD dbus virtlockd
|
||||
after ntp-client ntpd nfs nfsmount portmap rpc.statd iptables ip6tables ebtables corosync sanlock cgconfig xenconsoled
|
||||
}
|
||||
|
||||
libvirtd_virsh() {
|
||||
local mode=$1
|
||||
shift
|
||||
|
||||
# Silence errors because virsh always throws an error about
|
||||
# not finding the hypervisor version when connecting to libvirtd
|
||||
LC_ALL=C virsh -c ${mode}:///system "$@" 2>/dev/null
|
||||
}
|
||||
|
||||
libvirtd_dom_list() {
|
||||
# Make sure that it wouldn't be confused if the domain name
|
||||
# contains the word running.
|
||||
libvirtd_virsh $1 list | awk '$3 == "running" { print $1 }'
|
||||
}
|
||||
|
||||
libvirtd_dom_count() {
|
||||
# Make sure that it wouldn't be confused if the domain name
|
||||
# contains the word running.
|
||||
libvirtd_virsh $1 list | awk 'BEGIN { count = 0 } \
|
||||
$3 == "running" { count++ } \
|
||||
END { print count }'
|
||||
}
|
||||
|
||||
libvirtd_net_list() {
|
||||
# The purpose of the awk is to avoid networks with 'active' in the name
|
||||
libvirtd_virsh $1 net-list | awk '$2 == "active" { print $1 }'
|
||||
}
|
||||
|
||||
libvirtd_net_count() {
|
||||
# The purpose of the awk is to avoid networks with 'active' in the name
|
||||
libvirtd_virsh $1 net-list | awk 'BEGIN { count = 0 } \
|
||||
$2 == "active" { count++ } \
|
||||
END { print count }'
|
||||
}
|
||||
|
||||
|
||||
start() {
|
||||
# Test configuration directories in /etc/libvirt/ to be either not
|
||||
# present or a directory, i.e. not a regular file, bug #532892
|
||||
for dir in lxc nwfilter qemu storage; do
|
||||
if [ -f /etc/libvirt/$dir ]; then
|
||||
eerror "/etc/libvirt/$dir was created as a regular file. It must be either"
|
||||
eerror "a directory or not present for libvirtd to start up successfully."
|
||||
return 1
|
||||
fi
|
||||
done
|
||||
|
||||
ebegin "Starting libvirtd"
|
||||
start-stop-daemon --start \
|
||||
--env KRB5_KTNAME=/etc/libvirt/krb5.tab \
|
||||
--exec /usr/sbin/libvirtd -- -d ${LIBVIRTD_OPTS}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
local policy=
|
||||
local counter=
|
||||
local net_policy=
|
||||
local vm_name=
|
||||
local net_name=
|
||||
local dom_id=
|
||||
|
||||
ebegin "Stopping libvirtd"
|
||||
|
||||
if [ "${RC_CMD}" = "restart" -a -n "${LIBVIRTD_KVM_RESTART}" ] ; then
|
||||
policy="${LIBVIRTD_KVM_RESTART}"
|
||||
else
|
||||
policy="${LIBVIRTD_KVM_SHUTDOWN}"
|
||||
fi
|
||||
|
||||
# sanitize policy:
|
||||
if [ "${policy}" != "none" -a "${policy}" != "managedsave" -a "${policy}" != "shutdown" ] ; then
|
||||
if [ -n "${policy}" ] ; then
|
||||
eerror " !!! Invalid policy \"${policy}\" specified in LIBVIRTD_KVM_SHUTDOWN/RESTART"
|
||||
fi
|
||||
if [ "${RC_CMD}" = "restart" ] ; then
|
||||
einfo " Using default (restart) policy \"none\" for domains"
|
||||
policy="none"
|
||||
else
|
||||
einfo " Using default policy \"shutdown\" for domains"
|
||||
policy="shutdown"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "${LIBVIRTD_KVM_SHUTDOWN_MAXWAIT}" ] ; then
|
||||
counter="${LIBVIRTD_KVM_SHUTDOWN_MAXWAIT}"
|
||||
else
|
||||
counter=500
|
||||
fi
|
||||
|
||||
if [ "${RC_CMD}" = "restart" -a -n "${LIBVIRTD_KVM_NET_RESTART}" ] ; then
|
||||
net_policy="${LIBVIRTD_KVM_NET_RESTART}"
|
||||
else
|
||||
net_policy="${LIBVIRTD_KVM_NET_SHUTDOWN}"
|
||||
fi
|
||||
|
||||
# try to shutdown all (KVM/Qemu) domains
|
||||
if [ "${policy}" != "none" ] \
|
||||
&& [ "$(libvirtd_dom_count qemu)" != "0" ] ; then
|
||||
|
||||
einfo " Shutting down domain(s):"
|
||||
for dom_id in $(libvirtd_dom_list qemu) ; do
|
||||
vm_name="$(libvirtd_virsh qemu domname ${dom_id} | head -n 1)"
|
||||
einfo " ${vm_name}"
|
||||
libvirtd_virsh qemu ${policy} ${dom_id} > /dev/null
|
||||
done
|
||||
|
||||
if [ "${policy}" = "shutdown" ]; then
|
||||
einfo " Waiting ${counter} seconds while domains shutdown ..."
|
||||
DOM_COUNT="$(libvirtd_dom_count qemu)"
|
||||
while [ ${DOM_COUNT} -gt 0 ] && [ ${counter} -gt 0 ] ; do
|
||||
DOM_COUNT="$(libvirtd_dom_count qemu)"
|
||||
sleep 1
|
||||
counter=$((${counter} - 1))
|
||||
echo -n "."
|
||||
done
|
||||
fi
|
||||
|
||||
if [ "$(libvirtd_dom_count qemu)" != "0" ] ; then
|
||||
eerror " !!! Some guests are still running, stopping anyway"
|
||||
fi
|
||||
fi
|
||||
|
||||
# try to shutdown all networks
|
||||
if [ "${net_policy}" != "no" ] \
|
||||
&& [ "$(libvirtd_net_count qemu)" != "0" ]; then
|
||||
|
||||
einfo " Shutting down network(s):"
|
||||
for net_name in $(libvirtd_net_list qemu); do
|
||||
einfo " ${net_name}"
|
||||
libvirtd_virsh qemu net-destroy ${net_name} > /dev/null
|
||||
done
|
||||
|
||||
if [ "$(libvirtd_net_count qemu)" != "0" ]; then
|
||||
eerror " !!! Some networks are still active, stopping anyway"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Now actually stop the daemon
|
||||
start-stop-daemon --stop --quiet --exec \
|
||||
/usr/sbin/libvirtd --pidfile=/var/run/libvirtd.pid
|
||||
eend $?
|
||||
}
|
||||
|
||||
halt() {
|
||||
ebegin "Stopping libvirtd without shutting down your VMs"
|
||||
start-stop-daemon --stop --quiet --exec \
|
||||
/usr/sbin/libvirtd --pidfile=/var/run/libvirtd.pid
|
||||
eend $?
|
||||
}
|
||||
|
||||
reload() {
|
||||
halt
|
||||
start
|
||||
}
|
@ -1,370 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/xen-tools-4.2.5-r8.ebuild,v 1.3 2015/07/10 10:14:02 ago Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE='xml,threads'
|
||||
|
||||
if [[ $PV == *9999 ]]; then
|
||||
KEYWORDS=""
|
||||
REPO="xen-unstable.hg"
|
||||
EHG_REPO_URI="http://xenbits.xensource.com/${REPO}"
|
||||
S="${WORKDIR}/${REPO}"
|
||||
live_eclass="mercurial"
|
||||
else
|
||||
KEYWORDS="amd64 x86"
|
||||
UPSTREAM_VER=9
|
||||
SECURITY_VER=4
|
||||
# xen-tools's gentoo patches tarball
|
||||
GENTOO_VER=1
|
||||
# xen-tools's gentoo patches version which apply to this specific ebuild
|
||||
GENTOO_GPV=0
|
||||
SEABIOS_VER=1.6.3.2
|
||||
|
||||
[[ -n ${UPSTREAM_VER} ]] && \
|
||||
UPSTREAM_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz"
|
||||
[[ -n ${SECURITY_VER} ]] && \
|
||||
SECURITY_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz"
|
||||
[[ -n ${GENTOO_VER} ]] && \
|
||||
GENTOO_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${PN/-tools/}-gentoo-patches-${GENTOO_VER}.tar.xz"
|
||||
|
||||
SRC_URI="http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz
|
||||
http://code.coreboot.org/p/seabios/downloads/get/seabios-${SEABIOS_VER}.tar.gz
|
||||
http://dev.gentoo.org/~dlan/distfiles/seabios-${SEABIOS_VER}.tar.gz
|
||||
${UPSTREAM_PATCHSET_URI}
|
||||
${SECURITY_PATCHSET_URI}
|
||||
${GENTOO_PATCHSET_URI}"
|
||||
S="${WORKDIR}/xen-${PV}"
|
||||
fi
|
||||
|
||||
inherit bash-completion-r1 eutils flag-o-matic multilib python-single-r1 toolchain-funcs udev ${live_eclass}
|
||||
|
||||
DESCRIPTION="Xend daemon and tools"
|
||||
HOMEPAGE="http://xen.org/"
|
||||
DOCS=( README docs/README.xen-bugtool )
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="api custom-cflags debug doc flask hvm qemu ocaml pygrub screen static-libs system-seabios"
|
||||
|
||||
REQUIRED_USE="hvm? ( qemu )
|
||||
${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND="dev-libs/lzo:2
|
||||
dev-libs/glib:2
|
||||
dev-libs/yajl
|
||||
dev-libs/libgcrypt:0
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
dev-python/pypam[${PYTHON_USEDEP}]
|
||||
sys-libs/zlib
|
||||
sys-power/iasl
|
||||
system-seabios? ( sys-firmware/seabios )
|
||||
sys-firmware/ipxe
|
||||
dev-ml/findlib
|
||||
hvm? ( media-libs/libsdl )
|
||||
${PYTHON_DEPS}
|
||||
api? ( dev-libs/libxml2
|
||||
net-misc/curl )
|
||||
${PYTHON_DEPS}
|
||||
pygrub? ( ${PYTHON_DEPS//${PYTHON_REQ_USE}/ncurses} )
|
||||
sys-devel/bin86
|
||||
sys-devel/dev86
|
||||
dev-lang/perl
|
||||
app-misc/pax-utils
|
||||
doc? (
|
||||
app-doc/doxygen
|
||||
dev-tex/latex2html[png,gif]
|
||||
media-gfx/transfig
|
||||
media-gfx/graphviz
|
||||
dev-tex/xcolor
|
||||
dev-texlive/texlive-latexextra
|
||||
virtual/latex-base
|
||||
dev-tex/latexmk
|
||||
dev-texlive/texlive-latex
|
||||
dev-texlive/texlive-pictures
|
||||
dev-texlive/texlive-latexrecommended
|
||||
)
|
||||
hvm? ( x11-proto/xproto
|
||||
!net-libs/libiscsi )"
|
||||
RDEPEND="sys-apps/iproute2
|
||||
net-misc/bridge-utils
|
||||
ocaml? ( >=dev-lang/ocaml-4 )
|
||||
screen? (
|
||||
app-misc/screen
|
||||
app-admin/logrotate
|
||||
)
|
||||
virtual/udev"
|
||||
|
||||
# hvmloader is used to bootstrap a fully virtualized kernel
|
||||
# Approved by QA team in bug #144032
|
||||
QA_WX_LOAD="usr/lib/xen/boot/hvmloader"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
export "CONFIG_LOMOUNT=y"
|
||||
|
||||
#bug 522642, disable compile tools/tests
|
||||
export "CONFIG_TESTS=n"
|
||||
|
||||
if has_version dev-libs/libgcrypt:0; then
|
||||
export "CONFIG_GCRYPT=y"
|
||||
fi
|
||||
|
||||
if use qemu; then
|
||||
export "CONFIG_IOEMU=y"
|
||||
else
|
||||
export "CONFIG_IOEMU=n"
|
||||
fi
|
||||
|
||||
if [[ -z ${XEN_TARGET_ARCH} ]] ; then
|
||||
if use x86 && use amd64; then
|
||||
die "Confusion! Both x86 and amd64 are set in your use flags!"
|
||||
elif use x86; then
|
||||
export XEN_TARGET_ARCH="x86_32"
|
||||
elif use amd64 ; then
|
||||
export XEN_TARGET_ARCH="x86_64"
|
||||
else
|
||||
die "Unsupported architecture!"
|
||||
fi
|
||||
fi
|
||||
|
||||
use api && export "LIBXENAPI_BINDINGS=y"
|
||||
use flask && export "FLASK_ENABLE=y"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Upstream's patchset
|
||||
if [[ -n ${UPSTREAM_VER} ]]; then
|
||||
einfo "Try to apply Xen Upstream patcheset"
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
EPATCH_OPTS="-p1" \
|
||||
epatch "${WORKDIR}"/patches-upstream
|
||||
fi
|
||||
|
||||
# Security patchset
|
||||
if [[ -n ${SECURITY_VER} ]]; then
|
||||
einfo "Try to apply Xen Security patcheset"
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
EPATCH_OPTS="-p1" \
|
||||
epatch "${WORKDIR}/patches-security/${PV}"
|
||||
fi
|
||||
|
||||
# Gentoo's patchset
|
||||
if [[ -n ${GENTOO_VER} && -n ${GENTOO_GPV} ]]; then
|
||||
einfo "Try to apply Gentoo specific patcheset"
|
||||
source "${FILESDIR}"/gentoo-patches.conf
|
||||
_gpv=_gpv_${PN/-/_}_${PV//./}_${GENTOO_GPV}
|
||||
for i in ${!_gpv}; do
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
epatch "${WORKDIR}"/patches-gentoo/$i
|
||||
done
|
||||
fi
|
||||
|
||||
use system-seabios && epatch "${WORKDIR}"/patches-gentoo/${PN}-4-unbundle-seabios.patch
|
||||
|
||||
if gcc-specs-pie; then
|
||||
epatch "${WORKDIR}"/patches-gentoo/ipxe-nopie.patch
|
||||
fi
|
||||
|
||||
# if the user *really* wants to use their own custom-cflags, let them
|
||||
if use custom-cflags; then
|
||||
einfo "User wants their own CFLAGS - removing defaults"
|
||||
|
||||
# try and remove all the default cflags
|
||||
find "${S}" \( -name Makefile -o -name Rules.mk -o -name Config.mk \) \
|
||||
-exec sed \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-i {} + || die "failed to re-set custom-cflags"
|
||||
fi
|
||||
|
||||
if ! use pygrub; then
|
||||
sed -e '/^SUBDIRS-$(PYTHON_TOOLS) += pygrub$/d' -i tools/Makefile || die
|
||||
fi
|
||||
|
||||
# Disable hvm support on systems that don't support x86_32 binaries.
|
||||
if ! use hvm; then
|
||||
sed -e '/^CONFIG_IOEMU := y$/d' -i config/*.mk || die
|
||||
sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die
|
||||
# Bug 351648
|
||||
elif ! use x86 && ! has x86 $(get_all_abis); then
|
||||
mkdir -p "${WORKDIR}"/extra-headers/gnu || die
|
||||
touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h || die
|
||||
export CPATH="${WORKDIR}"/extra-headers
|
||||
fi
|
||||
|
||||
# Don't bother with qemu, only needed for fully virtualised guests
|
||||
if ! use qemu; then
|
||||
sed -e "/^CONFIG_IOEMU := y$/d" -i config/*.mk || die
|
||||
sed -e "s:install-tools\: tools/ioemu-dir:install-tools\: :g" -i Makefile || die
|
||||
fi
|
||||
|
||||
mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die
|
||||
pushd tools/firmware/ > /dev/null
|
||||
ln -s seabios-dir-remote seabios-dir || die
|
||||
popd > /dev/null
|
||||
|
||||
# Reset bash completion dir; Bug 472438
|
||||
sed -e "s:^BASH_COMPLETION_DIR ?= \$(CONFIG_DIR)/bash_completion.d:BASH_COMPLETION_DIR ?= $(get_bashcompdir):" \
|
||||
-i Config.mk || die
|
||||
sed -i -e "/bash-completion/s/xl\.sh/xl/g" tools/libxl/Makefile || die
|
||||
|
||||
# Bug 445986
|
||||
sed -e 's:$(MAKE) PYTHON=$(PYTHON) subdirs-$@:LC_ALL=C "$(MAKE)" PYTHON=$(PYTHON) subdirs-$@:' -i tools/firmware/Makefile || die
|
||||
|
||||
# fix QA warning, create /var/run/, /var/lock dynamically
|
||||
sed -i -e "/\$(INSTALL_DIR) \$(DESTDIR)\$(XEN_RUN_DIR)/d" \
|
||||
tools/libxl/Makefile || die
|
||||
|
||||
sed -i -e "/\/var\/run\//d" \
|
||||
tools/xenstore/Makefile \
|
||||
tools/pygrub/Makefile || die
|
||||
|
||||
sed -i -e "/\/var\/lock\/subsys/d" \
|
||||
tools/Makefile || die
|
||||
|
||||
# xencommons, Bug #492332, sed lighter weight than patching
|
||||
sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \
|
||||
-i tools/hotplug/Linux/init.d/xencommons || die
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export VARTEXFONTS="${T}/fonts"
|
||||
local myopt
|
||||
use debug && myopt="${myopt} debug=y"
|
||||
|
||||
use custom-cflags || unset CFLAGS
|
||||
if test-flag-CC -fno-strict-overflow; then
|
||||
append-flags -fno-strict-overflow
|
||||
fi
|
||||
|
||||
unset LDFLAGS
|
||||
unset CFLAGS
|
||||
emake V=1 CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" -C tools ${myopt}
|
||||
|
||||
use doc && emake -C docs txt html
|
||||
emake -C docs man-pages
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Override auto-detection in the build system, bug #382573
|
||||
export INITD_DIR=/tmp/init.d
|
||||
export CONFIG_LEAF_DIR=../tmp/default
|
||||
|
||||
# Let the build system compile installed Python modules.
|
||||
local PYTHONDONTWRITEBYTECODE
|
||||
export PYTHONDONTWRITEBYTECODE
|
||||
|
||||
emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" install-tools \
|
||||
XEN_PYTHON_NATIVE_INSTALL=y install-tools
|
||||
# Fix the remaining Python shebangs.
|
||||
python_fix_shebang "${ED}"
|
||||
|
||||
# Remove RedHat-specific stuff
|
||||
rm -rf "${D}"tmp || die
|
||||
|
||||
# uncomment lines in xl.conf
|
||||
sed -e 's:^#autoballoon=1:autoballoon=1:' \
|
||||
-e 's:^#lockfile="/var/lock/xl":lockfile="/var/lock/xl":' \
|
||||
-e 's:^#vifscript="vif-bridge":vifscript="vif-bridge":' \
|
||||
-i tools/examples/xl.conf || die
|
||||
|
||||
if use doc; then
|
||||
emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs
|
||||
|
||||
dohtml -r docs/
|
||||
docinto pdf
|
||||
dodoc ${DOCS[@]}
|
||||
[ -d "${D}"/usr/share/doc/xen ] && mv "${D}"/usr/share/doc/xen/* "${D}"/usr/share/doc/${PF}/html
|
||||
fi
|
||||
|
||||
rm -rf "${D}"/usr/share/doc/xen/
|
||||
doman docs/man?/*
|
||||
|
||||
newconfd "${FILESDIR}"/xendomains.confd xendomains
|
||||
newconfd "${FILESDIR}"/xenstored.confd xenstored
|
||||
newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled
|
||||
newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains
|
||||
newinitd "${FILESDIR}"/xenstored.initd xenstored
|
||||
newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled
|
||||
newinitd "${FILESDIR}"/xencommons.initd xencommons
|
||||
newconfd "${FILESDIR}"/xencommons.confd xencommons
|
||||
|
||||
if use screen; then
|
||||
cat "${FILESDIR}"/xendomains-screen.confd >> "${ED}"/etc/conf.d/xendomains || die
|
||||
cp "${FILESDIR}"/xen-consoles.logrotate "${ED}"/etc/xen/ || die
|
||||
keepdir /var/log/xen-consoles
|
||||
fi
|
||||
|
||||
if [[ "${ARCH}" == 'amd64' ]] && use qemu; then
|
||||
mkdir -p "${D}"usr/$(get_libdir)/xen/bin || die
|
||||
mv "${D}"usr/lib/xen/bin/qemu* "${D}"usr/$(get_libdir)/xen/bin/ || die
|
||||
fi
|
||||
|
||||
# For -static-libs wrt Bug 384355
|
||||
if ! use static-libs; then
|
||||
rm -f "${D}"usr/$(get_libdir)/*.a "${D}"usr/$(get_libdir)/ocaml/*/*.a
|
||||
fi
|
||||
|
||||
# xend expects these to exist
|
||||
keepdir /var/lib/xenstored /var/xen/dump /var/lib/xen /var/log/xen
|
||||
|
||||
# for xendomains
|
||||
keepdir /etc/xen/auto
|
||||
|
||||
# Temp QA workaround
|
||||
dodir "$(get_udevdir)"
|
||||
mv "${D}"/etc/udev/* "${D}/$(get_udevdir)"
|
||||
rm -rf "${D}"/etc/udev
|
||||
|
||||
# Remove files failing QA AFTER emake installs them, avoiding seeking absent files
|
||||
find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \
|
||||
-o -name openbios-ppc -o -name palcode-clipper \) -delete || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Official Xen Guide and the offical wiki page:"
|
||||
elog "http://www.gentoo.org/doc/en/xen-gu"${D}"usr/ide.xml"
|
||||
elog "http://wiki.xen.org/wiki/Main_Page"
|
||||
elog ""
|
||||
elog "Recommended to utilise the xencommons script to config sytem at boot."
|
||||
elog "Add by use of rc-update on completion of the install"
|
||||
|
||||
# TODO: we need to have the current Python slot here.
|
||||
if ! has_version "dev-lang/python[ncurses]"; then
|
||||
echo
|
||||
ewarn "NB: Your dev-lang/python is built without USE=ncurses."
|
||||
ewarn "Please rebuild python with USE=ncurses to make use of xenmon.py."
|
||||
fi
|
||||
|
||||
if has_version "sys-apps/iproute2[minimal]"; then
|
||||
echo
|
||||
ewarn "Your sys-apps/iproute2 is built with USE=minimal. Networking"
|
||||
ewarn "will not work until you rebuild iproute2 without USE=minimal."
|
||||
fi
|
||||
|
||||
if ! use hvm; then
|
||||
echo
|
||||
elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm"
|
||||
elog "support enable the hvm use flag."
|
||||
elog "An x86 or amd64 system is required to build HVM support."
|
||||
fi
|
||||
|
||||
if grep -qsF XENSV= "${ROOT}/etc/conf.d/xend"; then
|
||||
echo
|
||||
elog "xensv is broken upstream (Gentoo bug #142011)."
|
||||
elog "Please remove '${ROOT%/}/etc/conf.d/xend', as it is no longer needed."
|
||||
fi
|
||||
}
|
@ -1,437 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/xen-tools-4.5.1-r1.ebuild,v 1.2 2015/07/10 10:14:02 ago Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
MY_PV=${PV/_/-}
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE='xml,threads'
|
||||
|
||||
if [[ $PV == *9999 ]]; then
|
||||
KEYWORDS=""
|
||||
REPO="xen-unstable.hg"
|
||||
EHG_REPO_URI="http://xenbits.xensource.com/${REPO}"
|
||||
S="${WORKDIR}/${REPO}"
|
||||
live_eclass="mercurial"
|
||||
else
|
||||
KEYWORDS="amd64 ~arm ~arm64 -x86"
|
||||
UPSTREAM_VER=
|
||||
SECURITY_VER=4
|
||||
# xen-tools's gentoo patches tarball
|
||||
GENTOO_VER=4
|
||||
# xen-tools's gentoo patches version which apply to this specific ebuild
|
||||
GENTOO_GPV=0
|
||||
# xen-tools ovmf's patches
|
||||
OVMF_VER=0
|
||||
|
||||
SEABIOS_VER=1.7.5
|
||||
OVMF_PV=20131208
|
||||
|
||||
[[ -n ${UPSTREAM_VER} ]] && \
|
||||
UPSTREAM_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz"
|
||||
[[ -n ${SECURITY_VER} ]] && \
|
||||
SECURITY_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz"
|
||||
[[ -n ${GENTOO_VER} ]] && \
|
||||
GENTOO_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-gentoo-patches-${GENTOO_VER}.tar.xz"
|
||||
[[ -n ${OVMF_VER} ]] && \
|
||||
OVMF_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-ovmf-patches-${OVMF_VER}.tar.xz"
|
||||
|
||||
SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/xen-${MY_PV}.tar.gz
|
||||
http://code.coreboot.org/p/seabios/downloads/get/seabios-${SEABIOS_VER}.tar.gz
|
||||
http://dev.gentoo.org/~dlan/distfiles/seabios-${SEABIOS_VER}.tar.gz
|
||||
ovmf? ( http://dev.gentoo.org/~dlan/distfiles/ovmf-${OVMF_PV}.tar.bz2
|
||||
${OVMF_PATCHSET_URI} )
|
||||
${UPSTREAM_PATCHSET_URI}
|
||||
${SECURITY_PATCHSET_URI}
|
||||
${GENTOO_PATCHSET_URI}"
|
||||
S="${WORKDIR}/xen-${MY_PV}"
|
||||
fi
|
||||
|
||||
inherit bash-completion-r1 eutils flag-o-matic multilib python-single-r1 toolchain-funcs udev ${live_eclass}
|
||||
|
||||
DESCRIPTION="Xend daemon and tools"
|
||||
HOMEPAGE="http://xen.org/"
|
||||
DOCS=( README docs/README.xen-bugtool )
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
# Inclusion of IUSE ocaml on stabalizing requires maintainer of ocaml to (get off his hands and) make
|
||||
# >=dev-lang/ocaml-4 stable
|
||||
# Masked in profiles/eapi-5-files instead
|
||||
IUSE="api custom-cflags debug doc flask hvm qemu ocaml ovmf +pam python pygrub screen static-libs system-qemu system-seabios"
|
||||
|
||||
REQUIRED_USE="hvm? ( || ( qemu system-qemu ) )
|
||||
${PYTHON_REQUIRED_USE}
|
||||
pygrub? ( python )
|
||||
ovmf? ( hvm )
|
||||
qemu? ( !system-qemu )"
|
||||
|
||||
COMMON_DEPEND="
|
||||
dev-libs/lzo:2
|
||||
dev-libs/glib:2
|
||||
dev-libs/yajl
|
||||
dev-libs/libaio
|
||||
dev-libs/libgcrypt:0
|
||||
sys-libs/zlib
|
||||
"
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
pam? ( dev-python/pypam[${PYTHON_USEDEP}] )
|
||||
hvm? ( media-libs/libsdl )
|
||||
${PYTHON_DEPS}
|
||||
api? ( dev-libs/libxml2
|
||||
net-misc/curl )
|
||||
pygrub? ( ${PYTHON_DEPS//${PYTHON_REQ_USE}/ncurses} )
|
||||
ovmf? ( ${PYTHON_DEPS//${PYTHON_REQ_USE}/sqlite} )
|
||||
!amd64? ( >=sys-apps/dtc-1.4.0 )
|
||||
amd64? ( sys-devel/bin86
|
||||
system-seabios? ( sys-firmware/seabios )
|
||||
sys-firmware/ipxe
|
||||
sys-devel/dev86
|
||||
sys-power/iasl )
|
||||
dev-lang/perl
|
||||
app-misc/pax-utils
|
||||
dev-python/markdown[${PYTHON_USEDEP}]
|
||||
doc? (
|
||||
app-doc/doxygen
|
||||
dev-tex/latex2html[png,gif]
|
||||
media-gfx/graphviz
|
||||
dev-tex/xcolor
|
||||
media-gfx/transfig
|
||||
dev-texlive/texlive-latexextra
|
||||
virtual/latex-base
|
||||
dev-tex/latexmk
|
||||
dev-texlive/texlive-latex
|
||||
dev-texlive/texlive-pictures
|
||||
dev-texlive/texlive-latexrecommended
|
||||
)
|
||||
hvm? ( x11-proto/xproto
|
||||
!net-libs/libiscsi )
|
||||
qemu? ( x11-libs/pixman )
|
||||
system-qemu? ( app-emulation/qemu[xen] )
|
||||
ocaml? ( dev-ml/findlib
|
||||
>=dev-lang/ocaml-4 )"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
sys-apps/iproute2
|
||||
net-misc/bridge-utils
|
||||
screen? (
|
||||
app-misc/screen
|
||||
app-admin/logrotate
|
||||
)
|
||||
virtual/udev"
|
||||
|
||||
# hvmloader is used to bootstrap a fully virtualized kernel
|
||||
# Approved by QA team in bug #144032
|
||||
QA_WX_LOAD="usr/lib/xen/boot/hvmloader
|
||||
usr/share/qemu-xen/qemu/s390-ccw.img"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
export "CONFIG_LOMOUNT=y"
|
||||
|
||||
#bug 522642, disable compile tools/tests
|
||||
export "CONFIG_TESTS=n"
|
||||
|
||||
if has_version dev-libs/libgcrypt:0; then
|
||||
export "CONFIG_GCRYPT=y"
|
||||
fi
|
||||
|
||||
if [[ -z ${XEN_TARGET_ARCH} ]] ; then
|
||||
if use x86 && use amd64; then
|
||||
die "Confusion! Both x86 and amd64 are set in your use flags!"
|
||||
elif use x86; then
|
||||
export XEN_TARGET_ARCH="x86_32"
|
||||
elif use amd64 ; then
|
||||
export XEN_TARGET_ARCH="x86_64"
|
||||
elif use arm; then
|
||||
export XEN_TARGET_ARCH="arm32"
|
||||
elif use arm64; then
|
||||
export XEN_TARGET_ARCH="arm64"
|
||||
else
|
||||
die "Unsupported architecture!"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Upstream's patchset
|
||||
if [[ -n ${UPSTREAM_VER} ]]; then
|
||||
einfo "Try to apply Xen Upstream patcheset"
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
EPATCH_OPTS="-p1" \
|
||||
epatch "${WORKDIR}"/patches-upstream
|
||||
fi
|
||||
|
||||
# Security patchset
|
||||
if [[ -n ${SECURITY_VER} ]]; then
|
||||
einfo "Try to apply Xen Security patcheset"
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
EPATCH_OPTS="-p1" \
|
||||
epatch "${WORKDIR}/patches-security/${PV}"
|
||||
fi
|
||||
|
||||
# move before Gentoo patch, one patch should apply to seabios, to fix gcc-4.5.x build err
|
||||
mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die
|
||||
pushd tools/firmware/ > /dev/null
|
||||
ln -s seabios-dir-remote seabios-dir || die
|
||||
popd > /dev/null
|
||||
|
||||
# Gentoo's patchset
|
||||
if [[ -n ${GENTOO_VER} && -n ${GENTOO_GPV} ]]; then
|
||||
einfo "Try to apply Gentoo specific patcheset"
|
||||
source "${FILESDIR}"/gentoo-patches.conf
|
||||
_gpv=_gpv_${PN/-/_}_${PV//./}_${GENTOO_GPV}
|
||||
for i in ${!_gpv}; do
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
epatch "${WORKDIR}"/patches-gentoo/$i
|
||||
done
|
||||
fi
|
||||
|
||||
# Ovmf's patchset
|
||||
if [[ -n ${OVMF_VER} ]] && use ovmf; then
|
||||
einfo "Try to apply Ovmf patcheset"
|
||||
pushd "${WORKDIR}"/ovmf-*/ > /dev/null
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
EPATCH_OPTS="-p1" \
|
||||
epatch "${WORKDIR}"/patches-ovmf
|
||||
popd > /dev/null
|
||||
mv ../ovmf-${OVMF_PV} tools/firmware/ovmf-dir-remote || die
|
||||
fi
|
||||
|
||||
mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die
|
||||
|
||||
# Fix texi2html build error with new texi2html, qemu.doc.html
|
||||
sed -i -e "/texi2html -monolithic/s/-number//" tools/qemu-xen-traditional/Makefile || die
|
||||
|
||||
use api || sed -e "/SUBDIRS-\$(LIBXENAPI_BINDINGS) += libxen/d" -i tools/Makefile || die
|
||||
sed -e 's:$(MAKE) PYTHON=$(PYTHON) subdirs-$@:LC_ALL=C "$(MAKE)" PYTHON=$(PYTHON) subdirs-$@:' \
|
||||
-i tools/firmware/Makefile || die
|
||||
|
||||
# Drop .config, fixes to gcc-4.6
|
||||
sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
|
||||
|
||||
# if the user *really* wants to use their own custom-cflags, let them
|
||||
if use custom-cflags; then
|
||||
einfo "User wants their own CFLAGS - removing defaults"
|
||||
|
||||
# try and remove all the default cflags
|
||||
find "${S}" \( -name Makefile -o -name Rules.mk -o -name Config.mk \) \
|
||||
-exec sed \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-i {} + || die "failed to re-set custom-cflags"
|
||||
fi
|
||||
|
||||
if ! use pygrub; then
|
||||
sed -e '/^SUBDIRS-y += pygrub/d' -i tools/Makefile || die
|
||||
fi
|
||||
|
||||
if ! use python; then
|
||||
sed -e '/^SUBDIRS-y += python$/d' -i tools/Makefile || die
|
||||
fi
|
||||
|
||||
if ! use hvm; then
|
||||
sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die
|
||||
# Bug 351648
|
||||
elif ! use x86 && ! has x86 $(get_all_abis); then
|
||||
mkdir -p "${WORKDIR}"/extra-headers/gnu || die
|
||||
touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h || die
|
||||
export CPATH="${WORKDIR}"/extra-headers
|
||||
fi
|
||||
|
||||
# Don't bother with qemu, only needed for fully virtualised guests
|
||||
if ! use qemu; then
|
||||
sed -e "s:install-tools\: tools/qemu-xen-traditional-dir:install-tools\: :g" -i Makefile || die
|
||||
fi
|
||||
|
||||
# Reset bash completion dir; Bug 472438
|
||||
sed -e "s:^BASH_COMPLETION_DIR ?= \$(CONFIG_DIR)/bash_completion.d:BASH_COMPLETION_DIR ?= $(get_bashcompdir):" \
|
||||
-i Config.mk || die
|
||||
sed -i -e "/bash-completion/s/xl\.sh/xl/g" tools/libxl/Makefile || die
|
||||
|
||||
# xencommons, Bug #492332, sed lighter weight than patching
|
||||
sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \
|
||||
-i tools/hotplug/Linux/init.d/xencommons.in || die
|
||||
|
||||
# respect multilib, usr/lib/libcacard.so.0.0.0
|
||||
sed -e "/^libdir=/s/\/lib/\/$(get_libdir)/" \
|
||||
-i tools/qemu-xen/configure || die
|
||||
|
||||
#bug 518136, don't build 32bit exactuable for nomultilib profile
|
||||
if [[ "${ARCH}" == 'amd64' ]] && ! has_multilib_profile; then
|
||||
sed -i -e "/x86_emulator/d" tools/tests/Makefile || die
|
||||
fi
|
||||
|
||||
# use /var instead of /var/lib, consistat with previous ebuild
|
||||
sed -i -e "/XEN_LOCK_DIR=/s/\$localstatedir/\/var/g" \
|
||||
m4/paths.m4 configure tools/configure || die
|
||||
# use /run instead of /var/run
|
||||
sed -i -e "/XEN_RUN_DIR=/s/\$localstatedir//g" \
|
||||
m4/paths.m4 configure tools/configure || die
|
||||
|
||||
# uncomment lines in xl.conf
|
||||
sed -e 's:^#autoballoon=:autoballoon=:' \
|
||||
-e 's:^#lockfile=:lockfile=:' \
|
||||
-e 's:^#vif.default.script=:vif.default.script=:' \
|
||||
-i tools/examples/xl.conf || die
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf="--prefix=${PREFIX}/usr \
|
||||
--libdir=${PREFIX}/usr/$(get_libdir) \
|
||||
--libexecdir=${PREFIX}/usr/libexec \
|
||||
--disable-werror \
|
||||
--disable-xen \
|
||||
--enable-tools \
|
||||
--enable-docs \
|
||||
$(use_with system-qemu) \
|
||||
$(use_enable pam) \
|
||||
$(use_enable api xenapi) \
|
||||
$(use_enable ovmf) \
|
||||
$(use_enable ocaml ocamltools) \
|
||||
"
|
||||
use system-seabios && myconf+=" --with-system-seabios=/usr/share/seabios/bios.bin"
|
||||
use qemu || myconf+=" --with-system-qemu"
|
||||
use amd64 && myconf+=" --enable-qemu-traditional"
|
||||
econf ${myconf}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export VARTEXFONTS="${T}/fonts"
|
||||
local myopt
|
||||
use debug && myopt="${myopt} debug=y"
|
||||
|
||||
use custom-cflags || unset CFLAGS
|
||||
if test-flag-CC -fno-strict-overflow; then
|
||||
append-flags -fno-strict-overflow
|
||||
fi
|
||||
|
||||
unset LDFLAGS
|
||||
unset CFLAGS
|
||||
emake V=1 CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" -C tools ${myopt}
|
||||
|
||||
use doc && emake -C docs txt html
|
||||
emake -C docs man-pages
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Override auto-detection in the build system, bug #382573
|
||||
export INITD_DIR=/tmp/init.d
|
||||
export CONFIG_LEAF_DIR=../tmp/default
|
||||
|
||||
# Let the build system compile installed Python modules.
|
||||
local PYTHONDONTWRITEBYTECODE
|
||||
export PYTHONDONTWRITEBYTECODE
|
||||
|
||||
emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" \
|
||||
XEN_PYTHON_NATIVE_INSTALL=y install-tools
|
||||
|
||||
# Fix the remaining Python shebangs.
|
||||
python_fix_shebang "${D}"
|
||||
|
||||
# Remove RedHat-specific stuff
|
||||
rm -rf "${D}"tmp || die
|
||||
|
||||
if use doc; then
|
||||
emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs
|
||||
|
||||
dohtml -r docs/
|
||||
docinto pdf
|
||||
dodoc ${DOCS[@]}
|
||||
[ -d "${D}"/usr/share/doc/xen ] && mv "${D}"/usr/share/doc/xen/* "${D}"/usr/share/doc/${PF}/html
|
||||
fi
|
||||
|
||||
rm -rf "${D}"/usr/share/doc/xen/
|
||||
doman docs/man?/*
|
||||
|
||||
newconfd "${FILESDIR}"/xendomains.confd xendomains
|
||||
newconfd "${FILESDIR}"/xenstored.confd xenstored
|
||||
newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled
|
||||
newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains
|
||||
newinitd "${FILESDIR}"/xenstored.initd xenstored
|
||||
newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled
|
||||
newinitd "${FILESDIR}"/xencommons.initd xencommons
|
||||
newconfd "${FILESDIR}"/xencommons.confd xencommons
|
||||
newinitd "${FILESDIR}"/xenqemudev.initd xenqemudev
|
||||
newconfd "${FILESDIR}"/xenqemudev.confd xenqemudev
|
||||
|
||||
if use screen; then
|
||||
cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains || die
|
||||
cp "${FILESDIR}"/xen-consoles.logrotate "${D}"/etc/xen/ || die
|
||||
keepdir /var/log/xen-consoles
|
||||
fi
|
||||
|
||||
# For -static-libs wrt Bug 384355
|
||||
if ! use static-libs; then
|
||||
rm -f "${D}"usr/$(get_libdir)/*.a "${D}"usr/$(get_libdir)/ocaml/*/*.a
|
||||
fi
|
||||
|
||||
# for xendomains
|
||||
keepdir /etc/xen/auto
|
||||
|
||||
# Temp QA workaround
|
||||
dodir "$(get_udevdir)"
|
||||
mv "${D}"/etc/udev/* "${D}/$(get_udevdir)"
|
||||
rm -rf "${D}"/etc/udev
|
||||
|
||||
# Remove files failing QA AFTER emake installs them, avoiding seeking absent files
|
||||
find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \
|
||||
-o -name openbios-ppc -o -name palcode-clipper \) -delete || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Official Xen Guide and the offical wiki page:"
|
||||
elog "https://wiki.gentoo.org/wiki/Xen"
|
||||
elog "http://wiki.xen.org/wiki/Main_Page"
|
||||
elog ""
|
||||
elog "Recommended to utilise the xencommons script to config sytem At boot"
|
||||
elog "Add by use of rc-update on completion of the install"
|
||||
|
||||
# TODO: we need to have the current Python slot here.
|
||||
if ! has_version "dev-lang/python[ncurses]"; then
|
||||
echo
|
||||
ewarn "NB: Your dev-lang/python is built without USE=ncurses."
|
||||
ewarn "Please rebuild python with USE=ncurses to make use of xenmon.py."
|
||||
fi
|
||||
|
||||
if has_version "sys-apps/iproute2[minimal]"; then
|
||||
echo
|
||||
ewarn "Your sys-apps/iproute2 is built with USE=minimal. Networking"
|
||||
ewarn "will not work until you rebuild iproute2 without USE=minimal."
|
||||
fi
|
||||
|
||||
if ! use hvm; then
|
||||
echo
|
||||
elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm"
|
||||
elog "support enable the hvm use flag."
|
||||
elog "An x86 or amd64 system is required to build HVM support."
|
||||
fi
|
||||
|
||||
if use qemu; then
|
||||
elog "The qemu-bridge-helper is renamed to the xen-bridge-helper in the in source"
|
||||
elog "build of qemu. This allows for app-emulation/qemu to be emerged concurrently"
|
||||
elog "with the qemu capable xen. It is up to the user to distinguish between and utilise"
|
||||
elog "the qemu-bridge-helper and the xen-bridge-helper. File bugs of any issues that arise"
|
||||
fi
|
||||
|
||||
if grep -qsF XENSV= "${ROOT}/etc/conf.d/xend"; then
|
||||
echo
|
||||
elog "xensv is broken upstream (Gentoo bug #142011)."
|
||||
elog "Please remove '${ROOT%/}/etc/conf.d/xend', as it is no longer needed."
|
||||
fi
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
DIST lyx-1.6.10.tar.bz2 12559454 SHA256 dcfb6fc0f6880e706d45ea16459ed2206265179f3882b4685e4955c18adaf569 SHA512 c6d3f18f555e45ef86e22f42f7c8727ad0e1ad2cc4cbf87557f3ef235d894d46c5a87fc5923e2c02a5d9ba342389bf213af156a12c17e3b5f2308b9602b182dc WHIRLPOOL 0543590df1cc353fee939fee83db55aa146418c36c9422faa07cf9a1723002b83deb92f7ff89d49abb4144fe62d0fcf917257c07aaeb0d6e016b39393a8ab542
|
||||
DIST lyx-2.0.8.1.tar.xz 10481988 SHA256 fa0a9c6070554e0d12d24e9b3c4a1e5fc2ee853b3fbe83e2a415635cdc973c59 SHA512 17e313d3118dfe439f5251384f2fffdb45ffef5ec515953b7af0762d35c8e156a9338de698cea91cf8b3cedca1fc08364d8f3c50c9345f304d57004af695f901 WHIRLPOOL 6a9ef2df39861d373e1c6288f5443f910632a09ed4d84e409efe06459f2f39d3c30462b3a26aafe37c5216b765882e7ab5189e7d164b71def97f50877784754c
|
||||
DIST lyx-2.1.2.tar.xz 10669264 SHA256 c8783822341e95cc2a6b5da1b0e838542fd875017d8775f237b17c1790b1bba5 SHA512 3e7234673e302343e26f70a11d0f078436f89929749e6c9b8a5ba74fe32d6c0b7418142783715abd8115d014f146db8115ffdd0bcd77cacb38fce23f3c0844cc WHIRLPOOL 83915cfa3dc8fc6b51d8ed2ebcb7b56ac9a5f2d8d7acb12dba8457838a3e57d4f50b161ee964562c068acf02129fff38f8ae75d377e4c0928f9f17f0d7a6ac2b
|
||||
DIST lyx-2.1.3.tar.xz 10778624 SHA256 2fd52e7e5ee372983eb6b0a7f04765cb0df6f8c1f3420081d9f7761acfc75682 SHA512 c2930d0ff1dfb7dc23e07be7141cd50c4fa023f32fc3653745b4f5031460c6fe5acfc955c0af5b3bf9505d7958b0d1e301eefd0a894bd02bb4c3f966f54332db WHIRLPOOL 818bba837ed7e63609c1067e94f3281a9d9ef2049ba1792a010372cb544e6ead8bab0ec1906f083e8fa27f8ae8145c1cf7a4772cf3952caccf5bbd2a2c1026be
|
||||
DIST lyx-2.1.4.tar.xz 10928716 SHA256 d13548cf183f2fc241df8121420933702491a7460c78a0ef6dba0e9e438ef32a SHA512 7547950e3c11e88f0ccf2cacb56709f9722d4cd03a5ee751af4489f6d343e13ee6b4e0ff7b830532572975c6cc9506686ade2afa5093f765d21b4d1b9ee7339d WHIRLPOOL a5d8533902fd5dd5a696645941c532bfe35eeaf76f411798a0aafcd01674e678dd65d2c0a58af09a6739adaf80f821a2676c340a349fca61929edfc5a9389938
|
||||
|
@ -1,2 +1 @@
|
||||
DIST sash-3.7.tar.gz 50337 SHA256 352726adb9736ba5a9b459d5c8a7d7c3b2c36cc99363adccc25a8a991d719c7f SHA512 2bb9ee46cc0518abba9e30be5ddac8b0424fd41dbacddaa0f9417ff29b5be321780537aa3b23b802ffcea1567e39bfd729c30326a7639a06c5b2ad5e6124c391 WHIRLPOOL 4ee6a6f7866a31549b15fc32ce2d3fc2c42de3565816452d2ac72feb0a6025a0c343b41efcf8d6b3b70ca7b222f9c8ce7fa06827ce97a505ad815116bbe5bb83
|
||||
DIST sash-3.8.tar.gz 53049 SHA256 13c4f9a911526949096bf543c21a41149e6b037061193b15ba6b707eea7b6579 SHA512 e544721dbb5d13d2184531a2caa4b90fb29fc360e2b80f64adb2433cbe4e5588171f3567bde03b520fbe7cbd0f3007e0e9c9c41cb16570709b03cedc2dfbe291 WHIRLPOOL a866e254f1beb0b87591875992871b2e223fd72a0386fdff60bf1c6151a29e5d85d0fc72f9af75953a78b5f5b15eb8cc6587b0e2a0c5b6c62b9b08f69d469c5e
|
||||
|
@ -1,45 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-shells/sash/sash-3.7-r3.ebuild,v 1.10 2012/07/08 17:03:32 armin76 Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils toolchain-funcs flag-o-matic
|
||||
|
||||
DESCRIPTION="A small (static) UNIX Shell"
|
||||
HOMEPAGE="http://www.canb.auug.org.au/~dbell/"
|
||||
SRC_URI="http://www.canb.auug.org.au/~dbell/programs/${P}.tar.gz"
|
||||
|
||||
LICENSE="freedist"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
|
||||
IUSE="static"
|
||||
|
||||
DEPEND="
|
||||
static? ( sys-libs/zlib[static-libs] )
|
||||
!static? ( >=sys-libs/zlib-1.2.3 )"
|
||||
RDEPEND="!static? ( ${DEPEND} )"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/sash-3.7-builtin.patch
|
||||
|
||||
sed \
|
||||
-e "s:-O3:${CFLAGS}:" \
|
||||
-i Makefile || die
|
||||
sed \
|
||||
-e 's:linux/ext2_fs.h:ext2fs/ext2_fs.h:g' \
|
||||
-i cmd_chattr.c || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
use static && append-ldflags -static
|
||||
|
||||
emake LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
into /
|
||||
dobin sash
|
||||
doman sash.1
|
||||
dodoc README
|
||||
}
|
@ -1 +1 @@
|
||||
DIST pdfsandwich-0.1.2.tar.bz2 14393 SHA256 db34e184e31fd6978e3021b1d4867491e6d1722515b5ab5b12f096fc58c3cbee SHA512 8e10db274180dad20551b2ad235b01a1ef37ffd8b69f27056fff3b12ab809bf2cba75c3c87645a6a846f68cf3923123b22d7678759310943fb99aa63a5253def WHIRLPOOL 9d60eac993ff048804e6547cee3f968406075520a8a4bcf2cb9599fb8a1d64b72e52f4b2d620075dda693e45807fd58c0dd9e9293a4e9aa3289e4b994c274ff2
|
||||
DIST pdfsandwich-0.1.4.tar.bz2 16401 SHA256 8b82f3ae08000c5cae1ff5a0f6537b0b563befef928e5198255b743a46714af3 SHA512 ee03aea13c72cc5a02136b5d16d2425f685f0b7a9d6fa6cff6c792bd24e6316720dff321b5e8237b949c98c713f39cb8b08b855b76e2a77350927b1ee7943171 WHIRLPOOL d8eb5fd281b1eb3f9e371ee71c486b8e839048f3ab569f8b62644e21ad921692283b2d35dfeb07111f86cf52eeb926da4152fcf58124cca2f96aa05116e8e115
|
||||
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/pdfsandwich/pdfsandwich-0.1.2.ebuild,v 1.1 2014/07/29 13:19:03 tomka Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
DESCRIPTION="generator of sandwich OCR pdf files"
|
||||
HOMEPAGE="http://www.tobias-elze.de/pdfsandwich"
|
||||
SRC_URI="mirror://sourceforge/pdfsandwich/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=app-text/tesseract-3.00
|
||||
media-gfx/exact-image
|
||||
app-text/unpaper
|
||||
app-text/ghostscript-gpl"
|
||||
DEPEND="sys-apps/gawk
|
||||
>=dev-lang/ocaml-3.10[ocamlopt]"
|
||||
|
||||
src_prepare() {
|
||||
sed -i "/^OCAMLOPTFLAGS/s/$/ -ccopt \"\$(CFLAGS) \$(LDFLAGS)\"/" Makefile || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "pdfsandwich relies on the tesseract library for OCR."
|
||||
elog "Consequently language support is determined by tesseract's"
|
||||
elog "language support which in turn is controlled via the LINGUAS"
|
||||
elog "variable in make.conf."
|
||||
}
|
@ -1,237 +0,0 @@
|
||||
Index: configure.ac
|
||||
===================================================================
|
||||
--- configure.ac (revision 822)
|
||||
+++ configure.ac (revision 823)
|
||||
@@ -56,6 +56,8 @@
|
||||
AM_CONDITIONAL(MINGW, false)
|
||||
AM_CONDITIONAL(GRAPHICS_DISABLED, false)
|
||||
|
||||
+
|
||||
+#############################
|
||||
#
|
||||
# Platform specific setup
|
||||
#
|
||||
@@ -75,24 +77,6 @@
|
||||
|
||||
includedir="${includedir}/tesseract"
|
||||
|
||||
-AC_ARG_WITH(extra-includes,
|
||||
- AC_HELP_STRING([--with-extra-includes=DIR],
|
||||
- [Define an additional directory for include files]),
|
||||
- [ if test -d "$withval" ; then
|
||||
- CFLAGS="$CFLAGS -I$withval"
|
||||
- else
|
||||
- AC_MSG_ERROR([Cannot stat directory $withval])
|
||||
- fi ] )
|
||||
-
|
||||
-AC_ARG_WITH(extra-libraries,
|
||||
- AC_HELP_STRING([--with-extra-libraries=DIR],
|
||||
- [Define an additional directory for library files]),
|
||||
- [ if test -d "$withval" ; then
|
||||
- LDFLAGS="$LDFLAGS -L$withval"
|
||||
- else
|
||||
- AC_MSG_ERROR([Cannot stat directory $withval])
|
||||
- fi ] )
|
||||
-
|
||||
AC_MSG_CHECKING(--enable-graphics argument)
|
||||
AC_ARG_ENABLE([graphics],
|
||||
[AC_HELP_STRING([--enable-graphics],[enable graphics (ScrollView) (default)])
|
||||
@@ -208,27 +192,19 @@
|
||||
# ----------------------------------------
|
||||
|
||||
# Define order of compilers
|
||||
-AC_PROG_CXX(cl.exe g++)
|
||||
-# Not needed
|
||||
-# AC_PROG_CC
|
||||
+AC_PROG_CXX(g++)
|
||||
|
||||
AC_PROG_LIBTOOL
|
||||
|
||||
+# ----------------------------------------
|
||||
# Automake configuration
|
||||
# ----------------------------------------
|
||||
|
||||
-# Note: may need to configure automake to use ZIP as a distribution
|
||||
-# format because of an apparent bug with GZIP, which results in bogus
|
||||
-# archives.
|
||||
-# TODO(luc) Resolve this issue.
|
||||
-#AM_INIT_AUTOMAKE(dist-zip)
|
||||
AM_INIT_AUTOMAKE
|
||||
-AM_CONFIG_HEADER(config_auto.h:config/config.h.in)
|
||||
-#AM_PROG_CC_C_O
|
||||
+AC_CONFIG_HEADERS(config_auto.h:config/config.h.in)
|
||||
AM_MAINTAINER_MODE
|
||||
-# Need to tell automake if Visual C++ is being used:
|
||||
-AM_CONDITIONAL(USING_CL, test "x${CC}" = 'xcl.exe' )
|
||||
|
||||
+# ----------------------------------------
|
||||
# Additional checking of compiler characteristics
|
||||
# ----------------------------------------
|
||||
|
||||
@@ -245,108 +221,22 @@
|
||||
# Check where all the following programs are and set
|
||||
# variables accordingly:
|
||||
LT_INIT
|
||||
-# AC_PROG_LN_S
|
||||
-# AC_PATH_PROG(MV, mv)
|
||||
-# AC_PATH_PROG(CP, cp)
|
||||
-# AC_PATH_PROG(RM, rm)
|
||||
-# AC_PATH_PROG(AR, ar)
|
||||
-# AC_PATH_PROG(TOUCH, touch)
|
||||
-# AC_PATH_PROG(SED, sed)
|
||||
-# AC_PATH_PROG(BASH, bash, ,[$PATH:/usr/bin:/util/tools/bin])
|
||||
-# # To use substitution in makefiles, use something like:
|
||||
-# AC_SUBST(BASH)
|
||||
|
||||
-# TODO(luc) Handle documentation. None of the following
|
||||
-# is really needed until then
|
||||
-#
|
||||
-# AC_PROG_DOXYGEN_VERSION(1.3.2,[DOXYGEN_OK=1])
|
||||
-# AC_PATH_PROG(DOT, dot)
|
||||
-# AC_PATH_PROG(LATEX, latex)
|
||||
-# AC_PATH_PROG(DVIPS, dvips)
|
||||
-# AC_PATH_PROG(MAKEINDEX, makeindex)
|
||||
-# AC_PATH_PROG(PDFLATEX, pdflatex)
|
||||
-# AC_PATH_PROG(GZIP, gzip)
|
||||
-#
|
||||
-# if test -z "$DOXYGEN_OK" -o -z "$DOT"; then
|
||||
-# AC_MSG_WARN([------------------------------------
|
||||
-# *** Disabling automatic documentation generation for this
|
||||
-# *** package. Please check that you have 'doxygen' (version
|
||||
-# *** $ac_doxygen_version or later) and 'graphviz' (aka, 'dot')
|
||||
-# *** installed on your system. In addition, to generate
|
||||
-# *** PostScript and PDF documentation, you will need to have
|
||||
-# *** LaTeX and PdfLaTeX respectively. Re-run this configuration
|
||||
-# *** script after you have updated your environment.
|
||||
-# --------------------------------------------------------])
|
||||
-#
|
||||
-# # We have appropriate version of doxygen and dot, so we
|
||||
-# # can generate documentation. It remains to be seen whether
|
||||
-# # we can generate PDF and PostScript documentation..
|
||||
-# else
|
||||
-# GENERATE_DOCUMENTATION="true"
|
||||
-#
|
||||
-# # Determine if PostScript documentation is generated:
|
||||
-# if test -z "$LATEX" -o -z "$DVIPS" -o -z "$MAKEINDEX"; then
|
||||
-# AC_MSG_WARN([Disabling generation of PostScript documentation])
|
||||
-# else
|
||||
-# GENERATE_PS_DOCUMENTATION="true"
|
||||
-# fi
|
||||
-#
|
||||
-# # Determine if PDF documentation is generated:
|
||||
-# if test -z "$PDFLATEX" -o -z "$MAKEINDEX"; then
|
||||
-# AC_MSG_WARN([Disabling generation of PDF documentation])
|
||||
-# else
|
||||
-# GENERATE_PDF_DOCUMENTATION="true"
|
||||
-# fi
|
||||
-# fi
|
||||
-#
|
||||
-# # These substitutions could be inside the 'else'
|
||||
-# # conditionals above, but it is not necessary and would
|
||||
-# # only cause some confusion...
|
||||
-# AC_SUBST(DOXYGEN)
|
||||
-# AC_SUBST(DOT)
|
||||
-# AC_SUBST(LATEX)
|
||||
-# AC_SUBST(DVIPS)
|
||||
-# AC_SUBST(MAKEINDEX)
|
||||
-# AC_SUBST(PDFLATEX)
|
||||
-# AC_SUBST(GZIP)
|
||||
-#
|
||||
-# # Adjust makefiles based on the kind of documentation that
|
||||
-# # is being generated,
|
||||
-# AM_CONDITIONAL(GENERATE_DOCUMENTATION, test -n "$GENERATE_DOCUMENTATION")
|
||||
-# AM_CONDITIONAL(GENERATE_PS_DOCUMENTATION, test -n "$GENERATE_PS_DOCUMENTATION")
|
||||
-# AM_CONDITIONAL(GENERATE_PDF_DOCUMENTATION, test -n "$GENERATE_PDF_DOCUMENTATION")
|
||||
|
||||
-
|
||||
-# Test for GNUWIN32 tools (only useful under windows)
|
||||
-# AC_PATH_GNUWIN32
|
||||
-
|
||||
# ----------------------------------------
|
||||
# C++ related options
|
||||
# ----------------------------------------
|
||||
|
||||
AC_LANG_CPLUSPLUS
|
||||
|
||||
-# Enable --enable-debug or --disable-debug and set
|
||||
-# compile options accordingly. We are supposed to be either
|
||||
-# in debug mode or in optimize mode. Note that in debug mode,
|
||||
-# DEBUG_MODE will be set by this macro
|
||||
-# AC_CXX_OPTIMIZE
|
||||
-# AC_CXX_BOOL
|
||||
-# AC_CXX_TYPENAME
|
||||
-# AC_CXX_STDINCLUDES
|
||||
-# AC_CXX_RPO
|
||||
|
||||
# ----------------------------------------
|
||||
# Check for libraries
|
||||
# ----------------------------------------
|
||||
|
||||
-# This option seems to always add -lm to the link line,
|
||||
-# which causes unnecessary warnings with Visual C++.
|
||||
-# Comment it out for now.
|
||||
-#AC_CHECK_LIB(m,sqrt)
|
||||
AC_SEARCH_LIBS(sem_init,pthread rt)
|
||||
-#AC_CHECK_LIB(pthread,sem_init)
|
||||
|
||||
+
|
||||
# ----------------------------------------
|
||||
# Checks for header files.
|
||||
# ----------------------------------------
|
||||
@@ -356,7 +246,6 @@
|
||||
AC_HEADER_SYS_WAIT
|
||||
AC_CHECK_HEADERS(sys/ipc.h sys/shm.h)
|
||||
AC_CHECK_HEADERS(limits.h malloc.h)
|
||||
-AC_CHECK_HEADERS(allheaders.h)
|
||||
# Enable use of system-defined bool type if available:
|
||||
AC_HEADER_STDBOOL
|
||||
|
||||
@@ -370,27 +259,9 @@
|
||||
# ----------------------------------------
|
||||
|
||||
AC_CHECK_TYPES(wchar_t)
|
||||
-AC_CHECK_TYPES(long long int)
|
||||
AC_CHECK_TYPES(mbstate_t,,,[#include "wchar.h"])
|
||||
|
||||
-#AC_TYPE_MODE_T
|
||||
-#AC_TYPE_OFF_T
|
||||
-AC_TYPE_SIZE_T
|
||||
-#AC_TYPE_PID_T
|
||||
-
|
||||
-
|
||||
# ----------------------------------------
|
||||
-# Checks for library functions.
|
||||
-# ----------------------------------------
|
||||
-
|
||||
-AC_FUNC_MMAP
|
||||
-AC_FUNC_FORK
|
||||
-AC_CHECK_FUNCS(strerror vsnprintf)
|
||||
-AC_CHECK_FUNCS(gethostname)
|
||||
-AC_CHECK_FUNCS(strchr memcpy)
|
||||
-AC_CHECK_FUNCS(acos asin)
|
||||
-
|
||||
-# ----------------------------------------
|
||||
# Test auxilliary packages
|
||||
# ----------------------------------------
|
||||
|
||||
@@ -423,11 +294,6 @@
|
||||
# Final Tasks and Output
|
||||
# ----------------------------------------
|
||||
|
||||
-# Define installation paths
|
||||
-# AC_DEFINE_INSTALL_PATHS
|
||||
-# Redundant with PACKAGE_VERSION - comment out
|
||||
-# AC_DEFINE_UNQUOTED(TESSERACT_VERSION,["${PACKAGE_VERSION}"],[version string])
|
||||
-
|
||||
# Output files
|
||||
AC_CONFIG_FILES([Makefile tesseract.pc])
|
||||
#if test "$enable_gettext" = "yes"; then
|
||||
@@ -470,8 +336,6 @@
|
||||
echo ""
|
||||
echo "Configuration is done."
|
||||
echo "You can now build $PACKAGE_NAME by running:"
|
||||
-# test x$GXX = xyes && \
|
||||
-# echo "% make depend [optional]"
|
||||
echo ""
|
||||
echo "% make"
|
||||
|
@ -1,15 +0,0 @@
|
||||
Index: tesseract.pc.in
|
||||
===================================================================
|
||||
--- tesseract.pc.in (revision 816)
|
||||
+++ tesseract.pc.in (revision 817)
|
||||
@@ -10,6 +10,7 @@
|
||||
Description: An OCR Engine that was developed at HP Labs between 1985 and 1995... and now at Google.
|
||||
URL: https://code.google.com/p/tesseract-ocr
|
||||
Version: @VERSION@
|
||||
-# Requires: lept ## leptonica do not provide lept.pc
|
||||
-Libs: -L${libdir} -ltesseract @LDFLAGS@ @LIBS@
|
||||
-Cflags: -I${includedir} @CFLAGS@ @CPPFLAGS@ @CXXFLAGS@ @DEFS@
|
||||
+# Requires.private: lept
|
||||
+Libs: -L${libdir} -ltesseract
|
||||
+Libs.private: -lpthread -llept
|
||||
+Cflags: -I${includedir}
|
@ -1,106 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/tesseract/tesseract-3.02.ebuild,v 1.4 2014/08/21 11:35:02 armin76 Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
MY_PN="${PN}-ocr"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
URI_PREFIX="http://${MY_PN}.googlecode.com/files"
|
||||
|
||||
inherit eutils autotools versionator
|
||||
|
||||
MY_MINOR=$(get_after_major_version)
|
||||
S="${WORKDIR}/${P}.${MY_MINOR}"
|
||||
|
||||
DESCRIPTION="An OCR Engine that was developed at HP and now at Google"
|
||||
HOMEPAGE="http://code.google.com/p/tesseract-ocr/"
|
||||
SRC_URI="${URI_PREFIX}/${P}.${MY_MINOR}.tar.gz
|
||||
${URI_PREFIX}/${MY_P}.eng.tar.gz
|
||||
doc? ( ${URI_PREFIX}/${MY_P}.${MY_MINOR}-doc-html.tar.gz )
|
||||
linguas_ar? ( ${URI_PREFIX}/${MY_P}.ara.tar.gz )
|
||||
linguas_bg? ( ${URI_PREFIX}/bul.traineddata.gz )
|
||||
linguas_ca? ( ${URI_PREFIX}/cat.traineddata.gz )
|
||||
linguas_chr? ( ${URI_PREFIX}/chr.traineddata.gz )
|
||||
linguas_cs? ( ${URI_PREFIX}/ces.traineddata.gz )
|
||||
linguas_de? ( ${URI_PREFIX}/deu.traineddata.gz
|
||||
${URI_PREFIX}/deu-frak.traineddata.gz )
|
||||
linguas_da? ( ${URI_PREFIX}/dan.traineddata.gz
|
||||
${URI_PREFIX}/dan-frak.traineddata.gz )
|
||||
linguas_el? ( ${URI_PREFIX}/ell.traineddata.gz )
|
||||
linguas_es? ( ${URI_PREFIX}/spa.traineddata.gz )
|
||||
linguas_fi? ( ${URI_PREFIX}/fin.traineddata.gz )
|
||||
linguas_fr? ( ${URI_PREFIX}/fra.traineddata.gz )
|
||||
linguas_he? ( ${URI_PREFIX}/${MY_P}.heb.tar.gz
|
||||
${URI_PREFIX}/${MY_PN}-3.01.heb-com.tar.gz )
|
||||
linguas_hi? ( ${URI_PREFIX}/${MY_P}.hin.tar.gz )
|
||||
linguas_hu? ( ${URI_PREFIX}/hun.traineddata.gz )
|
||||
linguas_id? ( ${URI_PREFIX}/ind.traineddata.gz )
|
||||
linguas_it? ( ${URI_PREFIX}/ita.traineddata.gz )
|
||||
linguas_jp? ( ${URI_PREFIX}/jpn.traineddata.gz )
|
||||
linguas_ko? ( ${URI_PREFIX}/kor.traineddata.gz )
|
||||
linguas_lt? ( ${URI_PREFIX}/lit.traineddata.gz )
|
||||
linguas_lv? ( ${URI_PREFIX}/lav.traineddata.gz )
|
||||
linguas_nl? ( ${URI_PREFIX}/nld.traineddata.gz )
|
||||
linguas_no? ( ${URI_PREFIX}/nor.traineddata.gz )
|
||||
linguas_pl? ( ${URI_PREFIX}/pol.traineddata.gz )
|
||||
linguas_pt? ( ${URI_PREFIX}/por.traineddata.gz )
|
||||
linguas_ro? ( ${URI_PREFIX}/ron.traineddata.gz )
|
||||
linguas_ru? ( ${URI_PREFIX}/rus.traineddata.gz )
|
||||
linguas_sk? ( ${URI_PREFIX}/slk.traineddata.gz
|
||||
${URI_PREFIX}/${MY_PN}-3.01.slk-frak.tar.gz )
|
||||
linguas_sl? ( ${URI_PREFIX}/slv.traineddata.gz )
|
||||
linguas_sr? ( ${URI_PREFIX}/srp.traineddata.gz )
|
||||
linguas_sv? ( ${URI_PREFIX}/swe.traineddata.gz
|
||||
${URI_PREFIX}/swe-frak.traineddata.gz )
|
||||
linguas_th? ( ${URI_PREFIX}/${MY_P}.tha.tar.gz )
|
||||
linguas_tl? ( ${URI_PREFIX}/tgl.traineddata.gz )
|
||||
linguas_tr? ( ${URI_PREFIX}/tur.traineddata.gz )
|
||||
linguas_uk? ( ${URI_PREFIX}/ukr.traineddata.gz )
|
||||
linguas_vi? ( ${URI_PREFIX}/vie.traineddata.gz )
|
||||
linguas_zh_CN? ( ${URI_PREFIX}/chi_sim.traineddata.gz )
|
||||
linguas_zh_TW? ( ${URI_PREFIX}/chi_tra.traineddata.gz )
|
||||
osd? ( ${URI_PREFIX}/${MY_PN}-3.01.osd.tar.gz )
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86"
|
||||
|
||||
IUSE="doc examples jpeg png tiff -webp +scrollview linguas_ar linguas_bg linguas_ca linguas_chr linguas_cs linguas_de linguas_da linguas_el linguas_es linguas_fi linguas_fr linguas_he linguas_hi linguas_hu linguas_id linguas_it linguas_jp linguas_ko linguas_lt linguas_lv linguas_nl linguas_no linguas_pl linguas_pt linguas_ro linguas_ru linguas_sk linguas_sl linguas_sr linguas_sv linguas_th linguas_tl linguas_tr linguas_uk linguas_vi linguas_zh_CN linguas_zh_TW osd"
|
||||
|
||||
DEPEND="media-libs/leptonica[zlib,tiff?,jpeg?,png?,webp?]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/tesseract-2.04-gcc47.patch"
|
||||
epatch "${FILESDIR}/tesseract-3.02-automake-compat.patch"
|
||||
epatch_user
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable scrollview graphics) \
|
||||
--disable-dependency-tracking
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
dodoc AUTHORS ChangeLog NEWS README ReleaseNotes
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins eurotext.tif phototest.tif
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
dohtml -r "${WORKDIR}"/"${MY_PN}"/doc/html/*
|
||||
fi
|
||||
|
||||
# install language files
|
||||
insinto /usr/share/tessdata
|
||||
find "${WORKDIR}" -maxdepth 1 -type f -name "*.traineddata" -exec doins '{}' +
|
||||
doins "${WORKDIR}"/"${MY_PN}"/tessdata/*
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST go-eapache-queue-1.0.2.tar.gz 3262 SHA256 f5f011738cca8bca8aa6957c55cd483d74ccc37f07a9f5b467769ad6ede2a3a9 SHA512 6214822ca9bf9625acf62818205ba1c964e72271a008d99f827a0072c1a48bc5aefee8724c7fc1ea45450084625570f2625443a70eb26c6b0d5032b4811dd5b0 WHIRLPOOL 0676538eefe0270b3a93c00957e6f6a9db717ba4770c176b845701954c1daf1a4c1577207c037933689dac4b6199c75b190b09b4362fd2eb55b198f64139d001
|
@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-go/go-eapache-queue/go-eapache-queue-1.0.2.ebuild,v 1.1 2015/07/30 21:09:09 zmedico Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
EGO_SRC=github.com/eapache/queue
|
||||
EGO_PN=${EGO_SRC}/...
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit golang-vcs
|
||||
else
|
||||
KEYWORDS="~amd64"
|
||||
SRC_URI="https://${EGO_SRC}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
fi
|
||||
inherit golang-build
|
||||
|
||||
DESCRIPTION="Fast golang queue using ring-buffer"
|
||||
HOMEPAGE="https://${EGO_SRC}"
|
||||
LICENSE="MIT"
|
||||
SLOT="0/${PV}"
|
||||
IUSE=""
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
if [[ ${PV} != *9999* ]]; then
|
||||
src_unpack() {
|
||||
local f
|
||||
|
||||
for f in ${A}
|
||||
do
|
||||
case "${f}" in
|
||||
*.tar|*.tar.gz|*.tar.bz2|*.tar.xz)
|
||||
local destdir=${WORKDIR}/${P}/src/${EGO_SRC}
|
||||
|
||||
debug-print "${FUNCNAME}: unpacking ${f} to ${destdir}"
|
||||
|
||||
# XXX: check whether the directory structure inside is
|
||||
# fine? i.e. if the tarball has actually a parent dir.
|
||||
mkdir -p "${destdir}" || die
|
||||
tar -C "${destdir}" -x --strip-components 1 \
|
||||
-f "${DISTDIR}/${f}" || die
|
||||
;;
|
||||
*)
|
||||
debug-print "${FUNCNAME}: falling back to unpack for ${f}"
|
||||
|
||||
# fall back to the default method
|
||||
unpack "${f}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
fi
|
||||
|
||||
src_install() {
|
||||
rm -rf src/${EGO_SRC}/.git* || die
|
||||
golang-build_src_install
|
||||
}
|
@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-go/go-eapache-queue/go-eapache-queue-9999.ebuild,v 1.1 2015/07/30 21:09:09 zmedico Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
EGO_SRC=github.com/eapache/queue
|
||||
EGO_PN=${EGO_SRC}/...
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit golang-vcs
|
||||
else
|
||||
KEYWORDS="~amd64"
|
||||
SRC_URI="https://${EGO_SRC}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
fi
|
||||
inherit golang-build
|
||||
|
||||
DESCRIPTION="Fast golang queue using ring-buffer"
|
||||
HOMEPAGE="https://${EGO_SRC}"
|
||||
LICENSE="MIT"
|
||||
SLOT="0/${PV}"
|
||||
IUSE=""
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
if [[ ${PV} != *9999* ]]; then
|
||||
src_unpack() {
|
||||
local f
|
||||
|
||||
for f in ${A}
|
||||
do
|
||||
case "${f}" in
|
||||
*.tar|*.tar.gz|*.tar.bz2|*.tar.xz)
|
||||
local destdir=${WORKDIR}/${P}/src/${EGO_SRC}
|
||||
|
||||
debug-print "${FUNCNAME}: unpacking ${f} to ${destdir}"
|
||||
|
||||
# XXX: check whether the directory structure inside is
|
||||
# fine? i.e. if the tarball has actually a parent dir.
|
||||
mkdir -p "${destdir}" || die
|
||||
tar -C "${destdir}" -x --strip-components 1 \
|
||||
-f "${DISTDIR}/${f}" || die
|
||||
;;
|
||||
*)
|
||||
debug-print "${FUNCNAME}: falling back to unpack for ${f}"
|
||||
|
||||
# fall back to the default method
|
||||
unpack "${f}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
fi
|
||||
|
||||
src_install() {
|
||||
rm -rf src/${EGO_SRC}/.git* || die
|
||||
golang-build_src_install
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>zmedico@gentoo.org</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">eapache/queue</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1 @@
|
||||
DIST sarama-1.4.3.tar.gz 86096 SHA256 2e9ad67fd128b139e4a55532f07dff21d9705884ac6063b6f494a3b6db728688 SHA512 6117d08b1f7dc7feebacee60a3672d24ec909417a40dd686fdba9740304522c74d59f866ab37a90fdbd137bb491175d2cdf2694129f2da5d8c10dff97efb062b WHIRLPOOL a829d60790820d90179e9b30dcff1e4eaab5caecdaba072945a7223a8a2697ebb40abd4a7179fff50cd1598ac6b85adeb74c7d9c2464ead9acc906913b24d0c9
|
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>zmedico@gentoo.org</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">Shopify/sarama</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,68 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-go/sarama/sarama-1.4.3.ebuild,v 1.1 2015/07/30 21:17:18 zmedico Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
EGO_SRC=github.com/Shopify/${PN}
|
||||
EGO_PN=${EGO_SRC}/...
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit golang-vcs
|
||||
else
|
||||
KEYWORDS="~amd64"
|
||||
SRC_URI="https://${EGO_SRC}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
fi
|
||||
inherit golang-build
|
||||
|
||||
DESCRIPTION="Sarama is a Go library for Apache Kafka"
|
||||
HOMEPAGE="https://${EGO_SRC}"
|
||||
LICENSE="MIT"
|
||||
SLOT="0/${PV}"
|
||||
IUSE="test"
|
||||
DEPEND="dev-go/go-eapache-queue
|
||||
dev-go/go-resiliency
|
||||
dev-go/go-snappy
|
||||
test? ( dev-go/go-spew )"
|
||||
RDEPEND=""
|
||||
|
||||
if [[ ${PV} != *9999* ]]; then
|
||||
src_unpack() {
|
||||
local f
|
||||
|
||||
for f in ${A}
|
||||
do
|
||||
case "${f}" in
|
||||
*.tar|*.tar.gz|*.tar.bz2|*.tar.xz)
|
||||
local destdir=${WORKDIR}/${P}/src/${EGO_SRC}
|
||||
|
||||
debug-print "${FUNCNAME}: unpacking ${f} to ${destdir}"
|
||||
|
||||
# XXX: check whether the directory structure inside is
|
||||
# fine? i.e. if the tarball has actually a parent dir.
|
||||
mkdir -p "${destdir}" || die
|
||||
tar -C "${destdir}" -x --strip-components 1 \
|
||||
-f "${DISTDIR}/${f}" || die
|
||||
;;
|
||||
*)
|
||||
debug-print "${FUNCNAME}: falling back to unpack for ${f}"
|
||||
|
||||
# fall back to the default method
|
||||
unpack "${f}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
fi
|
||||
|
||||
src_prepare() {
|
||||
# avoid toxiproxy dependency
|
||||
rm src/${EGO_SRC}/functional*_test.go || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
rm -rf src/${EGO_SRC}/.git* || die
|
||||
golang-build_src_install
|
||||
rm bin/http_server || die
|
||||
dobin bin/*
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-go/sarama/sarama-9999.ebuild,v 1.1 2015/07/30 21:17:18 zmedico Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
EGO_SRC=github.com/Shopify/${PN}
|
||||
EGO_PN=${EGO_SRC}/...
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit golang-vcs
|
||||
else
|
||||
KEYWORDS="~amd64"
|
||||
SRC_URI="https://${EGO_SRC}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
fi
|
||||
inherit golang-build
|
||||
|
||||
DESCRIPTION="Sarama is a Go library for Apache Kafka"
|
||||
HOMEPAGE="https://${EGO_SRC}"
|
||||
LICENSE="MIT"
|
||||
SLOT="0/${PV}"
|
||||
IUSE="test"
|
||||
DEPEND="dev-go/go-eapache-queue
|
||||
dev-go/go-resiliency
|
||||
dev-go/go-snappy
|
||||
test? ( dev-go/go-spew )"
|
||||
RDEPEND=""
|
||||
|
||||
if [[ ${PV} != *9999* ]]; then
|
||||
src_unpack() {
|
||||
local f
|
||||
|
||||
for f in ${A}
|
||||
do
|
||||
case "${f}" in
|
||||
*.tar|*.tar.gz|*.tar.bz2|*.tar.xz)
|
||||
local destdir=${WORKDIR}/${P}/src/${EGO_SRC}
|
||||
|
||||
debug-print "${FUNCNAME}: unpacking ${f} to ${destdir}"
|
||||
|
||||
# XXX: check whether the directory structure inside is
|
||||
# fine? i.e. if the tarball has actually a parent dir.
|
||||
mkdir -p "${destdir}" || die
|
||||
tar -C "${destdir}" -x --strip-components 1 \
|
||||
-f "${DISTDIR}/${f}" || die
|
||||
;;
|
||||
*)
|
||||
debug-print "${FUNCNAME}: falling back to unpack for ${f}"
|
||||
|
||||
# fall back to the default method
|
||||
unpack "${f}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
fi
|
||||
|
||||
src_prepare() {
|
||||
# avoid toxiproxy dependency
|
||||
rm src/${EGO_SRC}/functional*_test.go || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
rm -rf src/${EGO_SRC}/.git* || die
|
||||
golang-build_src_install
|
||||
rm bin/http_server || die
|
||||
dobin bin/*
|
||||
}
|
@ -1,59 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/nekohtml/nekohtml-1.9.18.ebuild,v 1.5 2014/10/18 14:31:43 ago Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc examples source test"
|
||||
|
||||
inherit java-pkg-2 java-ant-2 eutils
|
||||
|
||||
DESCRIPTION="A simple HTML scanner and tag balancer using standard XML interfaces"
|
||||
|
||||
HOMEPAGE="http://nekohtml.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
LICENSE="Apache-2.0"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86"
|
||||
|
||||
COMMON_DEP=">=dev-java/xerces-2.7"
|
||||
DEPEND=">=virtual/jdk-1.4
|
||||
test? (
|
||||
dev-java/junit:0
|
||||
dev-java/ant-junit:0
|
||||
)
|
||||
${COMMON_DEP}"
|
||||
RDEPEND=">=virtual/jre-1.4
|
||||
${COMMON_DEP}"
|
||||
|
||||
JAVA_ANT_CLASSPATH_TAGS="${JAVA_ANT_CLASSPATH_TAGS} taskdef"
|
||||
JAVA_ANT_REWRITE_CLASSPATH="yes"
|
||||
|
||||
EANT_GENTOO_CLASSPATH="xerces-2"
|
||||
EANT_TEST_GENTOO_CLASSPATH="ant-junit,junit,xerces-2"
|
||||
|
||||
# Do not generate docs, use bundled.
|
||||
EANT_DOC_TARGET=""
|
||||
|
||||
src_prepare() {
|
||||
find . -iname '*.jar' -delete
|
||||
|
||||
epatch "${FILESDIR}"/${P}-remove-obsolete-xerces-bridges.patch
|
||||
}
|
||||
|
||||
src_test() {
|
||||
java-pkg-2_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar build/lib/${PN}.jar
|
||||
|
||||
if use doc; then
|
||||
java-pkg_dojavadoc --symlink javadoc doc/javadoc
|
||||
dohtml -r doc/*
|
||||
fi
|
||||
|
||||
use source && java-pkg_dosrc src/org
|
||||
use examples && java-pkg_doexamples src/sample
|
||||
}
|
@ -1,51 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/nekohtml/nekohtml-1.9.6.ebuild,v 1.7 2014/08/10 20:21:47 slyfox Exp $
|
||||
|
||||
JAVA_PKG_IUSE="doc examples source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2 eutils
|
||||
|
||||
DESCRIPTION="A simple HTML scanner and tag balancer using standard XML interfaces"
|
||||
|
||||
HOMEPAGE="http://nekohtml.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
LICENSE="Apache-2.0"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86"
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEP=">=dev-java/xerces-2.7"
|
||||
DEPEND=">=virtual/jdk-1.4
|
||||
${COMMON_DEP}"
|
||||
RDEPEND=">=virtual/jre-1.4
|
||||
${COMMON_DEP}"
|
||||
|
||||
JAVA_ANT_CLASSPATH_TAGS="${JAVA_ANT_CLASSPATH_TAGS} taskdef"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
java-ant_rewrite-classpath
|
||||
rm -v lib/*.jar *.jar || die
|
||||
java-pkg_jar-from --into lib xerces-2
|
||||
}
|
||||
|
||||
EANT_DOC_TARGET=""
|
||||
|
||||
src_test() {
|
||||
EANT_GENTOO_CLASSPATH="ant-core,xerces-2" eant test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar build/lib/${PN}.jar
|
||||
|
||||
if use doc; then
|
||||
java-pkg_dojavadoc --symlink javadoc doc/javadoc
|
||||
dohtml doc/*
|
||||
fi
|
||||
|
||||
use source && java-pkg_dosrc ./src/org
|
||||
use examples && java-pkg_doexamples src/sample
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST xalan-j_2_7_1-src.tar.gz 6284437 SHA256 fa52aa629bb882335d45d67401d270c3f21b5131aaea005ac0d4590f2ce8b043 SHA512 f02f684cc5fa178d093286ac3a98156b8f293501d5e53240a79d47a9f3ec6ac895683f80f266c1baebca371cecd547957dcf71ce31ff71d31585b65c7f6ac2dd WHIRLPOOL 1574a03116773c664a45a3f2597b19ade54ba33f373d5f872d53565611100f8732255d9701bf789c8af32339c0935ea24106dd0b2662fa642deb5ca03d243234
|
||||
DIST xalan-j_2_7_2-src.tar.gz 8416261 SHA256 5c184ad2984973cc19783c7f9339c28a210cca724b25b0d706f1e310627adb98 SHA512 2f1fa105b3cb8082594e3121a245464e1b7c15464b1ead2d10e306e51ef61ded5d7fcd70c034fa46f41c4a8c14316e376cc14d8045c8aadfce80f2e4bd1b61d8 WHIRLPOOL 388545a97f230183c91896738bef3f9ae8bbf2beb24f02bece79a8e76351b8c2f16edf83fd6084896262cdfbc412a550695579c4b3b4a07d17714eb26a94fbb0
|
||||
|
@ -1,55 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/xalan-serializer/xalan-serializer-2.7.1.ebuild,v 1.12 2015/07/11 09:22:42 chewi Exp $
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2 eutils versionator
|
||||
|
||||
MY_PN="xalan-j"
|
||||
MY_PV="$(replace_all_version_separators _)"
|
||||
MY_P="${MY_PN}_${MY_PV}"
|
||||
DESCRIPTION="DOM Level 3 serializer from Apache Xalan, shared by Xalan and Xerces"
|
||||
HOMEPAGE="http://xml.apache.org/xalan-j/index.html"
|
||||
SRC_URI="mirror://apache/xml/${MY_PN}/source/${MY_P}-src.tar.gz"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEP="=dev-java/xml-commons-external-1.3*"
|
||||
RDEPEND=">=virtual/jre-1.4
|
||||
${COMMON_DEP}"
|
||||
DEPEND=">=virtual/jdk-1.4
|
||||
${COMMON_DEP}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
|
||||
# kill all non-serializer sources to ease javadocs and dosrc
|
||||
cd src/org/apache || die
|
||||
mv xml/serializer "${T}/" || die "failed to mv to temp"
|
||||
rm -rf ./* || die
|
||||
mkdir xml || die
|
||||
mv "${T}/serializer" xml/ || die "failed to mv from temp"
|
||||
|
||||
# kill bundled jars and packed xml-commons-external sources
|
||||
cd "${S}"
|
||||
rm -v lib/*.jar tools/*.jar src/*.tar.gz || die
|
||||
|
||||
cd lib
|
||||
java-pkg_jar-from xml-commons-external-1.3 xml-apis.jar
|
||||
}
|
||||
|
||||
EANT_BUILD_TARGET="serializer.jar"
|
||||
EANT_DOC_TARGET="serializer.javadocs"
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar build/serializer.jar
|
||||
|
||||
use doc && java-pkg_dojavadoc build/docs/apidocs
|
||||
use source && java-pkg_dosrc src/org
|
||||
}
|
@ -1,4 +1,2 @@
|
||||
DIST xalan-j_2_7_1-bin.zip 17336979 SHA256 725620850d990f23009619471341c2beb2c97065b46321a3b08c0cebb8dffcb1 SHA512 3a29aea5b0444b33535ada7f3be3b468d22089d269689f9fd5ec4c1c80a3fcf831b5c9fb5aaa6830762309152aaf44b1b6e26efadb7d8b549d63fccfaa6240f4 WHIRLPOOL 9e37c2743cb63372db5580554b334ce39d9b7969c8118e5d44c1cf9eb46b133c7329c15514d6ee0c96152ffca39016386483d115beefcd7a4a20914109784561
|
||||
DIST xalan-j_2_7_1-src.tar.gz 6284437 SHA256 fa52aa629bb882335d45d67401d270c3f21b5131aaea005ac0d4590f2ce8b043 SHA512 f02f684cc5fa178d093286ac3a98156b8f293501d5e53240a79d47a9f3ec6ac895683f80f266c1baebca371cecd547957dcf71ce31ff71d31585b65c7f6ac2dd WHIRLPOOL 1574a03116773c664a45a3f2597b19ade54ba33f373d5f872d53565611100f8732255d9701bf789c8af32339c0935ea24106dd0b2662fa642deb5ca03d243234
|
||||
DIST xalan-j_2_7_2-bin.zip 17740075 SHA256 6d20d522c2a7f5ee8baa65d43934a47a4aaadd604b9020275c76030df171aae5 SHA512 ae2be0bfc5e794b159c2d16718275a6ce6e8f63d681e2d13875f233d334a37aba872206c6c1f70565698ceaf4c66261c7df6db6c524e6e8da5dafe2f17cefddf WHIRLPOOL 8a4265e305b49526eddb71e522f2b5d1a64580d44915f920bf8be29fa48fd436a518229c01339c2f34bb92f6e9076d9050809f04485ded16eafd69b8f7b93095
|
||||
DIST xalan-j_2_7_2-src.tar.gz 8416261 SHA256 5c184ad2984973cc19783c7f9339c28a210cca724b25b0d706f1e310627adb98 SHA512 2f1fa105b3cb8082594e3121a245464e1b7c15464b1ead2d10e306e51ef61ded5d7fcd70c034fa46f41c4a8c14316e376cc14d8045c8aadfce80f2e4bd1b61d8 WHIRLPOOL 388545a97f230183c91896738bef3f9ae8bbf2beb24f02bece79a8e76351b8c2f16edf83fd6084896262cdfbc412a550695579c4b3b4a07d17714eb26a94fbb0
|
||||
|
@ -1,88 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/xalan/xalan-2.7.1.ebuild,v 1.13 2015/07/11 09:22:38 chewi Exp $
|
||||
|
||||
EAPI=1
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2 eutils versionator
|
||||
|
||||
MY_PN="${PN}-j"
|
||||
MY_PV="$(replace_all_version_separators _)"
|
||||
MY_P="${MY_PN}_${MY_PV}"
|
||||
SRC_DIST="${MY_P}-src.tar.gz"
|
||||
BIN_DIST="${MY_P}-bin.zip"
|
||||
DESCRIPTION="Apache's XSLT processor for transforming XML documents into HTML, text, or other XML document types"
|
||||
HOMEPAGE="http://xml.apache.org/xalan-j/index.html"
|
||||
SRC_URI="mirror://apache/xml/${MY_PN}/source/${SRC_DIST}
|
||||
doc? ( mirror://apache/xml/${MY_PN}/binaries/${BIN_DIST} )"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc source"
|
||||
COMMON_DEP="
|
||||
dev-java/javacup:0
|
||||
dev-java/bcel:0
|
||||
dev-java/xerces:2
|
||||
dev-java/xml-commons-external:1.3
|
||||
~dev-java/xalan-serializer-${PV}"
|
||||
RDEPEND=">=virtual/jre-1.4
|
||||
${COMMON_DEP}"
|
||||
DEPEND=">=virtual/jdk-1.4
|
||||
doc? ( app-arch/unzip )
|
||||
${COMMON_DEP}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_unpack() {
|
||||
unpack "${SRC_DIST}"
|
||||
if use doc; then
|
||||
mkdir bin || die
|
||||
cd bin
|
||||
unpack ${BIN_DIST} || die
|
||||
cd ..
|
||||
fi
|
||||
cd "${S}"
|
||||
|
||||
# disable building of serializer.jar
|
||||
sed -i -e 's/depends="prepare,serializer.jar"/depends="prepare"/' \
|
||||
build.xml || die "sed build.xml failed"
|
||||
|
||||
# remove bundled jars
|
||||
rm -v lib/*.jar tools/*.jar || die
|
||||
cd lib
|
||||
java-pkg_jar-from xml-commons-external-1.3 xml-apis.jar
|
||||
java-pkg_jar-from xerces-2 xercesImpl.jar
|
||||
java-pkg_jar-from javacup javacup.jar java_cup.jar
|
||||
java-pkg_jar-from javacup javacup.jar runtime.jar
|
||||
java-pkg_jar-from bcel bcel.jar BCEL.jar
|
||||
|
||||
cd "${S}"
|
||||
mkdir build && cd build
|
||||
java-pkg_jar-from xalan-serializer serializer.jar
|
||||
}
|
||||
|
||||
# When version bumping Xalan make sure that the installed jar
|
||||
# does not bundle .class files from dependencies
|
||||
src_compile() {
|
||||
eant jar \
|
||||
-Dxsltc.bcel_jar.not_needed=true \
|
||||
-Dxsltc.runtime_jar.not_needed=true \
|
||||
-Dxsltc.regexp_jar.not_needed=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar build/${PN}.jar
|
||||
# installs symlinks to the file in /usr/share/xalan-serializer
|
||||
java-pkg_dojar build/serializer.jar
|
||||
# and records it to package.env as if it belongs to this one's
|
||||
# classpath, for maximum possible backward compatibility
|
||||
java-pkg_regjar $(java-pkg_getjar xalan-serializer serializer.jar)
|
||||
|
||||
java-pkg_dolauncher ${PN} --main org.apache.xalan.xslt.Process
|
||||
dohtml readme.html || die
|
||||
if use doc; then
|
||||
java-pkg_dohtml -r "${WORKDIR}"/bin/${MY_P}/docs/* || die
|
||||
fi
|
||||
use source && java-pkg_dosrc src/org
|
||||
}
|
@ -0,0 +1,115 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ocaml/ocaml-4.02.3.ebuild,v 1.1 2015/07/31 08:44:59 aballier Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit flag-o-matic eutils multilib versionator toolchain-funcs
|
||||
|
||||
PATCHLEVEL="7"
|
||||
MY_P="${P/_/+}"
|
||||
DESCRIPTION="Fast modern type-inferring functional programming language descended from the ML family"
|
||||
HOMEPAGE="http://www.ocaml.org/"
|
||||
SRC_URI="http://caml.inria.fr/pub/distrib/ocaml-$(get_version_component_range 1-2)/${MY_P}.tar.xz
|
||||
mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
|
||||
|
||||
LICENSE="QPL-1.0 LGPL-2"
|
||||
# Everytime ocaml is updated to a new version, everything ocaml must be rebuilt,
|
||||
# so here we go with the subslot.
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-fbsd ~x86-linux"
|
||||
IUSE="emacs latex ncurses +ocamlopt X xemacs"
|
||||
|
||||
RDEPEND="
|
||||
ncurses? ( sys-libs/ncurses )
|
||||
X? ( x11-libs/libX11 x11-proto/xproto )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
PDEPEND="emacs? ( app-emacs/ocaml-mode )
|
||||
xemacs? ( app-xemacs/ocaml )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
pkg_setup() {
|
||||
# dev-lang/ocaml creates its own objects but calls gcc for linking, which will
|
||||
# results in relocations if gcc wants to create a PIE executable
|
||||
if gcc-specs-pie ; then
|
||||
append-ldflags -nopie
|
||||
ewarn "Ocaml generates its own native asm, you're using a PIE compiler"
|
||||
ewarn "We have appended -nopie to ocaml build options"
|
||||
ewarn "because linking an executable with pie while the objects are not pic will not work"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
export LC_ALL=C
|
||||
local myconf=""
|
||||
|
||||
# Causes build failures because it builds some programs with -pg,
|
||||
# bug #270920
|
||||
filter-flags -fomit-frame-pointer
|
||||
# Bug #285993
|
||||
filter-mfpmath sse
|
||||
|
||||
# It doesn't compile on alpha without this LDFLAGS
|
||||
use alpha && append-ldflags "-Wl,--no-relax"
|
||||
|
||||
use ncurses || myconf="${myconf} -no-curses"
|
||||
use X || myconf="${myconf} -no-graph"
|
||||
|
||||
# ocaml uses a home-brewn configure script, preventing it to use econf.
|
||||
RAW_LDFLAGS="$(raw-ldflags)" ./configure \
|
||||
--prefix "${EPREFIX}"/usr \
|
||||
--bindir "${EPREFIX}"/usr/bin \
|
||||
--target-bindir "${EPREFIX}"/usr/bin \
|
||||
--libdir "${EPREFIX}"/usr/$(get_libdir)/ocaml \
|
||||
--mandir "${EPREFIX}"/usr/share/man \
|
||||
-target "${CHOST}" \
|
||||
-host "${CBUILD}" \
|
||||
-cc "$(tc-getCC)" \
|
||||
-as "$(tc-getAS)" \
|
||||
-aspp "$(tc-getCC) -c" \
|
||||
-partialld "$(tc-getLD) -r" \
|
||||
--with-pthread ${myconf} || die "configure failed!"
|
||||
|
||||
# http://caml.inria.fr/mantis/view.php?id=4698
|
||||
export CCLINKFLAGS="${LDFLAGS}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake world
|
||||
|
||||
# Native code generation can be disabled now
|
||||
if use ocamlopt ; then
|
||||
# bug #279968
|
||||
emake opt
|
||||
emake opt.opt
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake BINDIR="${ED}"/usr/bin \
|
||||
LIBDIR="${ED}"/usr/$(get_libdir)/ocaml \
|
||||
MANDIR="${ED}"/usr/share/man \
|
||||
install
|
||||
|
||||
# Symlink the headers to the right place
|
||||
dodir /usr/include
|
||||
dosym /usr/$(get_libdir)/ocaml/caml /usr/include/caml
|
||||
|
||||
dodoc Changes INSTALL README
|
||||
|
||||
# Create and envd entry for latex input files
|
||||
if use latex ; then
|
||||
echo "TEXINPUTS=${EPREFIX}/usr/$(get_libdir)/ocaml/ocamldoc:" > "${T}"/99ocamldoc
|
||||
doenvd "${T}"/99ocamldoc
|
||||
fi
|
||||
|
||||
# Install ocaml-rebuild portage set
|
||||
insinto /usr/share/portage/config/sets
|
||||
doins "${FILESDIR}/ocaml.conf"
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST libical-0.48.tar.gz 1173620 SHA256 2ae78b0757f0dd13431acf42a9a8d038339fd4767fd5134e650bf60ee0b4dff0 SHA512 d48b4b5ba78504ec81989b0ca00cac4130ece7e6363af5a0220871b6ad36835c5787a2f17fc871ef51f5950b977be0b87a2e43684ccc7396b0511424e9289d4b WHIRLPOOL f0ecea10bd5dcf18c92da771d65c051caa11d87990cfdaf708e05ddd6408965337f02e329eca73c5ed41ea384547c4f03a1498d459b1b790b9e8b4c20df79eae
|
||||
DIST libical-1.0.1.tar.gz 720618 SHA256 7d5f613454ec6c7d1bcfb441c919215be53292aa15cd1cb14249d1413d6c610c SHA512 efce88c73352fc34e9f7eda2234bdb593e917b33d1373cc6e6a21a72db1b14f2ed72976d6084dddcd8f07b08a15d5f04370bc825695d2fd40cc7b8488a7a977f WHIRLPOOL b9b4aa3fe0287a5394a8b23a1c3c810059554f6cce396b98f383df9950f984e0d18961086ecbdeb1c099ca6c63f68ceb2be08a9471817e0554ecc6e7fce06347
|
||||
|
@ -1 +1,2 @@
|
||||
DIST ocaml-mysql-1.1.1.tar.gz 119676 SHA256 f896fa101a05d81b85af8122fe1c2809008a5e5fdca00f9ceeb7eec356369e3a SHA512 a57e69bbde928aa15e4200cf08fe4504450ae95afbec96fab03412708986a628463acaadb1b66c8955baa0c8c8c5260ebeb2e961b907a056749c6546e006988f WHIRLPOOL dbc1ef77b1cb38002a852665561ff69234117d2c241a3d75769e7217b0e7fe40b7474be3da2781a9d28729c46274dab3d79a201b53320b4ce0140b2ea1492d5a
|
||||
DIST ocaml-mysql-1.2.0.tar.gz 99236 SHA256 6eb2c218c9a16b3c92ba4e8ecb91dbf34ef221623a0f88c29eb84511dd0b9dff SHA512 d8a45e4df63648b8481faee40e614840044b4d4c41d704cead2bf66e794140908df23d1f960bac39a366dad8cba39797225f25ea598d46801f9a9f48c54eaae3 WHIRLPOOL cb4e9f695ac5ae1e7edc0f6b25f3f5c74597d1d2c598f2ab721a9f6868e036b9d3c247225d406eed6b35b8bc31c02f0a35292925f1a8208c99dc3cc5256b2bbb
|
||||
|
@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocaml-mysql/ocaml-mysql-1.2.0.ebuild,v 1.1 2015/07/31 08:38:25 aballier Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit findlib eutils
|
||||
|
||||
IUSE="+ocamlopt"
|
||||
|
||||
DESCRIPTION="A package for ocaml that provides access to mysql databases"
|
||||
SRC_URI="https://forge.ocamlcore.org/frs/download.php/1500/${P}.tar.gz"
|
||||
HOMEPAGE="http://ocaml-mysql.forge.ocamlcore.org/"
|
||||
|
||||
DEPEND=">=dev-lang/ocaml-3.10.2:=[ocamlopt?]
|
||||
sys-libs/zlib
|
||||
>=virtual/mysql-4.0"
|
||||
|
||||
RDEPEND="$DEPEND"
|
||||
|
||||
SLOT="0/${PV}"
|
||||
LICENSE="LGPL-2"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
|
||||
src_compile()
|
||||
{
|
||||
emake all
|
||||
if use ocamlopt; then
|
||||
emake opt
|
||||
fi
|
||||
}
|
||||
|
||||
src_install()
|
||||
{
|
||||
findlib_src_preinst
|
||||
emake install
|
||||
|
||||
dodoc CHANGES README VERSION || die
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST bandit-0.12.0.tar.gz 65558 SHA256 3c147b507696f3a74a5cf3581cc3bb65a63df454fcf24db28c3d1baa765a3b04 SHA512 ef1d80f2ca09d427e6d48f983d696fb92eb12184fbdc13dfb170a73c5935f56f7e6bf3b4cf4d211598f884592e6fe2ca33f6d33732cf12e740f74d43ffe78457 WHIRLPOOL 1defd5dcb9d120585b10e72c51501373572e7d56c0e379ec587592fd53a381baf262a970956cd9fa4c2ad007697a1b7db9068d130b6cb3a33a00c40bb9c6a13c
|
@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/bandit/bandit-0.12.0.ebuild,v 1.1 2015/07/31 01:15:51 prometheanfire Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 python3_4 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A security linter from OpenStack Security"
|
||||
HOMEPAGE="https://openstack.org"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
CDEPEND="
|
||||
>=dev-python/pbr-1.3.0[${PYTHON_USEDEP}]
|
||||
<dev-python/pbr-2.0.0[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
${CDEPEND}
|
||||
test? (
|
||||
>=dev-python/coverage-3.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/fixtures-0.3.14[${PYTHON_USEDEP}]
|
||||
>=dev-python/hacking-0.9.2[${PYTHON_USEDEP}]
|
||||
<dev-python/hacking-0.10[${PYTHON_USEDEP}]
|
||||
>=dev-python/mock-1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/subunit-0.0.18[${PYTHON_USEDEP}]
|
||||
>=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}]
|
||||
>=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/testtools-0.9.36[${PYTHON_USEDEP}]
|
||||
!~dev-python/testtools-1.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
|
||||
!~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}]
|
||||
<dev-python/sphinx-1.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-sphinx-2.5.0[${PYTHON_USEDEP}]
|
||||
)"
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
>=dev-python/appdirs-1.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyyaml-3.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/stevedore-1.5.0[${PYTHON_USEDEP}]"
|
||||
|
||||
python_test() {
|
||||
testr init
|
||||
testr run || die
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>prometheanfire@gentoo.org</email>
|
||||
<name>Matthew Thode</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
A tool designed to find common security issues in Python code.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/prompt_toolkit/prompt_toolkit-0.45.ebuild,v 1.1 2015/07/31 07:13:35 jlec Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=(python2_7 python3_{3,4} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Building powerful interactive command lines in Python"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/prompt_toolkit/ https://github.com/jonathanslenders/python-prompt-toolkit"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
dev-python/pygments[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.9.0[${PYTHON_USEDEP}]
|
||||
dev-python/wcwidth[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
# not contained in tarball
|
||||
RESTRICT="test"
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" "${S}"/tests/run_tests.py || die
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/ptpython/ptpython-0.20.ebuild,v 1.1 2015/07/31 07:22:48 jlec Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4} )
|
||||
|
||||
inherit distutils-r1 eutils
|
||||
|
||||
DESCRIPTION="Python REPL build on top of prompt_toolkit"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/ptpython/ https://github.com/jonathanslenders/ptpython"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/prompt_toolkit-0.45[${PYTHON_USEDEP}]
|
||||
>=dev-python/jedi-0.9.0[${PYTHON_USEDEP}]
|
||||
dev-python/docopt[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "ipython enhanced version" dev-python/ipython
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST translate-toolkit-1.10.0.tar.bz2 4201705 SHA256 2db825cd039648b4f29c1530334f22dc25fe85ea2cefa4b393488aefd76554b1 SHA512 bdc85ab5c1f86ccd274842efbaccc6ca69828630aef9afaed54b809327111ede7ccaa7e0916332659de85b9fb1e819c8f99b0f6d3f96117b0aa99a03757225a3 WHIRLPOOL cca3d3eec0ebeac8885c4ec3463d76a26147054590dae80d7139294feadb9c4e3a949269d4471adae8c80a8ccdbeca1a9c86704a9b0a9ee7c83c51c3fcd3f830
|
||||
DIST translate-toolkit-1.12.0.tar.bz2 5329772 SHA256 11e332f2a29d8644364b4ca79b4ac079df328626ec8c27ac0e8cc454696719ca SHA512 c84424790ad66492dec97a5ec5601f5ffa68d23b219836def998847449b902970ac32fcb7d06455365e00c7b06f49d7dedda5257275bf7e845b16100153922dd WHIRLPOOL 866eb62056a30c8042d96a1ec06a23e56c2a5121dd66234a8b0889193548fff962d4c56700bb50a01c793e2443d49e33a02d92d5b53513f6c7b0805af827decf
|
||||
|
@ -1,74 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/translate-toolkit/translate-toolkit-1.10.0.ebuild,v 1.3 2013/05/20 08:43:05 ago Exp $
|
||||
|
||||
EAPI=3
|
||||
|
||||
PYTHON_USE_WITH="sqlite"
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
PYTHON_MODNAME=translate
|
||||
|
||||
inherit distutils python
|
||||
|
||||
DESCRIPTION="Toolkit to convert between many translation formats"
|
||||
HOMEPAGE="http://translate.sourceforge.net"
|
||||
SRC_URI="mirror://sourceforge/translate/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="doc +html +ical +ini +subtitles"
|
||||
|
||||
RDEPEND="
|
||||
app-text/iso-codes
|
||||
dev-python/lxml
|
||||
dev-python/python-levenshtein
|
||||
sys-devel/gettext
|
||||
html? ( dev-python/utidylib )
|
||||
ical? ( dev-python/vobject )
|
||||
ini? ( dev-python/iniparse )
|
||||
dev-python/sphinx
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_compile() {
|
||||
distutils_src_compile
|
||||
use doc && { cd docs && make html || die "Failed to generate documentation" ; }
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local filename binary
|
||||
|
||||
dodoc README.rst || die
|
||||
use doc && { dohtml -r docs/_build/html/* || die ; }
|
||||
rm -Rf docs || die
|
||||
|
||||
distutils_src_install
|
||||
|
||||
if ! use html; then
|
||||
rm "${ED}"/usr/bin/html2po || die
|
||||
rm "${ED}"/usr/bin/po2html || die
|
||||
fi
|
||||
if ! use ical; then
|
||||
rm "${ED}"/usr/bin/ical2po || die
|
||||
rm "${ED}"/usr/bin/po2ical || die
|
||||
fi
|
||||
if ! use ini; then
|
||||
rm "${ED}"/usr/bin/ini2po || die
|
||||
rm "${ED}"/usr/bin/po2ini || die
|
||||
fi
|
||||
if ! use subtitles; then
|
||||
rm "${ED}"/usr/bin/sub2po || die
|
||||
rm "${ED}"/usr/bin/po2sub || die
|
||||
fi
|
||||
|
||||
einfo "Generating man pages..."
|
||||
for binary in "${ED}"/usr/bin/*; do
|
||||
filename=$(basename "${binary}")
|
||||
PYTHONPATH=${WORKDIR}/${PF}:${PYTHONPATH}
|
||||
|
||||
if ${file} --man > "${T}/${filename}.1" 2> /dev/null; then
|
||||
doman "${T}/${filename}.1" || die
|
||||
fi
|
||||
done
|
||||
}
|
@ -1,4 +1,3 @@
|
||||
DIST fakefs-0.4.2.gem 34304 SHA256 f8cec34ebfc8b756c2174884abe5e97659b0b2ad41395c82f4b0b56292445e34 SHA512 57634e38ee5e5e7b73569405f61dbc5d83036091020bd043cb1d0eb64dc012a3a7a63d6c4111e31c7b4256746c448b707500c51fd4d2512a04d5ad45faf7c7e0 WHIRLPOOL 3b737ea892ea5ea171d4fcb237eb85c57ff2bd627050304571109bb4b73369583abee3a5b0d9da82553fc9da37a1158bcd6714f92ee3c462c8e665afe949437b
|
||||
DIST fakefs-0.6.0.gem 41984 SHA256 43a668e9a436654d66eff7e896793800b4b8d87c3ecd5a6a84e23fb52580150e SHA512 8c0eac75103e1917551e2f5e74a5324d5a606e7692a8e4c49c9b97e2b5005bd381073a5780a8e6d1fb661a1bb4a67e56c29ce98cd2e2e62cce22602c30e4225f WHIRLPOOL c1a520c9cf3913e727ef570367d238e2ec88eb8d41789d1d33e9227a5a5dd9c62f4a462374066e1e5b5c5ac8bb0f738e6513b4d4182c20969178a82f90aa2739
|
||||
DIST fakefs-0.6.5.gem 44032 SHA256 4c3c5378c839bd8f8e94dab767b417c74273cefda703bf338358d8e964bbf9ed SHA512 eef1500627eac9d2df312a74783ee43f3bcc8aaa83824cfb2ccf11bb6d21cc0e6d95d72a4aab78eaa15edbe9a856146ec3ef97408569d5eac56fc4bba2a12f56 WHIRLPOOL 09c03ae8500343ac771f019a21b19494d94e3fd1f114d78c9ba037d214e40a2927b083652a24d044190bb9cb81ded0ac2b1e1ea1dab953fbce462c541184b3da
|
||||
DIST fakefs-0.6.7.gem 44544 SHA256 2fd9f56aecac9de55db0b4111f4f53d6ebbe00e68dd1cc089cc4c2d8589eb9a1 SHA512 1fe50b7692a153dfc2d48cb0fb4eb545a52c04362154d72a8b887f7d8f9fb5973abc13c685eba0f9cd4dbdf5a783ab8de2bd978747050b72b4f248c1a0d271c2 WHIRLPOOL cf7a3a96f1efcd70b233fa129f0c5782b6b19bb3039960d2de981c9dc889c60956d313e8b17a21fab31a23013cce2b3fc2fd8f33f2603323c2e315aa85c18370
|
||||
|
@ -1,40 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/fakefs/fakefs-0.4.2.ebuild,v 1.15 2014/12/02 12:37:53 mrueg Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
USE_RUBY="ruby19"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="none"
|
||||
|
||||
# requires sdoc
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="CONTRIBUTORS README.markdown"
|
||||
|
||||
inherit ruby-fakegem eutils
|
||||
|
||||
DESCRIPTION="A fake filesystem. Use it in your tests"
|
||||
HOMEPAGE="http://github.com/defunkt/fakefs"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_bdepend "
|
||||
test? (
|
||||
dev-ruby/rspec:2
|
||||
>=dev-ruby/test-unit-2.5.1-r1
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Remove bundler
|
||||
rm Gemfile || die
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
ruby-ng_rspec
|
||||
ruby-ng_testrb-2 -Ilib:test test/**/*_test.rb
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST jsobfu-0.2.1.gem 20480 SHA256 16fef3066b9049bbcdb9949f6d185af75eda768ff2e221b69c16e9d793ac23e5 SHA512 b2ae7a59d0900984c92a5f7a199de2ca02e2f8bbca4f7a0e70610e06c5b763455cc71b3356a0bac91efb5d786d0a1ae4ffeda4e70995cfed3d52e46a82347a9b WHIRLPOOL 4caee1de395955565b00a3a9ff4558e35348038632b7024e176e84541d7f96c79a7b4d332ce4ab7c627b0ebcb6666a52f954a030143e83fc1edb5f25eb37f5ae
|
@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/jsobfu/jsobfu-0.2.1.ebuild,v 1.1 2015/07/31 07:37:50 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20 ruby21 ruby22"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A Javascript code obfuscator"
|
||||
HOMEPAGE="https://github.com/rapid7/jsobfu"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/rkelly-remix-0.0.6:0"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i -e '/simplecov/ s:^:#:' \
|
||||
-e '/config.\(color\|tty\|formatter\)/ s:^:#:' \
|
||||
spec/spec_helper.rb || die
|
||||
|
||||
sed -i -e '/rkelly-remix/,/name:/ s/=/~>/' ../metadata || die
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>ruby</herd>
|
||||
<upstream>
|
||||
<remote-id type="github">rapid7/jsobfu</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/listen/listen-1.3.1-r3.ebuild,v 1.1 2015/07/31 07:06:57 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby19 ruby20 ruby21 ruby22"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Listens to file modifications and notifies you about the changes"
|
||||
HOMEPAGE="https://github.com/guard/listen"
|
||||
SRC_URI="https://github.com/guard/listen/archive/v${PV}.tar.gz -> ${P}-git.tgz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="1"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x64-macos"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/rb-inotify-0.9.0"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i -e '/[Cc]overalls/d' spec/spec_helper.rb || die
|
||||
# Drop failing test
|
||||
sed -i -e '/#85/,+17d' spec/listen/directory_record_spec.rb || die
|
||||
|
||||
# Drop dependencies for file system events not available on Gentoo.
|
||||
sed -i -e '/\(fsevent\|kqueue\)/d' ${RUBY_FAKEGEM_GEMSPEC} || die
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST mysql2-0.3.17.gem 49152 SHA256 c69c5f08532cdd58e5f7dccaad7ac132edaa271dd2c8d69711cf5ce3c8f858e1 SHA512 bf3e818fa6a2396706b5078ab6a426ce22e7a24ca8e0ba310e831ed1887f9d6688084d99af34111f6447f089a2bf1364dd641434b61add9778eed5c4ce2d270e WHIRLPOOL 904e5def78e6a5457b7dfc7a561d7ddb9900f57812bc68b4b52dec3095276b93626198af4b29d648655143e93b210dfd66fa0dba202d16e1ef8d4e03ed93c016
|
||||
DIST mysql2-0.3.18.gem 50688 SHA256 d35477aaf1a5fc508511af5c521675b8878275ad0af9c12e1cf222b50e285735 SHA512 533cbea6c67ce1d02861d76b18c3a3c74e81a6f4edf0324dfeb29dc9f8a4fb40e5a4e4bc22b973784c1a6ac1862507860b50d5ce7da4aeac6e3a3c260f1fde7d WHIRLPOOL a6685345d5a82c098cbc40d5963d5be3cc0f16738d197cc40ec2a7b375ca578078f177dccfadd8aaee2a8eb85e346f9f097b0bc7af01045ccec3cc44f6226252
|
||||
DIST mysql2-0.3.19.gem 52224 SHA256 d34c6804e1916361ff352da0f0f57e615909cad0edcbf18d9aba78e1ddc2918a SHA512 1486e6016854776307a42b8edd1b51f222c9ec4a3aa769aba03579c132e778673ed5cd788d129fecb73085a01989adf9813d36d20ff292573b6db041354270f5 WHIRLPOOL 12db1a0c0b8260bae189590094978038903e871e1e91cf9d502117a05807344a60d9b40be0c8a45e5be74f027eefbf7e2c2ab5d5ba2d8e9bcdabaf6b41c8024b
|
||||
|
@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mysql2/mysql2-0.3.19.ebuild,v 1.1 2015/07/31 05:17:30 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20 ruby21 ruby22"
|
||||
|
||||
# Tests require a live MySQL database but should all pass.
|
||||
RUBY_FAKEGEM_TASK_TEST=""
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md"
|
||||
|
||||
inherit multilib ruby-fakegem
|
||||
|
||||
DESCRIPTION="A modern, simple and very fast Mysql library for Ruby - binding to libmysql"
|
||||
HOMEPAGE="https://github.com/brianmario/mysql2"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0.3"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="${DEPEND} virtual/libmysqlclient"
|
||||
RDEPEND="${RDEPEND} virtual/libmysqlclient:="
|
||||
|
||||
each_ruby_configure() {
|
||||
${RUBY} -Cext/mysql2 extconf.rb --with-mysql-config "${EPREFIX}/usr/bin/mysqlconfig" || die
|
||||
}
|
||||
|
||||
each_ruby_compile() {
|
||||
emake V=1 -Cext/mysql2 || die
|
||||
cp ext/mysql2/mysql2$(get_modname) lib/mysql2/ || die
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST ox-2.2.0.tar.gz 173019 SHA256 33fad7a3cafa38f62ff65ee93485028048d2369e504fd8c80a65cef7d9566c8c SHA512 817eae55ae3f0ee3edced2da58be2e0c95b2be0e8788f511b648f88d38096367416802f2e82a2dacb7ec48efdd35cb8c36766ffb7b46a4944137e55bf23bd02a WHIRLPOOL 82adce4c9465c28dacd8514279ddf40832ac47e4c48355758c91681835e81124eb3233b2d15081b542775acd2501622ff85cf6d4146fd10ec8a6f435d0e1b2c1
|
||||
DIST ox-2.2.1.tar.gz 174511 SHA256 67d064cd52c174ee0539f2ca1398b8afc64c22f7cfa5f12749d28fc25d03a9cc SHA512 3ad836e0446f39ac16d4fad9ed85b3c7711531e9db0c9bf2582bfaf08ccb198fa758d0e3193a9916ec4161dd06ef19468bee64590e2671caabd62cc604ab0f98 WHIRLPOOL 5c83081b44dd5e8da84161dbbb568ad25e5c52c8df9c6565a38610eed0b71d67acf971ffd018796b63e9d4f6ef17af0e7bf02f23bd4788f85317781af7a5f6ff
|
||||
|
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ox/ox-2.2.1.ebuild,v 1.1 2015/07/31 05:20:19 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20 ruby21 ruby22"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md"
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A fast XML parser and Object marshaller"
|
||||
HOMEPAGE="http://www.ohler.com/ox/ https://github.com/ohler55/ox"
|
||||
SRC_URI="https://github.com/ohler55/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="BSD"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
each_ruby_configure() {
|
||||
${RUBY} -Cext/ox extconf.rb || die
|
||||
}
|
||||
|
||||
each_ruby_compile() {
|
||||
emake V=1 -Cext/ox
|
||||
cp ext/ox/ox$(get_modname) lib/ox/ || die
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
${RUBY} test/tests.rb || die
|
||||
}
|
@ -1,8 +1,5 @@
|
||||
DIST rspec-core-2.14.8-git.tgz 195949 SHA256 757febdcc4465b62fb41572e1fb7e0deb86f903127cb2941ea65d2c1d4ac29db SHA512 2be487f0a820cb959771b0c2a725aa7a43cd80a76f85ed42f3341420cefa4ba6413b5dbd86e8fba9f5515afef3e895e0f1f2f8239d50f0b764f037d5f0791095 WHIRLPOOL 5b2422d7f1d087caf654ea04d81f269ae90be63eb73135d34691839c27e6dfa152aac425f64a860b3af50ef0bf513ac7f4a68c979c254083f187e57a96c20fe3
|
||||
DIST rspec-core-2.99.2-git.tgz 212935 SHA256 75794e3f94f3323b1212b93e827d37d6ab2813dea2f5f927929b40e9ee170c43 SHA512 e13bc3384fd85c367481a8651c14be4a412cba5f58e12a8f4ab14b5d2768a7b92191b81e000e7dbf6a28275b41044d8b3eb70a04e4b30b5bf88db98cbec4cc44 WHIRLPOOL 5584be2da2310688155c4fe600a4a36f68434440ebc00b063e9fcdcb3188138831a210f482ac86a469984fcf9838d795511ea02433020ecc6bc1d6aacc8c72bd
|
||||
DIST rspec-core-3.1.7-git.tgz 244774 SHA256 5fbb0b965bd590972bbf57272dbaf026e67493c69cc6f3c754bde829d39f1c81 SHA512 ded71c0f6e36c177044c796dd9c22d53d803ba45a7c8849daab2c22392082ae72a0479d2ffe45ed0f1492b4b6c94dfab187c01af7c55f14fa8111d0fa9999790 WHIRLPOOL 74fdd0b1c52df1d738ffadf1d03b0951b0b0e8ca538cdeb44412c20ca80d8f26d02fb82de63f6ec19eb4fe3e7ec42a5c140e241904e4c80b1f8f1efb98733d7b
|
||||
DIST rspec-core-3.2.0-git.tgz 275656 SHA256 a4b4400f08b9afbad1d9956a2ce54d380d552fb513bd6db91eeccbf90b46f95b SHA512 ce20a12c5b44cb1f62c119fe466eea03d9772b4a3127a00f60aa49daededb68d588ad791ff3b097bcdb854fce00c41a1cc054b8a5babdb4ca1f2fc0f2306549f WHIRLPOOL 99cf1286075f37c30112514ce41c34cfef5bfa2549bd6fd3e3bc6a5a70c366181f06044b8655136c43dee54218cc946a6579c4e5577f07feaedadc65d6ef3a44
|
||||
DIST rspec-core-3.2.1-git.tgz 275760 SHA256 881136de98c27876f4b10c0857b2eb506c4a70249c60ebc9268766d885c75659 SHA512 dd323ad399d037032326a403e33786c62a7bd4fe3f98796aa60781c625632ab3e511f3a86cbe3bf897ec4558cf0c20296016cc317c8401cf7f99fc5b6cf3d44a WHIRLPOOL 607c6855c8b7a8ab4c44bb47c600c1e46521c68c12fd87fd3b04caedc74cc7a4820e48f6f76e833a9bb5add392ae3bc080e521261db220e84bbfa8f9edb9fc78
|
||||
DIST rspec-core-3.2.3-git.tgz 276647 SHA256 7122fe372cdf0d4ff60aef42768fc9cc0350bd1943f5c1fa6189153829519ab2 SHA512 a5eb294c4770275662205b4edde2426c7d7ab7f9fb3cea6fc1171071b941a94b6d6386348fd83ba9e76a35512ea56be0b657ba2d8e210fe73c8564e76ebea7ae WHIRLPOOL 895d5fab418ddc5adc9a33078499f59b2865b636516110f0042bd08b4d9ecdb304f135655c0b05102f47725b94da831c986889b8a76eed3e8aa2c693f2d29d63
|
||||
DIST rspec-core-3.3.1-git.tgz 332355 SHA256 9dc839186e72fe5d4b4f15500bc2a976d08dc4af859be2b69778b1c4f84d321b SHA512 cddbfc1dae98de2db31a5f9c5a60cf1cdd4995f35bcd1bea525f18fc8b3649d7c8a2e23169873874be22b4f75b14b89d086e2372ed1dd93a157ae03c5989a760 WHIRLPOOL a3e5fa2264b40313c1fcf1890087f218a5a9f442f82528f4422a315858a036ff36cdc671dbb7e1f4d937385e6568cb7950c43ab7249c78b834ba07e5dae671d6
|
||||
DIST rspec-core-3.3.2-git.tgz 332730 SHA256 aef9a2867a435aa7be57826c850e88e593232077dc42f12bfed89a92c7704d26 SHA512 6cadfa43d63df8d24105d88d6e8b22a495a30f04b289c71c8887ea3fead9ec8f071a6c734a140b1e4910f25094fd36c7c37b54a0724e734233ca584202f0cf32 WHIRLPOOL 1e385223ea8c9b32bfc6ecc93146ccad793441bae3426f6cb4acc07d7a1f2bc6e20be11597fcd27f3c6bb207482213e2eaf214835041df631d06b9bc524e5b70
|
||||
|
@ -1,86 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-core/rspec-core-3.1.7.ebuild,v 1.3 2015/01/18 17:35:17 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20 ruby21"
|
||||
|
||||
RUBY_FAKEGEM_TASK_TEST="none"
|
||||
RUBY_FAKEGEM_TASK_DOC="none"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
|
||||
|
||||
# Also install this custom path since internal paths depend on it.
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="exe"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="rspec-core.gemspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
|
||||
HOMEPAGE="http://github.com/rspec/rspec-core"
|
||||
SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
SUBVERSION="$(get_version_component_range 1-2)"
|
||||
|
||||
ruby_add_rdepend "
|
||||
=dev-ruby/rspec-support-${SUBVERSION}*
|
||||
!!<dev-ruby/rspec-core-2.14.8-r4
|
||||
"
|
||||
|
||||
ruby_add_bdepend "test? (
|
||||
>=dev-ruby/nokogiri-1.5.2
|
||||
dev-ruby/syntax
|
||||
>=dev-ruby/zentest-4.6.2
|
||||
>=dev-ruby/rspec-expectations-2.14.0:2
|
||||
>=dev-ruby/rspec-mocks-2.99.0:2
|
||||
)"
|
||||
|
||||
# Skip yard for ruby21 for now since we don't support ruby21 eselected
|
||||
# yet and we can't bootstrap otherwise.
|
||||
USE_RUBY=${USE_RUBY/ruby21/} ruby_add_bdepend "doc? ( dev-ruby/yard )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Don't set up bundler: it doesn't understand our setup.
|
||||
sed -i -e '/[Bb]undler/d' Rakefile || die
|
||||
|
||||
# Avoid dependency on cucumber since we can't run the features anyway.
|
||||
sed -i -e '/[Cc]ucumber/ s:^:#:' Rakefile || die
|
||||
|
||||
# Duplicate exe also in bin. We can't change it since internal stuff
|
||||
# also depends on this and fixing that is going to be fragile. This
|
||||
# way we can at least install proper bin scripts.
|
||||
cp -R exe bin || die
|
||||
|
||||
# Avoid unneeded dependency on git.
|
||||
sed -i -e '/git ls-files/ s:^:#:' rspec-core.gemspec || die
|
||||
|
||||
# Avoid aruba dependency so that we don't end up in dependency hell.
|
||||
sed -i -e '/ArubaLoader/,/^end/ s:^:#:' -e '/Aruba/ s:^:#:' spec/spec_helper.rb || die
|
||||
rm spec/command_line/order_spec.rb || die
|
||||
}
|
||||
|
||||
each_ruby_prepare() {
|
||||
sed -i -e 's:ruby -e:'${RUBY}' -e:' spec/rspec/core_spec.rb || die
|
||||
}
|
||||
|
||||
all_ruby_compile() {
|
||||
if use doc ; then
|
||||
yardoc || die
|
||||
fi
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" ${RUBY} -Ilib bin/rspec spec || die "Tests failed."
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
ruby_fakegem_binwrapper rspec /usr/bin/rspec-3 'gem "rspec", "~>3.0"'
|
||||
}
|
@ -1,95 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-core/rspec-core-3.2.0.ebuild,v 1.2 2015/02/21 09:37:16 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20 ruby21 ruby22"
|
||||
|
||||
RUBY_FAKEGEM_TASK_TEST="none"
|
||||
RUBY_FAKEGEM_TASK_DOC="none"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
|
||||
|
||||
# Also install this custom path since internal paths depend on it.
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="exe"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="rspec-core.gemspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
|
||||
HOMEPAGE="http://github.com/rspec/rspec-core"
|
||||
SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="highlight"
|
||||
|
||||
SUBVERSION="$(get_version_component_range 1-2)"
|
||||
|
||||
ruby_add_rdepend "
|
||||
=dev-ruby/rspec-support-${SUBVERSION}*
|
||||
!!<dev-ruby/rspec-core-2.14.8-r4
|
||||
highlight? ( >=dev-ruby/coderay-1.0.9 )
|
||||
"
|
||||
|
||||
ruby_add_bdepend "test? (
|
||||
>=dev-ruby/nokogiri-1.5.2
|
||||
>=dev-ruby/coderay-1.0.9
|
||||
dev-ruby/syntax
|
||||
>=dev-ruby/zentest-4.6.2
|
||||
>=dev-ruby/rspec-expectations-3.0.0:3
|
||||
>=dev-ruby/rspec-mocks-2.99.0:3
|
||||
)"
|
||||
|
||||
# Skip yard for ruby21 for now since we don't support ruby21 eselected
|
||||
# yet and we can't bootstrap otherwise.
|
||||
USE_RUBY=${USE_RUBY/ruby21 ruby22/} ruby_add_bdepend "doc? ( dev-ruby/yard )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Don't set up bundler: it doesn't understand our setup.
|
||||
sed -i -e '/[Bb]undler/d' Rakefile || die
|
||||
|
||||
# Avoid dependency on cucumber since we can't run the features anyway.
|
||||
sed -i -e '/[Cc]ucumber/ s:^:#:' Rakefile || die
|
||||
|
||||
# Duplicate exe also in bin. We can't change it since internal stuff
|
||||
# also depends on this and fixing that is going to be fragile. This
|
||||
# way we can at least install proper bin scripts.
|
||||
cp -R exe bin || die
|
||||
|
||||
# Avoid unneeded dependency on git.
|
||||
sed -i -e '/git ls-files/ s:^:#:' rspec-core.gemspec || die
|
||||
|
||||
# Avoid aruba dependency so that we don't end up in dependency hell.
|
||||
sed -i -e '/ArubaLoader/,/^end/ s:^:#:' -e '/Aruba/ s:^:#:' spec/spec_helper.rb || die
|
||||
rm spec/integration/{filtering,order}_spec.rb spec/support/aruba_support.rb || die
|
||||
}
|
||||
|
||||
each_ruby_prepare() {
|
||||
sed -i -e 's:ruby -e:'${RUBY}' -e:' spec/rspec/core_spec.rb || die
|
||||
|
||||
case ${RUBY} in
|
||||
*ruby22)
|
||||
# The rubygems version bundled with ruby 2.2 causes warnings.
|
||||
sed -i -e '/a library that issues no warnings when loaded/,/^ end/ s:^:#:' spec/rspec/core_spec.rb || die
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
all_ruby_compile() {
|
||||
if use doc ; then
|
||||
yardoc || die
|
||||
fi
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" ${RUBY} -Ilib bin/rspec spec || die "Tests failed."
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
ruby_fakegem_binwrapper rspec /usr/bin/rspec-3 'gem "rspec", "~>3.0"'
|
||||
}
|
@ -1,95 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-core/rspec-core-3.2.1.ebuild,v 1.1 2015/02/27 06:56:52 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20 ruby21 ruby22"
|
||||
|
||||
RUBY_FAKEGEM_TASK_TEST="none"
|
||||
RUBY_FAKEGEM_TASK_DOC="none"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
|
||||
|
||||
# Also install this custom path since internal paths depend on it.
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="exe"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="rspec-core.gemspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
|
||||
HOMEPAGE="https://github.com/rspec/rspec-core"
|
||||
SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="highlight"
|
||||
|
||||
SUBVERSION="$(get_version_component_range 1-2)"
|
||||
|
||||
ruby_add_rdepend "
|
||||
=dev-ruby/rspec-support-${SUBVERSION}*
|
||||
!!<dev-ruby/rspec-core-2.14.8-r4
|
||||
highlight? ( >=dev-ruby/coderay-1.0.9 )
|
||||
"
|
||||
|
||||
ruby_add_bdepend "test? (
|
||||
>=dev-ruby/nokogiri-1.5.2
|
||||
>=dev-ruby/coderay-1.0.9
|
||||
dev-ruby/syntax
|
||||
>=dev-ruby/zentest-4.6.2
|
||||
>=dev-ruby/rspec-expectations-3.0.0:3
|
||||
>=dev-ruby/rspec-mocks-2.99.0:3
|
||||
)"
|
||||
|
||||
# Skip yard for ruby21 for now since we don't support ruby21 eselected
|
||||
# yet and we can't bootstrap otherwise.
|
||||
USE_RUBY=${USE_RUBY/ruby21 ruby22/} ruby_add_bdepend "doc? ( dev-ruby/yard )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Don't set up bundler: it doesn't understand our setup.
|
||||
sed -i -e '/[Bb]undler/d' Rakefile || die
|
||||
|
||||
# Avoid dependency on cucumber since we can't run the features anyway.
|
||||
sed -i -e '/[Cc]ucumber/ s:^:#:' Rakefile || die
|
||||
|
||||
# Duplicate exe also in bin. We can't change it since internal stuff
|
||||
# also depends on this and fixing that is going to be fragile. This
|
||||
# way we can at least install proper bin scripts.
|
||||
cp -R exe bin || die
|
||||
|
||||
# Avoid unneeded dependency on git.
|
||||
sed -i -e '/git ls-files/ s:^:#:' rspec-core.gemspec || die
|
||||
|
||||
# Avoid aruba dependency so that we don't end up in dependency hell.
|
||||
sed -i -e '/ArubaLoader/,/^end/ s:^:#:' -e '/Aruba/ s:^:#:' spec/spec_helper.rb || die
|
||||
rm spec/integration/{filtering,order}_spec.rb spec/support/aruba_support.rb || die
|
||||
}
|
||||
|
||||
each_ruby_prepare() {
|
||||
sed -i -e 's:ruby -e:'${RUBY}' -e:' spec/rspec/core_spec.rb || die
|
||||
|
||||
case ${RUBY} in
|
||||
*ruby22)
|
||||
# The rubygems version bundled with ruby 2.2 causes warnings.
|
||||
sed -i -e '/a library that issues no warnings when loaded/,/^ end/ s:^:#:' spec/rspec/core_spec.rb || die
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
all_ruby_compile() {
|
||||
if use doc ; then
|
||||
yardoc || die
|
||||
fi
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" ${RUBY} -Ilib bin/rspec spec || die "Tests failed."
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
ruby_fakegem_binwrapper rspec /usr/bin/rspec-3 'gem "rspec", "~>3.0"'
|
||||
}
|
@ -1,7 +1,5 @@
|
||||
DIST rspec-expectations-2.14.5-git.tgz 93680 SHA256 ceba7a62ad87285f1ea01db4798efbbde4020b82a109cc260ec358061367e5b9 SHA512 237ed56cd185bc5d0d60ed14e20ded1840ef10711693c43ffaa20ec65cdd6b891aba3a6f1f38bb6962c31d51364758d1898e3bcba14a95c4abc73dff4dac1b65 WHIRLPOOL b9860d7bbd7e33143de655d3bcae6925a91ae5992f47b75ae9c61203c9cddcfb5a2ad0d8d3152a725ff4174359bdf56c5d8dbe24b4b1bb56e3aab292ddfc7a5d
|
||||
DIST rspec-expectations-2.99.2-git.tgz 106884 SHA256 4c1b38198d214ab2d4e297fdfbd89d3c3ae20c6b144882e53e935cfbc9878f68 SHA512 6042cafe225b2b16df458c7bf69e1694b637afcac6f6195e35a0be199432610457ccaa3e7e4bd114b27a7a6c3d530d94f4c0603c65f469cbadc55bd3f75b6f3a WHIRLPOOL 4a390f55bac3180a876bd59f58ce7c2ed87611b94c9610c950dc138ef14c8966e62d79aa4f63771c373760d0b9f4f51a9aaa6cbc4fc600573c6cb12ddc0e278d
|
||||
DIST rspec-expectations-3.1.2-git.tgz 148364 SHA256 ad50e3a305d9c5ac8939d7e1f61231ce694f2a01bddf1f43f297efa9e3b6431f SHA512 f02f205d3d79ab592b093f1ebd8f9a3b60c550d0aaea97cb5b442266ece904475aee55ea56c9cc4713d22f0e4ad2ead3494bfaf0ade1b345f3b1fc726ffd5b30 WHIRLPOOL a1e692b962a7f0e95598c624f671b1fea86a0a1e11e96b43259d74f8ac22ed184dbbf6e7517129b1c0f19069e35af99b92832d8d46f39211ff2ffd55c24f8f01
|
||||
DIST rspec-expectations-3.2.0-git.tgz 157134 SHA256 a7196fad1cd851ed84a4725c90335c211b282e312ac4983fdc9ea62bbc0fa09b SHA512 de3111ded0b4138527e1cff170d059dd4725b10cc770019c84efc7583332a76c8ef115fdb675cab5ae7068a73f55e9583db3b05b70565760e80bdf8b9645afe6 WHIRLPOOL 3cb43ee930bce097d2c43eabf2d1939a35a8a593a9f5e271a137d14a3f2bfdbb096c89b4f1327b1242920eac62da23537b194c35fac297ad79679b62e5853bb1
|
||||
DIST rspec-expectations-3.2.1-git.tgz 157533 SHA256 fd3813bb56818fcea59a71aec649546c33c3d10ad1473deb4b051ab8f2bd1940 SHA512 144609a9b148daeb95e23e421bdd00ba3571f6e751915ba699089d52567f9cd7a35a51be37772947d7fe59945281bf8c5afea6a68b6d0e87007266333342b773 WHIRLPOOL 5046afddb29a42b3456b25077d3f1f2be83e5db6a8e69c02e93711725466ecbe792c4670cd8bbd371e405b0706a1eaadb7c7d7b81df50c7c88732e98d1e32cf4
|
||||
DIST rspec-expectations-3.3.0-git.tgz 170643 SHA256 1bf5062cd45c12cfa048deb73caa572372767513fffe9f12328ffaf8970a0891 SHA512 edbe9ec9482fb93ba4834b023b3574f6771936a17df7b0f049b090b10077bb2d336a30a2bf734fa2d2f207b04bcb63be9a4e1a33c905d3614c93bec1a23be51c WHIRLPOOL 2a396b888261094efce98cea6d2359ce1b604801de20884b69f2b6f0c6ea16d0546ce9a5c101a10ad19ae225c498e6e80068958aef2ee12e350c31a228fcb0ef
|
||||
DIST rspec-expectations-3.3.1-git.tgz 171117 SHA256 a40feb73c5c54fd6464ca262af4be50ef9d5e4a785b5ae7862946da42837e112 SHA512 fe0e5fc4e00c8d51866bc9699bc25b1e702c765c5443abbebe2f016833c6f09f9f8f35d86520b59d51ad0a196551f68c39a5ec707658826af838ed274f4986ff WHIRLPOOL 5dc55d62ec1df5add711c07470d2d7020b875bf43a57788ceb84b05807ec9d3b2e395fde16f14c06d265e8c36b44e9a9c9da306c049a019289a1bc3d265e18e1
|
||||
|
@ -1,53 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-expectations/rspec-expectations-3.1.2.ebuild,v 1.2 2015/01/18 17:35:12 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20 ruby21"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
|
||||
HOMEPAGE="http://rspec.rubyforge.org/"
|
||||
SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
SUBVERSION="$(get_version_component_range 1-2)"
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/diff-lcs-1.2.0 <dev-ruby/diff-lcs-2
|
||||
=dev-ruby/rspec-support-${SUBVERSION}*"
|
||||
|
||||
ruby_add_bdepend "test? (
|
||||
>=dev-ruby/rspec-mocks-3.0.0:3
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Don't set up bundler: it doesn't understand our setup.
|
||||
sed -i -e '/[Bb]undler/d' Rakefile || die
|
||||
|
||||
# Remove the Gemfile to avoid running through 'bundle exec'
|
||||
rm Gemfile || die
|
||||
|
||||
# fix up the gemspecs
|
||||
sed -i \
|
||||
-e '/git ls/d' \
|
||||
-e '/add_development_dependency/d' \
|
||||
"${RUBY_FAKEGEM_GEMSPEC}" || die
|
||||
|
||||
#
|
||||
sed -i -e '1irequire "spec_helper"' spec/rspec/expectations/configuration_spec.rb || die
|
||||
|
||||
# Avoid a weird, and failing, test testing already installed code.
|
||||
sed -e '/has an up-to-date caller_filter file/,/end/ s:^:#:' -i spec/rspec/expectations_spec.rb || die
|
||||
}
|
@ -1,62 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-expectations/rspec-expectations-3.2.0.ebuild,v 1.2 2015/02/21 09:37:48 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20 ruby21 ruby22"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
|
||||
HOMEPAGE="http://rspec.rubyforge.org/"
|
||||
SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
SUBVERSION="$(get_version_component_range 1-2)"
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/diff-lcs-1.2.0 <dev-ruby/diff-lcs-2
|
||||
=dev-ruby/rspec-support-${SUBVERSION}*"
|
||||
|
||||
ruby_add_bdepend "test? (
|
||||
>=dev-ruby/rspec-mocks-3.2.0:3
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Don't set up bundler: it doesn't understand our setup.
|
||||
sed -i -e '/[Bb]undler/d' Rakefile || die
|
||||
|
||||
# Remove the Gemfile to avoid running through 'bundle exec'
|
||||
rm Gemfile || die
|
||||
|
||||
# fix up the gemspecs
|
||||
sed -i \
|
||||
-e '/git ls/d' \
|
||||
-e '/add_development_dependency/d' \
|
||||
"${RUBY_FAKEGEM_GEMSPEC}" || die
|
||||
|
||||
#
|
||||
sed -i -e '1irequire "spec_helper"' spec/rspec/expectations/configuration_spec.rb || die
|
||||
|
||||
# Avoid a weird, and failing, test testing already installed code.
|
||||
sed -e '/has an up-to-date caller_filter file/,/end/ s:^:#:' -i spec/rspec/expectations_spec.rb || die
|
||||
}
|
||||
|
||||
each_ruby_prepare() {
|
||||
case ${RUBY} in
|
||||
*ruby22)
|
||||
# The rubygems version bundled with ruby 2.2 causes warnings.
|
||||
sed -i -e '/a library that issues no warnings when loaded/,/^ end/ s:^:#:' spec/rspec/expectations_spec.rb || die
|
||||
;;
|
||||
esac
|
||||
}
|
@ -1,7 +1,5 @@
|
||||
DIST rspec-mocks-2.14.6-git.tgz 94286 SHA256 2453766688b33a5cd743f4ebc3ffccd4277e3daca069828c7206bd0f12d5fee4 SHA512 a079c0b860c7ca4b4da366fa131617ddcb636918cd0c065ef3d8d585938228f442bb58ab5fcd2cd84b590bf6ab468d637fa7ab0181864a59c131f0a890e46702 WHIRLPOOL d29599bf4465c38433d7ddf70a12c43a523c289fd9857aadeb41610aef4980d8ea43cd1aef48d3d1d736e67a201bba131ea151a0ecb297e887fac51baf35655b
|
||||
DIST rspec-mocks-2.99.2-git.tgz 101731 SHA256 fad961e30ef67e014625fb6b4bb62db0f6f101142a897b4cad31e60f8faf8c57 SHA512 dd3b9394d56de8d3089db7777cda1e1a5bbdc46486876a99a8a83b602b84ba0320913d8e8dabe5e0367645eb01b943607b93e67d87cc26e380c8db6e048e4e0d WHIRLPOOL 06e8c3dd38fa17fbd82c97fe1c19928450234c761185cf636556955df9a081f4685d002a8fe501690c5457c63014ce8a60c5aca32b7c4bc24eb368368e5e33c3
|
||||
DIST rspec-mocks-3.1.3-git.tgz 149187 SHA256 94cbf0214a1ae856590a35eeb638d028388f4b4b4d12304011165f49f4088b95 SHA512 64d09a4c792c81b5e7a96c1316e4241a199b1b0e1b9e13a41c12ab8f76b73d007f2e2986446719b9c829c1c85955705858c0a605c869eeefd071162bcf76e9c6 WHIRLPOOL ae059a6e8567a5c918664444dbd779c9a925dc592739d7e3256a6f6b77579fc01e5bf38e0b4d7ebb533ab976e314dc0bb87eda9d720ed6565760d5d0f37df95c
|
||||
DIST rspec-mocks-3.2.0-git.tgz 162966 SHA256 b2781ddb095c804c5520cd47bdf4bf5d03506593bac1e85e9aeb404a2a2476fc SHA512 0f682d644597fdd85dd0aa63ed4ce2bdb85d5fbc05801c612ca8fc326aa19f249d0b981b325f03fcbb2d025d9bb26316610088ded2faba993bbdadba36859797 WHIRLPOOL f09f1eea7361e9e5e2c6f1c62da297ff06c825433e21ea453fd3bb235258fe2848ec1aa3cd7ae8f98fe588b0c85751b966eb31357c1773466df92a543053d6c1
|
||||
DIST rspec-mocks-3.2.1-git.tgz 162789 SHA256 4ff4e500cf46a6a90920f64b18f88a41a0c62808183f593f3b6ff616c1d3fdf7 SHA512 005eb4214a98104a9366a8974486813cc098c53352bc877133c2e6efeeac6b14a1ff9bbc8a57227bb42f73727f56dfd244674833505ae1c64d4c21dee70dd9fe WHIRLPOOL bc4559879d7e2c768fddb4e98e02bf17136a7b8759495d9d7d63d257388a95149d4ee32408f0a041593ead8807a5f8c193db22f95df0bae026e7a45f62999422
|
||||
DIST rspec-mocks-3.3.1-git.tgz 173312 SHA256 43f7a1de0f3fa2083af889f3a5be13b0629358bf53ee09aac61ddb53865f5914 SHA512 1ae4f6915a136ef238edc6561034bc756673c33cb3ea934253bc3b9718027cb7020cf29d125a2b95bc3dfbe49fa4d06762a2315fd9f62b590f23f5b80ca642c2 WHIRLPOOL 720c04a8bbbfd07573378f118ddafb223825efae39459c6cae09668a52942416794ad5e3514182855858823660d73513c25ad1946b863d5f7552721833b94eca
|
||||
DIST rspec-mocks-3.3.2-git.tgz 174849 SHA256 faec1a03eecdda1217238df7989c80f4201cf7613580af3824b2fa3af2c45ec0 SHA512 b03dd81232650d851db51dd62a11c6f34df7e3d47db9ec96168259f7d4045d2497098de903b5ef6865c29a5f4835ee1865ff64a8177f9212e8f699175ec7fe90 WHIRLPOOL 33936705596662c74c31b74b1bc5ac57bb76290b4fda1375edb18b9491c7b1ced0dd545c21ae6b67174275235ff767ddc322b73da97685a0dc6eeff13b9c9b61
|
||||
|
@ -1,54 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-mocks/rspec-mocks-3.1.3.ebuild,v 1.2 2015/01/18 17:35:13 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20 ruby21"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_DOC="none"
|
||||
RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
|
||||
HOMEPAGE="http://rspec.rubyforge.org/"
|
||||
SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
SUBVERSION="$(get_version_component_range 1-2)"
|
||||
|
||||
ruby_add_rdepend "=dev-ruby/rspec-support-${SUBVERSION}*"
|
||||
|
||||
ruby_add_bdepend "
|
||||
test? (
|
||||
>=dev-ruby/rspec-core-2.10.0:2
|
||||
>=dev-ruby/rspec-expectations-2.99.0:2
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Don't set up bundler: it doesn't understand our setup.
|
||||
sed -i -e '/[Bb]undler/d' Rakefile || die
|
||||
|
||||
# Remove the Gemfile to avoid running through 'bundle exec'
|
||||
rm Gemfile || die
|
||||
|
||||
# Remove .rspec options to avoid dependency on newer rspec when
|
||||
# bootstrapping.
|
||||
rm .rspec || die
|
||||
|
||||
sed -i -e '1irequire "spec_helper"' spec/rspec/mocks/any_instance_spec.rb || die
|
||||
|
||||
# Avoid a weird, and failing, test testing already installed code.
|
||||
sed -e '/has an up-to-date caller_filter file/,/end/ s:^:#:' -i spec/rspec/mocks_spec.rb || die
|
||||
|
||||
# Avoid failing specs in yield code. Not clear why verify would not
|
||||
# be defined. We can revisit this later so we can move on with
|
||||
# rspec-3 introduction for now.
|
||||
rm spec/rspec/mocks/and_yield_spec.rb || die
|
||||
}
|
@ -1,63 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-mocks/rspec-mocks-3.2.0.ebuild,v 1.2 2015/02/21 09:38:20 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20 ruby21 ruby22"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_DOC="none"
|
||||
RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
|
||||
HOMEPAGE="http://rspec.rubyforge.org/"
|
||||
SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
SUBVERSION="$(get_version_component_range 1-2)"
|
||||
|
||||
ruby_add_rdepend "=dev-ruby/rspec-support-${SUBVERSION}*"
|
||||
|
||||
ruby_add_bdepend "
|
||||
test? (
|
||||
>=dev-ruby/rspec-core-3.2.0:3
|
||||
>=dev-ruby/rspec-expectations-2.99.0:3
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Don't set up bundler: it doesn't understand our setup.
|
||||
sed -i -e '/[Bb]undler/d' Rakefile || die
|
||||
|
||||
# Remove the Gemfile to avoid running through 'bundle exec'
|
||||
rm Gemfile || die
|
||||
|
||||
# Remove .rspec options to avoid dependency on newer rspec when
|
||||
# bootstrapping.
|
||||
rm .rspec || die
|
||||
|
||||
sed -i -e '1irequire "spec_helper"' spec/rspec/mocks/any_instance_spec.rb || die
|
||||
|
||||
# Avoid a weird, and failing, test testing already installed code.
|
||||
sed -e '/has an up-to-date caller_filter file/,/end/ s:^:#:' -i spec/rspec/mocks_spec.rb || die
|
||||
|
||||
# Avoid failing specs in yield code. Not clear why verify would not
|
||||
# be defined. We can revisit this later so we can move on with
|
||||
# rspec-3 introduction for now.
|
||||
rm spec/rspec/mocks/and_yield_spec.rb || die
|
||||
}
|
||||
|
||||
each_ruby_prepare() {
|
||||
case ${RUBY} in
|
||||
*ruby22)
|
||||
# The rubygems version bundled with ruby 2.2 causes warnings.
|
||||
sed -i -e '/a library that issues no warnings when loaded/,/^ end/ s:^:#:' spec/rspec/mocks_spec.rb || die
|
||||
;;
|
||||
esac
|
||||
}
|
@ -1,7 +1,5 @@
|
||||
DIST rspec-rails-2.14.2.tar.gz 75049 SHA256 c5ec91e3c360033a7ef640d0a08b4f9167032b5d6d5cdee020f4df949f916a24 SHA512 2dcc568c578f3201dbdc6a757c84d0e689c3f221fe7cbd57849524680e40150c972436a2c6fcc1220e99c9d2e6c97c62bb6d4c5c59e9d6890a67caceb94ed5cd WHIRLPOOL d721b1dbec6cf4d35560868981087f5f7950353bb281d277fd17d012d71302986c5645b3d0c28bf61d270a2b90596d324ad072184eb195b642718f33f83ede4e
|
||||
DIST rspec-rails-2.99.0.tar.gz 78448 SHA256 81ff54e638432c2b734ebefd5398f646960bcc72b92e381393d2420fc9525882 SHA512 0453450cf5a5435dc4f870ae7a37a299c6b17a4df04de730c14ca3d070808c9a9a70a6f485a1d0c6f4f8ddf3def6e4710ae5842e9e8f0b59c10b2177299670f4 WHIRLPOOL 0a5774bab31786cca0a3146641306cce38d2a809bc94a9728cc2c479be761b66246cb54bdf9185c478519434d95f7808f9d8f7f9ddecac1ffc01251cf9dcd5a6
|
||||
DIST rspec-rails-3.1.0.tar.gz 88945 SHA256 4a5c5c7b92bcd8b6e84e756d3619ec48e4ad362bffe2bd883999ec9696c0b157 SHA512 39c7bffab081e7a37e3c89eae623075193055ca10d5dbdd9f9f55acf821dc74ceb82b4771987cc52696057d403411dcd3d821a35ed2384b8f3f38a6ab88a28c5 WHIRLPOOL 5d77ba1f3386333c9e2725c44291dfa8dba68c9156d1a671ef910ee8438665eef45f93ef98777b40f44653ce2cb8794ffa745948a893c4d127e95b22fae293c8
|
||||
DIST rspec-rails-3.2.1.tar.gz 94674 SHA256 e9502682c1e7545b25190f29fd9f8d80e4c149a7904fa57b18523208d60fb1a6 SHA512 f755d22b85e13b43c0c8ab1ebfe2ccc9afc3b75080b6c292a265645aff914def2a113fca49685691ff87bdd12f2b5da33dc0fce6ebbb64f532232db953a39085 WHIRLPOOL e2ccedd526a4ad9bb5389fc9ee701a77bbb9443cef70cb6d6658cc08a8daf8413cdd8c177c02c35ae07b2e2e944927bc77367fba83a6a4a3b658d417ff38fd38
|
||||
DIST rspec-rails-3.2.3.tar.gz 97589 SHA256 d70416a471a6e83b10a3b2c18f2dcfcb22897306cc1b238bb47fb4b6ee824ecb SHA512 1efeea5b742c9ded10dfdf432439b05765773bc19bb127a68f5cabd16e35d6bbead79c51343a419de03b5fe36d3ccf3754916ec55e28d6d9bf095508f1233af8 WHIRLPOOL 502d944adc28e9ac5b78db924cc985213067af60d5d238675feacd6e5625c479a9d7870cd43c49c12aac928d11f9361e7f7e85211a25403794a73e6933af69c0
|
||||
DIST rspec-rails-3.3.2.tar.gz 102934 SHA256 efdfadb375e0a64b6a306482ab705bdd9f147ff8c6b1acebb1981e50d5043b1c SHA512 59d8c516e3b7b5138c08d6cc2d68e21078dec0b340f9c0f709c9fa9cb7c318718454a8e11737a3ff1f2e940fc7d8db425b36bffda6966ad5f270923ffb9345bc WHIRLPOOL 6501d7b3467dcbec069472e6510a8c48a0a50b5f02ad6be5336b8c0bd2f841e72d865a3a8260bc4ef47744f6fd39eb4554c0c14d47153b2c1dce829d446b3672
|
||||
DIST rspec-rails-3.3.3.tar.gz 102963 SHA256 b0edc645a25c929deb39a7334894922cdf67cf7cb895bb728751d0d3a459fac9 SHA512 72c8a027d3ac7c8487c4dec23c91c7014456e6d8ed10f80f72e71c90e7bde0a3c005dd6b57985b1f3e32b32cb6d4610f651f8aa4b81156536a667a266e816603 WHIRLPOOL 78b00968fe75cd632b94bd4b2f244dc6ac50e708b9023baf882bba6ef76b827b681f55dd88be0220988c49d308b9bde4e3344456980db0d9a5654e39f65edd93
|
||||
|
@ -1,44 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-rails/rspec-rails-3.1.0.ebuild,v 1.1 2015/01/16 13:02:58 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby19 ruby20 ruby21"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
|
||||
|
||||
inherit ruby-fakegem versionator
|
||||
|
||||
DESCRIPTION="RSpec's official Ruby on Rails plugin"
|
||||
HOMEPAGE="http://rspec.info/"
|
||||
SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="3"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
SUBVERSION="$(get_version_component_range 1-2)"
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/activesupport-3.0
|
||||
>=dev-ruby/actionpack-3.0
|
||||
>=dev-ruby/railties-3.0
|
||||
=dev-ruby/rspec-${SUBVERSION}*"
|
||||
|
||||
# Depend on the package being already installed for tests, because
|
||||
# requiring ammeter will load it, and we need a consistent set of rspec
|
||||
# and rspec-rails for that to work.
|
||||
ruby_add_bdepend "test? ( =dev-ruby/mocha-0.10* >=dev-ruby/capybara-2.0.0 >=dev-ruby/ammeter-1.1.2 ~dev-ruby/rspec-rails-${PV} )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Remove .rspec options to avoid dependency on newer rspec when
|
||||
# bootstrapping.
|
||||
rm .rspec || die
|
||||
|
||||
# Avoid bundler-specific specs.
|
||||
rm spec/sanity_check_spec.rb || die
|
||||
}
|
@ -1,44 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-rails/rspec-rails-3.2.1.ebuild,v 1.1 2015/04/08 06:13:13 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby19 ruby20 ruby21"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
|
||||
|
||||
inherit ruby-fakegem versionator
|
||||
|
||||
DESCRIPTION="RSpec's official Ruby on Rails plugin"
|
||||
HOMEPAGE="http://rspec.info/"
|
||||
SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="3"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
SUBVERSION="$(get_version_component_range 1-2)"
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/activesupport-3.0
|
||||
>=dev-ruby/actionpack-3.0
|
||||
>=dev-ruby/railties-3.0
|
||||
=dev-ruby/rspec-${SUBVERSION}*"
|
||||
|
||||
# Depend on the package being already installed for tests, because
|
||||
# requiring ammeter will load it, and we need a consistent set of rspec
|
||||
# and rspec-rails for that to work.
|
||||
ruby_add_bdepend "test? ( =dev-ruby/mocha-0.10* >=dev-ruby/capybara-2.0.0 >=dev-ruby/ammeter-1.1.2 ~dev-ruby/rspec-rails-${PV} )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Remove .rspec options to avoid dependency on newer rspec when
|
||||
# bootstrapping.
|
||||
rm .rspec || die
|
||||
|
||||
# Avoid bundler-specific specs.
|
||||
rm spec/sanity_check_spec.rb || die
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST rspec-support-3.1.2-git.tgz 31345 SHA256 d45a866caf6e5e7483c08023378e0973257dde1ba542d62e1cd52e336824f38a SHA512 da97694a6e702af9ec50bbb637f0468f0beac1b59ab3429fffa68f11c2acffa20a31baed553550b4e84cbda4136aabd97de2a97dbe35ea908c91063954ddf957 WHIRLPOOL 3c9979d74c477a14ac5448dea9f94fb2a9be463eb7e4fa76d3bc0f40232a6d1935db154d6e9af6fc1b58b1625269394b2f489b584c23d3d110e8e53fc753f1be
|
||||
DIST rspec-support-3.2.1-git.tgz 38054 SHA256 5b4349b9139124d2dfc6900ddde20583503f2147b452b59afaf0a2ec858987a4 SHA512 2813bbd7c875aa3aa958e7ce0ac01f4ad19c581814369daee67d73130de0d0de136a78930ee2da38333892edd3e64bcdb67ac2f8ccd2fa468f4f8a99f96b1344 WHIRLPOOL 98e62fffe7c7f45769c1ec5751ad7b20884c3826183d773da5dc46f9c5652067472f00d1c24318ebd42ae23591c3d94c0e591777455e485b3826653a20c01867
|
||||
DIST rspec-support-3.3.0-git.tgz 45380 SHA256 cea58331f616e407c4ee25bb0b74bad26dbdc793fd341010d37749dea15e30a2 SHA512 88f0fdbc7609093c8f14bff220a03d0788847315e5ac73c025cd181d84a3ac120c294aca8ffff9a0c11c9f11e35019dc337f9e43fc2c33cabe4856d87e36fa1e WHIRLPOOL 6f355bb1dc71bbb7804fd3d4a4227042bbe0d166ef336e4121730abce52e1596b25b94ae38e72a6284ca2eac6d0eb6146a02f54d08792b1ff5a6320d40524a2a
|
||||
|
@ -1,34 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-support/rspec-support-3.1.2.ebuild,v 1.2 2015/01/18 17:34:48 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20 ruby21"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
|
||||
HOMEPAGE="https://github.com/rspec/rspec-support"
|
||||
SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_bdepend "test? ( dev-ruby/rspec:3 )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i -e '/git ls-files/d' ${RUBY_FAKEGEM_GEMSPEC} || die
|
||||
|
||||
# Remove spec that, by following symlinks, tries to scan pretty much
|
||||
# the whole filesystem.
|
||||
rm spec/rspec/support/caller_filter_spec.rb || die
|
||||
}
|
@ -1,6 +1,5 @@
|
||||
DIST rspec-1.3.2.gem 214016 SHA256 cced85c55b92477272d157ea92b925676db76c373f8040a62b8dbe1365296aba SHA512 c4a02214ce825fa3c03c7332963aaa04313687ba343ee1c9a33d40b0b22c9007f4dade734ed388a986d32a5bd64f413edd4a6c508c5f81161530b87960b4a315 WHIRLPOOL d4bdbfbbadc2e4861dc24002ced78e3c560384c628db545e9f3dae3ee11028310f888ad1b225f65792fd418136983011e33667ab3f8138ed712b69f0bf1566bc
|
||||
DIST rspec-2.14.1.gem 4608 SHA256 4f9fc6c58696faa22571ca80d710fd0e4f30eaeb700155968d36df303f279e8c SHA512 cb5f7b720860c7a0f9f3aabf08b2b6ebf0a6cd220fb019c4b9a03368b9fd5b8049c3a374dff1251d261f6d0046f120e574f59b16f3775a478c04bb691785f720 WHIRLPOOL 760e9cf6e61ab097f797d0900bcf4341749a6502d620de2ec3d7bde228e417f4b72a7bdd9f622445314b0890af06307e5545949bebfb6c783aa9cea463158ee5
|
||||
DIST rspec-2.99.0.gem 5632 SHA256 432b31d528aac0dd192b3fa7c83f6cc22dec4a0385fb4020d293cc6777870393 SHA512 bcdf5e86938b102200144c49370e0a0691e39a8720048df2eab1a55f95a5bc5e4ced84c7da86d0ddc83ee4ce0f40602c2ae7ee10e55dccf8bb8b769ab048ebb8 WHIRLPOOL 7c71c569e3dd2a94f4564298c7af1069d29c0a1ca8b6045cd5b8ba0ae6833fa2e948b572d048397adc2aae90578e2cdf1f98e3fb0197697927538e925bef7b1c
|
||||
DIST rspec-3.1.0.gem 9728 SHA256 a8cfd7ac8416089e3fbf470402760b2d913904ea27d5b3b520b89ac668defee5 SHA512 d1f06f923f6be2a791cb9ae3149194ebb9af5bd5213b88a8ef303d4ede05d8b99dadb5c8d57d98d209e4e4b8cc0bab8f6d057b1d01faf48e1341573c28196bea WHIRLPOOL dfe4e0f304d3958861c730d42453b13bbbdab74658542464c9b56eebc13ab6de60c0e45871ae72eff351d9dbbc041bf9c2f3d64e60dd43b0f7d8447d6cf84c0c
|
||||
DIST rspec-3.2.0.gem 10240 SHA256 8e30e6401ab05fd1ae253067b262d7837b0b67a2211b5ede589c754f64007f52 SHA512 743c739b7716430c2b5b75aa57e6d3c17749e8100eca86873cb3c86e9f31a9e80959dd6876eb12d27da363968e7417acb36503ad4a208a3b905e47e0f3fe3a7c WHIRLPOOL fa606b40501b4ed8b183f4b1e48f4cd75308abf49176b5a1a30b3155299d3f83168880f3989ecee2a91c57b9486038b4e6a7e83c983154526cea8cbf97ad69e7
|
||||
DIST rspec-3.3.0.gem 10240 SHA256 99548f038d0b9e55f670e77edb0f1ebcaf127d456c64a1adff803d158efec5ae SHA512 cafc2bcfae261da8f990a8c6327db88f800d73c9fed2dbf4ca360930376906ae6621349ac9cc92b900e069647eb9d1dde1e41feb6ba25b84d30228ae038efbd4 WHIRLPOOL ecf1b141131b60c9b074ed09d794bfc797487c369aa3e9e632c6ca187760b43063fb9eb3d4b354e7516bc8cbbf4f44069afd365020befe1ecfd374c67ea11907
|
||||
|
@ -1,74 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec/rspec-1.3.2.ebuild,v 1.20 2014/12/07 15:22:57 mrueg Exp $
|
||||
|
||||
EAPI=2
|
||||
USE_RUBY="ruby19"
|
||||
|
||||
RUBY_FAKEGEM_TASK_TEST="spec"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="History.rdoc README.rdoc TODO.txt Ruby1.9.rdoc Upgrade.rdoc"
|
||||
|
||||
RUBY_FAKEGEM_BINWRAP="spec"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="rspec.gemspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
|
||||
HOMEPAGE="http://rspec.rubyforge.org/"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
# it's actually optional, but tests fail if it's not installed and
|
||||
# some other package might fail tests, so require it anyway.
|
||||
ruby_add_rdepend ">=dev-ruby/diff-lcs-1.1.2"
|
||||
|
||||
RDEPEND="!<dev-ruby/rspec-rails-${PV}"
|
||||
|
||||
# We should add nokogiri here to make sure that we test as much as
|
||||
# possible, but since it's yet unported to 1.9 and the nokogiri-due
|
||||
# tests fail for sure, we'll be waiting on it.
|
||||
ruby_add_bdepend "test? (
|
||||
>=dev-ruby/hoe-2.0.0
|
||||
dev-ruby/zentest
|
||||
>=dev-ruby/syntax-1.0
|
||||
>=dev-ruby/fakefs-0.2.1 )"
|
||||
ruby_add_bdepend "test? ( =dev-ruby/test-unit-1.2.3 )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Avoid dependency on git.
|
||||
sed -i -e '/git ls-files/d' ${RUBY_FAKEGEM_GEMSPEC} || die
|
||||
|
||||
# Replace reference to /tmp to our temporary directory to avoid
|
||||
# sandbox-related failure.
|
||||
sed -i \
|
||||
-e "s:/tmp:${T}:" \
|
||||
spec/spec/runner/command_line_spec.rb || die
|
||||
|
||||
# Avoid unneeded dependency on bundler
|
||||
sed -i -e '/[Bb]undler/ s:^:#:' Rakefile || die
|
||||
|
||||
# Support ruby 1.9.3
|
||||
cp spec/spec/runner/formatter/html_formatted-1.9.2.html spec/spec/runner/formatter/html_formatted-1.9.3.html || die
|
||||
cp spec/spec/runner/formatter/text_mate_formatted-1.9.2.html spec/spec/runner/formatter/text_mate_formatted-1.9.3.html || die
|
||||
|
||||
# Drop heckle dependency.
|
||||
rm spec/spec/runner/heckler_spec.rb spec/spec/runner/heckle_runner_spec.rb || die
|
||||
sed -i -e '381,398 s:^:#:' spec/spec/runner/option_parser_spec.rb || die
|
||||
|
||||
# Remove broken spec.opts related tests. These were always broken
|
||||
# because they don't set up state properly, but only with
|
||||
# >=fakefs-0.4.2 this started throwing exceptions, bug 340385.
|
||||
sed -i -e '/implicitly loading spec/,/^ end/ s:^:#:' spec/spec/runner/option_parser_spec.rb || die
|
||||
|
||||
}
|
||||
|
||||
src_test() {
|
||||
chmod 0755 "${HOME}" || die "Failed to fix permissions on home"
|
||||
ruby-ng_src_test
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec/rspec-3.1.0.ebuild,v 1.2 2015/01/18 17:35:20 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20 ruby21"
|
||||
|
||||
RUBY_FAKEGEM_TASK_TEST=""
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md"
|
||||
|
||||
inherit ruby-fakegem versionator
|
||||
|
||||
DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
|
||||
HOMEPAGE="https://github.com/rspec/rspec"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
SUBVERSION="$(get_version_component_range 1-2)"
|
||||
|
||||
ruby_add_rdepend "
|
||||
=dev-ruby/rspec-core-${SUBVERSION}*
|
||||
=dev-ruby/rspec-expectations-${SUBVERSION}*
|
||||
=dev-ruby/rspec-mocks-${SUBVERSION}*"
|
@ -1 +1,2 @@
|
||||
DIST ruby-oci8-2.1.7.gem 231424 SHA256 6970edbed87a3f62db99a73f1584e615c572eb5818a9506161fbaff4e623c8c8 SHA512 7d08cba20c6fd1537e140c92cc5a6c7b169d1feb1a6c07a66c5569a6adf456943135935d47ded6cbf0c4a783d14d7877bb827e375c17a3b92dd5db0df8433d37 WHIRLPOOL 16228efb3057aebd82825c848dddef027f91f408f51d68d6d24f904eaedb49275b4969b78f190a0755ee531f0821ae8ece0ce845ad159a6d2b842a32b0d8c11b
|
||||
DIST ruby-oci8-2.1.8.gem 249856 SHA256 f5ab06e0312849b181e0b5e471f73b3070b9317ba289875f7ed44ee963b48f50 SHA512 897e5b86106b45e12bf359b8ed379a36a1c457daa1de9e7a8431f409ec25b12b20e30ed254a2bc77ab1abc0731f1c45e93860a36e0e6903c6fc7573a9ceeef9e WHIRLPOOL 7628ff11626619a82c02792d97ff66a2349af289d92fb52f928ff11c328a17dc8d1e02b16473028d0473f62d05617f07c30814030b32eb9908e52d49f4c259db
|
||||
|
@ -0,0 +1,40 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-oci8/ruby-oci8-2.1.8.ebuild,v 1.1 2015/07/31 05:24:18 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20 ruby21 ruby22"
|
||||
|
||||
inherit multilib ruby-fakegem
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="NEWS README.md ChangeLog"
|
||||
|
||||
DESCRIPTION="A Ruby library for Oracle OCI8"
|
||||
HOMEPAGE="https://rubygems.org/gems/ruby-oci8/"
|
||||
|
||||
LICENSE="Ruby"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND+=" dev-db/oracle-instantclient-basic"
|
||||
DEPEND+=" dev-db/oracle-instantclient-basic"
|
||||
|
||||
EXT_DIR="ext/oci8"
|
||||
|
||||
each_ruby_configure() {
|
||||
# configure the native libraries
|
||||
${RUBY} -C${EXT_DIR} extconf.rb --prefix="${D}/usr" || die "configure failed"
|
||||
}
|
||||
|
||||
each_ruby_compile() {
|
||||
# compile the native libraries
|
||||
emake -C ${EXT_DIR} V=1 || die "could not compile native library"
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
# install the native libraries
|
||||
emake -C ${EXT_DIR} install DESTDIR="${D}" || die "could not install native library"
|
||||
# install the gem files
|
||||
each_fakegem_install
|
||||
}
|
@ -1,5 +1,4 @@
|
||||
DIST sass-3.2.19.gem 261632 SHA256 ddcd7d76d98daa8f3ebbaec196972500a6cf6e854f9c328fcfc9aa556f29bfac SHA512 6c288985d53b905aa3cc5ed471359c8a47b82fc30e9c576332fcf20c3d033e1f683c390e2b300295aa3b4be4f7b640ed5578e937793d0bc3537c268ed6986429 WHIRLPOOL 8a3ac79e5c287b1049fe21058704f81b7817fa217a165c0daeaa17ad68cc4189f75b92cd659ec5afc0b4254ee5a368f4657c00a3228a3b27a802fb8c0e60894e
|
||||
DIST sass-3.3.14.gem 315392 SHA256 95435ddef3aee817ef727e3576852e9cb12f7020027c9f2da8a3835f16ec46c1 SHA512 816c3aa7869648b51708a6a3bb14598dffdbb6335db7800ddb789c3f325f58822e2f3031f25f036eca2aabdd5ce8da1507ce58a75d0edcda17b7ae7a3484f39a WHIRLPOOL 544f2cfceff59872737dc9c564be5a328212c714bfbe78fb954511e5a70ad43cf80eac556026b13ea3fc48943d331925d8d2e7bc8954614e0a1b63e42648581e
|
||||
DIST sass-3.4.14.gem 336384 SHA256 f33dd19fb5f85991b6bac1903aabbce2f8c7bfebb69bbd5b23faa016af795574 SHA512 f7a1395c1ab43129e5f27eb8bc932ecd82e4ed2ef12792b3cbd10a96c1abd6658e8ddf2f314632c6d67d89f22e7c3dd8a73d1c328b264c897a9124264a0b31d5 WHIRLPOOL d8244c1f328b864fe3e9bd23837f8a1d87ce76f70ed461ee9cbe181cdf1af8b9eb31e7938fd57de835db9a427c2113a357663b38d0d606e18eefbbf650bba7d8
|
||||
DIST sass-3.4.15.gem 336896 SHA256 6b461a469d29ec80b52b1401b5e5d58c48762a8f3e00f3b0b2d37b6791a87a59 SHA512 9a6db0d6bdcb788b850e47fb61c5b803e156178eecce7b0c7d0edd2a3578405fa6dc88d397051d738b8bf52c70b6457618afbaf14b5b6fb4bf5f43f057229d0b WHIRLPOOL c3691b0eae97f5b7f4ef1398b99e3702ac32d1894308f9c0ccd2c81a2d30c812e9b775b96d8898ea1941ad11de7f378cf988d38cac6fd8c4e32e678ddedcbaef
|
||||
DIST sass-3.4.16.gem 337408 SHA256 5e0ec434e4a3004ac2c164dcdbb40c38e0aae0c8f38d4e914fc5a4b89dfd0d13 SHA512 b704e5ceede5312da13027c0e1c226dea01f7cb5e4b57956fca68d5891b77f06e7c690ae6ae5a15876686f6d5b2f748fb3fb4879c28bc24d2ee7ddc8cfa09614 WHIRLPOOL 085c819fc1e544a0834ee1a0bbcc4683e594b7dfe2d07a64a299065714e5291a77ec2cc8b19bffb4b4c9a6f68fe65c88724dbb45167f238a8ed4fb648e73e2c8
|
||||
|
@ -1,4 +1,3 @@
|
||||
DIST selenium-webdriver-2.43.0.gem 2833920 SHA256 09fe4374d1541cb45403ad1238c2d88129f3afb985218635af087a06c99a521a SHA512 b43c7763e873a8e6f6173b18b35b629652952678e71249f84df03d659c2ee4d368f254ab772250bca6e21984e0b592b9b7f038d5ce6b4c0e658f6e3ccfedfcab WHIRLPOOL f316a9799b4ad9d08e3a9909e7762c86a64627453b80bbe5a6f16e1e6d41ba8ad762703d3e853baddffc592111525e01345cb53e00120015b0557725677e2c82
|
||||
DIST selenium-webdriver-2.44.0.gem 2834944 SHA256 9c105d14697e339f14d3427bc177e3b2a8fe18710e1879c4666beac60a037519 SHA512 7221df65f83d1635135742716f13ba2f1294ac9981bc73662842da49a8756ecd78446d302241df5f8cda8762f24ff9ce9dab6f1d85f40fad3dd04912197a6e06 WHIRLPOOL b095a6c96c2341786a7a3dec6f08df8d1b1b8d197092b2f84e3edf15f042da7671cf99dee0ae0f53078147b9540a1d08c0b51df93968ca5afe66c8c954780f03
|
||||
DIST selenium-webdriver-2.45.0.gem 2918912 SHA256 907efd8f8605fe5947ca21c58e13e939f59c9d3afafd8f18b563ec669308d4cc SHA512 dfde3601fb34f343b91ebe5f7e077b0430d022ec9f6da326096d1e45622ce00ffab10e3daf91b1ebeb57d5b960dcabdcc44bf46f55efcf667bc99f2c86b70aa0 WHIRLPOOL 234e5709e2d04942625ab62d3dcde12302a4d54d72d02e0dda3ffca5d005d1ca82875d287e435d59d32510c44a307c5cdd4150382e7be5c973667e11920e1814
|
||||
DIST selenium-webdriver-2.46.2.gem 2919424 SHA256 cb6575396f62f86f015c4905970d48da546c59109ed0aa318af061468d19a85c SHA512 b19bd428090381a12b577d82678ea8dfd2eec64c41e7c070c066ad8e9f106c3821a476038132f49862e1e01a5e940fa4e7a15f3655493753303dcedcccc55943 WHIRLPOOL e2413479641c6a4e687a824016af023f76286a0b89af3733e421d103d38e4dd73c8fcbc30b72135699c178060bfa2978ad15941864715c90f5a65311ae10b016
|
||||
DIST selenium-webdriver-2.47.0.gem 2871808 SHA256 78dd73ab91fbaec770aec43e2366f8c8afeb4536367f8fd06de665fae722d09b SHA512 386f6485e346e570588fe533f8a2dd6927268fa5a438fd2fac6ec8ac064ba8f4b43a085acccbe8a94ed09c2bed52e0b799ea5eb7fb080d4a139dd5622a46e301 WHIRLPOOL b05364e972821eac7bc4bc498508457b6343e2a666f33420faf058b920a74c33c6d0cbe6d1b620ca1c4a2d77de05a7f59bbb77c2ec0498b02b9ed4f3edfcb1de
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue