parent
95fa37f0ef
commit
79b773c779
Binary file not shown.
Binary file not shown.
@ -0,0 +1,96 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7..9} )
|
||||
PYTHON_REQ_USE="xml"
|
||||
|
||||
inherit gnome.org gnome2-utils python-single-r1 vala
|
||||
|
||||
DESCRIPTION="Input assistive technology intended for switch and pointer users"
|
||||
HOMEPAGE="https://wiki.gnome.org/Projects/Caribou"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
|
||||
COMMON_DEPEND="
|
||||
${PYTHON_DEPS}
|
||||
app-accessibility/at-spi2-core
|
||||
$(python_gen_cond_dep '
|
||||
>=dev-python/pygobject-2.90.3:3[${PYTHON_USEDEP}]
|
||||
')
|
||||
>=dev-libs/gobject-introspection-0.10.7:=
|
||||
dev-libs/libgee:0.8
|
||||
dev-libs/libxml2
|
||||
>=media-libs/clutter-1.5.11:1.0[introspection]
|
||||
>=x11-libs/gtk+-3:3[introspection]
|
||||
x11-libs/libX11
|
||||
x11-libs/libxklavier
|
||||
x11-libs/libXtst
|
||||
"
|
||||
# gsettings-desktop-schemas is needed for the 'toolkit-accessibility' key
|
||||
# pyatspi-2.1.90 needed to run caribou if pygobject:3 is installed
|
||||
# librsvg needed to load svg images in css styles
|
||||
RDEPEND="
|
||||
${COMMON_DEPEND}
|
||||
dev-libs/glib[dbus]
|
||||
$(python_gen_cond_dep '
|
||||
>=dev-python/pyatspi-2.1.90[${PYTHON_USEDEP}]
|
||||
')
|
||||
>=gnome-base/gsettings-desktop-schemas-3
|
||||
gnome-base/librsvg:2
|
||||
sys-apps/dbus
|
||||
!<x11-base/xorg-server-1.20.10
|
||||
"
|
||||
DEPEND="
|
||||
${COMMON_DEPEND}
|
||||
dev-libs/libxslt
|
||||
"
|
||||
BDEPEND="
|
||||
$(vala_depend)
|
||||
>=dev-util/intltool-0.35.5
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-fix-compilation-error.patch"
|
||||
"${FILESDIR}/${PN}-fix-subkey-popmenu.patch"
|
||||
"${FILESDIR}/${PN}-fix-xadapter-xkb-calls.patch"
|
||||
"${FILESDIR}/${PN}-fix-antler-style-css.patch"
|
||||
"${FILESDIR}/${PN}-fix-python-env.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
vala_src_prepare
|
||||
gnome2_disable_deprecation_warning
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-maintainer-mode \
|
||||
--disable-schemas-compile \
|
||||
--disable-docs \
|
||||
--disable-static \
|
||||
--disable-gtk2-module \
|
||||
--enable-gtk3-module
|
||||
}
|
||||
|
||||
src_install() {
|
||||
DOCS="AUTHORS NEWS README"
|
||||
default
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
python_optimize
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_schemas_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_schemas_update
|
||||
}
|
@ -0,0 +1,58 @@
|
||||
--- a/bin/antler-keyboard.in
|
||||
+++ b/bin/antler-keyboard.in
|
||||
@@ -18,24 +18,4 @@
|
||||
# along with this program; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
-script_dir="$(dirname "$(readlink -f ${0})")"
|
||||
-
|
||||
-prefix=@prefix@
|
||||
-exec_prefix=@exec_prefix@
|
||||
-datarootdir=@datarootdir@
|
||||
-
|
||||
-if [ $script_dir = "@libexecdir@" ]
|
||||
-then
|
||||
- datadir="$(@PYTHON@ -c "from gi.repository import GLib; print(':'.join(GLib.get_system_data_dirs()))")"
|
||||
- export PYTHONPATH="${prefix}/lib/python@PYTHON_VERSION@/site-packages:${prefix}/lib64/python@PYTHON_VERSION@/site-packages${PYTHONPATH:+:$PYTHONPATH}"
|
||||
- export GI_TYPELIB_PATH="@libdir@/girepository-1.0${GI_TYPELIB_PATH:+:$GI_TYPELIB_PATH}"
|
||||
- export LD_LIBRARY_PATH="@libdir@${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
|
||||
- export XDG_DATA_DIRS="@datadir@${datadir:+:$datadir}"
|
||||
-else
|
||||
- export PYTHONPATH="$(dirname $script_dir)${PYTHONPATH:+:$PYTHONPATH}"
|
||||
- export GI_TYPELIB_PATH="$(dirname $script_dir)/libcaribou${GI_TYPELIB_PATH:+:$GI_TYPELIB_PATH}"
|
||||
- export LD_LIBRARY_PATH="$(dirname $script_dir)/libcaribou/.libs${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
|
||||
- export ANTLER_THEME_PATH="$(dirname $script_dir)/data"
|
||||
-fi
|
||||
-
|
||||
-@PYTHON@ -m caribou.antler.main "$@"
|
||||
+exec @PYTHON@ -m caribou.antler.main "$@"
|
||||
--- a/bin/caribou-preferences.in
|
||||
+++ b/bin/caribou-preferences.in
|
||||
@@ -18,26 +18,7 @@
|
||||
# along with this program; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
-script_dir="$(dirname "$(readlink -f ${0})")"
|
||||
-
|
||||
-prefix=@prefix@
|
||||
-exec_prefix=@exec_prefix@
|
||||
-datarootdir=@datarootdir@
|
||||
-
|
||||
-if [ $script_dir = "@bindir@" ]
|
||||
-then
|
||||
- datadir="$(@PYTHON@ -c "from gi.repository import GLib; print(':'.join(GLib.get_system_data_dirs()))")"
|
||||
- export PYTHONPATH="@prefix@/lib/python@PYTHON_VERSION@/site-packages${PYTHONPATH:+:$PYTHONPATH}"
|
||||
- export GI_TYPELIB_PATH="@libdir@/girepository-1.0${GI_TYPELIB_PATH:+:$GI_TYPELIB_PATH}"
|
||||
- export LD_LIBRARY_PATH="@libdir@${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
|
||||
- export XDG_DATA_DIRS="@datadir@${datadir:+:$datadir}"
|
||||
-else
|
||||
- export PYTHONPATH="$(dirname $script_dir)${PYTHONPATH:+:$PYTHONPATH}"
|
||||
- export GI_TYPELIB_PATH="$(dirname $script_dir)/libcaribou${GI_TYPELIB_PATH:+:$GI_TYPELIB_PATH}"
|
||||
- export LD_LIBRARY_PATH="$(dirname $script_dir)/libcaribou/.lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
|
||||
-fi
|
||||
-
|
||||
-@PYTHON@ -c "
|
||||
+exec @PYTHON@ -c "
|
||||
import signal
|
||||
signal.signal(signal.SIGINT, signal.SIG_DFL)
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,28 @@
|
||||
From 8473653ad37a32375ff416205c0f44f771f380df Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
|
||||
Date: Mon, 1 Mar 2021 13:36:33 +0100
|
||||
Subject: [PATCH] Fix missing parameter to "select-all" signal
|
||||
|
||||
Add missing "select" parameter to the "select-all" signal. This fixes
|
||||
undefined behavior reported in https://bugs.gentoo.org/772245.
|
||||
Thanks to Mart Raudsepp for figuring out the problem.
|
||||
---
|
||||
mousepad/mousepad-window.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/mousepad/mousepad-window.c b/mousepad/mousepad-window.c
|
||||
index 2f901b2..9ba6223 100644
|
||||
--- a/mousepad/mousepad-window.c
|
||||
+++ b/mousepad/mousepad-window.c
|
||||
@@ -5223,7 +5223,7 @@ mousepad_window_action_select_all (GSimpleAction *action,
|
||||
g_return_if_fail (MOUSEPAD_IS_DOCUMENT (window->active));
|
||||
|
||||
/* select everything in the document */
|
||||
- g_signal_emit_by_name (window->active->textview, "select-all");
|
||||
+ g_signal_emit_by_name (window->active->textview, "select-all", TRUE);
|
||||
}
|
||||
|
||||
|
||||
--
|
||||
GitLab
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST gentoolkit-0.5.0.tar.gz 3206598 BLAKE2B a379dcbbaba9d52c241fea020b87c458384e44092539947909e14fd6c63fd9cc06d076b8081874edf17fc50e80fe48ceab3400c90046867dc409e7ac39c17231 SHA512 8a5c344f3a17c4c779abbcaa35b5e3f147106dbc61310d0d1a816ec8080914271fa45c311a8feeb1bfe14195af7cf34c0b29142d6e43e2de232dae96fbd00861
|
||||
DIST gentoolkit-0.5.1.tar.gz 3203805 BLAKE2B de2cd69aec9be79f498b1180a90afb54e77f9d8a47636cd722f2028a906d43874132d55a71bf373b3d10c7c10034f5d8ce0280a35041b0c60a1d5aa2ed6296a1 SHA512 667e464853b17ae297c59fb06e8f4563119a1382470d064c5721ae898e61173e9af5b071c7618d315232e6974fec205e27559785d2816253711de3e83d9e1911
|
||||
|
@ -0,0 +1,69 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DISTUTILS_USE_SETUPTOOLS=no
|
||||
PYTHON_COMPAT=( python3_{7,8,9} pypy3 )
|
||||
PYTHON_REQ_USE="xml(+),threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
if [[ ${PV} = 9999* ]]; then
|
||||
EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/gentoolkit.git"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://gitweb.gentoo.org/proj/gentoolkit.git/snapshot/${P}.tar.gz"
|
||||
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"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Collection of administration scripts for Gentoo"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage-Tools"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
DEPEND="
|
||||
sys-apps/portage[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}
|
||||
sys-apps/gawk
|
||||
sys-apps/gentoo-functions"
|
||||
|
||||
distutils_enable_tests setup.py
|
||||
|
||||
python_prepare_all() {
|
||||
python_setup
|
||||
echo VERSION="${PVR}" "${PYTHON}" setup.py set_version
|
||||
VERSION="${PVR}" "${PYTHON}" setup.py set_version
|
||||
distutils-r1_python_prepare_all
|
||||
|
||||
if use prefix-guest ; then
|
||||
# use correct repo name, bug #632223
|
||||
sed -i \
|
||||
-e "/load_profile_data/s/repo='gentoo'/repo='gentoo_prefix'/" \
|
||||
pym/gentoolkit/profile.py || die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Create cache directory for revdep-rebuild
|
||||
mkdir -p -m 0755 "${EROOT}"/var/cache
|
||||
mkdir -p -m 0700 "${EROOT}"/var/cache/revdep-rebuild
|
||||
|
||||
# Only show the elog information on a new install
|
||||
if [[ ! ${REPLACING_VERSIONS} ]]; then
|
||||
elog
|
||||
elog "For further information on gentoolkit, please read the gentoolkit"
|
||||
elog "guide: https://wiki.gentoo.org/wiki/Gentoolkit"
|
||||
elog
|
||||
elog "Another alternative to equery is app-portage/portage-utils"
|
||||
elog
|
||||
elog "Additional tools that may be of interest:"
|
||||
elog
|
||||
elog " app-admin/eclean-kernel"
|
||||
elog " app-portage/diffmask"
|
||||
elog " app-portage/flaggie"
|
||||
elog " app-portage/portpeek"
|
||||
elog " app-portage/smart-live-rebuild"
|
||||
fi
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST nattka-0.2.11.tar.gz 93992 BLAKE2B ad088de5f96ec5f7f8b0922420d22ef507e1e79ef3bc3161e6a88cd4714f1007a000ab06a7e21245b2792fd3056474459bf424da0560b8666c5cf46f04a2d763 SHA512 5d9de9f437a15e149ce58348f40f86101c10fe1f4c4ce869e7038ba25fc212c22e024a9999a6197179a0a1e1e82380356d304841c33333e04949caaadef96db7
|
||||
DIST nattka-0.2.12.tar.gz 92954 BLAKE2B c4ffd44030da0224963d7fa367336d7ab9076b17f03292f5e65b7855823b34374b8d7626c4b97c155d10797f2d550f3c20cac39f68cfbfc4b8038406f37b21b0 SHA512 f1e775895d66505b09a3098525f998f87bb1561538f0e75b993b264f87f61937d7d5c71999018fe93c683366ef81dff5b7fef1e1d44af63153003f70d7933273
|
||||
|
@ -1,36 +0,0 @@
|
||||
# Copyright 2020-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
PYTHON_COMPAT=( python3_{8..9} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A New Arch Tester Toolkit -- open-source stable-bot replacement"
|
||||
HOMEPAGE="https://github.com/mgorny/nattka/"
|
||||
SRC_URI="https://github.com/mgorny/nattka/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~s390 sparc x86 ~x64-macos"
|
||||
IUSE="depgraph-order"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-util/pkgcheck[${PYTHON_USEDEP}]
|
||||
dev-vcs/git
|
||||
sys-apps/pkgcore[${PYTHON_USEDEP}]
|
||||
depgraph-order? (
|
||||
dev-python/networkx[${PYTHON_USEDEP}]
|
||||
)"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/freezegun[${PYTHON_USEDEP}]
|
||||
dev-python/vcrpy[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
distutils_enable_sphinx doc --no-autodoc
|
||||
distutils_enable_tests pytest
|
Binary file not shown.
@ -1,4 +1,2 @@
|
||||
DIST fish-2.7.1.tar.gz 5760550 BLAKE2B 71568a3a17f4222b05a314464a61fceb241409a7d42c46249486ca742ef0cf990c46d693bcc22521c18f58a558e6aab35759d0da6eb62ee6611a2a7946fe714d SHA512 45ee3453404c5d6c56d307b4cd19197de862f9f42d7fa06461acec56dea7146db5675cf6419dd5f72e939b3e4b1955d3761098df1de89a8cebe47645eb6f7a4b
|
||||
DIST fish-3.0.2.tar.gz 6477869 BLAKE2B fedc8bd5fd6d7856b695207ce9ac7a5a47f0e3c211d2aa2151a7a3c1bd944b3cf5c86ddf8b6e4c4d3499bb72d4ede64886706e05a44786d70c665b4ffb85369f SHA512 cd4a8e6a0d7770ef17e92d3d20ea23e754b9fa53e5ee5459ab5838fcbbcac69544ca2f83551e93a004b140cc14ec556860a711ce216197753c1704901518c9c3
|
||||
DIST fish-3.1.0.tar.gz 6810953 BLAKE2B 93143d9a2496b569ff6f73f4332beb3b738b7b03ede5357b0d7cc02a0c7da99852eb44a61c16d2524396ae37e76a1b439d708ae01488e79b0e03ba72504ebdec SHA512 143e462b5329790fa9834e135109e1397c3525756a0209d0ec68a53f7d2a1f581cd45fbbdcde6a5b53dff447da18ed6a62277993d851e7b18ef7f1a6b6d49cff
|
||||
DIST fish-3.1.2.tar.gz 6816214 BLAKE2B d994cb867a1a86850db2ec36d262328cd8dc21d63edb860c26d727aac08fa257392690999e099d754287d9f12a294222815e4cc84abbb2e2a87a982bb6627b6b SHA512 b6ae2c928774a2eaccf35312d3a9446bfa3e1335182c8f2b2d6198161d0916904f4964fb20ed13a5bf850c1c819e003905d13db3bc8b1faa5b401a60b47dc563
|
||||
DIST fish-3.2.0.tar.xz 3403640 BLAKE2B 740e20d428ef67b25352d56e5f2ca5732bbcb8310082dc1ca4f66c173d0380a5ab86328d6c1f8d899844d78bfd9547323a02d2c4caf5e82817ad01260bba3a7e SHA512 4525b8dd991179f77a298080d389813d1da8557bd394d174ded9238570715137e3aeec009d123811b34c07856d5f7cbe0ad35dc599d748f8f305036c3b74face
|
||||
|
@ -1,12 +0,0 @@
|
||||
diff --git a/src/builtin_printf.cpp b/src/builtin_printf.cpp
|
||||
index 8595120d5..24cf9a9e1 100644
|
||||
--- a/src/builtin_printf.cpp
|
||||
+++ b/src/builtin_printf.cpp
|
||||
@@ -444,6 +444,7 @@ void builtin_printf_state_t::print_direc(const wchar_t *start, size_t length, wc
|
||||
case L'X':
|
||||
case L'd':
|
||||
case L'i':
|
||||
+ case L'o':
|
||||
case L'u': {
|
||||
fmt.append(L"ll");
|
||||
break;
|
@ -1,31 +0,0 @@
|
||||
From 2c01e67a74ca48ca87e2f11f6239d54c35551e7b Mon Sep 17 00:00:00 2001
|
||||
From: David Adam <zanchey@ucc.gu.uwa.edu.au>
|
||||
Date: Sat, 5 Jan 2019 15:59:25 +0800
|
||||
Subject: [PATCH] histfile tests: tweak expect commands to avoid crash on
|
||||
32-bit platforms
|
||||
|
||||
Rather than killing the process with close, read EOF after sending the
|
||||
"exit" command and wait for OS cleanup (per the expect examples).
|
||||
|
||||
Not cleaning up with wait caused expect to crash on all 32-bit platforms
|
||||
including i586 and armv7l with "alloc: invalid block: 0xbf993ccb: 3d 3b".
|
||||
|
||||
64-bit platforms were not affected, for reasons that are not clear.
|
||||
---
|
||||
tests/histfile.expect | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/histfile.expect b/tests/histfile.expect
|
||||
index 81ca11276..7ac056235 100644
|
||||
--- a/tests/histfile.expect
|
||||
+++ b/tests/histfile.expect
|
||||
@@ -92,7 +92,8 @@ expect_prompt -re "\r\n$hist_line\r\n" {
|
||||
# =============
|
||||
# Start by shutting down the previous shell.
|
||||
send "exit\r"
|
||||
-close $spawn_id
|
||||
+expect eof
|
||||
+wait
|
||||
|
||||
# Set the fish_history env var.
|
||||
set ::env(fish_history) env
|
@ -1,88 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
MY_PV="${PV/_beta/b}"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
|
||||
DESCRIPTION="Friendly Interactive SHell"
|
||||
HOMEPAGE="http://fishshell.com/"
|
||||
SRC_URI="https://github.com/${PN}-shell/${PN}-shell/releases/download/${MY_PV}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
[[ "${PV}" = *_* ]] || \
|
||||
KEYWORDS="amd64 ~arm arm64 ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
|
||||
IUSE="nls test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/libpcre2-10.21[pcre32]
|
||||
sys-libs/ncurses:0=
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
sys-devel/bc
|
||||
nls? ( sys-devel/gettext )
|
||||
test? ( dev-tcltk/expect )
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-fix-printf-o-handling-on-ppc.patch"
|
||||
"${FILESDIR}/fix-histfile-test-on-ppc.patch" )
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_configure() {
|
||||
# Set things up for fish to be a default shell.
|
||||
# It has to be in /bin in case /usr is unavailable.
|
||||
# Also, all of its utilities have to be in /bin.
|
||||
econf \
|
||||
--bindir="${EPREFIX}"/bin \
|
||||
--without-included-pcre2 \
|
||||
$(use_with nls gettext)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake V=1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" V=1 install
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if has_version ~${CATEGORY}/${P} ; then
|
||||
emake -j1 V=1 SHOW_INTERACTIVE_LOG=1 test
|
||||
else
|
||||
ewarn "Some tests only work when the package is already installed"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "fish is now installed on your system."
|
||||
elog "To run fish, type 'fish' in your terminal."
|
||||
elog
|
||||
elog "It is advised not to set fish as a default login shell."
|
||||
elog "see bug #545830 for more details."
|
||||
elog "Executing fish using ~/.bashrc is an alternative"
|
||||
elog "see https://wiki.gentoo.org/wiki/Fish#Caveats for details"
|
||||
elog
|
||||
elog "To set your colors, run 'fish_config'"
|
||||
elog "To scan your man pages for completions, run 'fish_update_completions'"
|
||||
elog "To autocomplete command suggestions press Ctrl + F or right arrow key."
|
||||
elog
|
||||
elog "Please add a \"BROWSER\" variable to ${PN}'s environment pointing to the"
|
||||
elog "browser of your choice to get acces to ${PN}'s help system:"
|
||||
elog " BROWSER=\"/usr/bin/firefox\""
|
||||
elog
|
||||
elog "In order to get lzma and xz support for man-page completion please"
|
||||
elog "emerge one of the following packages:"
|
||||
elog " dev-python/backports-lzma"
|
||||
elog " >=dev-lang/python-3.3"
|
||||
elog
|
||||
elog "If you have issues with cut'n'paste in X-terminals, install the"
|
||||
elog "x11-misc/xsel package."
|
||||
elog
|
||||
elog "Have fun!"
|
||||
}
|
@ -1,75 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit cmake readme.gentoo-r1
|
||||
|
||||
DESCRIPTION="Friendly Interactive SHell"
|
||||
HOMEPAGE="http://fishshell.com/"
|
||||
|
||||
MY_PV="${PV/_beta/b}"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/${PN}-shell/${PN}-shell.git"
|
||||
else
|
||||
SRC_URI="https://github.com/${PN}-shell/${PN}-shell/releases/download/${MY_PV}/${MY_P}.tar.gz"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
IUSE="doc nls test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/libpcre2-10.21[pcre32]
|
||||
sys-devel/bc
|
||||
sys-libs/ncurses:0=[unicode]
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-doc/doxygen )
|
||||
nls? ( sys-devel/gettext )
|
||||
test? ( dev-tcltk/expect )
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/fix-histfile-test-on-ppc.patch" )
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
# workaround for https://github.com/fish-shell/fish-shell/issues/4883
|
||||
sed -i 's#${TEST_INSTALL_DIR}/${CMAKE_INSTALL_PREFIX}#${TEST_INSTALL_DIR}#' \
|
||||
cmake/Tests.cmake || die
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_INSTALL_BINDIR="${EPREFIX}/bin"
|
||||
-DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
|
||||
-DCURSES_NEED_NCURSES=ON
|
||||
-DINTERNAL_WCWIDTH=OFF
|
||||
-DBUILD_DOCS="$(usex doc)"
|
||||
-DWITH_GETTEXT="$(usex nls)"
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
keepdir /usr/share/fish/vendor_{completions,conf,functions}.d
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cmake_build -j1 test
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
readme.gentoo_print_elog
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1 +1,3 @@
|
||||
DIST citus-10.0.1.tar.gz 5133492 BLAKE2B d0b95d00bb374613eb9514544e19071bfd28f5f30b02352b644bd4100a50f337dfc132a15d4193f4c8a369beec6ee783eafa2d032e7ac074667d3f0de6617d97 SHA512 31c979bd4baec987d709a5865e78296584104cb25671b986c5f5545cb3dda64cd2663c1274efc72c35c523ce9aefed598adf4df8aa96e790a8772ebb09233ae7
|
||||
DIST citus-9.5.2.tar.gz 4714211 BLAKE2B b8e9d862b5ea8cb77202632ddac1b20d521b82d512c424f093e41bca146630197fd57c6986660a7d3fd98b67fefac0255184bc83ac1c6ef4242b67bda28cbe69 SHA512 db114053419f9b268ad45a3bbebc58ba5aec0925737840c4389c5ebf23bef9a26ce8c132a4a88cf06fa54cab926172cc283a12acc2c09bd888b55a9a4c0472a3
|
||||
DIST citus-9.5.4.tar.gz 4718209 BLAKE2B 706726c8ca6ffb38321e3b91395924e9b778c106096393992080f511338a7ae559f94336bb015508900f85290bd17cda8ef9ce6dbdc2e254f3daf7a09e243bf6 SHA512 3d5e956354e094811675b646a5baf75c26a3ac593c56ac5b6c4c711671002f78fb98a1a4879c4cc967fc4381ae971311f5d73ddadc78a39b66c3108978d677b6
|
||||
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
POSTGRES_COMPAT=( 11 12 13 )
|
||||
|
||||
inherit postgres-multi
|
||||
|
||||
DESCRIPTION="Open-source postgresql extension for clustering/multi-node setups"
|
||||
HOMEPAGE="https://www.citusdata.com/"
|
||||
SRC_URI="https://github.com/citusdata/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
IUSE=""
|
||||
LICENSE="POSTGRESQL AGPL-3"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
SLOT=0
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND="${POSTGRES_DEP}
|
||||
app-arch/lz4
|
||||
app-arch/zstd
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_configure() {
|
||||
postgres-multi_foreach econf
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
POSTGRES_COMPAT=( 11 12 13 )
|
||||
|
||||
inherit postgres-multi
|
||||
|
||||
DESCRIPTION="Open-source postgresql extension for clustering/multi-node setups"
|
||||
HOMEPAGE="https://www.citusdata.com/"
|
||||
SRC_URI="https://github.com/citusdata/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
IUSE=""
|
||||
LICENSE="POSTGRESQL AGPL-3"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
SLOT=0
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND="${POSTGRES_DEP}
|
||||
app-arch/lz4
|
||||
app-arch/zstd
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_configure() {
|
||||
postgres-multi_foreach econf
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST postgis-3.0.3.tar.gz 16871696 BLAKE2B 891f814271de9193cd17013d6d971a752d2e984cb0f68b05510450adef97fc96827e3d1a1c7e4fa4cf79a5d15eb3f74b32e6e9a8db1947f7bad7c2b23656bc8f SHA512 478f0971e18c2a1bd651c9bf7b995236aad32fda037762505cf8ac9e67a4e40917436248c1e62827a1a6da96c15c4ae8d0b606d548fa080cdff453642b897115
|
||||
DIST postgis-3.1.0.tar.gz 17262134 BLAKE2B dbc6edde826328b84ca7d6cc9329d648c7874d51528252759499131d7ad5dbc1a7a4ef881054f2fa1fc255810157270dc1c0ae0e2ea24ec702f06b9fd5f6dfed SHA512 c5b063ff7cbe855ab6ce4104d170b27eea04ae632fd6fcb8de38b14699296a8e0c9ce06bfb48ab14cba51b7a1b3f7e0a3996d9377a954dfc39fd68fe3f839e8f
|
||||
DIST postgis-3.1.1.tar.gz 17261826 BLAKE2B a14bdce3773f8cc50c72880d9b8158c32b546332884645e91cba539ab9238c3cbcbc9ee60292932c86de67a0134bdab6a2b4e6b1f3c55881afbb36a08d8f138a SHA512 b975d26c1ad01fa6b90b5b3b51fd2b4b33204a380af0f76b98d1bfd6bd95f527d4ac3548f1b822e114be17bb3a133bc88c3d33a17d4effdfa1f90ec0c683e5e5
|
||||
|
@ -0,0 +1,140 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
POSTGRES_COMPAT=( 9.6 {10..13} )
|
||||
POSTGRES_USEDEP="server"
|
||||
inherit autotools postgres-multi toolchain-funcs
|
||||
|
||||
MY_P="${PN}-$(ver_rs 3 '')"
|
||||
|
||||
if [[ ${PV} = *9999* ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://git.osgeo.org/gitea/postgis/postgis.git"
|
||||
else
|
||||
PGIS="$(ver_cut 1-2)"
|
||||
SRC_URI="https://download.osgeo.org/postgis/source/${MY_P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Geographic Objects for PostgreSQL"
|
||||
HOMEPAGE="https://postgis.net"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="address-standardizer doc gtk static-libs topology"
|
||||
|
||||
REQUIRED_USE="${POSTGRES_REQ_USE}"
|
||||
|
||||
# Needs a running psql instance, doesn't work out of the box
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="${POSTGRES_DEP}
|
||||
dev-libs/json-c:=
|
||||
dev-libs/libxml2:2
|
||||
dev-libs/protobuf-c:=
|
||||
>=sci-libs/geos-3.9.0
|
||||
>=sci-libs/proj-4.9.0:=
|
||||
>=sci-libs/gdal-1.10.0:=
|
||||
address-standardizer? ( dev-libs/libpcre )
|
||||
gtk? ( x11-libs/gtk+:2 )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
doc? (
|
||||
app-text/docbook-xsl-stylesheets
|
||||
app-text/docbook-xml-dtd:4.5
|
||||
dev-libs/libxslt
|
||||
virtual/imagemagick-tools[png]
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.2.0-arflags.patch"
|
||||
"${FILESDIR}/${PN}-3.0.3-avoid-calling-ar-directly.patch"
|
||||
"${FILESDIR}/${PN}-3.0.3-detect-only-stdc.patch"
|
||||
"${FILESDIR}/${PN}-3.0.3-try-other-cpp-names.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
if [[ ${PV} = *9999* ]] ; then
|
||||
source "${S}"/Version.config
|
||||
PGIS="${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}"
|
||||
fi
|
||||
|
||||
# These modules are built using the same *FLAGS that were used to build
|
||||
# dev-db/postgresql. The right thing to do is to ignore the current
|
||||
# *FLAGS settings.
|
||||
QA_FLAGS_IGNORED="usr/lib(64)?/(rt)?postgis-${PGIS}\.so"
|
||||
|
||||
local AT_M4DIR="macros"
|
||||
eautoreconf
|
||||
|
||||
postgres-multi_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
export CPP=$(tc-getCPP)
|
||||
|
||||
local myeconfargs=(
|
||||
$(use_with address-standardizer)
|
||||
$(use_with gtk gui)
|
||||
$(use_with topology)
|
||||
)
|
||||
postgres-multi_foreach econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
postgres-multi_foreach emake
|
||||
postgres-multi_foreach emake -C topology
|
||||
|
||||
if use doc ; then
|
||||
postgres-multi_foreach emake comments
|
||||
postgres-multi_foreach emake cheatsheets
|
||||
postgres-multi_forbest emake -C doc html
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
postgres-multi_foreach emake DESTDIR="${D}" install
|
||||
postgres-multi_foreach emake -C topology DESTDIR="${D}" install
|
||||
postgres-multi_forbest dobin ./utils/postgis_restore.pl
|
||||
|
||||
dodoc CREDITS TODO loader/README.* doc/*txt
|
||||
|
||||
docinto topology
|
||||
dodoc topology/{TODO,README}
|
||||
|
||||
if use doc ; then
|
||||
postgres-multi_foreach emake DESTDIR="${D}" comments-install
|
||||
|
||||
docinto html
|
||||
postgres-multi_forbest dodoc doc/html/{postgis.html,style.css}
|
||||
|
||||
docinto html/images
|
||||
postgres-multi_forbest dodoc doc/html/images/*
|
||||
fi
|
||||
|
||||
use static-libs || find "${ED}" -name '*.a' -delete
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ebegin "Refreshing PostgreSQL symlinks"
|
||||
postgresql-config update
|
||||
eend $?
|
||||
|
||||
local base_uri="https://postgis.net/docs/manual-"
|
||||
if [[ ${PV} = *9999* ]] ; then
|
||||
base_uri+="dev"
|
||||
else
|
||||
base_uri+="${PGIS}"
|
||||
fi
|
||||
|
||||
elog "To finish installing PostGIS, follow the directions detailed at:"
|
||||
elog "${base_uri}/postgis_installation.html#create_new_db_extensions"
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST spatialite-tools-4.3.0.tar.gz 540811 BLAKE2B 3de4301380a0b64cdd388cb0dc1917b90a02a721b1e34d3781b5b4e14a810809c922a3760a269c3980790801b66a100f9bacf1249f2874374295b5bb9431b133 SHA512 e1de27c1c65ff2ff0b08583113517bea74edf33fff59ad6e9c77492ea3ae87d9c0f17d7670ee6602b32eea73ad3678bb5410ef2c6fac6e213bf2e341a907db88
|
||||
DIST spatialite-tools-5.0.1.tar.gz 578520 BLAKE2B ec01bc73bb9001b439e52794b172aba4197d6a55297abbdf8397f3d984c2463df19da5a1cbcc5baba5c23e47990287d750f30f0731144d69876a0df82a4727d5 SHA512 dad52f6ed3c66ffd95f3a5c21225cd1b20641523af616f7e8defba8e4e46921da169e5f7bf9c53a355e132b6e74750d6db3fe02c870a3386f850df49c83bb8cd
|
||||
|
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="A collection of CLI tools supporting SpatiaLite"
|
||||
HOMEPAGE="https://www.gaia-gis.it/spatialite"
|
||||
SRC_URI="https://www.gaia-gis.it/gaia-sins/${PN}-sources/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="readline"
|
||||
|
||||
RDEPEND="
|
||||
dev-db/sqlite:3[extensions(+)]
|
||||
>=dev-db/spatialite-3.0.1[geos,xls]
|
||||
dev-libs/expat
|
||||
dev-libs/libxml2
|
||||
>=sci-geosciences/readosm-1.1.0
|
||||
sci-libs/geos
|
||||
sci-libs/proj
|
||||
readline? (
|
||||
sys-libs/ncurses:=
|
||||
sys-libs/readline:=
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable readline)
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST libspatialite-4.3.0a.tar.gz 4440660 BLAKE2B 2eb2afb96b096b86be9c30cf71663b7b2839d345b6c418fc8511653ed59d0aeff1756b6b19807140c67128c938e39be66d13088640658d14883c92c438c97251 SHA512 adfd63e8dde0f370b07e4e7bb557647d2bfb5549205b60bdcaaca69ff81298a3d885e7c1ca515ef56dd0aca152ae940df8b5dbcb65bb61ae0a9337499895c3c0
|
||||
DIST libspatialite-5.0.1.tar.gz 6372753 BLAKE2B 0fe5b37efac134e3796c96ed012b434ce99547037a44df69d3e98c7ac586c1173faa1fe93c4578e7cc0f47a9f1c539710661bad57f8012c3bdabde427221a842 SHA512 c2552994bc30d69d1e80aa274760f048cd384f71e8350a1e48a47cb8222ba71a1554a69c6534eedde9a09dc582c39c089967bcc1c57bf158cc91a3e7b1840ddf
|
||||
|
@ -0,0 +1,56 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit flag-o-matic
|
||||
|
||||
MY_PN="lib${PN}"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="A complete Spatial DBMS in a nutshell built upon sqlite"
|
||||
HOMEPAGE="https://www.gaia-gis.it/gaia-sins/"
|
||||
SRC_URI="https://www.gaia-gis.it/gaia-sins/${MY_PN}-sources/${MY_P}.tar.gz"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="MPL-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86"
|
||||
IUSE="+geos iconv +proj test +xls +xml"
|
||||
# Further poking required
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-db/sqlite-3.7.5:3[extensions(+)]
|
||||
sys-libs/zlib
|
||||
geos? ( >=sci-libs/geos-3.4 )
|
||||
proj? ( sci-libs/proj:= )
|
||||
xls? ( dev-libs/freexl )
|
||||
xml? ( dev-libs/libxml2 )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
REQUIRED_USE="test? ( iconv )"
|
||||
|
||||
src_configure() {
|
||||
# 1) rttopo not yet packaged
|
||||
# 2) gcp disabled for now to preserve MPL licence
|
||||
econf \
|
||||
--disable-rttopo \
|
||||
--disable-gcp \
|
||||
--disable-examples \
|
||||
--disable-static \
|
||||
--enable-epsg \
|
||||
--enable-geocallbacks \
|
||||
$(use_enable geos) \
|
||||
$(use_enable geos geosadvanced) \
|
||||
$(use_enable iconv) \
|
||||
$(use_enable proj) \
|
||||
$(use_enable xls freexl) \
|
||||
$(use_enable xml libxml2)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
}
|
@ -1 +1,3 @@
|
||||
DIST timescaledb-2.0.1.tar.gz 2226320 BLAKE2B 0bd5011e30d6c0d5ac11b78ddf6650044f35d720317213bd0437a43e0421953708d3d69b6933a821d255b183bb72b1c5e34ff88223790266daf7af3cf21f2de2 SHA512 84e9c7da3f0fc6740eb0555bbd92f5511ceef4868fb1952650f9499f3054a4d2be59b3a042b17bf655155c9f9c1de82b6b4fb302bdad7ffbe893ed901adcefc0
|
||||
DIST timescaledb-2.0.2.tar.gz 2237429 BLAKE2B 58c5e68daf5a3c1fade48b2ce8f625496ee3c58be38c573c883e319eb0084064d243270ac839e4bdd1ce3c865fc6b916c7869232b995529d8aca77851a0c7a79 SHA512 26ce25e4d833810cdd99691f3b8a4d0c26655b2efeba7c25d5daaaf2d1aabd8f96a421a771da9c5b6cf29af66ddcab39f3881d40364e25c101ea691e4ec61116
|
||||
DIST timescaledb-2.1.0.tar.gz 2527250 BLAKE2B 6f257c4b1afc0869c8e309f9b3080dbcdda4b50debc1a5b3848b9d6e59744ff52902b475aca0bc8820aa2edebe9847d62e500a8cd19f7ab8050d9586d95d3a66 SHA512 53fddb9fe4c4ab51ebc020e90eea5b032b41259d3bd45e8a03a86451acd7f8864b5a6ecba1b82b7c78e230f62cfddf1da75ff27e6629ad5fe8178839ac411ce4
|
||||
|
@ -0,0 +1,66 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
POSTGRES_COMPAT=( 11 12 )
|
||||
|
||||
inherit postgres-multi cmake
|
||||
|
||||
DESCRIPTION="Open-source time-series SQL database"
|
||||
HOMEPAGE="https://www.timescale.com/"
|
||||
SRC_URI="https://github.com/timescale/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
IUSE="proprietary-extensions"
|
||||
LICENSE="POSTGRESQL Apache-2.0 proprietary-extensions? ( timescale )"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
SLOT=0
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND="${POSTGRES_DEP}
|
||||
dev-libs/openssl"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
CMAKE_IN_SOURCE_BUILD=yes
|
||||
BUILD_DIR=${WORKDIR}/${P}
|
||||
|
||||
src_prepare() {
|
||||
postgres-multi_src_prepare
|
||||
postgres-multi_foreach cmake_src_prepare
|
||||
}
|
||||
|
||||
timescale_configure() {
|
||||
local CMAKE_USE_DIR=$BUILD_DIR
|
||||
local mycmakeargs=( "-DPG_CONFIG=/usr/bin/pg_config${MULTIBUILD_VARIANT}" "-DREGRESS_CHECKS=OFF" )
|
||||
|
||||
# licensing is tied to features, this useflag disables the non-apache2 licensed bits
|
||||
if ! use proprietary-extensions ; then
|
||||
mycmakeargs+=("-DAPACHE_ONLY=ON")
|
||||
fi
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
postgres-multi_foreach timescale_configure
|
||||
}
|
||||
|
||||
timescale_src_compile() {
|
||||
local CMAKE_USE_DIR=$BUILD_DIR
|
||||
cmake_src_compile
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
postgres-multi_foreach timescale_src_compile
|
||||
}
|
||||
|
||||
timescale_src_install() {
|
||||
local CMAKE_USE_DIR=$BUILD_DIR
|
||||
cmake_src_install
|
||||
}
|
||||
|
||||
src_install() {
|
||||
postgres-multi_foreach timescale_src_install
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
POSTGRES_COMPAT=( 11 12 13 )
|
||||
|
||||
inherit postgres-multi cmake
|
||||
|
||||
DESCRIPTION="Open-source time-series SQL database"
|
||||
HOMEPAGE="https://www.timescale.com/"
|
||||
SRC_URI="https://github.com/timescale/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
IUSE="proprietary-extensions"
|
||||
LICENSE="POSTGRESQL Apache-2.0 proprietary-extensions? ( timescale )"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
SLOT=0
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND="${POSTGRES_DEP}
|
||||
dev-libs/openssl"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
CMAKE_IN_SOURCE_BUILD=yes
|
||||
BUILD_DIR=${WORKDIR}/${P}
|
||||
|
||||
src_prepare() {
|
||||
postgres-multi_src_prepare
|
||||
postgres-multi_foreach cmake_src_prepare
|
||||
}
|
||||
|
||||
timescale_configure() {
|
||||
local CMAKE_USE_DIR=$BUILD_DIR
|
||||
local mycmakeargs=( "-DPG_CONFIG=/usr/bin/pg_config${MULTIBUILD_VARIANT}" "-DREGRESS_CHECKS=OFF" )
|
||||
|
||||
# licensing is tied to features, this useflag disables the non-apache2 licensed bits
|
||||
if ! use proprietary-extensions ; then
|
||||
mycmakeargs+=("-DAPACHE_ONLY=ON")
|
||||
fi
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
postgres-multi_foreach timescale_configure
|
||||
}
|
||||
|
||||
timescale_src_compile() {
|
||||
local CMAKE_USE_DIR=$BUILD_DIR
|
||||
cmake_src_compile
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
postgres-multi_foreach timescale_src_compile
|
||||
}
|
||||
|
||||
timescale_src_install() {
|
||||
local CMAKE_USE_DIR=$BUILD_DIR
|
||||
cmake_src_install
|
||||
}
|
||||
|
||||
src_install() {
|
||||
postgres-multi_foreach timescale_src_install
|
||||
}
|
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST OpenSceneGraph-3.6.4.tar.gz 5771539 BLAKE2B 3f608566ed8bd927f30c18ab25147826a40655bfa0eca2b0765f775d1fca53c090b77c9963b392bb73b405150f64f1b3bdc57ac6ef59de7f88bf9fd208b2ff6e SHA512 7cb34fc279ba62a7d7177d3f065f845c28255688bd29026ffb305346e1bb2e515a22144df233e8a7246ed392044ee3e8b74e51bf655282d33ab27dcaf12f4b19
|
||||
DIST OpenSceneGraph-3.6.5.tar.gz 5780762 BLAKE2B 31ebeeae94eb6aff043788313946d5c08886f97d97cd5796e600918e137ef7f06839206b79b2f5649aac7f34037d4d79e18a5638152e150de931b7f7a7d3c38b SHA512 7002fa30a3bcf6551d2e1050b4ca75a3736013fd190e4f50953717406864da1952deb09f530bc8c5ddf6e4b90204baec7dbc283f497829846d46d561f66feb4b
|
||||
|
@ -1,147 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
MY_PN="OpenSceneGraph"
|
||||
MY_P=${MY_PN}-${PV}
|
||||
WX_GTK_VER="3.0-gtk3"
|
||||
inherit cmake flag-o-matic wxwidgets
|
||||
|
||||
DESCRIPTION="Open source high performance 3D graphics toolkit"
|
||||
HOMEPAGE="http://www.openscenegraph.org/"
|
||||
SRC_URI="https://github.com/${PN}/${MY_PN}/archive/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="wxWinLL-3 LGPL-2.1"
|
||||
SLOT="0/158" # NOTE: CHECK WHEN BUMPING! Subslot is SOVERSION
|
||||
KEYWORDS="amd64 ~hppa ppc ppc64 x86"
|
||||
IUSE="asio curl dicom debug doc egl examples ffmpeg fltk fox gdal gif glut
|
||||
gstreamer jpeg las lua openexr openinventor osgapps pdf png sdl sdl2
|
||||
svg tiff truetype vnc wxwidgets xrandr +zlib"
|
||||
|
||||
REQUIRED_USE="sdl2? ( sdl ) dicom? ( zlib ) openexr? ( zlib )"
|
||||
|
||||
# TODO: COLLADA, FBX, GTA, NVTT, OpenVRML, Performer
|
||||
BDEPEND="
|
||||
app-arch/unzip
|
||||
virtual/pkgconfig
|
||||
doc? ( app-doc/doxygen )
|
||||
"
|
||||
RDEPEND="
|
||||
media-libs/mesa[egl?]
|
||||
virtual/glu
|
||||
virtual/opengl
|
||||
x11-libs/libSM
|
||||
x11-libs/libXext
|
||||
asio? ( dev-cpp/asio )
|
||||
curl? ( net-misc/curl )
|
||||
examples? (
|
||||
fltk? ( x11-libs/fltk:1[opengl] )
|
||||
fox? ( x11-libs/fox:1.6[opengl] )
|
||||
glut? ( media-libs/freeglut )
|
||||
sdl2? ( media-libs/libsdl2 )
|
||||
wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[opengl,X] )
|
||||
)
|
||||
ffmpeg? ( media-video/ffmpeg:0= )
|
||||
gdal? ( sci-libs/gdal:= )
|
||||
gif? ( media-libs/giflib:= )
|
||||
gstreamer? (
|
||||
media-libs/gstreamer:1.0
|
||||
media-libs/gst-plugins-base:1.0
|
||||
)
|
||||
jpeg? ( virtual/jpeg:0 )
|
||||
las? ( >=sci-geosciences/liblas-1.8.0 )
|
||||
lua? ( >=dev-lang/lua-5.1.5:0= )
|
||||
openexr? (
|
||||
media-libs/ilmbase:=
|
||||
media-libs/openexr:=
|
||||
)
|
||||
openinventor? ( media-libs/coin )
|
||||
pdf? ( app-text/poppler[cairo] )
|
||||
png? ( media-libs/libpng:0= )
|
||||
sdl? ( media-libs/libsdl )
|
||||
svg? (
|
||||
gnome-base/librsvg
|
||||
x11-libs/cairo
|
||||
)
|
||||
tiff? ( media-libs/tiff:0 )
|
||||
truetype? ( media-libs/freetype:2 )
|
||||
vnc? ( net-libs/libvncserver )
|
||||
xrandr? ( x11-libs/libXrandr )
|
||||
zlib? ( sys-libs/zlib )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
x11-base/xorg-proto
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${MY_P}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-3.6.3-cmake.patch
|
||||
"${FILESDIR}"/${PN}-3.6.3-docdir.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
if use examples && use wxwidgets; then
|
||||
need-wxwidgets unicode
|
||||
fi
|
||||
|
||||
# Needed by FFmpeg
|
||||
append-cppflags -D__STDC_CONSTANT_MACROS
|
||||
|
||||
local libdir=$(get_libdir)
|
||||
local mycmakeargs=(
|
||||
-DDYNAMIC_OPENSCENEGRAPH=ON
|
||||
-DLIB_POSTFIX=${libdir/lib}
|
||||
-DOPENGL_PROFILE=GL2 #GL1 GL2 GL3 GLES1 GLES3 GLES3
|
||||
-DOSG_ENVVAR_SUPPORTED=ON
|
||||
-DOSG_PROVIDE_READFILE=ON
|
||||
-DOSG_USE_LOCAL_LUA_SOURCE=OFF
|
||||
$(cmake_use_find_package asio Asio)
|
||||
$(cmake_use_find_package curl CURL)
|
||||
-DBUILD_DOCUMENTATION=$(usex doc)
|
||||
$(cmake_use_find_package dicom DCMTK)
|
||||
$(cmake_use_find_package egl EGL)
|
||||
-DBUILD_OSG_EXAMPLES=$(usex examples)
|
||||
$(cmake_use_find_package ffmpeg FFmpeg)
|
||||
$(cmake_use_find_package gdal GDAL)
|
||||
$(cmake_use_find_package gif GIFLIB)
|
||||
$(cmake_use_find_package gstreamer GLIB)
|
||||
$(cmake_use_find_package gstreamer GStreamer)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_GtkGl=ON
|
||||
$(cmake_use_find_package jpeg JPEG)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Jasper=ON
|
||||
$(cmake_use_find_package las LIBLAS)
|
||||
$(cmake_use_find_package lua Lua51)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Lua52=ON
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_OpenCascade=ON
|
||||
$(cmake_use_find_package openexr OpenEXR)
|
||||
$(cmake_use_find_package openinventor Inventor)
|
||||
-DBUILD_OSG_APPLICATIONS=$(usex osgapps)
|
||||
$(cmake_use_find_package pdf Poppler-glib)
|
||||
$(cmake_use_find_package png PNG)
|
||||
$(cmake_use_find_package sdl SDL)
|
||||
$(cmake_use_find_package sdl2 SDL2)
|
||||
$(cmake_use_find_package svg RSVG)
|
||||
$(cmake_use_find_package tiff TIFF)
|
||||
$(cmake_use_find_package truetype Freetype)
|
||||
$(cmake_use_find_package vnc LibVNCServer)
|
||||
-DOSGVIEWER_USE_XRANDR=$(usex xrandr)
|
||||
$(cmake_use_find_package zlib ZLIB)
|
||||
)
|
||||
if use examples; then
|
||||
mycmakeargs+=(
|
||||
$(cmake_use_find_package fltk FLTK)
|
||||
$(cmake_use_find_package fox FOX)
|
||||
$(cmake_use_find_package glut GLUT)
|
||||
$(cmake_use_find_package wxwidgets wxWidgets)
|
||||
)
|
||||
fi
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake_src_compile
|
||||
use doc && cmake_src_compile doc_openscenegraph doc_openthreads
|
||||
}
|
@ -1,144 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
MY_PN="OpenSceneGraph"
|
||||
MY_P=${MY_PN}-${PV}
|
||||
WX_GTK_VER="3.0-gtk3"
|
||||
inherit cmake flag-o-matic wxwidgets
|
||||
|
||||
DESCRIPTION="Open source high performance 3D graphics toolkit"
|
||||
HOMEPAGE="http://www.openscenegraph.org/"
|
||||
SRC_URI="https://github.com/${PN}/${MY_PN}/archive/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="wxWinLL-3 LGPL-2.1"
|
||||
SLOT="0/161" # NOTE: CHECK WHEN BUMPING! Subslot is SOVERSION
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
|
||||
IUSE="curl dicom debug doc egl examples ffmpeg fltk fox gdal gif glut
|
||||
gstreamer jpeg las lua openexr openinventor osgapps pdf png sdl sdl2
|
||||
svg tiff truetype vnc wxwidgets xrandr +zlib"
|
||||
|
||||
REQUIRED_USE="sdl2? ( sdl ) dicom? ( zlib ) openexr? ( zlib )"
|
||||
|
||||
# TODO: COLLADA, FBX, GTA, NVTT, OpenVRML, Performer
|
||||
BDEPEND="
|
||||
app-arch/unzip
|
||||
virtual/pkgconfig
|
||||
doc? ( app-doc/doxygen )
|
||||
"
|
||||
RDEPEND="
|
||||
media-libs/mesa[egl?]
|
||||
virtual/glu
|
||||
virtual/opengl
|
||||
x11-libs/libSM
|
||||
x11-libs/libXext
|
||||
curl? ( net-misc/curl )
|
||||
examples? (
|
||||
fltk? ( x11-libs/fltk:1[opengl] )
|
||||
fox? ( x11-libs/fox:1.6[opengl] )
|
||||
glut? ( media-libs/freeglut )
|
||||
sdl2? ( media-libs/libsdl2 )
|
||||
wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[opengl,X] )
|
||||
)
|
||||
ffmpeg? ( media-video/ffmpeg:0= )
|
||||
gdal? ( sci-libs/gdal:= )
|
||||
gif? ( media-libs/giflib:= )
|
||||
gstreamer? (
|
||||
media-libs/gstreamer:1.0
|
||||
media-libs/gst-plugins-base:1.0
|
||||
)
|
||||
jpeg? ( virtual/jpeg:0 )
|
||||
las? ( >=sci-geosciences/liblas-1.8.0 )
|
||||
lua? ( >=dev-lang/lua-5.1.5:0= )
|
||||
openexr? (
|
||||
media-libs/ilmbase:=
|
||||
media-libs/openexr:=
|
||||
)
|
||||
openinventor? ( media-libs/coin )
|
||||
pdf? ( app-text/poppler[cairo] )
|
||||
png? ( media-libs/libpng:0= )
|
||||
sdl? ( media-libs/libsdl )
|
||||
svg? (
|
||||
gnome-base/librsvg
|
||||
x11-libs/cairo
|
||||
)
|
||||
tiff? ( media-libs/tiff:0 )
|
||||
truetype? ( media-libs/freetype:2 )
|
||||
vnc? ( net-libs/libvncserver )
|
||||
xrandr? ( x11-libs/libXrandr )
|
||||
zlib? ( sys-libs/zlib )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-libs/boost-1.37.0:*
|
||||
x11-base/xorg-proto
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${MY_P}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-3.6.3-cmake.patch
|
||||
"${FILESDIR}"/${PN}-3.6.3-docdir.patch
|
||||
"${FILESDIR}"/${PN}-3.6.5-use_boost_asio.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
if use examples && use wxwidgets; then
|
||||
need-wxwidgets unicode
|
||||
fi
|
||||
|
||||
# Needed by FFmpeg
|
||||
append-cppflags -D__STDC_CONSTANT_MACROS
|
||||
|
||||
local libdir=$(get_libdir)
|
||||
local mycmakeargs=(
|
||||
-DDYNAMIC_OPENSCENEGRAPH=ON
|
||||
-DLIB_POSTFIX=${libdir/lib}
|
||||
-DOPENGL_PROFILE=GL2 #GL1 GL2 GL3 GLES1 GLES3 GLES3
|
||||
$(cmake_use_find_package curl CURL)
|
||||
-DBUILD_DOCUMENTATION=$(usex doc)
|
||||
$(cmake_use_find_package dicom DCMTK)
|
||||
$(cmake_use_find_package egl EGL)
|
||||
-DBUILD_OSG_EXAMPLES=$(usex examples)
|
||||
$(cmake_use_find_package ffmpeg FFmpeg)
|
||||
$(cmake_use_find_package gdal GDAL)
|
||||
$(cmake_use_find_package gif GIFLIB)
|
||||
$(cmake_use_find_package gstreamer GLIB)
|
||||
$(cmake_use_find_package gstreamer GStreamer)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_GtkGl=ON
|
||||
$(cmake_use_find_package jpeg JPEG)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Jasper=ON
|
||||
$(cmake_use_find_package las LIBLAS)
|
||||
$(cmake_use_find_package lua Lua51)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Lua52=ON
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_OpenCascade=ON
|
||||
$(cmake_use_find_package openexr OpenEXR)
|
||||
$(cmake_use_find_package openinventor Inventor)
|
||||
-DBUILD_OSG_APPLICATIONS=$(usex osgapps)
|
||||
$(cmake_use_find_package pdf Poppler-glib)
|
||||
$(cmake_use_find_package png PNG)
|
||||
$(cmake_use_find_package sdl SDL)
|
||||
$(cmake_use_find_package sdl2 SDL2)
|
||||
$(cmake_use_find_package svg RSVG)
|
||||
$(cmake_use_find_package tiff TIFF)
|
||||
$(cmake_use_find_package truetype Freetype)
|
||||
$(cmake_use_find_package vnc LibVNCServer)
|
||||
-DOSGVIEWER_USE_XRANDR=$(usex xrandr)
|
||||
$(cmake_use_find_package zlib ZLIB)
|
||||
)
|
||||
if use examples; then
|
||||
mycmakeargs+=(
|
||||
$(cmake_use_find_package fltk FLTK)
|
||||
$(cmake_use_find_package fox FOX)
|
||||
$(cmake_use_find_package glut GLUT)
|
||||
$(cmake_use_find_package wxwidgets wxWidgets)
|
||||
)
|
||||
fi
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake_src_compile
|
||||
use doc && cmake_src_compile doc_openscenegraph doc_openthreads
|
||||
}
|
Binary file not shown.
@ -0,0 +1,347 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
WANT_LIBTOOL="none"
|
||||
|
||||
inherit autotools check-reqs flag-o-matic multiprocessing pax-utils \
|
||||
python-utils-r1 toolchain-funcs verify-sig
|
||||
|
||||
MY_PV=${PV/_alpha/a}
|
||||
MY_P="Python-${MY_PV%_p*}"
|
||||
PYVER=$(ver_cut 1-2)
|
||||
PATCHSET="python-gentoo-patches-${MY_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 ~riscv ~s390 ~sparc ~x86"
|
||||
IUSE="bluetooth build examples gdbm hardened ipv6 libressl +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? (
|
||||
!libressl? ( dev-libs/openssl:= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
)
|
||||
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(+)] )"
|
||||
# autoconf-archive needed to eautoreconf
|
||||
BDEPEND="
|
||||
sys-devel/autoconf-archive
|
||||
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
|
||||
|
||||
# large file tests involve a 2.5G file being copied (duplicated)
|
||||
CHECKREQS_DISK_BUILD=5500M
|
||||
|
||||
pkg_pretend() {
|
||||
use test && check-reqs_pkg_pretend
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
use test && check-reqs_pkg_setup
|
||||
}
|
||||
|
||||
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 "s:-j0:-j${jobs}:" Makefile.pre.in || die
|
||||
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
|
||||
|
||||
# https://bugs.gentoo.org/700012
|
||||
if is-flagq -flto || is-flagq '-flto=*'; then
|
||||
append-cflags $(test-flags-CC -ffat-lto-objects)
|
||||
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
|
||||
--without-static-libpython
|
||||
$(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=
|
||||
|
||||
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/lib/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/lib/python${PYVER}
|
||||
|
||||
emake DESTDIR="${D}" altinstall
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
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
|
||||
}
|
Binary file not shown.
@ -1,3 +1,2 @@
|
||||
DIST ell-0.35.tar.xz 506400 BLAKE2B 694df293ce5fd31581cbdd9c2f6f3806a07a23ffb76cf04d6c13f1eebc8af5228ab030f3f1f6d68e1f234c4f1c55a6a1c41e93c41957c19ffc57255e86a78b26 SHA512 a61fc6e8b16627920a24a4bc271549863042ba27489039311009b7e16fe04bb88debcdcd239603cb471b78674a57851ee5ab8ee16229ebdf77850e0945410179
|
||||
DIST ell-0.36.tar.xz 515888 BLAKE2B 094ccd94a73a0c9f4ffbf72f65137e4328c868f2bbf7cb0226502d2efdec7e7618dca0e73547d7a9d4cf9e0d01222f067ed5bfa053dbf38402a625a0044187fe SHA512 2b21220171e3be36e7f2779d78ebd1cb783c52813408d1cdd9ff742e30b426830f26b44784f2c96cbcd5f0cefc9152693795a16e6861087c45ef7539a86b944c
|
||||
DIST ell-0.38.tar.xz 520744 BLAKE2B 24d552ed1bdd55c78aef7d427c40cb391ddedf8f06e77ddd188509a9eca71135b9fe282377bec1a225cb617c7a8bcc4efe6da6eb1dd86596e03ed6ba790b9619 SHA512 e482df8d810b866479c97a096efb8d2badb903bb7fda35ee3bbbaa65652c63f8058188a5ab9f477f835f6a5789a7c5d2eb7db2d9e30493ecd75bd7e71017b6c2
|
||||
|
@ -1,68 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit flag-o-matic linux-info multilib-minimal
|
||||
|
||||
DESCRIPTION="Embedded Linux Library provides core, low-level functionality for system daemons"
|
||||
HOMEPAGE="https://01.org/ell"
|
||||
if [[ "${PV}" == *9999 ]] ; then
|
||||
inherit autotools git-r3
|
||||
EGIT_REPO_URI="https://git.kernel.org/pub/scm/libs/ell/ell.git"
|
||||
else
|
||||
#remove on next bump
|
||||
inherit autotools
|
||||
SRC_URI="https://mirrors.edge.kernel.org/pub/linux/libs/${PN}/${P}.tar.xz"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~sparc x86"
|
||||
fi
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
|
||||
IUSE="glib pie test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
glib? ( dev-libs/glib:2[${MULTILIB_USEDEP}] )
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
test? ( sys-apps/dbus )
|
||||
"
|
||||
|
||||
CONFIG_CHECK="
|
||||
~TIMERFD
|
||||
~EVENTFD
|
||||
~CRYPTO_USER_API
|
||||
~CRYPTO_USER_API_HASH
|
||||
~CRYPTO_MD5
|
||||
~CRYPTO_SHA1
|
||||
~KEY_DH_OPERATIONS
|
||||
"
|
||||
|
||||
#remove on next bump
|
||||
PATCHES=( "${FILESDIR}/ell-0.35-add-rawmemchr-to-missing-h.patch"
|
||||
"${FILESDIR}/ell-0.35-add-missing-include-in-dhcp-server.patch" )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
#remove on next bump
|
||||
eautoreconf
|
||||
[[ "${PV}" == *9999 ]] && eautoreconf
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
append-cflags "-fsigned-char" #662694
|
||||
local myeconfargs=(
|
||||
$(use_enable glib)
|
||||
$(use_enable pie)
|
||||
)
|
||||
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
local DOCS=( ChangeLog README )
|
||||
einstalldocs
|
||||
|
||||
find "${ED}" -name "*.la" -delete || die
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
configure.ac decides whether udiv_w_sdiv.c fallback is needed
|
||||
based on $CHOST value (without $CFLAGS). longlong.h relies
|
||||
on compiler macros (relies on $CFLAGS implicitly).
|
||||
|
||||
That leads to use of undefined macros. The workaround makes
|
||||
udiv_w_sdiv.c a no-on for -mzarch.
|
||||
|
||||
https://bugs.gentoo.org/761310
|
||||
--- a/mpn/generic/udiv_w_sdiv.c
|
||||
+++ b/mpn/generic/udiv_w_sdiv.c
|
||||
@@ -1,3 +1,4 @@
|
||||
+#if !defined(__zarch__)
|
||||
/* mpn_udiv_w_sdiv -- implement udiv_qrnnd on machines with only signed
|
||||
division.
|
||||
|
||||
@@ -139,3 +140,4 @@ mpn_udiv_w_sdiv (mp_limb_t *rp, mp_limb_t a1, mp_limb_t a0, mp_limb_t d)
|
||||
*rp = r;
|
||||
return q;
|
||||
}
|
||||
+#endif
|
@ -0,0 +1,108 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit flag-o-matic eutils libtool multilib-minimal toolchain-funcs
|
||||
|
||||
MY_PV=${PV/_p*}
|
||||
MY_PV=${MY_PV/_/-}
|
||||
MANUAL_PV=$MY_PV
|
||||
MANUAL_PV=6.2.0 # 6.2.1 manual is not ready yet
|
||||
MY_P=${PN}-${MY_PV}
|
||||
PLEVEL=${PV/*p}
|
||||
DESCRIPTION="Library for arbitrary-precision arithmetic on different type of numbers"
|
||||
HOMEPAGE="https://gmplib.org/"
|
||||
SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
|
||||
mirror://gnu/${PN}/${MY_P}.tar.xz
|
||||
doc? ( https://gmplib.org/${PN}-man-${MANUAL_PV}.pdf )"
|
||||
|
||||
LICENSE="|| ( LGPL-3+ GPL-2+ )"
|
||||
# The subslot reflects the C & C++ SONAMEs.
|
||||
SLOT="0/10.4"
|
||||
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"
|
||||
IUSE="+asm doc +cxx pic static-libs"
|
||||
|
||||
BDEPEND="sys-devel/m4
|
||||
app-arch/xz-utils"
|
||||
|
||||
S=${WORKDIR}/${MY_P%a}
|
||||
|
||||
DOCS=( AUTHORS ChangeLog NEWS README doc/configuration doc/isa_abi_headache )
|
||||
HTML_DOCS=( doc )
|
||||
MULTILIB_WRAPPED_HEADERS=( /usr/include/gmp.h )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-6.1.0-noexecstack-detect.patch
|
||||
"${FILESDIR}"/${PN}-6.2.1-no-zarch.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# note: we cannot run autotools here as gcc depends on this package
|
||||
elibtoolize
|
||||
|
||||
# https://bugs.gentoo.org/536894
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
eapply "${FILESDIR}"/${PN}-6.1.2-gcc-apple-4.0.1.patch
|
||||
fi
|
||||
|
||||
# GMP uses the "ABI" env var during configure as does Gentoo (econf).
|
||||
# So, to avoid patching the source constantly, wrap things up.
|
||||
mv configure configure.wrapped || die
|
||||
cat <<-\EOF > configure
|
||||
#!/usr/bin/env sh
|
||||
exec env ABI="${GMPABI}" "$0.wrapped" "$@"
|
||||
EOF
|
||||
# Patches to original configure might have lost the +x bit.
|
||||
chmod a+rx configure{,.wrapped} || die
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
|
||||
# https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
|
||||
if [[ ${CHOST} == hppa2.0-* ]] ; then
|
||||
GMPABI="1.0"
|
||||
fi
|
||||
|
||||
# ABI mappings (needs all architectures supported)
|
||||
case ${ABI} in
|
||||
32|x86) GMPABI=32;;
|
||||
64|amd64|n64) GMPABI=64;;
|
||||
[onx]32) GMPABI=${ABI};;
|
||||
esac
|
||||
export GMPABI
|
||||
|
||||
#367719
|
||||
if [[ ${CHOST} == *-mint* ]]; then
|
||||
filter-flags -O?
|
||||
fi
|
||||
|
||||
# --with-pic forces static libraries to be built as PIC
|
||||
# and without TEXTRELs. musl does not support TEXTRELs: bug #707332
|
||||
tc-export CC
|
||||
ECONF_SOURCE="${S}" econf \
|
||||
CC_FOR_BUILD="$(tc-getBUILD_CC)" \
|
||||
--localstatedir="${EPREFIX}"/var/state/gmp \
|
||||
--enable-shared \
|
||||
$(use_enable asm assembly) \
|
||||
$(use_enable cxx) \
|
||||
$(use pic && echo --with-pic) \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
# should be a standalone lib
|
||||
rm -f "${ED}"/usr/$(get_libdir)/libgmp.la
|
||||
# this requires libgmp
|
||||
local la="${ED}/usr/$(get_libdir)/libgmpxx.la"
|
||||
use static-libs || rm -f "${la}"
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
use doc && cp "${DISTDIR}"/gmp-man-${MANUAL_PV}.pdf "${ED}"/usr/share/doc/${PF}/
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
PYTHON_COMPAT=( python3_{7..9} )
|
||||
|
||||
inherit python-any-r1 toolchain-funcs
|
||||
|
||||
DESCRIPTION="Apache Kafka C/C++ client library"
|
||||
HOMEPAGE="https://github.com/edenhill/librdkafka"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/edenhill/${PN}.git"
|
||||
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://github.com/edenhill/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="BSD-2"
|
||||
|
||||
# subslot = soname version
|
||||
SLOT="0/1"
|
||||
|
||||
IUSE="lz4 sasl ssl static-libs zstd"
|
||||
|
||||
LIB_DEPEND="
|
||||
lz4? ( app-arch/lz4:=[static-libs(+)] )
|
||||
sasl? ( dev-libs/cyrus-sasl:=[static-libs(+)] )
|
||||
ssl? ( dev-libs/openssl:0=[static-libs(+)] )
|
||||
zstd? ( app-arch/zstd:=[static-libs(+)] )
|
||||
sys-libs/zlib:=[static-libs(+)]
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
${PYTHON_DEPS}
|
||||
"
|
||||
|
||||
RDEPEND="!static-libs? ( ${LIB_DEPEND//\[static-libs(+)]} )"
|
||||
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
static-libs? ( ${LIB_DEPEND} )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
if [[ ${PV} != "9999" ]]; then
|
||||
sed -i \
|
||||
-e "s/^\(export RDKAFKA_GITVER=\).*/\1\"${PV}@release\"/" \
|
||||
tests/run-test.sh || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export AR CC CXX LD NM OBJDUMP PKG_CONFIG STRIP
|
||||
|
||||
local myeconf=(
|
||||
--no-cache
|
||||
--no-download
|
||||
--disable-debug-symbols
|
||||
$(use_enable lz4)
|
||||
$(use_enable sasl)
|
||||
$(usex static-libs '--enable-static' '')
|
||||
$(use_enable ssl)
|
||||
$(use_enable zstd)
|
||||
)
|
||||
|
||||
econf ${myeconf[@]}
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -C tests run_local
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -j1 \
|
||||
DESTDIR="${D}" \
|
||||
docdir="/usr/share/doc/${PF}" \
|
||||
install
|
||||
|
||||
if ! use static-libs; then
|
||||
find "${ED}" -type f \( -name "*.a" -o -name "*.la" \) -delete || die
|
||||
fi
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
DIST tree-sitter-0.18.1.tar.gz 524193 BLAKE2B 500ad9dbb40bf7fbc3fb1da9012c7a3236aa05397571040a08494ea48810d491fe15593106b1f4dbcee45ecee3765b088e1e41afd2def3487acf2273cfce5bb2 SHA512 b78af07f29bfd53e394103260bfc8645ddd5d3247429cbb9b00b8a79a8006f2b0c98ab66fa6f59ab1312cc875aeb9f3e17f3c05ca65aead8e5f6e3ba7eb1cca3
|
||||
DIST tree-sitter-0.18.2.tar.gz 2856990 BLAKE2B 31bb67aa1645d06b14b5dfd3b45c978da8850b42352204174fb7966b3185adf1301e9c8150ddb999f074d05ef965d1e26555a750f7f77671e03e6a2821a89cef SHA512 fe385f28ce28d96538d0779d3d69f49c6183732f48ae0e979d41d1298e7c87f259604f9f2eca2a07c424a4840fa29a38051845ead797325f748d251250ffb836
|
||||
DIST tree-sitter-0.18.3.tar.gz 2860203 BLAKE2B 77d0fe53140602759a1039fc0bb600765ee4115e30fa26290f19c296f2b3941d0d42986344f11916266b6c46ac0250f94d1a1b01a6f074da36cee34c1c942165 SHA512 b669a499f826eb51fe51cbf93fd9bee6cd17ec3d628a2b7c4359c6b8d60390ce9d348a9d7470d5faa82c937d8afb720b596ce5e7b553943345cf1f79d74a2d79
|
||||
DIST tree-sitter-0.19.0.tar.gz 2861471 BLAKE2B acb1ff34c2ce4bc3995f59569f1ffa153c76013701eb04b834ac041efe6a533397bf2d540b55c27182194a0dbe285698927f29a2be001add8235ae4357e15e2a SHA512 c5315b1b452303d0a2ef2e710cb282c303649464c0d0ca41380fef2a26f551a6b6166991f6fcf48a5a9c046871d368c062d1354fd0e1f327509c4b554ac8731e
|
||||
|
@ -1 +1,2 @@
|
||||
DIST uthash-2.2.0.tar.gz 191356 BLAKE2B ca07634c30f49fa21af5fed9ed254351d038ca9f831b2c3f3fb545ee451833aaec9e1666572635e2fd31d6b791fb88800e7d870aba2cda0cfbeddcba20d969a9 SHA512 441ee907adc39c9b7e9c1f478966b7e8ddebb94cb6d5db9d2db409aee9a5e237033ee8cef3fed1c719fea01c7cfb5991554ac89f5a1e59241bd5c6eb4854cebe
|
||||
DIST uthash-2.3.0.tar.gz 191291 BLAKE2B 473e263df9f3555c9ef41c2b39cf2ed33a4624ce7325bbe52db805ac741b8383e64f84a9e249f96faf40e0b94fa4a7fc6c0e83bebe8b3677a90cdca82a4e3f51 SHA512 3b01f1074790fb242900411cb16eb82c1a9afcf58e3196a0f4611d9d7ef94690ad38c0a500e7783d3efa20328aa8d6ab14f246be63b3b3d385502ba2b6b2a294
|
||||
|
@ -0,0 +1,32 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="An easy-to-use hash implementation for C programmers"
|
||||
HOMEPAGE="https://troydhanson.github.io/uthash/index.html"
|
||||
SRC_URI="https://github.com/troydhanson/uthash/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="test? ( dev-lang/perl )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.1.0-cflags.patch
|
||||
)
|
||||
|
||||
src_test() {
|
||||
cd tests || die
|
||||
emake CC="$(tc-getCC)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
doheader src/*.h
|
||||
dodoc doc/*.txt
|
||||
}
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST patience_diff-0.14.0.tar.gz 20060 BLAKE2B d47d9a93ef0a7eeada7f050aec0427f8352343609da1332de59d6b3ced41e9942556e1d61e12ab2075bc15cf29afc60191f48da43c1a4358d414352eb6efd044 SHA512 d253488402e515d56ed9d83ef45edfce378d6ad5148d80f8d81341cff28d19115350d72cc057ecd6c14b907888eca8e6bce1b8e71c7a978149979a16a5512fd2
|
||||
DIST patience_diff-0.9.0.tar.gz 16520 BLAKE2B af7f93906c1f4ab70649bc41726aff21f9f099fe49b0d3a3e8bea01d85e9f01cac4bd103179e9877d79dbc997d37318382321dacd67be57a9e031fd95e0263e5 SHA512 62cc0950edd8d46d5a11cd612dbdb8dc531a9a2c71403f30e6022e20d9ee21cb2e7a531362fa8b350075003eec929f1f70481b8e160b253831966d80a8becd83
|
||||
|
@ -0,0 +1,21 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit dune
|
||||
|
||||
DESCRIPTION="Tool and library implementing patience diff"
|
||||
HOMEPAGE="https://github.com/janestreet/patience_diff"
|
||||
SRC_URI="https://github.com/janestreet/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0/$(ver_cut 1-2)"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+ocamlopt"
|
||||
|
||||
RDEPEND="
|
||||
dev-ml/base:=
|
||||
dev-ml/core_kernel:=
|
||||
dev-ml/ppx_jane:=
|
||||
"
|
Binary file not shown.
Binary file not shown.
@ -1,4 +1,3 @@
|
||||
DIST composer-1.10.15.tar.gz 427919 BLAKE2B 38d2e1c795385dd13bedbf5283cf76b04efb54db8dc72eff05370b9505382e2e43f10e1528f148186edb759a098b948d1fee36ac99ab6a5591858723100a27aa SHA512 f8544632e00a08ec75b327e6eac2c96bff60ba78c238863c8ab6b4d82239997f11140a049df0d6c0338bb7523b52fc3ea6f767b9418f75b51535ccfde44fa68c
|
||||
DIST composer-1.10.20.tar.gz 429016 BLAKE2B 29dcf1e32974230075e56c9b11e53316a1bada9a6ccf43f3357fc39577abadde566df962bb9bf92cc9806a012fbd70c18aba5daee87090fd10de273643d92ce7 SHA512 5b85ebc6a0612c01bd2dd6f6a57526581a821c1a45163ef85511bd0e629b10dc464776b56fe33be192b2a3f07ce818dc40cf2305d9f65ee10287b2265e198cca
|
||||
DIST composer-2.0.10.tar.gz 494934 BLAKE2B b87cf3fe23f0dac66e10fb3586bff5693cb9bf65fd8cbc1ece337e89494478f9542c5f2068ae735c74f36c1286526cbcd66662445592a0cb1db16e0a29d56765 SHA512 096949f25324ba871573c77038205166d88d9cabe6d10e5e62ec38158b9f6266e1e277bbb501d62e2b3e7415b696f28c37daa31ec643d77714ffa538a7ea4799
|
||||
DIST composer-2.0.11.tar.gz 494980 BLAKE2B 7095b27ff770c890261a622d2b96febeca226fa307fe14d74df0e723fdf2ade8b04ceb85a25317f4f6b2f5cfc9dce27223738e61a734d6b4c3b4069c03ad551a SHA512 7f2429b4cf0dd237b17d393837e18e12886a9b0641130c8d6e490b37f85b8beee54a2b58003e63b7b157104edf70dff211ca44255ee60bf904b3fb7d57f186d2
|
||||
DIST composer-2.0.9.tar.gz 493134 BLAKE2B f08818ec05aeebd79501e221b9cef10425c7dd60b9aca17ca8dad2f6967258d6b1a8d0d1b383b0c7dd1214ce6416f666bc30785bcb5978c66051ef2e03d17304 SHA512 4953bcc0d2e9ae61ebbb3615c262ac05762fa0165db2114118eb5c2bb014bc4341b07c3b8739575feacaad92d2460b89486b49f4eb49b80ce4a9de36a1152b48
|
||||
|
@ -1,48 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="Dependency Manager for PHP"
|
||||
HOMEPAGE="https://github.com/composer/composer"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
dev-lang/php:*[curl]
|
||||
>=dev-php/ca-bundle-1.1.3
|
||||
>=dev-php/psr-log-1.1.0
|
||||
dev-php/fedora-autoloader
|
||||
>=dev-php/json-schema-5.2.7
|
||||
>=dev-php/jsonlint-1.7.1
|
||||
>=dev-php/phar-utils-1.0.1
|
||||
>=dev-php/semver-1.4.2
|
||||
>=dev-php/spdx-licenses-1.5.0
|
||||
>=dev-php/symfony-console-2.8.48
|
||||
>=dev-php/symfony-filesystem-2.8.48
|
||||
>=dev-php/symfony-finder-2.8.49
|
||||
>=dev-php/symfony-process-2.8.48
|
||||
>=dev-php/xdebug-handler-1.3.1"
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/${PN}"
|
||||
|
||||
# Composer expects the LICENSE file to be there, and the
|
||||
# easiest thing to do is to give it what it wants.
|
||||
doins -r src res LICENSE
|
||||
|
||||
insinto "/usr/share/${PN}/vendor"
|
||||
newins "${FILESDIR}"/autoload-r1.php autoload.php
|
||||
|
||||
exeinto "/usr/share/${PN}/bin"
|
||||
doexe "bin/${PN}"
|
||||
dosym "../share/${PN}/bin/${PN}" "/usr/bin/${PN}"
|
||||
|
||||
dodoc CHANGELOG.md README.md doc/*.md
|
||||
dodoc -r doc/articles doc/faqs
|
||||
}
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST aiohttp-socks-0.5.5.tar.gz 1349283 BLAKE2B 85cd19fdc8c549a1c8ed66a71a9ccb61093fa6febfc2b2e93e26e47be9fc4d319f0ceecc0d6f70739e861fe5f7cd8c78615dfe67ed0669049d38da1f89da33f2 SHA512 94b9d5fc5a5eb04ce16302ca4a1abdaf8ec2b31811a6156aa3667aeb5bd284fc1757a65dc8dc7b77450017a04aa315a908a52a4d38b0657c41bcd64b9b1605b9
|
||||
DIST aiohttp-socks-0.6.0.tar.gz 19789 BLAKE2B 56a9279f78e2a7a391183e6b68f9b33d878dc9b328d3096ca649b136e321ed372a9f9e8f7a02282c32568ac458639bd76b341f87722eeac46741d68064cc035b SHA512 15a5869d24955cba9548d8bd7cf1ec29b27a024603ca1b1d4abf8f93c70702434542c66ced1d8b28ae851034dad1ae8e2eaa4ed9a3729be35ec1e3c853237811
|
||||
|
@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7..9} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="SOCKS proxy connector for aiohttp"
|
||||
HOMEPAGE="https://pypi.org/project/aiohttp-socks/"
|
||||
SRC_URI="https://github.com/romis2012/aiohttp-socks/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/aiohttp-2.3.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-socks-1.2.2[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/flask[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
|
||||
dev-python/yarl[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
distutils_enable_tests pytest
|
@ -1,3 +1,3 @@
|
||||
DIST aniso8601-8.0.0.tar.gz 37007 BLAKE2B bb5f42928308fab7746cbea364c03db4813b1b25883495d0488eb755e14f465300662b07c4ccfd03328a0c0f07ed87056ccc13f2652648c4838b0433740fc3ab SHA512 1e6c43f77993e829833d819f7c2b9b1d31f30ca46e258faac0e0b3be864da07436ae34f05710309302477bb3eede5966c95ef3b124c9b353b306c2272dc4cb9d
|
||||
DIST aniso8601-8.1.1.tar.gz 39143 BLAKE2B d72161923e164032e1b9e4ed317d688d70b2a16bec6c23966f76abbb4d10f24def18df41fcca4e8f45e6145f4f067ec5483f34305a33eee3445d4706df188a99 SHA512 f9c3412c5e7dec04cca56df5806a747779848adb90137293368b4d50c365692b1d1f792a00f57172925229ccdee34ef5b50cc2d06f4c9b4d697c651e5a2e3674
|
||||
DIST aniso8601-9.0.0.tar.gz 46924 BLAKE2B 2dc0d24b536de48b3c1367203d685b00fcde8b257fc407ad38461422d4b278af1f29bd32dd74136c72204530d874d427d967f711aa69c9224c47ea3883a70102 SHA512 e0fc9ab1de36ddc7a78c0fdd139769312302bb2f8d7ce874aba1e714c7da25ed153a883ef92e62ad9f1a0c4d192c43cc939b8e82405f9f60b7d4b400f104e348
|
||||
DIST aniso8601-9.0.1.tar.gz 47345 BLAKE2B d8167bff8fdde88799e165c12aa0ea10a34d2edc91f8eeba93105e669dab52ab73e688467370927ef749395491baa128b55c984feb4f1d972e75242ec1c1efbc SHA512 a17c363a3a67b69a2fde50cc37b080b52615cebc453ef70090498ffce909775b0109c889b63e87381c795c2d8531efd6048542627c88e97297ac22ce81c10c8c
|
||||
|
@ -1,2 +1 @@
|
||||
DIST aws-sam-translator-1.33.0.tar.gz 817801 BLAKE2B 6e50f299b077f6d0240ee4db80450f766589c5349c323cd846c9ef42dc08bfcb7f8f80099c7d1ecf940d3ba1c2e4628842bf4b1f12e8fcc6c83100f5a375125d SHA512 72fadce4851d782e37e786132d98bcc364c92a1fa48addf715f0d2cf28e286e8cb8835de05fccc67c153d45ed8ba9fd3b7445333f8d96cd70b6c854b8b34c5d6
|
||||
DIST aws-sam-translator-1.34.0.tar.gz 831469 BLAKE2B fa6820ef8640b649c9866d3e33ca5bb889bb8041ad15ce93b672ba0d84a3396db03ac55c877f303359f20ef1afdcadb257b84616a4376640279ff47dd9d86b43 SHA512 704bb55c99485e37d8fda853ee8b4f36472c8ccc83951bbc48eaaf2a0049765820c9036ad48a0c03b2d267378e5bf3c3155986ceee2e6efae8bb28bff1e68ec7
|
||||
|
@ -1,46 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_{7..9} )
|
||||
DISTUTILS_USE_SETUPTOOLS=bdepend
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A library that transform SAM templates into AWS CloudFormation templates"
|
||||
HOMEPAGE="https://github.com/aws/serverless-application-model
|
||||
https://pypi.org/project/aws-sam-translator/"
|
||||
SRC_URI="https://github.com/aws/serverless-application-model/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/serverless-application-model-${PV}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ~arm64 x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/boto3-1.5[${PYTHON_USEDEP}]
|
||||
>=dev-python/jsonschema-2.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.11[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/parameterized[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
# remove pytest-cov dependency
|
||||
sed -r -e 's:--cov(-[[:graph:]]+|)[[:space:]]+[[:graph:]]+::g' \
|
||||
-i pytest.ini || die
|
||||
|
||||
# don't install tests
|
||||
sed -e 's:"tests",:"tests", "tests.*",:' -i setup.py || die
|
||||
|
||||
# deps are installed by ebuild, don't try to reinstall them via pip
|
||||
truncate --size=0 requirements/*.txt || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
@ -1,50 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_{7..9} )
|
||||
DISTUTILS_USE_SETUPTOOLS=bdepend
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Amazon Web Services API"
|
||||
HOMEPAGE="https://github.com/boto/boto https://pypi.org/project/boto/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 ppc ~ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
|
||||
|
||||
PATCHES=(
|
||||
# taken from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=909545
|
||||
"${FILESDIR}/boto-try-to-add-SNI-support-v2.patch"
|
||||
"${FILESDIR}"/${P}-py38.patch
|
||||
)
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/httpretty[${PYTHON_USEDEP}]
|
||||
dev-python/keyring[${PYTHON_USEDEP}]
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/rsa[${PYTHON_USEDEP}]
|
||||
dev-python/selenium[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
distutils_enable_tests nose
|
||||
|
||||
src_prepare() {
|
||||
# broken, not worth fixing
|
||||
rm tests/unit/cloudfront/test_signed_urls.py || die
|
||||
# fix tests
|
||||
mkdir -p "${HOME}"/.ssh || die
|
||||
: > "${HOME}"/.ssh/known_hosts || die
|
||||
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
nosetests -v tests/unit ||
|
||||
die "Tests fail with ${EPYTHON}"
|
||||
}
|
@ -1,93 +0,0 @@
|
||||
From f5e7f6c98b46ff622f60a4661ffc9ce07216d109 Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
|
||||
Date: Sat, 29 Sep 2018 21:47:11 +0200
|
||||
Subject: [PATCH] boto: try to add SNI support
|
||||
|
||||
Add SNI support. Newer OpenSSL (with TLS1.3) fail to connect if the
|
||||
hostname is missing.
|
||||
|
||||
Link: https://bugs.debian.org/bug=909545
|
||||
Tested-by: Witold Baryluk <witold.baryluk@gmail.com>
|
||||
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
|
||||
---
|
||||
boto/connection.py | 19 ++++++++++---------
|
||||
boto/https_connection.py | 22 +++++++++++-----------
|
||||
2 files changed, 21 insertions(+), 20 deletions(-)
|
||||
|
||||
diff --git a/boto/connection.py b/boto/connection.py
|
||||
index 34b428f101df7..b4867a7657465 100644
|
||||
--- a/boto/connection.py
|
||||
+++ b/boto/connection.py
|
||||
@@ -824,23 +824,24 @@ DEFAULT_CA_CERTS_FILE = os.path.join(os.path.dirname(os.path.abspath(boto.cacert
|
||||
h = http_client.HTTPConnection(host)
|
||||
|
||||
if self.https_validate_certificates and HAVE_HTTPS_CONNECTION:
|
||||
+ context = ssl.create_default_context()
|
||||
+ context.verify_mode = ssl.CERT_REQUIRED
|
||||
+ context.check_hostname = True
|
||||
+
|
||||
msg = "wrapping ssl socket for proxied connection; "
|
||||
if self.ca_certificates_file:
|
||||
msg += "CA certificate file=%s" % self.ca_certificates_file
|
||||
+ context.load_verify_locations(cafile=self.ca_certificates_file)
|
||||
else:
|
||||
msg += "using system provided SSL certs"
|
||||
+ context.load_default_certs()
|
||||
boto.log.debug(msg)
|
||||
key_file = self.http_connection_kwargs.get('key_file', None)
|
||||
cert_file = self.http_connection_kwargs.get('cert_file', None)
|
||||
- sslSock = ssl.wrap_socket(sock, keyfile=key_file,
|
||||
- certfile=cert_file,
|
||||
- cert_reqs=ssl.CERT_REQUIRED,
|
||||
- ca_certs=self.ca_certificates_file)
|
||||
- cert = sslSock.getpeercert()
|
||||
- hostname = self.host.split(':', 0)[0]
|
||||
- if not https_connection.ValidateCertificateHostname(cert, hostname):
|
||||
- raise https_connection.InvalidCertificateException(
|
||||
- hostname, cert, 'hostname mismatch')
|
||||
+ if key_file:
|
||||
+ context.load_cert_chain(certfile=cert_file, keyfile=key_file)
|
||||
+
|
||||
+ sslSock = context.wrap_socket(sock, server_hostname=host)
|
||||
else:
|
||||
# Fallback for old Python without ssl.wrap_socket
|
||||
if hasattr(http_client, 'ssl'):
|
||||
diff --git a/boto/https_connection.py b/boto/https_connection.py
|
||||
index ddc31a152292e..a5076f6f9b261 100644
|
||||
--- a/boto/https_connection.py
|
||||
+++ b/boto/https_connection.py
|
||||
@@ -119,20 +119,20 @@ from boto.compat import six, http_client
|
||||
sock = socket.create_connection((self.host, self.port), self.timeout)
|
||||
else:
|
||||
sock = socket.create_connection((self.host, self.port))
|
||||
+
|
||||
+ context = ssl.create_default_context()
|
||||
+ context.verify_mode = ssl.CERT_REQUIRED
|
||||
+ context.check_hostname = True
|
||||
+ if self.key_file:
|
||||
+ context.load_cert_chain(certfile=self.cert_file, keyfile=self.key_file)
|
||||
+
|
||||
msg = "wrapping ssl socket; "
|
||||
if self.ca_certs:
|
||||
msg += "CA certificate file=%s" % self.ca_certs
|
||||
+ context.load_verify_locations(cafile=self.ca_certs)
|
||||
else:
|
||||
msg += "using system provided SSL certs"
|
||||
+ context.load_default_certs()
|
||||
boto.log.debug(msg)
|
||||
- self.sock = ssl.wrap_socket(sock, keyfile=self.key_file,
|
||||
- certfile=self.cert_file,
|
||||
- cert_reqs=ssl.CERT_REQUIRED,
|
||||
- ca_certs=self.ca_certs)
|
||||
- cert = self.sock.getpeercert()
|
||||
- hostname = self.host.split(':', 0)[0]
|
||||
- if not ValidateCertificateHostname(cert, hostname):
|
||||
- raise InvalidCertificateException(hostname,
|
||||
- cert,
|
||||
- 'remote hostname "%s" does not match '
|
||||
- 'certificate' % hostname)
|
||||
+
|
||||
+ self.sock = context.wrap_socket(sock, server_hostname=self.host)
|
||||
--
|
||||
2.19.0
|
||||
|
@ -1,56 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_{7..9} )
|
||||
DISTUTILS_USE_SETUPTOOLS=bdepend
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="The AWS SDK for Python"
|
||||
HOMEPAGE="https://github.com/boto/boto3"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/boto/boto3"
|
||||
inherit git-r3
|
||||
BOTOCORE_PV=${PV}
|
||||
else
|
||||
SRC_URI="https://github.com/boto/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="amd64 ~arm ~arm64 x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
# botocore is x.(y+3).z
|
||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 3)).$(ver_cut 3-)"
|
||||
fi
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||
>=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/s3transfer-0.3.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_sphinx docs/source \
|
||||
'dev-python/guzzle_sphinx_theme'
|
||||
distutils_enable_tests nose
|
||||
|
||||
python_prepare_all() {
|
||||
# don't lock versions to narrow ranges
|
||||
sed -e '/botocore/ d' \
|
||||
-e '/jmespath/ d' \
|
||||
-e '/s3transfer/ d' \
|
||||
-i setup.py || die
|
||||
|
||||
# prevent an infinite loop
|
||||
rm tests/functional/docs/test_smoke.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
nosetests -v tests/unit/ tests/functional/ || die "test failed under ${EPYTHON}"
|
||||
}
|
@ -1,56 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_{7..9} )
|
||||
DISTUTILS_USE_SETUPTOOLS=bdepend
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="The AWS SDK for Python"
|
||||
HOMEPAGE="https://github.com/boto/boto3"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/boto/boto3"
|
||||
inherit git-r3
|
||||
BOTOCORE_PV=${PV}
|
||||
else
|
||||
SRC_URI="https://github.com/boto/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
# botocore is x.(y+3).z
|
||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 3)).$(ver_cut 3-)"
|
||||
fi
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||
>=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/s3transfer-0.3.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_sphinx docs/source \
|
||||
'dev-python/guzzle_sphinx_theme'
|
||||
distutils_enable_tests nose
|
||||
|
||||
python_prepare_all() {
|
||||
# don't lock versions to narrow ranges
|
||||
sed -e '/botocore/ d' \
|
||||
-e '/jmespath/ d' \
|
||||
-e '/s3transfer/ d' \
|
||||
-i setup.py || die
|
||||
|
||||
# prevent an infinite loop
|
||||
rm tests/functional/docs/test_smoke.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
nosetests -v tests/unit/ tests/functional/ || die "test failed under ${EPYTHON}"
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue