parent
af9ce52500
commit
ce384a3ea1
Binary file not shown.
Binary file not shown.
@ -0,0 +1,8 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit acct-group
|
||||
|
||||
ACCT_GROUP_ID=525
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>matthew@gentoo.org</email>
|
||||
<name>Matthew Smith</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
Binary file not shown.
@ -0,0 +1,12 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit acct-user
|
||||
|
||||
ACCT_USER_ID=525
|
||||
ACCT_USER_HOME=/var/lib/knot-resolver
|
||||
ACCT_USER_GROUPS=( knot-resolver )
|
||||
|
||||
acct-user_add_deps
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>matthew@gentoo.org</email>
|
||||
<name>Matthew Smith</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
Binary file not shown.
@ -1,29 +0,0 @@
|
||||
https://github.com/brailcom/speechd/commit/57e2c131f03ae8244b0478e449d86dea7d5724d8
|
||||
|
||||
musl additionally requires explicitly including sys/stat.h header for stat.
|
||||
Including that would've been the proper patch if 'st' was actually used.
|
||||
|
||||
From 57e2c131f03ae8244b0478e449d86dea7d5724d8 Mon Sep 17 00:00:00 2001
|
||||
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
|
||||
Date: Sun, 13 Mar 2022 18:35:59 +0100
|
||||
Subject: [PATCH] Drop unused variable
|
||||
|
||||
--- a/src/modules/espeak.c
|
||||
+++ b/src/modules/espeak.c
|
||||
@@ -3,7 +3,7 @@
|
||||
* espeak.c - Speech Dispatcher backend for espeak
|
||||
*
|
||||
* Copyright (C) 2007 Brailcom, o.p.s.
|
||||
- * Copyright (C) 2019-2021 Samuel Thibault <samuel.thibault@ens-lyon.org>
|
||||
+ * Copyright (C) 2019-2022 Samuel Thibault <samuel.thibault@ens-lyon.org>
|
||||
*
|
||||
* This is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by
|
||||
@@ -880,7 +880,6 @@ static SPDVoice **espeak_list_synthesis_voices()
|
||||
{
|
||||
const char *identifier = espeak_mbrola[j]->identifier;
|
||||
char *voicename, *dash, *path;
|
||||
- struct stat st;
|
||||
|
||||
totnummbrola++;
|
||||
|
@ -1,466 +0,0 @@
|
||||
From f1c01ccc0ca3f82313ebff3f336d808acee225c8 Mon Sep 17 00:00:00 2001
|
||||
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
|
||||
Date: Fri, 6 Dec 2019 10:27:39 +0100
|
||||
Subject: [PATCH] Fix global varibles definitions
|
||||
|
||||
---
|
||||
src/clients/say/options.c | 24 +++++++++++++++++++
|
||||
src/clients/say/options.h | 42 ++++++++++++++++-----------------
|
||||
src/modules/festival_client.c | 2 ++
|
||||
src/modules/festival_client.h | 2 +-
|
||||
src/modules/module_utils.c | 20 ++++++++++++++++
|
||||
src/modules/module_utils.h | 24 +++++++++----------
|
||||
src/server/compare.c | 1 +
|
||||
src/server/compare.h | 4 ++--
|
||||
src/server/configuration.c | 3 +++
|
||||
src/server/configuration.h | 4 ++--
|
||||
src/server/speaking.c | 10 ++++++++
|
||||
src/server/speaking.h | 14 +++++------
|
||||
src/server/speechd.c | 33 ++++++++++++++++++++++++++
|
||||
src/server/speechd.h | 44 +++++++++++++++++------------------
|
||||
14 files changed, 160 insertions(+), 67 deletions(-)
|
||||
|
||||
diff --git a/src/clients/say/options.c b/src/clients/say/options.c
|
||||
index f75ec7de..cb937d37 100644
|
||||
--- a/src/clients/say/options.c
|
||||
+++ b/src/clients/say/options.c
|
||||
@@ -33,6 +33,30 @@
|
||||
#include "options.h"
|
||||
#include <i18n.h>
|
||||
|
||||
+signed int rate;
|
||||
+signed int pitch;
|
||||
+signed int pitch_range;
|
||||
+signed int volume;
|
||||
+
|
||||
+int list_output_modules;
|
||||
+char *output_module;
|
||||
+char *sound_icon;
|
||||
+char *language;
|
||||
+char *voice_type;
|
||||
+char *punctuation_mode;
|
||||
+char *priority;
|
||||
+int pipe_mode;
|
||||
+SPDDataMode ssml_mode;
|
||||
+int spelling;
|
||||
+int wait_till_end;
|
||||
+int stop_previous;
|
||||
+int cancel_previous;
|
||||
+int list_synthesis_voices;
|
||||
+char *synthesis_voice;
|
||||
+
|
||||
+char *application_name;
|
||||
+char *connection_name;
|
||||
+
|
||||
void options_print_help(char *argv[])
|
||||
{
|
||||
assert(argv);
|
||||
diff --git a/src/clients/say/options.h b/src/clients/say/options.h
|
||||
index 2fdd3b96..dede6dcc 100644
|
||||
--- a/src/clients/say/options.h
|
||||
+++ b/src/clients/say/options.h
|
||||
@@ -22,29 +22,29 @@
|
||||
#include <getopt.h>
|
||||
#include "speechd_types.h"
|
||||
|
||||
-signed int rate;
|
||||
-signed int pitch;
|
||||
-signed int pitch_range;
|
||||
-signed int volume;
|
||||
+extern signed int rate;
|
||||
+extern signed int pitch;
|
||||
+extern signed int pitch_range;
|
||||
+extern signed int volume;
|
||||
|
||||
-int list_output_modules;
|
||||
-char *output_module;
|
||||
-char *sound_icon;
|
||||
-char *language;
|
||||
-char *voice_type;
|
||||
-char *punctuation_mode;
|
||||
-char *priority;
|
||||
-int pipe_mode;
|
||||
-SPDDataMode ssml_mode;
|
||||
-int spelling;
|
||||
-int wait_till_end;
|
||||
-int stop_previous;
|
||||
-int cancel_previous;
|
||||
-int list_synthesis_voices;
|
||||
-char *synthesis_voice;
|
||||
+extern int list_output_modules;
|
||||
+extern char *output_module;
|
||||
+extern char *sound_icon;
|
||||
+extern char *language;
|
||||
+extern char *voice_type;
|
||||
+extern char *punctuation_mode;
|
||||
+extern char *priority;
|
||||
+extern int pipe_mode;
|
||||
+extern SPDDataMode ssml_mode;
|
||||
+extern int spelling;
|
||||
+extern int wait_till_end;
|
||||
+extern int stop_previous;
|
||||
+extern int cancel_previous;
|
||||
+extern int list_synthesis_voices;
|
||||
+extern char *synthesis_voice;
|
||||
|
||||
-char *application_name;
|
||||
-char *connection_name;
|
||||
+extern char *application_name;
|
||||
+extern char *connection_name;
|
||||
|
||||
static struct option long_options[] = {
|
||||
{"rate", 1, 0, 'r'},
|
||||
diff --git a/src/modules/festival_client.c b/src/modules/festival_client.c
|
||||
index bb15cb86..f8327d46 100644
|
||||
--- a/src/modules/festival_client.c
|
||||
+++ b/src/modules/festival_client.c
|
||||
@@ -75,6 +75,8 @@
|
||||
/* For testing endianness */
|
||||
int fapi_endian_loc = 1;
|
||||
|
||||
+int festival_connection_crashed;
|
||||
+
|
||||
static char *socket_receive_file_to_buff(int fd, int *size);
|
||||
|
||||
/* --- MANAGING FT STRUCTURES --- */
|
||||
diff --git a/src/modules/festival_client.h b/src/modules/festival_client.h
|
||||
index 21acdda2..dfbaac15 100644
|
||||
--- a/src/modules/festival_client.h
|
||||
+++ b/src/modules/festival_client.h
|
||||
@@ -44,7 +44,7 @@
|
||||
#define FESTIVAL_DEFAULT_SERVER_PORT 1314
|
||||
#define FESTIVAL_DEFAULT_TEXT_MODE "fundamental"
|
||||
|
||||
-int festival_connection_crashed;
|
||||
+extern int festival_connection_crashed;
|
||||
|
||||
typedef struct FT_Info {
|
||||
int encoding;
|
||||
diff --git a/src/modules/module_utils.c b/src/modules/module_utils.c
|
||||
index 0a3d3308..99e71fcb 100644
|
||||
--- a/src/modules/module_utils.c
|
||||
+++ b/src/modules/module_utils.c
|
||||
@@ -35,6 +35,26 @@ extern char *module_index_mark;
|
||||
|
||||
pthread_mutex_t module_stdout_mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
|
||||
+int log_level;
|
||||
+
|
||||
+AudioID *module_audio_id;
|
||||
+
|
||||
+SPDMsgSettings msg_settings;
|
||||
+SPDMsgSettings msg_settings_old;
|
||||
+
|
||||
+int current_index_mark;
|
||||
+
|
||||
+int Debug;
|
||||
+FILE *CustomDebugFile;
|
||||
+
|
||||
+configfile_t *configfile;
|
||||
+configoption_t *module_dc_options;
|
||||
+int module_num_dc_options;
|
||||
+
|
||||
+const char *module_name;
|
||||
+
|
||||
+char *module_index_mark;
|
||||
+
|
||||
char *do_message(SPDMessageType msgtype)
|
||||
{
|
||||
int ret;
|
||||
diff --git a/src/modules/module_utils.h b/src/modules/module_utils.h
|
||||
index 12382d3b..87c5f813 100644
|
||||
--- a/src/modules/module_utils.h
|
||||
+++ b/src/modules/module_utils.h
|
||||
@@ -49,23 +49,23 @@ typedef struct SPDMarks {
|
||||
gboolean stop;
|
||||
} SPDMarks;
|
||||
|
||||
-int log_level;
|
||||
+extern int log_level;
|
||||
|
||||
-AudioID *module_audio_id;
|
||||
+extern AudioID *module_audio_id;
|
||||
|
||||
-SPDMsgSettings msg_settings;
|
||||
-SPDMsgSettings msg_settings_old;
|
||||
+extern SPDMsgSettings msg_settings;
|
||||
+extern SPDMsgSettings msg_settings_old;
|
||||
|
||||
-int current_index_mark;
|
||||
+extern int current_index_mark;
|
||||
|
||||
-int Debug;
|
||||
-FILE *CustomDebugFile;
|
||||
+extern int Debug;
|
||||
+extern FILE *CustomDebugFile;
|
||||
|
||||
-configfile_t *configfile;
|
||||
-configoption_t *module_dc_options;
|
||||
-int module_num_dc_options;
|
||||
+extern configfile_t *configfile;
|
||||
+extern configoption_t *module_dc_options;
|
||||
+extern int module_num_dc_options;
|
||||
|
||||
-const char *module_name;
|
||||
+extern const char *module_name;
|
||||
|
||||
#define CLEAN_OLD_SETTINGS_TABLE() do { \
|
||||
msg_settings_old.rate = -101;\
|
||||
@@ -395,7 +395,7 @@ configoption_t *add_config_option(configoption_t * options,
|
||||
#define INDEX_MARK_BODY_LEN 6
|
||||
#define INDEX_MARK_BODY "__spd_"
|
||||
|
||||
-char *module_index_mark;
|
||||
+extern char *module_index_mark;
|
||||
|
||||
/* This macro must be placed at the initialization of the module so that the
|
||||
later functions are possible to use */
|
||||
diff --git a/src/server/compare.c b/src/server/compare.c
|
||||
index aa08ed79..8d36c39d 100644
|
||||
--- a/src/server/compare.c
|
||||
+++ b/src/server/compare.c
|
||||
@@ -29,6 +29,7 @@
|
||||
#include "compare.h"
|
||||
|
||||
/* Pointer to compare_message_uid */
|
||||
+gint(*p_msg_lc) ();
|
||||
gint(*p_msg_uid_lc) () = compare_message_uid;
|
||||
|
||||
gint compare_message_uid(gconstpointer element, gconstpointer value, gpointer x)
|
||||
diff --git a/src/server/compare.h b/src/server/compare.h
|
||||
index f0c730c5..380c9ed2 100644
|
||||
--- a/src/server/compare.h
|
||||
+++ b/src/server/compare.h
|
||||
@@ -27,7 +27,7 @@ gint compare_message_uid(gconstpointer element, gconstpointer value,
|
||||
gpointer x);
|
||||
|
||||
/* Pointer to function compare_message_uid */
|
||||
-gint(*p_msg_lc) ();
|
||||
-gint(*p_msg_uid_lc) ();
|
||||
+extern gint(*p_msg_lc) ();
|
||||
+extern gint(*p_msg_uid_lc) ();
|
||||
|
||||
#endif /* COMPARE_H */
|
||||
diff --git a/src/server/configuration.c b/src/server/configuration.c
|
||||
index a21b60c9..ba145995 100644
|
||||
--- a/src/server/configuration.c
|
||||
+++ b/src/server/configuration.c
|
||||
@@ -33,6 +33,9 @@
|
||||
#include "symbols.h"
|
||||
#include <fdsetconv.h>
|
||||
|
||||
+configoption_t *spd_options;
|
||||
+int spd_num_options;
|
||||
+
|
||||
static TFDSetClientSpecific *cl_spec_section;
|
||||
|
||||
/* So that gcc doesn't comply about casts to char* */
|
||||
diff --git a/src/server/configuration.h b/src/server/configuration.h
|
||||
index 5850c63b..bd87a0d5 100644
|
||||
--- a/src/server/configuration.h
|
||||
+++ b/src/server/configuration.h
|
||||
@@ -29,8 +29,8 @@
|
||||
#define SPEECHD_DEFAULT_PORT 6560
|
||||
|
||||
/* Loading options from DotConf */
|
||||
-configoption_t *spd_options;
|
||||
-int spd_num_options;
|
||||
+extern configoption_t *spd_options;
|
||||
+extern int spd_num_options;
|
||||
|
||||
configoption_t *load_config_options(int *num_options);
|
||||
void free_config_options(configoption_t * opts, int *num);
|
||||
diff --git a/src/server/speaking.c b/src/server/speaking.c
|
||||
index 2160c250..61463f3f 100644
|
||||
--- a/src/server/speaking.c
|
||||
+++ b/src/server/speaking.c
|
||||
@@ -46,6 +46,16 @@ static SPDPriority highest_priority = 0;
|
||||
int SPEAKING = 0;
|
||||
int poll_count;
|
||||
|
||||
+OutputModule *speaking_module;
|
||||
+int speaking_uid;
|
||||
+int speaking_gid;
|
||||
+
|
||||
+/* Pause and resume handling */
|
||||
+int pause_requested;
|
||||
+int pause_requested_fd;
|
||||
+int pause_requested_uid;
|
||||
+int resume_requested;
|
||||
+
|
||||
/*
|
||||
Speak() is responsible for getting right text from right
|
||||
queue in right time and saying it loud through the corresponding
|
||||
diff --git a/src/server/speaking.h b/src/server/speaking.h
|
||||
index 690db600..48752dfa 100644
|
||||
--- a/src/server/speaking.h
|
||||
+++ b/src/server/speaking.h
|
||||
@@ -26,15 +26,15 @@
|
||||
|
||||
#include <speechd_types.h>
|
||||
|
||||
-OutputModule *speaking_module;
|
||||
-int speaking_uid;
|
||||
-int speaking_gid;
|
||||
+extern OutputModule *speaking_module;
|
||||
+extern int speaking_uid;
|
||||
+extern int speaking_gid;
|
||||
|
||||
/* Pause and resume handling */
|
||||
-int pause_requested;
|
||||
-int pause_requested_fd;
|
||||
-int pause_requested_uid;
|
||||
-int resume_requested;
|
||||
+extern int pause_requested;
|
||||
+extern int pause_requested_fd;
|
||||
+extern int pause_requested_uid;
|
||||
+extern int resume_requested;
|
||||
|
||||
/* Speak() is responsible for getting right text from right
|
||||
* queue in right time and saying it loud through corresponding
|
||||
diff --git a/src/server/speechd.c b/src/server/speechd.c
|
||||
index 8d3c1de4..6f6e51a5 100644
|
||||
--- a/src/server/speechd.c
|
||||
+++ b/src/server/speechd.c
|
||||
@@ -65,6 +65,39 @@ gint server_timeout_source = 0;
|
||||
|
||||
int client_count = 0;
|
||||
|
||||
+struct SpeechdOptions SpeechdOptions;
|
||||
+struct SpeechdStatus SpeechdStatus;
|
||||
+
|
||||
+pthread_t speak_thread;
|
||||
+pthread_mutex_t logging_mutex;
|
||||
+pthread_mutex_t element_free_mutex;
|
||||
+pthread_mutex_t output_layer_mutex;
|
||||
+pthread_mutex_t socket_com_mutex;
|
||||
+
|
||||
+GHashTable *fd_settings;
|
||||
+GHashTable *language_default_modules;
|
||||
+GHashTable *fd_uid;
|
||||
+
|
||||
+TSpeechDQueue *MessageQueue;
|
||||
+GList *MessagePausedList;
|
||||
+
|
||||
+GList *client_specific_settings;
|
||||
+
|
||||
+GList *last_p5_block;
|
||||
+
|
||||
+TFDSetElement GlobalFDSet;
|
||||
+
|
||||
+int speaking_pipe[2];
|
||||
+
|
||||
+GHashTable *speechd_sockets_status;
|
||||
+
|
||||
+FILE *logfile;
|
||||
+FILE *custom_logfile;
|
||||
+char *custom_log_kind;
|
||||
+FILE *debug_logfile;
|
||||
+
|
||||
+TSpeechDMode spd_mode;
|
||||
+
|
||||
static gboolean speechd_client_terminate(gpointer key, gpointer value, gpointer user);
|
||||
static gboolean speechd_reload_dead_modules(gpointer user_data);
|
||||
static gboolean speechd_load_configuration(gpointer user_data);
|
||||
diff --git a/src/server/speechd.h b/src/server/speechd.h
|
||||
index c0730b76..b23bbb69 100644
|
||||
--- a/src/server/speechd.h
|
||||
+++ b/src/server/speechd.h
|
||||
@@ -123,7 +123,7 @@ typedef enum {
|
||||
SPD_MODE_SINGLE /* */
|
||||
} TSpeechDMode;
|
||||
|
||||
-TSpeechDMode spd_mode;
|
||||
+extern TSpeechDMode spd_mode;
|
||||
|
||||
/* TSpeechDQueue is a queue for messages. */
|
||||
typedef struct {
|
||||
@@ -148,7 +148,7 @@ typedef struct {
|
||||
#include "alloc.h"
|
||||
#include "speaking.h"
|
||||
|
||||
-struct {
|
||||
+extern struct SpeechdOptions {
|
||||
char *communication_method;
|
||||
int communication_method_set;
|
||||
char *socket_path;
|
||||
@@ -172,48 +172,48 @@ struct {
|
||||
int server_timeout_set;
|
||||
} SpeechdOptions;
|
||||
|
||||
-struct {
|
||||
+extern struct SpeechdStatus {
|
||||
int max_uid; /* The largest assigned uid + 1 */
|
||||
int max_gid; /* The largest assigned gid + 1 */
|
||||
int max_fd;
|
||||
} SpeechdStatus;
|
||||
|
||||
/* speak() thread defined in speaking.c */
|
||||
-pthread_t speak_thread;
|
||||
-pthread_mutex_t logging_mutex;
|
||||
-pthread_mutex_t element_free_mutex;
|
||||
-pthread_mutex_t output_layer_mutex;
|
||||
-pthread_mutex_t socket_com_mutex;
|
||||
+extern pthread_t speak_thread;
|
||||
+extern pthread_mutex_t logging_mutex;
|
||||
+extern pthread_mutex_t element_free_mutex;
|
||||
+extern pthread_mutex_t output_layer_mutex;
|
||||
+extern pthread_mutex_t socket_com_mutex;
|
||||
|
||||
/* Table of all configured (and succesfully loaded) output modules */
|
||||
extern GList *output_modules;
|
||||
|
||||
/* Table of settings for each active client (=each active socket)*/
|
||||
-GHashTable *fd_settings;
|
||||
+extern GHashTable *fd_settings;
|
||||
/* Table of default output modules for different languages */
|
||||
-GHashTable *language_default_modules;
|
||||
+extern GHashTable *language_default_modules;
|
||||
/* Table of relations between client file descriptors and their uids */
|
||||
-GHashTable *fd_uid;
|
||||
+extern GHashTable *fd_uid;
|
||||
|
||||
/* Speech Dispatcher main priority queue for messages */
|
||||
-TSpeechDQueue *MessageQueue;
|
||||
+extern TSpeechDQueue *MessageQueue;
|
||||
/* List of messages from paused clients waiting for resume */
|
||||
-GList *MessagePausedList;
|
||||
+extern GList *MessagePausedList;
|
||||
|
||||
/* List of different entries of client-specific configuration */
|
||||
-GList *client_specific_settings;
|
||||
+extern GList *client_specific_settings;
|
||||
|
||||
/* Saves the last received priority progress message */
|
||||
-GList *last_p5_block;
|
||||
+extern GList *last_p5_block;
|
||||
|
||||
/* Global default settings */
|
||||
-TFDSetElement GlobalFDSet;
|
||||
+extern TFDSetElement GlobalFDSet;
|
||||
|
||||
/* Inter thread comm pipe */
|
||||
-int speaking_pipe[2];
|
||||
+extern int speaking_pipe[2];
|
||||
|
||||
/* Managing sockets communication */
|
||||
-GHashTable *speechd_sockets_status;
|
||||
+extern GHashTable *speechd_sockets_status;
|
||||
typedef struct {
|
||||
int awaiting_data;
|
||||
int inside_block;
|
||||
@@ -234,10 +234,10 @@ void MSG2(int level, char *kind, char *format, ...);
|
||||
#define FATAL(msg) do { fatal_error(); MSG(-1,"Fatal error [%s:%d]:"msg, __FILE__, __LINE__); exit(EXIT_FAILURE); } while (0)
|
||||
#define DIE(msg) do { MSG(0,"Error [%s:%d]:"msg, __FILE__, __LINE__); exit(EXIT_FAILURE); } while (0)
|
||||
|
||||
-FILE *logfile;
|
||||
-FILE *custom_logfile;
|
||||
-char *custom_log_kind;
|
||||
-FILE *debug_logfile;
|
||||
+extern FILE *logfile;
|
||||
+extern FILE *custom_logfile;
|
||||
+extern char *custom_log_kind;
|
||||
+extern FILE *debug_logfile;
|
||||
|
||||
/* For debugging purposes, does nothing */
|
||||
void fatal_error(void);
|
Binary file not shown.
@ -1,7 +1,5 @@
|
||||
DIST ansible-core-2.11.7.tar.gz 7108269 BLAKE2B c5080161bfffc34382db86f3940dbbf1c8194a4413b20ef28b3c15503aec905acfffc864041496b4f6b4b77966fee3221b80e90d4b952e38513ba9ce506ee1ae SHA512 f37c925c5302eff30d17f52a04d4a5311e38ee5c1d6db4fbdb32970afa362e0522d6ec3d07bddf40137b2f5ec5fa03a2b72e7e1ed313c28c207f65490e49af92
|
||||
DIST ansible-core-2.12.10.tar.gz 7762154 BLAKE2B deffcc42c124a40ce34ce9a26a0c400b1199018cb05478ea8860500e1a507f9f604c1f40f0d006682fc14ad8f0cc3d035b8ffb1307ee37d26191be3c68e33253 SHA512 8b4eb0e923f976680e81ffbe942c4ddc7ddaaaffe83d14c20f78f7c6ab4f548f21920cdfa57b48de2bc24683028e744a92ac4ca45fecc459ea2b042de8c40737
|
||||
DIST ansible-core-2.12.8.tar.gz 7760983 BLAKE2B 9050033ca76f7f3bb6d5043d58e7a4b2473ee1eb21b5665654e5a571e8ebe408897661ad0f13c4f4b0d1569c1df904434cc4911e1b561b229d8ab16109127930 SHA512 1bb30dba44f11b0655000350b54cae30b85258dccc130d5cd2b1a5c70e0ebe93abd8fe41d5830da34b6fe622276f69f18a0f47bf9d0b0269338a7efbd5820e44
|
||||
DIST ansible-core-2.12.9.tar.gz 7758384 BLAKE2B ed32d1ae9b82e96fe9a2ba2175e2a90961d3a6bb20baecd405e6c0bd1384ac61b9a1f1a1b7bd9f290d89d89c4451129f9049dd9c1dd7897a6d96f1730de4e423 SHA512 da88489c81293e8361067a17891f9330582b3d21c88584e3268f84511811364ce93c4e1b88b3796faea11274c76c64aa8af74608fce9a074fcc8fc3760d2b90b
|
||||
DIST ansible-core-2.13.3.tar.gz 13924100 BLAKE2B aabb87a327f2cd4b3a8f8a30d00b09d50ddf05bbd8720e446275004ba98e87bc1de513dfaedf9ee617c77235c92f171b590295ca8a92d03f47829eacf39e7cb8 SHA512 9be80d0dcd10d012c871b5c95b2357430dfa6809bff794158a4ae06a40761c01db60a966115d7a9141028c96d79a1d99d6bfb191788dc1c467dd0107dba7058c
|
||||
DIST ansible-core-2.13.4.tar.gz 13929408 BLAKE2B 17e27afebf9ce47d49fe9d171549cc46eca13604474545feb1c6e30432334d38a50e76a2fed71e978ebf44dad925ea66d63142599e07f78cbae8a2d25e923d02 SHA512 62678ad80b2073552070f154c55707c1b89bcb9d2d56235d76bb4701344e387d250590a931340cb676a605677cf69ab56b1b15b30d75859de4b294662dc50ee0
|
||||
DIST ansible-core-2.13.5.tar.gz 13934317 BLAKE2B 27ac2040f3626d645e57fab4df9b1b6a349fb81bec4cc8bb87b4dd16351f43d71a6210e32e2906346500742be2bf94512a1b05ba95b7ac0dfeac89696dfc9760 SHA512 e57dca7d457cfbf8a805442dd274499e3a6e4652303dc9e838b46c7dba9a36f2262e548bf9b6ff66f4e4bed5fa648abf9bb9a881047d4c6c0d6efbc91269eca2
|
||||
|
@ -1,61 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
DISTUTILS_USE_SETUPTOOLS=bdepend
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Model-driven deployment, config management, and command execution framework"
|
||||
HOMEPAGE="https://www.ansible.com/"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/ansible/ansible.git"
|
||||
EGIT_BRANCH="devel"
|
||||
else
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv x86 ~x64-macos"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
dev-python/httplib2[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
dev-python/netaddr[${PYTHON_USEDEP}]
|
||||
dev-python/pexpect[${PYTHON_USEDEP}]
|
||||
>=dev-python/resolvelib-0.5.3[${PYTHON_USEDEP}]
|
||||
<dev-python/resolvelib-0.6.0[${PYTHON_USEDEP}]
|
||||
net-misc/sshpass
|
||||
virtual/ssh
|
||||
"
|
||||
DEPEND="
|
||||
>=dev-python/packaging-16.6[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
${RDEPEND}
|
||||
dev-python/bcrypt[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
>=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
|
||||
dev-python/passlib[${PYTHON_USEDEP}]
|
||||
dev-python/coverage[${PYTHON_USEDEP}]
|
||||
dev-vcs/git
|
||||
)"
|
||||
|
||||
python_compile() {
|
||||
export ANSIBLE_SKIP_CONFLICT_CHECK=1
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
nosetests -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches || die
|
||||
}
|
@ -1,53 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
DISTUTILS_USE_SETUPTOOLS=bdepend
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Model-driven deployment, config management, and command execution framework"
|
||||
HOMEPAGE="https://www.ansible.com/"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/ansible/ansible.git"
|
||||
EGIT_BRANCH="devel"
|
||||
else
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv x86 ~x64-macos"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
dev-python/httplib2[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
dev-python/netaddr[${PYTHON_USEDEP}]
|
||||
dev-python/pexpect[${PYTHON_USEDEP}]
|
||||
>=dev-python/resolvelib-0.5.3[${PYTHON_USEDEP}]
|
||||
<dev-python/resolvelib-0.9.0[${PYTHON_USEDEP}]
|
||||
net-misc/sshpass
|
||||
virtual/ssh
|
||||
"
|
||||
BDEPEND="
|
||||
>=dev-python/packaging-16.6[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/botocore[${PYTHON_USEDEP}]
|
||||
dev-python/pytz[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_compile() {
|
||||
export ANSIBLE_SKIP_CONFLICT_CHECK=1
|
||||
distutils-r1_python_compile
|
||||
}
|
@ -1,6 +1,4 @@
|
||||
DIST ansible-4.6.0.tar.gz 35644507 BLAKE2B 94f544caa81ba7d20493f469483612f2ebf9eb1c4be18006b5ca6afdb3bd45428226340a0658b8f1ebecf8bd06396763ba888bb1cbd48aa6b71aaa6a56542d38 SHA512 5b7fad69628dded0b42a25e3f2fbbcc30ef876dc3f97dc1dff2c7db6443d1506fe5db62bc4d8a00ebfb7dc78ecc205a56bea3bf760f85260c835b2286f63b702
|
||||
DIST ansible-5.10.0.tar.gz 36898833 BLAKE2B 5705325c150909e4911cbc6fafb9b6194bcd15cf7a97978835b29cb8b87b671fa888163e28e825d1fc98006c57313677afed63236f4a55af415a70daf5fe305f SHA512 d81b34642533dfaf0c3dba5ecc8ba483efb3d82bd40afa469de2778666e932bec3c20e61ae579184fcbd7f1ec7c8d694617f334ebb3e910db3c9f6709d3b9385
|
||||
DIST ansible-5.9.0.tar.gz 36756162 BLAKE2B 4c713f0a45536aadbd20451c5b5ac37b474cb1d1f9fbfa6031b228a549bfd65e1ae0ee76d6fcd08a0de43d7d07eaebf90d08d00764acad438bcffcdb09c5d58b SHA512 88b26b1ba59a39370ee4a27eedda441d6e6ce8ba8eb857353572c692e49b189e95ed80e5063917c52799fb15bc3608d4c1ada013a7d650909714ca8ea5dd3bbb
|
||||
DIST ansible-6.2.0.tar.gz 35390078 BLAKE2B 1e7a5f69e837fe3ec383ee3f1d631ad7ecbd502e582752edef85b3e2841b38ba78af1e7f080b4da007283291d487e481141bc4261b351f48be45874a3399789f SHA512 7e0751fdedef6bd92a01c06e23dd482bb4b4795ef5a17754eea8f8297cebddb84b4d20041affec6589297214cd820cddaea4618d2f3a158daebb556c4a87bdb0
|
||||
DIST ansible-6.3.0.tar.gz 35480527 BLAKE2B ddc064f6dc4b1fe820f375d150cc5f50875de4bf721eb31e88d0c279e91e96a6fd4d7981e0110f4fc7d424eeb4c44637c611442b4586d756106c437e240f3118 SHA512 3832159065d6400caade84de1ff5f31d64d7b5d9c3a61ae9bb2ad207e410166dac3537c68d0ec3df7c4b8aec61ee48cc4b690e3117a987efa9306c6cbee534e0
|
||||
DIST ansible-6.5.0.tar.gz 38275680 BLAKE2B 5d17ba2b8b3a0ccb1ea9873c0d500ca7984d2d3db19d062807004da5c001ee44d33cd6707226887bef8f6bae0ea9584f8c2c63a8cb176a2244b3b2ad92e13454 SHA512 ddb77304c6a9617186fa0252a0da91632ffc21f910e02fc68e340ed37de0806586a2543700e996db7fb0bb9240a2ee20b7a462f005de200028748b38fbb2e293
|
||||
|
@ -1,29 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Model-driven deployment, config management, and command execution framework"
|
||||
HOMEPAGE="https://www.ansible.com/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv x86 ~x64-macos"
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND=">=app-admin/ansible-core-2.12.0
|
||||
<app-admin/ansible-core-2.13"
|
||||
|
||||
python_compile() {
|
||||
local -x ANSIBLE_SKIP_CONFLICT_CHECK=1
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
python_install() {
|
||||
local -x ANSIBLE_SKIP_CONFLICT_CHECK=1
|
||||
distutils-r1_python_install
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Model-driven deployment, config management, and command execution framework"
|
||||
HOMEPAGE="https://www.ansible.com/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv x86 ~x64-macos"
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND=">=app-admin/ansible-core-2.13.0
|
||||
<app-admin/ansible-core-2.14"
|
||||
|
||||
python_compile() {
|
||||
local -x ANSIBLE_SKIP_CONFLICT_CHECK=1
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
python_install() {
|
||||
local -x ANSIBLE_SKIP_CONFLICT_CHECK=1
|
||||
distutils-r1_python_install
|
||||
}
|
@ -0,0 +1,72 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
|
||||
inherit bash-completion-r1 distutils-r1 multiprocessing
|
||||
|
||||
MY_P=aws-cli-${PV}
|
||||
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||
HOMEPAGE="
|
||||
https://github.com/aws/aws-cli/
|
||||
https://pypi.org/project/awscli/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/aws/aws-cli/archive/${PV}.tar.gz
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
|
||||
|
||||
# botocore is x.(y+2).(z-1)
|
||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(( $(ver_cut 3-) - 1 ))"
|
||||
RDEPEND="
|
||||
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||
dev-python/colorama[${PYTHON_USEDEP}]
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/rsa[${PYTHON_USEDEP}]
|
||||
>=dev-python/s3transfer-0.6.0[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
!app-admin/awscli-bin
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/pytest-forked[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
# do not rely on bundled deps in botocore (sic!)
|
||||
find -name '*.py' -exec sed -i \
|
||||
-e 's:from botocore[.]vendored import:import:' \
|
||||
-e 's:from botocore[.]vendored[.]:from :' \
|
||||
{} + || die
|
||||
# strip overzealous upper bounds on requirements
|
||||
sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# integration tests require AWS credentials and Internet access
|
||||
epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp bin/aws_bash_completer aws
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins bin/aws_zsh_completer.sh _aws
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST calamares-3.2.32.1.tar.gz 3425260 BLAKE2B e10174d400a402cfe3d7a015f4fe7a02ad1653e5a4cdf65c31360467e3b3ff10629d991dd206424d51c67533f8ab550e09e74b4334dbebe9e5fec1a06ed0dbd4 SHA512 30e523dd3c340f9c4385a53a4011ed0f16e317572fa2e5b6acfe638aaf029538f0ab85924999e9683ba10014be99b3c35ff3234bc85cefa2ccd14e2715c87222
|
||||
DIST calamares-3.2.60.tar.gz 4260547 BLAKE2B edf300ce9d534cd506b2341b3ce314bbde7fcc6dac40ad2307e549bbeab7a63ddfe6d7ae8c8176ee1ad4e4b02c9eadcd5efc66872e1f464c39200d8d117dca80 SHA512 dfc01212f74694f10d40dd1d1ad61db384c83021dc9cd4753027a9cf40b92c8e8b2d5032df76533a8f22c05448aba546c9bb21c38c03fb0cb8d7de35fb79fb7f
|
||||
|
@ -1,96 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
ECM_TEST="true"
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit ecm python-single-r1
|
||||
|
||||
DESCRIPTION="Distribution-independent installer framework"
|
||||
HOMEPAGE="https://calamares.io"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="5"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+networkmanager +upower"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
BDEPEND="
|
||||
dev-qt/linguist-tools:5
|
||||
"
|
||||
COMMON_DEPEND="${PYTHON_DEPS}
|
||||
dev-cpp/yaml-cpp:=
|
||||
$(python_gen_cond_dep '
|
||||
dev-libs/boost:=[python,${PYTHON_USEDEP}]
|
||||
dev-libs/libpwquality[${PYTHON_USEDEP}]
|
||||
')
|
||||
dev-qt/qtconcurrent:5
|
||||
dev-qt/qtdbus:5
|
||||
dev-qt/qtdeclarative:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtnetwork:5
|
||||
dev-qt/qtsvg:5
|
||||
dev-qt/qtwebengine:5[widgets]
|
||||
dev-qt/qtwidgets:5
|
||||
dev-qt/qtxml:5
|
||||
kde-frameworks/kconfig:5
|
||||
kde-frameworks/kcoreaddons:5
|
||||
kde-frameworks/kcrash:5
|
||||
kde-frameworks/kpackage:5
|
||||
kde-frameworks/kparts:5
|
||||
kde-frameworks/kservice:5
|
||||
sys-apps/dbus
|
||||
sys-apps/dmidecode
|
||||
sys-auth/polkit-qt
|
||||
>=sys-libs/kpmcore-4.0.0:5=
|
||||
virtual/libcrypt:=
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
test? ( dev-qt/qttest:5 )
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
app-admin/sudo
|
||||
dev-libs/libatasmart
|
||||
net-misc/rsync
|
||||
|| ( sys-boot/grub:2 sys-boot/systemd-boot )
|
||||
sys-boot/os-prober
|
||||
sys-fs/squashfs-tools
|
||||
sys-libs/timezone-data
|
||||
virtual/udev
|
||||
networkmanager? ( net-misc/networkmanager )
|
||||
upower? ( sys-power/upower )
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-3.2.32.1-remove-broken-tests.patch )
|
||||
|
||||
src_prepare() {
|
||||
ecm_src_prepare
|
||||
export PYTHON_INCLUDE_DIRS="$(python_get_includedir)" \
|
||||
PYTHON_INCLUDE_PATH="$(python_get_library_path)"\
|
||||
PYTHON_CFLAGS="$(python_get_CFLAGS)"\
|
||||
PYTHON_LIBS="$(python_get_LIBS)"
|
||||
|
||||
sed -i -e 's:pkexec /usr/bin/calamares:calamares-pkexec:' \
|
||||
calamares.desktop || die
|
||||
sed -i -e 's:Icon=calamares:Icon=drive-harddisk:' \
|
||||
calamares.desktop || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DINSTALL_CONFIG=ON
|
||||
-DWEBVIEW_FORCE_WEBKIT=OFF
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_LIBPARTED=ON
|
||||
-DWITH_PYTHONQT=OFF
|
||||
)
|
||||
|
||||
ecm_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
ecm_src_install
|
||||
dobin "${FILESDIR}"/calamares-pkexec
|
||||
}
|
@ -1,83 +0,0 @@
|
||||
--- a/src/libcalamares/CMakeLists.txt
|
||||
+++ b/src/libcalamares/CMakeLists.txt
|
||||
@@ -216,12 +216,6 @@
|
||||
)
|
||||
|
||||
calamares_add_test(
|
||||
- libcalamaresnetworktest
|
||||
- SOURCES
|
||||
- network/Tests.cpp
|
||||
-)
|
||||
-
|
||||
-calamares_add_test(
|
||||
libcalamarespartitiontest
|
||||
SOURCES
|
||||
partition/Tests.cpp
|
||||
@@ -238,12 +232,6 @@
|
||||
endif()
|
||||
|
||||
calamares_add_test(
|
||||
- libcalamaresutilstest
|
||||
- SOURCES
|
||||
- utils/Tests.cpp
|
||||
-)
|
||||
-
|
||||
-calamares_add_test(
|
||||
libcalamaresutilspathstest
|
||||
SOURCES
|
||||
utils/TestPaths.cpp
|
||||
--- a/src/modules/locale/CMakeLists.txt
|
||||
+++ b/src/modules/locale/CMakeLists.txt
|
||||
@@ -37,18 +37,3 @@
|
||||
yamlcpp
|
||||
SHARED_LIB
|
||||
)
|
||||
-
|
||||
-calamares_add_test(
|
||||
- localetest
|
||||
- SOURCES
|
||||
- Tests.cpp
|
||||
- Config.cpp
|
||||
- LocaleConfiguration.cpp
|
||||
- SetTimezoneJob.cpp
|
||||
- timezonewidget/TimeZoneImage.cpp
|
||||
- DEFINITIONS
|
||||
- SOURCE_DIR="${CMAKE_CURRENT_LIST_DIR}/images"
|
||||
- DEBUG_TIMEZONES=1
|
||||
- LIBRARIES
|
||||
- Qt5::Gui
|
||||
-)
|
||||
--- a/src/modules/packagechooser/CMakeLists.txt
|
||||
+++ b/src/modules/packagechooser/CMakeLists.txt
|
||||
@@ -58,13 +58,3 @@
|
||||
${_extra_libraries}
|
||||
SHARED_LIB
|
||||
)
|
||||
-
|
||||
-calamares_add_test(
|
||||
- packagechoosertest
|
||||
- GUI
|
||||
- SOURCES
|
||||
- Tests.cpp
|
||||
- LIBRARIES
|
||||
- calamares_viewmodule_packagechooser
|
||||
- ${_extra_libraries}
|
||||
-)
|
||||
--- a/src/modules/users/CMakeLists.txt
|
||||
+++ b/src/modules/users/CMakeLists.txt
|
||||
@@ -70,15 +70,6 @@
|
||||
)
|
||||
|
||||
calamares_add_test(
|
||||
- usershostnametest
|
||||
- SOURCES
|
||||
- TestSetHostNameJob.cpp
|
||||
- SetHostNameJob.cpp
|
||||
- LIBRARIES
|
||||
- Qt5::DBus # HostName job can use DBus to systemd
|
||||
-)
|
||||
-
|
||||
-calamares_add_test(
|
||||
userstest
|
||||
SOURCES
|
||||
Tests.cpp
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,24 +0,0 @@
|
||||
https://patch-diff.githubusercontent.com/raw/openwall/john/pull/4822.patch
|
||||
|
||||
From dd9501341808fe19b9c5cd4f8f04edfc5f377077 Mon Sep 17 00:00:00 2001
|
||||
From: Sam James <sam@gentoo.org>
|
||||
Date: Wed, 22 Sep 2021 19:34:38 +0100
|
||||
Subject: [PATCH] configure.ac: avoid bashism in pkg-config check
|
||||
|
||||
== is a Bashism and configure scripts need to work
|
||||
with a POSIX shell, so let's change to = (like in
|
||||
the other condition).
|
||||
|
||||
Signed-off-by: Sam James <sam@gentoo.org>
|
||||
--- a/src/configure.ac
|
||||
+++ b/src/configure.ac
|
||||
@@ -347,7 +347,7 @@ AS_IF([test -z "$STRIP"], [AC_CHECK_TOOL([STRIP], [strip])])
|
||||
dnl Check if we have this at all
|
||||
PKG_PROG_PKG_CONFIG
|
||||
AC_MSG_CHECKING([if pkg-config will be used])
|
||||
-if test "x$PKG_CONFIG" = x || test "x$enable_pkg_config" == xno ; then
|
||||
+if test "x$PKG_CONFIG" = x || test "x$enable_pkg_config" = xno ; then
|
||||
JTR_MSG_RESULT_FAILIF_FORCED([xno], [x$enable_pkg_config], [pkg-config is NOT available])
|
||||
PKG_CONFIG=no
|
||||
else
|
||||
|
@ -1,53 +0,0 @@
|
||||
https://bugs.gentoo.org/786651
|
||||
https://github.com/openwall/john/commit/8152ac071bce1ebc98fac6bed962e90e9b92d8cf.patch
|
||||
|
||||
From 8152ac071bce1ebc98fac6bed962e90e9b92d8cf Mon Sep 17 00:00:00 2001
|
||||
From: Ferry Huberts <ferry.huberts@pelagic.nl>
|
||||
Date: Tue, 9 Mar 2021 22:04:46 +0100
|
||||
Subject: [PATCH] Fix alignment compile errors on GCC 11
|
||||
|
||||
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
|
||||
---
|
||||
src/blake2.h | 8 ++++----
|
||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/src/blake2.h b/src/blake2.h
|
||||
index b05208117e..b4398f9e13 100644
|
||||
--- a/src/blake2.h
|
||||
+++ b/src/blake2.h
|
||||
@@ -57,7 +57,7 @@ extern "C" {
|
||||
uint8_t personal[BLAKE2S_PERSONALBYTES]; // 32
|
||||
} blake2s_param;
|
||||
|
||||
- JTR_ALIGN( 64 ) typedef struct __blake2s_state
|
||||
+ typedef struct JTR_ALIGN( 64 ) __blake2s_state
|
||||
{
|
||||
uint32_t h[8];
|
||||
uint32_t t[2];
|
||||
@@ -82,7 +82,7 @@ extern "C" {
|
||||
uint8_t personal[BLAKE2B_PERSONALBYTES]; // 64
|
||||
} blake2b_param;
|
||||
|
||||
- JTR_ALIGN( 64 ) typedef struct __blake2b_state
|
||||
+ typedef struct JTR_ALIGN( 64 ) __blake2b_state
|
||||
{
|
||||
uint64_t h[8];
|
||||
uint64_t t[2];
|
||||
@@ -94,7 +94,7 @@ extern "C" {
|
||||
#if defined(JOHN_NO_SIMD) || (!defined(__SSE2__) && !defined(__SSE4_1__) && !defined(__XOP__))
|
||||
typedef struct __blake2sp_state
|
||||
#else
|
||||
- JTR_ALIGN( 64 ) typedef struct __blake2sp_state
|
||||
+ typedef struct JTR_ALIGN( 64 ) __blake2sp_state
|
||||
#endif
|
||||
{
|
||||
blake2s_state S[8][1];
|
||||
@@ -106,7 +106,7 @@ extern "C" {
|
||||
#if defined(JOHN_NO_SIMD) || (!defined(__SSE2__) && !defined(__SSE4_1__) && !defined(__XOP__))
|
||||
typedef struct __blake2bp_state
|
||||
#else
|
||||
- JTR_ALIGN( 64 ) typedef struct __blake2bp_state
|
||||
+ typedef struct JTR_ALIGN( 64 ) __blake2bp_state
|
||||
#endif
|
||||
{
|
||||
blake2b_state S[4][1];
|
@ -1,12 +0,0 @@
|
||||
--- a/src/opencl_common.h 2020-08-03 15:49:20.000000000 +0100
|
||||
+++ b/src/opencl_common.h 2020-08-03 15:55:23.081101690 +0100
|
||||
@@ -81,6 +81,9 @@
|
||||
|
||||
#ifndef CL_DEVICE_TOPOLOGY_AMD
|
||||
#define CL_DEVICE_TOPOLOGY_AMD 0x4037
|
||||
+#endif
|
||||
+
|
||||
+#ifndef CL_DEVICE_TOPOLOGY_TYPE_PCIE_AMD
|
||||
typedef union {
|
||||
struct {
|
||||
cl_uint type;
|
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
DIST geiser-0.23.2.tar.gz 653228 BLAKE2B ef0ce0a925a9d5df32a2b67b216dc46da535d68d70b706ffc9dd4d3bb01af879c9533337b2e8293c7bed8d3cdebeecd3f4443b3071f865cf1b7280347b202298 SHA512 dd6852d95296aaef44ad0e9a6723986372d58f9beab20bd45330aeffae590fbd5ea45822032fb9cc2712756e3b13ba5c829fbefeead4e5f41c94400bf059110e
|
||||
DIST geiser-0.25.1.tar.gz 652262 BLAKE2B 8c5a323bedd869c98bf500c861c7731a0b1dd9833f78bf348a2e29d26039c674a00b51529d77b56b213ccc1351b73388010847551b3cd829fb265cffb733864a SHA512 93a8d7e096a24759f5e8c9dbdd2d4ad31caf185c6a970ff1b4364c4492e5f2e0925cc59e97546f9c40dd5913fb2b38e7ade7599ef791c6e198ad0af966030f16
|
||||
DIST geiser-0.26.1.tar.gz 652903 BLAKE2B f2b0121b390b33ee8d93136af9addd92dff7f683820bb32f76f36090b5028e9693f629949dd239a27597fc4e290c21100e1cdc143f5db3fb275bb5bd826d5862 SHA512 dfec087e94e73c4b3a12db56ea3192614c536aaeb3acdb20e1afe0512e69f09388576e19acc6e55a39f8f5b6397bcef40ad7f1cce0504ffe742d1f9478eed44f
|
||||
DIST geiser-0.26.tar.gz 652756 BLAKE2B ac32db838473b8a07394146d5f7dc88ba2bfb36f4d169af14029e202a6d87950a69f0b920ed6a627bda90843cc77c1c7e57f49fee53af87ed9526642bdb65c27 SHA512 df6d7ec500e8e0546c56630f7f2f0901df8fa373924ac812b25ab0cfbeea2a5d0b9f1719850a7454eb7e7d0dda95209c201de85ff3937b717f2bec6ed2513e6b
|
||||
DIST geiser-0.27.tar.gz 653843 BLAKE2B 29f13b274bad54cfed2aaaebcbfbea266b6b1a2dba1d5daf27ee6344929ef449d733f4e5e6d66eb82c45187f79506aa68dfa2a4fc82102004941bad732ccbbf6 SHA512 be526047519aa007045370201965eae8ec1025b670e1e092f4653c64a9127fdf56059e46daa479132e5d6880b5d29845acd94002c48c0e0a151f2c2482a8e940
|
||||
|
@ -0,0 +1 @@
|
||||
DIST metamath-mode-0_p20221005.tar.gz 1490 BLAKE2B fabb0c6c69306e6998a144d19774d442c5803446218607f62c134d5912a891ffa09cedf06c19e16a05cf3790528ba4063054540834ecab42d6852068b88be682 SHA512 39b5dd4a3967ecdc29d7637fc592c9fd398d0fe3c12344e1930fc5082057f3cb78e564319655d063fce62bc4b9581fad7debb5cb4085e5cc642a7d9d7ccede45
|
@ -0,0 +1,4 @@
|
||||
(add-to-list 'load-path "@SITELISP@")
|
||||
(autoload 'metamath-mode "metamath-mode"
|
||||
"Major mode for editing metamath files" t)
|
||||
(add-to-list 'auto-mode-alist '("\\.mm\\'" . metamath-mode))
|
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>gnu-emacs@gentoo.org</email>
|
||||
<name>Gentoo GNU Emacs project</name>
|
||||
</maintainer>
|
||||
<stabilize-allarches />
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/samrushing/metamath-mode/issues/</bugs-to>
|
||||
<remote-id type="github">samrushing/metamath-mode</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,21 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
H=85bd63b88378e9f2dee2f7d5585ec6610bf098a6
|
||||
|
||||
inherit elisp
|
||||
|
||||
DESCRIPTION="Major GNU Emacs mode for metamath files"
|
||||
HOMEPAGE="https://github.com/samrushing/metamath-mode/"
|
||||
SRC_URI="https://github.com/samrushing/${PN}/archive/${H}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
S="${WORKDIR}"/${PN}-${H}
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DOCS=( README.md )
|
||||
SITEFILE="50${PN}-gentoo.el"
|
Binary file not shown.
@ -0,0 +1,350 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
MULTILIB_COMPAT=( abi_x86_{32,64} )
|
||||
inherit autotools flag-o-matic multilib multilib-build toolchain-funcs wrapper
|
||||
|
||||
WINE_GECKO=2.47.3
|
||||
WINE_MONO=7.3.0
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/wine-staging/wine-staging.git"
|
||||
WINE_EGIT_REPO_URI="https://gitlab.winehq.org/wine/wine.git"
|
||||
else
|
||||
(( $(ver_cut 2) )) && WINE_SDIR=$(ver_cut 1).x || WINE_SDIR=$(ver_cut 1).0
|
||||
SRC_URI="
|
||||
https://dl.winehq.org/wine/source/${WINE_SDIR}/wine-${PV}.tar.xz
|
||||
https://github.com/wine-staging/wine-staging/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
fi
|
||||
S="${WORKDIR}/wine-${PV}"
|
||||
|
||||
DESCRIPTION="Free implementation of Windows(tm) on Unix, with Wine-Staging patchset"
|
||||
HOMEPAGE="https://www.winehq.org/"
|
||||
|
||||
LICENSE="LGPL-2.1+ BSD-2 IJG MIT ZLIB gsm libpng2 libtiff"
|
||||
SLOT="${PV}"
|
||||
IUSE="
|
||||
+X +abi_x86_32 +abi_x86_64 +alsa capi crossdev-mingw cups dos
|
||||
llvm-libunwind debug custom-cflags +fontconfig +gecko gphoto2
|
||||
+gstreamer kerberos ldap +mingw +mono netapi nls odbc openal
|
||||
opencl +opengl osmesa pcap perl pulseaudio samba scanner +sdl
|
||||
selinux +ssl +truetype udev udisks +unwind usb v4l +vulkan
|
||||
+xcomposite xinerama"
|
||||
REQUIRED_USE="
|
||||
X? ( truetype )
|
||||
crossdev-mingw? ( mingw )" # bug #551124 for truetype
|
||||
|
||||
# tests are non-trivial to run, can hang easily, don't play well with
|
||||
# sandbox, and several need real opengl/vulkan or network access
|
||||
RESTRICT="test"
|
||||
|
||||
# `grep WINE_CHECK_SONAME configure.ac` + if not directly linked
|
||||
WINE_DLOPEN_DEPEND="
|
||||
X? (
|
||||
x11-libs/libXcursor[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXfixes[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXi[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXrender[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
|
||||
opengl? (
|
||||
media-libs/libglvnd[X,${MULTILIB_USEDEP}]
|
||||
osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
|
||||
)
|
||||
xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
|
||||
xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
cups? ( net-print/cups[${MULTILIB_USEDEP}] )
|
||||
fontconfig? ( media-libs/fontconfig[${MULTILIB_USEDEP}] )
|
||||
kerberos? ( virtual/krb5[${MULTILIB_USEDEP}] )
|
||||
netapi? ( net-fs/samba[${MULTILIB_USEDEP}] )
|
||||
odbc? ( dev-db/unixODBC[${MULTILIB_USEDEP}] )
|
||||
sdl? ( media-libs/libsdl2[haptic,joystick,${MULTILIB_USEDEP}] )
|
||||
ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
|
||||
truetype? ( media-libs/freetype[${MULTILIB_USEDEP}] )
|
||||
udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
|
||||
v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
|
||||
vulkan? ( media-libs/vulkan-loader[${MULTILIB_USEDEP}] )"
|
||||
WINE_COMMON_DEPEND="
|
||||
${WINE_DLOPEN_DEPEND}
|
||||
X? (
|
||||
x11-libs/libX11[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXext[${MULTILIB_USEDEP}]
|
||||
)
|
||||
alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
|
||||
capi? ( net-libs/libcapi:=[${MULTILIB_USEDEP}] )
|
||||
gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
|
||||
gstreamer? (
|
||||
dev-libs/glib:2[${MULTILIB_USEDEP}]
|
||||
media-libs/gst-plugins-base:1.0[${MULTILIB_USEDEP}]
|
||||
media-libs/gstreamer:1.0[${MULTILIB_USEDEP}]
|
||||
)
|
||||
ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
|
||||
openal? ( media-libs/openal[${MULTILIB_USEDEP}] )
|
||||
opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
|
||||
pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
|
||||
pulseaudio? ( media-libs/libpulse[${MULTILIB_USEDEP}] )
|
||||
scanner? ( media-gfx/sane-backends[${MULTILIB_USEDEP}] )
|
||||
udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] )
|
||||
unwind? (
|
||||
llvm-libunwind? ( sys-libs/llvm-libunwind[${MULTILIB_USEDEP}] )
|
||||
!llvm-libunwind? ( sys-libs/libunwind:=[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
usb? ( dev-libs/libusb:1[${MULTILIB_USEDEP}] )"
|
||||
RDEPEND="
|
||||
${WINE_COMMON_DEPEND}
|
||||
app-emulation/wine-desktop-common
|
||||
dos? ( games-emulation/dosbox )
|
||||
gecko? ( app-emulation/wine-gecko:${WINE_GECKO}[${MULTILIB_USEDEP}] )
|
||||
gstreamer? ( media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}] )
|
||||
mono? ( app-emulation/wine-mono:${WINE_MONO} )
|
||||
perl? (
|
||||
dev-lang/perl
|
||||
dev-perl/XML-LibXML
|
||||
)
|
||||
samba? ( net-fs/samba[winbind] )
|
||||
selinux? ( sec-policy/selinux-wine )
|
||||
udisks? ( sys-fs/udisks:2 )"
|
||||
DEPEND="
|
||||
${WINE_COMMON_DEPEND}
|
||||
sys-kernel/linux-headers
|
||||
X? ( x11-base/xorg-proto )"
|
||||
BDEPEND="
|
||||
dev-lang/perl
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
virtual/pkgconfig
|
||||
mingw? ( !crossdev-mingw? ( dev-util/mingw64-toolchain[${MULTILIB_USEDEP}] ) )
|
||||
nls? ( sys-devel/gettext )"
|
||||
IDEPEND="app-eselect/eselect-wine"
|
||||
|
||||
QA_TEXTRELS="usr/lib/*/wine/i386-unix/*.so" # uses -fno-PIC -Wl,-z,notext
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-7.17-noexecstack.patch
|
||||
"${FILESDIR}"/${PN}-7.17-unwind.patch
|
||||
)
|
||||
|
||||
pkg_pretend() {
|
||||
[[ ${MERGE_TYPE} == binary ]] && return
|
||||
|
||||
if use crossdev-mingw && [[ ! -v MINGW_BYPASS ]]; then
|
||||
local mingw=-w64-mingw32
|
||||
for mingw in $(usev abi_x86_64 x86_64${mingw}) $(usev abi_x86_32 i686${mingw}); do
|
||||
if ! type -P ${mingw}-gcc >/dev/null; then
|
||||
eerror "With USE=crossdev-mingw, you must prepare the MinGW toolchain"
|
||||
eerror "yourself by installing sys-devel/crossdev then running:"
|
||||
eerror
|
||||
eerror " crossdev --target ${mingw}"
|
||||
eerror
|
||||
eerror "For more information, please see: https://wiki.gentoo.org/wiki/Mingw"
|
||||
die "USE=crossdev-mingw is enabled, but ${mingw}-gcc was not found"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
EGIT_CHECKOUT_DIR=${WORKDIR}/${P}
|
||||
git-r3_src_unpack
|
||||
|
||||
EGIT_COMMIT=$(<"${EGIT_CHECKOUT_DIR}"/staging/upstream-commit) || die
|
||||
EGIT_REPO_URI=${WINE_EGIT_REPO_URI}
|
||||
EGIT_CHECKOUT_DIR=${S}
|
||||
einfo "Fetching Wine commit matching the current patchset by default (${EGIT_COMMIT})"
|
||||
git-r3_src_unpack
|
||||
else
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local staging=(
|
||||
./patchinstall.sh DESTDIR="${S}"
|
||||
--all
|
||||
--backend=eapply
|
||||
--no-autoconf
|
||||
-W winemenubuilder-Desktop_Icon_Path #652176
|
||||
${MY_WINE_STAGING_CONF}
|
||||
)
|
||||
|
||||
# source patcher in a subshell so can use eapply as a backend
|
||||
ebegin "Running ${staging[*]}"
|
||||
( cd ../${P}/patches && . "${staging[@]}" )
|
||||
eend ${?} || die "Failed to apply the patchset"
|
||||
|
||||
# sanity check, bumping these has a history of oversights
|
||||
local geckomono=$(sed -En '/^#define (GECKO|MONO)_VER/{s/[^0-9.]//gp}' \
|
||||
dlls/appwiz.cpl/addons.c || die)
|
||||
if [[ ${WINE_GECKO}$'\n'${WINE_MONO} != "${geckomono}" ]]; then
|
||||
local gmfatal=
|
||||
[[ ${PV} == *9999 ]] && gmfatal=nonfatal
|
||||
${gmfatal} die -n "gecko/mono mismatch in ebuild, has: " ${geckomono} " (please file a bug)"
|
||||
fi
|
||||
|
||||
default
|
||||
|
||||
# ensure .desktop calls this variant + slot
|
||||
sed -i "/^Exec=/s/wine /${P} /" loader/wine.desktop || die
|
||||
|
||||
# always update for patches (including user's wrt #432348)
|
||||
eautoreconf
|
||||
tools/make_requests || die # perl
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
WINE_PREFIX=/usr/lib/${P}
|
||||
WINE_DATADIR=/usr/share/${P}
|
||||
|
||||
local conf=(
|
||||
--prefix="${EPREFIX}"${WINE_PREFIX}
|
||||
--datadir="${EPREFIX}"${WINE_DATADIR}
|
||||
--includedir="${EPREFIX}"/usr/include/${P}
|
||||
--libdir="${EPREFIX}"${WINE_PREFIX}
|
||||
--mandir="${EPREFIX}"${WINE_DATADIR}/man
|
||||
$(use_enable gecko mshtml)
|
||||
$(use_enable mono mscoree)
|
||||
--disable-tests
|
||||
$(use_with X x)
|
||||
$(use_with alsa)
|
||||
$(use_with capi)
|
||||
$(use_with cups)
|
||||
$(use_with fontconfig)
|
||||
$(use_with gphoto2 gphoto)
|
||||
$(use_with gstreamer)
|
||||
$(use_with kerberos gssapi)
|
||||
$(use_with kerberos krb5)
|
||||
$(use_with ldap)
|
||||
$(use_with mingw)
|
||||
$(use_with netapi)
|
||||
$(use_with nls gettext)
|
||||
$(use_with openal)
|
||||
$(use_with opencl)
|
||||
$(use_with opengl)
|
||||
$(use_with osmesa)
|
||||
--without-oss # media-sound/oss is not packaged (OSSv4)
|
||||
$(use_with pcap)
|
||||
$(use_with pulseaudio pulse)
|
||||
$(use_with scanner sane)
|
||||
$(use_with sdl)
|
||||
$(use_with ssl gnutls)
|
||||
$(use_with truetype freetype)
|
||||
$(use_with udev)
|
||||
$(use_with udisks dbus) # dbus is only used for udisks
|
||||
$(use_with unwind)
|
||||
$(use_with usb)
|
||||
$(use_with v4l v4l2)
|
||||
$(use_with vulkan)
|
||||
$(use_with xcomposite)
|
||||
$(use_with xinerama)
|
||||
$(usev !odbc ac_cv_lib_soname_odbc=)
|
||||
)
|
||||
|
||||
tc-ld-force-bfd #867097
|
||||
use custom-cflags || strip-flags # can break in obscure ways, also no lto
|
||||
use crossdev-mingw || PATH=${BROOT}/usr/lib/mingw64-toolchain/bin:${PATH}
|
||||
|
||||
# build using upstream's way (--with-wine64)
|
||||
# order matters: configure+compile 64->32, install 32->64
|
||||
local -i bits
|
||||
for bits in $(usev abi_x86_64 64) $(usev abi_x86_32 32); do
|
||||
(
|
||||
einfo "Configuring ${PN} for ${bits}bits in ${WORKDIR}/build${bits} ..."
|
||||
|
||||
mkdir ../build${bits} || die
|
||||
cd ../build${bits} || die
|
||||
|
||||
# CROSSCC_amd64/x86 are unused by Wine, but recognized here for users
|
||||
if (( bits == 64 )); then
|
||||
: "${CROSSCC:=${CROSSCC_amd64:-x86_64-w64-mingw32-gcc}}"
|
||||
conf+=( --enable-win64 )
|
||||
elif use amd64; then
|
||||
conf+=(
|
||||
$(usev abi_x86_64 --with-wine64=../build64)
|
||||
TARGETFLAGS=-m32 # for widl
|
||||
)
|
||||
# _setup is optional, but use over Wine's auto-detect (+#472038)
|
||||
multilib_toolchain_setup x86
|
||||
fi
|
||||
: "${CROSSCC:=${CROSSCC_x86:-i686-w64-mingw32-gcc}}"
|
||||
|
||||
# use *FLAGS for mingw, but strip unsupported (e.g. --hash-style=gnu)
|
||||
if use mingw; then
|
||||
: "${CROSSCFLAGS:=$(
|
||||
filter-flags '-fstack-protector*' #870136
|
||||
CC=${CROSSCC} test-flags-CC ${CFLAGS:--O2})}"
|
||||
: "${CROSSLDFLAGS:=$(
|
||||
filter-flags '-fuse-ld=*'
|
||||
CC=${CROSSCC} test-flags-CCLD ${LDFLAGS})}"
|
||||
export CROSS{CC,{C,LD}FLAGS}
|
||||
fi
|
||||
|
||||
ECONF_SOURCE=${S} econf "${conf[@]}"
|
||||
)
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
use abi_x86_64 && emake -C ../build64 # do first
|
||||
use abi_x86_32 && emake -C ../build32
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use abi_x86_32 && emake DESTDIR="${D}" -C ../build32 install
|
||||
use abi_x86_64 && emake DESTDIR="${D}" -C ../build64 install # do last
|
||||
|
||||
# symlink for plain 'wine' and install its man pages if 64bit-only #404331
|
||||
if use abi_x86_64 && use !abi_x86_32; then
|
||||
dosym wine64 ${WINE_PREFIX}/bin/wine
|
||||
dosym wine64-preloader ${WINE_PREFIX}/bin/wine-preloader
|
||||
local man
|
||||
for man in ../build64/loader/wine.*man; do
|
||||
: "${man##*/wine}"
|
||||
: "${_%.*}"
|
||||
insinto ${WINE_DATADIR}/man/${_:+${_#.}/}man1
|
||||
newins ${man} wine.1
|
||||
done
|
||||
fi
|
||||
|
||||
use perl || rm "${ED}"${WINE_DATADIR}/man/man1/wine{dump,maker}.1 \
|
||||
"${ED}"${WINE_PREFIX}/bin/{function_grep.pl,wine{dump,maker}} || die
|
||||
|
||||
# create variant wrappers for eselect-wine
|
||||
local bin
|
||||
for bin in "${ED}"${WINE_PREFIX}/bin/*; do
|
||||
make_wrapper "${bin##*/}-${P#wine-}" "${bin#"${ED}"}"
|
||||
done
|
||||
|
||||
# don't let portage try to strip PE files with the wrong
|
||||
# strip executable and instead handle it here (saves ~120MB)
|
||||
if use mingw; then
|
||||
dostrip -x ${WINE_PREFIX}/wine/{i386,x86_64}-windows
|
||||
use debug ||
|
||||
find "${ED}"${WINE_PREFIX}/wine/*-windows -regex '.*\.\(a\|dll\|exe\)' \
|
||||
-exec $(usex abi_x86_64 x86_64 i686)-w64-mingw32-strip --strip-unneeded {} + || die
|
||||
fi
|
||||
|
||||
dodoc ANNOUNCE AUTHORS README* documentation/README*
|
||||
}
|
||||
|
||||
wine-eselect() {
|
||||
ebegin "${1^}ing ${P} using eselect-wine"
|
||||
eselect wine ${1} ${P} &&
|
||||
eselect wine ${1} --${PN#wine-} ${P} &&
|
||||
eselect wine update --if-unset &&
|
||||
eselect wine update --${PN#wine-} --if-unset
|
||||
eend ${?} || die -n "eselect failed, may need to manually handle ${P}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
wine-eselect register
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
nonfatal wine-eselect deregister
|
||||
}
|
@ -0,0 +1,318 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
MULTILIB_COMPAT=( abi_x86_{32,64} )
|
||||
inherit autotools flag-o-matic multilib multilib-build toolchain-funcs wrapper
|
||||
|
||||
WINE_GECKO=2.47.3
|
||||
WINE_MONO=7.3.0
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://gitlab.winehq.org/wine/wine.git"
|
||||
else
|
||||
(( $(ver_cut 2) )) && WINE_SDIR=$(ver_cut 1).x || WINE_SDIR=$(ver_cut 1).0
|
||||
SRC_URI="https://dl.winehq.org/wine/source/${WINE_SDIR}/wine-${PV}.tar.xz"
|
||||
S="${WORKDIR}/wine-${PV}"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Free implementation of Windows(tm) on Unix, without external patchsets"
|
||||
HOMEPAGE="https://www.winehq.org/"
|
||||
|
||||
LICENSE="LGPL-2.1+ BSD-2 IJG MIT ZLIB gsm libpng2 libtiff"
|
||||
SLOT="${PV}"
|
||||
IUSE="
|
||||
+X +abi_x86_32 +abi_x86_64 +alsa capi crossdev-mingw cups dos
|
||||
llvm-libunwind debug custom-cflags +fontconfig +gecko gphoto2
|
||||
+gstreamer kerberos ldap +mingw +mono netapi nls odbc openal
|
||||
opencl +opengl osmesa pcap perl pulseaudio samba scanner +sdl
|
||||
selinux +ssl +truetype udev udisks +unwind usb v4l +vulkan
|
||||
+xcomposite xinerama"
|
||||
REQUIRED_USE="
|
||||
X? ( truetype )
|
||||
crossdev-mingw? ( mingw )" # bug #551124 for truetype
|
||||
|
||||
# tests are non-trivial to run, can hang easily, don't play well with
|
||||
# sandbox, and several need real opengl/vulkan or network access
|
||||
RESTRICT="test"
|
||||
|
||||
# `grep WINE_CHECK_SONAME configure.ac` + if not directly linked
|
||||
WINE_DLOPEN_DEPEND="
|
||||
X? (
|
||||
x11-libs/libXcursor[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXfixes[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXi[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXrender[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
|
||||
opengl? (
|
||||
media-libs/libglvnd[X,${MULTILIB_USEDEP}]
|
||||
osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
|
||||
)
|
||||
xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
|
||||
xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
cups? ( net-print/cups[${MULTILIB_USEDEP}] )
|
||||
fontconfig? ( media-libs/fontconfig[${MULTILIB_USEDEP}] )
|
||||
kerberos? ( virtual/krb5[${MULTILIB_USEDEP}] )
|
||||
netapi? ( net-fs/samba[${MULTILIB_USEDEP}] )
|
||||
odbc? ( dev-db/unixODBC[${MULTILIB_USEDEP}] )
|
||||
sdl? ( media-libs/libsdl2[haptic,joystick,${MULTILIB_USEDEP}] )
|
||||
ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
|
||||
truetype? ( media-libs/freetype[${MULTILIB_USEDEP}] )
|
||||
udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
|
||||
v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
|
||||
vulkan? ( media-libs/vulkan-loader[${MULTILIB_USEDEP}] )"
|
||||
WINE_COMMON_DEPEND="
|
||||
${WINE_DLOPEN_DEPEND}
|
||||
X? (
|
||||
x11-libs/libX11[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXext[${MULTILIB_USEDEP}]
|
||||
)
|
||||
alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
|
||||
capi? ( net-libs/libcapi:=[${MULTILIB_USEDEP}] )
|
||||
gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
|
||||
gstreamer? (
|
||||
dev-libs/glib:2[${MULTILIB_USEDEP}]
|
||||
media-libs/gst-plugins-base:1.0[${MULTILIB_USEDEP}]
|
||||
media-libs/gstreamer:1.0[${MULTILIB_USEDEP}]
|
||||
)
|
||||
ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
|
||||
openal? ( media-libs/openal[${MULTILIB_USEDEP}] )
|
||||
opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
|
||||
pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
|
||||
pulseaudio? ( media-libs/libpulse[${MULTILIB_USEDEP}] )
|
||||
scanner? ( media-gfx/sane-backends[${MULTILIB_USEDEP}] )
|
||||
udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] )
|
||||
unwind? (
|
||||
llvm-libunwind? ( sys-libs/llvm-libunwind[${MULTILIB_USEDEP}] )
|
||||
!llvm-libunwind? ( sys-libs/libunwind:=[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
usb? ( dev-libs/libusb:1[${MULTILIB_USEDEP}] )"
|
||||
RDEPEND="
|
||||
${WINE_COMMON_DEPEND}
|
||||
app-emulation/wine-desktop-common
|
||||
dos? ( games-emulation/dosbox )
|
||||
gecko? ( app-emulation/wine-gecko:${WINE_GECKO}[${MULTILIB_USEDEP}] )
|
||||
gstreamer? ( media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}] )
|
||||
mono? ( app-emulation/wine-mono:${WINE_MONO} )
|
||||
perl? (
|
||||
dev-lang/perl
|
||||
dev-perl/XML-LibXML
|
||||
)
|
||||
samba? ( net-fs/samba[winbind] )
|
||||
selinux? ( sec-policy/selinux-wine )
|
||||
udisks? ( sys-fs/udisks:2 )"
|
||||
DEPEND="
|
||||
${WINE_COMMON_DEPEND}
|
||||
sys-kernel/linux-headers
|
||||
X? ( x11-base/xorg-proto )"
|
||||
BDEPEND="
|
||||
dev-lang/perl
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
virtual/pkgconfig
|
||||
mingw? ( !crossdev-mingw? ( dev-util/mingw64-toolchain[${MULTILIB_USEDEP}] ) )
|
||||
nls? ( sys-devel/gettext )"
|
||||
IDEPEND="app-eselect/eselect-wine"
|
||||
|
||||
QA_TEXTRELS="usr/lib/*/wine/i386-unix/*.so" # uses -fno-PIC -Wl,-z,notext
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-7.0-noexecstack.patch
|
||||
"${FILESDIR}"/${PN}-7.0-unwind.patch
|
||||
)
|
||||
|
||||
pkg_pretend() {
|
||||
[[ ${MERGE_TYPE} == binary ]] && return
|
||||
|
||||
if use crossdev-mingw && [[ ! -v MINGW_BYPASS ]]; then
|
||||
local mingw=-w64-mingw32
|
||||
for mingw in $(usev abi_x86_64 x86_64${mingw}) $(usev abi_x86_32 i686${mingw}); do
|
||||
if ! type -P ${mingw}-gcc >/dev/null; then
|
||||
eerror "With USE=crossdev-mingw, you must prepare the MinGW toolchain"
|
||||
eerror "yourself by installing sys-devel/crossdev then running:"
|
||||
eerror
|
||||
eerror " crossdev --target ${mingw}"
|
||||
eerror
|
||||
eerror "For more information, please see: https://wiki.gentoo.org/wiki/Mingw"
|
||||
die "USE=crossdev-mingw is enabled, but ${mingw}-gcc was not found"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# sanity check, bumping these has a history of oversights
|
||||
local geckomono=$(sed -En '/^#define (GECKO|MONO)_VER/{s/[^0-9.]//gp}' \
|
||||
dlls/appwiz.cpl/addons.c || die)
|
||||
if [[ ${WINE_GECKO}$'\n'${WINE_MONO} != "${geckomono}" ]]; then
|
||||
local gmfatal=
|
||||
[[ ${PV} == *9999 ]] && gmfatal=nonfatal
|
||||
${gmfatal} die -n "gecko/mono mismatch in ebuild, has: " ${geckomono} " (please file a bug)"
|
||||
fi
|
||||
|
||||
default
|
||||
|
||||
# ensure .desktop calls this variant + slot
|
||||
sed -i "/^Exec=/s/wine /${P} /" loader/wine.desktop || die
|
||||
|
||||
# always update for patches (including user's wrt #432348)
|
||||
eautoreconf
|
||||
tools/make_requests || die # perl
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
WINE_PREFIX=/usr/lib/${P}
|
||||
WINE_DATADIR=/usr/share/${P}
|
||||
|
||||
local conf=(
|
||||
--prefix="${EPREFIX}"${WINE_PREFIX}
|
||||
--datadir="${EPREFIX}"${WINE_DATADIR}
|
||||
--includedir="${EPREFIX}"/usr/include/${P}
|
||||
--libdir="${EPREFIX}"${WINE_PREFIX}
|
||||
--mandir="${EPREFIX}"${WINE_DATADIR}/man
|
||||
$(use_enable gecko mshtml)
|
||||
$(use_enable mono mscoree)
|
||||
--disable-tests
|
||||
$(use_with X x)
|
||||
$(use_with alsa)
|
||||
$(use_with capi)
|
||||
$(use_with cups)
|
||||
$(use_with fontconfig)
|
||||
$(use_with gphoto2 gphoto)
|
||||
$(use_with gstreamer)
|
||||
$(use_with kerberos gssapi)
|
||||
$(use_with kerberos krb5)
|
||||
$(use_with ldap)
|
||||
$(use_with mingw)
|
||||
$(use_with netapi)
|
||||
$(use_with nls gettext)
|
||||
$(use_with openal)
|
||||
$(use_with opencl)
|
||||
$(use_with opengl)
|
||||
$(use_with osmesa)
|
||||
--without-oss # media-sound/oss is not packaged (OSSv4)
|
||||
$(use_with pcap)
|
||||
$(use_with pulseaudio pulse)
|
||||
$(use_with scanner sane)
|
||||
$(use_with sdl)
|
||||
$(use_with ssl gnutls)
|
||||
$(use_with truetype freetype)
|
||||
$(use_with udev)
|
||||
$(use_with udisks dbus) # dbus is only used for udisks
|
||||
$(use_with unwind)
|
||||
$(use_with usb)
|
||||
$(use_with v4l v4l2)
|
||||
$(use_with vulkan)
|
||||
$(use_with xcomposite)
|
||||
$(use_with xinerama)
|
||||
$(usev !odbc ac_cv_lib_soname_odbc=)
|
||||
)
|
||||
|
||||
tc-ld-force-bfd #867097
|
||||
use custom-cflags || strip-flags # can break in obscure ways, also no lto
|
||||
use crossdev-mingw || PATH=${BROOT}/usr/lib/mingw64-toolchain/bin:${PATH}
|
||||
|
||||
# build using upstream's way (--with-wine64)
|
||||
# order matters: configure+compile 64->32, install 32->64
|
||||
local -i bits
|
||||
for bits in $(usev abi_x86_64 64) $(usev abi_x86_32 32); do
|
||||
(
|
||||
einfo "Configuring ${PN} for ${bits}bits in ${WORKDIR}/build${bits} ..."
|
||||
|
||||
mkdir ../build${bits} || die
|
||||
cd ../build${bits} || die
|
||||
|
||||
# CROSSCC_amd64/x86 are unused by Wine, but recognized here for users
|
||||
if (( bits == 64 )); then
|
||||
: "${CROSSCC:=${CROSSCC_amd64:-x86_64-w64-mingw32-gcc}}"
|
||||
conf+=( --enable-win64 )
|
||||
elif use amd64; then
|
||||
conf+=(
|
||||
$(usev abi_x86_64 --with-wine64=../build64)
|
||||
TARGETFLAGS=-m32 # for widl
|
||||
)
|
||||
# _setup is optional, but use over Wine's auto-detect (+#472038)
|
||||
multilib_toolchain_setup x86
|
||||
fi
|
||||
: "${CROSSCC:=${CROSSCC_x86:-i686-w64-mingw32-gcc}}"
|
||||
|
||||
# use *FLAGS for mingw, but strip unsupported (e.g. --hash-style=gnu)
|
||||
if use mingw; then
|
||||
: "${CROSSCFLAGS:=$(
|
||||
filter-flags '-fstack-protector*' #870136
|
||||
CC=${CROSSCC} test-flags-CC ${CFLAGS:--O2})}"
|
||||
: "${CROSSLDFLAGS:=$(
|
||||
filter-flags '-fuse-ld=*'
|
||||
CC=${CROSSCC} test-flags-CCLD ${LDFLAGS})}"
|
||||
export CROSS{CC,{C,LD}FLAGS}
|
||||
fi
|
||||
|
||||
ECONF_SOURCE=${S} econf "${conf[@]}"
|
||||
)
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
use abi_x86_64 && emake -C ../build64 # do first
|
||||
use abi_x86_32 && emake -C ../build32
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use abi_x86_32 && emake DESTDIR="${D}" -C ../build32 install
|
||||
use abi_x86_64 && emake DESTDIR="${D}" -C ../build64 install # do last
|
||||
|
||||
# symlink for plain 'wine' and install its man pages if 64bit-only #404331
|
||||
if use abi_x86_64 && use !abi_x86_32; then
|
||||
dosym wine64 ${WINE_PREFIX}/bin/wine
|
||||
dosym wine64-preloader ${WINE_PREFIX}/bin/wine-preloader
|
||||
local man
|
||||
for man in ../build64/loader/wine.*man; do
|
||||
: "${man##*/wine}"
|
||||
: "${_%.*}"
|
||||
insinto ${WINE_DATADIR}/man/${_:+${_#.}/}man1
|
||||
newins ${man} wine.1
|
||||
done
|
||||
fi
|
||||
|
||||
use perl || rm "${ED}"${WINE_DATADIR}/man/man1/wine{dump,maker}.1 \
|
||||
"${ED}"${WINE_PREFIX}/bin/{function_grep.pl,wine{dump,maker}} || die
|
||||
|
||||
# create variant wrappers for eselect-wine
|
||||
local bin
|
||||
for bin in "${ED}"${WINE_PREFIX}/bin/*; do
|
||||
make_wrapper "${bin##*/}-${P#wine-}" "${bin#"${ED}"}"
|
||||
done
|
||||
|
||||
# don't let portage try to strip PE files with the wrong
|
||||
# strip executable and instead handle it here (saves ~120MB)
|
||||
if use mingw; then
|
||||
dostrip -x ${WINE_PREFIX}/wine/{i386,x86_64}-windows
|
||||
use debug ||
|
||||
find "${ED}"${WINE_PREFIX}/wine/*-windows -regex '.*\.\(a\|dll\|exe\)' \
|
||||
-exec $(usex abi_x86_64 x86_64 i686)-w64-mingw32-strip --strip-unneeded {} + || die
|
||||
fi
|
||||
|
||||
dodoc ANNOUNCE AUTHORS README* documentation/README*
|
||||
}
|
||||
|
||||
wine-eselect() {
|
||||
ebegin "${1^}ing ${P} using eselect-wine"
|
||||
eselect wine ${1} ${P} &&
|
||||
eselect wine ${1} --${PN#wine-} ${P} &&
|
||||
eselect wine update --if-unset &&
|
||||
eselect wine update --${PN#wine-} --if-unset
|
||||
eend ${?} || die -n "eselect failed, may need to manually handle ${P}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
wine-eselect register
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
nonfatal wine-eselect deregister
|
||||
}
|
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
DIST lirc-0.10.1.tar.bz2 2523226 BLAKE2B 47b7ee87de8f64f7f829af519c0d296a85cf91790148927e850965177d4984bb994a0ad122cb59c3db508813d0824ffec45126e794abd08174a052361cea53e5 SHA512 31c0b6ee169b302b99994a2a3fa0ebcae0e01cb83c02fe02acf1de5ba8cf77a091a0221c7d8104448c30930adafe654cd08afb7d0df6b5b7ec2d47df26e5df9d
|
||||
DIST lirc-0.10.2.tar.bz2 2418298 BLAKE2B fa067ff3de9779962e34a87f948b978eae73056d567abb708baac953b0551735cae9610c9d83af17bc9bc44031b8ad43e338665897d86fc8adf81b8ae2c7c983 SHA512 99eb2d4496df8ab6b71f11edb2990fff53d0ccc63060119aa7bb6461f7b8488c3f45012e2fa8f393f5928ea4c4ace91a6b0daeb766a868d420455dacad78512d
|
||||
DIST lirc_0.10.1-7.debian.tar.xz 39392 BLAKE2B cb7527bb33a1d724fea487ca468f98f406c8af894b185580dd285ed46ee0d7f6eeb5c2d66ae09c917d580485568f6510ef968283c56511dc9b4281c77fcc4563 SHA512 9bcd7dc2d30647ab807a65036c02d4adc425af288046d8f0b9bee2f38389f39be21103e4980684827e736b4b76a05688ae870f0871bc50213de429c35b70211e
|
||||
|
@ -0,0 +1,181 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit linux-info python-single-r1 xdg-utils
|
||||
|
||||
DESCRIPTION="decode and send infra-red signals of many commonly used remote controls"
|
||||
HOMEPAGE="https://www.lirc.org/"
|
||||
|
||||
LIRC_DRIVER_DEVICE="/dev/lirc0"
|
||||
|
||||
MY_P=${PN}-${PV/_/-}
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
if [[ ${PV} == *_pre* ]] ; then
|
||||
SRC_URI="https://www.lirc.org/software/snapshots/${MY_P}.tar.bz2"
|
||||
elif [[ ${PV} == *_p* ]] ; then
|
||||
inherit autotools
|
||||
SRC_URI="mirror://sourceforge/lirc/${PN}-$(ver_cut 1-3).tar.bz2"
|
||||
SRC_URI+=" mirror://debian/pool/main/l/${PN}/${PN}_$(ver_cut 1-3)-$(ver_cut 5-).debian.tar.xz"
|
||||
S="${WORKDIR}"/${PN}-$(ver_cut 1-3)
|
||||
else
|
||||
SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ~arm64 ppc ppc64 ~riscv x86"
|
||||
IUSE="audio +devinput doc ftdi gtk inputlirc static-libs systemd +uinput usb X"
|
||||
|
||||
REQUIRED_USE="
|
||||
${PYTHON_REQUIRED_USE}
|
||||
gtk? ( X )
|
||||
"
|
||||
|
||||
COMMON_DEPEND="
|
||||
${PYTHON_DEPS}
|
||||
audio? (
|
||||
>media-libs/portaudio-18
|
||||
media-libs/alsa-lib
|
||||
)
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
')
|
||||
ftdi? ( dev-embedded/libftdi:0 )
|
||||
systemd? ( sys-apps/systemd )
|
||||
usb? ( virtual/libusb:0 )
|
||||
X? (
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
)
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
${COMMON_DEPEND}
|
||||
dev-libs/libxslt
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
')
|
||||
doc? ( app-doc/doxygen )
|
||||
sys-apps/kmod
|
||||
sys-kernel/linux-headers
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
${COMMON_DEPEND}
|
||||
gtk? (
|
||||
x11-libs/vte[introspection]
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/pygobject[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
inputlirc? ( app-misc/inputlircd )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-0.10.1-runtimedirectory.patch"
|
||||
)
|
||||
|
||||
MAKEOPTS+=" -j1"
|
||||
|
||||
pkg_setup() {
|
||||
use uinput && CONFIG_CHECK="~INPUT_UINPUT"
|
||||
python-single-r1_pkg_setup
|
||||
linux-info_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Keep eautoreconf until a new release to fix Python macros
|
||||
# bug #849788
|
||||
if [[ -d "${WORKDIR}"/debian/patches ]] ; then
|
||||
eapply $(sed -e 's:^:../debian/patches/:' ../debian/patches/series || die)
|
||||
eautoreconf
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
xdg_environment_reset
|
||||
econf \
|
||||
--localstatedir="${EPREFIX}/var" \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable devinput) \
|
||||
$(use_enable uinput) \
|
||||
$(use_with X x)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
if use !gtk ; then
|
||||
# lirc-setup requires gtk
|
||||
rm "${ED}"/usr/bin/lirc-setup || die
|
||||
fi
|
||||
|
||||
newinitd "${FILESDIR}"/lircd-0.8.6-r2 lircd
|
||||
newinitd "${FILESDIR}"/lircmd-0.9.4a-r2 lircmd
|
||||
newconfd "${FILESDIR}"/lircd.conf.4 lircd
|
||||
newconfd "${FILESDIR}"/lircmd-0.10.0.conf lircmd
|
||||
|
||||
insinto /etc/modprobe.d/
|
||||
newins "${FILESDIR}"/modprobed.lirc lirc.conf
|
||||
|
||||
newinitd "${FILESDIR}"/irexec-initd-0.9.4a-r2 irexec
|
||||
newconfd "${FILESDIR}"/irexec-confd irexec
|
||||
|
||||
keepdir /etc/lirc
|
||||
if [[ -e "${ED}"/etc/lirc/lircd.conf ]]; then
|
||||
newdoc "${ED}"/etc/lirc/lircd.conf lircd.conf.example
|
||||
fi
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
|
||||
# Avoid QA notice
|
||||
rm -d "${ED}"/var/run/lirc || die
|
||||
rm -d "${ED}"/var/run || die
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
local dir="${EROOT}/etc/modprobe.d"
|
||||
if [[ -a "${dir}"/lirc && ! -a "${dir}"/lirc.conf ]]; then
|
||||
elog "Renaming ${dir}/lirc to lirc.conf"
|
||||
mv -f "${dir}/lirc" "${dir}/lirc.conf" || die
|
||||
fi
|
||||
|
||||
# copy the first file that can be found
|
||||
if [[ -f "${EROOT}"/etc/lirc/lircd.conf ]]; then
|
||||
cp "${EROOT}"/etc/lirc/lircd.conf "${T}"/lircd.conf || die
|
||||
elif [[ -f "${EROOT}"/etc/lircd.conf ]]; then
|
||||
cp "${EROOT}"/etc/lircd.conf "${T}"/lircd.conf || die
|
||||
MOVE_OLD_LIRCD_CONF=1
|
||||
elif [[ -f "${ED}"/etc/lirc/lircd.conf ]]; then
|
||||
cp "${ED}"/etc/lirc/lircd.conf "${T}"/lircd.conf || die
|
||||
fi
|
||||
|
||||
# stop portage from touching the config file
|
||||
if [[ -e "${ED}"/etc/lirc/lircd.conf ]]; then
|
||||
rm -f "${ED}"/etc/lirc/lircd.conf || die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# copy config file to new location
|
||||
# without portage knowing about it
|
||||
# so it will not delete it on unmerge or ever touch it again
|
||||
if [[ -e "${T}"/lircd.conf ]]; then
|
||||
cp "${T}"/lircd.conf "${EROOT}"/etc/lirc/lircd.conf || die
|
||||
if [[ "$MOVE_OLD_LIRCD_CONF" = "1" ]]; then
|
||||
elog "Moved /etc/lircd.conf to /etc/lirc/lircd.conf"
|
||||
rm -f "${EROOT}"/etc/lircd.conf || die
|
||||
fi
|
||||
fi
|
||||
|
||||
einfo "The new default location for lircd.conf is inside of"
|
||||
einfo "${EROOT}/etc/lirc/ directory"
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST mx5000tools-0.1.2.tar.gz 343118 BLAKE2B 74316ca3c730b5e03aa73a8cf5422eb3690b0e088254f9078da549f2d964df065ca7cd09f5f822cb3e66ad5bac0eab546c49703eaf837a132a61ab0755e729b8 SHA512 3773b8b233f02711bb7a768a68ccd3bf72e3d51fbb64ee2a70197d1b51e884a4f40048ba6b7dcde4be0703f25672ccb0fac9b0d6612b8a94f9e01b6a9f463613
|
||||
DIST mx5000tools-0.1.2_p20190613.tar.gz 18848 BLAKE2B d7a708d3ff7336129171297406603a290c0f6b647f40cc336e49fad3b4c8f38465e4eda60b189986fac8e5776a8d98fa7614186f21d73893b6be377770f9fdee SHA512 4e415c10b22dc390c434a2d3cb9b8f6f14fad5caddc0968fe09475d0c3aee4dfe3127db7665a2eabc91f4602064c30c815ef5765fbc485dd184f71637142622b
|
||||
|
@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools
|
||||
|
||||
MX5000_TOOLS_COMMIT="c575ea33f92495b4b0ccdb1ce09099f9c011e43f"
|
||||
DESCRIPTION="Tools for controlling the LCD on a Logitech MX5000 keyboard"
|
||||
HOMEPAGE="https://web.archive.org/web/20160409073317/http://home.gna.org/mx5000tools/"
|
||||
SRC_URI="https://github.com/jwrdegoede/mx5000tools/archive/${MX5000_TOOLS_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}"/${PN}-${MX5000_TOOLS_COMMIT}
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/glib:2
|
||||
media-libs/netpbm:=
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
Binary file not shown.
@ -1,9 +1,18 @@
|
||||
DIST amd64-debug-libreoffice-7.3.4.2.tar.xz 1497883572 BLAKE2B 079fbc4e59aaf3b9ff613194f7c17122046c5389f344be5a504a94781e882ce94079686fda5c399868abe10da9f757fb953a4f90d77ac6337397e0244b56c632 SHA512 9e71642bff4086cb5f63d1088768e6a55e1090c3bfad2da019942be08f396780e7945803a7f6ad9d265a7f16d83b233daa685bfb1e80ccca6513368dedc54797
|
||||
DIST amd64-debug-libreoffice-7.3.6.2.tar.xz 1497854324 BLAKE2B a7da1c43d6fc7e2eb89d6ffcd3e32f6d23fd83cec157964e30a2eae7673dbc63837c3463e2b5596ab88abafe2e20abe1d45df2b347cff7fd3c4bb037b2491e97 SHA512 4d47a14a6df975dfc2f60324901b0524a080761627550c932b6eed0ddc493bd0decb186afa3c96b4ab596b0221fae8c951f20b7a4dee6f11089f0342d0abf104
|
||||
DIST amd64-debug-libreoffice-gnome-7.3.4.2.xd3 1426754 BLAKE2B 81e61d78f1943cdbae2ed7b4ffb5baa3144dfae8a3b8b9aeb9b893b020a85dc5ee2472548958df98c5b628674e73fcd6624884d394a0251bedcf19b321896e20 SHA512 ef77b52a56753225b7d31f63705af90cf5f693de595383e93d4731d10f654ed3135b50d7f582d968c359c75a3348937e45089e7e47aa1e76025e266fc07b120c
|
||||
DIST amd64-debug-libreoffice-gnome-7.3.6.2.xd3 1426602 BLAKE2B 04fca92bf294229becea573728ebfbd27c199e97ad93523a8b267392e354a57c94ccdfe73e11eb53c3954bf9c1a1a0a723d28c1049fdfa7b9c3bd07ef022b86b SHA512 2541f433bd09e429ccb0c90b106d1986f36a8d6d17e41839fcc12a60981aa1d28c1730b2e0761de57bdd64100a39e636400ca5cde7f781079456dea41579b75a
|
||||
DIST amd64-debug-libreoffice-gnome-java-7.3.4.2.xd3 782367431 BLAKE2B 1cb5e9812164d3069c2196b3d52e3b871114789fb1d1e24599a0b12e51ce7bef4d5902ed7589e77df1c1271f25c00192e1742ce43b6ce3a3796fa5448241de27 SHA512 1068effa4b0b0eaa9fb03c06f556a9dc89c22f1702e6aa20690e16a787a557f794e6de726ba2d2280498a7d71e75c67d648f6e7bb36473a4504acba951b1f7c1
|
||||
DIST amd64-debug-libreoffice-gnome-java-7.3.6.2.xd3 780978067 BLAKE2B 701061066369e29ed2d6f648e892fe417ba9efaf5fa64d74b25339a266caaebe3a8c5fddbbd8d4139db16c908956bc41b19db6e159cab332e2e8a26a0a44f8d8 SHA512 7a5dfc35aff3101e61379cef24373c08f137932480d68e169d679dab16df2e8595cb5efa74222829a932a2b35aaf9421bdda5336b32ed940f6ba4f5200fd54d6
|
||||
DIST amd64-debug-libreoffice-java-7.3.4.2.xd3 780949590 BLAKE2B 17bc92b792c19fa89331f2d232888c52bf1c5ee7310143b7ecf3839bd3c9af2406662869c6208d5a99b9506b128fc9fc03bfb889d2c76671f7627d4d1c7f935a SHA512 409d42e47e01f33850616d9bc8aed06e3ab6b19240abab7774e82680fcc7b22f9818d8a037a12d0f9a311a471920bbbf974ae64231395018329232cf6b71ed4a
|
||||
DIST amd64-debug-libreoffice-java-7.3.6.2.xd3 779563852 BLAKE2B 6edb2078f5b84f873a657d3f2a58d4254c5da287265d1bedd4876090441a5906ba51669eb1c22c5dd7114d40e11459118e79b6d913f26f5df7a6ec8559f92df0 SHA512 0b62bc74c245eff426a5f74897b3ebeefb603f778c95d3fd98272d986ebc86c9d546d0b3b2cd04b8fbc62f01305c121f156b2df7484235e1f7559b537c198712
|
||||
DIST amd64-debug-libreoffice-kde-7.3.4.2.xd3 474987720 BLAKE2B 1c1aa0ff471339655f376cfc711bfe2c18ade7eebedd89e2157927a06567892687d5281318097b939b9f21e67dd4a9661a2ef3880f7071cadf484e838f2802e1 SHA512 15dc56a6980795898217b0698931b7abc3abc45e766791eb22f1800f1771e29d41719d7fed0a2afad556704db2cea531a2eb743ea1e4886a7ebc14e30630ea62
|
||||
DIST amd64-debug-libreoffice-kde-7.3.6.2.xd3 474775315 BLAKE2B d857d45e7e1dde56c241d789afffe26d1398049c6fafa60c15345adc6ca56a139f91d709955b89ceb8e2f21d218677663f8b8e4b793a8e26bfc69d6bbfe30a92 SHA512 1f26ea2ba552cfd9ee1e0fada7d7d1c7b14197844d19d823c37ecc015db5fbc0e10d4bffe5d3bb3f0e2247590c653f669f8e87dbcbe5c1298b049de019289a9d
|
||||
DIST amd64-debug-libreoffice-kde-java-7.3.4.2.xd3 785653723 BLAKE2B e99cc01dd938e4a84b71e0597bebd1d14ab452051c5f4f0c4a582266fcaa0af8fb52c9f4ecfb7ce157a622c0a676e996160c43b3a5b82c14b954615bdf4e0db3 SHA512 4ce0fcc0f093a18448773a5342e114635461f42ab3517957f507d061e9e84ff34ef75bc28b6b42886fe61f1f6d5ace2a81229c4b62ceefb644910e7ab1003807
|
||||
DIST amd64-debug-libreoffice-kde-java-7.3.6.2.xd3 784092759 BLAKE2B d81d43912d18a16eaed4edcdd2cc3b635df763d0bc1e5e1eefd158590a12d9d24bb8a68126b3504992c30a71b5bb06cb6fe9c66ba1ab6297b351650f154a4db5 SHA512 5091aa0abb33e39374c281dc7894874d2be82da4d46bc4ce409a4f24ccaaf0493709880db45b1c38f131ad3b195c89f96ed32eb6ee463e9c2175f46c88c55897
|
||||
DIST x86-debug-libreoffice-7.3.4.2.tar.xz 1466311484 BLAKE2B fe6dd69d7475e9b8df48667ed904d694204d6f4a8172c0c7f361031b19356c573a7d72b89e09726257d02ff3e15157ac17dc82d5be04be646032a2d4bc2d982d SHA512 ab3c7fdb00cf235ed0a10898589ed23819ba450ac52d5bda65be92af22a0541994fb178ae6cd478ca0d512b9853f7fa8abae8c5e49cb4914104e006d47eb854f
|
||||
DIST x86-debug-libreoffice-7.3.6.2.tar.xz 7925092 BLAKE2B 2b99dad6c9fc67593396dba4cafa52eb1840965662c96fb3961a7fc7755a144754f93134d57d5592ed59305c50d90340e3cf1dc4639f9b583edc3b95136ed306 SHA512 6df445645c7fbe5782b717f185f30685fa9cfbe199ddece881b565cf425390ec0229226174d55195d6c7b280646d535f897ee838730c904d909dc59d8072ff96
|
||||
DIST x86-debug-libreoffice-gnome-7.3.4.2.xd3 1385099 BLAKE2B 078b2d57f31ac2a78304ff84d97e6dc27d05905652c5e5430f833987a3967c9322765767ccc56a88d3656b2e84a06d99d5902fcfc65d047537182fb33b3d7a4c SHA512 03b03497bfa7edd180e2f501f16a48f8100eb74f9e5d324d9b998b22304ae6273868a848697c923dafbaba6e93c77d91bb90c69c1a4e69a25b92d330a97e7887
|
||||
DIST x86-debug-libreoffice-gnome-7.3.6.2.xd3 38754 BLAKE2B 84270e533f2dc5d68075685e383363c80b7c2325fbf4bac27f6b37c13a141707b65bd04fb3ad7ae1a5ec344c227708d2ca2716d499c40dcdd93cc8a0cef148b7 SHA512 88a51e651a1c3a9a220491951e261ac9a1ae552cb38b59ed21fc33c64b853745a20462680cbce67edc33bfd9dea235dc9100559839bb5129cf350fb7cd67b18b
|
||||
DIST x86-debug-libreoffice-kde-7.3.4.2.xd3 452751390 BLAKE2B 503af0a857842f7654f775c0775d5ccfbcfba6e7367e0b73abe9dd62c4ff74126d73e51ed8ad4dfce44376bb999dd066cb346220072044d40d7288d11743a88b SHA512 f39a58170fef3ab7044327298a8033e62856c23ca5632107a6ca6614111a9bf2a2dd22818f2696359bb3d5981dd641f153d44e433d47ef6ab1f71e83403ed4e8
|
||||
DIST x86-debug-libreoffice-kde-7.3.6.2.xd3 2623238 BLAKE2B 4baaa8dde8369ba21b0a98d0ee36fac0ed99d04d754e7aa6a38f7cb0e97b6f3f903a6fe9b7f924b4ff6ba683d5821b856e7c633a095a30798451a910b7a17295 SHA512 cc5c76d60048e839af936ce79b0a879d7ac3f990ca60986e35458608f979a418a9d1980546f13bfa514f17bbeac0a8287883a493aae50c08a576a52662b871d6
|
||||
|
@ -0,0 +1,85 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
BASE_PACKAGENAME="debug"
|
||||
BASE_AMD64_URI="https://tamiko.43-1.org/distfiles/amd64-${BASE_PACKAGENAME}-"
|
||||
BASE_X86_URI="https://tamiko.43-1.org/distfiles/x86-${BASE_PACKAGENAME}-"
|
||||
|
||||
DESCRIPTION="LibreOffice, a full office productivity suite. Binary package, debug info"
|
||||
HOMEPAGE="https://www.libreoffice.org"
|
||||
SRC_URI_AMD64="
|
||||
${BASE_AMD64_URI}libreoffice-${PVR}.tar.xz
|
||||
kde? (
|
||||
!java? ( ${BASE_AMD64_URI}libreoffice-kde-${PVR}.xd3 )
|
||||
java? ( ${BASE_AMD64_URI}libreoffice-kde-java-${PVR}.xd3 )
|
||||
)
|
||||
gnome? (
|
||||
!java? ( ${BASE_AMD64_URI}libreoffice-gnome-${PVR}.xd3 )
|
||||
java? ( ${BASE_AMD64_URI}libreoffice-gnome-java-${PVR}.xd3 )
|
||||
)
|
||||
!kde? ( !gnome? (
|
||||
java? ( ${BASE_AMD64_URI}libreoffice-java-${PVR}.xd3 )
|
||||
) )
|
||||
"
|
||||
SRC_URI_X86="
|
||||
${BASE_X86_URI}libreoffice-${PVR}.tar.xz
|
||||
kde? (
|
||||
${BASE_X86_URI}libreoffice-kde-${PVR}.xd3
|
||||
)
|
||||
gnome? (
|
||||
${BASE_X86_URI}libreoffice-gnome-${PVR}.xd3
|
||||
)
|
||||
"
|
||||
|
||||
SRC_URI="
|
||||
amd64? ( ${SRC_URI_AMD64} )
|
||||
x86? ( ${SRC_URI_X86} )
|
||||
"
|
||||
|
||||
IUSE="gnome java kde"
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
|
||||
# the = is correct, the debug info needs to fit the exact binary
|
||||
RDEPEND="=app-office/${PN/-debug}-${PVR}[gnome=,java=,kde=]"
|
||||
|
||||
DEPEND="dev-util/xdelta:3"
|
||||
|
||||
RESTRICT="test strip"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
QA_PREBUILT="/usr/*"
|
||||
|
||||
src_unpack() {
|
||||
einfo "Uncompressing distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz"
|
||||
xz -cd "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz" > "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die
|
||||
|
||||
use x86 && use java && die "There is no build for x86 with Java support."
|
||||
|
||||
local patchname
|
||||
use kde && patchname="-kde"
|
||||
use gnome && patchname="-gnome"
|
||||
use java && patchname="${patchname}-java"
|
||||
|
||||
if [[ -n "${patchname}" ]]; then
|
||||
einfo "Patching distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar using ${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3"
|
||||
xdelta3 -d -s "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3" "${WORKDIR}/tmpdist.tar" || die
|
||||
mv "${WORKDIR}/tmpdist.tar" "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die
|
||||
fi
|
||||
|
||||
einfo "Unpacking new ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar"
|
||||
unpack "./${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar"
|
||||
}
|
||||
|
||||
src_configure() { :; }
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
dodir /usr
|
||||
cp -aR "${S}"/usr/* "${ED}"/usr/ || die
|
||||
}
|
@ -1,9 +1,18 @@
|
||||
DIST amd64-bin-libreoffice-7.3.4.2.tar.xz 142347312 BLAKE2B 0db00b707b7c7bd86ef4406eb36958fc7425a1ea1e2783a0e1d2ff0ace9da2633f2e2ea6f6fe1c363f2e31f11cdd1d897da941c5af8133598ad7fedf944d9ea6 SHA512 60559fbcadb97429b9e5b982317ed22bd2501462ad73ad9dd38e32beb197b590898d417fa224288cc8910a6e2701c2ab61ae37d44649612de0f74c9521c7a744
|
||||
DIST amd64-bin-libreoffice-7.3.6.2.tar.xz 142481040 BLAKE2B d591945a87d5d338e178b03b6c4474845bcaaf3766007d4f6d37600546da49ed06d437da162f82c3d09468cadb785977d8b9a2c4cda1e520b0f4c1df137eff78 SHA512 4f5c4f61324d5dba56913f7d3fe9c71d8b547116820fe4b77fab4a815f1ddcc2e1e23108ba9ba8e57316d71914d95c0a4cfffef0b94780ac1aeb50d24c3aaf01
|
||||
DIST amd64-bin-libreoffice-gnome-7.3.4.2.xd3 1483443 BLAKE2B 400a147efa62b6caef172785ec83a6767ab0a1d0faacf86f063e2dbd5f7eaca1258d5f7467943cb89bb1678de9ddc04a0c49884938d554897ebd3eaa5ee1bb57 SHA512 7325a943ec884a4b4048788c5417f380ee4f3130f142a38084c07014dde338bc9fc352eb4a36cd744d3ddb1acdd0e3c59b73751413df6897e7e940a18f93e2c8
|
||||
DIST amd64-bin-libreoffice-gnome-7.3.6.2.xd3 1500304 BLAKE2B f1e376116af83545027d1b48ad85b63ab61c41fde553c9602954e37cad7414b1b43dbe843a104c1a1ad55212c329dda7d01c3bc156ab77f9393b21b1ca6c0068 SHA512 ded283c756cad3b94d1ac1fd0090edef525571431f0e0c2747daa452839657130fefa33599cd6be080f3944d1699f57f1fdb1363eb6ab8af06d532d9133066b3
|
||||
DIST amd64-bin-libreoffice-gnome-java-7.3.4.2.xd3 30944697 BLAKE2B 60af115380b3a0edde5b9ae0efec431b02f4f63e869fc2542c4cf8732b504f6881c0c13cd9c5d9c1e9f4611b3756aba162a07ec3a95022917b587fdede12436f SHA512 937a08b3aa145c794514752082a09037303c3bf5be2e3c4d2da4f0cd6c5e45f627921e814701317f3f7b38dcf9c76e722512268be09ebcf2488563a3403cd95f
|
||||
DIST amd64-bin-libreoffice-gnome-java-7.3.6.2.xd3 30688638 BLAKE2B 96f94967c4893ba693ac95fe93a9e80794c319bb512636df133114f171ec85b494a55f7b4a9be7bc10d748072b8f6c73c8ae0be10dc23d237b7ae0a5767ecca0 SHA512 2c2d5543260628af8b1bc3f49080f935b6b0b82ba56f2e36349183811da92ab976a09d9c3de579b159d9e21a5d5706687c805e3960243b9f35c4ef062bd64fd9
|
||||
DIST amd64-bin-libreoffice-java-7.3.4.2.xd3 30817504 BLAKE2B 5769439f397ee2917efc700d9d576d1a4429a3b60bc11470141b5e38e31f47b4c17ce3d867d76fccd5c16f3e789eb985e0b916a036f63609b477f0abcb8b01d7 SHA512 705738589b069e392551ae93509a1be7c97f0b0a8b13232a2fd60a1dc01b905b4db1eaada349a79b0529994b117dd1ffd402da14de28bdd32c959d5023a16c54
|
||||
DIST amd64-bin-libreoffice-java-7.3.6.2.xd3 30572131 BLAKE2B cac521ab6527391e3e6fc06991db1af01778d12984292e4876a1beef1a40964767625ed006cdd95442792d99f04eb5d5383e1874f8e56b6edbb1dc0a835a6c95 SHA512 e9311a07e40e92088e8653d0c87144b0eb184dc18fc21f4d6d326110b7a81b61c809042f79304b286516074878b0fe2925802d5d9d068f7ccbf5143ac3fb9d02
|
||||
DIST amd64-bin-libreoffice-kde-7.3.4.2.xd3 20934862 BLAKE2B 201b250685d2b936ab158db74d4a136aba4cd48c1432da8574b6be2d64d7bdab08605f3903fe9611ca604e4cbaf72b5a9639184dcf2e6de0f30b63619a9a4264 SHA512 90827fcba878a1f5168e7a0d97ad7825b9d8fa2d1b15c0eb050ff13f35f3a8539f9df511a7bb1006974893cad936f5470308314d522c4d8da3ebef9ec2b219e4
|
||||
DIST amd64-bin-libreoffice-kde-7.3.6.2.xd3 20926607 BLAKE2B 8973af95974d0b0ff582e690af0078aae3bd5ff3a4aee5cd19b6c68535f7a6f9904980d74b29979f5ffd6b5be93ea233a4d6c08ad36b9426fd7e5c80313f20d9 SHA512 a338ae1c937c9f85ad9ecb6ed7a97a750936bd6b9a9d16ada9c3473b6db48fe1797e7b82171acd1d049fd616dca2b2f13a4d44c49e649a891830c16a87be5ddd
|
||||
DIST amd64-bin-libreoffice-kde-java-7.3.4.2.xd3 30964144 BLAKE2B fb98d727cf9d8479e44f48148d06bd956eafcaec4f0f06ff62f50a8297d20adabb8a076979986326dbe9882ad2ec17eb97f7abadc47d523153c85ad8f874c215 SHA512 178b4583c63eff69a384f7a1805e029199a066c70aa8488fffde2e61242a45e1cec99f7c02c57087b66df029db7968e5f3c56ecc81282cd75faedbf6aac06a79
|
||||
DIST amd64-bin-libreoffice-kde-java-7.3.6.2.xd3 30686667 BLAKE2B 91c7e476d5150841bfd8660f95b707ed6cc29869e6bb2fb44035dcea0cdaa1d00a9ee901642c3305bc95e322a19ba7dc09326caf30b49e275f57a3e505d17256 SHA512 3cdd96878e66cab5b1ea339072b5887bdf53e49bfb005a22eb97ab63f462fd132db949482c0e76a3710c27c6b49e3b84553d5197fb45a4559624d508d2d04f96
|
||||
DIST x86-bin-libreoffice-7.3.4.2.tar.xz 144147140 BLAKE2B 8505f1e18bad0c63b16a1663947c27d336525b92d307279bc705f814d8ee93183153b487fb2373788d4147d73fdd6ef9995ff6a3046145bca1a0293b3376b4fe SHA512 34e446882e87fe049056e7bfc5e9ead8bfa3c07823dcdfebba61e2b589ffac0f1797d49bea7f19c462ccfd36bb654653b58cdcee2cb596a9ef3253b4ed08f3a7
|
||||
DIST x86-bin-libreoffice-7.3.6.2.tar.xz 144270792 BLAKE2B 327dc6823e9ad9cbbb85871d6224eb22ee0fcb8048da5c47d279f98dd9affa16a4e0ae9ad261f3f6d1616c8a7d31de4a4d046d90fd70799df6d038b246d597fd SHA512 ed71908fa30924ac0a7e4d7dfa06d039bd1c7a48e93e562cc53fe755c0778790c43f2cd5e5f14c49d95b4209566534219efac7c574f90cf8b15515a5555cc115
|
||||
DIST x86-bin-libreoffice-gnome-7.3.4.2.xd3 1448866 BLAKE2B da76f7fb0503e8cd8c074ef07a84a11b43363d4be75ff287a3a87e53d8185d31e4ca206c5161b989722f7f4e8e6c385380532ecf33a499fc5d38da9687bb9baa SHA512 a391be42e12afb2c78df70e20875433846f19183bc598674d099dc8d4d57f47b455d33f6911822bc4dd0028655d2dbbc8e592085144128ae7a4ee2d4bee10439
|
||||
DIST x86-bin-libreoffice-gnome-7.3.6.2.xd3 1455876 BLAKE2B 9b895a01110df47e8f9ae529b524cfe1ede2ca7d47a06404b92d24dbde5672877c2c117b9ff370c61ca440bac2c2f297960e6ab395e04d3921720a498715f1c7 SHA512 37b1d968d783e862922de770d44ff51686d4c58d6c998c2f2463f8b4323b5e1f88e0aea6456cc8d20835aae549393d4623d15ed474277f78efc0b672e06fb1e9
|
||||
DIST x86-bin-libreoffice-kde-7.3.4.2.xd3 18531900 BLAKE2B e3ed162a68a6fef8b2be6adb0be68a015290ec7c8ec1ba3cdd1a2a33f88a69f3100d1beb89c7dc0b9e4bbc78097316d8a0f7d4edf8294154ebd98cf51836d2b3 SHA512 467e661741fa40643c7a53f7980b44872a6c9bdf654456fecc66d38828928f745922a8dcccc835aa722bd0814cdbd99e4e5e51f4d35c29263e44269574d6a49d
|
||||
DIST x86-bin-libreoffice-kde-7.3.6.2.xd3 19815271 BLAKE2B 7567fb2378e722422dbca7a7a85c48b98376191c3ef80df38402963cbd2ea5fba78ba183960b0b5e9734f6d1b1885d963e5b23935759966e3af810c47480877e SHA512 e58a1787293866681f3501a11eedc9e49d7f69dc0e3713f923ddb78d31a54468ee1ce8e538ed2b8414e78318a5338af8892836ace7a817565e5403f69aacb8f7
|
||||
|
@ -0,0 +1,257 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
BASE_PACKAGENAME="bin"
|
||||
BASE_AMD64_URI="https://tamiko.43-1.org/distfiles/amd64-${BASE_PACKAGENAME}-"
|
||||
BASE_X86_URI="https://tamiko.43-1.org/distfiles/x86-${BASE_PACKAGENAME}-"
|
||||
|
||||
PYTHON_COMPAT=( python3_10 )
|
||||
PYTHON_REQ_USE="xml(+)"
|
||||
|
||||
inherit java-pkg-opt-2 python-single-r1 prefix toolchain-funcs xdg-utils
|
||||
|
||||
DESCRIPTION="A full office productivity suite. Binary package"
|
||||
HOMEPAGE="https://www.libreoffice.org"
|
||||
SRC_URI_AMD64="
|
||||
${BASE_AMD64_URI}libreoffice-${PVR}.tar.xz
|
||||
kde? (
|
||||
!java? ( ${BASE_AMD64_URI}libreoffice-kde-${PVR}.xd3 )
|
||||
java? ( ${BASE_AMD64_URI}libreoffice-kde-java-${PVR}.xd3 )
|
||||
)
|
||||
gnome? (
|
||||
!java? ( ${BASE_AMD64_URI}libreoffice-gnome-${PVR}.xd3 )
|
||||
java? ( ${BASE_AMD64_URI}libreoffice-gnome-java-${PVR}.xd3 )
|
||||
)
|
||||
!kde? ( !gnome? (
|
||||
java? ( ${BASE_AMD64_URI}libreoffice-java-${PVR}.xd3 )
|
||||
) )
|
||||
"
|
||||
SRC_URI_X86="
|
||||
${BASE_X86_URI}libreoffice-${PVR}.tar.xz
|
||||
kde? (
|
||||
${BASE_X86_URI}libreoffice-kde-${PVR}.xd3
|
||||
)
|
||||
gnome? (
|
||||
${BASE_X86_URI}libreoffice-gnome-${PVR}.xd3
|
||||
)
|
||||
"
|
||||
|
||||
SRC_URI="
|
||||
amd64? ( ${SRC_URI_AMD64} )
|
||||
x86? ( ${SRC_URI_X86} )
|
||||
"
|
||||
|
||||
IUSE="gnome java kde"
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
|
||||
BIN_COMMON_DEPEND="
|
||||
app-text/hunspell:0/1.7
|
||||
=app-text/libexttextcat-3.4*
|
||||
=app-text/libmwaw-0.3*
|
||||
dev-cpp/abseil-cpp:0/20211102
|
||||
dev-libs/boost:0/1.79.0
|
||||
dev-libs/icu:0/71.1
|
||||
dev-libs/liborcus:0/0.17
|
||||
>=media-gfx/graphite2-1.3.10
|
||||
media-libs/harfbuzz:0/4.0.0[icu]
|
||||
media-libs/libjpeg-turbo:0/0.2
|
||||
media-libs/libpng:0/16
|
||||
media-libs/openjpeg:2/7
|
||||
media-libs/zxing-cpp:0/1.4
|
||||
>=sys-devel/gcc-11.3.0
|
||||
>=sys-libs/glibc-2.35
|
||||
"
|
||||
|
||||
# PLEASE place any restrictions that are specific to the binary builds
|
||||
# into the BIN_COMMON_DEPEND block above.
|
||||
# All dependencies below this point should remain identical to those in
|
||||
# the source ebuilds.
|
||||
|
||||
COMMON_DEPEND="
|
||||
${BIN_COMMON_DEPEND}
|
||||
${PYTHON_DEPS}
|
||||
app-arch/unzip
|
||||
app-arch/zip
|
||||
app-crypt/gpgme[cxx]
|
||||
app-text/hunspell:=
|
||||
>=app-text/libabw-0.1.0
|
||||
>=app-text/libebook-0.1
|
||||
app-text/libepubgen
|
||||
>=app-text/libetonyek-0.1
|
||||
app-text/libexttextcat
|
||||
app-text/liblangtag
|
||||
>=app-text/libmspub-0.1.0
|
||||
>=app-text/libmwaw-0.3.1
|
||||
>=app-text/libnumbertext-1.0.6
|
||||
>=app-text/libodfgen-0.1.0
|
||||
app-text/libqxp
|
||||
app-text/libstaroffice
|
||||
app-text/libwpd:0.10[tools]
|
||||
app-text/libwpg:0.3
|
||||
>=app-text/libwps-0.4
|
||||
app-text/mythes
|
||||
dev-cpp/abseil-cpp:=
|
||||
>=dev-cpp/clucene-2.3.3.4-r2
|
||||
>=dev-cpp/libcmis-0.5.2
|
||||
dev-db/unixODBC
|
||||
>=games-engines/box2d-2.4.1:0
|
||||
dev-lang/perl
|
||||
dev-libs/boost:=[nls]
|
||||
dev-libs/expat
|
||||
dev-libs/hyphen
|
||||
dev-libs/icu:=
|
||||
dev-libs/libassuan
|
||||
dev-libs/libgpg-error
|
||||
>=dev-libs/liborcus-0.17.2:0/0.17
|
||||
dev-libs/librevenge
|
||||
dev-libs/libxml2
|
||||
dev-libs/libxslt
|
||||
dev-libs/nspr
|
||||
dev-libs/nss
|
||||
>=dev-libs/redland-1.0.16
|
||||
>=dev-libs/xmlsec-1.2.28[nss]
|
||||
media-gfx/fontforge
|
||||
media-gfx/graphite2
|
||||
media-libs/fontconfig
|
||||
>=media-libs/freetype-2.11.0-r1:2
|
||||
>=media-libs/harfbuzz-0.9.42:=[graphite,icu]
|
||||
media-libs/lcms:2
|
||||
>=media-libs/libcdr-0.1.0
|
||||
>=media-libs/libepoxy-1.3.1[X]
|
||||
>=media-libs/libfreehand-0.1.0
|
||||
media-libs/libjpeg-turbo:=
|
||||
media-libs/libpagemaker
|
||||
>=media-libs/libpng-1.4:0=
|
||||
>=media-libs/libvisio-0.1.0
|
||||
media-libs/libzmf
|
||||
media-libs/openjpeg:=
|
||||
media-libs/zxing-cpp:=
|
||||
>=net-libs/neon-0.31.1:=
|
||||
net-misc/curl
|
||||
sci-mathematics/lpsolve
|
||||
sys-libs/zlib
|
||||
virtual/glu
|
||||
virtual/opengl
|
||||
x11-libs/cairo[X]
|
||||
x11-libs/libXinerama
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXrender
|
||||
net-print/cups
|
||||
sys-apps/dbus[X]
|
||||
gnome? (
|
||||
dev-libs/glib:2
|
||||
gnome-base/dconf
|
||||
gnome-extra/evolution-data-server
|
||||
)
|
||||
media-libs/gstreamer:1.0
|
||||
media-libs/gst-plugins-base:1.0
|
||||
!kde? (
|
||||
dev-libs/glib:2
|
||||
dev-libs/gobject-introspection
|
||||
gnome-base/dconf
|
||||
media-libs/mesa[egl(+)]
|
||||
x11-libs/gtk+:3[X]
|
||||
x11-libs/pango
|
||||
)
|
||||
kde? (
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
dev-qt/qtx11extras:5
|
||||
kde-frameworks/kconfig:5
|
||||
kde-frameworks/kcoreaddons:5
|
||||
kde-frameworks/ki18n:5
|
||||
kde-frameworks/kio:5
|
||||
kde-frameworks/kwindowsystem:5
|
||||
)
|
||||
dev-db/mariadb-connector-c
|
||||
"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
acct-group/libreoffice
|
||||
acct-user/libreoffice
|
||||
!app-office/libreoffice
|
||||
!app-office/openoffice
|
||||
media-fonts/liberation-fonts
|
||||
|| ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
|
||||
java? ( virtual/jre:11 )
|
||||
kde? ( kde-frameworks/breeze-icons:* )
|
||||
"
|
||||
|
||||
PDEPEND="
|
||||
=app-office/libreoffice-l10n-$(ver_cut 1-4)*
|
||||
"
|
||||
|
||||
DEPEND="dev-util/xdelta:3"
|
||||
|
||||
# only one flavor at a time
|
||||
REQUIRED_USE="kde? ( !gnome ) gnome? ( !kde ) ${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RESTRICT="test strip"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
PYTHON_UPDATER_IGNORE="1"
|
||||
|
||||
QA_PREBUILT="/usr/*"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
einfo "Uncompressing distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz"
|
||||
xz -cd "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz" > "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die
|
||||
|
||||
use x86 && use java && die "There is no build for x86 with Java support."
|
||||
|
||||
local patchname
|
||||
use kde && patchname="-kde"
|
||||
use gnome && patchname="-gnome"
|
||||
use java && patchname="${patchname}-java"
|
||||
|
||||
if [[ -n "${patchname}" ]]; then
|
||||
einfo "Patching distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar using ${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3"
|
||||
xdelta3 -d -s "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3" "${WORKDIR}/tmpdist.tar" || die
|
||||
mv "${WORKDIR}/tmpdist.tar" "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die
|
||||
fi
|
||||
|
||||
einfo "Unpacking new ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar"
|
||||
unpack "./${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cp "${FILESDIR}"/50-${PN} "${T}"
|
||||
eprefixify "${T}"/50-${PN}
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() { :; }
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
dodir /usr
|
||||
cp -aR "${S}"/usr/* "${ED}"/usr/
|
||||
|
||||
# prevent revdep-rebuild from attempting to rebuild all the time
|
||||
insinto /etc/revdep-rebuild && doins "${T}/50-${PN}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
|
||||
ewarn 'If you plan to use the Base application you should use a source build and enable java and firebird.'
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,6 +1,4 @@
|
||||
DIST mongodb-src-r4.2.15.tar.gz 62187847 BLAKE2B eb9cbf52b5aeb95d3c6c6bd14da9731a85a24e2c3560163be999bddff1cd1ac90f9cf07b4c3fe22e35ffcdd174a6b2720a801fa179f574ff33150d1a4660ef9e SHA512 ee46a2dfb7ae23ad38da49bf126a2bc7932bded8f01d34516ad575d2aed5d6233c5ad620b2a4424a98afb9e80e26acf40c66982cdd0637c13f0f7aaae8b746a0
|
||||
DIST mongodb-src-r4.2.17.tar.gz 62216350 BLAKE2B 48169685a25fe00b5a1985bce1e65e13d1dc9c0a56ece6b9c735d8cd212d9c0c5e2912d593bdda351cceda49c8ed7962db42ca37814f88e0bf927066a2d8241b SHA512 ad5448aa6ea232746fdbc7107bd642e827fb7b9182c075f204722e7f625cbc83e7b0a199d2feb56bf27a8851bb38f9740abf0b38c022ddc92e676e7a2d81aef6
|
||||
DIST mongodb-src-r4.4.10.tar.gz 50636024 BLAKE2B 4b840e1a17b3fcba32d30c649d981b1e2b1d5dd98deab99be599fd5d2aa70b75ff4225542d8da095ec4cb4615f9ccccfa455129d71ed39549efde0a025d7dac4 SHA512 afc04f90e03ec64fd74bdfe2bf33aaa5fc148811af91a8437dfb81fd3a784eedd80128886db99e247ec7e09dc5a73cf34f908ab927942648e15c8f12af6b64e2
|
||||
DIST mongodb-src-r4.4.8.tar.gz 50492854 BLAKE2B 4776b17e88104879ea69468ff277b07dc317d936654bb26c69750e0aaf8f51bea73994e7fc4841228d8506db392e0454b5fd16257071b86a2e4ad34e90f33632 SHA512 9b0cd81c9c731255a6c079c040ed342a51a72e3ea72047d3ae959c0afde50b0cdb1fcfe7fcbea30c449a3618a09d213752277cee6eb9bc0a55915b9229543606
|
||||
DIST mongodb-src-r5.0.2.tar.gz 54527477 BLAKE2B f71102f4c2711074498c288817ee06156cb030ee647541f6604582b918fb75239cc5a551c08b745b6296a2693d2a1ac28d94c1365b86bc508257b9d42142612a SHA512 179d57a0a12c5c23e54208c262edff6976f509324be8ad68d6761997dc702534f618dea1a24568fdb2d716359762e64da54e2d152a685447b4e0450996bf2154
|
||||
DIST mongodb-src-r5.0.5.tar.gz 54862473 BLAKE2B aafa693da904177a11067603f3835e2ee69abcdb206c2d36983633baa6008b861efeb590880098557e224cd7d6ac8fb23e4e9c63724d76bf90422862c99cdfe9 SHA512 318e58285c8a88fc3a4467ba8c1e6487a2aec403db02c50dbdb53df9a6671b9ea2417c8ee8212b205d642327d0d4bdd76f4bc9543c47e53115dfb981ef73f63e
|
||||
|
@ -1,176 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..9} )
|
||||
|
||||
SCONS_MIN_VERSION="2.5.0"
|
||||
CHECKREQS_DISK_BUILD="2400M"
|
||||
CHECKREQS_DISK_USR="512M"
|
||||
CHECKREQS_MEMORY="1024M"
|
||||
|
||||
inherit check-reqs flag-o-matic multiprocessing pax-utils python-any-r1 scons-utils systemd toolchain-funcs
|
||||
|
||||
MY_P=${PN}-src-r${PV/_rc/-rc}
|
||||
|
||||
DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
|
||||
HOMEPAGE="https://www.mongodb.com"
|
||||
SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 SSPL-1"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64"
|
||||
IUSE="debug kerberos lto ssl test +tools"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="acct-group/mongodb
|
||||
acct-user/mongodb
|
||||
>=app-arch/snappy-1.1.3:=
|
||||
>=dev-cpp/yaml-cpp-0.6.2:=
|
||||
dev-libs/boost:=
|
||||
>=dev-libs/libpcre-8.42[cxx]
|
||||
app-arch/zstd:=
|
||||
dev-libs/snowball-stemmer:=
|
||||
net-libs/libpcap
|
||||
>=sys-libs/zlib-1.2.11:=
|
||||
kerberos? ( dev-libs/cyrus-sasl[kerberos] )
|
||||
ssl? (
|
||||
>=dev-libs/openssl-1.0.1g:0=
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_any_dep '
|
||||
test? ( dev-python/pymongo[${PYTHON_USEDEP}] dev-python/requests[${PYTHON_USEDEP}] )
|
||||
>=dev-util/scons-2.5.0[${PYTHON_USEDEP}]
|
||||
dev-python/cheetah3[${PYTHON_USEDEP}]
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
')
|
||||
sys-libs/ncurses:0=
|
||||
sys-libs/readline:0=
|
||||
debug? ( dev-util/valgrind )"
|
||||
PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-4.2.0-fix-scons.patch"
|
||||
"${FILESDIR}/${PN}-4.4.1-gcc11.patch"
|
||||
"${FILESDIR}/${PN}-4.2.15-no-compass.patch"
|
||||
"${FILESDIR}/${PN}-5.0.2-glibc-2.34.patch"
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
python_check_deps() {
|
||||
if use test; then
|
||||
has_version "dev-python/pymongo[${PYTHON_USEDEP}]" || return 1
|
||||
has_version "dev-python/requests[${PYTHON_USEDEP}]" || return 1
|
||||
fi
|
||||
|
||||
has_version ">=dev-util/scons-2.5.0[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/cheetah3[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/psutil[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/pyyaml[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if [[ -n ${REPLACING_VERSIONS} ]]; then
|
||||
if ver_test "$REPLACING_VERSIONS" -lt 4.0; then
|
||||
ewarn "To upgrade from a version earlier than the 4.0-series, you must"
|
||||
ewarn "successively upgrade major releases until you have upgraded"
|
||||
ewarn "to 4.0-series. Then upgrade to 4.2 series."
|
||||
else
|
||||
ewarn "Be sure to set featureCompatibilityVersion to 4.0 before upgrading."
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# remove bundled libs
|
||||
rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*,zstandard-*} || die
|
||||
|
||||
# remove compass
|
||||
rm -r src/mongo/installer/compass || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source
|
||||
# --use-system-icu fails tests
|
||||
# --use-system-tcmalloc is strongly NOT recommended:
|
||||
scons_opts=(
|
||||
CC="$(tc-getCC)"
|
||||
CXX="$(tc-getCXX)"
|
||||
|
||||
--disable-warnings-as-errors
|
||||
--use-system-boost
|
||||
--use-system-pcre
|
||||
--use-system-snappy
|
||||
--use-system-stemmer
|
||||
--use-system-yaml
|
||||
--use-system-zlib
|
||||
--use-system-zstd
|
||||
)
|
||||
|
||||
use arm64 && scons_opts+=( --use-hardware-crc32=off ) # Bug 701300
|
||||
use debug && scons_opts+=( --dbg=on )
|
||||
use kerberos && scons_opts+=( --use-sasl-client )
|
||||
use lto && scons_opts+=( --lto=on )
|
||||
use ssl && scons_opts+=( --ssl )
|
||||
|
||||
# respect mongoDB upstream's basic recommendations
|
||||
# see bug #536688 and #526114
|
||||
if ! use debug; then
|
||||
filter-flags '-m*'
|
||||
filter-flags '-O?'
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
escons "${scons_opts[@]}" core tools
|
||||
}
|
||||
|
||||
# FEATURES="test -usersandbox" emerge dev-db/mongodb
|
||||
src_test() {
|
||||
ewarn "Tests may hang with FEATURES=usersandbox"
|
||||
"${EPYTHON}" ./buildscripts/resmoke.py run --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr
|
||||
|
||||
doman debian/mongo*.1
|
||||
dodoc README docs/building.md
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd-r3" ${PN}
|
||||
newconfd "${FILESDIR}/${PN}.confd-r3" ${PN}
|
||||
newinitd "${FILESDIR}/mongos.initd-r3" mongos
|
||||
newconfd "${FILESDIR}/mongos.confd-r3" mongos
|
||||
|
||||
insinto /etc
|
||||
newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf
|
||||
newins "${FILESDIR}/mongos.conf-r2" mongos.conf
|
||||
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
|
||||
insinto /etc/logrotate.d/
|
||||
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||
|
||||
# see bug #526114
|
||||
pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos}
|
||||
|
||||
local x
|
||||
for x in /var/{lib,log}/${PN}; do
|
||||
diropts -m0750 -o mongodb -g mongodb
|
||||
keepdir "${x}"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "Make sure to read the release notes and follow the upgrade process:"
|
||||
ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/"
|
||||
ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures"
|
||||
}
|
@ -1,176 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..9} )
|
||||
|
||||
SCONS_MIN_VERSION="2.5.0"
|
||||
CHECKREQS_DISK_BUILD="2400M"
|
||||
CHECKREQS_DISK_USR="512M"
|
||||
CHECKREQS_MEMORY="1024M"
|
||||
|
||||
inherit check-reqs flag-o-matic multiprocessing pax-utils python-any-r1 scons-utils systemd toolchain-funcs
|
||||
|
||||
MY_P=${PN}-src-r${PV/_rc/-rc}
|
||||
|
||||
DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
|
||||
HOMEPAGE="https://www.mongodb.com"
|
||||
SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 SSPL-1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
IUSE="debug kerberos lto ssl test +tools"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="acct-group/mongodb
|
||||
acct-user/mongodb
|
||||
>=app-arch/snappy-1.1.3:=
|
||||
>=dev-cpp/yaml-cpp-0.6.2:=
|
||||
dev-libs/boost:=
|
||||
>=dev-libs/libpcre-8.42[cxx]
|
||||
app-arch/zstd:=
|
||||
dev-libs/snowball-stemmer:=
|
||||
net-libs/libpcap
|
||||
>=sys-libs/zlib-1.2.11:=
|
||||
kerberos? ( dev-libs/cyrus-sasl[kerberos] )
|
||||
ssl? (
|
||||
>=dev-libs/openssl-1.0.1g:0=
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_any_dep '
|
||||
test? ( dev-python/pymongo[${PYTHON_USEDEP}] dev-python/requests[${PYTHON_USEDEP}] )
|
||||
>=dev-util/scons-2.5.0[${PYTHON_USEDEP}]
|
||||
dev-python/cheetah3[${PYTHON_USEDEP}]
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
')
|
||||
sys-libs/ncurses:0=
|
||||
sys-libs/readline:0=
|
||||
debug? ( dev-util/valgrind )"
|
||||
PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-4.2.0-fix-scons.patch"
|
||||
"${FILESDIR}/${PN}-4.4.1-gcc11.patch"
|
||||
"${FILESDIR}/${PN}-4.2.15-no-compass.patch"
|
||||
"${FILESDIR}/${PN}-5.0.2-glibc-2.34.patch"
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
python_check_deps() {
|
||||
if use test; then
|
||||
has_version "dev-python/pymongo[${PYTHON_USEDEP}]" || return 1
|
||||
has_version "dev-python/requests[${PYTHON_USEDEP}]" || return 1
|
||||
fi
|
||||
|
||||
has_version ">=dev-util/scons-2.5.0[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/cheetah3[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/psutil[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/pyyaml[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if [[ -n ${REPLACING_VERSIONS} ]]; then
|
||||
if ver_test "$REPLACING_VERSIONS" -lt 4.0; then
|
||||
ewarn "To upgrade from a version earlier than the 4.0-series, you must"
|
||||
ewarn "successively upgrade major releases until you have upgraded"
|
||||
ewarn "to 4.0-series. Then upgrade to 4.2 series."
|
||||
else
|
||||
ewarn "Be sure to set featureCompatibilityVersion to 4.0 before upgrading."
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# remove bundled libs
|
||||
rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*,zstandard-*} || die
|
||||
|
||||
# remove compass
|
||||
rm -r src/mongo/installer/compass || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source
|
||||
# --use-system-icu fails tests
|
||||
# --use-system-tcmalloc is strongly NOT recommended:
|
||||
scons_opts=(
|
||||
CC="$(tc-getCC)"
|
||||
CXX="$(tc-getCXX)"
|
||||
|
||||
--disable-warnings-as-errors
|
||||
--use-system-boost
|
||||
--use-system-pcre
|
||||
--use-system-snappy
|
||||
--use-system-stemmer
|
||||
--use-system-yaml
|
||||
--use-system-zlib
|
||||
--use-system-zstd
|
||||
)
|
||||
|
||||
use arm64 && scons_opts+=( --use-hardware-crc32=off ) # Bug 701300
|
||||
use debug && scons_opts+=( --dbg=on )
|
||||
use kerberos && scons_opts+=( --use-sasl-client )
|
||||
use lto && scons_opts+=( --lto=on )
|
||||
use ssl && scons_opts+=( --ssl )
|
||||
|
||||
# respect mongoDB upstream's basic recommendations
|
||||
# see bug #536688 and #526114
|
||||
if ! use debug; then
|
||||
filter-flags '-m*'
|
||||
filter-flags '-O?'
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
escons "${scons_opts[@]}" core tools
|
||||
}
|
||||
|
||||
# FEATURES="test -usersandbox" emerge dev-db/mongodb
|
||||
src_test() {
|
||||
ewarn "Tests may hang with FEATURES=usersandbox"
|
||||
"${EPYTHON}" ./buildscripts/resmoke.py run --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr
|
||||
|
||||
doman debian/mongo*.1
|
||||
dodoc README docs/building.md
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd-r3" ${PN}
|
||||
newconfd "${FILESDIR}/${PN}.confd-r3" ${PN}
|
||||
newinitd "${FILESDIR}/mongos.initd-r3" mongos
|
||||
newconfd "${FILESDIR}/mongos.confd-r3" mongos
|
||||
|
||||
insinto /etc
|
||||
newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf
|
||||
newins "${FILESDIR}/mongos.conf-r2" mongos.conf
|
||||
|
||||
systemd_newunit "${FILESDIR}/${PN}.service-r1" "${PN}.service"
|
||||
|
||||
insinto /etc/logrotate.d/
|
||||
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||
|
||||
# see bug #526114
|
||||
pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos}
|
||||
|
||||
local x
|
||||
for x in /var/{lib,log}/${PN}; do
|
||||
diropts -m0750 -o mongodb -g mongodb
|
||||
keepdir "${x}"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "Make sure to read the release notes and follow the upgrade process:"
|
||||
ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/"
|
||||
ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures"
|
||||
}
|
@ -1,177 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
SCONS_MIN_VERSION="2.5.0"
|
||||
CHECKREQS_DISK_BUILD="2400M"
|
||||
CHECKREQS_DISK_USR="512M"
|
||||
CHECKREQS_MEMORY="1024M"
|
||||
|
||||
inherit check-reqs flag-o-matic multiprocessing pax-utils python-any-r1 scons-utils systemd toolchain-funcs
|
||||
|
||||
MY_P=${PN}-src-r${PV/_rc/-rc}
|
||||
|
||||
DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
|
||||
HOMEPAGE="https://www.mongodb.com"
|
||||
SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 SSPL-1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
IUSE="debug kerberos lto ssl test +tools"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="acct-group/mongodb
|
||||
acct-user/mongodb
|
||||
>=app-arch/snappy-1.1.3:=
|
||||
>=dev-cpp/yaml-cpp-0.6.2:=
|
||||
dev-libs/boost:=
|
||||
>=dev-libs/libpcre-8.42[cxx]
|
||||
app-arch/zstd:=
|
||||
dev-libs/snowball-stemmer:=
|
||||
net-libs/libpcap
|
||||
>=sys-libs/zlib-1.2.11:=
|
||||
kerberos? ( dev-libs/cyrus-sasl[kerberos] )
|
||||
ssl? (
|
||||
>=dev-libs/openssl-1.0.1g:0=
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_any_dep '
|
||||
test? ( dev-python/pymongo[${PYTHON_USEDEP}] dev-python/requests[${PYTHON_USEDEP}] )
|
||||
>=dev-util/scons-2.5.0[${PYTHON_USEDEP}]
|
||||
dev-python/cheetah3[${PYTHON_USEDEP}]
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
')
|
||||
sys-libs/ncurses:0=
|
||||
sys-libs/readline:0=
|
||||
debug? ( dev-util/valgrind )"
|
||||
PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-4.2.0-fix-scons.patch"
|
||||
"${FILESDIR}/${PN}-4.4.1-gcc11.patch"
|
||||
"${FILESDIR}/${PN}-4.2.15-no-compass.patch"
|
||||
"${FILESDIR}/${PN}-5.0.2-glibc-2.34.patch"
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
python_check_deps() {
|
||||
if use test; then
|
||||
has_version "dev-python/pymongo[${PYTHON_USEDEP}]" || return 1
|
||||
has_version "dev-python/requests[${PYTHON_USEDEP}]" || return 1
|
||||
fi
|
||||
|
||||
has_version ">=dev-util/scons-2.5.0[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/cheetah3[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/psutil[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/pyyaml[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if [[ -n ${REPLACING_VERSIONS} ]]; then
|
||||
if ver_test "$REPLACING_VERSIONS" -lt 4.0; then
|
||||
ewarn "To upgrade from a version earlier than the 4.0-series, you must"
|
||||
ewarn "successively upgrade major releases until you have upgraded"
|
||||
ewarn "to 4.0-series. Then upgrade to 4.2 series."
|
||||
else
|
||||
ewarn "Be sure to set featureCompatibilityVersion to 4.0 before upgrading."
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# remove bundled libs
|
||||
rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*,zstandard-*} || die
|
||||
|
||||
# remove compass
|
||||
rm -r src/mongo/installer/compass || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source
|
||||
# --use-system-icu fails tests
|
||||
# --use-system-tcmalloc is strongly NOT recommended:
|
||||
scons_opts=(
|
||||
AR="$(tc-getAR)"
|
||||
CC="$(tc-getCC)"
|
||||
CXX="$(tc-getCXX)"
|
||||
|
||||
--disable-warnings-as-errors
|
||||
--use-system-boost
|
||||
--use-system-pcre
|
||||
--use-system-snappy
|
||||
--use-system-stemmer
|
||||
--use-system-yaml
|
||||
--use-system-zlib
|
||||
--use-system-zstd
|
||||
)
|
||||
|
||||
use arm64 && scons_opts+=( --use-hardware-crc32=off ) # Bug 701300
|
||||
use debug && scons_opts+=( --dbg=on )
|
||||
use kerberos && scons_opts+=( --use-sasl-client )
|
||||
use lto && scons_opts+=( --lto=on )
|
||||
use ssl && scons_opts+=( --ssl )
|
||||
|
||||
# respect mongoDB upstream's basic recommendations
|
||||
# see bug #536688 and #526114
|
||||
if ! use debug; then
|
||||
filter-flags '-m*'
|
||||
filter-flags '-O?'
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
escons "${scons_opts[@]}" core tools
|
||||
}
|
||||
|
||||
# FEATURES="test -usersandbox" emerge dev-db/mongodb
|
||||
src_test() {
|
||||
ewarn "Tests may hang with FEATURES=usersandbox"
|
||||
"${EPYTHON}" ./buildscripts/resmoke.py run --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr
|
||||
|
||||
doman debian/mongo*.1
|
||||
dodoc README docs/building.md
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd-r3" ${PN}
|
||||
newconfd "${FILESDIR}/${PN}.confd-r3" ${PN}
|
||||
newinitd "${FILESDIR}/mongos.initd-r3" mongos
|
||||
newconfd "${FILESDIR}/mongos.confd-r3" mongos
|
||||
|
||||
insinto /etc
|
||||
newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf
|
||||
newins "${FILESDIR}/mongos.conf-r2" mongos.conf
|
||||
|
||||
systemd_newunit "${FILESDIR}/${PN}.service-r1" "${PN}.service"
|
||||
|
||||
insinto /etc/logrotate.d/
|
||||
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||
|
||||
# see bug #526114
|
||||
pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos}
|
||||
|
||||
local x
|
||||
for x in /var/{lib,log}/${PN}; do
|
||||
diropts -m0750 -o mongodb -g mongodb
|
||||
keepdir "${x}"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "Make sure to read the release notes and follow the upgrade process:"
|
||||
ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/"
|
||||
ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures"
|
||||
}
|
@ -1,177 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
SCONS_MIN_VERSION="2.5.0"
|
||||
CHECKREQS_DISK_BUILD="2400M"
|
||||
CHECKREQS_DISK_USR="512M"
|
||||
CHECKREQS_MEMORY="1024M"
|
||||
|
||||
inherit check-reqs flag-o-matic multiprocessing pax-utils python-any-r1 scons-utils systemd toolchain-funcs
|
||||
|
||||
MY_P=${PN}-src-r${PV/_rc/-rc}
|
||||
|
||||
DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
|
||||
HOMEPAGE="https://www.mongodb.com"
|
||||
SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 SSPL-1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
IUSE="debug kerberos lto ssl test +tools"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="acct-group/mongodb
|
||||
acct-user/mongodb
|
||||
>=app-arch/snappy-1.1.3:=
|
||||
>=dev-cpp/yaml-cpp-0.6.2:=
|
||||
dev-libs/boost:=
|
||||
>=dev-libs/libpcre-8.42[cxx]
|
||||
app-arch/zstd:=
|
||||
dev-libs/snowball-stemmer:=
|
||||
net-libs/libpcap
|
||||
>=sys-libs/zlib-1.2.11:=
|
||||
kerberos? ( dev-libs/cyrus-sasl[kerberos] )
|
||||
ssl? (
|
||||
>=dev-libs/openssl-1.0.1g:0=
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_any_dep '
|
||||
test? ( dev-python/pymongo[${PYTHON_USEDEP}] dev-python/requests[${PYTHON_USEDEP}] )
|
||||
>=dev-util/scons-2.5.0[${PYTHON_USEDEP}]
|
||||
dev-python/cheetah3[${PYTHON_USEDEP}]
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
')
|
||||
sys-libs/ncurses:0=
|
||||
sys-libs/readline:0=
|
||||
debug? ( dev-util/valgrind )"
|
||||
PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-4.2.0-fix-scons.patch"
|
||||
"${FILESDIR}/${PN}-4.4.1-gcc11.patch"
|
||||
"${FILESDIR}/${PN}-4.2.15-no-compass.patch"
|
||||
"${FILESDIR}/${PN}-5.0.2-glibc-2.34.patch"
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
python_check_deps() {
|
||||
if use test; then
|
||||
has_version "dev-python/pymongo[${PYTHON_USEDEP}]" || return 1
|
||||
has_version "dev-python/requests[${PYTHON_USEDEP}]" || return 1
|
||||
fi
|
||||
|
||||
has_version ">=dev-util/scons-2.5.0[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/cheetah3[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/psutil[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/pyyaml[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if [[ -n ${REPLACING_VERSIONS} ]]; then
|
||||
if ver_test "$REPLACING_VERSIONS" -lt 4.0; then
|
||||
ewarn "To upgrade from a version earlier than the 4.0-series, you must"
|
||||
ewarn "successively upgrade major releases until you have upgraded"
|
||||
ewarn "to 4.0-series. Then upgrade to 4.2 series."
|
||||
else
|
||||
ewarn "Be sure to set featureCompatibilityVersion to 4.0 before upgrading."
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# remove bundled libs
|
||||
rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*,zstandard-*} || die
|
||||
|
||||
# remove compass
|
||||
rm -r src/mongo/installer/compass || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source
|
||||
# --use-system-icu fails tests
|
||||
# --use-system-tcmalloc is strongly NOT recommended:
|
||||
scons_opts=(
|
||||
AR="$(tc-getAR)"
|
||||
CC="$(tc-getCC)"
|
||||
CXX="$(tc-getCXX)"
|
||||
|
||||
--disable-warnings-as-errors
|
||||
--use-system-boost
|
||||
--use-system-pcre
|
||||
--use-system-snappy
|
||||
--use-system-stemmer
|
||||
--use-system-yaml
|
||||
--use-system-zlib
|
||||
--use-system-zstd
|
||||
)
|
||||
|
||||
use arm64 && scons_opts+=( --use-hardware-crc32=off ) # Bug 701300
|
||||
use debug && scons_opts+=( --dbg=on )
|
||||
use kerberos && scons_opts+=( --use-sasl-client )
|
||||
use lto && scons_opts+=( --lto=on )
|
||||
use ssl && scons_opts+=( --ssl )
|
||||
|
||||
# respect mongoDB upstream's basic recommendations
|
||||
# see bug #536688 and #526114
|
||||
if ! use debug; then
|
||||
filter-flags '-m*'
|
||||
filter-flags '-O?'
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
escons "${scons_opts[@]}" core tools
|
||||
}
|
||||
|
||||
# FEATURES="test -usersandbox" emerge dev-db/mongodb
|
||||
src_test() {
|
||||
ewarn "Tests may hang with FEATURES=usersandbox"
|
||||
"${EPYTHON}" ./buildscripts/resmoke.py run --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr
|
||||
|
||||
doman debian/mongo*.1
|
||||
dodoc README docs/building.md
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd-r3" ${PN}
|
||||
newconfd "${FILESDIR}/${PN}.confd-r3" ${PN}
|
||||
newinitd "${FILESDIR}/mongos.initd-r3" mongos
|
||||
newconfd "${FILESDIR}/mongos.confd-r3" mongos
|
||||
|
||||
insinto /etc
|
||||
newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf
|
||||
newins "${FILESDIR}/mongos.conf-r2" mongos.conf
|
||||
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
|
||||
insinto /etc/logrotate.d/
|
||||
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||
|
||||
# see bug #526114
|
||||
pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos}
|
||||
|
||||
local x
|
||||
for x in /var/{lib,log}/${PN}; do
|
||||
diropts -m0750 -o mongodb -g mongodb
|
||||
keepdir "${x}"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "Make sure to read the release notes and follow the upgrade process:"
|
||||
ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/"
|
||||
ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures"
|
||||
}
|
@ -1,178 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
SCONS_MIN_VERSION="3.3.1"
|
||||
CHECKREQS_DISK_BUILD="2400M"
|
||||
CHECKREQS_DISK_USR="512M"
|
||||
CHECKREQS_MEMORY="1024M"
|
||||
|
||||
inherit check-reqs flag-o-matic multiprocessing pax-utils python-any-r1 scons-utils systemd toolchain-funcs
|
||||
|
||||
MY_P=${PN}-src-r${PV/_rc/-rc}
|
||||
|
||||
DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
|
||||
HOMEPAGE="https://www.mongodb.com"
|
||||
SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 SSPL-1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 -riscv"
|
||||
IUSE="debug kerberos lto ssl test +tools"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="acct-group/mongodb
|
||||
acct-user/mongodb
|
||||
>=app-arch/snappy-1.1.3:=
|
||||
>=dev-cpp/yaml-cpp-0.6.2:=
|
||||
dev-libs/boost:=[nls]
|
||||
>=dev-libs/libpcre-8.42[cxx]
|
||||
app-arch/zstd:=
|
||||
dev-libs/snowball-stemmer:=
|
||||
net-libs/libpcap
|
||||
>=sys-libs/zlib-1.2.11:=
|
||||
kerberos? ( dev-libs/cyrus-sasl[kerberos] )
|
||||
ssl? (
|
||||
>=dev-libs/openssl-1.0.1g:0=
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_any_dep '
|
||||
test? ( dev-python/pymongo[${PYTHON_USEDEP}] dev-python/requests[${PYTHON_USEDEP}] )
|
||||
>=dev-util/scons-3.1.1[${PYTHON_USEDEP}]
|
||||
dev-python/cheetah3[${PYTHON_USEDEP}]
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
')
|
||||
sys-libs/ncurses:0=
|
||||
sys-libs/readline:0=
|
||||
debug? ( dev-util/valgrind )"
|
||||
PDEPEND="tools? ( >=app-admin/mongo-tools-100 )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-4.4.1-fix-scons.patch"
|
||||
"${FILESDIR}/${PN}-4.4.8-no-compass.patch"
|
||||
"${FILESDIR}/${PN}-4.4.1-boost.patch"
|
||||
"${FILESDIR}/${PN}-4.4.1-gcc11.patch"
|
||||
"${FILESDIR}/${PN}-5.0.2-glibc-2.34.patch"
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
python_check_deps() {
|
||||
if use test; then
|
||||
has_version "dev-python/pymongo[${PYTHON_USEDEP}]" || return 1
|
||||
has_version "dev-python/requests[${PYTHON_USEDEP}]" || return 1
|
||||
fi
|
||||
|
||||
has_version ">=dev-util/scons-2.5.0[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/cheetah3[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/psutil[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/pyyaml[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if [[ -n ${REPLACING_VERSIONS} ]]; then
|
||||
if ver_test "$REPLACING_VERSIONS" -lt 4.2; then
|
||||
ewarn "To upgrade from a version earlier than the 4.2-series, you must"
|
||||
ewarn "successively upgrade major releases until you have upgraded"
|
||||
ewarn "to 4.2-series. Then upgrade to 4.4 series."
|
||||
else
|
||||
ewarn "Be sure to set featureCompatibilityVersion to 4.2 before upgrading."
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# remove bundled libs
|
||||
rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die
|
||||
|
||||
# remove compass
|
||||
rm -r src/mongo/installer/compass || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source
|
||||
# --use-system-icu fails tests
|
||||
# --use-system-tcmalloc is strongly NOT recommended:
|
||||
scons_opts=(
|
||||
AR="$(tc-getAR)"
|
||||
CC="$(tc-getCC)"
|
||||
CXX="$(tc-getCXX)"
|
||||
|
||||
--disable-warnings-as-errors
|
||||
--use-system-boost
|
||||
--use-system-pcre
|
||||
--use-system-snappy
|
||||
--use-system-stemmer
|
||||
--use-system-yaml
|
||||
--use-system-zlib
|
||||
--use-system-zstd
|
||||
)
|
||||
|
||||
use arm64 && scons_opts+=( --use-hardware-crc32=off ) # Bug 701300
|
||||
use debug && scons_opts+=( --dbg=on )
|
||||
use kerberos && scons_opts+=( --use-sasl-client )
|
||||
use lto && scons_opts+=( --lto=on )
|
||||
use ssl && scons_opts+=( --ssl )
|
||||
|
||||
# respect mongoDB upstream's basic recommendations
|
||||
# see bug #536688 and #526114
|
||||
if ! use debug; then
|
||||
filter-flags '-m*'
|
||||
filter-flags '-O?'
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
PREFIX="${EPREFIX}/usr" escons "${scons_opts[@]}" --nostrip install-core
|
||||
}
|
||||
|
||||
# FEATURES="test -usersandbox" emerge dev-db/mongodb
|
||||
src_test() {
|
||||
ewarn "Tests may hang with FEATURES=usersandbox"
|
||||
"${EPYTHON}" ./buildscripts/resmoke.py run --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin build/install/bin/{mongo,mongod,mongos}
|
||||
|
||||
doman debian/mongo*.1
|
||||
dodoc README docs/building.md
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd-r3" ${PN}
|
||||
newconfd "${FILESDIR}/${PN}.confd-r3" ${PN}
|
||||
newinitd "${FILESDIR}/mongos.initd-r3" mongos
|
||||
newconfd "${FILESDIR}/mongos.confd-r3" mongos
|
||||
|
||||
insinto /etc
|
||||
newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf
|
||||
newins "${FILESDIR}/mongos.conf-r2" mongos.conf
|
||||
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
|
||||
insinto /etc/logrotate.d/
|
||||
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||
|
||||
# see bug #526114
|
||||
pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos}
|
||||
|
||||
local x
|
||||
for x in /var/{lib,log}/${PN}; do
|
||||
diropts -m0750 -o mongodb -g mongodb
|
||||
keepdir "${x}"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "Make sure to read the release notes and follow the upgrade process:"
|
||||
ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/"
|
||||
ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures"
|
||||
}
|
@ -1,182 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..9} )
|
||||
|
||||
SCONS_MIN_VERSION="3.3.1"
|
||||
CHECKREQS_DISK_BUILD="2400M"
|
||||
CHECKREQS_DISK_USR="512M"
|
||||
CHECKREQS_MEMORY="1024M"
|
||||
|
||||
inherit check-reqs flag-o-matic multiprocessing pax-utils python-any-r1 scons-utils systemd toolchain-funcs
|
||||
|
||||
MY_P=${PN}-src-r${PV/_rc/-rc}
|
||||
|
||||
DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
|
||||
HOMEPAGE="https://www.mongodb.com"
|
||||
SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 SSPL-1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 -riscv"
|
||||
CPU_FLAGS="cpu_flags_x86_avx"
|
||||
IUSE="debug kerberos lto mongosh ssl +tools ${CPU_FLAGS}"
|
||||
|
||||
# https://github.com/mongodb/mongo/wiki/Test-The-Mongodb-Server
|
||||
# resmoke needs python packages not yet present in Gentoo
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="acct-group/mongodb
|
||||
acct-user/mongodb
|
||||
>=app-arch/snappy-1.1.3:=
|
||||
>=dev-cpp/yaml-cpp-0.6.2:=
|
||||
dev-libs/boost:=[nls]
|
||||
>=dev-libs/libpcre-8.42[cxx]
|
||||
app-arch/zstd:=
|
||||
dev-libs/snowball-stemmer:=
|
||||
net-libs/libpcap
|
||||
>=sys-libs/zlib-1.2.11:=
|
||||
kerberos? ( dev-libs/cyrus-sasl[kerberos] )
|
||||
ssl? (
|
||||
>=dev-libs/openssl-1.0.1g:0=
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_any_dep '
|
||||
>=dev-util/scons-3.1.1[${PYTHON_USEDEP}]
|
||||
dev-python/cheetah3[${PYTHON_USEDEP}]
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
')
|
||||
sys-libs/ncurses:0=
|
||||
sys-libs/readline:0=
|
||||
debug? ( dev-util/valgrind )"
|
||||
PDEPEND="
|
||||
mongosh? ( app-admin/mongosh-bin )
|
||||
tools? ( >=app-admin/mongo-tools-100 )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-4.4.1-boost.patch"
|
||||
"${FILESDIR}/${PN}-4.4.1-gcc11.patch"
|
||||
"${FILESDIR}/${PN}-5.0.2-fix-scons.patch"
|
||||
"${FILESDIR}/${PN}-5.0.2-no-compass.patch"
|
||||
"${FILESDIR}/${PN}-5.0.2-skip-no-exceptions.patch"
|
||||
"${FILESDIR}/${PN}-5.0.2-skip-reqs-check.patch"
|
||||
"${FILESDIR}/${PN}-5.0.2-glibc-2.34.patch"
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
python_check_deps() {
|
||||
has_version ">=dev-util/scons-2.5.0[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/cheetah3[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/psutil[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/pyyaml[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
# Bug 809692
|
||||
if use amd64 && ! use cpu_flags_x86_avx; then
|
||||
eerror "MongoDB 5.0 requires use of the AVX instruction set"
|
||||
eerror "https://docs.mongodb.com/v5.0/administration/production-notes/"
|
||||
die "MongoDB requires AVX"
|
||||
fi
|
||||
|
||||
if [[ -n ${REPLACING_VERSIONS} ]]; then
|
||||
if ver_test "$REPLACING_VERSIONS" -lt 4.4; then
|
||||
ewarn "To upgrade from a version earlier than the 4.4-series, you must"
|
||||
ewarn "successively upgrade major releases until you have upgraded"
|
||||
ewarn "to 4.4-series. Then upgrade to 5.0 series."
|
||||
else
|
||||
ewarn "Be sure to set featureCompatibilityVersion to 4.4 before upgrading."
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# remove bundled libs
|
||||
rm -r src/third_party/{boost,pcre-*,snappy-*,yaml-cpp,zlib-*} || die
|
||||
|
||||
# remove compass
|
||||
rm -r src/mongo/installer/compass || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source
|
||||
# --use-system-icu fails tests
|
||||
# --use-system-tcmalloc is strongly NOT recommended:
|
||||
scons_opts=(
|
||||
CC="$(tc-getCC)"
|
||||
CXX="$(tc-getCXX)"
|
||||
|
||||
--disable-warnings-as-errors
|
||||
--jobs="$(makeopts_jobs)"
|
||||
--use-system-boost
|
||||
--use-system-pcre
|
||||
--use-system-snappy
|
||||
--use-system-stemmer
|
||||
--use-system-yaml
|
||||
--use-system-zlib
|
||||
--use-system-zstd
|
||||
)
|
||||
|
||||
use arm64 && scons_opts+=( --use-hardware-crc32=off ) # Bug 701300
|
||||
use debug && scons_opts+=( --dbg=on )
|
||||
use kerberos && scons_opts+=( --use-sasl-client )
|
||||
use lto && scons_opts+=( --lto=on )
|
||||
use ssl && scons_opts+=( --ssl )
|
||||
|
||||
# respect mongoDB upstream's basic recommendations
|
||||
# see bug #536688 and #526114
|
||||
if ! use debug; then
|
||||
filter-flags '-m*'
|
||||
filter-flags '-O?'
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
PREFIX="${EPREFIX}/usr" ./buildscripts/scons.py "${scons_opts[@]}" install-core || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin build/install/bin/{mongo,mongod,mongos}
|
||||
|
||||
doman debian/mongo*.1
|
||||
dodoc README docs/building.md
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd-r3" ${PN}
|
||||
newconfd "${FILESDIR}/${PN}.confd-r3" ${PN}
|
||||
newinitd "${FILESDIR}/mongos.initd-r3" mongos
|
||||
newconfd "${FILESDIR}/mongos.confd-r3" mongos
|
||||
|
||||
insinto /etc
|
||||
newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf
|
||||
newins "${FILESDIR}/mongos.conf-r2" mongos.conf
|
||||
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
|
||||
insinto /etc/logrotate.d/
|
||||
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||
|
||||
# see bug #526114
|
||||
pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos}
|
||||
|
||||
local x
|
||||
for x in /var/{lib,log}/${PN}; do
|
||||
diropts -m0750 -o mongodb -g mongodb
|
||||
keepdir "${x}"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "Make sure to read the release notes and follow the upgrade process:"
|
||||
ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/"
|
||||
ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures"
|
||||
}
|
@ -1,182 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..9} )
|
||||
|
||||
SCONS_MIN_VERSION="3.3.1"
|
||||
CHECKREQS_DISK_BUILD="2400M"
|
||||
CHECKREQS_DISK_USR="512M"
|
||||
CHECKREQS_MEMORY="1024M"
|
||||
|
||||
inherit check-reqs flag-o-matic multiprocessing pax-utils python-any-r1 scons-utils systemd toolchain-funcs
|
||||
|
||||
MY_P=${PN}-src-r${PV/_rc/-rc}
|
||||
|
||||
DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
|
||||
HOMEPAGE="https://www.mongodb.com"
|
||||
SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 SSPL-1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 -riscv"
|
||||
CPU_FLAGS="cpu_flags_x86_avx"
|
||||
IUSE="debug kerberos lto mongosh ssl +tools ${CPU_FLAGS}"
|
||||
|
||||
# https://github.com/mongodb/mongo/wiki/Test-The-Mongodb-Server
|
||||
# resmoke needs python packages not yet present in Gentoo
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="acct-group/mongodb
|
||||
acct-user/mongodb
|
||||
>=app-arch/snappy-1.1.3:=
|
||||
>=dev-cpp/yaml-cpp-0.6.2:=
|
||||
dev-libs/boost:=[nls]
|
||||
>=dev-libs/libpcre-8.42[cxx]
|
||||
app-arch/zstd:=
|
||||
dev-libs/snowball-stemmer:=
|
||||
net-libs/libpcap
|
||||
>=sys-libs/zlib-1.2.11:=
|
||||
kerberos? ( dev-libs/cyrus-sasl[kerberos] )
|
||||
ssl? (
|
||||
>=dev-libs/openssl-1.0.1g:0=
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_any_dep '
|
||||
>=dev-util/scons-3.1.1[${PYTHON_USEDEP}]
|
||||
dev-python/cheetah3[${PYTHON_USEDEP}]
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
')
|
||||
sys-libs/ncurses:0=
|
||||
sys-libs/readline:0=
|
||||
debug? ( dev-util/valgrind )"
|
||||
PDEPEND="
|
||||
mongosh? ( app-admin/mongosh-bin )
|
||||
tools? ( >=app-admin/mongo-tools-100 )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-4.4.1-boost.patch"
|
||||
"${FILESDIR}/${PN}-4.4.1-gcc11.patch"
|
||||
"${FILESDIR}/${PN}-5.0.2-fix-scons.patch"
|
||||
"${FILESDIR}/${PN}-5.0.2-no-compass.patch"
|
||||
"${FILESDIR}/${PN}-5.0.2-skip-no-exceptions.patch"
|
||||
"${FILESDIR}/${PN}-5.0.2-skip-reqs-check.patch"
|
||||
"${FILESDIR}/${PN}-5.0.2-glibc-2.34.patch"
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
python_check_deps() {
|
||||
has_version ">=dev-util/scons-2.5.0[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/cheetah3[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/psutil[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/pyyaml[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
# Bug 809692
|
||||
if use amd64 && ! use cpu_flags_x86_avx; then
|
||||
eerror "MongoDB 5.0 requires use of the AVX instruction set"
|
||||
eerror "https://docs.mongodb.com/v5.0/administration/production-notes/"
|
||||
die "MongoDB requires AVX"
|
||||
fi
|
||||
|
||||
if [[ -n ${REPLACING_VERSIONS} ]]; then
|
||||
if ver_test "$REPLACING_VERSIONS" -lt 4.4; then
|
||||
ewarn "To upgrade from a version earlier than the 4.4-series, you must"
|
||||
ewarn "successively upgrade major releases until you have upgraded"
|
||||
ewarn "to 4.4-series. Then upgrade to 5.0 series."
|
||||
else
|
||||
ewarn "Be sure to set featureCompatibilityVersion to 4.4 before upgrading."
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# remove bundled libs
|
||||
rm -r src/third_party/{boost,pcre-*,snappy-*,yaml-cpp,zlib-*} || die
|
||||
|
||||
# remove compass
|
||||
rm -r src/mongo/installer/compass || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source
|
||||
# --use-system-icu fails tests
|
||||
# --use-system-tcmalloc is strongly NOT recommended:
|
||||
scons_opts=(
|
||||
CC="$(tc-getCC)"
|
||||
CXX="$(tc-getCXX)"
|
||||
|
||||
--disable-warnings-as-errors
|
||||
--jobs="$(makeopts_jobs)"
|
||||
--use-system-boost
|
||||
--use-system-pcre
|
||||
--use-system-snappy
|
||||
--use-system-stemmer
|
||||
--use-system-yaml
|
||||
--use-system-zlib
|
||||
--use-system-zstd
|
||||
)
|
||||
|
||||
use arm64 && scons_opts+=( --use-hardware-crc32=off ) # Bug 701300
|
||||
use debug && scons_opts+=( --dbg=on )
|
||||
use kerberos && scons_opts+=( --use-sasl-client )
|
||||
use lto && scons_opts+=( --lto=on )
|
||||
use ssl && scons_opts+=( --ssl )
|
||||
|
||||
# respect mongoDB upstream's basic recommendations
|
||||
# see bug #536688 and #526114
|
||||
if ! use debug; then
|
||||
filter-flags '-m*'
|
||||
filter-flags '-O?'
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
PREFIX="${EPREFIX}/usr" ./buildscripts/scons.py "${scons_opts[@]}" install-core || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin build/install/bin/{mongo,mongod,mongos}
|
||||
|
||||
doman debian/mongo*.1
|
||||
dodoc README docs/building.md
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd-r3" ${PN}
|
||||
newconfd "${FILESDIR}/${PN}.confd-r3" ${PN}
|
||||
newinitd "${FILESDIR}/mongos.initd-r3" mongos
|
||||
newconfd "${FILESDIR}/mongos.confd-r3" mongos
|
||||
|
||||
insinto /etc
|
||||
newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf
|
||||
newins "${FILESDIR}/mongos.conf-r2" mongos.conf
|
||||
|
||||
systemd_newunit "${FILESDIR}/${PN}.service-r1" "${PN}.service"
|
||||
|
||||
insinto /etc/logrotate.d/
|
||||
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||
|
||||
# see bug #526114
|
||||
pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos}
|
||||
|
||||
local x
|
||||
for x in /var/{lib,log}/${PN}; do
|
||||
diropts -m0750 -o mongodb -g mongodb
|
||||
keepdir "${x}"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "Make sure to read the release notes and follow the upgrade process:"
|
||||
ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/"
|
||||
ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures"
|
||||
}
|
@ -1,182 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
SCONS_MIN_VERSION="3.3.1"
|
||||
CHECKREQS_DISK_BUILD="2400M"
|
||||
CHECKREQS_DISK_USR="512M"
|
||||
CHECKREQS_MEMORY="1024M"
|
||||
|
||||
inherit check-reqs flag-o-matic multiprocessing pax-utils python-any-r1 scons-utils systemd toolchain-funcs
|
||||
|
||||
MY_P=${PN}-src-r${PV/_rc/-rc}
|
||||
|
||||
DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
|
||||
HOMEPAGE="https://www.mongodb.com"
|
||||
SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 SSPL-1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 -riscv"
|
||||
CPU_FLAGS="cpu_flags_x86_avx"
|
||||
IUSE="debug kerberos lto mongosh ssl +tools ${CPU_FLAGS}"
|
||||
|
||||
# https://github.com/mongodb/mongo/wiki/Test-The-Mongodb-Server
|
||||
# resmoke needs python packages not yet present in Gentoo
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="acct-group/mongodb
|
||||
acct-user/mongodb
|
||||
>=app-arch/snappy-1.1.3:=
|
||||
>=dev-cpp/yaml-cpp-0.6.2:=
|
||||
dev-libs/boost:=[nls]
|
||||
>=dev-libs/libpcre-8.42[cxx]
|
||||
app-arch/zstd:=
|
||||
dev-libs/snowball-stemmer:=
|
||||
net-libs/libpcap
|
||||
>=sys-libs/zlib-1.2.11:=
|
||||
kerberos? ( dev-libs/cyrus-sasl[kerberos] )
|
||||
ssl? (
|
||||
>=dev-libs/openssl-1.0.1g:0=
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_any_dep '
|
||||
>=dev-util/scons-3.1.1[${PYTHON_USEDEP}]
|
||||
dev-python/cheetah3[${PYTHON_USEDEP}]
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
')
|
||||
sys-libs/ncurses:0=
|
||||
sys-libs/readline:0=
|
||||
debug? ( dev-util/valgrind )"
|
||||
PDEPEND="
|
||||
mongosh? ( app-admin/mongosh-bin )
|
||||
tools? ( >=app-admin/mongo-tools-100 )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-4.4.1-boost.patch"
|
||||
"${FILESDIR}/${PN}-4.4.1-gcc11.patch"
|
||||
"${FILESDIR}/${PN}-5.0.2-fix-scons.patch"
|
||||
"${FILESDIR}/${PN}-5.0.2-no-compass.patch"
|
||||
"${FILESDIR}/${PN}-5.0.2-skip-no-exceptions.patch"
|
||||
"${FILESDIR}/${PN}-5.0.2-skip-reqs-check.patch"
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
python_check_deps() {
|
||||
has_version ">=dev-util/scons-2.5.0[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/cheetah3[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/psutil[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/pyyaml[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
# Bug 809692
|
||||
if use amd64 && ! use cpu_flags_x86_avx; then
|
||||
eerror "MongoDB 5.0 requires use of the AVX instruction set"
|
||||
eerror "https://docs.mongodb.com/v5.0/administration/production-notes/"
|
||||
die "MongoDB requires AVX"
|
||||
fi
|
||||
|
||||
if [[ -n ${REPLACING_VERSIONS} ]]; then
|
||||
if ver_test "$REPLACING_VERSIONS" -lt 4.4; then
|
||||
ewarn "To upgrade from a version earlier than the 4.4-series, you must"
|
||||
ewarn "successively upgrade major releases until you have upgraded"
|
||||
ewarn "to 4.4-series. Then upgrade to 5.0 series."
|
||||
else
|
||||
ewarn "Be sure to set featureCompatibilityVersion to 4.4 before upgrading."
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# remove bundled libs
|
||||
rm -r src/third_party/{boost,pcre-*,snappy-*,yaml-cpp,zlib-*} || die
|
||||
|
||||
# remove compass
|
||||
rm -r src/mongo/installer/compass || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source
|
||||
# --use-system-icu fails tests
|
||||
# --use-system-tcmalloc is strongly NOT recommended:
|
||||
scons_opts=(
|
||||
AR="$(tc-getAR)"
|
||||
CC="$(tc-getCC)"
|
||||
CXX="$(tc-getCXX)"
|
||||
|
||||
--disable-warnings-as-errors
|
||||
--jobs="$(makeopts_jobs)"
|
||||
--use-system-boost
|
||||
--use-system-pcre
|
||||
--use-system-snappy
|
||||
--use-system-stemmer
|
||||
--use-system-yaml
|
||||
--use-system-zlib
|
||||
--use-system-zstd
|
||||
)
|
||||
|
||||
use arm64 && scons_opts+=( --use-hardware-crc32=off ) # Bug 701300
|
||||
use debug && scons_opts+=( --dbg=on )
|
||||
use kerberos && scons_opts+=( --use-sasl-client )
|
||||
use lto && scons_opts+=( --lto=on )
|
||||
use ssl && scons_opts+=( --ssl )
|
||||
|
||||
# respect mongoDB upstream's basic recommendations
|
||||
# see bug #536688 and #526114
|
||||
if ! use debug; then
|
||||
filter-flags '-m*'
|
||||
filter-flags '-O?'
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
PREFIX="${EPREFIX}/usr" ./buildscripts/scons.py "${scons_opts[@]}" install-core || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin build/install/bin/{mongo,mongod,mongos}
|
||||
|
||||
doman debian/mongo*.1
|
||||
dodoc README docs/building.md
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd-r3" ${PN}
|
||||
newconfd "${FILESDIR}/${PN}.confd-r3" ${PN}
|
||||
newinitd "${FILESDIR}/mongos.initd-r3" mongos
|
||||
newconfd "${FILESDIR}/mongos.confd-r3" mongos
|
||||
|
||||
insinto /etc
|
||||
newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf
|
||||
newins "${FILESDIR}/mongos.conf-r2" mongos.conf
|
||||
|
||||
systemd_newunit "${FILESDIR}/${PN}.service-r1" "${PN}.service"
|
||||
|
||||
insinto /etc/logrotate.d/
|
||||
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||
|
||||
# see bug #526114
|
||||
pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos}
|
||||
|
||||
local x
|
||||
for x in /var/{lib,log}/${PN}; do
|
||||
diropts -m0750 -o mongodb -g mongodb
|
||||
keepdir "${x}"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "Make sure to read the release notes and follow the upgrade process:"
|
||||
ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/"
|
||||
ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures"
|
||||
}
|
@ -1,182 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
SCONS_MIN_VERSION="3.3.1"
|
||||
CHECKREQS_DISK_BUILD="2400M"
|
||||
CHECKREQS_DISK_USR="512M"
|
||||
CHECKREQS_MEMORY="1024M"
|
||||
|
||||
inherit check-reqs flag-o-matic multiprocessing pax-utils python-any-r1 scons-utils systemd toolchain-funcs
|
||||
|
||||
MY_P=${PN}-src-r${PV/_rc/-rc}
|
||||
|
||||
DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
|
||||
HOMEPAGE="https://www.mongodb.com"
|
||||
SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 SSPL-1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 -riscv"
|
||||
CPU_FLAGS="cpu_flags_x86_avx"
|
||||
IUSE="debug kerberos lto mongosh ssl +tools ${CPU_FLAGS}"
|
||||
|
||||
# https://github.com/mongodb/mongo/wiki/Test-The-Mongodb-Server
|
||||
# resmoke needs python packages not yet present in Gentoo
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="acct-group/mongodb
|
||||
acct-user/mongodb
|
||||
>=app-arch/snappy-1.1.3:=
|
||||
>=dev-cpp/yaml-cpp-0.6.2:=
|
||||
dev-libs/boost:=[nls]
|
||||
>=dev-libs/libpcre-8.42[cxx]
|
||||
app-arch/zstd:=
|
||||
dev-libs/snowball-stemmer:=
|
||||
net-libs/libpcap
|
||||
>=sys-libs/zlib-1.2.11:=
|
||||
kerberos? ( dev-libs/cyrus-sasl[kerberos] )
|
||||
ssl? (
|
||||
>=dev-libs/openssl-1.0.1g:0=
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_any_dep '
|
||||
>=dev-util/scons-3.1.1[${PYTHON_USEDEP}]
|
||||
dev-python/cheetah3[${PYTHON_USEDEP}]
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
')
|
||||
sys-libs/ncurses:0=
|
||||
sys-libs/readline:0=
|
||||
debug? ( dev-util/valgrind )"
|
||||
PDEPEND="
|
||||
mongosh? ( app-admin/mongosh-bin )
|
||||
tools? ( >=app-admin/mongo-tools-100 )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-4.4.1-boost.patch"
|
||||
"${FILESDIR}/${PN}-4.4.1-gcc11.patch"
|
||||
"${FILESDIR}/${PN}-5.0.2-fix-scons.patch"
|
||||
"${FILESDIR}/${PN}-5.0.2-no-compass.patch"
|
||||
"${FILESDIR}/${PN}-5.0.2-skip-no-exceptions.patch"
|
||||
"${FILESDIR}/${PN}-5.0.2-skip-reqs-check.patch"
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
python_check_deps() {
|
||||
has_version ">=dev-util/scons-2.5.0[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/cheetah3[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/psutil[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/pyyaml[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
# Bug 809692
|
||||
if use amd64 && ! use cpu_flags_x86_avx; then
|
||||
eerror "MongoDB 5.0 requires use of the AVX instruction set"
|
||||
eerror "https://docs.mongodb.com/v5.0/administration/production-notes/"
|
||||
die "MongoDB requires AVX"
|
||||
fi
|
||||
|
||||
if [[ -n ${REPLACING_VERSIONS} ]]; then
|
||||
if ver_test "$REPLACING_VERSIONS" -lt 4.4; then
|
||||
ewarn "To upgrade from a version earlier than the 4.4-series, you must"
|
||||
ewarn "successively upgrade major releases until you have upgraded"
|
||||
ewarn "to 4.4-series. Then upgrade to 5.0 series."
|
||||
else
|
||||
ewarn "Be sure to set featureCompatibilityVersion to 4.4 before upgrading."
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# remove bundled libs
|
||||
rm -r src/third_party/{boost,pcre-*,snappy-*,yaml-cpp,zlib-*} || die
|
||||
|
||||
# remove compass
|
||||
rm -r src/mongo/installer/compass || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source
|
||||
# --use-system-icu fails tests
|
||||
# --use-system-tcmalloc is strongly NOT recommended:
|
||||
scons_opts=(
|
||||
AR="$(tc-getAR)"
|
||||
CC="$(tc-getCC)"
|
||||
CXX="$(tc-getCXX)"
|
||||
|
||||
--disable-warnings-as-errors
|
||||
--jobs="$(makeopts_jobs)"
|
||||
--use-system-boost
|
||||
--use-system-pcre
|
||||
--use-system-snappy
|
||||
--use-system-stemmer
|
||||
--use-system-yaml
|
||||
--use-system-zlib
|
||||
--use-system-zstd
|
||||
)
|
||||
|
||||
use arm64 && scons_opts+=( --use-hardware-crc32=off ) # Bug 701300
|
||||
use debug && scons_opts+=( --dbg=on )
|
||||
use kerberos && scons_opts+=( --use-sasl-client )
|
||||
use lto && scons_opts+=( --lto=on )
|
||||
use ssl && scons_opts+=( --ssl )
|
||||
|
||||
# respect mongoDB upstream's basic recommendations
|
||||
# see bug #536688 and #526114
|
||||
if ! use debug; then
|
||||
filter-flags '-m*'
|
||||
filter-flags '-O?'
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
PREFIX="${EPREFIX}/usr" ./buildscripts/scons.py "${scons_opts[@]}" install-core || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin build/install/bin/{mongo,mongod,mongos}
|
||||
|
||||
doman debian/mongo*.1
|
||||
dodoc README docs/building.md
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd-r3" ${PN}
|
||||
newconfd "${FILESDIR}/${PN}.confd-r3" ${PN}
|
||||
newinitd "${FILESDIR}/mongos.initd-r3" mongos
|
||||
newconfd "${FILESDIR}/mongos.confd-r3" mongos
|
||||
|
||||
insinto /etc
|
||||
newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf
|
||||
newins "${FILESDIR}/mongos.conf-r2" mongos.conf
|
||||
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
|
||||
insinto /etc/logrotate.d/
|
||||
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||
|
||||
# see bug #526114
|
||||
pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos}
|
||||
|
||||
local x
|
||||
for x in /var/{lib,log}/${PN}; do
|
||||
diropts -m0750 -o mongodb -g mongodb
|
||||
keepdir "${x}"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "Make sure to read the release notes and follow the upgrade process:"
|
||||
ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/"
|
||||
ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures"
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
--- a/jdbc/FindMySQL.cmake 2021-09-10 18:31:29.000000000 +0200
|
||||
+++ b/jdbc/FindMySQL.cmake 2022-01-21 07:40:03.224705056 +0100
|
||||
@@ -282,8 +282,8 @@
|
||||
# there, pick "libmysqlclient" that in 5.5 and up is multithreaded
|
||||
# anyway (soft link "libmysqlclient_r" is not installed MySQL Server
|
||||
# 5.6 and Debian/Ubuntu and might go in 5.7 for all installs)
|
||||
- set(_dynamic_libs "mysqlclient_r" "mysqlclient")
|
||||
- set(_static_libs "libmysqlclient_r.a" "libmysqlclient.a")
|
||||
+ set(_dynamic_libs "mysqlclient")
|
||||
+ set(_static_libs "libmysqlclient.a")
|
||||
set(_static_lib_ext ".a")
|
||||
endif()
|
||||
|
||||
--- a/jdbc/driver/nativeapi/libmysql_dynamic_proxy.cpp 2022-01-21 07:52:41.224586087 +0100
|
||||
+++ b/jdbc/driver/nativeapi/libmysql_dynamic_proxy.cpp 2022-01-21 07:52:50.168631719 +0100
|
||||
@@ -49,7 +49,7 @@
|
||||
#elif defined(__hpux) && defined(__hppa)
|
||||
static const char * const baseName = "libmysqlclient_r.sl";
|
||||
#else
|
||||
-static const char * const baseName = "libmysqlclient_r.so";
|
||||
+static const char * const baseName = "libmysqlclient.so";
|
||||
#endif
|
||||
|
||||
template<typename FunctionType>
|
@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
CMAKE_MAKEFILE_GENERATOR=emake
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="MySQL database connector for C++ (mimics JDBC 4.0 API)"
|
||||
HOMEPAGE="https://dev.mysql.com/downloads/connector/cpp/"
|
||||
URI_DIR="Connector-C++"
|
||||
SRC_URI="https://dev.mysql.com/get/Downloads/${URI_DIR}/${P}-src.tar.gz"
|
||||
|
||||
LICENSE="Artistic GPL-2"
|
||||
SLOT="0"
|
||||
# -ppc, -sparc for bug #711940
|
||||
KEYWORDS="~amd64 ~arm ~arm64 -ppc ~ppc64 -sparc ~x86"
|
||||
IUSE="+legacy"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/protobuf:=
|
||||
legacy? (
|
||||
dev-libs/boost:=
|
||||
>=dev-db/mysql-connector-c-8.0.27:=
|
||||
)
|
||||
dev-libs/openssl:0=
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
S="${WORKDIR}/${P}-src"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-8.0.27-fix-build.patch
|
||||
"${FILESDIR}"/${PN}-8.0.27-mysqlclient_r.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DWITH_SSL=system
|
||||
-DWITH_JDBC=$(usex legacy ON OFF)
|
||||
$(usex legacy '-DMYSQLCLIENT_STATIC_BINDING=0' '')
|
||||
$(usex legacy '-DMYSQLCLIENT_STATIC_LINKING=0' '')
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
inherit go-module
|
||||
EGIT_COMMIT=923d1f5a9ce79c91b48535193cae56dabcb4b8f8
|
||||
|
||||
DESCRIPTION="Replicated SQLite using the Raft consensus protocol"
|
||||
HOMEPAGE="https://github.com/rqlite/rqlite https://www.philipotoole.com/tag/rqlite/"
|
||||
SRC_URI="https://github.com/rqlite/rqlite/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz"
|
||||
|
||||
LICENSE="MIT Apache-2.0 BSD CC0-1.0 MPL-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
src_compile() {
|
||||
GOBIN="${S}/bin" \
|
||||
go install \
|
||||
-ldflags="-X main.version=v${PV}
|
||||
-X main.branch=master
|
||||
-X main.commit=${EGIT_COMMIT}
|
||||
-X main.buildtime=$(date +%Y-%m-%dT%T%z)" \
|
||||
./cmd/... || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
GOBIN="${S}/bin" \
|
||||
go test ./... || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/*
|
||||
dodoc -r *.md DOC
|
||||
}
|
Binary file not shown.
@ -0,0 +1,14 @@
|
||||
Missing header for headless builds (quickfix, may not make much
|
||||
sense to probe renderer on headless).
|
||||
|
||||
os_linuxbsd.cpp:249:46: error: 'RenderingServer' has not been declared
|
||||
|
||||
Caused by: https://github.com/godotengine/godot/commit/de768afbdcf
|
||||
--- a/platform/linuxbsd/os_linuxbsd.cpp
|
||||
+++ b/platform/linuxbsd/os_linuxbsd.cpp
|
||||
@@ -34,4 +34,5 @@
|
||||
#include "main/main.h"
|
||||
#include "servers/display_server.h"
|
||||
+#include "servers/rendering_server.h"
|
||||
|
||||
#include "modules/modules_enabled.gen.h" // For regex.
|
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue