parent
b8e172f245
commit
c7d5fed1ca
Binary file not shown.
Binary file not shown.
@ -0,0 +1,71 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit bash-completion-r1 distutils-r1 multiprocessing
|
||||
|
||||
MY_P=aws-cli-${PV}
|
||||
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||
HOMEPAGE="
|
||||
https://github.com/aws/aws-cli/
|
||||
https://pypi.org/project/awscli/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/aws/aws-cli/archive/${PV}.tar.gz
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
|
||||
# botocore is x.(y+2).z
|
||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
|
||||
RDEPEND="
|
||||
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||
dev-python/colorama[${PYTHON_USEDEP}]
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/rsa[${PYTHON_USEDEP}]
|
||||
>=dev-python/s3transfer-0.4.0[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/pytest-forked[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
# do not rely on bundled deps in botocore (sic!)
|
||||
find -name '*.py' -exec sed -i \
|
||||
-e 's:from botocore[.]vendored import:import:' \
|
||||
-e 's:from botocore[.]vendored[.]:from :' \
|
||||
{} + || die
|
||||
# strip overzealous upper bounds on requirements
|
||||
sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# integration tests require AWS credentials and Internet access
|
||||
epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp bin/aws_bash_completer aws
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins bin/aws_zsh_completer.sh _aws
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST gnome-abrt-1.4.0.tar.gz 112129 BLAKE2B f3f45c1793c59f4453ef17fd7e24877143cc5d87bdf8cfd6d778d9178005ff6083ce1564f06bb98d9027628bcdd4feb9d98edcbdcc76432c813065d518d0f91a SHA512 eb66040f23a8cba4e015f4f72dee56d782aa3d8bdd90644dce2e7fa1776edc4dc14d69c3722503825db5ff75fa80bde09bbc5bcd9eb6f20209e7e579d8c33a21
|
||||
DIST gnome-abrt-1.4.1.tar.gz 115107 BLAKE2B 6706e65f099056118b40e821325aa7861ef256bdf17d824a5222eeaa3355761bfc8f188e7b0a35305f47b66000c0992daa164d955bdf9d3f6005a1eb85b2a3c2 SHA512 c14397f94d39ce1a94247215679a36c0d1db5fee6a162956d5d87a4585207dbc1cafc60bd9b6b5e3cd5f8437a398ab4a983002d6d2a241a01d7d4da6b93060ae
|
||||
DIST gnome-abrt-1.4.2.tar.gz 115442 BLAKE2B b98a67619a9ca69708eef099614d936c015bfbe2b9cc2e9090f5a60dcd34a7d4eaa37aa7769ce04e52b400f0c8bebac3a933c1c323b11e8b84e347557ff0cc36 SHA512 41639ef3ee7ba090cd62da45d029c9f59613d6b844d59768385f0fc5a074185f6f350a4100aa35aad9a4c528524d2905f130904f6b4c31a4df22d621e0395253
|
||||
|
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
PYTHON_COMPAT=( python3_{7..10} )
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit meson python-r1
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,2 +1,2 @@
|
||||
DIST nxml-gentoo-schemas-20220125.tar.xz 8644 BLAKE2B 6f2bb618bb94f9a61ba22526161d8b0457d6177b2a6dc339199fe633652ce1138125d50bc1b681117e8dfedb227ec54e30a51d4724fb5148ab31e1224b16fc9e SHA512 95719c92d9c6c9c883c022baf0593f927b0f24f7e35832ab0dd951fb31fd601888715671a6b8a887464649632bce3c8cb8281aa5d5a066fc115d38ffed8f8adb
|
||||
DIST nxml-gentoo-schemas-20220524.tar.xz 8916 BLAKE2B 132c2b81bbb11f94974f5e25a9ede1c047b0a29ae97d70dfe6a83b3def36cb1155e28a111aba261155c2bf3dc7825d5b7c9fe0cc56296ba4d33e9ab2c070eeb3 SHA512 79262e491e58370a471ab09a31755de720de681a8d3c7fe96a3950d128e2877c70732b08dded05b0926b96d59d91e0abbaa55f9ea807dc5252e61674ed3fe4f8
|
||||
DIST nxml-gentoo-schemas-20220525.tar.xz 8836 BLAKE2B 5506f976b43218d5bb85ae96c31137c51691cef5f3a524d4214584cc0cb1dae26f45b97d636c8361ec06e7bff5cbf2337b8ed82795aba72dd079127db2238ece SHA512 7df23a9d73a09fc26c6e38665d28c3b633d371bf9c84d56b9318045d80ccab23c3b9c115d68efd6733b9048918118612a05405a1a590b41eac4fb7405746b34e
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST xa-2.3.10.tar.gz 152433 BLAKE2B af9ab28e6596f6c96abd075779670955e7bfe79b3e9e18c5c75f35ffb166c705a0ebb60dcca1928c49a836eefcd7b15d12437579fbe645c0b5ce51e81da92d8d SHA512 08b9994e295495744d5252fa983b111f41d0447cdb32d0c065f8fbd942ffa0899476d6cfebe1162e4aa08b1d0a2d8df74c2a60987d2509b8bca45da670f4a67f
|
||||
DIST xa-2.3.13.tar.gz 155606 BLAKE2B 8196f8f88bee29dbab9ad026c0d4e3519159c4ed7579dc7db391c0bdd7b1bfe31e2884644258d863e299ac3b5fcc43718b3d95b9b7d7802541a9d58366728ffe SHA512 b8a4c1856e51bbe212b98be06895987d6fb926a229511a67ea90a934da1fcc84daf29bd289c3c4c2254d2bce345333bb92747947f3286376761613b2e181e99b
|
||||
|
@ -1,32 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="High-speed, two-pass portable 6502 cross-assembler"
|
||||
HOMEPAGE="https://www.floodgap.com/retrotech/xa/"
|
||||
SRC_URI="https://www.floodgap.com/retrotech/${PN}/dists/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.3.10-Makefile.patch
|
||||
"${FILESDIR}"/${PN}-2.3.10-fix-gcc10-fno-common.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
tc-export CC
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${ED}"/usr install
|
||||
einstalldocs
|
||||
}
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST nspr-4.33.tar.gz 1078948 BLAKE2B b46e1c02ab7e5c442288a2cba2868166adb9461950d35fcd76074e3340734057f2b1bbeb3c700f38edf3710323ffd34576dd644814c379033de2a380c54d4fe3 SHA512 8064f826c977f1302a341ca7a7aaf7977b5d10102062c030b1d42b856638e3408ab262447e8c7cfd5a98879b9b1043d17ceae66fbb1e5ed86d6bc3531f26667e
|
||||
DIST nspr-4.34.tar.gz 1096407 BLAKE2B 61199c1319578570f9569011a2fea8ec6b8c4e8337b03517d1b0e1a22749a7449feb2152c348f3a1d73fefa7aa5067be460f4cbc1728c479309f4a2592424fdf SHA512 4cfac886c14cf7df4c4b79fa1c3bc92e1b14260c9c3018fa2562060d62fecb4e66c0b4e8f7edf4f4823def784a919d99dde88a89674f0cd8a644310b0569ead4
|
||||
|
@ -0,0 +1,124 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools toolchain-funcs multilib-minimal
|
||||
|
||||
MIN_PV="$(ver_cut 2)"
|
||||
|
||||
DESCRIPTION="Netscape Portable Runtime"
|
||||
HOMEPAGE="https://www.mozilla.org/projects/nspr/"
|
||||
SRC_URI="https://archive.mozilla.org/pub/nspr/releases/v${PV}/src/${P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris ~x86-solaris"
|
||||
IUSE="debug"
|
||||
|
||||
MULTILIB_CHOST_TOOLS=(
|
||||
/usr/bin/nspr-config
|
||||
)
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-4.23-prtime.patch
|
||||
"${FILESDIR}"/${PN}-4.7.1-solaris.patch
|
||||
"${FILESDIR}"/${PN}-4.10.6-solaris.patch
|
||||
"${FILESDIR}"/${PN}-4.8.4-darwin-install_name.patch
|
||||
"${FILESDIR}"/${PN}-4.8.9-link-flags.patch
|
||||
# We do not need to pass -L$libdir via nspr-config --libs
|
||||
"${FILESDIR}"/${PN}-4.9.5_nspr_config.patch
|
||||
"${FILESDIR}"/${PN}-4.33-loong.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
cd "${S}"/nspr || die
|
||||
|
||||
default
|
||||
|
||||
use elibc_musl && eapply "${FILESDIR}"/${PN}-4.21-ipv6-musl-support.patch
|
||||
|
||||
# rename configure.in to configure.ac for new autotools compatibility
|
||||
if [[ -e "${S}"/nspr/configure.in ]] ; then
|
||||
einfo "Renaming configure.in to configure.ac"
|
||||
mv "${S}"/nspr/configure.{in,ac} || die
|
||||
else
|
||||
elog "configure.in rename logic can be removed from ebuild."
|
||||
fi
|
||||
|
||||
# We must run eautoconf to regenerate configure
|
||||
eautoconf
|
||||
|
||||
# make sure it won't find Perl out of Prefix
|
||||
sed -i -e "s/perl5//g" "${S}"/nspr/configure || die
|
||||
|
||||
# Respect LDFLAGS
|
||||
sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \
|
||||
"${S}"/nspr/config/rules.mk || die
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# We use the standard BUILD_xxx but nspr uses HOST_xxx
|
||||
tc-export_build_env BUILD_CC
|
||||
export HOST_CC=${BUILD_CC} HOST_CFLAGS=${BUILD_CFLAGS} HOST_LDFLAGS=${BUILD_LDFLAGS}
|
||||
tc-export AR AS CC CXX RANLIB
|
||||
[[ ${CBUILD} != ${CHOST} ]] \
|
||||
&& export CROSS_COMPILE=1 \
|
||||
|| unset CROSS_COMPILE
|
||||
|
||||
local myconf=(
|
||||
--libdir="${EPREFIX}/usr/$(get_libdir)"
|
||||
$(use_enable debug)
|
||||
$(use_enable !debug optimize)
|
||||
)
|
||||
|
||||
# The configure has some fancy --enable-{{n,x}32,64bit} switches
|
||||
# that trigger some code conditional to platform & arch. This really
|
||||
# matters for the few common arches (x86, ppc) but we pass a little
|
||||
# more of them to be future-proof.
|
||||
|
||||
# use ABI first, this will work for most cases
|
||||
case "${ABI}" in
|
||||
alpha|arm|hppa|m68k|o32|ppc|s390|sh|sparc|x86) ;;
|
||||
n32) myconf+=( --enable-n32 );;
|
||||
x32) myconf+=( --enable-x32 );;
|
||||
s390x|*64) myconf+=( --enable-64bit );;
|
||||
default) # no abi actually set, fall back to old check
|
||||
einfo "Running a short build test to determine 64bit'ness"
|
||||
echo > "${T}"/test.c || die
|
||||
${CC} ${CFLAGS} ${CPPFLAGS} -c "${T}"/test.c -o "${T}"/test.o || die
|
||||
case $(file "${T}"/test.o) in
|
||||
*32-bit*x86-64*) myconf+=( --enable-x32 );;
|
||||
*64-bit*|*ppc64*|*x86_64*) myconf+=( --enable-64bit );;
|
||||
*32-bit*|*ppc*|*i386*) ;;
|
||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
||||
esac ;;
|
||||
*) ;;
|
||||
esac
|
||||
|
||||
# Ancient autoconf needs help finding the right tools.
|
||||
LC_ALL="C" ECONF_SOURCE="${S}/nspr" \
|
||||
ac_cv_path_AR="${AR}" \
|
||||
ac_cv_path_AS="${AS}" \
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
# Their build system is royally confusing, as usual
|
||||
MINOR_VERSION=${MIN_PV} # Used for .so version
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
einfo "removing static libraries as upstream has requested!"
|
||||
rm "${ED}"/usr/$(get_libdir)/*.a || die "failed to remove static libraries."
|
||||
|
||||
# install nspr-config
|
||||
dobin config/nspr-config
|
||||
|
||||
# Remove stupid files in /usr/bin
|
||||
rm "${ED}"/usr/bin/prerr.properties || die
|
||||
|
||||
# This is used only to generate prerr.c and prerr.h at build time.
|
||||
# No other projects use it, and we don't want to depend on perl.
|
||||
# Talked to upstream and they agreed w/punting.
|
||||
rm "${ED}"/usr/bin/compile-et.pl || die
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A Python package that generates fake data for you"
|
||||
HOMEPAGE="
|
||||
https://github.com/joke2k/faker/
|
||||
https://pypi.org/project/Faker/
|
||||
"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/python-dateutil-2.4.2[${PYTHON_USEDEP}]
|
||||
!dev-ruby/faker
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/freezegun[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP},tiff]
|
||||
dev-python/random2[${PYTHON_USEDEP}]
|
||||
dev-python/validators[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
@ -1 +1,2 @@
|
||||
DIST Faker-13.11.1.tar.gz 1501239 BLAKE2B 1ccf33e7a054d33921696ea917670fc0ff88c0b805700b32d9d4e5ed3b12d6e52ea164f762600315370eed06415e70923002b99f0c32fa9cd40cdeb437e338c0 SHA512 291517669143119099ac6bcc69a08091fb156728c465198079f764996849d8416ccaf169e1cf0d0dd02d99b2090494084dad7fdef9dfd2702411701bf71f54b5
|
||||
DIST Faker-13.12.0.tar.gz 1528234 BLAKE2B ca85e172d75f009802486fd5299581c0bd08f273f049df12b44159fb0c79d6b267579172da3c25f5aebaa0b897ea1e1067fe8e6a2527b0ccbf1e60de0257289c SHA512 9883e1a82b8d00ad83a31c71929ebb8f13e31bb34ada29772ab0bd8e9ac5e59ea44cf1a876e8c58a519814207fbc5ed950fdce7f7c259e5ca897e23662cd6511
|
||||
|
@ -0,0 +1,29 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Reading and writing of data on regular grids in Python"
|
||||
HOMEPAGE="
|
||||
https://pypi.org/project/GridDataFormats/
|
||||
https://github.com/MDAnalysis/GridDataFormats/
|
||||
"
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="LGPL-3"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/mrcfile[${PYTHON_USEDEP}]
|
||||
>=dev-python/numpy-1.0.3[${PYTHON_USEDEP}]
|
||||
dev-python/scipy[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
@ -1,3 +1,4 @@
|
||||
DIST GridDataFormats-0.6.0.tar.gz 1984859 BLAKE2B b53e6a43a06fdcb42fbef4c10dbdb1b5740fc04fff468b666c687ba5a839b8129b49358d54c6d7e4229ebaa67af01d897fe960f87a868950657bbcbb85ec7487 SHA512 b876eacd7b1d3a7dd6fe35e2092783183fb0ffadf7fbf583773e6a3401bef51bd33ebb2e73f8b4ec9cd404c153c30ce09dfb75d5e4aacba53915d085f090d0ea
|
||||
DIST GridDataFormats-0.7.0.tar.gz 2159247 BLAKE2B 7969f80960b5a29c44a645725a53dc6eb7c99d02e4fe1369700aaff85e4b98f3c7636768340c95b4ac44f6971558ab2efc5dc4e4968fb410e90e2228635e19ee SHA512 333c7f77c9c65f6be788c58efb0822eb05580893e96522c0bef04d84d3c5deae5498c1721353ece2ecd4ed8785acb6413b43123c0d895a855f0ee59e44b1d310
|
||||
DIST GridDataFormats-1.0.0.tar.gz 2155373 BLAKE2B 9570d2f61d5ee2fdd1aa1578e30bbbcc60bd98c60db7fa4e7030055b551170c6eac8eefabb2aecddc3938cccef1ee76c9d01a0ac99f8c56be8384ca9164615fb SHA512 03e250872f3e00b9208c16f179d18f899ed67c7656edaf79cfbba410ed8d1fb2ede2c878a57d3a818168efd9af6135b1a91e1c30d5cb256e88f7af1f4ca59686
|
||||
DIST GridDataFormats-1.0.1.tar.gz 2155370 BLAKE2B 8bf5ce65cefdcf490b75212bca8831957769118fbad7fdce42b5634ed67a1f5d4ac454f7429b984bafd89f5bc883fff1bca9dc71f529794cdd585e186e41e063 SHA512 2cfb8c50b4d17fa978924a0e65ae27f6e125bd1055bfdc9096ea35511f4c2a8a16f6bd9c652b9130fbdd66d4d464d8074b14f47c175f98df94c02fe973a0107b
|
||||
|
Binary file not shown.
@ -0,0 +1,65 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
|
||||
inherit distutils-r1 multiprocessing
|
||||
|
||||
DESCRIPTION="The AWS SDK for Python"
|
||||
HOMEPAGE="
|
||||
https://github.com/boto/boto3/
|
||||
https://pypi.org/project/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 ~ppc ~ppc64 ~riscv ~sparc ~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}]
|
||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_sphinx docs/source \
|
||||
'dev-python/guzzle_sphinx_theme'
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
# don't lock versions to narrow ranges
|
||||
sed -e '/botocore/ d' \
|
||||
-e '/jmespath/ d' \
|
||||
-e '/s3transfer/ d' \
|
||||
-i setup.py || die
|
||||
|
||||
# do not rely on bundled deps in botocore (sic!)
|
||||
find -name '*.py' -exec sed -i \
|
||||
-e 's:from botocore[.]vendored import:import:' \
|
||||
-e 's:from botocore[.]vendored[.]:from :' \
|
||||
{} + || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
epytest tests/{functional,unit} -n "$(makeopts_jobs)"
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
|
||||
inherit distutils-r1 multiprocessing
|
||||
|
||||
DESCRIPTION="Low-level, data-driven core of boto 3"
|
||||
HOMEPAGE="
|
||||
https://github.com/boto/botocore/
|
||||
https://pypi.org/project/botocore/
|
||||
"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/boto/botocore"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
fi
|
||||
|
||||
RDEPEND="
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
<dev-python/jmespath-2[${PYTHON_USEDEP}]
|
||||
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||
>=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/jsonschema[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/botocore-1.26.0-py311.patch"
|
||||
)
|
||||
|
||||
distutils_enable_sphinx docs/source \
|
||||
'dev-python/guzzle_sphinx_theme'
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
# unpin deps
|
||||
sed -i -e "s:>=.*':':" setup.py || die
|
||||
|
||||
# unbundle deps
|
||||
rm -r botocore/vendored || die
|
||||
find -name '*.py' -exec sed -i \
|
||||
-e 's:from botocore[.]vendored import:import:' \
|
||||
-e 's:from botocore[.]vendored[.]:from :' \
|
||||
{} + || die
|
||||
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# rely on bundled six
|
||||
tests/functional/test_six_imports.py::test_no_bare_six_imports
|
||||
tests/functional/test_six_threading.py::test_six_thread_safety
|
||||
)
|
||||
|
||||
epytest tests/{functional,unit} -n "$(makeopts_jobs)"
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST fakeredis-1.7.1.gh.tar.gz 71151 BLAKE2B 87877c94a4c03ad6ff4b55f307526f712daa860257374a97a8f7bd29440d171467e18e4041ca56bb6af30df30481a3d5b13c7d0657ba3eb7673a653664ffbe8a SHA512 f41d9393ae50bae9de064678948f4364fc47db06f489782e5b428f449828ad5813b08b2fb053bef878b2a1b500edbb0ea1881449dbd12c2b6e385f6a2fba4c59
|
||||
DIST fakeredis-py-1.7.4.gh.tar.gz 73024 BLAKE2B d3d18611d846a0dabb52d74ca53cad997b37e794ef320bc800ab5339f70710bc30f9e33c0820db941064fbf9dca0dde3e72c78298895b8c2510a93353898b355 SHA512 71c9ffe7c208453bc8f5e719b3647a9b9fc5406c5fe3856ef1dc42c019bd7128355d260be468b62dcb764a918a3510f193fb1aaf374bb3866e352c9c2bae90c6
|
||||
DIST fakeredis-py-1.7.5.gh.tar.gz 72932 BLAKE2B 3965df2d238e70f362e5e43a52fe763b2fec34ecc87d4bf38cb8fdf5e8f58b6bad87b59353a932d5e7e12ac243f3c884a19079752c48b6230795c53f7512d345 SHA512 bcefaa8e425cb47d7881c2f91d35e5ec5b46a94f3189b1ffbd71a92cd202a5fcc3d82df8250cf683475bacbbbec088f1e49545f71f2c98638adca58063cc0fa2
|
||||
DIST fakeredis-py-1.7.6.1.gh.tar.gz 100750 BLAKE2B aeaf9e38b173d169a8108c6559b3900ac3232690513a735f2592790bfd3866cefa5dff663672fb2fbeae96fd40c203d5a6d86c4ccc0336f54f5f68f7d0f3d38a SHA512 6a92ae7fa60ce7a6913e40b5c6b9bcbbb286f44f8602ff4bcbfb0739d8fd18d772291124a56d9dbff1fd0f69f0605a5a5f524161f8661b1529d9fe4f5f2481fd
|
||||
|
@ -0,0 +1,93 @@
|
||||
# Copyright 2020-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=poetry
|
||||
PYTHON_COMPAT=( pypy3 python3_{9..10} )
|
||||
|
||||
inherit distutils-r1 optfeature
|
||||
|
||||
MY_P=fakeredis-py-${PV}
|
||||
DESCRIPTION="Fake implementation of redis API for testing purposes"
|
||||
HOMEPAGE="
|
||||
https://github.com/dsoftwareinc/fakeredis-py/
|
||||
https://pypi.org/project/fakeredis/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/dsoftwareinc/fakeredis-py/archive/v${PV}.tar.gz
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/redis-py[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.16.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/sortedcontainers-2.4.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-db/redis
|
||||
dev-python/aioredis[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-mock[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
# unpin redis
|
||||
sed -i -e '/redis/s:<=[0-9.]*:*:' pyproject.toml || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# also lupa
|
||||
test/test_aioredis2.py::test_failed_script_error
|
||||
# TODO
|
||||
"test/test_fakeredis.py::test_set_get_nx[StrictRedis]"
|
||||
"test/test_fakeredis.py::test_lpop_count[StrictRedis]"
|
||||
"test/test_fakeredis.py::test_rpop_count[StrictRedis]"
|
||||
"test/test_fakeredis.py::test_zadd_minus_zero[StrictRedis]"
|
||||
)
|
||||
local EPYTEST_IGNORE=(
|
||||
# these tests fail a lot...
|
||||
test/test_hypothesis.py
|
||||
)
|
||||
local args=(
|
||||
# tests requiring lupa (lua support)
|
||||
-k 'not test_eval and not test_lua and not test_script'
|
||||
)
|
||||
epytest "${args[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local redis_pid="${T}"/redis.pid
|
||||
local redis_port=6379
|
||||
local redis_test_config="
|
||||
daemonize yes
|
||||
pidfile ${redis_pid}
|
||||
port ${redis_port}
|
||||
bind 127.0.0.1
|
||||
"
|
||||
|
||||
einfo "Spawning Redis"
|
||||
einfo "NOTE: Port ${redis_port} must be free"
|
||||
"${EPREFIX}"/usr/sbin/redis-server - <<< "${redis_test_config}" || die
|
||||
|
||||
# Run the tests
|
||||
distutils-r1_src_test
|
||||
|
||||
# Clean up afterwards
|
||||
kill "$(<"${redis_pid}")" || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "Mock aioredis" dev-python/aioredis
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST google-api-python-client-2.47.0.gh.tar.gz 30118538 BLAKE2B 601a02ffdb76b9213c0259042ad5693b46bd72b6178a37d9d6a8fcc263e9a8c02f19c1ce9923c72f41270e960c675e4c71cefb4fbb4e54125bf000186a857ae2 SHA512 1da6660f085edf2562525b904def124398088afb0e9dbda82f0894cf5fc26c052dcd7a497f60ef18d281a16b46c5cfc6b145fca8fd4eb7d3f9225b9ff3ea2ac9
|
||||
DIST google-api-python-client-2.48.0.gh.tar.gz 30483162 BLAKE2B fa6371d2cb5b27184eb0e16ea0ef9875af2dfd83b2d34dd84272c2942589f712b35451b9150f38722501edfe5a4b8a506b3f52fedffbb48af31c20dc36a59cfb SHA512 0789aca32b01304095702d908c8ff31d2b4ddd771ed8cf3b3f99f15091fd1eea782000c58646c7760811a40252e5f1982876278f4cdd23e3f8cf672682693605
|
||||
DIST google-api-python-client-2.49.0.gh.tar.gz 30499625 BLAKE2B 7c0591b5567c1e9e5840430d490041d0ffea4beca8ec1e56eda0c5c8c6f4ff1e5f9126c4158e370e6c4011a6499e1d41203f83c9e4747dd830606406cef65e23 SHA512 ae53cc4cf18949f75aef9ca39fc2a964242fd556c1c19bb3aa8cd48b94a23deef9788b1c1877923a5ae4af990dff0f6138fb2157d2577fda80f8a86f1f642709
|
||||
|
@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Google API Client for Python"
|
||||
HOMEPAGE="
|
||||
https://github.com/googleapis/google-api-python-client/
|
||||
https://pypi.org/project/google-api-python-client/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/googleapis/google-api-python-client/archive/v${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/httplib2-0.15[${PYTHON_USEDEP}]
|
||||
<dev-python/httplib2-1[${PYTHON_USEDEP}]
|
||||
>=dev-python/google-api-core-2.3.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/google-auth-1.35.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/google-auth-httplib2-0.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/uritemplate-3.0.0[${PYTHON_USEDEP}]
|
||||
<dev-python/uritemplate-5[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/oauth2client[${PYTHON_USEDEP}]
|
||||
dev-python/pandas[${PYTHON_USEDEP}]
|
||||
dev-python/parameterized[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# require Internet access (and credentials)
|
||||
tests/test_discovery.py::DiscoveryErrors::test_credentials_and_credentials_file_mutually_exclusive
|
||||
tests/test_discovery.py::DiscoveryFromDocument::test_api_endpoint_override_from_client_options_mapping_object
|
||||
)
|
||||
|
||||
epytest tests
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST hypothesis-python-6.46.2.tar.gz 9305176 BLAKE2B 7d0abe4fc055eeb4660efbba9900b43209cc5ef1fd7b2362545e0d4145837cb7779cdf96c96cdd3770c1605ec8104818ece5cd012a90b164ab8ab63709d1c911 SHA512 207b4202aa36a28891c8051009ee6b8b6a8f0823840db7e4fc6840ebe6455060340f16f7e2e25bc5ad2adca1ff7fd8b58668ec2ca355b4579ec03aac616e786d
|
||||
DIST hypothesis-python-6.46.3.tar.gz 9306685 BLAKE2B a26c08361a7a58d8de8d8458a73c5c3c57f04dd2008ab31e604f0addc18fb7a52a7f4a98318498b398cd1ac5d2d718fd722c4d17e0b6ef326e0457355fda7482 SHA512 d55c3c4a57d18aa7f6d876123b09bcab32d508f5aa40048f2db7f0cab3948ebb6fab5f12d291ae4740cdd1c61c2d612c1ce804028bb59914efc132404224d1ee
|
||||
DIST hypothesis-python-6.46.7.tar.gz 9308855 BLAKE2B a26cd556bb56ff5a09987e7e4a9a46e966f26106376a4b5e481a933495f21c4a69dff0d68aa8d2006fc42794392eca35b4b68cb88e0d4695ecfe3bfe2098e9b6 SHA512 239343424df13db419bfc9057f9024ab8360cace07a0cf7d592744afa76fff54d5c30a0b7fecb41c642d034b2327feef7bec78840df25793727ce30be1aa7ef9
|
||||
DIST hypothesis-python-6.46.9.tar.gz 9311955 BLAKE2B f8cf7e216650401ea8a9b427311d10bc65a21b79eb231864c4ff429baea4600f8d84b05e4b94120551ebe17f1b4b99a65e76157efe9d0a133ad68c22b1c46452 SHA512 e4fed5210ba11977958d4d14f9fb32427b812ea7903f391bbf977ade7ae268770e846b0cd2193585f519a02681e4fabfead23eea5bcededaccc0e7a9857e98cf
|
||||
|
@ -0,0 +1,65 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
CLI_COMPAT=( python3_{8..10} )
|
||||
PYTHON_COMPAT=( "${CLI_COMPAT[@]}" python3_11 pypy3 )
|
||||
PYTHON_REQ_USE="threads(+),sqlite"
|
||||
|
||||
inherit distutils-r1 multiprocessing optfeature
|
||||
|
||||
DESCRIPTION="A library for property based testing"
|
||||
HOMEPAGE="https://github.com/HypothesisWorks/hypothesis https://pypi.org/project/hypothesis/"
|
||||
SRC_URI="https://github.com/HypothesisWorks/${PN}/archive/${PN}-python-${PV}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python"
|
||||
|
||||
LICENSE="MPL-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
|
||||
IUSE="cli"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}]
|
||||
cli? (
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/black[${PYTHON_USEDEP}]
|
||||
dev-python/click[${PYTHON_USEDEP}]
|
||||
' "${CLI_COMPAT[@]}")
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/pexpect[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
# subtests are broken by warnings from random plugins
|
||||
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||
local -x PYTEST_PLUGINS=xdist.plugin,pytest_forked,_hypothesis_pytestplugin
|
||||
|
||||
epytest tests/cover tests/pytest tests/quality -n "$(makeopts_jobs)"
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
if ! use cli || ! has "${EPYTHON}" "${CLI_COMPAT[@]/_/.}"; then
|
||||
rm -r "${ED}/usr/bin" "${D}$(python_get_scriptdir)" || die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "datetime support" dev-python/pytz
|
||||
optfeature "dateutil support" dev-python/python-dateutil
|
||||
optfeature "numpy support" dev-python/numpy
|
||||
optfeature "django support" dev-python/django dev-python/pytz
|
||||
optfeature "pandas support" dev-python/pandas
|
||||
optfeature "pytest support" dev-python/pytest
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Tools to provide lightweight pipelining in Python"
|
||||
HOMEPAGE="https://joblib.readthedocs.io/en/latest/
|
||||
https://github.com/joblib/joblib"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/cloudpickle[${PYTHON_USEDEP}]
|
||||
dev-python/loky[${PYTHON_USEDEP}]
|
||||
"
|
||||
# joblib is imported by setup.py so we need ${RDEPEND}
|
||||
BDEPEND="
|
||||
${RDEPEND}
|
||||
test? (
|
||||
dev-python/threadpoolctl[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
# unbundle
|
||||
rm -r joblib/externals || die
|
||||
sed -e "s:'joblib.externals[^']*',\?::g" -i setup.py || die
|
||||
find -name '*.py' -exec \
|
||||
sed -e 's:\(joblib\)\?\.externals\.::' \
|
||||
-e 's:from \.externals ::' \
|
||||
-i {} + || die
|
||||
|
||||
# https://github.com/joblib/joblib/issues/1115
|
||||
sed -e 's:test_parallel_call_cached_function_defined_in_jupyter:_&:' \
|
||||
-i joblib/test/test_memory.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST mypy-0.942.tar.gz 2701940 BLAKE2B 5501466e57b4afb8825e6c804cbdc270c79ff457c39f2e5834f4b68df70263c05b2b9abb08fe58202ee65f5e22d2291f39fcb1fc47168416134538c5f6e12ab3 SHA512 79b83587eefad10d7d20d3bfd8484a9e8b2d363e68c1e5ffaa3a82ca8b8f8d9183036ea46695a634f9156911d6f918af684ac636105b37b3a5d0e958f5d661f4
|
||||
DIST mypy-0.950.tar.gz 2746164 BLAKE2B 8466012fd3622f5e730acef774115ac84ff8c6f5488213a450de63d5acc790f937b7c69a1b05b46deef6fe8f81a13ed8e85f83c6c22cce9abdbb73b2ecf4179c SHA512 949d1dade3f225bbef0934fff040f7d5aec47039f554a669ca491d6cb46d56de3fcae0186864cdcaf5dec1347bc3af453218520536a0afa77e89a5c0e4640500
|
||||
DIST mypy-0.960.tar.gz 2767017 BLAKE2B 54ca4b9ffeef1f9211569ae8daee3ae201bfc6239eb9530dd5b7bb53983b0f9d343951dc49e4c4cd257660491be3805d7b8a3b5621dd25f1b7726f522a1c74df SHA512 1caa5ea5d87631a00acabd712053193aac4ed2f475760da90e395d64c44092797e45a4793a5fa2dc05458e9d2411b5cde14811c8a5112376c00baf9792df923f
|
||||
|
@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1 multiprocessing
|
||||
|
||||
DESCRIPTION="Optional static typing for Python"
|
||||
HOMEPAGE="
|
||||
http://www.mypy-lang.org/
|
||||
https://github.com/python/mypy/
|
||||
https://pypi.org/project/mypy/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/python/mypy/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
|
||||
# stubgen collides with this package: https://bugs.gentoo.org/585594
|
||||
RDEPEND="
|
||||
!dev-util/stubgen
|
||||
>=dev-python/psutil-4[${PYTHON_USEDEP}]
|
||||
>=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}]
|
||||
<dev-python/typed-ast-1.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}]
|
||||
<dev-python/mypy_extensions-0.5.0[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/tomli[${PYTHON_USEDEP}]
|
||||
' 3.8 3.9 3.10)
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-python/attrs-18.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/lxml-4.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-6.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-xdist-1.18[${PYTHON_USEDEP}]
|
||||
>=dev-python/py-1.5.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/virtualenv-16.0.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_sphinx docs/source dev-python/sphinx_rtd_theme
|
||||
distutils_enable_tests pytest
|
||||
|
||||
# this requires packaging a lot of type stubs
|
||||
export MYPY_USE_MYPYC=0
|
||||
|
||||
python_test() {
|
||||
# Some mypy/test/testcmdline.py::PythonCmdlineSuite tests
|
||||
# fail with high COLUMNS values
|
||||
local -x COLUMNS=80
|
||||
epytest -n "$(makeopts_jobs)"
|
||||
}
|
@ -0,0 +1,101 @@
|
||||
diff --git a/parameterized/test.py b/parameterized/test.py
|
||||
index f98d865..ede7689 100644
|
||||
--- a/parameterized/test.py
|
||||
+++ b/parameterized/test.py
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
import inspect
|
||||
import mock
|
||||
+import pytest
|
||||
from unittest import TestCase
|
||||
-from nose.tools import assert_equal, assert_raises
|
||||
|
||||
from .parameterized import (
|
||||
PY3, PY2, parameterized, param, parameterized_argument_value_pairs,
|
||||
@@ -91,7 +91,7 @@ if not PYTEST:
|
||||
|
||||
@parameterized([(1, ), (2, )])
|
||||
def test_setup(self, count, *a):
|
||||
- assert_equal(self.actual_order, "setup %s" %(count, ))
|
||||
+ assert self.actual_order == "setup %s" %(count, )
|
||||
missing_tests.remove("test_setup(%s)" %(self.actual_order, ))
|
||||
|
||||
|
||||
@@ -235,9 +235,9 @@ class TestParamerizedOnTestCase(TestCase):
|
||||
frame_locals = frame[0].f_locals
|
||||
nose_test_method_name = frame_locals['a'][0]._testMethodName
|
||||
expected_name = "test_on_TestCase2_custom_name_" + str(foo)
|
||||
- assert_equal(nose_test_method_name, expected_name,
|
||||
- "Test Method name '%s' did not get customized to expected: '%s'" %
|
||||
- (nose_test_method_name, expected_name))
|
||||
+ assert nose_test_method_name == expected_name, \
|
||||
+ "Test Method name '%s' did not get customized to expected: '%s'" % \
|
||||
+ (nose_test_method_name, expected_name)
|
||||
missing_tests.remove("%s(%r, bar=%r)" %(expected_name, foo, bar))
|
||||
|
||||
|
||||
@@ -259,7 +259,7 @@ class TestParameterizedExpandDocstring(TestCase):
|
||||
actual_docstring = test_method.__doc__
|
||||
if rstrip:
|
||||
actual_docstring = actual_docstring.rstrip()
|
||||
- assert_equal(actual_docstring, expected_docstring)
|
||||
+ assert actual_docstring == expected_docstring
|
||||
|
||||
@parameterized.expand([param("foo")],
|
||||
doc_func=lambda f, n, p: "stuff")
|
||||
@@ -335,7 +335,7 @@ def test_helpful_error_on_empty_iterable_input():
|
||||
|
||||
def test_skip_test_on_empty_iterable():
|
||||
func = parameterized([], skip_on_empty=True)(lambda: None)
|
||||
- assert_raises(SkipTest, func)
|
||||
+ pytest.raises(SkipTest, func)
|
||||
|
||||
|
||||
def test_helpful_error_on_empty_iterable_input_expand():
|
||||
@@ -366,10 +366,6 @@ def test_helpful_error_on_non_iterable_input():
|
||||
raise AssertionError("Expected exception not raised")
|
||||
|
||||
|
||||
-def tearDownModule():
|
||||
- missing = sorted(list(missing_tests))
|
||||
- assert_equal(missing, [])
|
||||
-
|
||||
def test_old_style_classes():
|
||||
if PY3:
|
||||
raise SkipTest("Py3 doesn't have old-style classes")
|
||||
@@ -418,7 +414,7 @@ class TestOldStyleClass:
|
||||
def test_parameterized_argument_value_pairs(func_params, p, expected):
|
||||
helper = eval("lambda %s: None" %(func_params, ))
|
||||
actual = parameterized_argument_value_pairs(helper, p)
|
||||
- assert_equal(actual, expected)
|
||||
+ assert actual == expected
|
||||
|
||||
|
||||
@parameterized([
|
||||
@@ -428,7 +424,7 @@ def test_parameterized_argument_value_pairs(func_params, p, expected):
|
||||
(123456789, "12...89", 4),
|
||||
])
|
||||
def test_short_repr(input, expected, n=6):
|
||||
- assert_equal(short_repr(input, n=n), expected)
|
||||
+ assert short_repr(input, n=n) == expected
|
||||
|
||||
@parameterized([
|
||||
("foo", ),
|
||||
@@ -442,7 +438,7 @@ cases_over_10 = [(i, i+1) for i in range(11)]
|
||||
|
||||
@parameterized(cases_over_10)
|
||||
def test_cases_over_10(input, expected):
|
||||
- assert_equal(input, expected-1)
|
||||
+ assert input == expected-1
|
||||
|
||||
|
||||
@parameterized_class(("a", "b", "c"), [
|
||||
@@ -461,7 +457,7 @@ class TestParameterizedClass(TestCase):
|
||||
|
||||
def _assertions(self, test_name):
|
||||
assert hasattr(self, "a")
|
||||
- assert_equal(self.b + self.c, 3)
|
||||
+ assert self.b + self.c == 3
|
||||
missing_tests.remove("%s:%s(%r, %r, %r)" %(
|
||||
self.__class__.__name__,
|
||||
test_name,
|
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Parameterized testing with any Python test framework"
|
||||
HOMEPAGE="https://github.com/wolever/parameterized/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-nose-to-pytest.patch"
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
epytest parameterized/test.py
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( pypy3 python3_{8..11} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python bindings for the Enchant spellchecking system"
|
||||
HOMEPAGE="
|
||||
https://github.com/pyenchant/pyenchant/
|
||||
https://pypi.org/project/pyenchant/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/pyenchant/pyenchant/archive/v${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
|
||||
RDEPEND="
|
||||
app-text/enchant:*
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
app-dicts/myspell-en
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
@ -1 +1,2 @@
|
||||
DIST responses-0.20.0.gh.tar.gz 45072 BLAKE2B 51864ae6de7328507e74f540f9546f16c5da950ebdb29a13760cc1ff4e1d3736f8e61efdd0ce5a427ea7814a9ffdb936496f9787af74ea2f6565d48f6ecbdfb4 SHA512 cce8d6eca05c23ab12ef7e66297dbe1f613c0ac7d46c20b5ea77639cf5be1807ef55e7c71eb5e915ceaa1bc51293a339f9e22a864da0c30c3a676c6c5bea03cd
|
||||
DIST responses-0.21.0.gh.tar.gz 49551 BLAKE2B 3796fd29353f80a04b26a7348153902d959038e072bf512ee4ba8ffd434157c0ce5c37073d114e0d2865c827d82166ee1fcefe2f250c895c23c53664ab919903 SHA512 9e82f0fb7d2a2a4ea071a6384584ba58ebde13504408f8bac351d24df206f0f6815ce3b6d7e013fb87b04d3a1cdccbe7a5287f56f4f9bfb3d4567ad2eeafa778
|
||||
|
@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..11} pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Utility for mocking out the Python Requests library"
|
||||
HOMEPAGE="
|
||||
https://pypi.org/project/responses/
|
||||
https://github.com/getsentry/responses/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/getsentry/responses/archive/${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
RDEPEND="
|
||||
<dev-python/requests-3[${PYTHON_USEDEP}]
|
||||
>=dev-python/urllib3-1.25.10[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/pytest-localserver[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
@ -1 +1,2 @@
|
||||
DIST rope-1.0.0.tar.gz 263335 BLAKE2B 5a2ecb494c7ab7833a75e54887e863fc5b35c2564d9ebcabb055084f1aff189bbedd2de13b1f8e0c56736886687c25111a42e47ff5ea84c217bb81927495e1a1 SHA512 f4a011750dfe51f092f29d1a911e4ce6c0425a31839f6ebade834d57472beeee9bae49cbd1f46ebcb2f3fe5c6aaf16edd583fd3a701b51b0f80d221c5aa23aed
|
||||
DIST rope-1.1.1.tar.gz 274610 BLAKE2B 52354453305ee58db70f86392f7ec27179e1e4a9ec677fb8875bb9ca24663e6dae26e1bac4a1ad62143fe3a419a7a1e1fd0b7d2f03ef556143d2b060b23300af SHA512 aaf664a63ef00e3c844d6999338fe6a3384ddecfe95ef9b7eb213e5c37c9f78f7d2ea59aa7e612487bac5eaaaf7fc8ba499c0d43c740f99a7b3be64c9d7f6e07
|
||||
|
@ -0,0 +1,29 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python refactoring library"
|
||||
HOMEPAGE="
|
||||
https://pypi.org/project/rope/
|
||||
https://github.com/python-rope/rope/
|
||||
"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="doc"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/pytest-timeout[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
@ -1,2 +1,3 @@
|
||||
DIST sphinxcontrib-spelling-7.3.2.tar.gz 51813 BLAKE2B 7c96f3b102fa33ea4d9e35100930a157200a1c01c51d8ec5145c45c5a24e3b5de35f6c4669177363c6098cb96275e10c39ff660c36d209cb6fa658e50cb8e169 SHA512 043a50f694366de4a3aedc24ca2ea7d89c85087097264f4e4fc860f68a3df5a67f19ec7172e4a67074377846d013d24edecd751885136c7263bc30b034c0f0e9
|
||||
DIST sphinxcontrib-spelling-7.3.3.tar.gz 51912 BLAKE2B 6a9bd90db2298beb78686252d555dd5e77d0c9042eb0986dd2eeab9e413a921c5f5f594c539c2cfe6315002c2f2892241b789b10976e634158f3ca1d8be1b627 SHA512 7406bd846c5eac507f8e4481ada4d0d725d0a3ad8cf2f8fd3328389128cf54091bb0e304dfe23fdf771a26d9103d2c028d2f7f29e1949ca59fcf43de5bac9cb1
|
||||
DIST sphinxcontrib-spelling-7.4.0.tar.gz 52966 BLAKE2B d0dbb6a5ae704f8cc8eaf0a73455b1ae044d68e34c723f1368899f7d7567c0e77a5279f333c710017ed00c53f7eb9a977f6a803b87b03fbf2b78e0be02bd1ac0 SHA512 27edbde0ad7d9321ceda9263e2139421578c48f82bad04c51359134ae89631ddfcf27ac5bdb1d012354e71020be373c8017550c5db73fdccb912d4ab10d223c8
|
||||
|
@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Sphinx spelling extension"
|
||||
HOMEPAGE="
|
||||
https://github.com/sphinx-contrib/spelling/
|
||||
https://pypi.org/project/sphinxcontrib-spelling/
|
||||
"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/pyenchant[${PYTHON_USEDEP}]
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
dev-python/pbr[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
app-dicts/myspell-en
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# requires the git repo
|
||||
tests/test_filter.py::test_contributors
|
||||
)
|
||||
|
||||
python_compile() {
|
||||
distutils-r1_python_compile
|
||||
find "${BUILD_DIR}" -name '*.pth' -delete || die
|
||||
}
|
||||
|
||||
python_test() {
|
||||
distutils_write_namespace sphinxcontrib
|
||||
rm -rf sphinxcontrib || die
|
||||
epytest tests
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1 multiprocessing optfeature
|
||||
|
||||
DESCRIPTION="Python library for loading and using triangular meshes"
|
||||
HOMEPAGE="
|
||||
https://trimsh.org/
|
||||
https://github.com/mikedh/trimesh/
|
||||
https://pypi.org/project/trimesh/
|
||||
"
|
||||
# No tests in PyPI tarballs
|
||||
SRC_URI="
|
||||
https://github.com/mikedh/${PN}/archive/${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/chardet[${PYTHON_USEDEP}]
|
||||
dev-python/colorlog[${PYTHON_USEDEP}]
|
||||
dev-python/jsonschema[${PYTHON_USEDEP}]
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
dev-python/msgpack[${PYTHON_USEDEP}]
|
||||
dev-python/networkx[${PYTHON_USEDEP}]
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/pycollada[${PYTHON_USEDEP}]
|
||||
dev-python/pyglet[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/scipy[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
dev-python/svg-path[${PYTHON_USEDEP}]
|
||||
dev-python/sympy[${PYTHON_USEDEP}]
|
||||
dev-python/xxhash[${PYTHON_USEDEP}]
|
||||
sci-libs/rtree[${PYTHON_USEDEP}]
|
||||
sci-libs/shapely[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
epytest -n "$(makeopts_jobs)"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature_header "${PN} functionality can be extended by installing the following packages:"
|
||||
optfeature "making GUI applications with 3D stuff" dev-python/glooey
|
||||
optfeature "2D triangulations of polygons" dev-python/mapbox_earcut
|
||||
optfeature "loading a number of additional mesh formats" dev-python/meshio
|
||||
optfeature "figuring out how much memory we have" dev-python/psutil
|
||||
optfeature "marching cubes and other nice stuff" sci-libs/scikit-image
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST webcolors-1.11.1.tar.gz 309399 BLAKE2B 6d07160f5e071dda348959008185b85240252e2636a9eaf89cefc768e734b5c789ac3650fd4a3a88972d144fb2703682a1a750f8136b5a2ac8e2d84f86a19cba SHA512 b8d9146e31292b41c3f3a501ca5f0ce5d9c21ec08dc31384bf6bfe06ccff202b97592eaafef0cfce9ddef1b674bf19a527225d67ecceb92bdc514a050a02524b
|
||||
DIST webcolors-1.12.tar.gz 38112 BLAKE2B f229ec69c91ae83bd36194bc85a03e34d1ceedfd98ffd8b5e3583956283297bb9c91f947646d67cf107bcddc6c6c0d655779672fca22c0e4d8452007c8dbff30 SHA512 2c1e46ba2036ff960a973b9f5b4cec06241e9385fa0de876f66a6cf742d5b11bc212fce262011968a612c1446b78a6f50b3e75d04584c3b2b47f3ac3d66fdd51
|
||||
|
@ -0,0 +1,22 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..11} pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Color names and value formats defined by the HTML and CSS specifications"
|
||||
HOMEPAGE="
|
||||
https://github.com/ubernostrum/webcolors/
|
||||
https://pypi.org/project/webcolors/
|
||||
"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
distutils_enable_tests unittest
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST faraday-net_http-1.0.1.tar.gz 8436 BLAKE2B 16feb3c79af7db3b69373826a2fc55a8373620c7c6bb229ec27ada2e07a75e862e4211a13a991c9d280b9dfd9643d1eec400fb0b925a846d966cc609c562aefe SHA512 57a7ea2f452844200119cb9e99ae4bfee5e01b0630b38b4ef4e615dfcc05e1476e3da8511698bf199c62b816b5253fb364ed6cffdc59dcd4e9d706c7f1e6e56b
|
||||
DIST faraday-net_http-2.0.3.tar.gz 8919 BLAKE2B 7bccadd63685acaf92e0192094a084d5b287fe7153273a4b5eb99f1e2a01a38051893fd96951ea48f456bd3a791c08dbcaf97f8479bbf302cfc713ce1e23bd36 SHA512 8a1a4bebd8ad565bc2eafd71eb5b7acda2f0830bb85894bf056412794d836cac6f57448edc60d5685d1876153b8c7c38c9b005b797167319dd088e0a6271e71e
|
||||
|
@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
USE_RUBY="ruby26 ruby27 ruby30"
|
||||
|
||||
RUBY_FAKEGEM_BINWRAP=""
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Faraday adapter for Net::HTTP"
|
||||
HOMEPAGE="https://github.com/lostisland/faraday-net_http"
|
||||
SRC_URI="https://github.com/lostisland/faraday-net_http/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="$(ver_cut 1)"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_bdepend "test? ( >=dev-ruby/faraday-1.3.1:1 )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i -e "s:_relative ':'./:" ${RUBY_FAKEGEM_GEMSPEC} || die
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST faraday-0.17.3.tar.gz 76786 BLAKE2B 0706f4386233861564aa1ba5fb8da9ad374a0b553a3f6ccd4ce6509b690f6da3e9f695f90605e0e15b41b6354841943ecc4f5eb826638565687bf62b36f1f456 SHA512 346e93b5d980626a0c460d9010ca09091faf84a1a8f2717c16d345ddc51585ce45959d7fcf41fbd0ba248d38460939544945fa0e81bcb80ab73dfe080182e325
|
||||
DIST faraday-1.2.0.tar.gz 840216 BLAKE2B a52d2ddc2a57ba87b28e9143123985df12e118d6a8062b5272e77aa7807d7b2fd770408090c7e406631173eb276efcb973f96efdb17ab0f3ea684acda41b8d34 SHA512 7198e8954ec71bdbdfb58df52c6962ebe05599bf871fcb669f32ee2a5fb094b6934492396a92033e0fa858390f454f0d2daa41616f9e212f260080be016e1ea9
|
||||
DIST faraday-1.3.1.tar.gz 840638 BLAKE2B 284f7f612d3ab791a00ceab823be0246685fa38356bfeb6e01c12e81c7369c500719a6023dd929160ca598b41401b82cda0d8e9e363d0e7bdd91791742f8e68f SHA512 b89839e5d602911904ce009f52d011c124f84811e0676a3a524d22ea7084d99a971b6573dcde6d512bf933909cc461ef01cd82a8eeb9df581c56f17f31966b1b
|
||||
DIST faraday-2.3.0.tar.gz 828503 BLAKE2B 51ab43910d05a5ab44f6a6acc792858c1c3c2d0d74e226d63dd1f623eba6a8f02558c09b99c53e6f6df3b313fa822035d2d12e6f00bb81e31f9f8c6237498e41 SHA512 5236e96cb203c2ef9ce882d081e5916f7f59e28e4b593dcb5bb70dd2581fad50ed6d6f2364b64966184155575df1732d136e81146e0ab5e4647f0cc40d76d018
|
||||
|
@ -0,0 +1,66 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
USE_RUBY="ruby26 ruby27 ruby30"
|
||||
|
||||
RUBY_FAKEGEM_BINWRAP=""
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
RUBY_FAKEGEM_RECIPE_DOC="none"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md"
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="spec"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="HTTP/REST API client library with pluggable components"
|
||||
HOMEPAGE="https://github.com/lostisland/faraday"
|
||||
SRC_URI="https://github.com/lostisland/faraday/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="$(ver_cut 1)"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND+=" test? ( sys-process/lsof )"
|
||||
|
||||
ruby_add_rdepend "
|
||||
dev-ruby/faraday-net_http:2
|
||||
>=dev-ruby/ruby2_keywords-0.0.4
|
||||
"
|
||||
ruby_add_bdepend "test? (
|
||||
>=dev-ruby/test-unit-2.4
|
||||
>=dev-ruby/connection_pool-2.2.2
|
||||
dev-ruby/rack
|
||||
dev-ruby/webmock
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Remove bundler support.
|
||||
rm Gemfile || die
|
||||
sed -i -e '/[Bb]undler/d ; 1irequire "yaml"' Rakefile || die
|
||||
# Avoid loading all lib files since some of them require unpackaged dependencies.
|
||||
sed -e '/[Cc]overall/ s:^:#:' \
|
||||
-e '/lib\/\*\*/ s:^:#:' \
|
||||
-e '/simplecov/ s:^:#:' \
|
||||
-e '/SimpleCov/,/end/ s:^:#:' \
|
||||
-e '/pry/ s:^:#:' \
|
||||
-i spec/spec_helper.rb || die
|
||||
|
||||
sed -e '/git ls-files/ s:^:#:' \
|
||||
-e "s:_relative ': './:" \
|
||||
-i ${RUBY_FAKEGEM_GEMSPEC} || die
|
||||
|
||||
# Avoid multipart tests that require an unpackaged dependency
|
||||
# that appears to be no longer maintained.
|
||||
#rm -f spec/faraday/request/multipart_spec.rb || die
|
||||
#sed -e '/multipart_parser/ s:^:#:' \
|
||||
# -i spec/support/helper_methods.rb || die
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
MT_NO_PLUGINS=true each_fakegem_test
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST hoe-3.21.0.gem 193024 BLAKE2B 2ff65edc6e0aebc93ebc8f3e628261ac3fabec4034b8e7b1bb3c38ab45c8b4641267a8c46c851ad69425c08782553c628574ae0a1417257cf64ba05a86de08f3 SHA512 39da93520bdb4efcbc58af58562ff8abbdecf45f92071ddb31f68ac799eb6f704431cea3d699aa039ba3a5217dc9b0f2d87f8b553d62860c34cb63803b625754
|
||||
DIST hoe-3.23.1.gem 194048 BLAKE2B 907c2f2b62dd362f8c472f21d3fd998bd178de2a15fb9875ef36c61dcbf6b170253037d64f70b04b45a5f7e7dcf9e084122a85f694c6396767d541dccd5693f5 SHA512 c2199f93fe806a9639b319d01ae7bb6999ac203aa8bbabaf22b4c0c5b97f69dbd4e876bdfaaa0b0e8cda68dbd25dfa0e5aa91a599613237fc22de0e857c68c37
|
||||
|
@ -0,0 +1,51 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
USE_RUBY="ruby26 ruby27 ruby30 ruby31"
|
||||
|
||||
RUBY_FAKEGEM_DOCDIR="doc"
|
||||
RUBY_FAKEGEM_EXTRADOC="History.rdoc Manifest.txt README.rdoc"
|
||||
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="template"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Hoe extends rake to provide full project automation"
|
||||
HOMEPAGE="https://www.zenspider.com/projects/hoe.html"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc"
|
||||
|
||||
ruby_add_bdepend "test? ( >=dev-ruby/minitest-5.9:5 )"
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/rake-0.8.7 <dev-ruby/rake-15.0"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Skip isolation
|
||||
sed -i -e '/isolate/ s:^:#:' Rakefile || die
|
||||
|
||||
# Skip test depending on specifics of gem command name
|
||||
sed -i -e '/test_nosudo/,/^ end/ s:^:#:' test/test_hoe.rb || die
|
||||
|
||||
# Avoid test with random sort order
|
||||
sed -i -e '/test_possibly_better/askip "ordering issues"' test/test_hoe.rb || die
|
||||
|
||||
# Avoid test that depends on specifics of merged packages
|
||||
sed -i -e '/test_make_rdoc_cmd/askip "dependent on merged packages"' test/test_hoe_publish.rb || die
|
||||
}
|
||||
|
||||
all_ruby_compile() {
|
||||
all_fakegem_compile
|
||||
|
||||
if use doc; then
|
||||
rdoc --title "seattlerb's hoe-${PV} Documentation" -o doc --main README.txt lib History.txt Manifest.txt README.txt || die
|
||||
rm -f doc/js/*.gz || die
|
||||
fi
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
A="" each_fakegem_test
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST http-cookie-1.0.4.gem 39424 BLAKE2B 06ac0e667340ac17827a8eb4ed320efe77ad97509fcd444f7e77d887a77643a6b34e84486db78eba52245891d1719e750d9a446c40a4ab7804f2304b600029bd SHA512 788fdaa642e6b596e7a91c57a7942a832c09a84fed88b30fdd8e5a8ad66d72780afc1246e6c83c4dfd5af8018c278750866dd05d804aef793aa067b09519af8d
|
||||
DIST http-cookie-1.0.5.gem 39424 BLAKE2B 569a0d18c962be378f3974b400ddf2289c72490b2b93619fcd83ed6c00bbf5def76239c52163dc6231060792abf3a19988285a6cd28f158ff7339252da912e61 SHA512 d530d64b5c2fc3757a6de03384fe768317e24a523d4a4215f5bcc6b5bca9e7b94eeaad1e52fbb67548396b7b2ca7c9d8b68ea7b99109e24770fcf34c950469ef
|
||||
|
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
USE_RUBY="ruby26 ruby27 ruby30 ruby31"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A ruby library to handle HTTP cookies"
|
||||
HOMEPAGE="https://github.com/sparklemotion/http-cookie"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/domain_name-0.5:0"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i -e "/simplecov/d" -e "/bundler/d" Rakefile || die
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
${RUBY} -Ilib test/test_http_cookie.rb || die
|
||||
${RUBY} -Ilib test/test_http_cookie_jar.rb || die
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
USE_RUBY="ruby26 ruby27 ruby30 ruby31"
|
||||
|
||||
RUBY_FAKEGEM_BINWRAP=""
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md"
|
||||
RUBY_FAKEGEM_GEMSPEC="prime.gemspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Prime numbers and factorization library"
|
||||
HOMEPAGE="https://github.com/ruby/prime"
|
||||
SRC_URI="https://github.com/ruby/prime/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_rdepend "
|
||||
dev-ruby/forwardable
|
||||
dev-ruby/singleton
|
||||
"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -e 's:_relative ": "./:' \
|
||||
-i ${RUBY_FAKEGEM_GEMSPEC} || die
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
${RUBY} -Ilib:.:test:test/lib -e 'Dir["test/**/test_*.rb"].each{|f| require f}' || die
|
||||
}
|
@ -1,31 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
USE_RUBY="ruby24 ruby25 ruby26 ruby27"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
||||
|
||||
RUBY_FAKEGEM_DOCDIR="doc"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="History.txt README.txt"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Tool to convert an array of struct into an HTML table"
|
||||
HOMEPAGE="https://github.com/topfunky/tidy_table"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Remove reference to RSpec 1
|
||||
sed -i -e '/spec/d' -e '1irequire "date"' spec/spec_helper.rb || die
|
||||
|
||||
# Remove metadata so a stub gemspec will be created to avoid the
|
||||
# wrong runtime dependency on dev-ruby/hoe.
|
||||
rm -f ../metadata || die
|
||||
}
|
Binary file not shown.
@ -1,393 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
CRATES="
|
||||
addr2line-0.17.0
|
||||
adler-1.0.2
|
||||
aes-0.6.0
|
||||
aes-soft-0.6.4
|
||||
aesni-0.10.0
|
||||
aho-corasick-0.7.18
|
||||
anyhow-1.0.57
|
||||
async-io-1.6.0
|
||||
atty-0.2.14
|
||||
autocfg-1.1.0
|
||||
backtrace-0.3.65
|
||||
base64-0.13.0
|
||||
bitflags-1.3.2
|
||||
block-buffer-0.10.2
|
||||
block-buffer-0.9.0
|
||||
block-modes-0.7.0
|
||||
block-padding-0.2.1
|
||||
bstr-0.2.17
|
||||
bumpalo-3.9.1
|
||||
byteorder-1.4.3
|
||||
bytes-1.1.0
|
||||
bytesize-1.1.0
|
||||
bzip2-0.4.3
|
||||
bzip2-sys-0.1.11+1.0.8
|
||||
cab-0.4.0
|
||||
cache-padded-1.2.0
|
||||
camino-1.0.8
|
||||
cargo-options-0.1.4
|
||||
cargo-platform-0.1.2
|
||||
cargo-xwin-0.8.5
|
||||
cargo-zigbuild-0.8.7
|
||||
cargo_metadata-0.14.2
|
||||
cbindgen-0.23.0
|
||||
cc-1.0.73
|
||||
cfb-0.7.0
|
||||
cfg-if-0.1.10
|
||||
cfg-if-1.0.0
|
||||
charset-0.1.3
|
||||
chunked_transfer-1.4.0
|
||||
cipher-0.2.5
|
||||
clap-3.1.18
|
||||
clap_complete-3.1.4
|
||||
clap_complete_fig-3.1.5
|
||||
clap_derive-3.1.18
|
||||
clap_lex-0.2.0
|
||||
cli-table-0.4.7
|
||||
combine-4.6.4
|
||||
concurrent-queue-1.2.2
|
||||
configparser-3.0.0
|
||||
console-0.15.0
|
||||
core-foundation-0.9.3
|
||||
core-foundation-sys-0.8.3
|
||||
cpufeatures-0.2.2
|
||||
crc32fast-1.3.2
|
||||
crossbeam-channel-0.5.4
|
||||
crossbeam-deque-0.8.1
|
||||
crossbeam-epoch-0.9.8
|
||||
crossbeam-utils-0.8.8
|
||||
crypto-common-0.1.3
|
||||
crypto-mac-0.10.1
|
||||
data-encoding-2.3.2
|
||||
derivative-2.2.0
|
||||
dialoguer-0.10.1
|
||||
digest-0.10.3
|
||||
digest-0.9.0
|
||||
dirs-4.0.0
|
||||
dirs-sys-0.3.7
|
||||
either-1.6.1
|
||||
encode_unicode-0.3.6
|
||||
encoding-0.2.33
|
||||
encoding-index-japanese-1.20141219.5
|
||||
encoding-index-korean-1.20141219.5
|
||||
encoding-index-simpchinese-1.20141219.5
|
||||
encoding-index-singlebyte-1.20141219.5
|
||||
encoding-index-tradchinese-1.20141219.5
|
||||
encoding_index_tests-0.1.4
|
||||
encoding_rs-0.8.31
|
||||
enumflags2-0.6.4
|
||||
enumflags2_derive-0.6.4
|
||||
env_logger-0.7.1
|
||||
fastrand-1.7.0
|
||||
fat-macho-0.4.5
|
||||
filetime-0.2.16
|
||||
flate2-1.0.23
|
||||
fnv-1.0.7
|
||||
foreign-types-0.3.2
|
||||
foreign-types-shared-0.1.1
|
||||
form_urlencoded-1.0.1
|
||||
fs-err-2.7.0
|
||||
futures-0.3.21
|
||||
futures-channel-0.3.21
|
||||
futures-core-0.3.21
|
||||
futures-executor-0.3.21
|
||||
futures-io-0.3.21
|
||||
futures-lite-1.12.0
|
||||
futures-macro-0.3.21
|
||||
futures-sink-0.3.21
|
||||
futures-task-0.3.21
|
||||
futures-util-0.3.21
|
||||
generic-array-0.14.5
|
||||
getrandom-0.2.6
|
||||
gimli-0.26.1
|
||||
glob-0.3.0
|
||||
globset-0.4.8
|
||||
goblin-0.5.1
|
||||
hashbrown-0.11.2
|
||||
heck-0.4.0
|
||||
hermit-abi-0.1.19
|
||||
hkdf-0.10.0
|
||||
hmac-0.10.1
|
||||
human-panic-1.0.3
|
||||
humantime-1.3.0
|
||||
idna-0.2.3
|
||||
ignore-0.4.18
|
||||
indexmap-1.8.1
|
||||
indicatif-0.17.0-rc.6
|
||||
indoc-1.0.6
|
||||
instant-0.1.12
|
||||
itertools-0.10.3
|
||||
itoa-1.0.2
|
||||
js-sys-0.3.57
|
||||
keyring-1.1.2
|
||||
lazy_static-1.4.0
|
||||
lddtree-0.2.9
|
||||
libc-0.2.125
|
||||
lock_api-0.4.7
|
||||
log-0.4.17
|
||||
lzxd-0.1.4
|
||||
mailparse-0.13.8
|
||||
matchers-0.1.0
|
||||
matches-0.1.9
|
||||
memchr-2.5.0
|
||||
memoffset-0.6.5
|
||||
mime-0.3.16
|
||||
mime_guess-2.0.4
|
||||
minijinja-0.15.0
|
||||
miniz_oxide-0.5.1
|
||||
msi-0.5.0
|
||||
multipart-0.18.0
|
||||
native-tls-0.2.10
|
||||
nb-connect-1.2.0
|
||||
nix-0.17.0
|
||||
num-0.3.1
|
||||
num-bigint-0.3.3
|
||||
num-complex-0.3.1
|
||||
num-integer-0.1.45
|
||||
num-iter-0.1.43
|
||||
num-rational-0.3.2
|
||||
num-traits-0.2.15
|
||||
num_cpus-1.13.1
|
||||
num_threads-0.1.6
|
||||
number_prefix-0.4.0
|
||||
object-0.28.4
|
||||
once_cell-1.10.0
|
||||
opaque-debug-0.3.0
|
||||
openssl-0.10.40
|
||||
openssl-macros-0.1.0
|
||||
openssl-probe-0.1.5
|
||||
openssl-src-111.18.0+1.1.1n
|
||||
openssl-sys-0.9.73
|
||||
os_str_bytes-6.0.1
|
||||
os_type-2.4.0
|
||||
parking-2.0.0
|
||||
parking_lot-0.12.0
|
||||
parking_lot_core-0.9.3
|
||||
path-slash-0.1.4
|
||||
percent-encoding-2.1.0
|
||||
pin-project-lite-0.2.9
|
||||
pin-utils-0.1.0
|
||||
pkg-config-0.3.25
|
||||
plain-0.2.3
|
||||
platform-info-0.2.0
|
||||
polling-2.2.0
|
||||
ppv-lite86-0.2.16
|
||||
pretty_env_logger-0.4.0
|
||||
proc-macro-crate-0.1.5
|
||||
proc-macro-crate-1.1.3
|
||||
proc-macro-error-1.0.4
|
||||
proc-macro-error-attr-1.0.4
|
||||
proc-macro2-1.0.38
|
||||
pyproject-toml-0.3.1
|
||||
python-pkginfo-0.5.4
|
||||
quick-error-1.2.3
|
||||
quote-1.0.18
|
||||
quoted_printable-0.4.5
|
||||
rand-0.8.5
|
||||
rand_chacha-0.3.1
|
||||
rand_core-0.6.3
|
||||
rayon-1.5.3
|
||||
rayon-core-1.9.3
|
||||
redox_syscall-0.2.13
|
||||
redox_users-0.4.3
|
||||
regex-1.5.5
|
||||
regex-automata-0.1.10
|
||||
regex-syntax-0.6.25
|
||||
remove_dir_all-0.5.3
|
||||
rfc2047-decoder-0.1.2
|
||||
ring-0.16.20
|
||||
rpassword-6.0.1
|
||||
rustc-demangle-0.1.21
|
||||
rustc_version-0.4.0
|
||||
rustls-0.20.5
|
||||
ryu-1.0.10
|
||||
same-file-1.0.6
|
||||
schannel-0.1.19
|
||||
scoped-tls-1.0.0
|
||||
scopeguard-1.1.0
|
||||
scroll-0.11.0
|
||||
scroll_derive-0.11.0
|
||||
sct-0.7.0
|
||||
secret-service-2.0.1
|
||||
security-framework-2.6.1
|
||||
security-framework-sys-2.6.1
|
||||
semver-1.0.9
|
||||
serde-1.0.137
|
||||
serde_derive-1.0.137
|
||||
serde_json-1.0.81
|
||||
serde_repr-0.1.8
|
||||
sha2-0.10.2
|
||||
sha2-0.9.9
|
||||
sharded-slab-0.1.4
|
||||
shlex-1.1.0
|
||||
slab-0.4.6
|
||||
smallvec-1.8.0
|
||||
smawk-0.3.1
|
||||
socket2-0.4.4
|
||||
spin-0.5.2
|
||||
static_assertions-1.1.0
|
||||
strsim-0.10.0
|
||||
subtle-2.4.1
|
||||
syn-1.0.94
|
||||
tar-0.4.38
|
||||
target-lexicon-0.12.3
|
||||
tempfile-3.3.0
|
||||
termcolor-1.1.3
|
||||
terminal_size-0.1.17
|
||||
textwrap-0.15.0
|
||||
thiserror-1.0.31
|
||||
thiserror-impl-1.0.31
|
||||
thread_local-1.1.4
|
||||
time-0.3.9
|
||||
time-macros-0.2.4
|
||||
tinyvec-1.6.0
|
||||
tinyvec_macros-0.1.0
|
||||
toml-0.5.9
|
||||
toml_edit-0.14.4
|
||||
tracing-0.1.34
|
||||
tracing-attributes-0.1.21
|
||||
tracing-core-0.1.26
|
||||
tracing-serde-0.1.3
|
||||
tracing-subscriber-0.3.11
|
||||
twox-hash-1.6.3
|
||||
typenum-1.15.0
|
||||
unicase-2.6.0
|
||||
unicode-bidi-0.3.8
|
||||
unicode-linebreak-0.1.2
|
||||
unicode-normalization-0.1.19
|
||||
unicode-width-0.1.9
|
||||
unicode-xid-0.2.3
|
||||
untrusted-0.7.1
|
||||
ureq-2.4.0
|
||||
url-2.2.2
|
||||
uuid-0.8.2
|
||||
uuid-1.0.0
|
||||
valuable-0.1.0
|
||||
vcpkg-0.2.15
|
||||
version_check-0.9.4
|
||||
void-1.0.2
|
||||
waker-fn-1.1.0
|
||||
walkdir-2.3.2
|
||||
wasi-0.10.2+wasi-snapshot-preview1
|
||||
wasm-bindgen-0.2.80
|
||||
wasm-bindgen-backend-0.2.80
|
||||
wasm-bindgen-macro-0.2.80
|
||||
wasm-bindgen-macro-support-0.2.80
|
||||
wasm-bindgen-shared-0.2.80
|
||||
web-sys-0.3.57
|
||||
webpki-0.22.0
|
||||
webpki-roots-0.22.3
|
||||
wepoll-ffi-0.1.2
|
||||
which-4.2.5
|
||||
winapi-0.3.9
|
||||
winapi-i686-pc-windows-gnu-0.4.0
|
||||
winapi-util-0.1.5
|
||||
winapi-x86_64-pc-windows-gnu-0.4.0
|
||||
windows-sys-0.36.1
|
||||
windows_aarch64_msvc-0.36.1
|
||||
windows_i686_gnu-0.36.1
|
||||
windows_i686_msvc-0.36.1
|
||||
windows_x86_64_gnu-0.36.1
|
||||
windows_x86_64_msvc-0.36.1
|
||||
xattr-0.2.3
|
||||
xwin-0.2.3
|
||||
zbus-1.9.1
|
||||
zbus_macros-1.9.1
|
||||
zip-0.6.2
|
||||
zvariant-2.10.0
|
||||
zvariant_derive-2.10.0"
|
||||
CRATES_TEST="
|
||||
libc-0.2.119
|
||||
once_cell-1.9.0
|
||||
pyo3-0.16.5
|
||||
pyo3-build-config-0.16.0
|
||||
pyo3-build-config-0.16.5
|
||||
pyo3-ffi-0.16.0
|
||||
pyo3-ffi-0.16.5
|
||||
pyo3-macros-0.16.5
|
||||
pyo3-macros-backend-0.16.5
|
||||
python3-dll-a-0.2.2
|
||||
unindent-0.1.9"
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
inherit cargo distutils-r1 flag-o-matic
|
||||
|
||||
DESCRIPTION="Build and publish crates with pyo3, rust-cpython and cffi bindings"
|
||||
HOMEPAGE="https://maturin.rs/"
|
||||
SRC_URI="
|
||||
https://github.com/PyO3/maturin/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
$(cargo_crate_uris)
|
||||
test? ( $(cargo_crate_uris ${CRATES_TEST}) )"
|
||||
|
||||
LICENSE="
|
||||
0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD CC0-1.0 ISC MIT MPL-2.0 openssl
|
||||
doc? ( CC-BY-4.0 OFL-1.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="doc test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/tomli[${PYTHON_USEDEP}]
|
||||
' 3.{8..10})"
|
||||
BDEPEND="
|
||||
dev-python/setuptools-rust[${PYTHON_USEDEP}]
|
||||
doc? ( app-text/mdbook )
|
||||
test? (
|
||||
dev-python/cffi[${PYTHON_USEDEP}]
|
||||
dev-python/boltons[${PYTHON_USEDEP}]
|
||||
dev-python/virtualenv[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
QA_FLAGS_IGNORED=".*/${PN}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.12.8-zig-tests.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
|
||||
if use test; then
|
||||
# used to prevent use of network during tests
|
||||
cat > "${T}"/pip.conf <<-EOF || die
|
||||
[install]
|
||||
no-index = yes
|
||||
no-dependencies = yes
|
||||
EOF
|
||||
|
||||
# run plain 'python' from eclass rather than auto-detect 'python3.x'
|
||||
sed -i 's/"build",/&"-i","python",/' tests/common/integration.rs || die
|
||||
fi
|
||||
|
||||
# TODO: package-agnostic way to handle IUSE=debug with setuptools-rust?
|
||||
use !debug || sed -i "s/^cargo_args = \[/&'--profile','dev',/" setup.py || die
|
||||
|
||||
filter-flags '-flto*' # undefined references with ring crate
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use !doc || mdbook build -d html guide || die
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local -x PIP_CONFIG_FILE=${T}/pip.conf
|
||||
local -x VIRTUALENV_SYSTEM_SITE_PACKAGES=1
|
||||
|
||||
# pyo3_no_extension_module is xfail but passes with >=rust-1.60, still
|
||||
# need looking into but is not known to cause issues, disable for now.
|
||||
cargo_src_test -- --skip locked_doesnt_build_without_cargo_lock \
|
||||
--skip pyo3_no_extension_module
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
dodoc Changelog.md Readme.md
|
||||
use doc && dodoc -r guide/html
|
||||
}
|
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
DIST oshu-2.0.1.tar.gz 144900 BLAKE2B 47f1d0a11255459ae357142499aeffcf07fbcad961cb34ba98e9efa7cb4229cf8d61ec836a4c899f2ea0883f1252395bc0c6ff34c5d670d67091cf6483d135ff SHA512 65768b3d8e7733464f05a19bbee594c0be728267bbd0667bc0f34e0d01a39e52d4ecce89a9223f7c454d73b21bc735401e9d83eea8b0a2eaf1c7825a3bd6b1cf
|
||||
DIST oshu-2.0.2.tar.gz 146109 BLAKE2B 98dd49f972f1f1f820f654a2d358ceffdd2c54cd2daa0594914e6a1e29f1d1e757fe46d021afc75a33f4ef94bbb370213f20229843c173d7c55d876fe3db7e12 SHA512 e881e9429cebaf74337e55e7fa5445d992627d7616088f15abfafa2c125e1ff057a5b0f39ee4a1d1728c310728a8590e65286b9a0f81dca1f8963b2943fba596
|
||||
DIST oshu-skin-v1.tar.gz 2224947 BLAKE2B 0b463133dd7ab54421551627d12932f5257848b1130d57af8c2ff6b6836a49c9322b8f2f7e95de540909390d0139e547650a6bb321614cf92fac464b09075674 SHA512 d562294ac5e122a9d9971e3ab92f6168d848177cc5e22a94bbc450fde2b3b14007796a24d33722da9b6675467b109ce128ba94dca5dcc7c61c91c1e373032618
|
||||
|
@ -0,0 +1,16 @@
|
||||
diff --git a/./lib/audio/stream.cc.old b/./lib/audio/stream.cc
|
||||
index 808851f..09eb4fb 100644
|
||||
--- a/./lib/audio/stream.cc.old
|
||||
+++ b/./lib/audio/stream.cc
|
||||
@@ -193,7 +193,11 @@ static int open_demuxer(const char *url, oshu::stream *stream)
|
||||
stream->demuxer,
|
||||
AVMEDIA_TYPE_AUDIO,
|
||||
-1, -1,
|
||||
+#if LIBAVCODEC_VERSION_MAJOR < 59
|
||||
+ &stream->codec,
|
||||
+#else
|
||||
(const AVCodec**)&stream->codec,
|
||||
+#endif
|
||||
0
|
||||
);
|
||||
if (rc < 0 || stream->codec == NULL) {
|
@ -0,0 +1,65 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake xdg
|
||||
|
||||
DESCRIPTION="Lightweight osu! port"
|
||||
HOMEPAGE="https://github.com/fmang/oshu"
|
||||
|
||||
if [[ ${PV} = *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/fmang/oshu.git"
|
||||
SRC_URI="osu-skin? ( https://www.mg0.fr/oshu/skins/osu-v1.tar.gz -> ${PN}-skin-v1.tar.gz )"
|
||||
else
|
||||
SRC_URI="https://github.com/fmang/oshu/archive/${PV}.tar.gz -> oshu-${PV}.tar.gz
|
||||
osu-skin? ( https://www.mg0.fr/oshu/skins/osu-v1.tar.gz -> ${PN}-skin-v1.tar.gz )"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3 CC-BY-NC-4.0"
|
||||
SLOT="0"
|
||||
IUSE="osu-skin"
|
||||
|
||||
RDEPEND="
|
||||
media-libs/libsdl2
|
||||
media-libs/sdl2-image
|
||||
x11-libs/cairo
|
||||
x11-libs/pango
|
||||
media-video/ffmpeg:=
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/oshu-2.0.2-ffmpeg4-compat.patch" )
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
|
||||
if [[ ${PV} = *9999 ]]; then
|
||||
git-r3_src_unpack
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if use osu-skin; then
|
||||
eapply "${FILESDIR}/oshu-2.0.0-use_unpacked_osu-skin.patch"
|
||||
mv "${WORKDIR}/osu" share/skins/ || die "Failed to move osu-skin"
|
||||
fi
|
||||
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DOSHU_DEFAULT_SKIN=$(usex osu-skin osu minimal)
|
||||
-DOSHU_SKINS=minimal$(usev osu-skin ';osu')
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cmake_build check
|
||||
}
|
Binary file not shown.
@ -1,4 +1,3 @@
|
||||
DIST PySolFC-2.15.0.tar.xz 5022972 BLAKE2B c27dc73478f908e1ebfa4dd1ebff12744bb54a88886245aeab2f48605327231c44d27886b74612bfd233cc614ec55de6e4ba1f5fac0bb0b21ced9d46fc411bc5 SHA512 d50c416814beb1d9ef669923f87ea9493ad4aa30cf9c7dbc1e52c2f2fa89d9d6dcde9a7c4d4b8ab7d0fb36e5953ac27718fc7cc547ab3989cf2babc42844af9a
|
||||
DIST PySolFC-2.16.0.tar.xz 6391048 BLAKE2B 94f25033cf5b15af002d924cd2bfff5f90a1165ac9c23ba72a204d424e1678d904c37b13f16695f60c26d9e93a0b00f33e3f59d4b5bf4846d2570ed8c19d7725 SHA512 8f327b621d7c964abcf3e64a866e4a0153f4d6c2347f06eda1535df4effec1d7b7391e55c9ff42a1da6764473a246c0d646a589a4aa6b225076f97fd22381acd
|
||||
DIST PySolFC-Cardsets--Minimal-2.1.0.tar.xz 28484652 BLAKE2B a7537557ce978d296d1a11253a5bfa80a19fc67b495948e35d43d64bcc1283812e753ccf9ee1828461b723e6a21070b3003435f046a590507a7fa6f95bae09c2 SHA512 cc83a26470c2fb13e70741bd8caccb8bd3b0491672eae0caf7437cf38d57e324d225186dde3be49c091d6960dbaefaa23814bcdd7326b07f0f1e32dda15b251c
|
||||
DIST PySolFC-Cardsets-2.1.tar.bz2 61214563 BLAKE2B 06bf69f22fdcdfbd652bbe75f05722a452609da435a688a04227d235f7a4bd618cb3832e9143d224571eb20c1948014a456d697923623354c81ec12eff365bd9 SHA512 64909dec3d7f0a683e3c0d536f2c3435d0b021b390e411bcd6c9774562483413864105837e57c3210168330f17eda779055a1ec3b52d91aa05f405b990bd6fca
|
||||
|
@ -1,68 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
PYTHON_REQ_USE="tk"
|
||||
inherit distutils-r1 xdg
|
||||
|
||||
MY_PN="PySolFC"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
PS_CARD_P="${MY_PN}-Cardsets-2.1"
|
||||
PS_CARD_MIN_P="${MY_PN}-Cardsets--Minimal-2.1.0"
|
||||
|
||||
DESCRIPTION="Exciting collection of more than 1000 solitaire card games"
|
||||
HOMEPAGE="https://pysolfc.sourceforge.io/"
|
||||
SRC_URI="mirror://sourceforge/pysolfc/${MY_P}.tar.xz
|
||||
extra-cardsets? ( mirror://sourceforge/pysolfc/${PS_CARD_P}.tar.bz2 )
|
||||
!extra-cardsets? ( mirror://sourceforge/pysolfc/${PS_CARD_MIN_P}.tar.xz )"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="GPL-3+ GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="extra-cardsets minimal +sound"
|
||||
|
||||
RDEPEND="
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/attrs[${PYTHON_USEDEP}]
|
||||
dev-python/configobj[${PYTHON_USEDEP}]
|
||||
dev-python/pysol_cards[${PYTHON_USEDEP}]
|
||||
dev-python/random2[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
sound? ( dev-python/pygame[${PYTHON_USEDEP}] )
|
||||
!minimal? ( dev-python/pillow[jpeg,tk,${PYTHON_USEDEP}] )')
|
||||
!minimal? ( dev-tcltk/tktable )"
|
||||
|
||||
distutils_enable_tests unittest
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
|
||||
# make pip check happier, pycotap is not needed
|
||||
sed -i "/'pycotap'/d" setup.py || die
|
||||
|
||||
if use extra-cardsets; then
|
||||
find ../${PS_CARD_P} -type d -name .thumbnails -exec rm -r {} + || die
|
||||
fi
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local DOCS=( AUTHORS.md NEWS.asciidoc README.md )
|
||||
distutils-r1_python_install_all
|
||||
|
||||
doman docs/pysol{,fc}.6
|
||||
|
||||
insinto /usr/share/${MY_PN}
|
||||
doins -r ../$(usex extra-cardsets ${PS_CARD_P} ${PS_CARD_MIN_P})/.
|
||||
|
||||
# html files are used at runtime, keep at default location
|
||||
dosym -r /usr/share/{${MY_PN},doc/${PF}}/html
|
||||
|
||||
# russian translation is not currently displaying right
|
||||
# https://forums.gentoo.org/viewtopic-t-1142910.html
|
||||
rm "${ED}"/usr/share/locale/ru/LC_MESSAGES/pysol.mo || die
|
||||
}
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST xpadneo-0.9.1.tar.gz 1353080 BLAKE2B fc2207e005cae629da50048330cbaa7d27183b0bbb083d35c3c144e91470273b8c7006c4b62d10b947dbe4fd003ca39623630923e477aa4eff3c243405d876bd SHA512 51063d104f165018b8430e26d2ab5a622c214efaaba3f7706cc99892b2054f57667b419672de5c2696189d389401b07024658c36a88343d980de9802789bcb10
|
||||
DIST xpadneo-0.9.2.tar.gz 1342249 BLAKE2B de8ed5314d84cb8d4b90c893938f36cc680617ace10eba5d1a86b5acb66747a9c9214896c8375136681c40b988501d9426e1b18eb4ff01d565219c2d7c10c37f SHA512 84470e37e9e44e84a85a91a0df1bca24e109cf2209ae1b131530539202d00242997f1f069989df79a6345387de62c4651c70c641b533deab8ad9a9246841d12d
|
||||
|
@ -0,0 +1,74 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# pkgcheck note: toolchain-funcs is not unused
|
||||
inherit linux-mod toolchain-funcs udev
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/atar-axis/xpadneo.git"
|
||||
EGIT_MIN_CLONE_TYPE="single"
|
||||
else
|
||||
SRC_URI="https://github.com/atar-axis/xpadneo/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Advanced Linux Driver for Xbox One Wireless Controller"
|
||||
HOMEPAGE="https://atar-axis.github.io/xpadneo/"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
|
||||
S="${WORKDIR}/${P}/hid-${PN}"
|
||||
MODULE_NAMES="hid-${PN}(kernel/drivers/hid::src)"
|
||||
BUILD_PARAMS='V=1 LD="$(tc-getLD)" KERNEL_SOURCE_DIR="${KV_OUT_DIR}"'
|
||||
BUILD_TARGETS="modules"
|
||||
|
||||
CONFIG_CHECK="INPUT_FF_MEMLESS"
|
||||
|
||||
src_install() {
|
||||
linux-mod_src_install
|
||||
|
||||
insinto /etc/modprobe.d
|
||||
doins etc-modprobe.d/${PN}.conf
|
||||
|
||||
udev_dorules etc-udev-rules.d/60-${PN}.rules
|
||||
|
||||
dodoc -r ../docs/{[^i]*.md,descriptors,reports} ../NEWS.md
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
linux-mod_pkg_postinst
|
||||
udev_reload
|
||||
|
||||
local disable_ertm=/sys/module/bluetooth/parameters/disable_ertm
|
||||
if kernel_is -ge 5 12; then
|
||||
if [[ $(<${disable_ertm}) == Y ]]; then
|
||||
elog "Warning: bluetooth ERTM (Enhanced ReTransmission Mode) is disabled."
|
||||
elog "This is no longer recommended with kernel >=5.12 to use ${PN}."
|
||||
elog "Can remove ${EROOT}/etc/modprobe.d/no-ertm.conf if it exists, and run:"
|
||||
elog " echo N > ${disable_ertm}"
|
||||
elog "After changing, may need to re-pair the gamepad with bluetooth."
|
||||
fi
|
||||
elif [[ $(<${disable_ertm}) == N ]]; then
|
||||
elog "Warning: bluetooth ERTM (Enhanced ReTransmission Mode) is enabled."
|
||||
elog "While keeping enabled is recommended for rumble usage stability, it can"
|
||||
elog "cause connection issues without a fix included in kernel >=5.12"
|
||||
elog "If needed, this mode can be disabled by running:"
|
||||
elog " echo Y > ${disable_ertm}"
|
||||
elog " echo 'options bluetooth disable_ertm=y' > ${EROOT}/etc/modprobe.d/no-ertm.conf"
|
||||
elog "After changing, may need to re-pair the gamepad with bluetooth."
|
||||
fi
|
||||
|
||||
if [[ ! ${REPLACING_VERSIONS} ]]; then
|
||||
elog "To pair the gamepad and view module options, see documentation in:"
|
||||
elog " ${EROOT}/usr/share/doc/${PF}/"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
linux-mod_pkg_postrm
|
||||
udev_reload
|
||||
}
|
Binary file not shown.
@ -0,0 +1,33 @@
|
||||
From 213490099b7d24664ac635f25c9cf224d6a3e702 Mon Sep 17 00:00:00 2001
|
||||
From: Benjamin Otte <otte@redhat.com>
|
||||
Date: Thu, 26 May 2022 04:36:14 +0200
|
||||
Subject: [PATCH] x11: Always update shadow size
|
||||
|
||||
Not updating shadow size unconditionally would lead to shadow size not
|
||||
being set on map, which would lead mutter to think that we are a Window
|
||||
without extents and then become confused when we suddenly set some.
|
||||
|
||||
Make sure that doesn't happen by always having shadows set on map, just
|
||||
like GTK3.
|
||||
|
||||
Fixes #4136
|
||||
---
|
||||
gdk/x11/gdksurface-x11.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/gdk/x11/gdksurface-x11.c b/gdk/x11/gdksurface-x11.c
|
||||
index 8567d83eb8..fb3b0bd7df 100644
|
||||
--- a/gdk/x11/gdksurface-x11.c
|
||||
+++ b/gdk/x11/gdksurface-x11.c
|
||||
@@ -280,7 +280,7 @@ compute_toplevel_size (GdkSurface *surface,
|
||||
gdk_toplevel_size_init (&size, bounds_width, bounds_height);
|
||||
gdk_toplevel_notify_compute_size (GDK_TOPLEVEL (surface), &size);
|
||||
|
||||
- if (size.shadow.is_valid && update_geometry)
|
||||
+ if (size.shadow.is_valid)
|
||||
{
|
||||
update_shadow_size (surface,
|
||||
size.shadow.left,
|
||||
--
|
||||
GitLab
|
||||
|
@ -0,0 +1,217 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit gnome.org gnome2-utils meson optfeature python-any-r1 virtualx xdg
|
||||
|
||||
DESCRIPTION="GTK is a multi-platform toolkit for creating graphical user interfaces"
|
||||
HOMEPAGE="https://www.gtk.org/ https://gitlab.gnome.org/GNOME/gtk/"
|
||||
|
||||
LICENSE="LGPL-2+"
|
||||
SLOT="4"
|
||||
IUSE="aqua broadway colord cups examples ffmpeg gstreamer +introspection sysprof test vulkan wayland +X cpu_flags_x86_f16c"
|
||||
REQUIRED_USE="
|
||||
|| ( aqua wayland X )
|
||||
test? ( introspection )
|
||||
"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=dev-libs/fribidi-0.19.7
|
||||
>=dev-libs/glib-2.66.0:2
|
||||
>=media-libs/graphene-1.9.1[introspection?]
|
||||
>=media-libs/libepoxy-1.4[X(+)?]
|
||||
>=x11-libs/cairo-1.14[aqua?,glib,svg,X?]
|
||||
>=x11-libs/gdk-pixbuf-2.30:2[introspection?]
|
||||
>=x11-libs/pango-1.50.0[introspection?]
|
||||
media-libs/libpng:0=
|
||||
media-libs/tiff:0=
|
||||
media-libs/libjpeg-turbo:0=
|
||||
>=media-libs/harfbuzz-2.1.0:=
|
||||
x11-misc/shared-mime-info
|
||||
|
||||
colord? ( >=x11-misc/colord-0.1.9:0= )
|
||||
cups? ( >=net-print/cups-2.0 )
|
||||
ffmpeg? ( media-video/ffmpeg )
|
||||
gstreamer? (
|
||||
>=media-libs/gst-plugins-bad-1.12.3
|
||||
>=media-libs/gst-plugins-base-1.12.3[opengl]
|
||||
)
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.39:= )
|
||||
vulkan? ( media-libs/vulkan-loader:= )
|
||||
wayland? (
|
||||
>=dev-libs/wayland-1.20.0
|
||||
>=dev-libs/wayland-protocols-1.23
|
||||
media-libs/mesa[wayland]
|
||||
>=x11-libs/libxkbcommon-0.2
|
||||
)
|
||||
X? (
|
||||
>=app-accessibility/at-spi2-atk-2.5.3
|
||||
media-libs/fontconfig
|
||||
media-libs/mesa[X(+)]
|
||||
x11-libs/libX11
|
||||
>=x11-libs/libXi-1.8
|
||||
x11-libs/libXext
|
||||
>=x11-libs/libXrandr-1.5
|
||||
x11-libs/libXcursor
|
||||
x11-libs/libXfixes
|
||||
x11-libs/libXdamage
|
||||
x11-libs/libXinerama
|
||||
)
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
sysprof? ( >=dev-util/sysprof-capture-3.40.1:4 )
|
||||
X? ( x11-base/xorg-proto )
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
>=dev-util/gtk-update-icon-cache-3
|
||||
"
|
||||
# librsvg for svg icons (PDEPEND to avoid circular dep), bug #547710
|
||||
PDEPEND="
|
||||
gnome-base/librsvg
|
||||
>=x11-themes/adwaita-icon-theme-3.14
|
||||
"
|
||||
BDEPEND="
|
||||
dev-libs/gobject-introspection-common
|
||||
introspection? (
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_any_dep '
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
dev-python/docutils
|
||||
>=dev-util/gdbus-codegen-2.48
|
||||
dev-util/glib-utils
|
||||
>=sys-devel/gettext-0.19.7
|
||||
virtual/pkgconfig
|
||||
test? (
|
||||
dev-libs/glib:2
|
||||
wayland? ( dev-libs/weston[headless] )
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
# Fix https://gitlab.gnome.org/GNOME/gtk/-/issues/4136
|
||||
"${FILESDIR}/${P}-update-shadow-size.patch"
|
||||
)
|
||||
|
||||
python_check_deps() {
|
||||
python_has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" || return
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
use introspection && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
xdg_environment_reset
|
||||
|
||||
# dev-python/docutils installs rst2man.py, not rst2man
|
||||
sed -i -e "s/'rst2man'/'rst2man.py'/" docs/reference/gtk/meson.build || die
|
||||
# Nothing should use gtk4-update-icon-cache and an unversioned one is shipped by dev-util/gtk-update-icon-cache
|
||||
sed -i -e '/gtk4-update-icon-cache/d' tools/meson.build || die
|
||||
# Workaround RWX ELF sections, https://gitlab.gnome.org/GNOME/gtk/-/issues/4598
|
||||
sed -i -e 's/^ld =.*/ld = disabler()/g' gtk/meson.build demos/gtk-demo/meson.build demos/widget-factory/meson.build || die
|
||||
sed -i -e 's/^objcopy =.*/objcopy = disabler()/g' gtk/meson.build demos/gtk-demo/meson.build demos/widget-factory/meson.build || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
# GDK backends
|
||||
$(meson_use X x11-backend)
|
||||
$(meson_use wayland wayland-backend)
|
||||
$(meson_use broadway broadway-backend)
|
||||
-Dwin32-backend=false
|
||||
$(meson_use aqua macos-backend)
|
||||
|
||||
# Media backends
|
||||
$(meson_feature ffmpeg media-ffmpeg)
|
||||
$(meson_feature gstreamer media-gstreamer)
|
||||
|
||||
# Print backends
|
||||
$(meson_feature cups print-cups)
|
||||
|
||||
# Optional dependencies
|
||||
$(meson_feature vulkan)
|
||||
-Dcloudproviders=disabled # cloudprovider is not packaged in Gentoo yet
|
||||
$(meson_feature sysprof)
|
||||
-Dtracker=disabled # tracker3 is not packaged in Gentoo yet
|
||||
$(meson_feature colord)
|
||||
# Expected to fail with GCC < 11
|
||||
# See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71993
|
||||
$(meson_feature cpu_flags_x86_f16c f16c)
|
||||
|
||||
# Documentation and introspection
|
||||
-Dgtk_doc=false # we ship pregenerated API docs from tarball
|
||||
-Dman-pages=true
|
||||
$(meson_feature introspection)
|
||||
|
||||
# Demos and binaries
|
||||
$(meson_use examples build-examples)
|
||||
$(meson_use examples demos)
|
||||
$(meson_use test build-tests)
|
||||
-Dinstall-tests=false
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
"${BROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/gtk" || die
|
||||
|
||||
if use X; then
|
||||
einfo "Running tests under X"
|
||||
GSETTINGS_SCHEMA_DIR="${S}/gtk" virtx meson_src_test --setup=x11
|
||||
fi
|
||||
|
||||
if use wayland; then
|
||||
einfo "Running tests under Weston"
|
||||
|
||||
export XDG_RUNTIME_DIR="$(mktemp -p $(pwd) -d xdg-runtime-XXXXXX)"
|
||||
|
||||
weston --backend=headless-backend.so --socket=wayland-5 --idle-time=0 &
|
||||
compositor=$!
|
||||
export WAYLAND_DISPLAY=wayland-5
|
||||
|
||||
GSETTINGS_SCHEMA_DIR="${S}/gtk" meson_src_test --setup=wayland
|
||||
|
||||
exit_code=$?
|
||||
kill ${compositor}
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
|
||||
insinto /usr/share/gtk-doc/html
|
||||
# This will install API docs specific to X11 and wayland regardless of USE flags, but this is intentional
|
||||
doins -r "${S}"/docs/reference/{gtk/gtk4,gsk/gsk4,gdk/gdk4{,-wayland,-x11}}
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
xdg_pkg_preinst
|
||||
gnome2_schemas_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
gnome2_schemas_update
|
||||
|
||||
if ! has_version "app-text/evince"; then
|
||||
elog "Please install app-text/evince for print preview functionality."
|
||||
elog "Alternatively, check \"gtk-print-preview-command\" documentation and"
|
||||
elog "add it to your settings.ini file."
|
||||
fi
|
||||
|
||||
if use examples ; then
|
||||
optfeature "syntax highlighting in gtk4-demo" app-text/highlight
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_pkg_postrm
|
||||
gnome2_schemas_update
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue