parent
22e52d7e34
commit
abe63a9ba9
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,13 +0,0 @@
|
||||
diff --git a/test/test.py b/test/test.py
|
||||
index a81f41b..f17f03c 100755
|
||||
--- a/test/test.py
|
||||
+++ b/test/test.py
|
||||
@@ -84,7 +84,7 @@ class TestYq(unittest.TestCase):
|
||||
unusable_tty_input = mock.Mock()
|
||||
unusable_tty_input.isatty = mock.Mock(return_value=True)
|
||||
|
||||
- self.run_yq("{}", [], expect_exit_codes={0} if sys.stdin.isatty() else {2})
|
||||
+ self.run_yq("{}", [], expect_exit_codes={0})
|
||||
self.run_yq("{}", ["."])
|
||||
self.run_yq(unusable_non_tty_input, [".", test_doc])
|
||||
self.run_yq(unusable_non_tty_input, [".", test_doc, test_doc])
|
Binary file not shown.
Binary file not shown.
@ -1,263 +0,0 @@
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -764,7 +764,7 @@
|
||||
FIND_PACKAGE(DirectInput)
|
||||
FIND_PACKAGE(NVTT)
|
||||
IF (NOT WIN32)
|
||||
- FIND_PACKAGE(Asio)
|
||||
+ FIND_PACKAGE(Boost)
|
||||
ENDIF()
|
||||
FIND_PACKAGE(ZeroConf)
|
||||
|
||||
--- a/CMakeModules/FindAsio.cmake
|
||||
+++ b/CMakeModules/FindAsio.cmake
|
||||
@@ -1,22 +0,0 @@
|
||||
-# Locate ASIO-headers (http://think-async.com/Asio)
|
||||
-# This module defines
|
||||
-# ASIO_FOUND, if false, do not try to link to gdal
|
||||
-# ASIO_INCLUDE_DIR, where to find the headers
|
||||
-#
|
||||
-# Created by Stephan Maximilian Huber
|
||||
-
|
||||
-FIND_PATH(ASIO_INCLUDE_DIR
|
||||
- NAMES
|
||||
- asio.hpp
|
||||
- PATHS
|
||||
- /usr/include
|
||||
- /usr/local/include
|
||||
-)
|
||||
-
|
||||
-SET(ASIO_FOUND "NO")
|
||||
-IF(ASIO_INCLUDE_DIR)
|
||||
- FIND_PACKAGE( Boost 1.37 )
|
||||
- IF(Boost_FOUND)
|
||||
- SET(ASIO_FOUND "YES")
|
||||
- ENDIF()
|
||||
-ENDIF()
|
||||
--- a/src/osgPlugins/CMakeLists.txt
|
||||
+++ b/src/osgPlugins/CMakeLists.txt
|
||||
@@ -299,13 +299,13 @@
|
||||
#
|
||||
# Device integration plugins
|
||||
#
|
||||
-IF (SDL_FOUND)
|
||||
+IF(SDL_FOUND)
|
||||
ADD_PLUGIN_DIRECTORY(sdl)
|
||||
-ENDIF(SDL_FOUND)
|
||||
+ENDIF()
|
||||
|
||||
-IF(ASIO_FOUND)
|
||||
+IF(Boost_FOUND)
|
||||
ADD_PLUGIN_DIRECTORY(RestHttpDevice)
|
||||
-ENDIF(ASIO_FOUND)
|
||||
+ENDIF()
|
||||
|
||||
|
||||
IF(ZEROCONF_FOUND)
|
||||
--- a/src/osgPlugins/RestHttpDevice/CMakeLists.txt
|
||||
+++ b/src/osgPlugins/RestHttpDevice/CMakeLists.txt
|
||||
@@ -1,6 +1,5 @@
|
||||
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
|
||||
-INCLUDE_DIRECTORIES(${ASIO_INCLUDE_DIR})
|
||||
-
|
||||
+
|
||||
SET(TARGET_SRC
|
||||
connection.cpp
|
||||
io_service_pool.cpp
|
||||
@@ -26,7 +25,7 @@
|
||||
RestHttpDevice.hpp
|
||||
)
|
||||
|
||||
-SET(TARGET_ADDED_LIBRARIES osgPresentation )
|
||||
+SET(TARGET_ADDED_LIBRARIES osgPresentation)
|
||||
|
||||
#### end var setup ###
|
||||
SETUP_PLUGIN(resthttp)
|
||||
--- a/src/osgPlugins/RestHttpDevice/connection.cpp
|
||||
+++ b/src/osgPlugins/RestHttpDevice/connection.cpp
|
||||
@@ -37,14 +37,14 @@
|
||||
void connection::start()
|
||||
{
|
||||
OSG_DEBUG << "RestHttpDevice :: connection::start" << std::endl;
|
||||
-
|
||||
+
|
||||
socket_.async_read_some(asio::buffer(buffer_),
|
||||
boost::bind(&connection::handle_read, shared_from_this(),
|
||||
asio::placeholders::error,
|
||||
asio::placeholders::bytes_transferred));
|
||||
}
|
||||
|
||||
-void connection::handle_read(const asio::error_code& e,
|
||||
+void connection::handle_read(const boost::system::error_code& e,
|
||||
std::size_t bytes_transferred)
|
||||
{
|
||||
if (!e)
|
||||
@@ -82,12 +82,12 @@
|
||||
// handler returns. The connection class's destructor closes the socket.
|
||||
}
|
||||
|
||||
-void connection::handle_write(const asio::error_code& e)
|
||||
+void connection::handle_write(const boost::system::error_code& e)
|
||||
{
|
||||
if (!e)
|
||||
{
|
||||
// Initiate graceful connection closure.
|
||||
- asio::error_code ignored_ec;
|
||||
+ boost::system::error_code ignored_ec;
|
||||
socket_.shutdown(asio::ip::tcp::socket::shutdown_both, ignored_ec);
|
||||
}
|
||||
|
||||
--- a/src/osgPlugins/RestHttpDevice/connection.hpp
|
||||
+++ b/src/osgPlugins/RestHttpDevice/connection.hpp
|
||||
@@ -11,7 +11,7 @@
|
||||
#ifndef HTTP_SERVER_CONNECTION_HPP
|
||||
#define HTTP_SERVER_CONNECTION_HPP
|
||||
|
||||
-#include <asio.hpp>
|
||||
+#include <boost/asio.hpp>
|
||||
#include <boost/array.hpp>
|
||||
#include <boost/noncopyable.hpp>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
@@ -21,6 +21,8 @@
|
||||
#include "request_handler.hpp"
|
||||
#include "request_parser.hpp"
|
||||
|
||||
+using namespace boost;
|
||||
+
|
||||
namespace http {
|
||||
namespace server {
|
||||
|
||||
@@ -42,11 +44,11 @@
|
||||
~connection();
|
||||
private:
|
||||
/// Handle completion of a read operation.
|
||||
- void handle_read(const asio::error_code& e,
|
||||
+ void handle_read(const boost::system::error_code& e,
|
||||
std::size_t bytes_transferred);
|
||||
|
||||
/// Handle completion of a write operation.
|
||||
- void handle_write(const asio::error_code& e);
|
||||
+ void handle_write(const boost::system::error_code& e);
|
||||
|
||||
/// Socket for the connection.
|
||||
asio::ip::tcp::socket socket_;
|
||||
--- a/src/osgPlugins/RestHttpDevice/io_service_pool.cpp
|
||||
+++ b/src/osgPlugins/RestHttpDevice/io_service_pool.cpp
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "server.hpp"
|
||||
#include <stdexcept>
|
||||
#include <boost/bind.hpp>
|
||||
-#include <boost/shared_ptr.hpp>
|
||||
+#include <boost/thread.hpp>
|
||||
|
||||
namespace http {
|
||||
namespace server {
|
||||
@@ -36,17 +36,14 @@
|
||||
void io_service_pool::run()
|
||||
{
|
||||
// Create a pool of threads to run all of the io_services.
|
||||
- std::vector<boost::shared_ptr<asio::thread> > threads;
|
||||
+ std::vector<thread> threads;
|
||||
for (std::size_t i = 0; i < io_services_.size(); ++i)
|
||||
- {
|
||||
- boost::shared_ptr<asio::thread> thread(new asio::thread(
|
||||
- boost::bind(&asio::io_service::run, io_services_[i])));
|
||||
- threads.push_back(thread);
|
||||
- }
|
||||
+ threads.emplace_back(thread(boost::bind(&asio::io_service::run,
|
||||
+ io_services_[i])));
|
||||
|
||||
// Wait for all threads in the pool to exit.
|
||||
for (std::size_t i = 0; i < threads.size(); ++i)
|
||||
- threads[i]->join();
|
||||
+ threads[i].join();
|
||||
}
|
||||
|
||||
void io_service_pool::stop()
|
||||
--- a/src/osgPlugins/RestHttpDevice/io_service_pool.hpp
|
||||
+++ b/src/osgPlugins/RestHttpDevice/io_service_pool.hpp
|
||||
@@ -11,11 +11,13 @@
|
||||
#ifndef HTTP_SERVER_IO_SERVICE_POOL_HPP
|
||||
#define HTTP_SERVER_IO_SERVICE_POOL_HPP
|
||||
|
||||
-#include <asio.hpp>
|
||||
+#include <boost/asio.hpp>
|
||||
#include <vector>
|
||||
#include <boost/noncopyable.hpp>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
+using namespace boost;
|
||||
+
|
||||
namespace http {
|
||||
namespace server {
|
||||
|
||||
--- a/src/osgPlugins/RestHttpDevice/reply.hpp
|
||||
+++ b/src/osgPlugins/RestHttpDevice/reply.hpp
|
||||
@@ -13,9 +13,11 @@
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
-#include <asio.hpp>
|
||||
+#include <boost/asio.hpp>
|
||||
#include "header.hpp"
|
||||
|
||||
+using namespace boost;
|
||||
+
|
||||
namespace http {
|
||||
namespace server {
|
||||
|
||||
--- a/src/osgPlugins/RestHttpDevice/server.cpp
|
||||
+++ b/src/osgPlugins/RestHttpDevice/server.cpp
|
||||
@@ -23,7 +23,7 @@
|
||||
request_handler_(doc_root)
|
||||
{
|
||||
// Open the acceptor with the option to reuse the address (i.e. SO_REUSEADDR).
|
||||
- asio::ip::tcp::resolver resolver(acceptor_.get_io_service());
|
||||
+ asio::ip::tcp::resolver resolver(io_service_pool_.get_io_service());
|
||||
asio::ip::tcp::resolver::query query(address, port);
|
||||
asio::ip::tcp::endpoint endpoint = *resolver.resolve(query);
|
||||
acceptor_.open(endpoint.protocol());
|
||||
@@ -47,7 +47,7 @@
|
||||
io_service_pool_.stop();
|
||||
}
|
||||
|
||||
-void server::handle_accept(const asio::error_code& e)
|
||||
+void server::handle_accept(const boost::system::error_code& e)
|
||||
{
|
||||
if (!e)
|
||||
{
|
||||
--- a/src/osgPlugins/RestHttpDevice/server.hpp
|
||||
+++ b/src/osgPlugins/RestHttpDevice/server.hpp
|
||||
@@ -11,7 +11,7 @@
|
||||
#ifndef HTTP_SERVER_SERVER_HPP
|
||||
#define HTTP_SERVER_SERVER_HPP
|
||||
|
||||
-#include <asio.hpp>
|
||||
+#include <boost/asio.hpp>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <boost/noncopyable.hpp>
|
||||
@@ -20,6 +20,8 @@
|
||||
#include "io_service_pool.hpp"
|
||||
#include "request_handler.hpp"
|
||||
|
||||
+using namespace boost;
|
||||
+
|
||||
namespace http {
|
||||
namespace server {
|
||||
|
||||
@@ -38,12 +40,12 @@
|
||||
|
||||
/// Stop the server.
|
||||
void stop();
|
||||
-
|
||||
+
|
||||
void setCallback(request_handler::Callback* cb) { request_handler_.setCallback(cb); }
|
||||
|
||||
private:
|
||||
/// Handle completion of an asynchronous accept operation.
|
||||
- void handle_accept(const asio::error_code& e);
|
||||
+ void handle_accept(const boost::system::error_code& e);
|
||||
|
||||
/// The pool of io_service objects used to perform asynchronous operations.
|
||||
io_service_pool io_service_pool_;
|
Binary file not shown.
@ -0,0 +1,57 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# Tests require an existing running SQL server and 'junit.jar.file' property
|
||||
JAVA_PKG_IUSE="doc examples source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="JDBC drivers with JNDI-bindable DataSources"
|
||||
HOMEPAGE="https://www.mchange.com/projects/c3p0/"
|
||||
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.src.tgz"
|
||||
LICENSE="|| ( EPL-1.0 LGPL-2.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
CP_DEPEND="
|
||||
dev-java/log4j-12-api:2
|
||||
dev-java/mchange-commons:0
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
>=virtual/jdk-1.8:*
|
||||
${CP_DEPEND}
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
>=virtual/jre-1.8:*
|
||||
${CP_DEPEND}
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${P}.src"
|
||||
|
||||
JAVA_ANT_REWRITE_CLASSPATH="yes"
|
||||
|
||||
src_prepare() {
|
||||
java-pkg_clean
|
||||
java-pkg-2_src_prepare
|
||||
java-pkg_jar-from --into lib/ log4j-12-api-2
|
||||
java-pkg_jar-from --into lib/ mchange-commons
|
||||
|
||||
# Test sources interfere with Javadoc generation on JDK 11
|
||||
# Remove since the tests will never be run
|
||||
rm -r src/java/com/mchange/v2/c3p0/test ||
|
||||
die "Failed to remove unused test sources"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_newjar "build/${P}.jar"
|
||||
einstalldocs
|
||||
|
||||
use doc && java-pkg_dojavadoc build/apidocs
|
||||
use examples && java-pkg_doexamples src/java/com/mchange/v2/c3p0/example
|
||||
use source && java-pkg_dosrc src/java/com/mchange/v2
|
||||
}
|
@ -0,0 +1,71 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# doc USE flag is not in IUSE as the docs does not compile because of errors
|
||||
JAVA_PKG_IUSE="examples source test"
|
||||
MAVEN_ID="cglib:cglib:3.3.0"
|
||||
JAVA_TESTING_FRAMEWORKS="junit-4"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
MY_PV=RELEASE_${PV//./_}
|
||||
MY_P=cglib-${MY_PV}
|
||||
|
||||
DESCRIPTION="cglib is a powerful, high performance and quality Code Generation Library"
|
||||
HOMEPAGE="https://github.com/cglib/cglib"
|
||||
SRC_URI="https://github.com/cglib/cglib/archive//${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="3"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
|
||||
|
||||
CDEPEND="dev-java/ant-core:0
|
||||
dev-java/asm:9
|
||||
"
|
||||
DEPEND="
|
||||
>=virtual/jdk-1.8:*
|
||||
${CDEPEND}
|
||||
"
|
||||
RDEPEND="
|
||||
>=virtual/jre-1.8:*
|
||||
${CDEPEND}
|
||||
"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
JAVA_GENTOO_CLASSPATH="asm-9 ant-core"
|
||||
JAVA_SRC_DIR="${MY_P}/${PN}/src/main/java"
|
||||
JAVA_RESOURCE_DIRS="${MY_P}/${PN}/src/main/resources"
|
||||
|
||||
JAVA_TEST_GENTOO_CLASSPATH="junit-4"
|
||||
JAVA_TEST_SRC_DIR="${MY_P}/${PN}/src/test/java"
|
||||
JAVA_TEST_EXCLUDES=(
|
||||
"net.sf.cglib.CodeGenTestCase" # not a test class
|
||||
"net.sf.cglib.TestAll"
|
||||
"net.sf.cglib.TestGenerator" # not a test class
|
||||
"net.sf.cglib.proxy.TestEnhancer" # broken tests
|
||||
"net.sf.cglib.proxy.TestInterceptor" # not a test class
|
||||
"net.sf.cglib.reflect.TestFastClass" # broken tests
|
||||
)
|
||||
|
||||
src_test() {
|
||||
# Caused by: net.sf.cglib.core.CodeGenerationException:
|
||||
# java.lang.reflect.InaccessibleObjectException-->Unable to make protected final java.lang.Class
|
||||
# java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
|
||||
# throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @42bb2aee
|
||||
|
||||
local vm_version="$(java-config -g PROVIDES_VERSION)"
|
||||
if [[ "${vm_version}" -ge "17" ]] ; then
|
||||
JAVA_TEST_EXTRA_ARGS+=( --add-opens=java.base/java.lang=ALL-UNNAMED )
|
||||
fi
|
||||
|
||||
java-pkg-simple_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg-simple_src_install
|
||||
|
||||
use examples && java-pkg_doexamples --subdir samples ${MY_P}/cglib-sample/src/main/java
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST jcifs-1.3.17.tgz 862091 BLAKE2B 67605ebd810caf097a9172c17f31d39c9e16af5885c706f7d8c2c2cff9b8e6a643174c9aaa8bd6aa06c816e312b7170a5aa06535f823a5c5b182e97beecccd0d SHA512 2fa1950f9ab6f0f3d45fd9b7866cc94993d1135f48d78ce357dca1d872746d22bff6097da8c418d0d11fd71d86b3fdc79b23195bcbab5bc460d8d0cca87efedc
|
||||
DIST jcifs-1.3.19.tgz 883534 BLAKE2B ede24f43018a4bf304019aeddb6cf789e3a01622d840dc3f6bfa45104b97a39d256807f766f14b3e215e53519f3838aabeb73bdf7897323fb41ca5ef2b7c9372 SHA512 24ea656469ac7a5666d28dcdf122c80d254af5317a704718d8848858a21b38c6efe9b977854a33130cdb57d2fc8324ac3ee01fb5443360899f9572ec41788eef
|
||||
|
@ -1,45 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
JAVA_PKG_IUSE="doc examples source"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="Library that implements the CIFS/SMB networking protocol in Java"
|
||||
SRC_URI="https://jcifs.samba.org/src/${P}.tgz"
|
||||
HOMEPAGE="https://jcifs.samba.org/"
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="1.1"
|
||||
|
||||
KEYWORDS="amd64 ppc64 x86"
|
||||
|
||||
CDEPEND="java-virtuals/servlet-api:3.0"
|
||||
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
>=virtual/jre-1.6"
|
||||
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
>=virtual/jdk-1.6"
|
||||
|
||||
JAVA_GENTOO_CLASSPATH="servlet-api-3.0"
|
||||
|
||||
JAVA_SRC_DIR="src"
|
||||
|
||||
DOCS=( README.txt )
|
||||
|
||||
S="${WORKDIR}/${P/-/_}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
java-pkg_clean
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg-simple_src_install
|
||||
use examples && java-pkg_doexamples examples
|
||||
einstalldocs
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST mchange-commons-0.2.10.tar.gz 218657 BLAKE2B f073aac7a560c31ea71c4114c5128de55d4b384c9579f649e0ca28c1257be64d22bce406b241f3b7665c5ec0e4cdc64c079c0f27f328e54803612abae43aef42 SHA512 098712b3b61d74a832699b6c92c75fdb243260400c1180511b5299a25553660750261ff8c2cf322350afd3d4b84fdf9900c26123b56add0f772e26e4f3ed8d7b
|
||||
DIST mchange-commons-0.2.20.tar.gz 231274 BLAKE2B f13d82d8a9f67a81c0fe69bd2d59e4ee88100c21067e454ba81ba5b5f60761c2352e8f2303c12e1ab0d54027ae9e7daca76f4e8308417a8e933d5a4c8cc0ad73 SHA512 d9019ca73f77f3f629c54bb65416f92b0a2c2fe5b23ef32cc48b4a951d505d8ba89f0ab71654b8e5d5983e4237c5c4e15c529abbb91ef0abdbff989806c2e44f
|
||||
|
@ -0,0 +1,44 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Skeleton command:
|
||||
# java-ebuilder --generate-ebuild --workdir . --pom src/main/maven/pom.xml --download-uri https://github.com/swaldman/mchange-commons-java/archive/refs/tags/v0.2.20.tar.gz --slot 0 --keywords "~amd64 ~ppc64 ~x86" --ebuild mchange-commons-0.2.20.ebuild
|
||||
|
||||
EAPI=8
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
MAVEN_ID="com.mchange:mchange-commons-java:0.2.20"
|
||||
# JAVA_TESTING_FRAMEWORKS=""
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="a library of arguably useful Java utilities."
|
||||
HOMEPAGE="https://github.com/swaldman/mchange-commons-java"
|
||||
SRC_URI="https://github.com/swaldman/${PN}-java/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="EPL-1.0 LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc64 ~x86"
|
||||
|
||||
CP_DEPEND="
|
||||
dev-java/log4j-api:2
|
||||
dev-java/log4j-12-api:2
|
||||
dev-java/log4j-core:2
|
||||
dev-java/slf4j-api:0
|
||||
dev-java/typesafe-config:0"
|
||||
|
||||
DEPEND="${CP_DEPEND}
|
||||
>=virtual/jdk-1.8:*"
|
||||
|
||||
RDEPEND="${CP_DEPEND}
|
||||
>=virtual/jre-1.8:*"
|
||||
|
||||
S="${WORKDIR}/mchange-commons-java-${PV}"
|
||||
|
||||
JAVA_SRC_DIR="src/main/java"
|
||||
JAVA_RESOURCE_DIRS="src/main/resources"
|
||||
|
||||
# # https://github.com/swaldman/mchange-commons-java/blob/master/build.sbt#L29-L31
|
||||
# JAVA_TEST_GENTOO_CLASSPATH=""
|
||||
# JAVA_TEST_SRC_DIR="src/test/java"
|
||||
# JAVA_TEST_RESOURCE_DIRS="src/test/resources"
|
@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
JAVA_PKG_IUSE="doc source test"
|
||||
JAVA_TESTING_FRAMEWORKS="junit"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="Java framework for RSS and Atom feeds"
|
||||
HOMEPAGE="https://rometools.github.io/rome/"
|
||||
SRC_URI="mirror://gentoo/${P}.zip"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
CP_DEPEND="dev-java/jdom:0"
|
||||
|
||||
DEPEND="
|
||||
${CP_DEPEND}
|
||||
>=virtual/jdk-1.8:*
|
||||
test? ( dev-java/ant-junit:0 )"
|
||||
|
||||
RDEPEND="
|
||||
${CP_DEPEND}
|
||||
>=virtual/jre-1.8:*"
|
||||
|
||||
BDEPEND="app-arch/unzip"
|
||||
|
||||
JAVA_ENCODING="ISO-8859-1"
|
||||
JAVA_SRC_DIR="src/java"
|
||||
JAVA_RESOURCE_DIRS="res/java"
|
||||
JAVA_TEST_SRC_DIRS="src/test"
|
||||
JAVA_TEST_GENTOO_CLASSPATH="junit"
|
||||
|
||||
S="${WORKDIR}/${P}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
mkdir -p res/java/com/sun/syndication || die
|
||||
cp {src,res}/java/com/sun/syndication/rome.properties || die
|
||||
|
||||
sed -e 's:\(public \)\(Module\):\1com.sun.syndication.feed.module.\2:' \
|
||||
-e 's:\(,\)\(Module\):\1com.sun.syndication.feed.module.\2:' \
|
||||
-i src/java/com/sun/syndication/feed/synd/Synd{Feed,Entry}Impl.java || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default # https://bugs.gentoo.org/789582
|
||||
java-pkg-simple_src_install
|
||||
}
|
@ -1,31 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="SwingX Beaninfo"
|
||||
HOMEPAGE="https://java.net/projects/swingx/"
|
||||
SRC_URI="https://java.net/downloads/swingx/releases/${P}-sources.jar"
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
CDEPEND="dev-java/swingx:1.6"
|
||||
|
||||
RDEPEND=">=virtual/jre-1.6
|
||||
${CDEPEND}"
|
||||
|
||||
DEPEND=">=virtual/jdk-1.6
|
||||
${CDEPEND}
|
||||
app-arch/unzip"
|
||||
|
||||
JAVA_GENTOO_CLASSPATH="swingx-1.6"
|
||||
|
||||
src_compile() {
|
||||
java-pkg-simple_src_compile
|
||||
java-pkg_addres ${PN}.jar .
|
||||
}
|
@ -1,67 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
MY_P="${PN}-2011_05_15-src"
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="Utilities and widgets to integrate Swing GUIs with web applications"
|
||||
HOMEPAGE="https://java.net/projects/swingx-ws/"
|
||||
SRC_URI="mirror://sourceforge/bt747/Development/${MY_P}.zip"
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="bt747"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
CP_DEPEND="
|
||||
dev-java/jdom:0
|
||||
dev-java/json:0
|
||||
dev-java/rome:0
|
||||
dev-java/jtidy:0
|
||||
dev-java/xerces:2
|
||||
dev-java/swingx:1.6
|
||||
dev-java/swing-layout:1
|
||||
dev-java/swingx-beaninfo:0
|
||||
dev-java/commons-httpclient:3
|
||||
dev-java/xml-commons-external:1.4"
|
||||
|
||||
RDEPEND="
|
||||
${CP_DEPEND}
|
||||
>=virtual/jre-1.6"
|
||||
|
||||
DEPEND="
|
||||
${CP_DEPEND}
|
||||
>=virtual/jdk-1.6
|
||||
app-arch/unzip"
|
||||
|
||||
S="${WORKDIR}/${MY_P}/src"
|
||||
JAVA_SRC_DIR=( "beaninfo" "java" )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
java-pkg_clean "${WORKDIR}"
|
||||
|
||||
# SwingWorker has been built-in since Java 6.
|
||||
find java -name "*.java" -exec sed -i -r "s:org\.jdesktop\.swingworker\.:javax.swing.:g" {} + || die
|
||||
|
||||
# Fixes for newer swingx-beaninfo.
|
||||
sed -i "s:BeanInfoSupport:org.jdesktop.beans.\0:g" beaninfo/org/jdesktop/swingx/*.java || die
|
||||
find beaninfo -name "*.java" -exec sed -i -r "s:org\.jdesktop\.swingx\.(editors|BeanInfoSupport|EnumerationValue):org.jdesktop.beans.\1:g" {} + || die
|
||||
|
||||
# GraphicsUtilities moved in later SwingX versions.
|
||||
sed -i "s:org\.jdesktop\.swingx\.graphics\.GraphicsUtilities:org.jdesktop.swingx.util.GraphicsUtilities:g" \
|
||||
java/org/jdesktop/swingx/mapviewer/AbstractTileFactory.java || die
|
||||
|
||||
java-pkg-2_src_prepare
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
java-pkg-simple_src_compile
|
||||
|
||||
local DIR
|
||||
for DIR in "${JAVA_SRC_DIR[@]}"; do
|
||||
java-pkg_addres ${PN}.jar ${DIR}
|
||||
done
|
||||
}
|
Binary file not shown.
@ -1,3 +1 @@
|
||||
DIST expat-2.4.4.tar.xz 449448 BLAKE2B 20b2cfb27746c24e56580478c933b3ca9e9ff19aed13561bc07e8ad879daff575882b8940fdca00f8c99b146067438a4a680238728098b10e4d08303ffa00119 SHA512 c88a82f4732e27340eb9480c082bcc909b0284e16b368ee9feeb4e2dd058e8f7c42fd48feacd5272cc76cb78bd183df33eb5d0b135fdd1d3c493cb156572ab76
|
||||
DIST expat-2.4.5.tar.xz 451976 BLAKE2B d4ef7dda9da0f0f0be112b1aab551b10414e27692a5d83de67ba53298f60ea2a08872de4a9baee3596eff56f275866dbe18cb93a927bbf43952ceff633d9e28f SHA512 9e010e8959b9182db0fdcd3453c06d5b892db85da0d9f2db19384cc9a05d70066dc927c40fc98ada430e0548a47fa863866985193062af9bd243de9bdac417f5
|
||||
DIST expat-2.4.6.tar.xz 452468 BLAKE2B 8b30acc2628e3ce67ee57a4c9bee232f89f49ee70901588f7f5a34844e459cbc447fd225a734078100e52c96a73aa1f016e4f2d51d9a079128d661d97b2213c0 SHA512 830b00dbdfb92ef5cab69d783762a78443cd7d834bccda072d103c6178327cf480bde579089b1c3be884e67ddb862178fa734bd7e1f992f6f0ca29d83e21d737
|
||||
|
@ -1,94 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
AUTOTOOLS_AUTO_DEPEND=no
|
||||
AT_NOEAUTOHEADER=yes # because expat_config.h.in would need post-processing
|
||||
inherit autotools multilib-minimal
|
||||
|
||||
DESCRIPTION="Stream-oriented XML parser library"
|
||||
HOMEPAGE="https://libexpat.github.io/"
|
||||
SRC_URI="https://github.com/libexpat/libexpat/releases/download/R_${PV//\./_}/expat-${PV}.tar.xz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
||||
IUSE="examples static-libs unicode"
|
||||
BDEPEND="unicode? ( ${AUTOTOOLS_DEPEND} )"
|
||||
|
||||
DOCS=( README.md )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# fix interpreter to be a recent/good shell
|
||||
sed -i -e "1s:/bin/sh:${BASH}:" conftools/get-version.sh || die
|
||||
if use unicode; then
|
||||
cp -R "${S}" "${S}"w || die
|
||||
pushd "${S}"w >/dev/null
|
||||
find -name Makefile.am \
|
||||
-exec sed \
|
||||
-e 's,libexpat\.la,libexpatw.la,' \
|
||||
-e 's,libexpat_la,libexpatw_la,' \
|
||||
-i {} + || die
|
||||
eautoreconf
|
||||
popd >/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local myconf="$(use_enable static-libs static) --without-docbook"
|
||||
|
||||
mkdir -p "${BUILD_DIR}"w || die
|
||||
|
||||
if use unicode; then
|
||||
pushd "${BUILD_DIR}"w >/dev/null
|
||||
CPPFLAGS="${CPPFLAGS} -DXML_UNICODE" ECONF_SOURCE="${S}"w econf ${myconf}
|
||||
popd >/dev/null
|
||||
fi
|
||||
|
||||
ECONF_SOURCE="${S}" econf ${myconf}
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake
|
||||
|
||||
if use unicode; then
|
||||
pushd "${BUILD_DIR}"w >/dev/null
|
||||
emake -C lib
|
||||
popd >/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake install DESTDIR="${D}"
|
||||
|
||||
if use unicode; then
|
||||
pushd "${BUILD_DIR}"w >/dev/null
|
||||
emake -C lib install DESTDIR="${D}"
|
||||
popd >/dev/null
|
||||
|
||||
pushd "${ED}"/usr/$(get_libdir)/pkgconfig >/dev/null
|
||||
cp expat.pc expatw.pc
|
||||
sed -i -e '/^Libs/s:-lexpat:&w:' expatw.pc || die
|
||||
popd >/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
|
||||
doman doc/xmlwf.1
|
||||
|
||||
# Note: Use of HTML_DOCS would add unwanted "doc" subfolder
|
||||
docinto html
|
||||
dodoc doc/*.{css,html}
|
||||
|
||||
if use examples; then
|
||||
docinto examples
|
||||
dodoc examples/*.c
|
||||
docompress -x usr/share/doc/${PF}/examples
|
||||
fi
|
||||
|
||||
find "${D}" -name '*.la' -type f -delete || die
|
||||
}
|
@ -1,94 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
AUTOTOOLS_AUTO_DEPEND=no
|
||||
AT_NOEAUTOHEADER=yes # because expat_config.h.in would need post-processing
|
||||
inherit autotools multilib-minimal
|
||||
|
||||
DESCRIPTION="Stream-oriented XML parser library"
|
||||
HOMEPAGE="https://libexpat.github.io/"
|
||||
SRC_URI="https://github.com/libexpat/libexpat/releases/download/R_${PV//\./_}/expat-${PV}.tar.xz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
||||
IUSE="examples static-libs unicode"
|
||||
BDEPEND="unicode? ( ${AUTOTOOLS_DEPEND} )"
|
||||
|
||||
DOCS=( README.md )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# fix interpreter to be a recent/good shell
|
||||
sed -i -e "1s:/bin/sh:${BASH}:" conftools/get-version.sh || die
|
||||
if use unicode; then
|
||||
cp -R "${S}" "${S}"w || die
|
||||
pushd "${S}"w >/dev/null
|
||||
find -name Makefile.am \
|
||||
-exec sed \
|
||||
-e 's,libexpat\.la,libexpatw.la,' \
|
||||
-e 's,libexpat_la,libexpatw_la,' \
|
||||
-i {} + || die
|
||||
eautoreconf
|
||||
popd >/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local myconf="$(use_enable static-libs static) --without-docbook"
|
||||
|
||||
mkdir -p "${BUILD_DIR}"w || die
|
||||
|
||||
if use unicode; then
|
||||
pushd "${BUILD_DIR}"w >/dev/null
|
||||
CPPFLAGS="${CPPFLAGS} -DXML_UNICODE" ECONF_SOURCE="${S}"w econf ${myconf}
|
||||
popd >/dev/null
|
||||
fi
|
||||
|
||||
ECONF_SOURCE="${S}" econf ${myconf}
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake
|
||||
|
||||
if use unicode; then
|
||||
pushd "${BUILD_DIR}"w >/dev/null
|
||||
emake -C lib
|
||||
popd >/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake install DESTDIR="${D}"
|
||||
|
||||
if use unicode; then
|
||||
pushd "${BUILD_DIR}"w >/dev/null
|
||||
emake -C lib install DESTDIR="${D}"
|
||||
popd >/dev/null
|
||||
|
||||
pushd "${ED}"/usr/$(get_libdir)/pkgconfig >/dev/null
|
||||
cp expat.pc expatw.pc
|
||||
sed -i -e '/^Libs/s:-lexpat:&w:' expatw.pc || die
|
||||
popd >/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
|
||||
doman doc/xmlwf.1
|
||||
|
||||
# Note: Use of HTML_DOCS would add unwanted "doc" subfolder
|
||||
docinto html
|
||||
dodoc doc/*.{css,html}
|
||||
|
||||
if use examples; then
|
||||
docinto examples
|
||||
dodoc examples/*.c
|
||||
docompress -x usr/share/doc/${PF}/examples
|
||||
fi
|
||||
|
||||
find "${D}" -name '*.la' -type f -delete || die
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
https://bugs.gentoo.org/764437
|
||||
https://github.com/lsh123/xmlsec/commit/f3a59c721e38a663405093e2bbb30e2bf45853a2.patch
|
||||
From f3a59c721e38a663405093e2bbb30e2bf45853a2 Mon Sep 17 00:00:00 2001
|
||||
From: lsh123 <aleksey@aleksey.com>
|
||||
Date: Fri, 18 Dec 2020 16:22:40 -0800
|
||||
Subject: [PATCH] Remove MD5 for NSS 3.59 and above; enable nss test on osx and
|
||||
mingw (issue #305) (#306)
|
||||
|
||||
---
|
||||
include/xmlsec/nss/crypto.h | 6 ++++++
|
||||
2 files changed, 10 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/include/xmlsec/nss/crypto.h b/include/xmlsec/nss/crypto.h
|
||||
index 223c1d85..614ac931 100644
|
||||
--- a/include/xmlsec/nss/crypto.h
|
||||
+++ b/include/xmlsec/nss/crypto.h
|
||||
@@ -19,6 +19,12 @@
|
||||
#include <xmlsec/transforms.h>
|
||||
#include <xmlsec/dl.h>
|
||||
|
||||
+
|
||||
+/* MD5 was removed from NSS */
|
||||
+#if (NSS_VMAJOR > 3) || ((NSS_VMAJOR == 3) && (NSS_VMINOR > 58))
|
||||
+#define XMLSEC_NO_MD5 1
|
||||
+#endif /* (NSS_VMAJOR > 3) || ((NSS_VMAJOR == 3) && (NSS_VMINOR > 58)) */
|
||||
+
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
Binary file not shown.
@ -1,16 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<channel version="1.0" xmlns="http://pear.php.net/channel-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/channel-1.0 http://pear.php.net/dtd/channel-1.0.xsd">
|
||||
<name>pear.phpunit.de</name>
|
||||
<summary>PHPUnit PEAR Channel</summary>
|
||||
<suggestedalias>phpunit</suggestedalias>
|
||||
<servers>
|
||||
<primary>
|
||||
<rest>
|
||||
<baseurl type="REST1.0">http://pear.phpunit.de/rest/</baseurl>
|
||||
<baseurl type="REST1.1">http://pear.phpunit.de/rest/</baseurl>
|
||||
<baseurl type="REST1.2">http://pear.phpunit.de/rest/</baseurl>
|
||||
<baseurl type="REST1.3">http://pear.phpunit.de/rest/</baseurl>
|
||||
</rest>
|
||||
</primary>
|
||||
</servers>
|
||||
</channel>
|
Binary file not shown.
@ -0,0 +1,30 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A Python package that generates fake data for you"
|
||||
HOMEPAGE="https://github.com/joke2k/faker"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/python-dateutil-2.4.2[${PYTHON_USEDEP}]
|
||||
!dev-ruby/faker"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/freezegun[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP},tiff]
|
||||
dev-python/random2[${PYTHON_USEDEP}]
|
||||
dev-python/validators[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
distutils_enable_tests pytest
|
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
DIST bitarray-2.3.5.tar.gz 88403 BLAKE2B ebd2b41f3282765a8fe754c421f6813f1d35f105b52148dc3db158d937f0ab0e1ab09590d45f9e09301090bd113e28e9e45bf7a5d76ee0696018cb4e2fe2cca7 SHA512 8d409c8dad077774f4622afbb89435a6f6e5785ab4e53bc1a286e0d5a167a17152ccad78fb7569649c8a28674e269095c8ecb63bf26ac1ee4ed131c41552f55f
|
||||
DIST bitarray-2.3.6.tar.gz 88741 BLAKE2B 1475548c5dbd7b98b4ad74592aa2d9cce68199bd63fe0ede9d70a95fab4193943b804e6998d1551da2b7b3194060ec19d293e0b12c15515a496396ed39fe46b1 SHA512 f88d2904df1a31701d3b381ba9592d6876e59a64ea0cbaef72d390c7491694cc0afcda2d87de36ee05d3ae2d033aad0290df84aae80f1d2a9b4d54e136c39327
|
||||
DIST bitarray-2.3.7.tar.gz 89721 BLAKE2B 8c56e82862a4314d199fa8021fbe4d0fefa5172f6c3c93573cc1d6a06d7965788d65e0b193f199f86d685c7edd0f0faf878db65243625427d4b6be6d2fb8c807 SHA512 4484f93001a74105bdb85155ee9975f7f399652634e6173a4502e2a8eae83dc4d331e638f6b2dc2a94e89aa695208586a502bc41583539271ae3869576de41c9
|
||||
|
@ -0,0 +1,23 @@
|
||||
# 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..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Efficient arrays of booleans -- C extension"
|
||||
HOMEPAGE="
|
||||
https://github.com/ilanschnell/bitarray/
|
||||
https://pypi.org/project/bitarray/"
|
||||
SRC_URI="mirror://pypi/b/${PN}/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="PSF-2"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
python_test() {
|
||||
"${EPYTHON}" bitarray/test_bitarray.py -v || die "Tests fail with ${EPYTHON}"
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST bottleneck-1.3.2.tar.gz 102565 BLAKE2B 4d903bd8ff918a54cdee5b6c6815e8d404c6d3cd1a73e02f81888aab077970a113fcd24acef9da8a35138aa808c211883bf9bd952f83f17df4f94a6172fbe140 SHA512 9b6f812a625c9bb39501e8834ce41ae34ce57038d3ec9528aa8aa80910663c4e3b420d535f0ec8fa9e506faecabaf0151950afcebdc919479ed04787f26dc3ee
|
||||
DIST bottleneck-1.3.4.gh.tar.gz 118739 BLAKE2B af4b32bf296f11538b12f364592553d407668762e1e2d94c814bf262bc9ef88f1338cd388ff1c02065f8266988fe6cad5f8461aed2a144a9bfaf98f8ae46eeae SHA512 0cb3837139f947a7da026bddc8ff6e8025ee0aac6aedf4046383eb8385789d1816158ae20438b15a28c7f0b6552c3570c18abdbb6ef265fa9f497edebae1d808
|
||||
|
@ -0,0 +1,40 @@
|
||||
# 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..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Fast NumPy array functions written in C"
|
||||
HOMEPAGE="https://pypi.org/project/Bottleneck/"
|
||||
SRC_URI="
|
||||
https://github.com/pydata/bottleneck/archive/v${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/numpy-1.9.1[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
dev-python/versioneer[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
PATCHES=(
|
||||
# https://github.com/pydata/bottleneck/pull/403
|
||||
"${FILESDIR}"/${P}-install-test-data.patch
|
||||
)
|
||||
|
||||
python_test() {
|
||||
cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
|
||||
epytest
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
diff --git a/setup.py b/setup.py
|
||||
index db629bd..b0c10cd 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -185,7 +185,10 @@ metadata = dict(
|
||||
platforms="OS Independent",
|
||||
version=versioneer.get_version(),
|
||||
packages=find_packages(),
|
||||
- package_data={"bottleneck": ["LICENSE"]},
|
||||
+ package_data={
|
||||
+ "bottleneck": ["LICENSE"],
|
||||
+ "bottleneck.tests": ["data/*/*"],
|
||||
+ },
|
||||
requires=["numpy"],
|
||||
install_requires=["numpy"],
|
||||
extras_require={"doc": ["numpydoc", "sphinx", "gitpython"]},
|
@ -1,2 +1,3 @@
|
||||
DIST flit-3.5.1.tar.gz 122689 BLAKE2B 49be251df549783114c6758fa688d00fe18ed88d215f91783ce78eda722ee3d8578d83781a1a5c9ee61dd001c82df010c879dc742a1829c2ba8bcf5edb930556 SHA512 00e884774c7f59dfb54d6db09f65ac0ed47f1dd23872d6913f3a41de7242fb3829b2edacd03d08e080635c0a515521333aa74e6d26a2faa5fc02e56454b2b37a
|
||||
DIST flit-3.6.0.tar.gz 133365 BLAKE2B c4170eeded3c15a93c8e89b9483459247228136bc5ff32c6edb8cd9a4b5c3171fe381d0a1b4e325ed863457c2bce476efe3276455d5b9e4279a702dd35ed4512 SHA512 6506ecc73f9e0373e84b5b90a3d567f1edad6d95561886ff1f08f37addfc39006e75ab199c376a7d18452f6b8e2cbdd9e8f59a1fc96037702c3c682dc0b5a757
|
||||
DIST flit-3.7.0.tar.gz 136190 BLAKE2B 1d5f1fc64e5c4fbdbb34f515b3ba5f87364a56716251f8e2da7fe9912ca8c547e0a3e1001cd65c594e23c38478341908f952fc9fed3e42020179ce90f3910b92 SHA512 6d96d69502bd703b62ac9fe8723fdf737f73d4a77c53e13c0b888d40ade96617c3d3cbf09013121c049c5c28db496d554fe217b03de9abfe28971586c8dc8d32
|
||||
|
@ -0,0 +1,54 @@
|
||||
# Copyright 2019-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=flit
|
||||
PYTHON_COMPAT=( python3_{8..10} pypy3 )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Simplified packaging of Python modules"
|
||||
HOMEPAGE="https://github.com/pypa/flit https://flit.readthedocs.io/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~mips ~x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
>=dev-python/flit_core-${PV}[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/requests_download[${PYTHON_USEDEP}]
|
||||
dev-python/tomli[${PYTHON_USEDEP}]
|
||||
dev-python/tomli-w[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="${RDEPEND}
|
||||
sys-apps/grep
|
||||
test? (
|
||||
dev-python/pip[${PYTHON_USEDEP}]
|
||||
dev-python/responses[${PYTHON_USEDEP}]
|
||||
dev-python/testpath[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# requires Internet
|
||||
tests/test_config.py::test_invalid_classifier
|
||||
# failing due to Gentoo pip patches
|
||||
tests/test_install.py::InstallTests::test_install_data_dir
|
||||
tests/test_install.py::InstallTests::test_install_module_pep621
|
||||
tests/test_install.py::InstallTests::test_symlink_data_dir
|
||||
tests/test_install.py::InstallTests::test_symlink_module_pep621
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
distutils_enable_sphinx doc \
|
||||
dev-python/sphinxcontrib-github-alt \
|
||||
dev-python/pygments-github-lexers \
|
||||
|
||||
src_prepare() {
|
||||
# make sure system install is used
|
||||
rm -r flit_core || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST flit_core-3.5.1.tar.gz 27497 BLAKE2B 0e47576a05afa306a17e0fe64bd48e4a141fa51df225365495692aeae1c693635f1ea13ba23fdd93543c9b152dcfc2424bd8101a544ad25be2c4561964a8a8bb SHA512 c83b5bd54ffdf2d7dbea340939cb5f0210ffd36aa0f61b02519837843ebbab206a2456a007f76cbae45c2133ef3d21949d1834083c8dddb505ed5bb127a5fdba
|
||||
DIST flit_core-3.6.0.tar.gz 37534 BLAKE2B 7450dcddc0719e17b79b82a07fbfee3116ea9eface5cba8f7d6fa27011f6b20822f8f5c02633ac75456b30327328ef60e05e15ca78a26935dfac5a66e2538a1e SHA512 6a217a6e7d8c4f81491314987ff1510f1cede233213982d9f7b2705ab5b1a7fb4b337ad9daa5ff824ed00034ba1d53215d56def86909240d49265e628ffb83b2
|
||||
DIST flit_core-3.7.0.tar.gz 39892 BLAKE2B 19521ea85d72986dc532618bc13bd646178c10caf012bdae7a5a1d6a45d233228aaa16ac1096170bf88074272078202fa340e1d4aa88dd998868c730209e3060 SHA512 13059aeda4694a110a8777ddf13458723cec6ab9f8eeeff6ed237e7a1c2c1873128553d33e605704ef7b5ffc9438087f0f5cf52d9c3208fedafcecbe5ebfa67c
|
||||
|
@ -0,0 +1,34 @@
|
||||
# Copyright 2019-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# please keep this ebuild at EAPI 7 -- sys-apps/portage dep
|
||||
EAPI=7
|
||||
|
||||
DISTUTILS_USE_PEP517=standalone
|
||||
PYTHON_COMPAT=( python3_{8..10} pypy3 )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Simplified packaging of Python modules (core module)"
|
||||
HOMEPAGE="
|
||||
https://pypi.org/project/flit_core/
|
||||
https://github.com/pypa/flit/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/tomli[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? ( dev-python/testpath[${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
rm -r flit_core/vendor || die
|
||||
sed -i -e 's:from \.vendor ::' flit_core/*.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
@ -0,0 +1,50 @@
|
||||
# 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..10} pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="HTTP Request and Response Service"
|
||||
HOMEPAGE="https://github.com/postmanlabs/httpbin
|
||||
https://pypi.org/project/httpbin/"
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/brotlicffi[${PYTHON_USEDEP}]
|
||||
dev-python/decorator[${PYTHON_USEDEP}]
|
||||
dev-python/flask[${PYTHON_USEDEP}]
|
||||
dev-python/itsdangerous[${PYTHON_USEDEP}]
|
||||
dev-python/markupsafe[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
>=dev-python/werkzeug-0.14.1[${PYTHON_USEDEP}]"
|
||||
|
||||
PATCHES=(
|
||||
# do not import raven if it's not going to be used
|
||||
# (upstream removed it completely in git anyway)
|
||||
"${FILESDIR}"/httpbin-0.7.0-optional-raven.patch
|
||||
# fix tests with new versions of werkzeug
|
||||
"${FILESDIR}"/httpbin-0.7.0-test-werkzeug.patch
|
||||
# use brotlicffi instead of brotlipy
|
||||
"${FILESDIR}"/httpbin-0.7.0-brotlicffi.patch
|
||||
)
|
||||
|
||||
distutils_enable_tests unittest
|
||||
|
||||
src_prepare() {
|
||||
# a new version of flask or whatever converts relative redirects
|
||||
# to absolute; this package is dead anyway, so just skip
|
||||
# the relevant tests
|
||||
sed -e 's:test_redirect:_&:' \
|
||||
-e 's:test_relative:_&:' \
|
||||
-i test_httpbin.py || die
|
||||
|
||||
distutils-r1_src_prepare
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
# 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..10} pypy3 )
|
||||
PYTHON_REQ_USE="threads(+),sqlite"
|
||||
|
||||
inherit distutils-r1 multiprocessing optfeature
|
||||
|
||||
DESCRIPTION="A library for property based testing"
|
||||
HOMEPAGE="https://github.com/HypothesisWorks/hypothesis https://pypi.org/project/hypothesis/"
|
||||
SRC_URI="https://github.com/HypothesisWorks/${PN}/archive/${PN}-python-${PV}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python"
|
||||
|
||||
LICENSE="MPL-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
|
||||
IUSE="cli"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}]
|
||||
cli? (
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/black[${PYTHON_USEDEP}]
|
||||
dev-python/click[${PYTHON_USEDEP}]
|
||||
' python3_{8..10})
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/pexpect[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||
!!<dev-python/typing-3.7.4.1
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare() {
|
||||
if ! use cli || ! has "${EPYTHON}" python3.{8..10}; then
|
||||
sed -i -e '/console_scripts/d' setup.py || die
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# subtests are broken by warnings from random plugins
|
||||
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||
local -x PYTEST_PLUGINS=xdist.plugin,pytest_forked,_hypothesis_pytestplugin
|
||||
|
||||
epytest tests/cover tests/pytest tests/quality \
|
||||
-n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "datetime support" dev-python/pytz
|
||||
optfeature "dateutil support" dev-python/python-dateutil
|
||||
optfeature "numpy support" dev-python/numpy
|
||||
optfeature "django support" dev-python/django dev-python/pytz
|
||||
optfeature "pandas support" dev-python/pandas
|
||||
optfeature "pytest support" dev-python/pytest
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST loky-3.0.0.tar.gz 152463 BLAKE2B 99f0a1fc85e879626d12402dd4fee4b92345eab9520b1afaf95bbf869d2dc9e429f1f9810554e10d97f0ecbc4add28b1cbaee0477de05aa366faeb335eaef7c8 SHA512 ad171bfac031ab4d6749bde416031e905eb29adb97dab9c3348791c9df78b17e1e3eab8a354954d7c16fb2095ccc03d26cf2153fe53a546007a7a89c6046cb36
|
||||
DIST loky-3.1.0.tar.gz 139211 BLAKE2B 32e95312c40d6f8d8f9fc8daf5a1e85f1b874cbb902a4885621983d84a5fa9da42f05ff7d5d6bf58cf04a320c04c6e698ff0105cdad9ddd3248a109cc71c9883 SHA512 8bf6b032bb4f770d89c8de93d95c5805fa90dae34f2754f14c3a9fe7860230e8ce8ea97e1b09fa2cdf67f8aecdbd6d1e47ae4fb746fb1c6912d2dd65033f5b6f
|
||||
|
@ -0,0 +1,41 @@
|
||||
# Copyright 2020-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Robust and reusable Executor for joblib"
|
||||
HOMEPAGE="https://github.com/joblib/loky"
|
||||
SRC_URI="
|
||||
https://github.com/joblib/loky/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/cloudpickle[${PYTHON_USEDEP}]
|
||||
dev-python/psutil[${PYTHON_USEDEP}]"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
dev-python/packaging[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
EPYTEST_DESELECT=(
|
||||
# docker, seriously?
|
||||
tests/test_loky_module.py::test_cpu_count_cfs_limit
|
||||
# hangs, and even pytest-timeout does not help
|
||||
tests/test_reusable_executor.py::TestExecutorDeadLock::test_deadlock_kill
|
||||
)
|
||||
|
||||
# high memory test needs a lot of memory + is broken on 32-bit platforms
|
||||
epytest --skip-high-memory -p no:xvfb
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST psutil-5.7.3.tar.gz 465556 BLAKE2B 6a9f31fcba571f381c1f4c904a9ff65659d13ed64e91df478aa7df4dabb87a35c4fbd9c0491a3d10b9eaf0fdcc8f2407fcf7144e729043eda605dfe6e6f93844 SHA512 8fcff56dd4e4c1b877c09023721e6f562424f7f84ae5304d518976a1e7f21dd026772f1abfc063bdd0857a375bc869f42febde090dc0b65918d1ebf44e3ad71d
|
||||
DIST psutil-5.9.0.tar.gz 478322 BLAKE2B 763c8ae14ae546bed64a360047d2ce38783e9e7e939160f751c4ccc94b8e023aaa4cdca426f584e05dae8b1326333660e216d7cb3edd820e24a931dddfa5160f SHA512 b521cfce51e90fdf87ba19bf8069877e3210aede92c17460ea0b00324a36e133168e4bff550462d07ab6d93c597c6560d68954340031ff43168d54a8e5d4c4e7
|
||||
|
@ -0,0 +1,188 @@
|
||||
diff --git a/psutil/tests/__init__.py b/psutil/tests/__init__.py
|
||||
index 21bb3e61..6c45c9e0 100644
|
||||
--- a/psutil/tests/__init__.py
|
||||
+++ b/psutil/tests/__init__.py
|
||||
@@ -88,6 +88,7 @@ __all__ = [
|
||||
"HAS_IONICE", "HAS_MEMORY_MAPS", "HAS_PROC_CPU_NUM", "HAS_RLIMIT",
|
||||
"HAS_SENSORS_BATTERY", "HAS_BATTERY", "HAS_SENSORS_FANS",
|
||||
"HAS_SENSORS_TEMPERATURES", "HAS_MEMORY_FULL_INFO",
|
||||
+ "GENTOO_TESTING",
|
||||
# subprocesses
|
||||
'pyrun', 'terminate', 'reap_children', 'spawn_testproc', 'spawn_zombie',
|
||||
'spawn_children_pair',
|
||||
@@ -128,6 +129,7 @@ PYPY = '__pypy__' in sys.builtin_module_names
|
||||
APPVEYOR = 'APPVEYOR' in os.environ
|
||||
GITHUB_ACTIONS = 'GITHUB_ACTIONS' in os.environ or 'CIBUILDWHEEL' in os.environ
|
||||
CI_TESTING = APPVEYOR or GITHUB_ACTIONS
|
||||
+GENTOO_TESTING = "GENTOO_TESTING" in os.environ
|
||||
# are we a 64 bit process?
|
||||
IS_64BIT = sys.maxsize > 2 ** 32
|
||||
|
||||
diff --git a/psutil/tests/test_linux.py b/psutil/tests/test_linux.py
|
||||
index 20e28d29..ce5d10a0 100755
|
||||
--- a/psutil/tests/test_linux.py
|
||||
+++ b/psutil/tests/test_linux.py
|
||||
@@ -28,6 +28,7 @@ from psutil._compat import PY3
|
||||
from psutil._compat import FileNotFoundError
|
||||
from psutil._compat import basestring
|
||||
from psutil._compat import u
|
||||
+from psutil.tests import GENTOO_TESTING
|
||||
from psutil.tests import GITHUB_ACTIONS
|
||||
from psutil.tests import GLOBAL_TIMEOUT
|
||||
from psutil.tests import HAS_BATTERY
|
||||
@@ -929,6 +930,7 @@ class TestLoadAvg(PsutilTestCase):
|
||||
@unittest.skipIf(not LINUX, "LINUX only")
|
||||
class TestSystemNetIfAddrs(PsutilTestCase):
|
||||
|
||||
+ @unittest.skipIf(GENTOO_TESTING, "broken in Gentoo test env")
|
||||
def test_ips(self):
|
||||
for name, addrs in psutil.net_if_addrs().items():
|
||||
for addr in addrs:
|
||||
@@ -1491,6 +1493,7 @@ class TestMisc(PsutilTestCase):
|
||||
psutil.PROCFS_PATH = "/proc"
|
||||
|
||||
@retry_on_failure()
|
||||
+ @unittest.skipIf(GENTOO_TESTING, "broken in Gentoo test env")
|
||||
def test_issue_687(self):
|
||||
# In case of thread ID:
|
||||
# - pid_exists() is supposed to return False
|
||||
@@ -1596,6 +1599,8 @@ class TestSensorsBattery(PsutilTestCase):
|
||||
self.assertEqual(psutil.sensors_battery().power_plugged, False)
|
||||
assert m.called
|
||||
|
||||
+ @unittest.skipIf(GENTOO_TESTING,
|
||||
+ "mocking doesn't work with non-BAT0 battery")
|
||||
def test_emulate_power_undetermined(self):
|
||||
# Pretend we can't know whether the AC power cable not
|
||||
# connected (assert fallback to False).
|
||||
@@ -1614,6 +1619,8 @@ class TestSensorsBattery(PsutilTestCase):
|
||||
self.assertIsNone(psutil.sensors_battery().power_plugged)
|
||||
assert m.called
|
||||
|
||||
+ @unittest.skipIf(GENTOO_TESTING,
|
||||
+ "mocking doesn't work with non-BAT0 battery")
|
||||
def test_emulate_energy_full_0(self):
|
||||
# Emulate a case where energy_full files returns 0.
|
||||
with mock_open_content(
|
||||
@@ -1621,6 +1628,8 @@ class TestSensorsBattery(PsutilTestCase):
|
||||
self.assertEqual(psutil.sensors_battery().percent, 0)
|
||||
assert m.called
|
||||
|
||||
+ @unittest.skipIf(GENTOO_TESTING,
|
||||
+ "mocking doesn't work with non-BAT0 battery")
|
||||
def test_emulate_energy_full_not_avail(self):
|
||||
# Emulate a case where energy_full file does not exist.
|
||||
# Expected fallback on /capacity.
|
||||
@@ -1634,6 +1643,8 @@ class TestSensorsBattery(PsutilTestCase):
|
||||
"/sys/class/power_supply/BAT0/capacity", b"88"):
|
||||
self.assertEqual(psutil.sensors_battery().percent, 88)
|
||||
|
||||
+ @unittest.skipIf(GENTOO_TESTING,
|
||||
+ "mocking doesn't work with non-BAT0 battery")
|
||||
def test_emulate_no_power(self):
|
||||
# Emulate a case where /AC0/online file nor /BAT0/status exist.
|
||||
with mock_open_exception(
|
||||
@@ -2220,6 +2231,7 @@ class TestProcessAgainstStatus(PsutilTestCase):
|
||||
value = self.read_status_file("nonvoluntary_ctxt_switches:")
|
||||
self.assertEqual(self.proc.num_ctx_switches().involuntary, value)
|
||||
|
||||
+ @unittest.skipIf(GENTOO_TESTING, "broken in Gentoo test env")
|
||||
def test_cpu_affinity(self):
|
||||
value = self.read_status_file("Cpus_allowed_list:")
|
||||
if '-' in str(value):
|
||||
diff --git a/psutil/tests/test_misc.py b/psutil/tests/test_misc.py
|
||||
index d946eb62..a53de565 100755
|
||||
--- a/psutil/tests/test_misc.py
|
||||
+++ b/psutil/tests/test_misc.py
|
||||
@@ -32,6 +32,7 @@ from psutil._compat import PY3
|
||||
from psutil._compat import redirect_stderr
|
||||
from psutil.tests import APPVEYOR
|
||||
from psutil.tests import CI_TESTING
|
||||
+from psutil.tests import GENTOO_TESTING
|
||||
from psutil.tests import HAS_BATTERY
|
||||
from psutil.tests import HAS_MEMORY_MAPS
|
||||
from psutil.tests import HAS_NET_IO_COUNTERS
|
||||
@@ -401,6 +402,7 @@ class TestMisc(PsutilTestCase):
|
||||
reload_module(psutil)
|
||||
self.assertIn("version conflict", str(cm.exception).lower())
|
||||
|
||||
+ @unittest.skipIf(GENTOO_TESTING, "broken in Gentoo test env")
|
||||
def test_debug(self):
|
||||
if PY3:
|
||||
from io import StringIO
|
||||
diff --git a/psutil/tests/test_posix.py b/psutil/tests/test_posix.py
|
||||
index 31b81926..7eb9bac5 100755
|
||||
--- a/psutil/tests/test_posix.py
|
||||
+++ b/psutil/tests/test_posix.py
|
||||
@@ -23,6 +23,7 @@ from psutil import OPENBSD
|
||||
from psutil import POSIX
|
||||
from psutil import SUNOS
|
||||
from psutil.tests import CI_TESTING
|
||||
+from psutil.tests import GENTOO_TESTING
|
||||
from psutil.tests import HAS_NET_IO_COUNTERS
|
||||
from psutil.tests import PYTHON_EXE
|
||||
from psutil.tests import PsutilTestCase
|
||||
@@ -326,6 +327,7 @@ class TestSystemAPIs(PsutilTestCase):
|
||||
"couldn't find %s nic in 'ifconfig -a' output\n%s" % (
|
||||
nic, output))
|
||||
|
||||
+ @unittest.skipIf(GENTOO_TESTING, "broken in Gentoo test env")
|
||||
@unittest.skipIf(CI_TESTING and not psutil.users(), "unreliable on CI")
|
||||
@retry_on_failure()
|
||||
def test_users(self):
|
||||
diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py
|
||||
index c9059e33..0050c42a 100755
|
||||
--- a/psutil/tests/test_process.py
|
||||
+++ b/psutil/tests/test_process.py
|
||||
@@ -38,6 +38,7 @@ from psutil._compat import long
|
||||
from psutil._compat import super
|
||||
from psutil.tests import APPVEYOR
|
||||
from psutil.tests import CI_TESTING
|
||||
+from psutil.tests import GENTOO_TESTING
|
||||
from psutil.tests import GITHUB_ACTIONS
|
||||
from psutil.tests import GLOBAL_TIMEOUT
|
||||
from psutil.tests import HAS_CPU_AFFINITY
|
||||
@@ -292,6 +293,7 @@ class TestProcess(PsutilTestCase):
|
||||
time.strftime("%Y %m %d %H:%M:%S", time.localtime(p.create_time()))
|
||||
|
||||
@unittest.skipIf(not POSIX, 'POSIX only')
|
||||
+ @unittest.skipIf(GENTOO_TESTING, "broken in Gentoo test env")
|
||||
def test_terminal(self):
|
||||
terminal = psutil.Process().terminal()
|
||||
if terminal is not None:
|
||||
@@ -341,6 +343,7 @@ class TestProcess(PsutilTestCase):
|
||||
self.assertGreaterEqual(io2[i], 0)
|
||||
self.assertGreaterEqual(io2[i], 0)
|
||||
|
||||
+ @unittest.skipIf(GENTOO_TESTING, "fails if builder is ioniced already")
|
||||
@unittest.skipIf(not HAS_IONICE, "not supported")
|
||||
@unittest.skipIf(not LINUX, "linux only")
|
||||
def test_ionice_linux(self):
|
||||
@@ -1406,6 +1409,7 @@ class TestProcess(PsutilTestCase):
|
||||
if not OSX and GITHUB_ACTIONS:
|
||||
self.assertEqual(d1, d2)
|
||||
|
||||
+ @unittest.skipIf(GENTOO_TESTING, "broken by Gentoo sandbox")
|
||||
@unittest.skipIf(not HAS_ENVIRON, "not supported")
|
||||
@unittest.skipIf(not POSIX, "POSIX only")
|
||||
def test_weird_environ(self):
|
||||
diff --git a/psutil/tests/test_system.py b/psutil/tests/test_system.py
|
||||
index db2cb348..b1faa154 100755
|
||||
--- a/psutil/tests/test_system.py
|
||||
+++ b/psutil/tests/test_system.py
|
||||
@@ -33,6 +33,7 @@ from psutil._compat import long
|
||||
from psutil.tests import ASCII_FS
|
||||
from psutil.tests import CI_TESTING
|
||||
from psutil.tests import DEVNULL
|
||||
+from psutil.tests import GENTOO_TESTING
|
||||
from psutil.tests import GITHUB_ACTIONS
|
||||
from psutil.tests import GLOBAL_TIMEOUT
|
||||
from psutil.tests import HAS_BATTERY
|
||||
@@ -199,6 +200,7 @@ class TestMiscAPIs(PsutilTestCase):
|
||||
self.assertGreater(bt, 0)
|
||||
self.assertLess(bt, time.time())
|
||||
|
||||
+ @unittest.skipIf(GENTOO_TESTING, "broken in Gentoo test env")
|
||||
@unittest.skipIf(CI_TESTING and not psutil.users(), "unreliable on CI")
|
||||
def test_users(self):
|
||||
users = psutil.users()
|
@ -0,0 +1,45 @@
|
||||
# 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..10} pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Retrieve information on running processes and system utilization"
|
||||
HOMEPAGE="https://github.com/giampaolo/psutil https://pypi.org/project/psutil/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/psutil-5.9.0-tests.patch
|
||||
)
|
||||
|
||||
python_test() {
|
||||
if [[ ${EPYTHON} == pypy* ]]; then
|
||||
ewarn "Not running tests on ${EPYTHON} since they are broken"
|
||||
return 0
|
||||
fi
|
||||
|
||||
# since we are running in an environment a bit similar to CI,
|
||||
# let's skip the tests that are disable for CI
|
||||
local -x TRAVIS=1
|
||||
local -x APPVEYOR=1
|
||||
local -x GITHUB_ACTIONS=1
|
||||
local -x GENTOO_TESTING=1
|
||||
"${EPYTHON}" psutil/tests/runner.py ||
|
||||
die "tests failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
# force -j1 to avoid .o linking race conditions
|
||||
local MAKEOPTS=-j1
|
||||
distutils-r1_python_compile
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST pygit2-1.7.1.tar.gz 281791 BLAKE2B 51f7f23752acf0abf6000f2262019db7503506267f0f5306bd53e0e15378447d2da564818c1b6efccc4759587aba6b4d7b142c760e4e2796445cd6056e949825 SHA512 a6232039b6364c7a0905aba20f7e27b43892b7067fa95fdd464438869453360ecdb885f2012cdf0eb0734c91dc79b60db894d1d0fee81922b9fb3cf920950937
|
||||
DIST pygit2-1.8.0.tar.gz 290516 BLAKE2B 3ec0035c5d9b7d15b62fdd15303f126ce005f99b632c2fb2a4a0294dac38458893d3fde137905862ede0286b2fb28d507c21092fe1a1178c3369b6b2fb07ee08 SHA512 f027331e1c0eae477048ac80b077361473dbddf2f137b0c6ebc0062a4b026e7fffd1fd7f6850f049dbbadb175a146b60eec87baf96f634e580a2d2237e40844c
|
||||
DIST pygit2-1.9.0.gh.tar.gz 312349 BLAKE2B 067074d58887597cdce9b7bbebb96a8ec8629c4dc42c87c2a0a9a23849bc2e8e36763273c7d883ccfadbc9f71a3b4b5612a9a7b58e3cfb39475e568d85cbdc64 SHA512 8934f1099004a536b78973f74efc8854cbfb736369a0592c382fbc1325409105640235a2b3ce4602ad0dce863cb9ffd34b2359c9840d2abdadb55e2a43df18f9
|
||||
|
@ -0,0 +1,47 @@
|
||||
# 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..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python bindings for libgit2"
|
||||
HOMEPAGE="
|
||||
https://github.com/libgit2/pygit2/
|
||||
https://pypi.org/project/pygit2/"
|
||||
SRC_URI="
|
||||
https://github.com/libgit2/pygit2/archive/v${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="GPL-2-with-linking-exception"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND="
|
||||
=dev-libs/libgit2-1.4*:=
|
||||
"
|
||||
BDEPEND="
|
||||
>=dev-python/cffi-1.9.1:=[${PYTHON_USEDEP}]
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
${BDEPEND}
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
|
||||
# unconditionally prevent it from using network
|
||||
sed -i -e '/has_network/s:True:False:' test/utils.py || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
rm -r pygit2 || die
|
||||
distutils-r1_src_test
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST sentry-sdk-1.5.4.gh.tar.gz 239778 BLAKE2B 383dbc122439a16692fba5ff3a530817b7dc16a4fb6aef1f0353a09e95fadbe2e31015642ef7c5224ea12855a9b0b170d0a64c9dc5471ad978372fe0742d6552 SHA512 2ac725ca91a948f2e6770c2429e444fa97988c8db145728dd202ca86827d9bb101e96a3d8d0d6e4e6a0678b749da1782c068954a1669e019a125e298adfe8d5e
|
||||
DIST sentry-sdk-1.5.5.gh.tar.gz 242280 BLAKE2B 8c3bfeb50d19ee23aa430d77ffa10ea77ab579565b6ef85bacae6d0d8952478587c71d62c74e04e6708ed451b70b8903ffa9bdb10fde5e590586a928118d3942 SHA512 ad31754294e7cc1acd9c5b5f6ae454908e3579298494cef7dbcbc01e0b1a2d2036152ffafe50fc4e859a39e56afc2c8167a242de66b44c9416ebb70a4f032e86
|
||||
DIST sentry-sdk-1.5.6.gh.tar.gz 244568 BLAKE2B 5b9270787abaeadf2b5a15686aa07f60766cbe56c8c657801a88d6074ecab83fd38c3e0d1f0586cd8c8d5e36c5ffc97eec47998bf27bd9461ace9b8a83a2201d SHA512 628b8281e5c267a988730c0ddcb9348a43ce2cffe9b664619e6b5bc6ec4c0034898082b0b57bc2a8ea3100042a1bfb570ce4dd36a23ba412661ee902dfa41492
|
||||
|
@ -0,0 +1,80 @@
|
||||
# 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..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python client for Sentry"
|
||||
HOMEPAGE="https://sentry.io/ https://pypi.org/project/sentry-sdk/"
|
||||
SRC_URI="
|
||||
https://github.com/getsentry/sentry-python/archive/${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
S="${WORKDIR}/sentry-python-${PV}"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/urllib3[${PYTHON_USEDEP}]
|
||||
dev-python/certifi[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/asttokens[${PYTHON_USEDEP}]
|
||||
dev-python/django[${PYTHON_USEDEP}]
|
||||
dev-python/executing[${PYTHON_USEDEP}]
|
||||
dev-python/fakeredis[${PYTHON_USEDEP}]
|
||||
dev-python/flask-login[${PYTHON_USEDEP}]
|
||||
dev-python/gevent[${PYTHON_USEDEP}]
|
||||
dev-python/jsonschema[${PYTHON_USEDEP}]
|
||||
dev-python/pyrsistent[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-aiohttp[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-django[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-forked[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-localserver[${PYTHON_USEDEP}]
|
||||
dev-python/werkzeug[${PYTHON_USEDEP}]
|
||||
dev-python/zope-event[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/eventlet[${PYTHON_USEDEP}]
|
||||
' python3_{8..9})
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
EPYTEST_IGNORE=(
|
||||
# tests require Internet access
|
||||
tests/integrations/httpx/test_httpx.py
|
||||
tests/integrations/requests/test_requests.py
|
||||
tests/integrations/stdlib/test_httplib.py
|
||||
# wtf is it supposed to do?!
|
||||
tests/integrations/gcp/test_gcp.py
|
||||
# broken by rq-1.10.1 (optional dep)
|
||||
tests/integrations/rq/test_rq.py
|
||||
)
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# hangs
|
||||
'tests/test_transport.py::test_transport_works'
|
||||
# TODO
|
||||
'tests/test_basics.py::test_auto_enabling_integrations_catches_import_error'
|
||||
tests/test_client.py::test_databag_depth_stripping
|
||||
tests/test_client.py::test_databag_string_stripping
|
||||
tests/test_client.py::test_databag_breadth_stripping
|
||||
tests/integrations/asgi/test_asgi.py::test_websocket
|
||||
# incompatible version?
|
||||
tests/integrations/falcon/test_falcon.py
|
||||
tests/integrations/sqlalchemy/test_sqlalchemy.py::test_too_large_event_truncated
|
||||
# test_circular_references: apparently fragile
|
||||
'tests/integrations/threading/test_threading.py::test_circular_references'
|
||||
# test for new feature, fails with IndexError
|
||||
tests/integrations/wsgi/test_wsgi.py::test_session_mode_defaults_to_request_mode_in_wsgi_handler
|
||||
# TODO
|
||||
tests/integrations/wsgi/test_wsgi.py::test_auto_session_tracking_with_aggregates
|
||||
)
|
@ -1 +1,2 @@
|
||||
DIST python-snappy-0.6.0.tar.gz 21344 BLAKE2B ed5b3796a6af9b2196a1cd5353cefb808a878b324d2eae6f83fca12400365c069ed38ad50d790d6201ae9584128371a655ac2003708d324fe227e0153ddaca5d SHA512 185f43fa3adef2a5ec7468f993b83d356dbd76b3340badd308ff2350352b004c4c9528b73282407ebc4f6e1c23a03c1b9abd9f3915b04771ad9b011d7163a63c
|
||||
DIST python-snappy-0.6.1.tar.gz 24110 BLAKE2B 66ba24aa1768084c87188dde6eb6c98daf90da39e49902bbc283226aaf28b8d267bbc69f3cb9f30d9aaf64b3e25cc0fae47113bcc65f18dbec2128294c0dbe4b SHA512 43301f568633068bbdcb3dc318f37efcabbb5bd3f61a06b3a3a476006c3cbc1dfddea4ac2de0876bb127b354aa81ccc55dc44631dc8fba06036a0b6c7dfbdb9b
|
||||
|
@ -0,0 +1,30 @@
|
||||
# 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..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN=python-${PN}
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
DESCRIPTION="Python library for the snappy compression library from Google"
|
||||
HOMEPAGE="https://pypi.org/project/python-snappy/"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
||||
SLOT="0"
|
||||
|
||||
DEPEND=">=app-arch/snappy-1.0.2:="
|
||||
RDEPEND=${DEPEND}
|
||||
|
||||
python_test() {
|
||||
cp test*.py "${BUILD_DIR}" || die
|
||||
cd "${BUILD_DIR}" || die
|
||||
"${EPYTHON}" -m unittest -v || die "Tests fail with ${EPYTHON}"
|
||||
}
|
Binary file not shown.
@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
USE_RUBY="ruby25 ruby26"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_DOCDIR=""
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
|
||||
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="app"
|
||||
|
||||
RUBY_FAKEGEM_BINWRAP=""
|
||||
|
||||
inherit ruby-fakegem eapi7-ver
|
||||
|
||||
DESCRIPTION="Integrated WebSockets for Rails"
|
||||
HOMEPAGE="https://github.com/rails/rails"
|
||||
SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="$(ver_cut 1-2)"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RUBY_S="rails-${PV}/${PN}"
|
||||
|
||||
# Tests require many new dependencies, skipping for now
|
||||
RESTRICT="test"
|
||||
|
||||
ruby_add_rdepend "
|
||||
~dev-ruby/actionpack-${PV}:*
|
||||
dev-ruby/nio4r:2
|
||||
>=dev-ruby/websocket-driver-0.6.1:0
|
||||
"
|
||||
|
||||
ruby_add_bdepend "
|
||||
test? (
|
||||
>=dev-ruby/railties-4.2.0
|
||||
dev-ruby/test-unit:2
|
||||
>=dev-ruby/mocha-0.14.0:0.14
|
||||
)"
|
@ -0,0 +1,50 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
USE_RUBY="ruby25 ruby26"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="actionmailer.gemspec"
|
||||
|
||||
RUBY_FAKEGEM_BINWRAP=""
|
||||
|
||||
inherit ruby-fakegem eapi7-ver
|
||||
|
||||
DESCRIPTION="Framework for designing email-service layers"
|
||||
HOMEPAGE="https://github.com/rails/rails"
|
||||
SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="$(ver_cut 1-2)"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux"
|
||||
IUSE=""
|
||||
|
||||
RUBY_S="rails-${PV}/${PN}"
|
||||
|
||||
ruby_add_rdepend "
|
||||
~dev-ruby/actionpack-${PV}
|
||||
~dev-ruby/actionview-${PV}
|
||||
~dev-ruby/activejob-${PV}
|
||||
>=dev-ruby/mail-2.5.4:* =dev-ruby/mail-2*:*
|
||||
dev-ruby/rails-dom-testing:2"
|
||||
|
||||
ruby_add_bdepend "test? (
|
||||
dev-ruby/mocha
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Set test environment to our hand.
|
||||
rm "${S}/../Gemfile" || die "Unable to remove Gemfile"
|
||||
sed -e '/\/load_paths/d' \
|
||||
-e '1igem "railties", "~> 5.2.0"' \
|
||||
-e '1igem "actionpack", "~> 5.2.0"' \
|
||||
-e '1igem "activejob", "~> 5.2.0"' \
|
||||
-i test/abstract_unit.rb || die "Unable to remove load paths"
|
||||
|
||||
# Avoid a test failing only on attachment ordering, since this is a
|
||||
# security release.
|
||||
sed -i -e '/adding inline attachments while rendering mail works/askip "gentoo: fails on ordering"' test/base_test.rb || die
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue