6627 changed files with 9451 additions and 7327 deletions
-
BINManifest.files.gz
-
BINacct-group/Manifest.gz
-
10acct-group/minetest/metadata.xml
-
BINacct-user/Manifest.gz
-
10acct-user/minetest/metadata.xml
-
13acct-user/minetest/minetest-0-r1.ebuild
-
BINapp-admin/Manifest.gz
-
2app-admin/conky/conky-1.12.1-r1.ebuild
-
2app-admin/selint/selint-1.2.0.ebuild
-
2app-admin/sudo/Manifest
-
0app-admin/sudo/sudo-1.9.7.ebuild
-
1app-admin/sysklogd/Manifest
-
84app-admin/sysklogd/sysklogd-2.2.3.ebuild
-
BINapp-editors/Manifest.gz
-
1app-editors/mousepad/Manifest
-
42app-editors/mousepad/mousepad-0.5.5.ebuild
-
BINapp-text/Manifest.gz
-
6app-text/dictd/dictd-1.13.0-r2.ebuild
-
BINdev-cpp/Manifest.gz
-
2dev-cpp/benchmark/Manifest
-
26dev-cpp/benchmark/benchmark-1.5.1.ebuild
-
32dev-cpp/benchmark/benchmark-1.5.2.ebuild
-
30dev-cpp/benchmark/files/benchmark-1.5.2-Add-missing-limits-inclusion.patch
-
12dev-cpp/benchmark/metadata.xml
-
1dev-cpp/prometheus-cpp/Manifest
-
10dev-cpp/prometheus-cpp/metadata.xml
-
41dev-cpp/prometheus-cpp/prometheus-cpp-0.12.3.ebuild
-
BINdev-db/Manifest.gz
-
2dev-db/myodbc/Manifest
-
0dev-db/myodbc/myodbc-8.0.25.ebuild
-
2dev-db/mysql-connector-c/Manifest
-
5dev-db/mysql-connector-c/mysql-connector-c-8.0.25.ebuild
-
4dev-db/mysql/Manifest
-
2dev-db/mysql/mysql-8.0.25.ebuild
-
BINdev-dotnet/Manifest.gz
-
5dev-dotnet/dbus-sharp-glib/metadata.xml
-
5dev-dotnet/dbus-sharp/metadata.xml
-
5dev-dotnet/gkeyfile-sharp/metadata.xml
-
5dev-dotnet/gtk-sharp/metadata.xml
-
5dev-dotnet/libgdiplus/metadata.xml
-
5dev-dotnet/monocalendar/metadata.xml
-
5dev-dotnet/ndesk-dbus-glib/metadata.xml
-
5dev-dotnet/ndesk-dbus/metadata.xml
-
5dev-dotnet/notify-sharp/metadata.xml
-
4dev-dotnet/pe-format/metadata.xml
-
BINdev-lang/Manifest.gz
-
5dev-lang/mono/metadata.xml
-
5dev-lang/python/Manifest
-
355dev-lang/python/python-2.7.18_p10.ebuild
-
338dev-lang/python/python-3.6.13_p4.ebuild
-
330dev-lang/python/python-3.7.10_p4.ebuild
-
336dev-lang/python/python-3.8.10_p1.ebuild
-
345dev-lang/python/python-3.9.5_p1.ebuild
-
BINdev-python/Manifest.gz
-
1dev-python/aesara/Manifest
-
65dev-python/aesara/aesara-2.0.8.ebuild
-
4dev-python/asgiref/asgiref-3.3.4.ebuild
-
1dev-python/boto3/Manifest
-
56dev-python/boto3/boto3-1.17.71.ebuild
-
1dev-python/botocore/Manifest
-
59dev-python/botocore/botocore-1.20.71.ebuild
-
1dev-python/click/Manifest
-
27dev-python/click/click-8.0.0.ebuild
-
1dev-python/flask/Manifest
-
44dev-python/flask/flask-2.0.0.ebuild
-
1dev-python/itsdangerous/Manifest
-
21dev-python/itsdangerous/itsdangerous-2.0.0.ebuild
-
1dev-python/jinja/Manifest
-
52dev-python/jinja/jinja-3.0.0.ebuild
-
1dev-python/markupsafe/Manifest
-
22dev-python/markupsafe/markupsafe-2.0.0.ebuild
-
2dev-python/mysql-connector-python/Manifest
-
0dev-python/mysql-connector-python/mysql-connector-python-8.0.25.ebuild
-
1dev-python/pydantic/Manifest
-
41dev-python/pydantic/pydantic-1.8.2.ebuild
-
1dev-python/pypy3/Manifest
-
176dev-python/pypy3/pypy3-7.3.3_p37_p1-r1.ebuild
-
1dev-python/service_identity/service_identity-21.1.0.ebuild
-
1dev-python/sympy/Manifest
-
66dev-python/sympy/sympy-1.7.1-r1.ebuild
-
9dev-python/watchdog/watchdog-2.1.1.ebuild
-
1dev-python/werkzeug/Manifest
-
40dev-python/werkzeug/werkzeug-2.0.0.ebuild
-
BINdev-util/Manifest.gz
-
5dev-util/treecc/metadata.xml
-
BINeclass/Manifest.gz
-
2eclass/dotnet.eclass
-
4eclass/mono-env.eclass
-
4eclass/mono.eclass
-
7eclass/python-utils-r1.eclass
-
BINgames-action/Manifest.gz
-
39games-action/minetest/files/minetest-5.4.1-system_puc_lua.patch
-
10games-action/minetest/metadata.xml
-
8games-action/minetest/minetest-5.4.1.ebuild
-
BINkde-apps/Manifest.gz
-
4kde-apps/dolphin/dolphin-20.12.3-r1.ebuild
-
4kde-apps/dolphin/dolphin-21.04.0.ebuild
-
23kde-apps/dolphin/files/dolphin-21.04.0-fix-no-semantic-desktop.patch
-
41kde-apps/dolphin/files/dolphin-21.04.1-fix-no-semantic-desktop.patch
-
BINkde-plasma/Manifest.gz
@ -1,13 +0,0 @@ |
|||
# Copyright 2019-2020 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=7 |
|||
|
|||
inherit acct-user |
|||
|
|||
DESCRIPTION="A user for the Minetest server" |
|||
|
|||
ACCT_USER_GROUPS=( "minetest" ) |
|||
ACCT_USER_ID="480" |
|||
|
|||
acct-user_add_deps |
@ -1,3 +1,3 @@ |
|||
DIST sudo-1.9.5p2.tar.gz 4012277 BLAKE2B 41913887463e4f775564af8d614fb5ed762200aa777dc789ec333842d4f432323474fc952a531fe929b33607cdfbcd18d7fe7470a15d67139deaf855841ed11f SHA512 f0fe914963c31a6f8ab6c86847ff6cdd125bd5a839b27f46dcae03963f4fc413b3d4cca54c1979feb825c8479b44c7df0642c07345c941eecf6f9f1e03ea0e27 |
|||
DIST sudo-1.9.6p1.tar.gz 4119888 BLAKE2B 02bdb551c46cff11ac56e64937c64e6a29ccd8e0af34ea2f6b33c223bee8f7ad958d0fc3d7ef8ef12bf5bc82565769b923ff112a3f3d6bf6999fa4f6ea55e38e SHA512 632dfe72f04ce9a7a5a7236fcd5c09ce4535e695ced49d24dd848e3a7b1bea7380df44188b9e475af4271069539b5a5816948a98fbb0649ebebaba8b4c4b7745 |
|||
DIST sudo-1.9.7rc1.tar.gz 4195574 BLAKE2B 0760443877921faee83bc9561070659eefe02f966b17eb67719b4298417b147787296387e9868050b70ea95ff20b9f8ae986476fe347d27af0b01df11b82bead SHA512 6b73f0bb495e7e6217faaf18cd47c7753a17e4a6470bdb2cd2d2b0f3eda8cc5adde58a61faad6b4f0228617a6e586edd1c8350b15b3c15f98ed78311e0fb6f45 |
|||
DIST sudo-1.9.7.tar.gz 4194242 BLAKE2B 5addf9fc0a8fea8ada89f240f827dcec973277f120ad98f7942f8e46e2869c676eaca044b9c46e43dab120efea3413c71e19c30ef5b0d9cc4d9ad8f0413dbffe SHA512 53e9f18f6c0acd4f80c0cd695cd23781310e9edd305d1b3ea19653efa3fd7faba149daef0ba4953615b140a8816bc980c9bd8d28545dd8db98075abf11b63e61 |
@ -1 +1,2 @@ |
|||
DIST sysklogd-2.2.2.tar.gz 441106 BLAKE2B b99c63027468967083bb1338a6299bf2f58415c1d20a43f23ff613a5ce318c45c43640824bc82fe3ea423cd9432930a070354bb7a51281bd113b4d088bf17643 SHA512 5db5b0fc58530634627463a5b79ebc3b27c54284b371ce8c37cb6de4ed542640fb8a36e594bb73c0a541d22c6fa0ff985ad06cb2b76cd30cce988741ded86903 |
|||
DIST sysklogd-2.2.3.tar.gz 441630 BLAKE2B e23b95aea9d98effc6a88dd14c4fafa358274ea839e7a07ab51bd0257fe0398a1ba6b629c4711d679fffaf03f04c177454f536bdd78dcad2b9f2ae36ff91138e SHA512 db1675256f0f0b0874e2e6a68fb086294bef1d6d3f3e9a6470f8d797ae504b2ab03ed23dc2753c8108a230c3f617e67c4a71e099a2ffeb7ffc8a0efdd07e8d17 |
@ -0,0 +1,84 @@ |
|||
# Copyright 1999-2021 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=7 |
|||
|
|||
inherit flag-o-matic systemd toolchain-funcs |
|||
|
|||
DESCRIPTION="Standard log daemons" |
|||
HOMEPAGE="https://troglobit.com/sysklogd.html https://github.com/troglobit/sysklogd" |
|||
|
|||
if [[ "${PV}" == *9999 ]] ; then |
|||
inherit autotools git-r3 |
|||
EGIT_REPO_URI="https://github.com/troglobit/sysklogd.git" |
|||
else |
|||
SRC_URI="https://github.com/troglobit/sysklogd/releases/download/v${PV}/${P}.tar.gz" |
|||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
|||
fi |
|||
|
|||
LICENSE="BSD" |
|||
SLOT="0" |
|||
IUSE="logger logrotate systemd" |
|||
RESTRICT="test" |
|||
|
|||
DEPEND=" |
|||
logger? ( |
|||
!<sys-apps/util-linux-2.34-r3 |
|||
!>=sys-apps/util-linux-2.34-r3[logger] |
|||
) |
|||
" |
|||
RDEPEND="${DEPEND} |
|||
logrotate? ( app-admin/logrotate )" |
|||
|
|||
DOCS=( ChangeLog.md README.md ) |
|||
|
|||
pkg_setup() { |
|||
append-lfs-flags |
|||
tc-export CC |
|||
} |
|||
|
|||
src_prepare() { |
|||
default |
|||
[[ "${PV}" == *9999 ]] && eautoreconf |
|||
} |
|||
|
|||
src_configure() { |
|||
local myeconfargs=( |
|||
--disable-static |
|||
--runstatedir="${EPREFIX}"/run |
|||
$(use_with logger) |
|||
$(use_with systemd systemd $(systemd_get_systemunitdir)) |
|||
) |
|||
econf "${myeconfargs[@]}" |
|||
} |
|||
|
|||
src_install() { |
|||
default |
|||
|
|||
insinto /etc |
|||
doins syslog.conf |
|||
keepdir /etc/syslog.d |
|||
|
|||
newinitd "${FILESDIR}"/sysklogd.rc10 sysklogd |
|||
newconfd "${FILESDIR}"/sysklogd.confd3 sysklogd |
|||
|
|||
if use logrotate ; then |
|||
insinto /etc/logrotate.d |
|||
newins "${FILESDIR}"/sysklogd.logrotate sysklogd |
|||
sed 's@ -r 10M:10@@' -i "${ED}"/etc/conf.d/sysklogd || die |
|||
fi |
|||
|
|||
find "${ED}" -type f -name "*.la" -delete || die |
|||
} |
|||
|
|||
pkg_postinst() { |
|||
if ! use logrotate && [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 2.0 ; then |
|||
elog "Starting with version 2.0 syslogd has built in log rotation" |
|||
elog "functionality that does no longer require a running cron daemon." |
|||
elog "So we no longer install any log rotation cron files for sysklogd." |
|||
fi |
|||
if [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 2.1 ; then |
|||
elog "Starting with version 2.1 sysklogd no longer provides klogd." |
|||
elog "syslogd now also logs kernel messages." |
|||
fi |
|||
} |
@ -1,2 +1,3 @@ |
|||
DIST mousepad-0.5.3.tar.bz2 848169 BLAKE2B c5001d5a1f3c8ef820fdf2297679b8c7acae7cb08ed134529b7b1e0861e8d9b36c9495b6a207371c9e6a0f59a3f7bd41adaa678250d96ab7112427d5cfc2aa0d SHA512 596d85a9b7caa1616bd5adc2bb4f7ddbdf47d9e4a049f100581ecba9c61db5243f45d3dd8217ecaed1803c73c2221a396817790efe3898c487c12c8ce8d328c6 |
|||
DIST mousepad-0.5.4.tar.bz2 855416 BLAKE2B a998b2faabae1ad505da3a8fb560c731e6f5002801cdc3a4edcd515d5d75210ae509261644070e1951629271bd5956aee1e196c35c6b7e9c3ab782cd06b35ac6 SHA512 52d1d9b235b13a651ee7e6e1633074c7829c27e880033637eacdd7cd63f246d1f47d0cd2c981cf2a7eb96dbb7119204a685f00a60968e4478d5057bce8500370 |
|||
DIST mousepad-0.5.5.tar.bz2 891263 BLAKE2B a75930385f9087f6294811c91b2a162d2e9ca2e945ec84efdfd932806211ee105d2ac2835122c2de4ea519b6728959478147d11df75ff3b00324c262983046a0 SHA512 5c6d6d048fe8a08c04ddeff7adb7d621d9beac631dd58fe5778cc8236e06ddb4ab50380eaebf4236c655b6d26058242024d5d3bbb1772607ab1f10744f8936f1 |
@ -0,0 +1,42 @@ |
|||
# Copyright 1999-2021 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=7 |
|||
inherit gnome2-utils xdg-utils |
|||
|
|||
DESCRIPTION="GTK+-based editor for the Xfce Desktop Environment" |
|||
HOMEPAGE="https://git.xfce.org/apps/mousepad/about/" |
|||
SRC_URI="https://archive.xfce.org/src/apps/${PN}/${PV%.*}/${P}.tar.bz2" |
|||
|
|||
LICENSE="GPL-2+" |
|||
SLOT="0" |
|||
KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
|||
|
|||
RDEPEND=">=dev-libs/glib-2.52 |
|||
>=x11-libs/gtk+-3.22:3 |
|||
>=x11-libs/gtksourceview-4.0.0:4" |
|||
DEPEND="${RDEPEND}" |
|||
BDEPEND=" |
|||
dev-lang/perl |
|||
dev-util/intltool |
|||
sys-devel/gettext |
|||
virtual/pkgconfig" |
|||
|
|||
src_configure() { |
|||
local myconf=( |
|||
--enable-gtksourceview4 |
|||
) |
|||
econf "${myconf[@]}" |
|||
} |
|||
|
|||
pkg_postinst() { |
|||
gnome2_schemas_update |
|||
xdg_desktop_database_update |
|||
xdg_icon_cache_update |
|||
} |
|||
|
|||
pkg_postrm() { |
|||
gnome2_schemas_update |
|||
xdg_desktop_database_update |
|||
xdg_icon_cache_update |
|||
} |
@ -1,3 +1 @@ |
|||
DIST benchmark-1.5.1.tar.gz 154896 BLAKE2B cb8d74b3e6662e35ea12809d8b62d1e3a6849668840c84697e7f4b2d29eaf68688bb1cda6f43c170e70366de88a93af79bb709d55dfc8d79140c11a31855a46b SHA512 1e8782ab6846b8b29c5eea41ed1ba19dd92a46a135cf74acdc588e2cd5ef05581c644d20fc0d6403456d65417538e1db80109ae87989601298b2fc56ae3c3161 |
|||
DIST benchmark-1.5.2.tar.gz 160235 BLAKE2B af14235d174e39b8bbb0a44960834b7d13b1aed6cd4494efa9eb58d32c051efdf244258a33b83b82ad82aa69917356c35ccb470caea838cb6fd7eda37f0f80f6 SHA512 a071613f3af669296aa613e0e64726bdcf27cc3db331d8003f49164581cd6935a86641ec435118ea590a9d722a926d3fef740e938e1a5f6eba8e2a5a615da1b0 |
|||
DIST benchmark-1.5.3.tar.gz 163465 BLAKE2B cea8929c5595be55e74e6232eb147a00c656cc5afe6f5b9d3d788de002c51c40c46012461a7c6840aff9e590ed4304f24a31249402bbbeae28ec443a433a2e53 SHA512 11f726686ad8b36870fc2a3542fad4c52a58df2eb580564dcfdfb154fe6ac00dbbf69c514395148d7ab11a45e40e869549cf971462c384f59cbae5fa60160e3b |
@ -1,26 +0,0 @@ |
|||
# Copyright 1999-2021 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=7 |
|||
|
|||
inherit cmake |
|||
|
|||
DESCRIPTION="A microbenchmark support library" |
|||
HOMEPAGE="https://github.com/google/benchmark" |
|||
SRC_URI="https://github.com/google/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
|||
|
|||
LICENSE="Apache-2.0" |
|||
SLOT="0" |
|||
KEYWORDS="~amd64 ~hppa ~x86" |
|||
IUSE="test" |
|||
RESTRICT="!test? ( test )" |
|||
|
|||
src_configure() { |
|||
local mycmakeargs=( |
|||
-DBENCHMARK_ENABLE_TESTING=$(usex test) |
|||
-DBENCHMARK_ENABLE_GTEST_TESTS=OFF |
|||
-DBENCHMARK_ENABLE_ASSEMBLY_TESTS=OFF |
|||
) |
|||
|
|||
cmake_src_configure |
|||
} |
@ -1,32 +0,0 @@ |
|||
# Copyright 1999-2021 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=7 |
|||
|
|||
inherit cmake |
|||
|
|||
DESCRIPTION="A microbenchmark support library" |
|||
HOMEPAGE="https://github.com/google/benchmark" |
|||
SRC_URI="https://github.com/google/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
|||
|
|||
LICENSE="Apache-2.0" |
|||
SLOT="0" |
|||
KEYWORDS="~amd64 ~arm64 ~hppa ~ppc64 ~x86" |
|||
IUSE="debug test" |
|||
RESTRICT="!test? ( test )" |
|||
|
|||
PATCHES=( |
|||
"${FILESDIR}/${P}-Add-missing-limits-inclusion.patch" |
|||
) |
|||
|
|||
src_configure() { |
|||
local mycmakeargs=( |
|||
-DBENCHMARK_ENABLE_TESTING=$(usex test) |
|||
-DBENCHMARK_ENABLE_GTEST_TESTS=OFF |
|||
-DBENCHMARK_ENABLE_ASSEMBLY_TESTS=OFF |
|||
) |
|||
|
|||
use debug || append-cppflags -DNDEBUG |
|||
|
|||
cmake_src_configure |
|||
} |
@ -1,30 +0,0 @@ |
|||
From 3d1c2677686718d906f28c1d4da001c42666e6d2 Mon Sep 17 00:00:00 2001 |
|||
From: Sergei Trofimovich <slyfox@inbox.ru> |
|||
Date: Thu, 15 Oct 2020 09:12:40 +0100 |
|||
Subject: [PATCH] src/benchmark_register.h: add missing <limits> inclusion |
|||
(#1060) |
|||
|
|||
Noticed missing header when was building llvm with gcc-11: |
|||
|
|||
``` |
|||
llvm-project/llvm/utils/benchmark/src/benchmark_register.h:17:30: |
|||
error: 'numeric_limits' is not a member of 'std' |
|||
17 | static const T kmax = std::numeric_limits<T>::max(); |
|||
| ^~~~~~~~~~~~~~ |
|||
``` |
|||
---
|
|||
src/benchmark_register.h | 1 + |
|||
1 file changed, 1 insertion(+) |
|||
|
|||
diff --git a/src/benchmark_register.h b/src/benchmark_register.h
|
|||
index 61377d74..204bf1d9 100644
|
|||
--- a/src/benchmark_register.h
|
|||
+++ b/src/benchmark_register.h
|
|||
@@ -1,6 +1,7 @@
|
|||
#ifndef BENCHMARK_REGISTER_H |
|||
#define BENCHMARK_REGISTER_H |
|||
|
|||
+#include <limits>
|
|||
#include <vector> |
|||
|
|||
#include "check.h" |
@ -1,17 +1,13 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
|||
<pkgmetadata> |
|||
<maintainer type="person" proxied="yes"> |
|||
<email>vilhelm.gray@gmail.com</email> |
|||
<name>William Breathitt Gray</name> |
|||
</maintainer> |
|||
<maintainer type="project" proxied="proxy"> |
|||
<email>proxy-maint@gentoo.org</email> |
|||
<name>Proxy Maintainers</name> |
|||
<maintainer type="person"> |
|||
<email>marecki@gentoo.org</email> |
|||
<name>Marek Szuba</name> |
|||
</maintainer> |
|||
<upstream> |
|||
<bugs-to>https://github.com/google/benchmark/issues</bugs-to> |
|||
<doc lang="en">https://github.com/google/benchmark/blob/master/docs/</doc> |
|||
<doc lang="en">https://github.com/google/benchmark/tree/master/docs/</doc> |
|||
<remote-id type="github">google/benchmark</remote-id> |
|||
</upstream> |
|||
</pkgmetadata> |
@ -1 +1,2 @@ |
|||
DIST prometheus-cpp-0.12.2.tar.gz 55191 BLAKE2B f1430cf6b8ca8272c447e8c2a25af5fb0d515389cb1078f8836a9a1f1ba0e26cc43236e9c147219384df40d601b843219acb95ebc46bb1c2fce6d83a86724182 SHA512 9907658939b7956219c3623bd5997f341f4374fbce2ee606bd1d8df820779ed8dc70658a30aafbb47b9af645205c048270b23e701203e13286bc365094a441d3 |
|||
DIST prometheus-cpp-0.12.3.tar.gz 55510 BLAKE2B 8a9dffb4608f1d1f141726cf7bec3a19ca9040baca9871ff3aa950aa979b34319e704539ff3f2830a5c145645e9c3c0efc9e9b2c5c534d8b3745aaf1e9426763 SHA512 e8093db6e58d1672fd94daeed94f2c11f663145195bf878e0403973f2f4f62a3f9430cf6de1fc9ac0821b4b323e3faeb96199d450b3d7a04a5dee0e6f94ddc01 |
@ -0,0 +1,41 @@ |
|||
# Copyright 1999-2021 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=7 |
|||
|
|||
inherit cmake |
|||
|
|||
DESCRIPTION="Prometheus Client Library for Modern C++" |
|||
HOMEPAGE="https://github.com/jupp0r/prometheus-cpp" |
|||
SRC_URI="https://github.com/jupp0r/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
|||
|
|||
LICENSE="MIT" |
|||
SLOT="0" |
|||
KEYWORDS="~amd64 ~x86" |
|||
IUSE="test zlib" |
|||
|
|||
RESTRICT="!test? ( test )" |
|||
|
|||
RDEPEND="net-misc/curl |
|||
sys-libs/zlib |
|||
www-servers/civetweb[cxx]" |
|||
DEPEND="${RDEPEND} |
|||
test? ( |
|||
dev-cpp/benchmark |
|||
dev-cpp/gtest |
|||
)" |
|||
BDEPEND="virtual/pkgconfig" |
|||
|
|||
src_configure() { |
|||
local mycmakeargs=( |
|||
-DENABLE_PULL=yes |
|||
-DENABLE_PUSH=yes |
|||
-DENABLE_COMPRESSION=$(usex zlib) |
|||
-DENABLE_TESTING=$(usex test) |
|||
-DUSE_THIRDPARTY_LIBRARIES=OFF |
|||
-DGENERATE_PKGCONFIG=ON |
|||
-DRUN_IWYU=OFF |
|||
) |
|||
|
|||
cmake_src_configure |
|||
} |
@ -1,3 +1,3 @@ |
|||
DIST mysql-connector-odbc-8.0.22-src.tar.gz 3726015 BLAKE2B 055920446767b0c9a30a0ca4773e71d662b398a9849df1a0b7975d71a21cfb23f540d8dda5430c717569f173e63673d3e51b025bb098e51202093d33e19bc142 SHA512 c613ae60346cea2e57bade89d813fd5ac21d0712d3d751e3acbc275421da6ac7593afc3da9fb6d161ee413f60e76e670f0c84876591f331925c980d969db4e8c |
|||
DIST mysql-connector-odbc-8.0.23-src.tar.gz 3726277 BLAKE2B 21b5e6f3f7e77d6107268800441675a230c79071e52db39093fade6e02031c12c96371d165af9459e9739e069e5b4196f0169dff54c0fa300e7a3023e8a82722 SHA512 2f66b5e1796176d638b1209b7d3381c2600a11cc88fa0dfb1f29b16a6c59386926674d5581d4843036d061af09312d58620484730bd7cdad36c0a0dcd45d49a9 |
|||
DIST mysql-connector-odbc-8.0.24-src.tar.gz 3736373 BLAKE2B 8d03566471343239dd49f09bc02a0852f73544e0a91532e75d7871fa2842880213df0241691ab5449597bfed9dae3a74d87d2ed43092aad6bd66bee511542863 SHA512 1e182fd017092a47e38c96006a55d2d21496b2e5b67c211f9ea5b3c3cae44035bc9d401fc90c4f4e8ef6a347dbbbf78870b5dbc3711613fc28cddea468efa6f3 |
|||
DIST mysql-connector-odbc-8.0.25-src.tar.gz 3736461 BLAKE2B 888219340ed2ea86194b2aeab04719c58f2bdfaedb4364492eab2d8cce4b7617a259ae075fada3f55f2bd475d310b5a98642a791ac1efff22a8ceda31bbdf89c SHA512 b2df4134d89600708f30866ded6d915246d36eea087a5c86c0030ba55a1a96c7ee37f023183a28e2f731851969ee802846012e4435fb86a38f7a0f09571d32ac |
@ -1,3 +1,3 @@ |
|||
DIST mysql-boost-8.0.22.tar.gz 285934450 BLAKE2B 1ba0c9bb9a0cb74af4842d3b746f8b690c122cfbf2c6d5201ce95e59a257427a8683dd8d5c2be31dfe9ece4761366c1287fa7b841c45db222725bf76b0639bc6 SHA512 792f2ada93ec67a4679228478c6b798e81d9e9f6d13c7f4977cb7682738a4aae3cb483294edc6b2fde16c3960e51af8786216c063ab500840afd39a609e4b612 |
|||
DIST mysql-boost-8.0.23.tar.gz 291039175 BLAKE2B 3a7d3e05c774085d6078d0d3effd58d2df47521615356a2aa5efc2ea2ef8457e19ad57a054926ccff0a4752ca71d0464daa7fe9a3ac6c1b1d3bd86a9a82dfc58 SHA512 b8c2e2ac772b7b730f8b3bac7a5afb205da173b3639500606e7d1fac74832a0134027951855a2dc81af015e6158c924927ad63b9e1f2e7c823d45d4c4961c3f8 |
|||
DIST mysql-boost-8.0.24.tar.gz 290263082 BLAKE2B a29f42b63c68b13fbe7433c7734e1269a1961c10cdd78cc1b9459a32fd833b5efc49e4ad70c3099d265f6e3b69596754e3947568d13104c52ba0d97fa1f1ddc3 SHA512 ad8510614251c056f0963f8e51b9ed5e75452ccbf2728254d662fcc3a7ee1bdc177d1d34e958ddc31c7e6b5b3af9377ef2d9cbdc0353676b3026619673447deb |
|||
DIST mysql-boost-8.0.25.tar.gz 290265324 BLAKE2B 5393a2a2525a886d9ece19777deae01e6c0b24b9ff5a0a5ffb9075740ed912d0df59a165b6ec9ceb60c7c28f3062cda5cceb4da3a8280f42549984c846f1ce5c SHA512 af653ccff66a9d87221b46ad4f7bcc629700549f758998b9a7fb22e4573b9495a28624e031f016f9ad8fe0dfcf481b82f1ffe224aa48c2d45531570026b26081 |
@ -1,10 +1,7 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
|||
<pkgmetadata> |
|||
<maintainer type="project"> |
|||
<email>dotnet@gentoo.org</email> |
|||
<name>Gentoo Dotnet Project</name> |
|||
</maintainer> |
|||
<!-- maintainer-needed --> |
|||
<upstream> |
|||
<remote-id type="github">mono/dbus-sharp</remote-id> |
|||
</upstream> |
|||
|
@ -1,10 +1,7 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
|||
<pkgmetadata> |
|||
<maintainer type="project"> |
|||
<email>dotnet@gentoo.org</email> |
|||
<name>Gentoo Dotnet Project</name> |
|||
</maintainer> |
|||
<!-- maintainer-needed --> |
|||
<upstream> |
|||
<remote-id type="github">mono/dbus-sharp</remote-id> |
|||
</upstream> |
|||
|
@ -1,8 +1,5 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
|||
<pkgmetadata> |
|||
<maintainer type="project"> |
|||
<email>dotnet@gentoo.org</email> |
|||
<name>Gentoo Dotnet Project</name> |
|||
</maintainer> |
|||
<!-- maintainer-needed --> |
|||
</pkgmetadata> |
@ -1,8 +1,5 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
|||
<pkgmetadata> |
|||
<maintainer type="project"> |
|||
<email>dotnet@gentoo.org</email> |
|||
<name>Gentoo Dotnet Project</name> |
|||
</maintainer> |
|||
<!-- maintainer-needed --> |
|||
</pkgmetadata> |
@ -1,10 +1,7 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
|||
<pkgmetadata> |
|||
<maintainer type="project"> |
|||
<email>dotnet@gentoo.org</email> |
|||
<name>Gentoo Dotnet Project</name> |
|||
</maintainer> |
|||
<!-- maintainer-needed --> |
|||
<upstream> |
|||
<remote-id type="sourceforge">monocalendar</remote-id> |
|||
</upstream> |
|||
|
@ -1,8 +1,5 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
|||
<pkgmetadata> |
|||
<maintainer type="project"> |
|||
<email>dotnet@gentoo.org</email> |
|||
<name>Gentoo Dotnet Project</name> |
|||
</maintainer> |
|||
<!-- maintainer-needed --> |
|||
</pkgmetadata> |
@ -1,8 +1,5 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
|||
<pkgmetadata> |
|||
<maintainer type="project"> |
|||
<email>dotnet@gentoo.org</email> |
|||
<name>Gentoo Dotnet Project</name> |
|||
</maintainer> |
|||
<!-- maintainer-needed --> |
|||
</pkgmetadata> |
@ -1,8 +1,5 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
|||
<pkgmetadata> |
|||
<maintainer type="project"> |
|||
<email>dotnet@gentoo.org</email> |
|||
<name>Gentoo Dotnet Project</name> |
|||
</maintainer> |
|||
<!-- maintainer-needed --> |
|||
</pkgmetadata> |
@ -0,0 +1,355 @@ |
|||
# Copyright 1999-2021 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI="7" |
|||
WANT_LIBTOOL="none" |
|||
|
|||
inherit autotools flag-o-matic pax-utils \ |
|||
python-utils-r1 toolchain-funcs verify-sig |
|||
|
|||
MY_P="Python-${PV%_p*}" |
|||
PYVER=$(ver_cut 1-2) |
|||
PATCHSET="python-gentoo-patches-${PV}" |
|||
|
|||
DESCRIPTION="An interpreted, interactive, object-oriented programming language" |
|||
HOMEPAGE="https://www.python.org/" |
|||
SRC_URI="https://www.python.org/ftp/python/${PV%_*}/${MY_P}.tar.xz |
|||
https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz |
|||
verify-sig? ( |
|||
https://www.python.org/ftp/python/${PV%_*}/${MY_P}.tar.xz.asc |
|||
)" |
|||
S="${WORKDIR}/${MY_P}" |
|||
|
|||
LICENSE="PSF-2" |
|||
SLOT="${PYVER}" |
|||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
|||
IUSE="-berkdb bluetooth build elibc_uclibc examples gdbm hardened ipv6 +ncurses +readline +sqlite +ssl +threads tk +wide-unicode wininst +xml" |
|||
|
|||
# Do not add a dependency on dev-lang/python to this ebuild. |
|||
# If you need to apply a patch which requires python for bootstrapping, please |
|||
# run the bootstrap code on your dev box and include the results in the |
|||
# patchset. See bug 447752. |
|||
|
|||
RDEPEND="app-arch/bzip2:= |
|||
dev-libs/libffi:= |
|||
>=sys-libs/zlib-1.1.3:= |
|||
virtual/libcrypt:= |
|||
virtual/libintl |
|||
berkdb? ( || ( |
|||
sys-libs/db:5.3 |
|||
sys-libs/db:5.1 |
|||
sys-libs/db:4.8 |
|||
sys-libs/db:4.7 |
|||
sys-libs/db:4.6 |
|||
sys-libs/db:4.5 |
|||
sys-libs/db:4.4 |
|||
sys-libs/db:4.3 |
|||
sys-libs/db:4.2 |
|||
) ) |
|||
gdbm? ( sys-libs/gdbm:=[berkdb] ) |
|||
ncurses? ( >=sys-libs/ncurses-5.2:= ) |
|||
readline? ( >=sys-libs/readline-4.1:= ) |
|||
sqlite? ( >=dev-db/sqlite-3.3.8:3= ) |
|||
ssl? ( dev-libs/openssl:= ) |
|||
tk? ( |
|||
>=dev-lang/tcl-8.0:= |
|||
>=dev-lang/tk-8.0:= |
|||
dev-tcltk/blt:= |
|||
dev-tcltk/tix |
|||
) |
|||
xml? ( >=dev-libs/expat-2.1:= )" |
|||
# bluetooth requires headers from bluez |
|||
DEPEND="${RDEPEND} |
|||
bluetooth? ( net-wireless/bluez )" |
|||
BDEPEND=" |
|||
virtual/pkgconfig |
|||
verify-sig? ( app-crypt/openpgp-keys-python ) |
|||
!sys-devel/gcc[libffi(-)]" |
|||
PDEPEND="app-eselect/eselect-python" |
|||
RDEPEND+=" |
|||
!build? ( app-misc/mime-types ) |
|||
!<=dev-lang/python-exec-2.4.6-r1" |
|||
|
|||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/python.org.asc |
|||
|
|||
pkg_setup() { |
|||
if use berkdb; then |
|||
ewarn "'bsddb' module is out-of-date and no longer maintained inside" |
|||
ewarn "dev-lang/python. 'bsddb' and 'dbhash' modules have been additionally" |
|||
ewarn "removed in Python 3. A maintained alternative of 'bsddb3' module" |
|||
ewarn "is provided by dev-python/bsddb3." |
|||
else |
|||
if has_version "=${CATEGORY}/${PN}-${PV%%.*}*[berkdb]"; then |
|||
ewarn "You are migrating from =${CATEGORY}/${PN}-${PV%%.*}*[berkdb]" |
|||
ewarn "to =${CATEGORY}/${PN}-${PV%%.*}*[-berkdb]." |
|||
ewarn "You might need to migrate your databases." |
|||
fi |
|||
fi |
|||
} |
|||
|
|||
src_unpack() { |
|||
if use verify-sig; then |
|||
verify-sig_verify_detached "${DISTDIR}"/${MY_P}.tar.xz{,.asc} |
|||
fi |
|||
default |
|||
} |
|||
|
|||
src_prepare() { |
|||
# Ensure that internal copies of expat, libffi and zlib are not used. |
|||
rm -fr Modules/expat || die |
|||
rm -fr Modules/_ctypes/libffi* || die |
|||
rm -fr Modules/zlib || die |
|||
|
|||
local PATCHES=( |
|||
"${WORKDIR}/${PATCHSET}" |
|||
) |
|||
|
|||
default |
|||
|
|||
sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \ |
|||
Lib/distutils/command/install.py \ |
|||
Lib/distutils/sysconfig.py \ |
|||
Lib/site.py \ |
|||
Lib/sysconfig.py \ |
|||
Lib/test/test_site.py \ |
|||
Makefile.pre.in \ |
|||
Modules/Setup.dist \ |
|||
Modules/getpath.c \ |
|||
setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@" |
|||
|
|||
eautoreconf |
|||
} |
|||
|
|||
src_configure() { |
|||
# dbm module can be linked against berkdb or gdbm. |
|||
# Defaults to gdbm when both are enabled, #204343. |
|||
local disable |
|||
use berkdb || use gdbm || disable+=" dbm" |
|||
use berkdb || disable+=" _bsddb" |
|||
# disable automagic bluetooth headers detection |
|||
use bluetooth || export ac_cv_header_bluetooth_bluetooth_h=no |
|||
use gdbm || disable+=" gdbm" |
|||
use ncurses || disable+=" _curses _curses_panel" |
|||
use readline || disable+=" readline" |
|||
use sqlite || disable+=" _sqlite3" |
|||
use ssl || export PYTHON_DISABLE_SSL="1" |
|||
use tk || disable+=" _tkinter" |
|||
use xml || disable+=" _elementtree pyexpat" # _elementtree uses pyexpat. |
|||
export PYTHON_DISABLE_MODULES="${disable}" |
|||
|
|||
if ! use xml; then |
|||
ewarn "You have configured Python without XML support." |
|||
ewarn "This is NOT a recommended configuration as you" |
|||
ewarn "may face problems parsing any XML documents." |
|||
fi |
|||
|
|||
if [[ -n "${PYTHON_DISABLE_MODULES}" ]]; then |
|||
einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}" |
|||
fi |
|||
|
|||
if [[ "$(gcc-major-version)" -ge 4 ]]; then |
|||
append-flags -fwrapv |
|||
fi |
|||
|
|||
filter-flags -malign-double |
|||
|
|||
# https://bugs.gentoo.org/show_bug.cgi?id=50309 |
|||
if is-flagq -O3; then |
|||
is-flagq -fstack-protector-all && replace-flags -O3 -O2 |
|||
use hardened && replace-flags -O3 -O2 |
|||
fi |
|||
|
|||
if tc-is-cross-compiler; then |
|||
# Force some tests that try to poke fs paths. |
|||
export ac_cv_file__dev_ptc=no |
|||
export ac_cv_file__dev_ptmx=yes |
|||
fi |
|||
|
|||
# Export CXX so it ends up in /usr/lib/python2.X/config/Makefile. |
|||
tc-export CXX |
|||
# The configure script fails to use pkg-config correctly. |
|||
# http://bugs.python.org/issue15506 |
|||
export ac_cv_path_PKG_CONFIG=$(tc-getPKG_CONFIG) |
|||
|
|||
local dbmliborder |
|||
if use gdbm; then |
|||
dbmliborder+="${dbmliborder:+:}gdbm" |
|||
fi |
|||
if use berkdb; then |
|||
dbmliborder+="${dbmliborder:+:}bdb" |
|||
fi |
|||
|
|||
local myeconfargs=( |
|||
# The check is broken on clang, and gives false positive: |
|||
# https://bugs.gentoo.org/596798 |
|||
# (upstream dropped this flag in 3.2a4 anyway) |
|||
ac_cv_opt_olimit_ok=no |
|||
# glibc-2.30 removes it; since we can't cleanly force-rebuild |
|||
# Python on glibc upgrade, remove it proactively to give |
|||
# a chance for users rebuilding python before glibc |
|||
ac_cv_header_stropts_h=no |
|||
|
|||
--with-fpectl |
|||
--enable-shared |
|||
$(use_enable ipv6) |
|||
$(use_with threads) |
|||
$(use wide-unicode && echo "--enable-unicode=ucs4" || echo "--enable-unicode=ucs2") |
|||
--infodir='${prefix}/share/info' |
|||
--mandir='${prefix}/share/man' |
|||
--with-computed-gotos |
|||
--with-dbmliborder="${dbmliborder}" |
|||
--with-libc= |
|||
--enable-loadable-sqlite-extensions |
|||
--with-system-expat |
|||
--with-system-ffi |
|||
--without-ensurepip |
|||
) |
|||
|
|||
OPT="" econf "${myeconfargs[@]}" |
|||
|
|||
if use threads && grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then |
|||
eerror "configure has detected that the sem_open function is broken." |
|||
eerror "Please ensure that /dev/shm is mounted as a tmpfs with mode 1777." |
|||
die "Broken sem_open function (bug 496328)" |
|||
fi |
|||
} |
|||
|
|||
src_compile() { |
|||
# Ensure sed works as expected |
|||
# https://bugs.gentoo.org/594768 |
|||
local -x LC_ALL=C |
|||
|
|||
# Avoid invoking pgen for cross-compiles. |
|||
touch Include/graminit.h Python/graminit.c |
|||
|
|||
emake |
|||
|
|||
# Work around bug 329499. See also bug 413751 and 457194. |
|||
if has_version dev-libs/libffi[pax_kernel]; then |
|||
pax-mark E python |
|||
else |
|||
pax-mark m python |
|||
fi |
|||
} |
|||
|
|||
src_test() { |
|||
# Tests will not work when cross compiling. |
|||
if tc-is-cross-compiler; then |
|||
elog "Disabling tests due to crosscompiling." |
|||
return |
|||
fi |
|||
|
|||
# Skip failing tests. |
|||
local skipped_tests="distutils gdb" |
|||
|
|||
for test in ${skipped_tests}; do |
|||
mv "${S}"/Lib/test/test_${test}.py "${T}" |
|||
done |
|||
|
|||
# bug 660358 |
|||
local -x COLUMNS=80 |
|||
|
|||
# Daylight saving time problem |
|||
# https://bugs.python.org/issue22067 |
|||
# https://bugs.gentoo.org/610628 |
|||
local -x TZ=UTC |
|||
|
|||
# Rerun failed tests in verbose mode (regrtest -w). |
|||
emake test EXTRATESTOPTS="-w" < /dev/tty |
|||
local result="$?" |
|||
|
|||
for test in ${skipped_tests}; do |
|||
mv "${T}/test_${test}.py" "${S}"/Lib/test |
|||
done |
|||
|
|||
elog "The following tests have been skipped:" |
|||
for test in ${skipped_tests}; do |
|||
elog "test_${test}.py" |
|||
done |
|||
|
|||
elog "If you would like to run them, you may:" |
|||
elog "cd '${EPREFIX}/usr/$(get_libdir)/python${PYVER}/test'" |
|||
elog "and run the tests separately." |
|||
|
|||
if [[ ${result} -ne 0 ]]; then |
|||
die "emake test failed" |
|||
fi |
|||
} |
|||
|
|||
src_install() { |
|||
local libdir=${ED}/usr/$(get_libdir)/python${PYVER} |
|||
|
|||
emake DESTDIR="${D}" altinstall |
|||
|
|||
sed -e "s/\(LDFLAGS=\).*/\1/" -i "${libdir}/config/Makefile" || die |
|||
|
|||
# Fix collisions between different slots of Python. |
|||
mv "${ED}/usr/bin/2to3" "${ED}/usr/bin/2to3-${PYVER}" || die |
|||
mv "${ED}/usr/bin/pydoc" "${ED}/usr/bin/pydoc${PYVER}" || die |
|||
mv "${ED}/usr/bin/idle" "${ED}/usr/bin/idle${PYVER}" || die |
|||
rm "${ED}/usr/bin/smtpd.py" || die |
|||
|
|||
use berkdb || rm -r "${libdir}/"{bsddb,dbhash.py*,test/test_bsddb*} || die |
|||
use sqlite || rm -r "${libdir}/"{sqlite3,test/test_sqlite*} || die |
|||
use tk || rm -r "${ED}/usr/bin/idle${PYVER}" "${libdir}/"{idlelib,lib-tk} || die |
|||
use elibc_uclibc && rm -fr "${libdir}/"{bsddb/test,test} |
|||
|
|||
use threads || rm -r "${libdir}/multiprocessing" || die |
|||
use wininst || rm "${libdir}/distutils/command/"wininst-*.exe || die |
|||
|
|||
dodoc Misc/{ACKS,HISTORY,NEWS} |
|||
|
|||
if use examples; then |
|||
docinto examples |
|||
dodoc -r Tools |
|||
fi |
|||
insinto /usr/share/gdb/auto-load/usr/$(get_libdir) #443510 |
|||
local libname=$(printf 'e:\n\t@echo $(INSTSONAME)\ninclude Makefile\n' | \ |
|||
emake --no-print-directory -s -f - 2>/dev/null) |
|||
newins "${S}"/Tools/gdb/libpython.py "${libname}"-gdb.py |
|||
|
|||
newconfd "${FILESDIR}/pydoc.conf" pydoc-${PYVER} |
|||
newinitd "${FILESDIR}/pydoc.init" pydoc-${PYVER} |
|||
sed \ |
|||
-e "s:@PYDOC_PORT_VARIABLE@:PYDOC${PYVER/./_}_PORT:" \ |
|||
-e "s:@PYDOC@:pydoc${PYVER}:" \ |
|||
-i "${ED}/etc/conf.d/pydoc-${PYVER}" \ |
|||
"${ED}/etc/init.d/pydoc-${PYVER}" || die "sed failed" |
|||
|
|||
local -x EPYTHON=python${PYVER} |
|||
# if not using a cross-compiler, use the fresh binary |
|||
if ! tc-is-cross-compiler; then |
|||
local -x PYTHON=./python |
|||
local -x LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}${PWD} |
|||
else |
|||
local -x PYTHON=${EPREFIX}/usr/bin/${EPYTHON} |
|||
fi |
|||
|
|||
echo "EPYTHON='${EPYTHON}'" > epython.py || die |
|||
python_domodule epython.py |
|||
|
|||
# python-exec wrapping support |
|||
local scriptdir=${D}$(python_get_scriptdir) |
|||
mkdir -p "${scriptdir}" || die |
|||
# python |
|||
ln -s "../../../bin/python${PYVER}" \ |
|||
"${scriptdir}/python" || die |
|||
# python-config |
|||
ln -s "../../../bin/python${PYVER}-config" \ |
|||
"${scriptdir}/python-config" || die |
|||
# 2to3, pydoc, pyvenv |
|||
ln -s "../../../bin/2to3-${PYVER}" \ |
|||
"${scriptdir}/2to3" || die |
|||
ln -s "../../../bin/pydoc${PYVER}" \ |
|||
"${scriptdir}/pydoc" || die |
|||
# idle |
|||
if use tk; then |
|||
ln -s "../../../bin/idle${PYVER}" \ |
|||
"${scriptdir}/idle" || die |
|||
fi |
|||
|
|||
# python2* is no longer wrapped, so just symlink it |
|||
local pymajor=${PYVER%.*} |
|||
dosym "python${PYVER}" "/usr/bin/python${pymajor}" |
|||
dosym "python${PYVER}-config" "/usr/bin/python${pymajor}-config" |
|||
} |
@ -0,0 +1,338 @@ |
|||
# Copyright 1999-2021 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI="7" |
|||
WANT_LIBTOOL="none" |
|||
|
|||
inherit autotools flag-o-matic multiprocessing pax-utils \ |
|||
python-utils-r1 toolchain-funcs verify-sig |
|||
|
|||
MY_P="Python-${PV%_p*}" |
|||
PYVER=$(ver_cut 1-2) |
|||
PATCHSET="python-gentoo-patches-${PV}" |
|||
|
|||
DESCRIPTION="An interpreted, interactive, object-oriented programming language" |
|||
HOMEPAGE="https://www.python.org/" |
|||
SRC_URI="https://www.python.org/ftp/python/${PV%_*}/${MY_P}.tar.xz |
|||
https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz |
|||
verify-sig? ( |
|||
https://www.python.org/ftp/python/${PV%_*}/${MY_P}.tar.xz.asc |
|||
)" |
|||
S="${WORKDIR}/${MY_P}" |
|||
|
|||
LICENSE="PSF-2" |
|||
SLOT="${PYVER}/${PYVER}m" |
|||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
|||
IUSE="bluetooth build examples gdbm hardened ipv6 +ncurses +readline +sqlite +ssl test +threads tk wininst +xml" |
|||
RESTRICT="!test? ( test )" |
|||
|
|||
# Do not add a dependency on dev-lang/python to this ebuild. |
|||
# If you need to apply a patch which requires python for bootstrapping, please |
|||
# run the bootstrap code on your dev box and include the results in the |
|||
# patchset. See bug 447752. |
|||
|
|||
RDEPEND="app-arch/bzip2:= |
|||
app-arch/xz-utils:= |
|||
dev-libs/libffi:= |
|||
>=sys-libs/zlib-1.1.3:= |
|||
virtual/libcrypt:= |
|||
virtual/libintl |
|||
gdbm? ( sys-libs/gdbm:=[berkdb] ) |
|||
ncurses? ( >=sys-libs/ncurses-5.2:= ) |
|||
readline? ( >=sys-libs/readline-4.1:= ) |
|||
sqlite? ( >=dev-db/sqlite-3.3.8:3= ) |
|||
ssl? ( dev-libs/openssl:= ) |
|||
tk? ( |
|||
>=dev-lang/tcl-8.0:= |
|||
>=dev-lang/tk-8.0:= |
|||
dev-tcltk/blt:= |
|||
dev-tcltk/tix |
|||
) |
|||
xml? ( >=dev-libs/expat-2.1:= )" |
|||
# bluetooth requires headers from bluez |
|||
DEPEND="${RDEPEND} |
|||
bluetooth? ( net-wireless/bluez ) |
|||
test? ( app-arch/xz-utils[extra-filters(+)] )" |
|||
BDEPEND=" |
|||
virtual/pkgconfig |
|||
verify-sig? ( app-crypt/openpgp-keys-python ) |
|||
!sys-devel/gcc[libffi(-)]" |
|||
PDEPEND="app-eselect/eselect-python" |
|||
RDEPEND+=" !build? ( app-misc/mime-types )" |
|||
|
|||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/python.org.asc |
|||
|
|||
src_unpack() { |
|||
if use verify-sig; then |
|||
verify-sig_verify_detached "${DISTDIR}"/${MY_P}.tar.xz{,.asc} |
|||
fi |
|||
default |
|||
} |
|||
|
|||
src_prepare() { |
|||
# Ensure that internal copies of expat, libffi and zlib are not used. |
|||
rm -fr Modules/expat || die |
|||
rm -fr Modules/_ctypes/libffi* || die |
|||
rm -fr Modules/zlib || die |
|||
|
|||
local PATCHES=( |
|||
"${WORKDIR}/${PATCHSET}" |
|||
) |
|||
|
|||
default |
|||
|
|||
sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \ |
|||
Lib/distutils/command/install.py \ |
|||
Lib/distutils/sysconfig.py \ |
|||
Lib/site.py \ |
|||
Lib/sysconfig.py \ |
|||
Lib/test/test_site.py \ |
|||
Makefile.pre.in \ |
|||
Modules/Setup.dist \ |
|||
Modules/getpath.c \ |
|||
configure.ac \ |
|||
setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@" |
|||
|
|||
# force correct number of jobs |
|||
# https://bugs.gentoo.org/737660 |
|||
local jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)") |
|||
sed -i -e "/self\.parallel/s:True:${jobs}:" setup.py || die |
|||
|
|||
eautoreconf |
|||
} |
|||
|
|||
src_configure() { |
|||
local disable |
|||
# disable automagic bluetooth headers detection |
|||
use bluetooth || export ac_cv_header_bluetooth_bluetooth_h=no |
|||
use gdbm || disable+=" gdbm" |
|||
use ncurses || disable+=" _curses _curses_panel" |
|||
use readline || disable+=" readline" |
|||
use sqlite || disable+=" _sqlite3" |
|||
use ssl || export PYTHON_DISABLE_SSL="1" |
|||
use tk || disable+=" _tkinter" |
|||
use xml || disable+=" _elementtree pyexpat" # _elementtree uses pyexpat. |
|||
export PYTHON_DISABLE_MODULES="${disable}" |
|||
|
|||
if ! use xml; then |
|||
ewarn "You have configured Python without XML support." |
|||
ewarn "This is NOT a recommended configuration as you" |
|||
ewarn "may face problems parsing any XML documents." |
|||
fi |
|||
|
|||
if [[ -n "${PYTHON_DISABLE_MODULES}" ]]; then |
|||
einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}" |
|||
fi |
|||
|
|||
if [[ "$(gcc-major-version)" -ge 4 ]]; then |
|||
append-flags -fwrapv |
|||
fi |
|||
|
|||
filter-flags -malign-double |
|||
|
|||
# https://bugs.gentoo.org/show_bug.cgi?id=50309 |
|||
if is-flagq -O3; then |
|||
is-flagq -fstack-protector-all && replace-flags -O3 -O2 |
|||
use hardened && replace-flags -O3 -O2 |
|||
fi |
|||
|
|||
# Export CXX so it ends up in /usr/lib/python3.X/config/Makefile. |
|||
tc-export CXX |
|||
|
|||
local dbmliborder |
|||
if use gdbm; then |
|||
dbmliborder+="${dbmliborder:+:}gdbm" |
|||
fi |
|||
|
|||
local myeconfargs=( |
|||
# glibc-2.30 removes it; since we can't cleanly force-rebuild |
|||
# Python on glibc upgrade, remove it proactively to give |
|||
# a chance for users rebuilding python before glibc |
|||
ac_cv_header_stropts_h=no |
|||
|
|||
--with-fpectl |
|||
--enable-shared |
|||
$(use_enable ipv6) |
|||
$(use_with threads) |
|||
--infodir='${prefix}/share/info' |
|||
--mandir='${prefix}/share/man' |
|||
--with-computed-gotos |
|||
--with-dbmliborder="${dbmliborder}" |
|||
--with-libc= |
|||
--enable-loadable-sqlite-extensions |
|||
--without-ensurepip |
|||
--with-system-expat |
|||
--with-system-ffi |
|||
) |
|||
|
|||
OPT="" econf "${myeconfargs[@]}" |
|||
|
|||
if use threads && grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then |
|||
eerror "configure has detected that the sem_open function is broken." |
|||
eerror "Please ensure that /dev/shm is mounted as a tmpfs with mode 1777." |
|||
die "Broken sem_open function (bug 496328)" |
|||
fi |
|||
} |
|||
|
|||
src_compile() { |
|||
# Ensure sed works as expected |
|||
# https://bugs.gentoo.org/594768 |
|||
local -x LC_ALL=C |
|||
|
|||
emake CPPFLAGS= CFLAGS= LDFLAGS= |
|||
|
|||
# Work around bug 329499. See also bug 413751 and 457194. |
|||
if has_version dev-libs/libffi[pax_kernel]; then |
|||
pax-mark E python |
|||
else |
|||
pax-mark m python |
|||
fi |
|||
} |
|||
|
|||
src_test() { |
|||
# Tests will not work when cross compiling. |
|||
if tc-is-cross-compiler; then |
|||
elog "Disabling tests due to crosscompiling." |
|||
return |
|||
fi |
|||
|
|||
# Skip failing tests. |
|||
local skipped_tests="gdb faulthandler" |
|||
|
|||
for test in ${skipped_tests}; do |
|||
mv "${S}"/Lib/test/test_${test}.py "${T}" |
|||
done |
|||
|
|||
# bug 660358 |
|||
local -x COLUMNS=80 |
|||
local -x PYTHONDONTWRITEBYTECODE= |
|||
|
|||
local jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)") |
|||
|
|||
emake test EXTRATESTOPTS="-u-network -j${jobs}" \ |
|||
CPPFLAGS= CFLAGS= LDFLAGS= < /dev/tty |
|||
local result=$? |
|||
|
|||
for test in ${skipped_tests}; do |
|||
mv "${T}/test_${test}.py" "${S}"/Lib/test |
|||
done |
|||
|
|||
elog "The following tests have been skipped:" |
|||
for test in ${skipped_tests}; do |
|||
elog "test_${test}.py" |
|||
done |
|||
|
|||
elog "If you would like to run them, you may:" |
|||
elog "cd '${EPREFIX}/usr/$(get_libdir)/python${PYVER}/test'" |
|||
elog "and run the tests separately." |
|||
|
|||
if [[ ${result} -ne 0 ]]; then |
|||
die "emake test failed" |
|||
fi |
|||
} |
|||
|
|||
src_install() { |
|||
local libdir=${ED}/usr/$(get_libdir)/python${PYVER} |
|||
|
|||
emake DESTDIR="${D}" altinstall |
|||
|
|||
# Remove static library |
|||
rm "${ED}"/usr/$(get_libdir)/libpython*.a || die |
|||
|
|||
sed \ |
|||
-e "s/\(CONFIGURE_LDFLAGS=\).*/\1/" \ |
|||
-e "s/\(PY_LDFLAGS=\).*/\1/" \ |
|||
-i "${libdir}/config-${PYVER}"*/Makefile || die "sed failed" |
|||
|
|||
# Fix collisions between different slots of Python. |
|||
rm "${ED}/usr/$(get_libdir)/libpython3.so" || die |
|||
|
|||
# Cheap hack to get version with ABIFLAGS |
|||
local abiver=$(cd "${ED}/usr/include"; echo python*) |
|||
if [[ ${abiver} != python${PYVER} ]]; then |
|||
# Replace python3.X with a symlink to python3.Xm |
|||
rm "${ED}/usr/bin/python${PYVER}" || die |
|||
dosym "${abiver}" "/usr/bin/python${PYVER}" |
|||
# Create python3.X-config symlink |
|||
dosym "${abiver}-config" "/usr/bin/python${PYVER}-config" |
|||
# Create python-3.5m.pc symlink |
|||
dosym "python-${PYVER}.pc" "/usr/$(get_libdir)/pkgconfig/${abiver/${PYVER}/-${PYVER}}.pc" |
|||
fi |
|||
|
|||
# python seems to get rebuilt in src_install (bug 569908) |
|||
# Work around it for now. |
|||
if has_version dev-libs/libffi[pax_kernel]; then |
|||
pax-mark E "${ED}/usr/bin/${abiver}" |
|||
else |
|||
pax-mark m "${ED}/usr/bin/${abiver}" |
|||
fi |
|||
|
|||
use sqlite || rm -r "${libdir}/"{sqlite3,test/test_sqlite*} || die |
|||
use tk || rm -r "${ED}/usr/bin/idle${PYVER}" "${libdir}/"{idlelib,tkinter,test/test_tk*} || die |
|||
|
|||
use threads || rm -r "${libdir}/multiprocessing" || die |
|||
use wininst || rm "${libdir}/distutils/command/"wininst-*.exe || die |
|||
|
|||
dodoc Misc/{ACKS,HISTORY,NEWS} |
|||
|
|||
if use examples; then |
|||
docinto examples |
|||
find Tools -name __pycache__ -exec rm -fr {} + || die |
|||
dodoc -r Tools |
|||
fi |
|||
insinto /usr/share/gdb/auto-load/usr/$(get_libdir) #443510 |
|||
local libname=$(printf 'e:\n\t@echo $(INSTSONAME)\ninclude Makefile\n' | \ |
|||
emake --no-print-directory -s -f - 2>/dev/null) |
|||
newins "${S}"/Tools/gdb/libpython.py "${libname}"-gdb.py |
|||
|
|||
newconfd "${FILESDIR}/pydoc.conf" pydoc-${PYVER} |
|||
newinitd "${FILESDIR}/pydoc.init" pydoc-${PYVER} |
|||
sed \ |
|||
-e "s:@PYDOC_PORT_VARIABLE@:PYDOC${PYVER/./_}_PORT:" \ |
|||
-e "s:@PYDOC@:pydoc${PYVER}:" \ |
|||
-i "${ED}/etc/conf.d/pydoc-${PYVER}" \ |
|||
"${ED}/etc/init.d/pydoc-${PYVER}" || die "sed failed" |
|||
|
|||
local -x EPYTHON=python${PYVER} |
|||
# if not using a cross-compiler, use the fresh binary |
|||
if ! tc-is-cross-compiler; then |
|||
local -x PYTHON=./python |
|||
local -x LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}${PWD} |
|||
else |
|||
local -x PYTHON=${EPREFIX}/usr/bin/${EPYTHON} |
|||
fi |
|||
|
|||
echo "EPYTHON='${EPYTHON}'" > epython.py || die |
|||
python_domodule epython.py |
|||
|
|||
# python-exec wrapping support |
|||
local pymajor=${PYVER%.*} |
|||
local scriptdir=${D}$(python_get_scriptdir) |
|||
mkdir -p "${scriptdir}" || die |
|||
# python and pythonX |
|||
ln -s "../../../bin/${abiver}" \ |
|||
"${scriptdir}/python${pymajor}" || die |
|||
ln -s "python${pymajor}" "${scriptdir}/python" || die |
|||
# python-config and pythonX-config |
|||
# note: we need to create a wrapper rather than symlinking it due |
|||
# to some random dirname(argv[0]) magic performed by python-config |
|||
cat > "${scriptdir}/python${pymajor}-config" <<-EOF || die |
|||
#!/bin/sh |
|||
exec "${abiver}-config" "\${@}" |
|||
EOF |
|||
chmod +x "${scriptdir}/python${pymajor}-config" || die |
|||
ln -s "python${pymajor}-config" \ |
|||
"${scriptdir}/python-config" || die |
|||
# 2to3, pydoc, pyvenv |
|||
ln -s "../../../bin/2to3-${PYVER}" \ |
|||
"${scriptdir}/2to3" || die |
|||
ln -s "../../../bin/pydoc${PYVER}" \ |
|||
"${scriptdir}/pydoc" || die |
|||
ln -s "../../../bin/pyvenv-${PYVER}" \ |
|||
"${scriptdir}/pyvenv" || die |
|||
# idle |
|||
if use tk; then |
|||
ln -s "../../../bin/idle${PYVER}" \ |
|||
"${scriptdir}/idle" || die |
|||
fi |
|||
} |
@ -0,0 +1,330 @@ |
|||
# Copyright 1999-2021 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI="7" |
|||
WANT_LIBTOOL="none" |
|||
|
|||
inherit autotools flag-o-matic multiprocessing pax-utils \ |
|||
python-utils-r1 toolchain-funcs verify-sig |
|||
|
|||
MY_P="Python-${PV%_p*}" |
|||
PYVER=$(ver_cut 1-2) |
|||
PATCHSET="python-gentoo-patches-${PV}" |
|||
|
|||
DESCRIPTION="An interpreted, interactive, object-oriented programming language" |
|||
HOMEPAGE="https://www.python.org/" |
|||
SRC_URI="https://www.python.org/ftp/python/${PV%_*}/${MY_P}.tar.xz |
|||
https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz |
|||
verify-sig? ( |
|||
https://www.python.org/ftp/python/${PV%_*}/${MY_P}.tar.xz.asc |
|||
)" |
|||
S="${WORKDIR}/${MY_P}" |
|||
|
|||
LICENSE="PSF-2" |
|||
SLOT="${PYVER}/${PYVER}m" |
|||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
|||
IUSE="bluetooth build examples gdbm hardened ipv6 +ncurses +readline +sqlite +ssl test tk wininst +xml" |
|||
RESTRICT="!test? ( test )" |
|||
|
|||
# Do not add a dependency on dev-lang/python to this ebuild. |
|||
# If you need to apply a patch which requires python for bootstrapping, please |
|||
# run the bootstrap code on your dev box and include the results in the |
|||
# patchset. See bug 447752. |
|||
|
|||
RDEPEND="app-arch/bzip2:= |
|||
app-arch/xz-utils:= |
|||
dev-libs/libffi:= |
|||
sys-apps/util-linux:= |
|||
>=sys-libs/zlib-1.1.3:= |
|||
virtual/libcrypt:= |
|||
virtual/libintl |
|||
gdbm? ( sys-libs/gdbm:=[berkdb] ) |
|||
ncurses? ( >=sys-libs/ncurses-5.2:= ) |
|||
readline? ( >=sys-libs/readline-4.1:= ) |
|||
sqlite? ( >=dev-db/sqlite-3.3.8:3= ) |
|||
ssl? ( dev-libs/openssl:= ) |
|||
tk? ( |
|||
>=dev-lang/tcl-8.0:= |
|||
>=dev-lang/tk-8.0:= |
|||
dev-tcltk/blt:= |
|||
dev-tcltk/tix |
|||
) |
|||
xml? ( >=dev-libs/expat-2.1:= )" |
|||
# bluetooth requires headers from bluez |
|||
DEPEND="${RDEPEND} |
|||
bluetooth? ( net-wireless/bluez ) |
|||
test? ( app-arch/xz-utils[extra-filters(+)] )" |
|||
BDEPEND=" |
|||
virtual/pkgconfig |
|||
verify-sig? ( app-crypt/openpgp-keys-python ) |
|||
!sys-devel/gcc[libffi(-)]" |
|||
PDEPEND="app-eselect/eselect-python" |
|||
RDEPEND+=" !build? ( app-misc/mime-types )" |
|||
|
|||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/python.org.asc |
|||
|
|||
src_unpack() { |
|||
if use verify-sig; then |
|||
verify-sig_verify_detached "${DISTDIR}"/${MY_P}.tar.xz{,.asc} |
|||
fi |
|||
default |
|||
} |
|||
|
|||
src_prepare() { |
|||
# Ensure that internal copies of expat, libffi and zlib are not used. |
|||
rm -fr Modules/expat || die |
|||
rm -fr Modules/_ctypes/libffi* || die |
|||
rm -fr Modules/zlib || die |
|||
|
|||
local PATCHES=( |
|||
"${WORKDIR}/${PATCHSET}" |
|||
) |
|||
|
|||
default |
|||
|
|||
sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \ |
|||
setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@" |
|||
|
|||
# force correct number of jobs |
|||
# https://bugs.gentoo.org/737660 |
|||
local jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)") |
|||
sed -i -e "/self\.parallel/s:True:${jobs}:" setup.py || die |
|||
|
|||
eautoreconf |
|||
} |
|||
|
|||
src_configure() { |
|||
local disable |
|||
# disable automagic bluetooth headers detection |
|||
use bluetooth || export ac_cv_header_bluetooth_bluetooth_h=no |
|||
use gdbm || disable+=" gdbm" |
|||
use ncurses || disable+=" _curses _curses_panel" |
|||
use readline || disable+=" readline" |
|||
use sqlite || disable+=" _sqlite3" |
|||
use ssl || export PYTHON_DISABLE_SSL="1" |
|||
use tk || disable+=" _tkinter" |
|||
use xml || disable+=" _elementtree pyexpat" # _elementtree uses pyexpat. |
|||
export PYTHON_DISABLE_MODULES="${disable}" |
|||
|
|||
if ! use xml; then |
|||
ewarn "You have configured Python without XML support." |
|||
ewarn "This is NOT a recommended configuration as you" |
|||
ewarn "may face problems parsing any XML documents." |
|||
fi |
|||
|
|||
if [[ -n "${PYTHON_DISABLE_MODULES}" ]]; then |
|||
einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}" |
|||
fi |
|||
|
|||
if [[ "$(gcc-major-version)" -ge 4 ]]; then |
|||
append-flags -fwrapv |
|||
fi |
|||
|
|||
filter-flags -malign-double |
|||
|
|||
# https://bugs.gentoo.org/show_bug.cgi?id=50309 |
|||
if is-flagq -O3; then |
|||
is-flagq -fstack-protector-all && replace-flags -O3 -O2 |
|||
use hardened && replace-flags -O3 -O2 |
|||
fi |
|||
|
|||
# Export CXX so it ends up in /usr/lib/python3.X/config/Makefile. |
|||
tc-export CXX |
|||
|
|||
# Fix implicit declarations on cross and prefix builds. Bug #674070. |
|||
use ncurses && append-cppflags -I"${ESYSROOT}"/usr/include/ncursesw |
|||
|
|||
local dbmliborder |
|||
if use gdbm; then |
|||
dbmliborder+="${dbmliborder:+:}gdbm" |
|||
fi |
|||
|
|||
local myeconfargs=( |
|||
# glibc-2.30 removes it; since we can't cleanly force-rebuild |
|||
# Python on glibc upgrade, remove it proactively to give |
|||
# a chance for users rebuilding python before glibc |
|||
ac_cv_header_stropts_h=no |
|||
|
|||
--enable-shared |
|||
$(use_enable ipv6) |
|||
--infodir='${prefix}/share/info' |
|||
--mandir='${prefix}/share/man' |
|||
--with-computed-gotos |
|||
--with-dbmliborder="${dbmliborder}" |
|||
--with-libc= |
|||
--enable-loadable-sqlite-extensions |
|||
--without-ensurepip |
|||
--with-system-expat |
|||
--with-system-ffi |
|||
) |
|||
|
|||
OPT="" econf "${myeconfargs[@]}" |
|||
|
|||
if grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then |
|||
eerror "configure has detected that the sem_open function is broken." |
|||
eerror "Please ensure that /dev/shm is mounted as a tmpfs with mode 1777." |
|||
die "Broken sem_open function (bug 496328)" |
|||
fi |
|||
} |
|||
|
|||
src_compile() { |
|||
# Ensure sed works as expected |
|||
# https://bugs.gentoo.org/594768 |
|||
local -x LC_ALL=C |
|||
|
|||
emake CPPFLAGS= CFLAGS= LDFLAGS= |
|||
|
|||
# Work around bug 329499. See also bug 413751 and 457194. |
|||
if has_version dev-libs/libffi[pax_kernel]; then |
|||
pax-mark E python |
|||
else |
|||
pax-mark m python |
|||
fi |
|||
} |
|||
|
|||
src_test() { |
|||
# Tests will not work when cross compiling. |
|||
if tc-is-cross-compiler; then |
|||
elog "Disabling tests due to crosscompiling." |
|||
return |
|||
fi |
|||
|
|||
# Skip failing tests. |
|||
local skipped_tests="gdb" |
|||
|
|||
for test in ${skipped_tests}; do |
|||
mv "${S}"/Lib/test/test_${test}.py "${T}" |
|||
done |
|||
|
|||
# bug 660358 |
|||
local -x COLUMNS=80 |
|||
local -x PYTHONDONTWRITEBYTECODE= |
|||
|
|||