parent
433c98e88e
commit
75294d3203
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,4 +1,2 @@
|
|||||||
DIST sysklogd-2.3.0.tar.gz 441168 BLAKE2B fa2ec9975d51bcb26d7acc88ab02e211453fc7e6d722ec6d38543a20833ae9c49b9a274d323e7a32deb82ca9c38025947e25b15424084a0ce345410a2e686a4d SHA512 7a16dd3f45a71015ad055e64aa62f4f94b0a8aa739f407c03376241cbc16ff764a768a698362cb428d150b169934798b774622b330903b287f9af5dd846775fc
|
DIST sysklogd-2.3.0.tar.gz 441168 BLAKE2B fa2ec9975d51bcb26d7acc88ab02e211453fc7e6d722ec6d38543a20833ae9c49b9a274d323e7a32deb82ca9c38025947e25b15424084a0ce345410a2e686a4d SHA512 7a16dd3f45a71015ad055e64aa62f4f94b0a8aa739f407c03376241cbc16ff764a768a698362cb428d150b169934798b774622b330903b287f9af5dd846775fc
|
||||||
DIST sysklogd-2.4.0.tar.gz 450757 BLAKE2B 65f7174ebad122d17032e0095c65df80110a992a40b41a3ecddb1f813605094ce59c1313f5d4f35ae33d0cb7557392a176fc9c2f0f69162b74cb69d531be0a09 SHA512 0f9c4498b3677636abd636a80a8256095798b09f43b6febbcb386b3bce7faae23c44aebc54234462a7aa53fb8e5bf821e89081bdbdba0f72218ac8481365029c
|
DIST sysklogd-2.4.4.tar.gz 451938 BLAKE2B 218d9487440ab3fa395f596e5e4a9fa95df9dfa416470da658a9ac742437050c81a6e62b42763b038b8dc5d8cfab2ba30d049e269b08a66882f6d3f99863ee7b SHA512 434609dd11951b37d62b5371a2aef66424bb15ae4c98cba44762e8338ac135b37a453e5a4f40492ab80bce9b72faefc9a0ad065753f4cc5f7595911477b26e4a
|
||||||
DIST sysklogd-2.4.2.tar.gz 451760 BLAKE2B 35f59f3343e66be33cd6c0277e53a49dd94f593da9dbe0af685f513de9e3c5c4103d79530aba48b9515222556a3d5751a86c89be04aa6983b94b02d21db855be SHA512 5d17bfd25248f8ddc0938f00c9c11c5d7cfa559904b984bf6c6fc50bcddf0ac0263ff175cc05e039b8635012c097207b84bf9270df5c5bf0a9d6532d01b0a9ec
|
|
||||||
DIST sysklogd-2.4.3.tar.gz 451887 BLAKE2B 210ad69fab10af2724c7554a10347c238eba97a7a3e7fec95ca12520976abd60a2ce762ff5effb528aa7f6f9191ecc95f9425a905de83f1e7820bd0b0294186c SHA512 9ff935811974b812f84e96bea64d284d718cab53038a4c11d74e50ae33d14d5d3c1f843d7c2771edd6ea1f742f108fc60aa81b4a686c336c276f76ea73d2c0c1
|
|
||||||
|
@ -1,86 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit flag-o-matic systemd toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="Standard log daemons"
|
|
||||||
HOMEPAGE="https://troglobit.com/sysklogd.html https://github.com/troglobit/sysklogd"
|
|
||||||
|
|
||||||
if [[ ${PV} == *9999 ]] ; then
|
|
||||||
inherit autotools git-r3
|
|
||||||
EGIT_REPO_URI="https://github.com/troglobit/sysklogd.git"
|
|
||||||
else
|
|
||||||
SRC_URI="https://github.com/troglobit/sysklogd/releases/download/v${PV}/${P}.tar.gz"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
|
||||||
fi
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="logger logrotate systemd"
|
|
||||||
# Needs network access
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
DEPEND="
|
|
||||||
logger? (
|
|
||||||
!<sys-apps/util-linux-2.34-r3
|
|
||||||
!>=sys-apps/util-linux-2.34-r3[logger]
|
|
||||||
)
|
|
||||||
"
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
logrotate? ( app-admin/logrotate )"
|
|
||||||
|
|
||||||
DOCS=( ChangeLog.md README.md )
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
append-lfs-flags
|
|
||||||
tc-export CC
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
[[ ${PV} == *9999 ]] && eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local myeconfargs=(
|
|
||||||
--disable-static
|
|
||||||
--runstatedir="${EPREFIX}"/run
|
|
||||||
$(use_with logger)
|
|
||||||
$(use_with systemd systemd $(systemd_get_systemunitdir))
|
|
||||||
)
|
|
||||||
econf "${myeconfargs[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
|
|
||||||
insinto /etc
|
|
||||||
doins syslog.conf
|
|
||||||
keepdir /etc/syslog.d
|
|
||||||
|
|
||||||
newinitd "${FILESDIR}"/sysklogd.rc10 sysklogd
|
|
||||||
newconfd "${FILESDIR}"/sysklogd.confd3 sysklogd
|
|
||||||
|
|
||||||
if use logrotate ; then
|
|
||||||
insinto /etc/logrotate.d
|
|
||||||
newins "${FILESDIR}"/sysklogd.logrotate sysklogd
|
|
||||||
sed 's@ -r 10M:10@@' -i "${ED}"/etc/conf.d/sysklogd || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
find "${ED}" -type f -name "*.la" -delete || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if ! use logrotate && [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 2.0 ; then
|
|
||||||
elog "Starting with version 2.0 syslogd has built in log rotation"
|
|
||||||
elog "functionality that does no longer require a running cron daemon."
|
|
||||||
elog "So we no longer install any log rotation cron files for sysklogd."
|
|
||||||
fi
|
|
||||||
if [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 2.1 ; then
|
|
||||||
elog "Starting with version 2.1 sysklogd no longer provides klogd."
|
|
||||||
elog "syslogd now also logs kernel messages."
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,88 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit flag-o-matic systemd toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="Standard log daemons"
|
|
||||||
HOMEPAGE="https://troglobit.com/sysklogd.html https://github.com/troglobit/sysklogd"
|
|
||||||
|
|
||||||
if [[ ${PV} == *9999 ]] ; then
|
|
||||||
inherit autotools git-r3
|
|
||||||
EGIT_REPO_URI="https://github.com/troglobit/sysklogd.git"
|
|
||||||
else
|
|
||||||
SRC_URI="https://github.com/troglobit/sysklogd/releases/download/v${PV}/${P}.tar.gz"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
|
||||||
fi
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="logger logrotate"
|
|
||||||
# Needs network access
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
DEPEND="
|
|
||||||
logger? (
|
|
||||||
!<sys-apps/util-linux-2.34-r3
|
|
||||||
!>=sys-apps/util-linux-2.34-r3[logger]
|
|
||||||
)
|
|
||||||
"
|
|
||||||
RDEPEND="
|
|
||||||
${DEPEND}
|
|
||||||
logrotate? ( app-admin/logrotate )
|
|
||||||
"
|
|
||||||
|
|
||||||
DOCS=( ChangeLog.md README.md )
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
[[ ${PV} == *9999 ]] && eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
append-lfs-flags
|
|
||||||
tc-export CC
|
|
||||||
|
|
||||||
local myeconfargs=(
|
|
||||||
--disable-static
|
|
||||||
--runstatedir="${EPREFIX}"/run
|
|
||||||
--with-systemd=$(systemd_get_systemunitdir)
|
|
||||||
$(use_with logger)
|
|
||||||
)
|
|
||||||
|
|
||||||
econf "${myeconfargs[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
|
|
||||||
insinto /etc
|
|
||||||
doins syslog.conf
|
|
||||||
keepdir /etc/syslog.d
|
|
||||||
|
|
||||||
newinitd "${FILESDIR}"/sysklogd.rc10 sysklogd
|
|
||||||
newconfd "${FILESDIR}"/sysklogd.confd3 sysklogd
|
|
||||||
|
|
||||||
if use logrotate ; then
|
|
||||||
insinto /etc/logrotate.d
|
|
||||||
newins "${FILESDIR}"/sysklogd.logrotate sysklogd
|
|
||||||
sed 's@ -r 10M:10@@' -i "${ED}"/etc/conf.d/sysklogd || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
find "${ED}" -type f -name "*.la" -delete || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if ! use logrotate && [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 2.0 ; then
|
|
||||||
elog "Starting with version 2.0 syslogd has built in log rotation"
|
|
||||||
elog "functionality that does no longer require a running cron daemon."
|
|
||||||
elog "So we no longer install any log rotation cron files for sysklogd."
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 2.1 ; then
|
|
||||||
elog "Starting with version 2.1 sysklogd no longer provides klogd."
|
|
||||||
elog "syslogd now also logs kernel messages."
|
|
||||||
fi
|
|
||||||
}
|
|
Binary file not shown.
@ -0,0 +1,13 @@
|
|||||||
|
Ensure that :checkhealth is happy with the Gentoo build type.
|
||||||
|
https://bugs.gentoo.org/757744
|
||||||
|
--- a/runtime/autoload/health/nvim.vim
|
||||||
|
+++ b/runtime/autoload/health/nvim.vim
|
||||||
|
@@ -135,7 +135,7 @@ function! s:check_performance() abort
|
||||||
|
let buildtype = matchstr(execute('version'), '\v\cbuild type:?\s*[^\n\r\t ]+')
|
||||||
|
if empty(buildtype)
|
||||||
|
call health#report_error('failed to get build type from :version')
|
||||||
|
- elseif buildtype =~# '\v(MinSizeRel|Release|RelWithDebInfo)'
|
||||||
|
+ elseif buildtype =~# '\v(MinSizeRel|Release|RelWithDebInfo|Gentoo)'
|
||||||
|
call health#report_ok(buildtype)
|
||||||
|
else
|
||||||
|
call health#report_info(buildtype)
|
Binary file not shown.
@ -1,2 +1,3 @@
|
|||||||
DIST dockerfile-mode-1.6.tar.gz 7795 BLAKE2B 3ba19ed2957d6d5bb1c8a43710bfda7c5681159820d313a19d03a00ba7982237ec09c4b1af5d6f304d4fcb9c228b7ff92ec0af1ae0efd4f2f18aedaf2a3a790a SHA512 64077ed231544bc737a5d7fd3bafd43f46861eb39e31908b90a50a6a7c4ea71f82239d7b4eb4cf2abb852da2a619c82aaeb236f7b0c537ff85b0ce4c1090a0de
|
DIST dockerfile-mode-1.6.tar.gz 7795 BLAKE2B 3ba19ed2957d6d5bb1c8a43710bfda7c5681159820d313a19d03a00ba7982237ec09c4b1af5d6f304d4fcb9c228b7ff92ec0af1ae0efd4f2f18aedaf2a3a790a SHA512 64077ed231544bc737a5d7fd3bafd43f46861eb39e31908b90a50a6a7c4ea71f82239d7b4eb4cf2abb852da2a619c82aaeb236f7b0c537ff85b0ce4c1090a0de
|
||||||
DIST dockerfile-mode-1.7.tar.gz 7880 BLAKE2B 72a4824ab2b89f516de7988d5ba3674e59e88b713c70ba585a4bbe517685b297b18ab34ff1a1066036f901725b4fb6b292286529935800a1366abb5e3649f900 SHA512 eb05e1f0ba0b9752f780106b94a939c3182512a1c9670b2e63c8d0c797b8e0eb979751868a3d337986568fa104302e09d7a1bae514cb2e210454d3dae419e58b
|
DIST dockerfile-mode-1.7.tar.gz 7880 BLAKE2B 72a4824ab2b89f516de7988d5ba3674e59e88b713c70ba585a4bbe517685b297b18ab34ff1a1066036f901725b4fb6b292286529935800a1366abb5e3649f900 SHA512 eb05e1f0ba0b9752f780106b94a939c3182512a1c9670b2e63c8d0c797b8e0eb979751868a3d337986568fa104302e09d7a1bae514cb2e210454d3dae419e58b
|
||||||
|
DIST dockerfile-mode-1.8.tar.gz 7882 BLAKE2B 8db9ffadbc673ed37e04cd300834ceff3505b5addf3ea7432dcbfc221d392c63f7641ef80d1f464576963aadff9d038b2761c7dde72004fed5e0027519045d30 SHA512 8bae08037813730b93919135fe727a6506bfb0decdc385b22afe41d7f1df750d3f0cc508453faa7b0e90d347584f805acca54bbf7da6cae2cf3108ff1047fd58
|
||||||
|
@ -0,0 +1,19 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
NEED_EMACS=24
|
||||||
|
|
||||||
|
inherit elisp
|
||||||
|
|
||||||
|
DESCRIPTION="GNU Emacs mode for handling Dockerfiles"
|
||||||
|
HOMEPAGE="https://github.com/spotify/dockerfile-mode/"
|
||||||
|
SRC_URI="https://github.com/spotify/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
|
||||||
|
DOCS=( README.md )
|
||||||
|
SITEFILE="50${PN}-gentoo.el"
|
Binary file not shown.
@ -0,0 +1,648 @@
|
|||||||
|
# Copyright 2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
# To add a new Python here:
|
||||||
|
# 1. Patch src/libs/xpcom18a4/python/Makefile.kmk (copy the previous impl's logic)
|
||||||
|
# Do NOT skip this part. It'll end up silently not-building the Python extension
|
||||||
|
# or otherwise misbehaving if you do.
|
||||||
|
#
|
||||||
|
# 2. Then update PYTHON_COMPAT & set PYTHON_SINGLE_TARGET for testing w/ USE=python.
|
||||||
|
#
|
||||||
|
# May need to look at other distros (e.g. Arch Linux) to find patches for newer
|
||||||
|
# Python versions as upstream tends to lag. Upstream may have patches on their
|
||||||
|
# trunk branch but not release branch.
|
||||||
|
#
|
||||||
|
# See bug #785835, bug #856121.
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
|
||||||
|
inherit desktop edo flag-o-matic java-pkg-opt-2 linux-info multilib optfeature pax-utils python-single-r1 tmpfiles toolchain-funcs udev xdg
|
||||||
|
|
||||||
|
MY_PN="VirtualBox"
|
||||||
|
MY_PV="${PV/beta/BETA}"
|
||||||
|
MY_PV="${MY_PV/rc/RC}"
|
||||||
|
MY_P=${MY_PN}-${MY_PV}
|
||||||
|
[[ ${PV} == *a ]] && DIR_PV="$(ver_cut 1-3)"
|
||||||
|
|
||||||
|
DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
|
||||||
|
HOMEPAGE="https://www.virtualbox.org/"
|
||||||
|
SRC_URI="https://download.virtualbox.org/virtualbox/${DIR_PV:-${MY_PV}}/${MY_P}.tar.bz2
|
||||||
|
https://gitweb.gentoo.org/proj/virtualbox-patches.git/snapshot/virtualbox-patches-${MY_PV}.tar.bz2"
|
||||||
|
S="${WORKDIR}/${MY_PN}-${DIR_PV:-${MY_PV}}"
|
||||||
|
|
||||||
|
LICENSE="GPL-2 dtrace? ( CDDL )"
|
||||||
|
SLOT="0/$(ver_cut 1-2)"
|
||||||
|
if [[ ${PV} != *_beta* ]] && [[ ${PV} != *_rc* ]] ; then
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
fi
|
||||||
|
IUSE="alsa debug doc dtrace headless java lvm +opus pam pax-kernel pch pulseaudio +opengl python +qt5 +sdk +udev vboxwebsrv vnc"
|
||||||
|
|
||||||
|
unset WATCOM #856769
|
||||||
|
|
||||||
|
COMMON_DEPEND="
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
acct-group/vboxusers
|
||||||
|
~app-emulation/virtualbox-modules-${DIR_PV:-${PV}}
|
||||||
|
dev-libs/libIDL
|
||||||
|
>=dev-libs/libxslt-1.1.19
|
||||||
|
net-misc/curl
|
||||||
|
dev-libs/libxml2
|
||||||
|
media-libs/libpng:0=
|
||||||
|
media-libs/libvpx:0=
|
||||||
|
sys-libs/zlib:=
|
||||||
|
!headless? (
|
||||||
|
media-libs/libsdl:0[X,video]
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libxcb:=
|
||||||
|
x11-libs/libXcursor
|
||||||
|
x11-libs/libXext
|
||||||
|
x11-libs/libXmu
|
||||||
|
x11-libs/libXt
|
||||||
|
opengl? (
|
||||||
|
media-libs/libglvnd[X]
|
||||||
|
virtual/glu
|
||||||
|
)
|
||||||
|
qt5? (
|
||||||
|
dev-qt/qtcore:5
|
||||||
|
dev-qt/qtgui:5
|
||||||
|
dev-qt/qtprintsupport:5
|
||||||
|
dev-qt/qtwidgets:5
|
||||||
|
dev-qt/qtx11extras:5
|
||||||
|
opengl? ( dev-qt/qtopengl:5 )
|
||||||
|
x11-libs/libXinerama
|
||||||
|
)
|
||||||
|
)
|
||||||
|
dev-libs/openssl:0=
|
||||||
|
virtual/libcrypt:=
|
||||||
|
lvm? ( sys-fs/lvm2 )
|
||||||
|
opus? ( media-libs/opus )
|
||||||
|
udev? ( >=virtual/udev-171 )
|
||||||
|
vnc? ( >=net-libs/libvncserver-0.9.9 )
|
||||||
|
"
|
||||||
|
# We're stuck on JDK (and JRE, I guess?) 1.8 because of need for wsimport
|
||||||
|
# with USE="vboxwebsrv java". Note that we have to put things in DEPEND,
|
||||||
|
# not (only, anyway) BDEPEND, as the eclass magic to set the environment variables
|
||||||
|
# based on *DEPEND doesn't work for BDEPEND at least right now.
|
||||||
|
#
|
||||||
|
# There's a comment in Config.kmk about it
|
||||||
|
# ("With Java 11 wsimport was removed, usually part of a separate install now.")
|
||||||
|
# but it needs more investigation.
|
||||||
|
#
|
||||||
|
# See bug #832166.
|
||||||
|
DEPEND="
|
||||||
|
${COMMON_DEPEND}
|
||||||
|
alsa? ( >=media-libs/alsa-lib-1.0.13 )
|
||||||
|
!headless? (
|
||||||
|
x11-libs/libXinerama
|
||||||
|
opengl? ( virtual/opengl )
|
||||||
|
)
|
||||||
|
java? ( virtual/jdk:1.8 )
|
||||||
|
pam? ( sys-libs/pam )
|
||||||
|
pax-kernel? ( sys-apps/elfix )
|
||||||
|
pulseaudio? ( media-sound/pulseaudio )
|
||||||
|
vboxwebsrv? ( net-libs/gsoap[-gnutls(-)] )
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
>=dev-util/kbuild-0.1.9998.3127
|
||||||
|
>=dev-lang/yasm-0.6.2
|
||||||
|
sys-apps/which
|
||||||
|
sys-devel/bin86
|
||||||
|
sys-libs/libcap
|
||||||
|
sys-power/iasl
|
||||||
|
virtual/pkgconfig
|
||||||
|
doc? (
|
||||||
|
app-text/docbook-sgml-dtd:4.4
|
||||||
|
dev-texlive/texlive-basic
|
||||||
|
dev-texlive/texlive-latex
|
||||||
|
dev-texlive/texlive-latexrecommended
|
||||||
|
dev-texlive/texlive-latexextra
|
||||||
|
dev-texlive/texlive-fontsrecommended
|
||||||
|
dev-texlive/texlive-fontsextra
|
||||||
|
)
|
||||||
|
java? ( virtual/jdk:1.8 )
|
||||||
|
qt5? ( dev-qt/linguist-tools:5 )
|
||||||
|
"
|
||||||
|
RDEPEND="
|
||||||
|
${COMMON_DEPEND}
|
||||||
|
java? ( virtual/jre:1.8 )
|
||||||
|
"
|
||||||
|
|
||||||
|
QA_FLAGS_IGNORED="
|
||||||
|
usr/lib64/virtualbox/VBoxDDR0.r0
|
||||||
|
usr/lib64/virtualbox/VMMR0.r0
|
||||||
|
"
|
||||||
|
|
||||||
|
QA_TEXTRELS="
|
||||||
|
usr/lib64/virtualbox/VMMR0.r0
|
||||||
|
"
|
||||||
|
|
||||||
|
QA_EXECSTACK="
|
||||||
|
usr/lib64/virtualbox/iPxeBaseBin
|
||||||
|
usr/lib64/virtualbox/VMMR0.r0
|
||||||
|
usr/lib64/virtualbox/VBoxDDR0.r0
|
||||||
|
"
|
||||||
|
|
||||||
|
QA_WX_LOAD="
|
||||||
|
usr/lib64/virtualbox/iPxeBaseBin
|
||||||
|
"
|
||||||
|
|
||||||
|
QA_PRESTRIPPED="
|
||||||
|
usr/lib64/virtualbox/VMMR0.r0
|
||||||
|
usr/lib64/virtualbox/VBoxDDR0.r0
|
||||||
|
"
|
||||||
|
|
||||||
|
REQUIRED_USE="
|
||||||
|
java? ( sdk )
|
||||||
|
python? ( sdk )
|
||||||
|
vboxwebsrv? ( java )
|
||||||
|
${PYTHON_REQUIRED_USE}
|
||||||
|
"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-6.1.26-configure-include-qt5-path.patch # bug #805365
|
||||||
|
|
||||||
|
# This patch is needed to avoid automagic detection based on a hardcoded
|
||||||
|
# list of Pythons in configure. It's necessary but not sufficient
|
||||||
|
# (see the rest of the ebuild's logic for the remainder) to handle
|
||||||
|
# proper Python selection.
|
||||||
|
"${FILESDIR}"/${PN}-6.1.34-r3-python.patch
|
||||||
|
|
||||||
|
# Patch grabbed from Arch Linux / upstream for Python 3.10 support
|
||||||
|
"${FILESDIR}"/${PN}-6.1.36-python3.10.patch
|
||||||
|
|
||||||
|
# Downloaded patchset
|
||||||
|
"${WORKDIR}"/virtualbox-patches-${MY_PV}/patches
|
||||||
|
)
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
if ! use headless && ! use qt5 ; then
|
||||||
|
einfo "No USE=\"qt5\" selected, this build will not include any Qt frontend."
|
||||||
|
elif use headless && use qt5 ; then
|
||||||
|
einfo "You selected USE=\"headless qt5\", defaulting to"
|
||||||
|
einfo "USE=\"headless\", this build will not include any X11/Qt frontend."
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! use opengl ; then
|
||||||
|
einfo "No USE=\"opengl\" selected, this build will lack"
|
||||||
|
einfo "the OpenGL feature."
|
||||||
|
fi
|
||||||
|
if ! use python ; then
|
||||||
|
einfo "You have disabled the \"python\" USE flag. This will only"
|
||||||
|
einfo "disable the python bindings being installed."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
java-pkg-opt-2_pkg_setup
|
||||||
|
python-single-r1_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# Only add nopie patch when we're on hardened
|
||||||
|
if gcc-specs-pie ; then
|
||||||
|
eapply "${FILESDIR}"/050_virtualbox-5.2.8-nopie.patch
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Only add paxmark patch when we're on pax-kernel
|
||||||
|
if use pax-kernel ; then
|
||||||
|
eapply "${FILESDIR}"/virtualbox-5.2.8-paxmark-bldprogs.patch
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Remove shipped binaries (kBuild, yasm), see bug #232775
|
||||||
|
rm -r kBuild/bin tools || die
|
||||||
|
|
||||||
|
# Replace pointless GCC version check with something more sensible.
|
||||||
|
# This is needed for the qt5 version check.
|
||||||
|
sed -e 's@^check_gcc$@cc_maj="$(${CC} -dumpversion | cut -d. -f1)" ; cc_min="$(${CC} -dumpversion | cut -d. -f2)"@' \
|
||||||
|
-i configure || die
|
||||||
|
|
||||||
|
# Disable things unused or split into separate ebuilds
|
||||||
|
sed -e "s@MY_LIBDIR@$(get_libdir)@" \
|
||||||
|
"${FILESDIR}"/${PN}-5-localconfig > LocalConfig.kmk || die
|
||||||
|
|
||||||
|
if ! use pch ; then
|
||||||
|
# bug #753323
|
||||||
|
printf '\n%s\n' "VBOX_WITHOUT_PRECOMPILED_HEADERS=1" \
|
||||||
|
>> LocalConfig.kmk || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Respect LDFLAGS
|
||||||
|
sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
|
||||||
|
-i Config.kmk src/libs/xpcom18a4/Config.kmk || die
|
||||||
|
|
||||||
|
# Do not use hard-coded ld (related to bug #488176)
|
||||||
|
sed -e '/QUIET)ld /s@ld @$(LD) @' \
|
||||||
|
-i src/VBox/Devices/PC/ipxe/Makefile.kmk || die
|
||||||
|
|
||||||
|
# Use PAM only when pam USE flag is enbaled (bug #376531)
|
||||||
|
if ! use pam ; then
|
||||||
|
einfo "Disabling PAM removes the possibility to use the VRDP features."
|
||||||
|
sed -i 's@^.*VBOX_WITH_PAM@#VBOX_WITH_PAM@' Config.kmk || die
|
||||||
|
sed -i 's@\(.*/auth/Makefile.kmk.*\)@#\1@' \
|
||||||
|
src/VBox/HostServices/Makefile.kmk || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
# add correct java path
|
||||||
|
if use java ; then
|
||||||
|
sed "s@/usr/lib/jvm/java-6-sun@$(java-config -O)@" \
|
||||||
|
-i "${S}"/Config.kmk || die
|
||||||
|
java-pkg-opt-2_src_prepare
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
tc-ld-disable-gold # bug #488176
|
||||||
|
|
||||||
|
#856811 #864274
|
||||||
|
# cannot filter out only one flag, some combinations of these flags produce buggy executables
|
||||||
|
for i in abm avx avx2 bmi bmi2 fma fma4 popcnt; do
|
||||||
|
append-cflags $(test-flags-CC -mno-$i)
|
||||||
|
append-cxxflags $(test-flags-CXX -mno-$i)
|
||||||
|
done
|
||||||
|
|
||||||
|
tc-export AR CC CXX LD RANLIB
|
||||||
|
export HOST_CC="$(tc-getBUILD_CC)"
|
||||||
|
|
||||||
|
local myconf=(
|
||||||
|
--with-gcc="$(tc-getCC)"
|
||||||
|
--with-g++="$(tc-getCXX)"
|
||||||
|
|
||||||
|
--disable-dbus
|
||||||
|
--disable-kmods
|
||||||
|
|
||||||
|
$(usex alsa '' --disable-alsa)
|
||||||
|
$(usex debug --build-debug '')
|
||||||
|
$(usex doc '' --disable-docs)
|
||||||
|
$(usex java '' --disable-java)
|
||||||
|
$(usex lvm '' --disable-devmapper)
|
||||||
|
$(usex opus '' --disable-libopus)
|
||||||
|
$(usex pulseaudio '' --disable-pulse)
|
||||||
|
$(usex python '' --disable-python)
|
||||||
|
$(usex vboxwebsrv --enable-webservice '')
|
||||||
|
$(usex vnc --enable-vnc '')
|
||||||
|
)
|
||||||
|
|
||||||
|
if ! use headless ; then
|
||||||
|
myconf+=(
|
||||||
|
$(usex opengl '' --disable-opengl)
|
||||||
|
$(usex qt5 '' --disable-qt)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
myconf+=(
|
||||||
|
--build-headless
|
||||||
|
--disable-opengl
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use amd64 && ! has_multilib_profile ; then
|
||||||
|
myconf+=( --disable-vmmraw )
|
||||||
|
fi
|
||||||
|
|
||||||
|
# bug #843437
|
||||||
|
cat >> LocalConfig.kmk <<-EOF || die
|
||||||
|
CXXFLAGS=${CXXFLAGS}
|
||||||
|
CFLAGS=${CFLAGS}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# not an autoconf script
|
||||||
|
edo ./configure "${myconf[@]}"
|
||||||
|
|
||||||
|
# Force usage of chosen Python implementation
|
||||||
|
# bug #856121, bug #785835
|
||||||
|
sed -i \
|
||||||
|
-e '/VBOX_WITH_PYTHON.*=/d' \
|
||||||
|
-e '/VBOX_PATH_PYTHON_INC.*=/d' \
|
||||||
|
-e '/VBOX_LIB_PYTHON.*=/d' \
|
||||||
|
AutoConfig.kmk || die
|
||||||
|
|
||||||
|
cat >> AutoConfig.kmk <<-EOF || die
|
||||||
|
VBOX_WITH_PYTHON=$(usev python 1)
|
||||||
|
VBOX_PATH_PYTHON_INC=$(python_get_includedir)
|
||||||
|
VBOX_LIB_PYTHON=$(python_get_library_path)
|
||||||
|
EOF
|
||||||
|
|
||||||
|
if use python ; then
|
||||||
|
local mangled_python="${EPYTHON#python}"
|
||||||
|
mangled_python="${mangled_python/.}"
|
||||||
|
|
||||||
|
# Stub out the script which defines what the Makefile ends up
|
||||||
|
# building for. gen_python_deps.py gets called by the Makefile
|
||||||
|
# with some args and it spits out a bunch of paths for a hardcoded
|
||||||
|
# list of Pythons. We just override it with what we're actually using.
|
||||||
|
# This minimises the amount of patching we have to do for new Pythons.
|
||||||
|
cat > src/libs/xpcom18a4/python/gen_python_deps.py <<-EOF || die
|
||||||
|
print("VBOX_PYTHON${mangled_python}_INC=$(python_get_includedir)")
|
||||||
|
print("VBOX_PYTHON${mangled_python}_LIB=$(python_get_library_path)")
|
||||||
|
print("VBOX_PYTHONDEF_INC=$(python_get_includedir)")
|
||||||
|
print("VBOX_PYTHONDEF_LIB=$(python_get_library_path)")
|
||||||
|
EOF
|
||||||
|
|
||||||
|
chmod +x src/libs/xpcom18a4/python/gen_python_deps.py || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
source ./env.sh || die
|
||||||
|
|
||||||
|
# Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529)
|
||||||
|
MAKEJOBS=$(grep -Eo '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS})
|
||||||
|
MAKELOAD=$(grep -Eo '(\-l|\-\-load-average)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS})
|
||||||
|
MAKEOPTS="${MAKEJOBS} ${MAKELOAD}"
|
||||||
|
|
||||||
|
local myemakeargs=(
|
||||||
|
VBOX_BUILD_PUBLISHER=_Gentoo
|
||||||
|
VBOX_WITH_VBOXIMGMOUNT=1
|
||||||
|
|
||||||
|
KBUILD_VERBOSE=2
|
||||||
|
|
||||||
|
AS="$(tc-getCC)"
|
||||||
|
CC="$(tc-getCC)"
|
||||||
|
CXX="$(tc-getCXX)"
|
||||||
|
|
||||||
|
TOOL_GCC3_CC="$(tc-getCC)"
|
||||||
|
TOOL_GCC3_LD="$(tc-getCC)"
|
||||||
|
TOOL_GCC3_AS="$(tc-getCC)"
|
||||||
|
TOOL_GCC3_AR="$(tc-getAR)"
|
||||||
|
TOOL_GCC3_OBJCOPY="$(tc-getOBJCOPY)"
|
||||||
|
|
||||||
|
TOOL_GXX3_CC="$(tc-getCC)"
|
||||||
|
TOOL_GXX3_CXX="$(tc-getCXX)"
|
||||||
|
TOOL_GXX3_LD="$(tc-getCXX)"
|
||||||
|
TOOL_GXX3_AS="$(tc-getCXX)"
|
||||||
|
TOOL_GXX3_AR="$(tc-getAR)"
|
||||||
|
TOOL_GXX3_OBJCOPY="$(tc-getOBJCOPY)"
|
||||||
|
|
||||||
|
TOOL_GCC3_CFLAGS="${CFLAGS}"
|
||||||
|
TOOL_GCC3_CXXFLAGS="${CXXFLAGS}"
|
||||||
|
VBOX_GCC_OPT="${CXXFLAGS}"
|
||||||
|
VBOX_NM="$(tc-getNM)"
|
||||||
|
|
||||||
|
TOOL_YASM_AS=yasm
|
||||||
|
)
|
||||||
|
|
||||||
|
if use amd64 && has_multilib_profile ; then
|
||||||
|
myemakeargs+=(
|
||||||
|
CC32="$(tc-getCC) -m32"
|
||||||
|
CXX32="$(tc-getCXX) -m32"
|
||||||
|
|
||||||
|
TOOL_GCC32_CC="$(tc-getCC) -m32"
|
||||||
|
TOOL_GCC32_CXX="$(tc-getCXX) -m32"
|
||||||
|
TOOL_GCC32_LD="$(tc-getCC) -m32"
|
||||||
|
TOOL_GCC32_AS="$(tc-getCC) -m32"
|
||||||
|
TOOL_GCC32_AR="$(tc-getAR)"
|
||||||
|
TOOL_GCC32_OBJCOPY="$(tc-getOBJCOPY)"
|
||||||
|
|
||||||
|
TOOL_GXX32_CC="$(tc-getCC) -m32"
|
||||||
|
TOOL_GXX32_CXX="$(tc-getCXX) -m32"
|
||||||
|
TOOL_GXX32_LD="$(tc-getCXX) -m32"
|
||||||
|
TOOL_GXX32_AS="$(tc-getCXX) -m32"
|
||||||
|
TOOL_GXX32_AR="$(tc-getAR)"
|
||||||
|
TOOL_GXX32_OBJCOPY="$(tc-getOBJCOPY)"
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
MAKE="kmk" emake "${myemakeargs[@]}" all
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cd "${S}"/out/linux.${ARCH}/$(usex debug debug release)/bin || die
|
||||||
|
|
||||||
|
local vbox_inst_path="/usr/$(get_libdir)/${PN}" each size ico icofile
|
||||||
|
|
||||||
|
vbox_inst() {
|
||||||
|
local binary="${1}"
|
||||||
|
local perms="${2:-0750}"
|
||||||
|
local path="${3:-${vbox_inst_path}}"
|
||||||
|
|
||||||
|
[[ -n "${binary}" ]] || die "vbox_inst: No binary given!"
|
||||||
|
[[ ${perms} =~ ^[[:digit:]]+{4}$ ]] || die "vbox_inst: perms must consist of four digits."
|
||||||
|
|
||||||
|
insinto ${path}
|
||||||
|
doins ${binary}
|
||||||
|
fowners root:vboxusers ${path}/${binary}
|
||||||
|
fperms ${perms} ${path}/${binary}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Create configuration files
|
||||||
|
insinto /etc/vbox
|
||||||
|
newins "${FILESDIR}/${PN}-4-config" vbox.cfg
|
||||||
|
|
||||||
|
# Set the correct libdir
|
||||||
|
sed \
|
||||||
|
-e "s@MY_LIBDIR@$(get_libdir)@" \
|
||||||
|
-i "${ED}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
|
||||||
|
|
||||||
|
# Install the wrapper script
|
||||||
|
exeinto ${vbox_inst_path}
|
||||||
|
newexe "${FILESDIR}/${PN}-ose-6-wrapper" "VBox"
|
||||||
|
fowners root:vboxusers ${vbox_inst_path}/VBox
|
||||||
|
fperms 0750 ${vbox_inst_path}/VBox
|
||||||
|
|
||||||
|
# Install binaries and libraries
|
||||||
|
insinto ${vbox_inst_path}
|
||||||
|
doins -r components
|
||||||
|
|
||||||
|
for each in VBox{Autostart,BalloonCtrl,BugReport,CpuReport,ExtPackHelperApp,Manage,SVC,Tunctl,VMMPreload,XPCOMIPCD} vboximg-mount *so *r0 iPxeBaseBin ; do
|
||||||
|
vbox_inst ${each}
|
||||||
|
done
|
||||||
|
|
||||||
|
# These binaries need to be suid root.
|
||||||
|
for each in VBox{Headless,Net{AdpCtl,DHCP,NAT}} ; do
|
||||||
|
vbox_inst ${each} 4750
|
||||||
|
done
|
||||||
|
|
||||||
|
# Install EFI Firmware files (bug #320757)
|
||||||
|
for each in VBoxEFI{32,64}.fd ; do
|
||||||
|
vbox_inst ${each} 0644
|
||||||
|
done
|
||||||
|
|
||||||
|
# VBoxSVC and VBoxManage need to be pax-marked (bug #403453)
|
||||||
|
# VBoxXPCOMIPCD (bug #524202)
|
||||||
|
for each in VBox{Headless,Manage,SVC,XPCOMIPCD} ; do
|
||||||
|
pax-mark -m "${ED}"${vbox_inst_path}/${each}
|
||||||
|
done
|
||||||
|
|
||||||
|
# Symlink binaries to the shipped wrapper
|
||||||
|
for each in vbox{autostart,balloonctrl,bugreport,headless,manage} VBox{Autostart,BalloonCtrl,BugReport,Headless,Manage,VRDP} ; do
|
||||||
|
dosym ${vbox_inst_path}/VBox /usr/bin/${each}
|
||||||
|
done
|
||||||
|
dosym ${vbox_inst_path}/VBoxTunctl /usr/bin/VBoxTunctl
|
||||||
|
dosym ${vbox_inst_path}/vboximg-mount /usr/bin/vboximg-mount
|
||||||
|
|
||||||
|
if use pam ; then
|
||||||
|
# VRDPAuth only works with this (bug #351949)
|
||||||
|
dosym VBoxAuth.so ${vbox_inst_path}/VRDPAuth.so
|
||||||
|
fi
|
||||||
|
|
||||||
|
# set an env-variable for 3rd party tools
|
||||||
|
echo -n "VBOX_APP_HOME=${vbox_inst_path}" > "${T}/90virtualbox"
|
||||||
|
doenvd "${T}/90virtualbox"
|
||||||
|
|
||||||
|
if ! use headless ; then
|
||||||
|
vbox_inst rdesktop-vrdp
|
||||||
|
vbox_inst VBoxSDL 4750
|
||||||
|
pax-mark -m "${ED}"${vbox_inst_path}/VBoxSDL
|
||||||
|
|
||||||
|
for each in vboxsdl VBoxSDL ; do
|
||||||
|
dosym ${vbox_inst_path}/VBox /usr/bin/${each}
|
||||||
|
done
|
||||||
|
|
||||||
|
if use qt5 ; then
|
||||||
|
vbox_inst VirtualBox
|
||||||
|
vbox_inst VirtualBoxVM 4750
|
||||||
|
for each in VirtualBox{,VM} ; do
|
||||||
|
pax-mark -m "${ED}"${vbox_inst_path}/${each}
|
||||||
|
done
|
||||||
|
|
||||||
|
if use opengl ; then
|
||||||
|
vbox_inst VBoxTestOGL
|
||||||
|
pax-mark -m "${ED}"${vbox_inst_path}/VBoxTestOGL
|
||||||
|
fi
|
||||||
|
|
||||||
|
for each in virtualbox{,vm} VirtualBox{,VM} ; do
|
||||||
|
dosym ${vbox_inst_path}/VBox /usr/bin/${each}
|
||||||
|
done
|
||||||
|
|
||||||
|
insinto /usr/share/${PN}
|
||||||
|
doins -r nls
|
||||||
|
doins -r UnattendedTemplates
|
||||||
|
|
||||||
|
domenu ${PN}.desktop
|
||||||
|
fi
|
||||||
|
|
||||||
|
pushd "${S}"/src/VBox/Artwork/OSE &>/dev/null || die
|
||||||
|
for size in 16 32 48 64 128 ; do
|
||||||
|
newicon -s ${size} ${PN}-${size}px.png ${PN}.png
|
||||||
|
done
|
||||||
|
newicon ${PN}-48px.png ${PN}.png
|
||||||
|
doicon -s scalable ${PN}.svg
|
||||||
|
popd &>/dev/null || die
|
||||||
|
pushd "${S}"/src/VBox/Artwork/other &>/dev/null || die
|
||||||
|
for size in 16 24 32 48 64 72 96 128 256 512 ; do
|
||||||
|
for ico in hdd ova ovf vbox{,-extpack} vdi vdh vmdk ; do
|
||||||
|
icofile="${PN}-${ico}-${size}px.png"
|
||||||
|
if [[ -f "${icofile}" ]] ; then
|
||||||
|
newicon -s ${size} ${icofile} ${PN}-${ico}.png
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
popd &>/dev/null || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use lvm ; then
|
||||||
|
vbox_inst VBoxVolInfo 4750
|
||||||
|
dosym ${vbox_inst_path}/VBoxVolInfo /usr/bin/VBoxVolInfo
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use sdk ; then
|
||||||
|
insinto ${vbox_inst_path}
|
||||||
|
doins -r sdk
|
||||||
|
|
||||||
|
if use java ; then
|
||||||
|
java-pkg_regjar "${ED}/${vbox_inst_path}/sdk/bindings/xpcom/java/vboxjxpcom.jar"
|
||||||
|
java-pkg_regso "${ED}/${vbox_inst_path}/libvboxjxpcom.so"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use udev ; then
|
||||||
|
local udevdir="$(get_udevdir)"
|
||||||
|
local udev_file="VBoxCreateUSBNode.sh"
|
||||||
|
local rules_file="10-virtualbox.rules"
|
||||||
|
|
||||||
|
insinto ${udevdir}
|
||||||
|
doins ${udev_file}
|
||||||
|
fowners root:vboxusers ${udevdir}/${udev_file}
|
||||||
|
fperms 0750 ${udevdir}/${udev_file}
|
||||||
|
|
||||||
|
insinto ${udevdir}/rules.d
|
||||||
|
sed "s@%UDEVDIR%@${udevdir}@" "${FILESDIR}"/${rules_file} \
|
||||||
|
> "${T}"/${rules_file} || die
|
||||||
|
doins "${T}"/${rules_file}
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use vboxwebsrv ; then
|
||||||
|
vbox_inst vboxwebsrv
|
||||||
|
dosym ${vbox_inst_path}/VBox /usr/bin/vboxwebsrv
|
||||||
|
newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
|
||||||
|
newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Remove dead symlinks (bug #715338)
|
||||||
|
find "${ED}"/usr/$(get_libdir)/${PN} -xtype l -delete || die
|
||||||
|
|
||||||
|
# Fix version string in extensions or else they don't get accepted
|
||||||
|
# by the virtualbox host process (see bug #438930)
|
||||||
|
find ExtensionPacks -type f -name "ExtPack.xml" -print0 \
|
||||||
|
| xargs --no-run-if-empty --null sed -i '/Version/s@_Gentoo@@' \
|
||||||
|
|| die
|
||||||
|
|
||||||
|
local extensions_dir="${vbox_inst_path}/ExtensionPacks"
|
||||||
|
|
||||||
|
if use vnc ; then
|
||||||
|
insinto ${extensions_dir}
|
||||||
|
doins -r ExtensionPacks/VNC
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use dtrace ; then
|
||||||
|
insinto ${extensions_dir}
|
||||||
|
doins -r ExtensionPacks/Oracle_VBoxDTrace_Extension_Pack
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use doc ; then
|
||||||
|
dodoc UserManual.pdf
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use python ; then
|
||||||
|
local mangled_python="${EPYTHON#python}"
|
||||||
|
mangled_python="${mangled_python/./_}"
|
||||||
|
|
||||||
|
local python_path_ext="${ED}/usr/$(get_libdir)/virtualbox/VBoxPython${mangled_python}.so"
|
||||||
|
if [[ ! -x "${python_path_ext}" ]] ; then
|
||||||
|
eerror "Couldn't find ${python_path_ext}! Bindings were requested with USE=python"
|
||||||
|
eerror "but none were installed. This may happen if support for a Python target"
|
||||||
|
eerror "(listed in PYTHON_COMPAT in the ebuild) is incomplete within the Makefiles."
|
||||||
|
die "Incomplete installation of Python bindings! File a bug with Gentoo!"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
newtmpfiles "${FILESDIR}"/${PN}-vboxusb_tmpfilesd ${PN}-vboxusb.conf
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
xdg_pkg_postinst
|
||||||
|
|
||||||
|
if use udev ; then
|
||||||
|
udev_reload
|
||||||
|
udevadm trigger --subsystem-match=usb
|
||||||
|
fi
|
||||||
|
|
||||||
|
tmpfiles_process virtualbox-vboxusb.conf
|
||||||
|
|
||||||
|
if ! use headless && use qt5 ; then
|
||||||
|
elog "To launch VirtualBox just type: \"virtualbox\"."
|
||||||
|
fi
|
||||||
|
|
||||||
|
elog "You must be in the vboxusers group to use VirtualBox."
|
||||||
|
elog ""
|
||||||
|
elog "The latest user manual is available for download at:"
|
||||||
|
elog "https://download.virtualbox.org/virtualbox/${DIR_PV:-${PV}}/UserManual.pdf"
|
||||||
|
elog ""
|
||||||
|
|
||||||
|
optfeature "Advanced networking setups" net-misc/bridge-utils sys-apps/usermode-utilities
|
||||||
|
optfeature "USB2, USB3, PXE boot, and VRDP support" app-emulation/virtualbox-extpack-oracle
|
||||||
|
optfeature "Guest additions ISO" app-emulation/virtualbox-additions
|
||||||
|
|
||||||
|
if ! use udev ; then
|
||||||
|
ewarn "Without USE=udev, USB devices will likely not work in ${PN}."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
xdg_pkg_postrm
|
||||||
|
|
||||||
|
use udev && udev_reload
|
||||||
|
}
|
Binary file not shown.
@ -1,9 +1,9 @@
|
|||||||
DIST powershell-7.2.1-linux-arm32.tar.gz 66500447 BLAKE2B 2390a26c871abf7012834d8401b6d1afd4c290c7a68794454c2926c782e4ddc20165d1f50718f2ec2b268bcfc2414bc454e211f3bf1eb3c77eb4939e52b7d846 SHA512 29f6c1a926c8cff6386e4d98ce91ec4ff91c19d0cd4cacdc8d3da1c65858841695a466e0a1c9106df6da1fa7d79ac96de023e564be6ba1ac00d5c94216380ed8
|
|
||||||
DIST powershell-7.2.1-linux-arm64.tar.gz 65023197 BLAKE2B 8acd526537695e29d44d4e7445dd4fce1c0b2bb8a2cda57c353d7e21aac4efe85aa9e6752d71afb276f5035d0951e5f5684ea88751a25848387e4d5ea37d36a5 SHA512 094659aa63e2f4728997eaa086f1a74f34eb4876f1e679cb595a0c07c4133b42fbeb45fafbd3b916df8529a63fe98e2ffc54b0de66f3c8d17d9d72e03d35f0b8
|
|
||||||
DIST powershell-7.2.1-linux-x64.tar.gz 69668637 BLAKE2B c173216df2147e5f857533cf35a6adaafe8e34f3b475bab6696c09f118ea62fd8304f25bbcfc9ef07807aee87f44ed0829d170ca878039a3ade5853235b61e82 SHA512 63a84dae492c0f1ef13629a50bf5b33fa9d5dd8d0d878a2e1dce185b398ef39467498ae7ea75b78326fb4c669fa77bea0549280fb6669e28cb0191a48fc374de
|
|
||||||
DIST powershell-7.2.4-linux-arm32.tar.gz 66241774 BLAKE2B 6a37a929b3f315c00fa4da97d9a3a1f394224a35d03121b610b46de765dbf20ecbc6603250245fa4b07e666761a48a61c172ebb7e5d36f027ef7e985d4ac2734 SHA512 9d87bd111e6513f0771632bd6ae656d8a6488427707875b85c0b28cced5a2879a0c311a48e280dd9947ac767fed3ecc916441b04cf29bd80467715411858e899
|
DIST powershell-7.2.4-linux-arm32.tar.gz 66241774 BLAKE2B 6a37a929b3f315c00fa4da97d9a3a1f394224a35d03121b610b46de765dbf20ecbc6603250245fa4b07e666761a48a61c172ebb7e5d36f027ef7e985d4ac2734 SHA512 9d87bd111e6513f0771632bd6ae656d8a6488427707875b85c0b28cced5a2879a0c311a48e280dd9947ac767fed3ecc916441b04cf29bd80467715411858e899
|
||||||
DIST powershell-7.2.4-linux-arm64.tar.gz 64769626 BLAKE2B 855daf5f18f5e5645d0efadc5b6db06175f9650f215c6e76a4348081685d368b93abd3cab145593074899c5ecd4b4f622bb0a3730181ccf2137d9b08a4b0ed4e SHA512 a1538b3a12824ffde0d75e5a0e047d0d39fd697ecac691285c39656a7e507fb0ca02d5fa2594d575cda70b1b1ff858f157f1160fc7320d3d342fe226ea67d7c6
|
DIST powershell-7.2.4-linux-arm64.tar.gz 64769626 BLAKE2B 855daf5f18f5e5645d0efadc5b6db06175f9650f215c6e76a4348081685d368b93abd3cab145593074899c5ecd4b4f622bb0a3730181ccf2137d9b08a4b0ed4e SHA512 a1538b3a12824ffde0d75e5a0e047d0d39fd697ecac691285c39656a7e507fb0ca02d5fa2594d575cda70b1b1ff858f157f1160fc7320d3d342fe226ea67d7c6
|
||||||
DIST powershell-7.2.4-linux-x64.tar.gz 69406638 BLAKE2B b7676de3c23417d92b7540754d94dbefa829d98ddedc4045de2b220bebc54a44fddc59538f6cfaaea69e67d5d46d67767c446777b29d22654b8e26858c29a6c0 SHA512 748c0459f00d52066c6da38bff88d03a25fcf65a9a9318614fd21f4984da8e459e0c0461663f23dd716fb285bbfeb406b88f6cf30aa9dd3eb356b2a850792f45
|
DIST powershell-7.2.4-linux-x64.tar.gz 69406638 BLAKE2B b7676de3c23417d92b7540754d94dbefa829d98ddedc4045de2b220bebc54a44fddc59538f6cfaaea69e67d5d46d67767c446777b29d22654b8e26858c29a6c0 SHA512 748c0459f00d52066c6da38bff88d03a25fcf65a9a9318614fd21f4984da8e459e0c0461663f23dd716fb285bbfeb406b88f6cf30aa9dd3eb356b2a850792f45
|
||||||
DIST powershell-7.2.5-linux-arm32.tar.gz 66201903 BLAKE2B cdf6b2f53b0392fdc9a4f2761dc13406be7b87e6814e926bb7838c64d27edb92839bca41e3e1993cc3316eaac21d025b57ebdbdd55a88c209b9b84946c36fe7d SHA512 5eff39888d9c375ff891371b8fd2ef8c9a2ff5917504c1569733767d2def33aa047836a54f4f15f6260adf46a05f4e8ae912ba2e86029c4a34cd47bb5085d9b4
|
DIST powershell-7.2.5-linux-arm32.tar.gz 66201903 BLAKE2B cdf6b2f53b0392fdc9a4f2761dc13406be7b87e6814e926bb7838c64d27edb92839bca41e3e1993cc3316eaac21d025b57ebdbdd55a88c209b9b84946c36fe7d SHA512 5eff39888d9c375ff891371b8fd2ef8c9a2ff5917504c1569733767d2def33aa047836a54f4f15f6260adf46a05f4e8ae912ba2e86029c4a34cd47bb5085d9b4
|
||||||
DIST powershell-7.2.5-linux-arm64.tar.gz 64716033 BLAKE2B 06df8b25795f4df10c057acc8d001c46bcf4f5137e8d4a841216c172ffdb20d6ba3b31528f2f766a91ccbe1bc62f202ba78acef4a6af732a20035aac4a5ef9be SHA512 3ff38d1b109c0b9fdd8d20aa9ddd817424cf7883da7f4f16dcdb70c0f1260841ea6f61a3a675aabc471722920c8ba8f25a24885825cc7e29a9d5617876c070dd
|
DIST powershell-7.2.5-linux-arm64.tar.gz 64716033 BLAKE2B 06df8b25795f4df10c057acc8d001c46bcf4f5137e8d4a841216c172ffdb20d6ba3b31528f2f766a91ccbe1bc62f202ba78acef4a6af732a20035aac4a5ef9be SHA512 3ff38d1b109c0b9fdd8d20aa9ddd817424cf7883da7f4f16dcdb70c0f1260841ea6f61a3a675aabc471722920c8ba8f25a24885825cc7e29a9d5617876c070dd
|
||||||
DIST powershell-7.2.5-linux-x64.tar.gz 69364625 BLAKE2B 71a91e9d8196cca8a903fdeac1c8b4a7f6ad9c21d649fc5aeaf1cf3033cde3141219513b2a9661d36280c95746cfc0b4c47b3fe3cecff4f9feaffe60043c0743 SHA512 96efbcf4f325338bc9aa4da7b955366cc49bae89a98d5ad53840386aefed59e929b62d91d5bdbbe57e4bf471cd31c57e1fa5b4cd42f60b797bb438c165cf432e
|
DIST powershell-7.2.5-linux-x64.tar.gz 69364625 BLAKE2B 71a91e9d8196cca8a903fdeac1c8b4a7f6ad9c21d649fc5aeaf1cf3033cde3141219513b2a9661d36280c95746cfc0b4c47b3fe3cecff4f9feaffe60043c0743 SHA512 96efbcf4f325338bc9aa4da7b955366cc49bae89a98d5ad53840386aefed59e929b62d91d5bdbbe57e4bf471cd31c57e1fa5b4cd42f60b797bb438c165cf432e
|
||||||
|
DIST powershell-7.2.6-linux-arm32.tar.gz 66272150 BLAKE2B 4a8f0f6595e23cfda9881c698be808714b4d543f963a932926f13a57c143b51ca9357befb1c151d86ea831ff17e54da6324fc1b11c0d1edf2b2c2ff4c086a8ad SHA512 a265d13a32050d9920e020fbd4cb2b183230a5a243b78773f6517fc2f82968009a8c559aae382b7b2d85ef0302d56bf46e01bebb1994c9495c2e5afc57330914
|
||||||
|
DIST powershell-7.2.6-linux-arm64.tar.gz 64784215 BLAKE2B 2b792c1a4a2495e6cad0d0f545c55f89bcde933af3627f9f8ceb8d66f319ce7c4aca069167ebae79e12a2fe4e057ce970c64b0967684adecdbe6bae0de908dcb SHA512 5600f721503046bfabe0352bb406a3b528e7830e60286b25ab97a5c9729546a9ab4f1e2a5b33c4cde7b04ad713c9416fe55eb8b653f1f3bb87663a23d741ded4
|
||||||
|
DIST powershell-7.2.6-linux-x64.tar.gz 69438809 BLAKE2B ae55f01e1fef540e0c0da317dfe00fb1dbcffd531697fdf8a95982499057d4c573aec45a8805aecc23152c09f735280ba6a546b819373e8259984e4aaf119c88 SHA512 b331f5a3d0457d8a212740e5034791d04275cce411ca88bd5ff59349f2a62147d20ecef30d6aeb7c399e870397ddfe4d68fe72f90c928ae66dbc00931072e782
|
||||||
|
Binary file not shown.
@ -1,8 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<maintainer type="person">
|
<!-- maintainer-needed -->
|
||||||
<email>bman@gentoo.org</email>
|
|
||||||
<name>Aaron Bauman</name>
|
|
||||||
</maintainer>
|
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
||||||
|
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
DIST edencommon-0_pre20220808.tar.gz 142458 BLAKE2B 0dd501069bc511973e89b21b9dbdce7eeb0e87e31ecd05e585fe83c515894691a02e5725de8c912c4bd0fb70f4172445070ef8fec205243e1df9c35a3ccaffe4 SHA512 63f60e1c406d834cf618e2747c21f928e43fe2a475a97152070aecb61b11b5e515bdfd1c9571a93a159d91fa185c9f89caebe8d41421a94e636e8ff43fd11a3a
|
@ -0,0 +1,44 @@
|
|||||||
|
# Copyright 2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
# These must be bumped together:
|
||||||
|
# dev-cpp/edencommon
|
||||||
|
# dev-cpp/folly
|
||||||
|
# dev-util/watchman
|
||||||
|
|
||||||
|
inherit cmake
|
||||||
|
|
||||||
|
# No proper tags yet (https://github.com/facebookexperimental/edencommon/issues/2)
|
||||||
|
MY_COMMIT="d356bb7a9a28f09f00d72a81f7b60f8f27ce249c"
|
||||||
|
DESCRIPTION="Shared library for Watchman and Eden projects"
|
||||||
|
HOMEPAGE="https://github.com/facebookexperimental/edencommon"
|
||||||
|
SRC_URI="https://github.com/facebookexperimental/edencommon/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||||
|
S="${WORKDIR}"/${PN}-${MY_COMMIT}
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE="llvm-libunwind"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-cpp/gflags:=
|
||||||
|
dev-cpp/glog:=[gflags]
|
||||||
|
dev-cpp/folly:=
|
||||||
|
llvm-libunwind? ( sys-libs/llvm-libunwind:= )
|
||||||
|
!llvm-libunwind? ( sys-libs/libunwind:= )
|
||||||
|
"
|
||||||
|
DEPEND="
|
||||||
|
${RDEPEND}
|
||||||
|
dev-cpp/gtest
|
||||||
|
"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DCMAKE_INSTALL_DIR="$(get_libdir)/cmake/${PN}"
|
||||||
|
-DLIB_INSTALL_DIR="$(get_libdir)"
|
||||||
|
)
|
||||||
|
|
||||||
|
cmake_src_configure
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>sam@gentoo.org</email>
|
||||||
|
<name>Sam James</name>
|
||||||
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">facebookexperimental/edencommon</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
@ -1,3 +1,4 @@
|
|||||||
DIST folly-2022.03.28.00.tar.gz 3616507 BLAKE2B da003701abe599f20ac87a2785fe9a4cd4a8896d182737eb1eac6384f3d75a792225b426febea7cc4ea99aac1a1f31eb7330e0a297f43ae7d5aafccd93784560 SHA512 6eee07b3e82247c3c8672442503e9a69a1c4607604269fc0760e11a2d0e5595029e6995fbe7c970d2052a7f228f6b92112630e6d5c624369fc52e5ad1823ef74
|
DIST folly-2022.03.28.00.tar.gz 3616507 BLAKE2B da003701abe599f20ac87a2785fe9a4cd4a8896d182737eb1eac6384f3d75a792225b426febea7cc4ea99aac1a1f31eb7330e0a297f43ae7d5aafccd93784560 SHA512 6eee07b3e82247c3c8672442503e9a69a1c4607604269fc0760e11a2d0e5595029e6995fbe7c970d2052a7f228f6b92112630e6d5c624369fc52e5ad1823ef74
|
||||||
DIST folly-2022.04.11.00.tar.gz 3632587 BLAKE2B 13820f6dc600727fa97603181be97a568cc8b3c713659717592853827dac050d5f1f6d98178e3054871233b48ac18f713589bf43b36ea29445cad557ce13bacf SHA512 7aa0be95d6f8b21aaa88558cf5921c526ab5a8c8121b858eb6e7ea19946d7a82dff06d90b7a365cef5c56a43d8d57af8d01b8b11b27262fbed9ee8c9e701b5ac
|
DIST folly-2022.04.11.00.tar.gz 3632587 BLAKE2B 13820f6dc600727fa97603181be97a568cc8b3c713659717592853827dac050d5f1f6d98178e3054871233b48ac18f713589bf43b36ea29445cad557ce13bacf SHA512 7aa0be95d6f8b21aaa88558cf5921c526ab5a8c8121b858eb6e7ea19946d7a82dff06d90b7a365cef5c56a43d8d57af8d01b8b11b27262fbed9ee8c9e701b5ac
|
||||||
DIST folly-v2022.07.04.00.tar.gz 3647988 BLAKE2B ab8916ff4be1468d44dc0892126448682554ea95ce879166f457b621c3157cb22d0292fe2c58744494efe0fbabbf77732184335cd22244724c740910cf3a8303 SHA512 11fc32768539d8d42c7396eeac522238450617c8dde302b45c64bb93fd6ceaef7bb193b897802962782e8211c3931d31bf8df68e06741ce855d9725510677d7a
|
DIST folly-v2022.07.04.00.tar.gz 3647988 BLAKE2B ab8916ff4be1468d44dc0892126448682554ea95ce879166f457b621c3157cb22d0292fe2c58744494efe0fbabbf77732184335cd22244724c740910cf3a8303 SHA512 11fc32768539d8d42c7396eeac522238450617c8dde302b45c64bb93fd6ceaef7bb193b897802962782e8211c3931d31bf8df68e06741ce855d9725510677d7a
|
||||||
|
DIST folly-v2022.08.08.00.tar.gz 3684846 BLAKE2B 462c183effea452ca706a7a14ebba820f377bc5ba6fd1475b15ca10e3c21df60a16b529b6599cf5dd5df2913b1fbd0432a3c411ab0aa400a9c84bb6aecd2f70f SHA512 f44dbf96f42a86d44cad46129750ae2bc0abb6702e148de10def4b241a3c7afa62ad19acca96609e8a9bfdfeeb7eda3f19d8eb161b5e41702c943ca87a75c88e
|
||||||
|
@ -0,0 +1,62 @@
|
|||||||
|
https://github.com/facebook/folly/commit/10fc2e449038d9ffda5cd53999edb9875c4cb151
|
||||||
|
|
||||||
|
From 10fc2e449038d9ffda5cd53999edb9875c4cb151 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Simon Marlow <smarlow@fb.com>
|
||||||
|
Date: Fri, 12 Aug 2022 08:26:40 -0700
|
||||||
|
Subject: [PATCH] Fix bugs in Cmake setup
|
||||||
|
|
||||||
|
Summary:
|
||||||
|
Please see https://github.com/facebook/folly/issues/1823 and
|
||||||
|
https://github.com/facebook/folly/issues/1478
|
||||||
|
|
||||||
|
* CMAKE_LIBRARY_ARCHITECTURE is not always defined
|
||||||
|
* This doesn't work: `set(IS_X86_64_ARCH NOT(IS_X86_64_ARCH STREQUAL "-1"))`
|
||||||
|
* Two conditionals for `IS_X86_64_ARCH` were reversed
|
||||||
|
|
||||||
|
Reviewed By: bochko
|
||||||
|
|
||||||
|
Differential Revision: D38653631
|
||||||
|
|
||||||
|
fbshipit-source-id: c4b6f2820a2280356a7eb69bf0e9253434b5e750
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -27,8 +27,19 @@ if(POLICY CMP0075)
|
||||||
|
cmake_policy(SET CMP0075 NEW)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
-string(FIND "${CMAKE_LIBRARY_ARCHITECTURE}" "x86_64" IS_X86_64_ARCH)
|
||||||
|
-set(IS_X86_64_ARCH NOT(IS_X86_64_ARCH STREQUAL "-1"))
|
||||||
|
+if("${CMAKE_LIBRARY_ARCHITECTURE}" STREQUAL "")
|
||||||
|
+ # CMAKE_LIBRARY_ARCHITECTURE is not always set, so we have to assume
|
||||||
|
+ # arch might be x86_64
|
||||||
|
+ message(WARNING "CMAKE_LIBRARY_ARCHITECTURE not set, assuming x86_64")
|
||||||
|
+ set(IS_X86_64_ARCH ON)
|
||||||
|
+else()
|
||||||
|
+ string(FIND "${CMAKE_LIBRARY_ARCHITECTURE}" "x86_64" IS_X86_64_ARCH)
|
||||||
|
+ if(IS_X86_64_ARCH STREQUAL "-1")
|
||||||
|
+ set(IS_X86_64_ARCH OFF)
|
||||||
|
+ else()
|
||||||
|
+ set(IS_X86_64_ARCH ON)
|
||||||
|
+ endif()
|
||||||
|
+endif()
|
||||||
|
|
||||||
|
# includes
|
||||||
|
set(CMAKE_MODULE_PATH
|
||||||
|
@@ -230,7 +241,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# base64 SIMD files compilation
|
||||||
|
-if (${IS_X86_64_ARCH})
|
||||||
|
+if (NOT(${IS_X86_64_ARCH}))
|
||||||
|
message(
|
||||||
|
STATUS
|
||||||
|
"arch ${CMAKE_LIBRARY_ARCHITECTURE} does not match x86_64, "
|
||||||
|
@@ -256,7 +267,7 @@ else()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (${LIBSODIUM_FOUND})
|
||||||
|
- if (${IS_X86_64_ARCH})
|
||||||
|
+ if (NOT(${IS_X86_64_ARCH}))
|
||||||
|
message(
|
||||||
|
STATUS
|
||||||
|
"arch ${CMAKE_LIBRARY_ARCHITECTURE} does not match x86_64, "
|
@ -0,0 +1,99 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
# These must be bumped together:
|
||||||
|
# dev-cpp/edencommon
|
||||||
|
# dev-cpp/folly
|
||||||
|
# dev-util/watchman
|
||||||
|
|
||||||
|
inherit cmake toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="An open-source C++ library developed and used at Facebook"
|
||||||
|
HOMEPAGE="https://github.com/facebook/folly"
|
||||||
|
SRC_URI="https://github.com/facebook/folly/releases/download/v${PV}/${PN}-v${PV}.tar.gz"
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE="llvm-libunwind test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
RDEPEND="app-arch/bzip2
|
||||||
|
app-arch/lz4:=
|
||||||
|
app-arch/snappy:=
|
||||||
|
app-arch/xz-utils
|
||||||
|
app-arch/zstd:=
|
||||||
|
dev-cpp/gflags:=
|
||||||
|
dev-cpp/glog:=[gflags]
|
||||||
|
dev-libs/boost:=[context,threads(+)]
|
||||||
|
dev-libs/double-conversion:=
|
||||||
|
dev-libs/libaio
|
||||||
|
dev-libs/libevent:=
|
||||||
|
dev-libs/libfmt:=
|
||||||
|
dev-libs/libsodium:=
|
||||||
|
dev-libs/openssl:=
|
||||||
|
sys-libs/liburing:=
|
||||||
|
sys-libs/zlib
|
||||||
|
llvm-libunwind? ( sys-libs/llvm-libunwind:= )
|
||||||
|
!llvm-libunwind? ( sys-libs/libunwind:= )"
|
||||||
|
# libiberty is linked statically
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
sys-libs/binutils-libs
|
||||||
|
test? ( dev-cpp/gtest )"
|
||||||
|
BDEPEND="test? ( sys-devel/clang )"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${PN}"-2022.07.04.00-musl-fix.patch
|
||||||
|
"${FILESDIR}/${PN}"-2022.08.08.00-undefined-reference-fix.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
[[ ${BUILD_TYPE} == "binary" ]] && return
|
||||||
|
|
||||||
|
if use test && ! tc-is-clang ; then
|
||||||
|
# Always build w/ Clang for now to avoid gcc ICE
|
||||||
|
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106230
|
||||||
|
#if [[ $(gcc-major-version) -eq 12 ]] ; then
|
||||||
|
# return
|
||||||
|
#fi
|
||||||
|
|
||||||
|
## Only older GCC 11 is broken
|
||||||
|
#if [[ $(gcc-major-version) -eq 11 && $(gcc-minor-version) -ge 3 && $(gcc-micro-version) -ge 1 ]] ; then
|
||||||
|
# return
|
||||||
|
#fi
|
||||||
|
|
||||||
|
ewarn "Forcing build with Clang due to GCC bug (because tests are enabled)"
|
||||||
|
#ewarn "(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104008)"
|
||||||
|
|
||||||
|
export CC=${CHOST}-clang
|
||||||
|
export CXX=${CHOST}-clang++
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
# TODO: liburing could in theory be optional but fails to link
|
||||||
|
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DLIB_INSTALL_DIR="$(get_libdir)"
|
||||||
|
|
||||||
|
-DBUILD_TESTS=$(usex test)
|
||||||
|
)
|
||||||
|
|
||||||
|
cmake_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
local myctestargs=(
|
||||||
|
# - timeseries_histogram_test.TimeseriesHistogram.Percentile|HHWheelTimerTest
|
||||||
|
# Long-standing known test failure
|
||||||
|
# TODO: report upstream
|
||||||
|
# - HHWheelTimerTest.HHWheelTimerTest.CancelTimeout
|
||||||
|
# Timeouts are fragile
|
||||||
|
-E "(timeseries_histogram_test.TimeseriesHistogram.Percentile|HHWheelTimerTest.HHWheelTimerTest.CancelTimeout)"
|
||||||
|
)
|
||||||
|
|
||||||
|
cmake_src_test
|
||||||
|
}
|
Binary file not shown.
@ -1,18 +1,18 @@
|
|||||||
DIST dotnet-sdk-3.1.420-linux-arm.tar.gz 128413188 BLAKE2B 011cc8b597472d7cce6c9061ccc9a0d60b0995f7d2ac419382ce40ecd576c5161ae4a4e08599855ab724335f7755d4c6f9cc87131921ecb6afd66b83235143e5 SHA512 d61cc1a5dc345d4c32bb06bcce1e50d603103294783460c811a87635eb14fc51c58869456f3326cfb689fdb7b379d2410f5db5bf63332aff173814035a319c28
|
|
||||||
DIST dotnet-sdk-3.1.420-linux-arm64.tar.gz 123204275 BLAKE2B b7a3e20d14f4514737237aabe7f4e8ac237769e71f5c5d7278be3f046196f74dc17f3bf6245ab7d4e01173a6f09c728cab84a2a85f7ce45720892ff1cc077e33 SHA512 ac66b1544fe178153bb85c2e5be584464374ce4c036fc95720547c231c2730312018fbdfc735f9071579749415bc54e1f6b8f080cc2b08d5799a0da941e8a5f5
|
|
||||||
DIST dotnet-sdk-3.1.420-linux-x64.tar.gz 123294740 BLAKE2B edee0ced3b30bc2055568c78c2421e0fa61295922326cc980b3bf7d632c9dbfa9f2b3db4bd99d9aae08bb729d8ac720a19c0ae42d5154ee23c3c5c373aa5e072 SHA512 b3bdd964182f9edc3c2976541e657fcc43b0eaf9bc97197597c7ecb8b784d79e3efb9e0405c84e1dcb434cf4cd38ddc4af628c5df486c3d7ae8a23e5254796e3
|
|
||||||
DIST dotnet-sdk-3.1.421-linux-arm.tar.gz 128517951 BLAKE2B 0b272a532edabb1990b6a8efd378a7850a180522b1eb531c90bd57699e76ed8a5d6be089915437da9daa1030a4021a9a31ac2171c8185e86658f716f71549744 SHA512 412b30ee45554de69844e4297354680fdc5111c270b5e41af73db212117ee101878b87eb4592bda4c314ec0d7406ba8ab449d83466267f78198ce09fc32ef425
|
DIST dotnet-sdk-3.1.421-linux-arm.tar.gz 128517951 BLAKE2B 0b272a532edabb1990b6a8efd378a7850a180522b1eb531c90bd57699e76ed8a5d6be089915437da9daa1030a4021a9a31ac2171c8185e86658f716f71549744 SHA512 412b30ee45554de69844e4297354680fdc5111c270b5e41af73db212117ee101878b87eb4592bda4c314ec0d7406ba8ab449d83466267f78198ce09fc32ef425
|
||||||
DIST dotnet-sdk-3.1.421-linux-arm64.tar.gz 123360295 BLAKE2B 907bdf22e11679f27036093496c2b1c172e30438dd754f233e1973f2f3fa84f85960c2f2e16d1969fda496ffa3a7892a2e0f283e193529aa2645f60b1766b6ab SHA512 c584642469343c2c54fa02a7157009fa36bae9b304512db0a2b0069f71593ee2ba47070896212def0541460f37bf1b0a478b914e08a2c78b985cb2981e5ab6c6
|
DIST dotnet-sdk-3.1.421-linux-arm64.tar.gz 123360295 BLAKE2B 907bdf22e11679f27036093496c2b1c172e30438dd754f233e1973f2f3fa84f85960c2f2e16d1969fda496ffa3a7892a2e0f283e193529aa2645f60b1766b6ab SHA512 c584642469343c2c54fa02a7157009fa36bae9b304512db0a2b0069f71593ee2ba47070896212def0541460f37bf1b0a478b914e08a2c78b985cb2981e5ab6c6
|
||||||
DIST dotnet-sdk-3.1.421-linux-x64.tar.gz 123221768 BLAKE2B 665daa6f3dafe072fc2290922c2523e7c1177b6710e1fb2aa0128d6cf318d6e3d621c3145a8f3d2655c68a6938457459887ce5bb2b76e9380623e651e5ebc319 SHA512 9f592db89ddfdfa3254d59c39f227109e0f87f156a8ab00595bcf332fdebd3e873fb9e07c875905aaa8ba5022e6e551e2d9516cfb855d04ec781313521595431
|
DIST dotnet-sdk-3.1.421-linux-x64.tar.gz 123221768 BLAKE2B 665daa6f3dafe072fc2290922c2523e7c1177b6710e1fb2aa0128d6cf318d6e3d621c3145a8f3d2655c68a6938457459887ce5bb2b76e9380623e651e5ebc319 SHA512 9f592db89ddfdfa3254d59c39f227109e0f87f156a8ab00595bcf332fdebd3e873fb9e07c875905aaa8ba5022e6e551e2d9516cfb855d04ec781313521595431
|
||||||
|
DIST dotnet-sdk-3.1.422-linux-arm.tar.gz 128580438 BLAKE2B 8f334b67bf5a9059ed8e5556b82c8ab1c9d8d5f497ec94399dff51c963574141099d4438b8308a73dedcf80d8d1f1627d5853b130160282e0c8bf3d6d9446b9d SHA512 9cbccaf303f693657f797ae81eec2bd2ea55975b7ae71a8add04175a0104545208fa2f9c536b97d91fa48c6ea890678eb0772a448977bce4acbc97726ac47f83
|
||||||
|
DIST dotnet-sdk-3.1.422-linux-arm64.tar.gz 123321453 BLAKE2B 56c2be5f1a788277d7d863343d00b3d60866bf2daee8a94d2754d407b798094ffafe7d82de619a4feb2ad7c681a8602eb0f8b4ed6a07835380219f4a5940c423 SHA512 3eb7e066568dfc0135f2b3229d0259db90e1920bb413f7e175c9583570146ad593b50ac39c77fb67dd3f460b4621137f277c3b66c44206767b1d28e27bf47deb
|
||||||
|
DIST dotnet-sdk-3.1.422-linux-x64.tar.gz 123397283 BLAKE2B 13ba2cacb06c47449ee4329ea556e08b80d88027bbbf0601666f7d02e47fd322ac1b10f5442db830b33fc21eae154994a6a0b8f38263d3e6166113dbb6e13775 SHA512 690759982b12cce7a06ed22b9311ec3b375b8de8600bd647c0257c866d2f9c99d7c9add4a506f4c6c37ef01db85c0f7862d9ae3de0d11e9bec60958bd1b3b72c
|
||||||
DIST dotnet-sdk-5.0.407-linux-arm.tar.gz 139346500 BLAKE2B 5bd4cdda68fd5668be488d2f75bf8ba79474985f8c1142af8c5209b0fc68ff39a4ab9a1916671ebaf6f783f0d9d193a454861474240642d77eb96e8102d7b535 SHA512 37db60df90f9f43a5399c1b7929c545e3815d7a91fdea82c96a136dcef993b0f8c67568759ae24321dee818fd1501cea8e541a159e10ed1a08fa96dddf2ffb9e
|
DIST dotnet-sdk-5.0.407-linux-arm.tar.gz 139346500 BLAKE2B 5bd4cdda68fd5668be488d2f75bf8ba79474985f8c1142af8c5209b0fc68ff39a4ab9a1916671ebaf6f783f0d9d193a454861474240642d77eb96e8102d7b535 SHA512 37db60df90f9f43a5399c1b7929c545e3815d7a91fdea82c96a136dcef993b0f8c67568759ae24321dee818fd1501cea8e541a159e10ed1a08fa96dddf2ffb9e
|
||||||
DIST dotnet-sdk-5.0.407-linux-arm64.tar.gz 137430261 BLAKE2B 810f545a399d9f59dece514f9024730281d8cdda7f7d4e632e5b53490dfbf7e60595a720cba390608ad3b01ba6337706f7bf03570fa95e80469e8a9bcd6fb21f SHA512 500428a6a99d3825400be5cc1a723283f21a98c15ef68914e9252fc872b625fd10c220afd9787b7db6b226a04e83d30658234d464ccdf838639920d1768025e0
|
DIST dotnet-sdk-5.0.407-linux-arm64.tar.gz 137430261 BLAKE2B 810f545a399d9f59dece514f9024730281d8cdda7f7d4e632e5b53490dfbf7e60595a720cba390608ad3b01ba6337706f7bf03570fa95e80469e8a9bcd6fb21f SHA512 500428a6a99d3825400be5cc1a723283f21a98c15ef68914e9252fc872b625fd10c220afd9787b7db6b226a04e83d30658234d464ccdf838639920d1768025e0
|
||||||
DIST dotnet-sdk-5.0.407-linux-x64.tar.gz 142941732 BLAKE2B 6c049812539aec3ee48c653f9344a9b8aac356d862aa864da97692be37455c8390956c4fb4b93f432b518556c575ac25bef29ff31013b0ec391b8de80c8a59fa SHA512 b45f1bf086bfb5e0701c5e14534524ffc87d0195358ac4fa2cf36dac74537ca4c21c7177cfbfa7e121e77aa4106bb1e7039c9739ad73b942e2437bc5e39e6dce
|
DIST dotnet-sdk-5.0.407-linux-x64.tar.gz 142941732 BLAKE2B 6c049812539aec3ee48c653f9344a9b8aac356d862aa864da97692be37455c8390956c4fb4b93f432b518556c575ac25bef29ff31013b0ec391b8de80c8a59fa SHA512 b45f1bf086bfb5e0701c5e14534524ffc87d0195358ac4fa2cf36dac74537ca4c21c7177cfbfa7e121e77aa4106bb1e7039c9739ad73b942e2437bc5e39e6dce
|
||||||
DIST dotnet-sdk-5.0.408-linux-arm.tar.gz 139493036 BLAKE2B 2be0533e1331f4d7759a322a2caabeddfc8f24d6b95e81acd670da1a5f856e267b442c9a160f5a0e0bd7d8ad743bdda60defca09b76c1a003b65f091a576fef8 SHA512 4f12b2c6cc242666450eb5f892430a956ff34b2ab30aa63ee444565327fbad569152506e153a550b4a45cad6d8346f37ca7bcca68e9d46540c7f170e24b26296
|
DIST dotnet-sdk-5.0.408-linux-arm.tar.gz 139493036 BLAKE2B 2be0533e1331f4d7759a322a2caabeddfc8f24d6b95e81acd670da1a5f856e267b442c9a160f5a0e0bd7d8ad743bdda60defca09b76c1a003b65f091a576fef8 SHA512 4f12b2c6cc242666450eb5f892430a956ff34b2ab30aa63ee444565327fbad569152506e153a550b4a45cad6d8346f37ca7bcca68e9d46540c7f170e24b26296
|
||||||
DIST dotnet-sdk-5.0.408-linux-arm64.tar.gz 137471257 BLAKE2B 13229a50ce58305e8768a93f3ee9592b258dd21350ebf2601632d35a1d9efb138e9487742b542784dc736066b69c58a7f338d501b818f74fcc2bccbd2564693d SHA512 50f23d7aca91051d8b7c37f1a76b1eb51e6fe73e017d98558d757a6b9699e4237d401ce81515c1601b8c21eb62fee4e0b4f0bbed8967eefa3ceba75fc242f01b
|
DIST dotnet-sdk-5.0.408-linux-arm64.tar.gz 137471257 BLAKE2B 13229a50ce58305e8768a93f3ee9592b258dd21350ebf2601632d35a1d9efb138e9487742b542784dc736066b69c58a7f338d501b818f74fcc2bccbd2564693d SHA512 50f23d7aca91051d8b7c37f1a76b1eb51e6fe73e017d98558d757a6b9699e4237d401ce81515c1601b8c21eb62fee4e0b4f0bbed8967eefa3ceba75fc242f01b
|
||||||
DIST dotnet-sdk-5.0.408-linux-x64.tar.gz 142954023 BLAKE2B 69d755cfa314a97026f1899e01a0112defc82f5b711ae1580502c6fb7b9770c5b6f46b4a28279c9ed429d869ceb753661cf0bad83cd9792c0e2a16aa39966b99 SHA512 abbf22c420df2d8398d1616efa3d31e1b8f96130697746c45ad68668676d12e65ec3b4dd75f28a5dc7607da58b6e369693c0e658def15ce2431303c28e99db55
|
DIST dotnet-sdk-5.0.408-linux-x64.tar.gz 142954023 BLAKE2B 69d755cfa314a97026f1899e01a0112defc82f5b711ae1580502c6fb7b9770c5b6f46b4a28279c9ed429d869ceb753661cf0bad83cd9792c0e2a16aa39966b99 SHA512 abbf22c420df2d8398d1616efa3d31e1b8f96130697746c45ad68668676d12e65ec3b4dd75f28a5dc7607da58b6e369693c0e658def15ce2431303c28e99db55
|
||||||
DIST dotnet-sdk-6.0.301-linux-arm.tar.gz 179000042 BLAKE2B 1956ca30eb149c71b6089090ea4c3ddb454113bdd6d78b7081cab9c07813fe08e93eb517c0eb94360c9435683fa7c7d65372985f06806673b949e8d3e762c948 SHA512 ef7d028b80eaaae18b71195e89e00dea2186d455f7b72f373fc0a57074e8320c8e9245167c06e30a2ddade4ab21ad5e8b05d04a6ea11c1de68b7c9a6f9807d25
|
|
||||||
DIST dotnet-sdk-6.0.301-linux-arm64.tar.gz 176804289 BLAKE2B 6f2fe31458b24008a1f197f77652e5feadd76d37974de87d4913b6f23326db3f275843113959dd097a9083a71e7daf7e19a5d75f0a9d5e7d6cbf665c62dd8ce6 SHA512 978dd04f78ac3d6b594c47f1482bba0abe93f0b37379c1c46a2b9b33bdf5188576b055250546295de39bb22cba93ea9b31c31bb026a319ad1b3fc507db44481f
|
|
||||||
DIST dotnet-sdk-6.0.301-linux-x64.tar.gz 182966798 BLAKE2B ffc4e68efa9c1fbd8fe665fd7e6ba848446b5f9b9e16f96ea334d6d3308e6de637a528d232f417067c8e585c4e3ec131c6c52a384ce913853cea180d8ab4745d SHA512 2f434ea4860ee637e9cf19991a80e1febb1105531dd96b4fbc728d538ca0ab202a0bdff128fd13b269fac3ba3bc9d5f9c49039a6e0d7d32751e8a2bb6d790446
|
|
||||||
DIST dotnet-sdk-6.0.302-linux-arm.tar.gz 179253313 BLAKE2B faa9a1a7eafd261b4b7e47a3118cae1f5a47977d7b51d7eebb1c8ad1f42ebbe6c0baafe279f2df4b513c22b3450c80fcb338120edb660082bf9e0523ba3943f6 SHA512 0d31c7e8ccf02c8dea92d7b60bcb15e15912d74e7ee2ab8fd88ee03c4fbd8f292c356357d08ec23c2aedc5e3e0803d42ce16f3fff36245739d0cac6634bc3387
|
DIST dotnet-sdk-6.0.302-linux-arm.tar.gz 179253313 BLAKE2B faa9a1a7eafd261b4b7e47a3118cae1f5a47977d7b51d7eebb1c8ad1f42ebbe6c0baafe279f2df4b513c22b3450c80fcb338120edb660082bf9e0523ba3943f6 SHA512 0d31c7e8ccf02c8dea92d7b60bcb15e15912d74e7ee2ab8fd88ee03c4fbd8f292c356357d08ec23c2aedc5e3e0803d42ce16f3fff36245739d0cac6634bc3387
|
||||||
DIST dotnet-sdk-6.0.302-linux-arm64.tar.gz 176713012 BLAKE2B 685a08373753cf5d4ff05d783429248a5411cffebc80e137cad690168c29dc981612aadac025ad8c076cd0ad6f8faf574ae25dc1fe7d3aad4c51b7da264532e8 SHA512 26e98a63665d707b1a7729f1794077316f9927edd88d12d82d0357fe597096b0d89b64a085fcdf0cf49807a443bbfebb48e10ea91cea890846cf4308e67c4ea5
|
DIST dotnet-sdk-6.0.302-linux-arm64.tar.gz 176713012 BLAKE2B 685a08373753cf5d4ff05d783429248a5411cffebc80e137cad690168c29dc981612aadac025ad8c076cd0ad6f8faf574ae25dc1fe7d3aad4c51b7da264532e8 SHA512 26e98a63665d707b1a7729f1794077316f9927edd88d12d82d0357fe597096b0d89b64a085fcdf0cf49807a443bbfebb48e10ea91cea890846cf4308e67c4ea5
|
||||||
DIST dotnet-sdk-6.0.302-linux-x64.tar.gz 183170672 BLAKE2B b4760bc5487dd791c5e61a70693bbcdfc84d1f597dbb0c3f10b8389de761a96fbf92e1b3bcff814e240222045c4532fa19af738b4e8017988bf8d1e39e3a7ea4 SHA512 ac1d124802ca035aa00806312460b371af8e3a55d85383ddd8bb66f427c4fabae75b8be23c45888344e13b283a4f9c7df228447c06d796a57ffa5bb21992e6a4
|
DIST dotnet-sdk-6.0.302-linux-x64.tar.gz 183170672 BLAKE2B b4760bc5487dd791c5e61a70693bbcdfc84d1f597dbb0c3f10b8389de761a96fbf92e1b3bcff814e240222045c4532fa19af738b4e8017988bf8d1e39e3a7ea4 SHA512 ac1d124802ca035aa00806312460b371af8e3a55d85383ddd8bb66f427c4fabae75b8be23c45888344e13b283a4f9c7df228447c06d796a57ffa5bb21992e6a4
|
||||||
|
DIST dotnet-sdk-6.0.400-linux-arm.tar.gz 181255234 BLAKE2B af46ca19f09c690ff28ee02e273fae3113b6450028d4ff30798aaa796932f12f6082f919cfa116cf1e12f9a4674187e1da1a90d6646bf62212376e86cb1d5b69 SHA512 a72aa70bfb15e21a20ddd90c2c3e37acb53e6f1e50f5b6948aac616b28f80ac81e1157e8db5688e21dc9a7496011ef0fcf06cdca74ddc7271f9a1c6268f4b1b2
|
||||||
|
DIST dotnet-sdk-6.0.400-linux-arm64.tar.gz 178978691 BLAKE2B a9a4d9acaca85766be37e9939170f16751e08085ca19dc5b892ce33abcbdde274a023de4326704c016709000aa1771fac8fc1de7dae52c727496ff0ef6444860 SHA512 a21010f9e0e091bf0a4df9dfc4ec9893c056c2b07b10be093ea392a4fa5c8a38bad9535f66e570b45dc25165b685199fb729434b845bcfb35f8b79cceb22c632
|
||||||
|
DIST dotnet-sdk-6.0.400-linux-x64.tar.gz 185123905 BLAKE2B 84a4df49516cf9e1185b59ac840c54f27c3c1d5b6f3ab22db0756d24c72ea30842ceeca5e4ddc40ecd0efb4f84dbe794ba32568769459f9797e7006419276645 SHA512 8decbba0a6b09501daede52cbb5a9ae9e5f31ade201918c03efcd1b4cc345ec934f88321704ec3beb1f90f2204934be7259c76f66d9204cbdd15933582602763
|
||||||
|
Binary file not shown.
@ -0,0 +1,99 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
JAVA_PKG_IUSE="source"
|
||||||
|
|
||||||
|
inherit java-pkg-2 java-pkg-simple
|
||||||
|
|
||||||
|
MY_A="apache-${P}-src"
|
||||||
|
MY_P="${MY_A/-servlet-api/}"
|
||||||
|
DESCRIPTION="Tomcat's Servlet API 3.1/JSP API 2.3/EL API 3.0 implementation"
|
||||||
|
HOMEPAGE="https://tomcat.apache.org/"
|
||||||
|
SRC_URI="mirror://apache/tomcat/tomcat-8/v${PV}/src/${MY_P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="3.1"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND=">=virtual/jdk-1.8:*"
|
||||||
|
RDEPEND=">=virtual/jre-1.8:*"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_P}/"
|
||||||
|
|
||||||
|
JAVA_TEST_SRC_DIR="src/test"
|
||||||
|
|
||||||
|
SERVLET_API_JAR="servlet-api.jar"
|
||||||
|
SERVLET_API_SRC="src/main/servlet-api"
|
||||||
|
SERVLET_API_RESOURCES="src/resources/servlet-api"
|
||||||
|
EL_API_JAR="el-api.jar"
|
||||||
|
EL_API_SRC="src/main/el-api"
|
||||||
|
EL_API_RESOURCES="src/resources/el-api"
|
||||||
|
JSP_API_JAR="jsp-api.jar"
|
||||||
|
JSP_API_SRC="src/main/jsp-api"
|
||||||
|
JSP_API_RESOURCES="src/resources/jsp-api"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# The sources and also resources are mixed together so we first give it a structure to make it easier to compila and package
|
||||||
|
|
||||||
|
mkdir -p ${SERVLET_API_SRC} ${SERVLET_API_RESOURCES} \
|
||||||
|
${EL_API_SRC} ${EL_API_RESOURCES} \
|
||||||
|
${JSP_API_SRC}/javax/servlet ${JSP_API_RESOURCES} \
|
||||||
|
${JAVA_TEST_SRC_DIR} || die "Failed to create source directory"
|
||||||
|
|
||||||
|
pushd java || die "Failed to cd to java dir"
|
||||||
|
|
||||||
|
cp --parents -R javax/servlet "${S}/${SERVLET_API_SRC}/" || die "Failed to copy servlet-api sources"
|
||||||
|
mv "${S}/${SERVLET_API_SRC}/javax/servlet/jsp" "${S}/${JSP_API_SRC}/javax/servlet" || die "Failed to copy jsp-api sources"
|
||||||
|
cp --parents -R javax/el "${S}/${EL_API_SRC}/" || die "Failed to copy el-api sources"
|
||||||
|
|
||||||
|
popd
|
||||||
|
|
||||||
|
for file in $(find src -type f | grep -vE "\.java$"); do
|
||||||
|
target_dir=$(dirname $file | sed "s%src/main/%src/resources/%g")
|
||||||
|
mkdir -p ${target_dir} || die "Failed to create resource directory"
|
||||||
|
mv $file ${target_dir} || die "Failed to move resource file"
|
||||||
|
done
|
||||||
|
|
||||||
|
mv test/javax ${JAVA_TEST_SRC_DIR} || die "Failed to copy test sources"
|
||||||
|
|
||||||
|
java-pkg-2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
JAVA_SRC_DIR="${SERVLET_API_SRC}"
|
||||||
|
JAVA_RESOURCE_DIRS="${SERVLET_API_RESOURCES}"
|
||||||
|
JAVA_JAR_FILENAME="${SERVLET_API_JAR}"
|
||||||
|
java-pkg-simple_src_compile
|
||||||
|
rm -fr target || die "Failed to remove compiled files"
|
||||||
|
|
||||||
|
JAVA_SRC_DIR="${EL_API_SRC}"
|
||||||
|
JAVA_RESOURCE_DIRS="${EL_API_RESOURCES}"
|
||||||
|
JAVA_JAR_FILENAME="${EL_API_JAR}"
|
||||||
|
java-pkg-simple_src_compile
|
||||||
|
rm -fr target || die "Failed to remove compiled files"
|
||||||
|
|
||||||
|
JAVA_SRC_DIR="${JSP_API_SRC}"
|
||||||
|
JAVA_RESOURCE_DIRS="${JSP_API_RESOURCES}"
|
||||||
|
JAVA_JAR_FILENAME="${JSP_API_JAR}"
|
||||||
|
JAVA_GENTOO_CLASSPATH_EXTRA="servlet-api.jar:el-api.jar"
|
||||||
|
java-pkg-simple_src_compile
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
JAVA_SRC_DIR="${SERVLET_API_SRC}"
|
||||||
|
JAVA_JAR_FILENAME="${SERVLET_API_JAR}"
|
||||||
|
java-pkg-simple_src_install
|
||||||
|
|
||||||
|
JAVA_SRC_DIR="${EL_API_SRC}"
|
||||||
|
JAVA_JAR_FILENAME="${EL_API_JAR}"
|
||||||
|
java-pkg-simple_src_install
|
||||||
|
|
||||||
|
JAVA_SRC_DIR="${JSP_API_SRC}"
|
||||||
|
JAVA_JAR_FILENAME="${JSP_API_JAR}"
|
||||||
|
java-pkg-simple_src_install
|
||||||
|
}
|
Binary file not shown.
@ -1,2 +1 @@
|
|||||||
DIST libappindicator-12.10.0.tar.gz 535562 BLAKE2B a05dc839aaea9fb3fda118d16aac0eb5c35e6c5095a83eb5e8a2af4902bc1da14960fbd57d3cda5d4d5d874023549ce83657a515aa9ee16a54cadfa81062d993 SHA512 317a22a23c8ed84e74207b64b2e9683992d1fb7208176637a051dfe925974f966d1cfa31e650b45eaf839ab61641dee8fbebc8a07882a09b0dd766d88b8d5b9a
|
|
||||||
DIST libappindicator_12.10.1+20.10.20200706.1.orig.tar.gz 75204 BLAKE2B ccc7909f25946413cf39275d8565afca253b3a2676272e4d3833f030a114e7be695fe958d2d99868a20d03a2b9c4a1fcd7fdfba07325b7a9f7f39879851e0366 SHA512 cc60875b1c4ab06348eece442a59a4057d7e13f25605435902242558e8dd5e66aeeee6725b9bd2662ef89052d3614dc4577ed8c233e9b84236a75e771aa67352
|
DIST libappindicator_12.10.1+20.10.20200706.1.orig.tar.gz 75204 BLAKE2B ccc7909f25946413cf39275d8565afca253b3a2676272e4d3833f030a114e7be695fe958d2d99868a20d03a2b9c4a1fcd7fdfba07325b7a9f7f39879851e0366 SHA512 cc60875b1c4ab06348eece442a59a4057d7e13f25605435902242558e8dd5e66aeeee6725b9bd2662ef89052d3614dc4577ed8c233e9b84236a75e771aa67352
|
||||||
|
@ -1,72 +0,0 @@
|
|||||||
--- a/bindings/Makefile.am 2015-07-10 10:04:18.091199191 +0200
|
|
||||||
+++ b/bindings/Makefile.am 2015-07-10 10:19:47.047974439 +0200
|
|
||||||
@@ -3,8 +3,10 @@
|
|
||||||
vala
|
|
||||||
else
|
|
||||||
SUBDIRS = \
|
|
||||||
- python \
|
|
||||||
vala
|
|
||||||
+if HAS_PYTHON
|
|
||||||
+SUBDIRS += python
|
|
||||||
+endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
if HAS_MONO
|
|
||||||
--- a/configure.ac 2015-07-16 13:28:41.007502838 +0200
|
|
||||||
+++ b/configure.ac_new 2015-07-16 13:53:18.118602877 +0200
|
|
||||||
@@ -188,25 +188,37 @@
|
|
||||||
PYGTK_REQUIRED=2.14.0
|
|
||||||
PYGOBJECT_REQUIRED=0.22
|
|
||||||
|
|
||||||
-AM_PATH_PYTHON(2.3.5)
|
|
||||||
-AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
|
|
||||||
+AC_ARG_ENABLE([python],
|
|
||||||
+ AC_HELP_STRING([--enable-python], [Enable python for GTK2 build]),,
|
|
||||||
+ [enable_python=yes])
|
|
||||||
|
|
||||||
-PKG_CHECK_MODULES(APPINDICATOR_PYTHON,
|
|
||||||
+if test x"$with_gtk" = x"3" ; then
|
|
||||||
+ enable_python=no
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+AM_CONDITIONAL(HAS_PYTHON, test x"${enable_python}" != x"no")
|
|
||||||
+
|
|
||||||
+if test x"$enable_python" != x"no" ; then
|
|
||||||
+ AM_PATH_PYTHON(2.3.5)
|
|
||||||
+ AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
|
|
||||||
+
|
|
||||||
+ PKG_CHECK_MODULES(APPINDICATOR_PYTHON,
|
|
||||||
[
|
|
||||||
pygtk-2.0 >= $PYGTK_REQUIRED
|
|
||||||
gtk+-2.0 >= $GTK_REQUIRED_VERSION
|
|
||||||
pygobject-2.0 >= $PYGOBJECT_REQUIRED
|
|
||||||
])
|
|
||||||
|
|
||||||
-AC_MSG_CHECKING(for pygtk defs)
|
|
||||||
-PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
|
|
||||||
-AC_SUBST(PYGTK_DEFSDIR)
|
|
||||||
-AC_MSG_RESULT($PYGTK_DEFSDIR)
|
|
||||||
-
|
|
||||||
-AC_MSG_CHECKING(for pygtk codegen)
|
|
||||||
-PYGTK_CODEGEN="$PYTHON `$PKG_CONFIG --variable=codegendir pygtk-2.0`/codegen.py"
|
|
||||||
-AC_SUBST(PYGTK_CODEGEN)
|
|
||||||
-AC_MSG_RESULT($PYGTK_CODEGEN)
|
|
||||||
+ AC_MSG_CHECKING(for pygtk defs)
|
|
||||||
+ PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
|
|
||||||
+ AC_SUBST(PYGTK_DEFSDIR)
|
|
||||||
+ AC_MSG_RESULT($PYGTK_DEFSDIR)
|
|
||||||
+
|
|
||||||
+ AC_MSG_CHECKING(for pygtk codegen)
|
|
||||||
+ PYGTK_CODEGEN="$PYTHON `$PKG_CONFIG --variable=codegendir pygtk-2.0`/codegen.py"
|
|
||||||
+ AC_SUBST(PYGTK_CODEGEN)
|
|
||||||
+ AC_MSG_RESULT($PYGTK_CODEGEN)
|
|
||||||
+fi
|
|
||||||
|
|
||||||
#########################
|
|
||||||
# Check if build tests
|
|
||||||
@@ -278,4 +290,5 @@
|
|
||||||
Tests: $enable_tests
|
|
||||||
Mono tests: $have_nunit
|
|
||||||
gcov: $use_gcov
|
|
||||||
+ Python: $enable_python
|
|
||||||
])
|
|
@ -1,74 +0,0 @@
|
|||||||
--- a/src/app-indicator.c 2012-07-11 13:28:34.415113869 -0400
|
|
||||||
+++ b/src/app-indicator.c 2020-03-19 12:14:47.813191652 -0400
|
|
||||||
@@ -443,7 +443,7 @@
|
|
||||||
G_STRUCT_OFFSET (AppIndicatorClass, new_icon),
|
|
||||||
NULL, NULL,
|
|
||||||
g_cclosure_marshal_VOID__VOID,
|
|
||||||
- G_TYPE_NONE, 0, G_TYPE_NONE);
|
|
||||||
+ G_TYPE_NONE, 0);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* AppIndicator::new-attention-icon:
|
|
||||||
@@ -457,7 +457,7 @@
|
|
||||||
G_STRUCT_OFFSET (AppIndicatorClass, new_attention_icon),
|
|
||||||
NULL, NULL,
|
|
||||||
g_cclosure_marshal_VOID__VOID,
|
|
||||||
- G_TYPE_NONE, 0, G_TYPE_NONE);
|
|
||||||
+ G_TYPE_NONE, 0);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* AppIndicator::new-status:
|
|
||||||
@@ -505,7 +505,7 @@
|
|
||||||
G_STRUCT_OFFSET (AppIndicatorClass, connection_changed),
|
|
||||||
NULL, NULL,
|
|
||||||
g_cclosure_marshal_VOID__BOOLEAN,
|
|
||||||
- G_TYPE_NONE, 1, G_TYPE_BOOLEAN, G_TYPE_NONE);
|
|
||||||
+ G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* AppIndicator::new-icon-theme-path:
|
|
||||||
@@ -1175,7 +1175,7 @@
|
|
||||||
gchar * guide = priv->label_guide != NULL ? priv->label_guide : "";
|
|
||||||
|
|
||||||
g_signal_emit(G_OBJECT(self), signals[NEW_LABEL], 0,
|
|
||||||
- label, guide, TRUE);
|
|
||||||
+ label, guide);
|
|
||||||
if (priv->dbus_registration != 0 && priv->connection != NULL) {
|
|
||||||
GError * error = NULL;
|
|
||||||
|
|
||||||
@@ -1490,7 +1490,7 @@
|
|
||||||
static void
|
|
||||||
theme_changed_cb (GtkIconTheme * theme, gpointer user_data)
|
|
||||||
{
|
|
||||||
- g_signal_emit (user_data, signals[NEW_ICON], 0, TRUE);
|
|
||||||
+ g_signal_emit (user_data, signals[NEW_ICON], 0);
|
|
||||||
|
|
||||||
AppIndicator * self = (AppIndicator *)user_data;
|
|
||||||
AppIndicatorPrivate *priv = self->priv;
|
|
||||||
@@ -1904,7 +1904,7 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
if (changed) {
|
|
||||||
- g_signal_emit (self, signals[NEW_ATTENTION_ICON], 0, TRUE);
|
|
||||||
+ g_signal_emit (self, signals[NEW_ATTENTION_ICON], 0);
|
|
||||||
|
|
||||||
if (self->priv->dbus_registration != 0 && self->priv->connection != NULL) {
|
|
||||||
GError * error = NULL;
|
|
||||||
@@ -1982,7 +1982,7 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
if (changed) {
|
|
||||||
- g_signal_emit (self, signals[NEW_ICON], 0, TRUE);
|
|
||||||
+ g_signal_emit (self, signals[NEW_ICON], 0);
|
|
||||||
|
|
||||||
if (self->priv->dbus_registration != 0 && self->priv->connection != NULL) {
|
|
||||||
GError * error = NULL;
|
|
||||||
@@ -2048,7 +2048,7 @@
|
|
||||||
|
|
||||||
self->priv->icon_theme_path = g_strdup(icon_theme_path);
|
|
||||||
|
|
||||||
- g_signal_emit (self, signals[NEW_ICON_THEME_PATH], 0, self->priv->icon_theme_path, TRUE);
|
|
||||||
+ g_signal_emit (self, signals[NEW_ICON_THEME_PATH], 0, self->priv->icon_theme_path);
|
|
||||||
|
|
||||||
if (self->priv->dbus_registration != 0 && self->priv->connection != NULL) {
|
|
||||||
GError * error = NULL;
|
|
@ -1,11 +0,0 @@
|
|||||||
--- a/src/app-indicator.c 2020-10-31 03:31:51.966830232 -0700
|
|
||||||
+++ b/src/app-indicator.c 2020-10-31 03:36:04.252822972 -0700
|
|
||||||
@@ -1606,7 +1606,7 @@ status_icon_changes (AppIndicator * self
|
|
||||||
gint n_elements, i;
|
|
||||||
gboolean found=FALSE;
|
|
||||||
gtk_icon_theme_get_search_path(icon_theme, &path, &n_elements);
|
|
||||||
- for (i=0; i< n_elements || path[i] == NULL; i++) {
|
|
||||||
+ for (i=0; i< n_elements; i++) {
|
|
||||||
if(g_strcmp0(path[i], self->priv->icon_theme_path) == 0) {
|
|
||||||
found=TRUE;
|
|
||||||
break;
|
|
@ -1,14 +0,0 @@
|
|||||||
# http://bazaar.launchpad.net/~indicator-applet-developers/libappindicator/trunk.12.10/revision/244
|
|
||||||
=== modified file 'bindings/vala/appindicator-0.1-custom.vala'
|
|
||||||
--- a/bindings/vala/appindicator-0.1-custom.vala 2011-09-23 15:46:27 +0000
|
|
||||||
+++ b/bindings/vala/appindicator-0.1-custom.vala 2012-10-10 23:33:35 +0000
|
|
||||||
@@ -23,7 +23,7 @@
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace AppIndicator {
|
|
||||||
- [CCode (type_check_function = "IS_APP_INDICATOR")]
|
|
||||||
+ [CCode (type_check_function = "IS_APP_INDICATOR", type_id = "app_indicator_get_type ()")]
|
|
||||||
public class Indicator : GLib.Object {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,76 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
VALA_USE_DEPEND="vapigen"
|
|
||||||
|
|
||||||
inherit autotools multilib-minimal vala xdg-utils
|
|
||||||
|
|
||||||
DESCRIPTION="A library to allow applications to export a menu into the Unity Menu bar"
|
|
||||||
HOMEPAGE="https://launchpad.net/libappindicator"
|
|
||||||
SRC_URI="https://launchpad.net/${PN}/${PV%.*}/${PV}/+download/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1 LGPL-3"
|
|
||||||
SLOT="3"
|
|
||||||
KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ~ppc64 x86"
|
|
||||||
IUSE="+introspection"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-libs/dbus-glib-0.98[${MULTILIB_USEDEP}]
|
|
||||||
>=dev-libs/glib-2.26:2[${MULTILIB_USEDEP}]
|
|
||||||
>=dev-libs/libdbusmenu-0.6.2[gtk3,${MULTILIB_USEDEP}]
|
|
||||||
>=dev-libs/libindicator-12.10.0:3[${MULTILIB_USEDEP}]
|
|
||||||
>=x11-libs/gtk+-3.2:3[${MULTILIB_USEDEP},introspection?]
|
|
||||||
introspection? ( >=dev-libs/gobject-introspection-1:= )
|
|
||||||
"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
introspection? ( $(vala_depend) )
|
|
||||||
dev-util/gtk-doc-am
|
|
||||||
virtual/pkgconfig
|
|
||||||
"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}"/${P}-conditional-py-bindings.patch
|
|
||||||
# http://bazaar.launchpad.net/~indicator-applet-developers/libappindicator/trunk.12.10/revision/244
|
|
||||||
"${FILESDIR}"/${P}-vala-inherit.patch
|
|
||||||
# https://bugs.launchpad.net/archlinux/+source/libappindicator/+bug/1867996
|
|
||||||
"${FILESDIR}"/${P}-lp1867996-fix-g-signal-emit.patch
|
|
||||||
"${FILESDIR}"/${P}-lp1867996-fix-iterate-search-path.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
xdg_environment_reset
|
|
||||||
export MAKEOPTS+=" -j1" #638782
|
|
||||||
|
|
||||||
# Don't use -Werror
|
|
||||||
sed -i -e 's/ -Werror//' {src,tests}/Makefile.{am,in} || die
|
|
||||||
|
|
||||||
eautoreconf
|
|
||||||
|
|
||||||
# Disable MONO for now because of https://bugs.gentoo.org/382491
|
|
||||||
sed -i -e '/^MONO_REQUIRED_VERSION/s:=.*:=9999:' configure || die
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_configure() {
|
|
||||||
if multilib_is_native_abi; then
|
|
||||||
local -x VALAC VALA_API_GEN VAPIGEN_VAPIDIR PKG_CONFIG_PATH
|
|
||||||
use introspection && vala_src_prepare && export VALA_API_GEN="${VAPIGEN}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
ECONF_SOURCE="${S}" \
|
|
||||||
econf \
|
|
||||||
--disable-static \
|
|
||||||
--with-gtk=3 \
|
|
||||||
$(multilib_native_use_enable introspection)
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_install() {
|
|
||||||
emake -j1 DESTDIR="${D}" install
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_install_all() {
|
|
||||||
einstalldocs
|
|
||||||
find "${ED}" -name '*.la' -delete || die
|
|
||||||
}
|
|
Binary file not shown.
@ -1 +1,2 @@
|
|||||||
DIST QtPy-2.1.0.tar.gz 46470 BLAKE2B 2e032d141ad134444143cd59b8952957b226d9519925083aecce82adf62eebd3f58803cf548c4142fb1ece6f0e2340043a82a7aef056f6e4a9ac8b9caf72d80d SHA512 052cab4218d23d46162d11bf038dccfe6200b05c1c8647bd1f9dcbdaa7af50c23d4ae85829e065c7bae57630d149d562d76cc78202b4f448cbf6547010c746ff
|
DIST QtPy-2.1.0.tar.gz 46470 BLAKE2B 2e032d141ad134444143cd59b8952957b226d9519925083aecce82adf62eebd3f58803cf548c4142fb1ece6f0e2340043a82a7aef056f6e4a9ac8b9caf72d80d SHA512 052cab4218d23d46162d11bf038dccfe6200b05c1c8647bd1f9dcbdaa7af50c23d4ae85829e065c7bae57630d149d562d76cc78202b4f448cbf6547010c746ff
|
||||||
|
DIST QtPy-2.2.0.tar.gz 51573 BLAKE2B 5db2be83c74fa241cbec6818fbf5b5a8ecf681fdb2813cd51b011342eb8f0f2463c0a9f251e791f6051fa3276ad1e502f7e51bf0dcd2d3192bd76d0119dc8b16 SHA512 b0e7696c7861942c16749dc5f5ccbfd038f7fc2b1defbf372885223c4100805cada9bbb2f5bdae1f1c642b52d480d6e0048e221d9efd3f3103da54e6e2bfd0ff
|
||||||
|
@ -0,0 +1,215 @@
|
|||||||
|
# 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 virtualx
|
||||||
|
|
||||||
|
DESCRIPTION="Abstraction layer on top of PyQt5 and PySide2 and additional custom QWidgets"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/spyder-ide/qtpy/
|
||||||
|
https://pypi.org/project/QtPy/
|
||||||
|
"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
_IUSE_QT_MODULES="
|
||||||
|
designer +gui help multimedia +network opengl positioning
|
||||||
|
printsupport qml quick serialport +sql svg testlib
|
||||||
|
webchannel webengine websockets +widgets +xml
|
||||||
|
"
|
||||||
|
IUSE="+pyqt5 pyqt6 pyside2 pyside6 ${_IUSE_QT_MODULES}"
|
||||||
|
unset _IUSE_QT_MODULES
|
||||||
|
|
||||||
|
# PySide6 is not yet ready for python3_11
|
||||||
|
REQUIRED_USE="
|
||||||
|
|| ( pyqt5 pyqt6 pyside2 pyside6 )
|
||||||
|
pyside6? ( !python_targets_python3_11 )
|
||||||
|
"
|
||||||
|
|
||||||
|
# These flags are currently *not* common to the PySide2/6 and PyQt5/6 ebuilds
|
||||||
|
# Disable them for now, please check periodically if this is still up to date.
|
||||||
|
# bluetooth? ( pyqt5 only )
|
||||||
|
# dbus? ( pyqt5 only )
|
||||||
|
#
|
||||||
|
# 3d? ( pyside2 only )
|
||||||
|
# charts? ( pyside2 only )
|
||||||
|
# concurrent? ( pyside2 only )
|
||||||
|
# datavis? ( pyside2 only )
|
||||||
|
# scxml? ( pyside2 only )
|
||||||
|
# script? ( pyside2 only )
|
||||||
|
# scripttools? ( pyside2 only )
|
||||||
|
#
|
||||||
|
# location? ( pyside2 and pyqt5 only )
|
||||||
|
# sensors? ( pyside2 and pyqt5 only )
|
||||||
|
# speech? ( pyside2 and pyqt5 only )
|
||||||
|
# x11extras? ( pyside2 and pyqt5 only )
|
||||||
|
# xmlpatterns? ( pyside2 and pyqt5 only )
|
||||||
|
|
||||||
|
# WARNING: the obvious solution of using || for PyQt5/pyside2 is not going
|
||||||
|
# to work. The package only checks whether PyQt5/pyside2 is installed, it does
|
||||||
|
# not verify whether they have the necessary modules (i.e. satisfy the USE dep).
|
||||||
|
#
|
||||||
|
# Webengine is a special case, because PyQt5 provides this in a separate package
|
||||||
|
# while PySide2 ships it in the same package.
|
||||||
|
#
|
||||||
|
# declarative/qml/quick is a special case, because PyQt5 bundles the bindings
|
||||||
|
# for qml and quick in one flag: declarative PySide2 does not.
|
||||||
|
#
|
||||||
|
# The PyQt5 ebuild currently enables xml support unconditionally, the flag is
|
||||||
|
# added anyway with a (+) to make it future proof if the ebuild were to change
|
||||||
|
# this behaviour in the future.
|
||||||
|
#
|
||||||
|
# The PySide2 ebuild currently enables opengl and serialport support
|
||||||
|
# unconditionally, the flag is added anyway with a (+) to make it future proof
|
||||||
|
# if the ebuild were to change this behaviour in the future.
|
||||||
|
RDEPEND="
|
||||||
|
dev-python/packaging[${PYTHON_USEDEP}]
|
||||||
|
pyqt5? (
|
||||||
|
dev-python/PyQt5[${PYTHON_USEDEP}]
|
||||||
|
dev-python/PyQt5[designer?,gui?,help?,multimedia?,network?,opengl?]
|
||||||
|
dev-python/PyQt5[positioning?,printsupport?,serialport?,sql?,svg?]
|
||||||
|
dev-python/PyQt5[testlib?,webchannel?,websockets?,widgets?,xml(+)?]
|
||||||
|
qml? ( dev-python/PyQt5[declarative] )
|
||||||
|
quick? ( dev-python/PyQt5[declarative] )
|
||||||
|
webengine? ( dev-python/PyQtWebEngine[${PYTHON_USEDEP}] )
|
||||||
|
)
|
||||||
|
pyqt6? (
|
||||||
|
dev-python/PyQt6[${PYTHON_USEDEP}]
|
||||||
|
dev-python/PyQt6[designer?,gui?,help?,multimedia?,network?,opengl?]
|
||||||
|
dev-python/PyQt6[positioning?,printsupport?,qml?,quick?,serialport?,sql?]
|
||||||
|
dev-python/PyQt6[svg?,testlib?,webchannel?,websockets?,widgets?,xml?]
|
||||||
|
webengine? ( dev-python/PyQt6-WebEngine[${PYTHON_USEDEP},widgets?,quick?] )
|
||||||
|
|
||||||
|
)
|
||||||
|
pyside2? (
|
||||||
|
dev-python/pyside2[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyside2[designer?,gui?,help?,multimedia?,network?,opengl(+)?]
|
||||||
|
dev-python/pyside2[positioning?,printsupport?,qml?,quick?,serialport(+)?]
|
||||||
|
dev-python/pyside2[sql?,svg?,testlib?,webchannel?,webengine?,websockets?]
|
||||||
|
dev-python/pyside2[widgets?,xml?]
|
||||||
|
)
|
||||||
|
!python_targets_python3_11? (
|
||||||
|
pyside6? (
|
||||||
|
dev-python/pyside6[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyside6[designer?,gui?,help?,multimedia?,network?,opengl?]
|
||||||
|
dev-python/pyside6[positioning?,printsupport?,qml?,quick?,serialport?]
|
||||||
|
dev-python/pyside6[sql?,svg?,testlib?,webchannel?,webengine?,websockets?]
|
||||||
|
dev-python/pyside6[widgets?,xml?]
|
||||||
|
)
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
# The QtPy testsuite skips tests for bindings that are not installed, so here we
|
||||||
|
# ensure that everything is available and all tests are run. Note that not
|
||||||
|
# all flags are available in PyQt5/PySide2, so some tests are still skipped.
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/mock[${PYTHON_USEDEP}]
|
||||||
|
pyqt5? (
|
||||||
|
dev-python/PyQt5[${PYTHON_USEDEP}]
|
||||||
|
dev-python/PyQt5[bluetooth,dbus,declarative,designer,gui,help,location]
|
||||||
|
dev-python/PyQt5[multimedia,network,opengl,positioning,printsupport]
|
||||||
|
dev-python/PyQt5[sensors,serialport,speech(-),sql,svg,testlib,webchannel]
|
||||||
|
dev-python/PyQt5[websockets,widgets,x11extras,xml(+),xmlpatterns]
|
||||||
|
dev-python/PyQtWebEngine[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
pyqt6? (
|
||||||
|
dev-python/PyQt6[${PYTHON_USEDEP}]
|
||||||
|
dev-python/PyQt6[dbus,designer,gui,help,multimedia,network,opengl]
|
||||||
|
dev-python/PyQt6[positioning,printsupport,qml,quick,quick3d,serialport]
|
||||||
|
dev-python/PyQt6[sql,ssl,svg,testlib,webchannel,websockets,widgets,xml]
|
||||||
|
dev-python/PyQt6-WebEngine[${PYTHON_USEDEP},widgets,quick]
|
||||||
|
)
|
||||||
|
pyside2? (
|
||||||
|
dev-python/pyside2[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyside2[3d,charts,concurrent,datavis,designer,gui,help]
|
||||||
|
dev-python/pyside2[location,multimedia,network,opengl(+),positioning]
|
||||||
|
dev-python/pyside2[printsupport,qml,quick,script,scripttools,scxml]
|
||||||
|
dev-python/pyside2[sensors,serialport(+),speech,sql,svg,testlib]
|
||||||
|
dev-python/pyside2[webchannel,webengine,websockets,widgets,x11extras]
|
||||||
|
dev-python/pyside2[xml,xmlpatterns]
|
||||||
|
)
|
||||||
|
!python_targets_python3_11? (
|
||||||
|
pyside6? (
|
||||||
|
dev-python/pyside6[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyside6[concurrent,dbus,designer,gui,help,multimedia]
|
||||||
|
dev-python/pyside6[network,opengl,positioning,printsupport,qml]
|
||||||
|
dev-python/pyside6[quick,quick3d,serialport,sql,svg,testlib]
|
||||||
|
dev-python/pyside6[webchannel,webengine,websockets,widgets,xml]
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
sed -i -e 's:--cov=qtpy --cov-report=term-missing::' pytest.ini || die
|
||||||
|
# Disable Qt for Python implementations that are not selected
|
||||||
|
if ! use pyqt5; then
|
||||||
|
sed -i -e "s/from PyQt5.QtCore import/raise ImportError #/" qtpy/__init__.py || die
|
||||||
|
fi
|
||||||
|
if ! use pyqt6; then
|
||||||
|
sed -i -e "s/from PyQt6.QtCore import/raise ImportError #/" qtpy/__init__.py || die
|
||||||
|
fi
|
||||||
|
if ! use pyside2; then
|
||||||
|
sed -i -e "s/from PySide2 import/raise ImportError #/" qtpy/__init__.py || die
|
||||||
|
sed -i -e "s/from PySide2.QtCore import/raise ImportError #/" qtpy/__init__.py || die
|
||||||
|
fi
|
||||||
|
if ! use pyside6; then
|
||||||
|
sed -i -e "s/from PySide6 import/raise ImportError #/" qtpy/__init__.py || die
|
||||||
|
sed -i -e "s/from PySide6.QtCore import/raise ImportError #/" qtpy/__init__.py || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
# Test for each enabled Qt4Python target.
|
||||||
|
# Deselect the other targets, their test fails if we specify QT_API
|
||||||
|
# or if we have disabled their corresponding inherit in __init__.py above
|
||||||
|
if use pyqt5; then
|
||||||
|
einfo "Testing with ${EPYTHON} and QT_API=PyQt5"
|
||||||
|
QT_API="pyqt5" virtx epytest \
|
||||||
|
--deselect qtpy/tests/test_main.py::test_qt_api_environ[PySide2] \
|
||||||
|
--deselect qtpy/tests/test_main.py::test_qt_api_environ[PyQt6] \
|
||||||
|
--deselect qtpy/tests/test_main.py::test_qt_api_environ[PySide6]
|
||||||
|
fi
|
||||||
|
if use pyqt6; then
|
||||||
|
einfo "Testing with ${EPYTHON} and QT_API=PyQt6"
|
||||||
|
QT_API="pyqt6" virtx epytest \
|
||||||
|
--deselect qtpy/tests/test_main.py::test_qt_api_environ[PySide2] \
|
||||||
|
--deselect qtpy/tests/test_main.py::test_qt_api_environ[PyQt5] \
|
||||||
|
--deselect qtpy/tests/test_main.py::test_qt_api_environ[PySide6] \
|
||||||
|
--deselect qtpy/tests/test_qtsensors.py::test_qtsensors
|
||||||
|
# Qt6Sensors not yet packaged and enabled in PyQt6 ebuild
|
||||||
|
fi
|
||||||
|
if use pyside2; then
|
||||||
|
einfo "Testing with ${EPYTHON} and QT_API=PySide2"
|
||||||
|
QT_API="pyside2" virtx epytest \
|
||||||
|
--deselect qtpy/tests/test_main.py::test_qt_api_environ[PyQt5] \
|
||||||
|
--deselect qtpy/tests/test_main.py::test_qt_api_environ[PyQt6] \
|
||||||
|
--deselect qtpy/tests/test_main.py::test_qt_api_environ[PySide6]
|
||||||
|
fi
|
||||||
|
if use pyside6; then
|
||||||
|
einfo "Testing with ${EPYTHON} and QT_API=PySide6"
|
||||||
|
QT_API="pyside6" virtx epytest \
|
||||||
|
--deselect qtpy/tests/test_main.py::test_qt_api_environ[PySide2] \
|
||||||
|
--deselect qtpy/tests/test_main.py::test_qt_api_environ[PyQt5] \
|
||||||
|
--deselect qtpy/tests/test_main.py::test_qt_api_environ[PyQt6] \
|
||||||
|
--deselect qtpy/tests/test_qtsensors.py::test_qtsensors
|
||||||
|
# Qt6Sensors not yet packaged and enabled in PySide6 ebuild
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog "When multiple Qt4Python targets are enabled QtPy will default to"
|
||||||
|
elog "the first enabled target in this order: PyQt5 PySide2 PyQt6 PySide6."
|
||||||
|
elog "This can be overridden with the QT_API environment variable."
|
||||||
|
}
|
@ -1,2 +1 @@
|
|||||||
DIST cmd2-2.4.1.tar.gz 676903 BLAKE2B 10b27d7658ee366d44d5fd13a4daf3adb65537043e0475e4c30b5a3b5e142cae982515f033e52fbd63bbce583ffc64e7b0a032d4cc0bbca76303720ecb2a8232 SHA512 862ff0ed301dc8fd588fb564602b32c9e8dee1dcae9965b0ed4605acc98b63ca5767b28c0030410395fb34ea1a0c7cf966972c19b75b93c1a3a3b90b582279fb
|
|
||||||
DIST cmd2-2.4.2.tar.gz 677598 BLAKE2B 38b767e70d42125639578a906a6bd0ac737ee1e3be2951b122f91a1a2bfe366ea23db2d7d7350842b667aca7614a3520057f689cb1c253d1c4b11e164c2ee4a1 SHA512 d70d264671db2783526c589199ff74cc70d53a4fbaa1d78636a508dbf8216aefab17f5764bf25b2b86e9c1413e0e61977819fbb0dec59d3209195df522d3fa5f
|
DIST cmd2-2.4.2.tar.gz 677598 BLAKE2B 38b767e70d42125639578a906a6bd0ac737ee1e3be2951b122f91a1a2bfe366ea23db2d7d7350842b667aca7614a3520057f689cb1c253d1c4b11e164c2ee4a1 SHA512 d70d264671db2783526c589199ff74cc70d53a4fbaa1d78636a508dbf8216aefab17f5764bf25b2b86e9c1413e0e61977819fbb0dec59d3209195df522d3fa5f
|
||||||
|
@ -1,64 +0,0 @@
|
|||||||
# 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 virtualx
|
|
||||||
|
|
||||||
DESCRIPTION="Extra features for standard library's cmd module"
|
|
||||||
HOMEPAGE="
|
|
||||||
https://github.com/python-cmd2/cmd2/
|
|
||||||
https://pypi.org/project/cmd2/
|
|
||||||
"
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ~ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
dev-python/attrs[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/colorama-0.3.7[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pyperclip-1.6[${PYTHON_USEDEP}]
|
|
||||||
dev-python/six[${PYTHON_USEDEP}]
|
|
||||||
dev-python/wcwidth[${PYTHON_USEDEP}]
|
|
||||||
"
|
|
||||||
# pyperclip uses clipboard backends in the following preference order:
|
|
||||||
# pygtk, xclip, xsel, klipper, qtpy, pyqt5, pyqt4.
|
|
||||||
# klipper is known to be broken in Xvfb, and therefore causes test
|
|
||||||
# failures. to avoid them, we must ensure that one of the backends
|
|
||||||
# preferred to it is available (i.e. xclip or xsel).
|
|
||||||
BDEPEND="
|
|
||||||
dev-python/setuptools_scm[${PYTHON_USEDEP}]
|
|
||||||
test? (
|
|
||||||
dev-python/pytest-mock[${PYTHON_USEDEP}]
|
|
||||||
|| (
|
|
||||||
x11-misc/xclip
|
|
||||||
x11-misc/xsel
|
|
||||||
)
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
distutils_enable_tests pytest
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}"/${P}-py311.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
distutils-r1_src_prepare
|
|
||||||
sed -i -e '/--cov/d' setup.cfg || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
# tests rely on very specific text wrapping...
|
|
||||||
local -x COLUMNS=80
|
|
||||||
virtx distutils-r1_src_test
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
epytest -p no:pytest-qt || die
|
|
||||||
}
|
|
@ -1,26 +0,0 @@
|
|||||||
From c02bb7dce587886fe380704a8c6a6009eb677a74 Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
|
|
||||||
Date: Sat, 21 May 2022 15:41:11 +0200
|
|
||||||
Subject: [PATCH] Fixed duplicate subparser name in
|
|
||||||
test_add_parser_custom_completer
|
|
||||||
|
|
||||||
If I'm not mistaken, the use of the same name for both subparsers was
|
|
||||||
not intentional but a typo. In Python 3.11, this is an error and causes
|
|
||||||
the test to fail.
|
|
||||||
|
|
||||||
Fixes #1228
|
|
||||||
---
|
|
||||||
tests/test_argparse_completer.py | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/tests/test_argparse_completer.py b/tests/test_argparse_completer.py
|
|
||||||
index 135d3de4..14c8c1de 100644
|
|
||||||
--- a/tests/test_argparse_completer.py
|
|
||||||
+++ b/tests/test_argparse_completer.py
|
|
||||||
@@ -1371,5 +1371,5 @@ def test_add_parser_custom_completer():
|
|
||||||
no_custom_completer_parser = subparsers.add_parser(name="no_custom_completer")
|
|
||||||
assert no_custom_completer_parser.get_ap_completer_type() is None # type: ignore[attr-defined]
|
|
||||||
|
|
||||||
- custom_completer_parser = subparsers.add_parser(name="no_custom_completer", ap_completer_type=CustomCompleter)
|
|
||||||
+ custom_completer_parser = subparsers.add_parser(name="custom_completer", ap_completer_type=CustomCompleter)
|
|
||||||
assert custom_completer_parser.get_ap_completer_type() is CustomCompleter # type: ignore[attr-defined]
|
|
@ -1,3 +1 @@
|
|||||||
DIST cssutils-2.4.2.tar.gz 726519 BLAKE2B c087e06d25aa78cac35e936fe06d37ffc973b022a611a4a294683929b4c553adfbeb475330e8ce4b27b5aea3b9d4c89df6f52d02fef49236a81245505ab80d5b SHA512 0757fa73170c0287ee7be9c931103bb1781c93fba63870bb11e257797af7033e77e5417ed1c7aa219eeaff5c524a84c920ead0e2b8a4599ce499b17a83fdc8f7
|
|
||||||
DIST cssutils-2.5.0.tar.gz 723225 BLAKE2B 521bde4f9f0b5d0a8fb74e24d640e55c3a0ed900f98e43c620f6b00bb66a591792709faae38fd778e6925581bd4f32f866d815d42d07e039dceb703d0dce2422 SHA512 49163d341ce169791bc99ba5f466eab2af09e65aaef68157b3c2263fca8214db2d6b586d165364cbed3c27e8f9d188dad020933eb0553ce5493fca3ab2322579
|
|
||||||
DIST cssutils-2.5.1.tar.gz 723277 BLAKE2B ca55d980929d48c6eb555c08166870572ac179dadef785ccba3781de7568655374f3fbe44282db7c85f623dbf0c1aaf3360038c7168ba4022ad2f68b48ae5745 SHA512 20a94d5f08f662d67f2c1a0f92ca7fbc46d58dffc8bd4187ab51c8deb6ed29154604abab474ad80c806cc50b1dda9bf8d06edd98d5e8603bdd4917052ba796ce
|
DIST cssutils-2.5.1.tar.gz 723277 BLAKE2B ca55d980929d48c6eb555c08166870572ac179dadef785ccba3781de7568655374f3fbe44282db7c85f623dbf0c1aaf3360038c7168ba4022ad2f68b48ae5745 SHA512 20a94d5f08f662d67f2c1a0f92ca7fbc46d58dffc8bd4187ab51c8deb6ed29154604abab474ad80c806cc50b1dda9bf8d06edd98d5e8603bdd4917052ba796ce
|
||||||
|
@ -1,42 +0,0 @@
|
|||||||
# 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="A CSS Cascading Style Sheets library"
|
|
||||||
HOMEPAGE="
|
|
||||||
https://pypi.org/project/cssutils/
|
|
||||||
https://github.com/jaraco/cssutils/
|
|
||||||
"
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 arm arm64 ppc x86"
|
|
||||||
|
|
||||||
BDEPEND="
|
|
||||||
dev-python/setuptools_scm[${PYTHON_USEDEP}]
|
|
||||||
test? (
|
|
||||||
dev-python/cssselect[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/jaraco-test-5.1[${PYTHON_USEDEP}]
|
|
||||||
dev-python/lxml[${PYTHON_USEDEP}]
|
|
||||||
dev-python/mock[${PYTHON_USEDEP}]
|
|
||||||
$(python_gen_cond_dep '
|
|
||||||
dev-python/importlib_resources[${PYTHON_USEDEP}]
|
|
||||||
' 3.8)
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
distutils_enable_tests pytest
|
|
||||||
|
|
||||||
EPYTEST_DESELECT=(
|
|
||||||
# network
|
|
||||||
encutils/__init__.py::encutils
|
|
||||||
cssutils/tests/test_parse.py::CSSParserTestCase::test_parseUrl
|
|
||||||
examples/website.py::website.logging
|
|
||||||
)
|
|
@ -1,42 +0,0 @@
|
|||||||
# 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="A CSS Cascading Style Sheets library"
|
|
||||||
HOMEPAGE="
|
|
||||||
https://pypi.org/project/cssutils/
|
|
||||||
https://github.com/jaraco/cssutils/
|
|
||||||
"
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
|
|
||||||
|
|
||||||
BDEPEND="
|
|
||||||
dev-python/setuptools_scm[${PYTHON_USEDEP}]
|
|
||||||
test? (
|
|
||||||
dev-python/cssselect[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/jaraco-test-5.1[${PYTHON_USEDEP}]
|
|
||||||
dev-python/lxml[${PYTHON_USEDEP}]
|
|
||||||
dev-python/mock[${PYTHON_USEDEP}]
|
|
||||||
$(python_gen_cond_dep '
|
|
||||||
dev-python/importlib_resources[${PYTHON_USEDEP}]
|
|
||||||
' 3.8)
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
distutils_enable_tests pytest
|
|
||||||
|
|
||||||
EPYTEST_DESELECT=(
|
|
||||||
# network
|
|
||||||
encutils/__init__.py::encutils
|
|
||||||
cssutils/tests/test_parse.py::TestCSSParser::test_parseUrl
|
|
||||||
examples/website.py::website.logging
|
|
||||||
)
|
|
@ -1,3 +1,4 @@
|
|||||||
|
DIST executing-0.10.0.gh.tar.gz 507523 BLAKE2B 5ab17adb1d40b83b0cf294aba350faf124a810b4c95e408e9bd2ba80d918154cb41d8b4d4748cd7d897d47e085883a30f431dedd595b00506beb5038e084f473 SHA512 f1ee25679cd1f88f273ee68e8e926a6e98b749a50d063ea3aa73f35ac0d7ea65b13364269f01265f164dba1d775a742cd7cf3594558e06efb39fb1157b3b9f5c
|
||||||
DIST executing-0.8.3.gh.tar.gz 495111 BLAKE2B ccb1a7df974f94b48960fc84a8365f6e57a7f34590972192e692f03340662e2bde97498c2ebf5617e45d8dfb6e866fd7de290644adb58e5338b2e0fdccc215f1 SHA512 4e01c1f48734c9568412b84160150e7e50ebdf5ba3dd466cf9d37b7f875ca2993915db75e2f6dd8e75e60b7b952fb0146928a41dde100ad38384b9be2ed60522
|
DIST executing-0.8.3.gh.tar.gz 495111 BLAKE2B ccb1a7df974f94b48960fc84a8365f6e57a7f34590972192e692f03340662e2bde97498c2ebf5617e45d8dfb6e866fd7de290644adb58e5338b2e0fdccc215f1 SHA512 4e01c1f48734c9568412b84160150e7e50ebdf5ba3dd466cf9d37b7f875ca2993915db75e2f6dd8e75e60b7b952fb0146928a41dde100ad38384b9be2ed60522
|
||||||
DIST executing-0.9.0.gh.tar.gz 506632 BLAKE2B 195e6dc896bcb0add7377ba7fbfdaaf09322a5480127150a3c37eef94f57d24dfcc3c83c5a0dd7c9154c5bb7688f47754550d45adafb82d72a4b0c38d094dd50 SHA512 461a8350d55ab0346de35d7d8423164b616e2ec8152d229e3462208497b478e51fd75085dc11f7d3cace42a82d4c2cbd1b102a680aa6c2b31fa18f1f9ec69cdc
|
DIST executing-0.9.0.gh.tar.gz 506632 BLAKE2B 195e6dc896bcb0add7377ba7fbfdaaf09322a5480127150a3c37eef94f57d24dfcc3c83c5a0dd7c9154c5bb7688f47754550d45adafb82d72a4b0c38d094dd50 SHA512 461a8350d55ab0346de35d7d8423164b616e2ec8152d229e3462208497b478e51fd75085dc11f7d3cace42a82d4c2cbd1b102a680aa6c2b31fa18f1f9ec69cdc
|
||||||
DIST executing-0.9.1.gh.tar.gz 506644 BLAKE2B 04d7012a348186c44c892d9f442b33042a9e01951c47b1d9a42ca22195dc7fa0b8f17ebf552ca65e9aa038942a6962941aeafee2d15bdcef834d413d5512c910 SHA512 98ba2f155324e05ae927d0a97ec6ff54bcfd8d38551dde872f12aedfefc2297003b50d17e6e32e89a909a9b1e70cec9d474db03d6a4f9fb1814ebcca045bb982
|
DIST executing-0.9.1.gh.tar.gz 506644 BLAKE2B 04d7012a348186c44c892d9f442b33042a9e01951c47b1d9a42ca22195dc7fa0b8f17ebf552ca65e9aa038942a6962941aeafee2d15bdcef834d413d5512c910 SHA512 98ba2f155324e05ae927d0a97ec6ff54bcfd8d38551dde872f12aedfefc2297003b50d17e6e32e89a909a9b1e70cec9d474db03d6a4f9fb1814ebcca045bb982
|
||||||
|
@ -0,0 +1,42 @@
|
|||||||
|
# Copyright 2020-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Get information about what a Python frame is currently doing"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/alexmojaki/executing/
|
||||||
|
https://pypi.org/project/executing/
|
||||||
|
"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/alexmojaki/executing/archive/v${PV}.tar.gz
|
||||||
|
-> ${P}.gh.tar.gz
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||||
|
|
||||||
|
# asttokens is optional runtime dep
|
||||||
|
BDEPEND="
|
||||||
|
dev-python/setuptools_scm[${PYTHON_USEDEP}]
|
||||||
|
test? (
|
||||||
|
dev-python/asttokens[${PYTHON_USEDEP}]
|
||||||
|
dev-python/littleutils[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
# this test explodes when collected by pytest
|
||||||
|
"${EPYTHON}" tests/test_main.py || die "Tests failed with ${EPYTHON}"
|
||||||
|
epytest tests/test_pytest.py
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST frozendict-2.3.2.gh.tar.gz 306318 BLAKE2B 3bc10f34784a8b76b7c6ca0eeccc8331e9a558f0e24d2328550eb5a985ed2ad6c94d027c51ee44f2d25af67fc453356e01b5cfee773880b87d73c55113ca10b2 SHA512 8dc88a3e7898be8fbced16fbdbdee469d07ecbb06a059512f98f71e50a8c5f2c3a4f3d4e6aa06bab121e4ae2e9cea76f6d89c73212047069f2ef88c616c7278a
|
DIST frozendict-2.3.2.gh.tar.gz 306318 BLAKE2B 3bc10f34784a8b76b7c6ca0eeccc8331e9a558f0e24d2328550eb5a985ed2ad6c94d027c51ee44f2d25af67fc453356e01b5cfee773880b87d73c55113ca10b2 SHA512 8dc88a3e7898be8fbced16fbdbdee469d07ecbb06a059512f98f71e50a8c5f2c3a4f3d4e6aa06bab121e4ae2e9cea76f6d89c73212047069f2ef88c616c7278a
|
||||||
|
DIST frozendict-2.3.4.gh.tar.gz 307399 BLAKE2B ac6311182ed2ba4925a14a145b4d30a0241978f55ae7a81cebc534ede812ca77097f0f8c7eeb08e8cbd6240e036d3b5035bd3e9b284a55b638c93717e3a20258 SHA512 15acc4fceb5e2228ee3423d4a5b86c529e9bdcb7264f59139cbde6194983901a17da8036bebf53d7d8057ce52666031e90eb1ca358bfd374c651fd60743988dc
|
||||||
|
@ -0,0 +1,29 @@
|
|||||||
|
# Copyright 2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{9..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="A simple immutable mapping for python"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/Marco-Sulla/python-frozendict/
|
||||||
|
https://pypi.org/project/frozendict/
|
||||||
|
"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/Marco-Sulla/python-frozendict/archive/v${PV}.tar.gz
|
||||||
|
-> ${P}.gh.tar.gz
|
||||||
|
"
|
||||||
|
S="${WORKDIR}/python-${P}"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~ppc64"
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
cd "${T}" || die
|
||||||
|
epytest "${S}/test"
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
DIST hatch-hatchling-v1.5.0.gh.tar.gz 232265 BLAKE2B 4fd57f7610831a025b9b0dddb89c4fe484d32d0b76a2d0cdafb76730b37c54af42ef27dc1c4d73061d888ce75806bd8f0fc70f5d39a077bd534716cf4e4a4db8 SHA512 9e5498b9da3a1f756e0f3e40daa63e45017588332da4197ac83b8402219bb9501b9c498dd881c5812b2b8903af591e4c6146aaf6dea8cc7b6bc664a85dee74e6
|
DIST hatch-hatchling-v1.5.0.gh.tar.gz 232265 BLAKE2B 4fd57f7610831a025b9b0dddb89c4fe484d32d0b76a2d0cdafb76730b37c54af42ef27dc1c4d73061d888ce75806bd8f0fc70f5d39a077bd534716cf4e4a4db8 SHA512 9e5498b9da3a1f756e0f3e40daa63e45017588332da4197ac83b8402219bb9501b9c498dd881c5812b2b8903af591e4c6146aaf6dea8cc7b6bc664a85dee74e6
|
||||||
DIST hatch-hatchling-v1.6.0.gh.tar.gz 233428 BLAKE2B 5ce5a2a94c9021919f50f90a96f37713a739fe08e1d6a5955a3af369d6c37beece1a4c22b1883e689e500f219101fb67a700231b8d0d22432150b34a6cee22bd SHA512 be23b81cca96cb93321938e0ac7455efc2e388e910c1b64a7d611a37681b5bd6aa89c4fe165a7a2f7ce2dd11ea3598aaeaaab80869e689aac0afdce915b8f567
|
DIST hatch-hatchling-v1.6.0.gh.tar.gz 233428 BLAKE2B 5ce5a2a94c9021919f50f90a96f37713a739fe08e1d6a5955a3af369d6c37beece1a4c22b1883e689e500f219101fb67a700231b8d0d22432150b34a6cee22bd SHA512 be23b81cca96cb93321938e0ac7455efc2e388e910c1b64a7d611a37681b5bd6aa89c4fe165a7a2f7ce2dd11ea3598aaeaaab80869e689aac0afdce915b8f567
|
||||||
DIST hatch-hatchling-v1.7.0.gh.tar.gz 249253 BLAKE2B a294b87172b16bda86a90f2d9577bfa7ea9bc21e6644006cb141b762df96bb62e7e828e1c147c6409e6b7278a0bd00cb6ee67d01b203dec110fc272cfae6fd92 SHA512 6a3c807674891ff23ca0b2f00e62900e9e4752888cf6c8647ac20ec6b76a13c23e17a52989d4661d03bed3e33e682a09b877ae6c99bfc707a28ddde754ea9386
|
DIST hatch-hatchling-v1.7.0.gh.tar.gz 249253 BLAKE2B a294b87172b16bda86a90f2d9577bfa7ea9bc21e6644006cb141b762df96bb62e7e828e1c147c6409e6b7278a0bd00cb6ee67d01b203dec110fc272cfae6fd92 SHA512 6a3c807674891ff23ca0b2f00e62900e9e4752888cf6c8647ac20ec6b76a13c23e17a52989d4661d03bed3e33e682a09b877ae6c99bfc707a28ddde754ea9386
|
||||||
|
DIST hatch-hatchling-v1.7.1.gh.tar.gz 1471608 BLAKE2B 52d7d1f8a45f5dd6573676b8f6946b843c5368ba0b0a53d1a30d48c1087350eea54335fbc76816f334526238451ab8075586212386bb18edc0c3b3cfc5224b3c SHA512 dfffc8586ee3ff5c7f1f277be1e653efef70fca5377c12c16bb05c1deeb5cf5eccc5cd58d0923a32c7a8b3701621f6be881709bb836734170a08b103b841107f
|
||||||
|
@ -0,0 +1,74 @@
|
|||||||
|
# Copyright 2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=standalone
|
||||||
|
PYTHON_TESTED=( pypy3 python3_{8..11} )
|
||||||
|
PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
TAG=${P/-/-v}
|
||||||
|
MY_P=hatch-${TAG}
|
||||||
|
DESCRIPTION="Modern, extensible Python build backend"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://pypi.org/project/hatchling/
|
||||||
|
https://github.com/pypa/hatch/
|
||||||
|
"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/pypa/hatch/archive/${TAG}.tar.gz
|
||||||
|
-> ${MY_P}.gh.tar.gz
|
||||||
|
"
|
||||||
|
S=${WORKDIR}/${MY_P}/backend
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/editables-0.2[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/packaging-21.3[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pathspec-0.9[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pluggy-1.0.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/tomli-1.2.2[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
${RDEPEND}
|
||||||
|
test? (
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
dev-python/atomicwrites[${PYTHON_USEDEP}]
|
||||||
|
dev-python/click[${PYTHON_USEDEP}]
|
||||||
|
dev-python/httpx[${PYTHON_USEDEP}]
|
||||||
|
dev-python/platformdirs[${PYTHON_USEDEP}]
|
||||||
|
dev-python/rich[${PYTHON_USEDEP}]
|
||||||
|
dev-python/tomli-w[${PYTHON_USEDEP}]
|
||||||
|
dev-python/virtualenv[${PYTHON_USEDEP}]
|
||||||
|
' "${PYTHON_TESTED[@]}")
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then
|
||||||
|
einfo "Skipping tests on ${EPYTHON}"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
local -x EPYTEST_DESELECT=(
|
||||||
|
# these run pip to install stuff
|
||||||
|
tests/backend/dep/test_core.py::test_dependency_found
|
||||||
|
tests/backend/dep/test_core.py::test_extra_met
|
||||||
|
tests/backend/dep/test_core.py::test_extra_no_dependencies
|
||||||
|
tests/backend/dep/test_core.py::test_extra_unmet
|
||||||
|
tests/backend/dep/test_core.py::test_unknown_extra
|
||||||
|
tests/backend/dep/test_core.py::test_version_unmet
|
||||||
|
)
|
||||||
|
|
||||||
|
# top-level "tests" directory contains tests both for hatch
|
||||||
|
# and hatchling
|
||||||
|
cd "${WORKDIR}/${MY_P}" || die
|
||||||
|
local -x PYTHONPATH="src:${PYTHONPATH}"
|
||||||
|
epytest tests/backend
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST mkdocs-material-8.3.9.gh.tar.gz 8347276 BLAKE2B 51c953aad234a177d6b74bc8ef5e836ea6ee9f3c9e53b843efe25214069bfd94c3695fbe0dde0d3daec54c030bc35f5c4be668592afda45fa7ba7bbeb63a0475 SHA512 e7012a6f7db41b2bc4a43d0463f08fb3f7102ca3d7957ecdb2c88343a96ea774c8f724e498b2254a6bc6464d88681a605e52e4632c56cf0c60c6bf4269ac01a9
|
DIST mkdocs-material-8.3.9.gh.tar.gz 8347276 BLAKE2B 51c953aad234a177d6b74bc8ef5e836ea6ee9f3c9e53b843efe25214069bfd94c3695fbe0dde0d3daec54c030bc35f5c4be668592afda45fa7ba7bbeb63a0475 SHA512 e7012a6f7db41b2bc4a43d0463f08fb3f7102ca3d7957ecdb2c88343a96ea774c8f724e498b2254a6bc6464d88681a605e52e4632c56cf0c60c6bf4269ac01a9
|
||||||
|
DIST mkdocs-material-8.4.0.gh.tar.gz 8459364 BLAKE2B 42d0a3fa9a06cd03629dcf10e8052ce56ec87ce9449da26b1d94ab5e520cd34be16f49339237ebaa673bd86a7148e663f5e7bddbfd9ef2f9151a0d62cd0a2c85 SHA512 5e1c4c08ca8c6a2d4af2b2ef51c3e136c630a683aaf6c1ce93a4b322127eadf4ba718cde0e2d8814c486658ecdcfbda7179e4478ddbf6ba8a8ca3876acd4b33a
|
||||||
|
@ -0,0 +1,41 @@
|
|||||||
|
# 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} )
|
||||||
|
|
||||||
|
DOCS_BUILDER="mkdocs"
|
||||||
|
DOCS_DEPEND="
|
||||||
|
dev-python/mkdocs-material-extensions
|
||||||
|
dev-python/mkdocs-minify-plugin
|
||||||
|
dev-python/mkdocs-redirects
|
||||||
|
"
|
||||||
|
|
||||||
|
inherit distutils-r1 docs
|
||||||
|
|
||||||
|
DESCRIPTION="A Material Design theme for MkDocs"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/squidfunk/mkdocs-material/
|
||||||
|
https://pypi.org/project/mkdocs-material/
|
||||||
|
"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/squidfunk/${PN}/archive/${PV}.tar.gz
|
||||||
|
-> ${P}.gh.tar.gz
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~riscv ~x86"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/jinja-2.11.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/markdown-3.2[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/mkdocs-1.3.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pygments-2.12[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pymdown-extensions-9.4[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
|
||||||
|
# mkdocs-material-extensions depends on mkdocs-material creating a circular dep
|
||||||
|
PDEPEND=">=dev-python/mkdocs-material-extensions-1.0.3[${PYTHON_USEDEP}]"
|
@ -1,23 +0,0 @@
|
|||||||
# 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="Custom alterations based on Mkdocs-Material"
|
|
||||||
HOMEPAGE="
|
|
||||||
https://github.com/facelessuser/mkdocs_pymdownx_material_extras
|
|
||||||
https://pypi.org/project/mkdocs-pymdownx-material-extras"
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 ~riscv x86"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-python/mkdocs-material-5.0.2[${PYTHON_USEDEP}]
|
|
||||||
"
|
|
@ -1,23 +0,0 @@
|
|||||||
# 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="Custom alterations based on Mkdocs-Material"
|
|
||||||
HOMEPAGE="
|
|
||||||
https://github.com/facelessuser/mkdocs_pymdownx_material_extras
|
|
||||||
https://pypi.org/project/mkdocs-pymdownx-material-extras"
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~riscv ~x86"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-python/mkdocs-material-8.3.3[${PYTHON_USEDEP}]
|
|
||||||
"
|
|
@ -1 +1,2 @@
|
|||||||
DIST nototools-0.2.16.tar.gz 9712796 BLAKE2B 654f449a00741dfa4a9b3b8c2a80d40907698098d1c4ee94363657d88b24fe1f26287af5e7795484846d394573a868ff82fa9a8c0a51b953325d6f6f97d7f7c8 SHA512 3c70c29f8411ae3eedc2738e0b2f42f9c0b675494bbdc107a8b43612fba08401c704ec94db63bb92aa1648b168f9e0d9e8139b8c61dc3b43973876d105324554
|
DIST nototools-0.2.16.tar.gz 9712796 BLAKE2B 654f449a00741dfa4a9b3b8c2a80d40907698098d1c4ee94363657d88b24fe1f26287af5e7795484846d394573a868ff82fa9a8c0a51b953325d6f6f97d7f7c8 SHA512 3c70c29f8411ae3eedc2738e0b2f42f9c0b675494bbdc107a8b43612fba08401c704ec94db63bb92aa1648b168f9e0d9e8139b8c61dc3b43973876d105324554
|
||||||
|
DIST nototools-0.2.17.tar.gz 9743805 BLAKE2B ba601b4c9c4df7fc264dd88c60e50c1db08c21bc07f3ab408f91f445a801bd96ed193e5f9cb320378f6411027b1be004d718233d531bb2ec600badfaffd2d876 SHA512 a5b733c47ce61f6cb18f9772e8fee04f8ee2a3d834afa3f71a5f1c8110124224b9d325db75976104dd880b7c0538568574b2e497faa8f4d5541451e9c3e40cd3
|
||||||
|
@ -0,0 +1,35 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
MY_PN="notofonttools"
|
||||||
|
MY_P="${MY_PN}-${PV}"
|
||||||
|
|
||||||
|
DESCRIPTION="Noto fonts support tools and scripts plus web site generation"
|
||||||
|
HOMEPAGE="https://github.com/googlefonts/nototools"
|
||||||
|
#SRC_URI="https://github.com/googlefonts/nototools/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0 OFL-1.1"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=media-gfx/scour-0.37
|
||||||
|
>=dev-python/booleanOperations-0.9.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/defcon-0.6.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/fonttools-4.11.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pillow-8.3.2[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pyclipper-1.2.1[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
|
# Some tests weren't ported to python3 yet and lots of failures
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
distutils_enable_tests setup.py
|
@ -0,0 +1,187 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{8..11} )
|
||||||
|
PYTHON_REQ_USE="threads(+)"
|
||||||
|
|
||||||
|
FORTRAN_NEEDED=lapack
|
||||||
|
|
||||||
|
inherit distutils-r1 flag-o-matic fortran-2 toolchain-funcs
|
||||||
|
|
||||||
|
DOC_PV=${PV}
|
||||||
|
# For when docs aren't ready yet, set to last version
|
||||||
|
#DOC_PV=1.23.0
|
||||||
|
DESCRIPTION="Fast array and numerical python library"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://numpy.org/
|
||||||
|
https://github.com/numpy/numpy/
|
||||||
|
https://pypi.org/project/numpy/
|
||||||
|
"
|
||||||
|
SRC_URI="
|
||||||
|
mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
|
||||||
|
doc? (
|
||||||
|
https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-html.zip -> numpy-html-${DOC_PV}.zip
|
||||||
|
https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-ref.pdf -> numpy-ref-${DOC_PV}.pdf
|
||||||
|
https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-user.pdf -> numpy-user-${DOC_PV}.pdf
|
||||||
|
)
|
||||||
|
"
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
IUSE="doc lapack"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
lapack? (
|
||||||
|
>=virtual/cblas-3.8
|
||||||
|
>=virtual/lapack-3.8
|
||||||
|
)
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
${RDEPEND}
|
||||||
|
>=dev-python/cython-0.29.30[${PYTHON_USEDEP}]
|
||||||
|
lapack? (
|
||||||
|
virtual/pkgconfig
|
||||||
|
)
|
||||||
|
doc? (
|
||||||
|
app-arch/unzip
|
||||||
|
)
|
||||||
|
test? (
|
||||||
|
>=dev-python/hypothesis-5.8.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pytz-2019.3[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/cffi-1.14.0[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/numpy-1.22.0-no-hardcode-blasv2.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
default
|
||||||
|
if use doc; then
|
||||||
|
unzip -qo "${DISTDIR}"/numpy-html-${DOC_PV}.zip -d html || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
python_prepare_all() {
|
||||||
|
# Allow use with setuptools 60.x
|
||||||
|
# See numpy-1.22.1-revert-setuptools-upper-bound.patch for details
|
||||||
|
export SETUPTOOLS_USE_DISTUTILS=stdlib
|
||||||
|
|
||||||
|
if use lapack; then
|
||||||
|
local incdir="${EPREFIX}"/usr/include
|
||||||
|
local libdir="${EPREFIX}"/usr/$(get_libdir)
|
||||||
|
cat >> site.cfg <<-EOF || die
|
||||||
|
[blas]
|
||||||
|
include_dirs = ${incdir}
|
||||||
|
library_dirs = ${libdir}
|
||||||
|
blas_libs = cblas,blas
|
||||||
|
[lapack]
|
||||||
|
library_dirs = ${libdir}
|
||||||
|
lapack_libs = lapack
|
||||||
|
EOF
|
||||||
|
else
|
||||||
|
export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None
|
||||||
|
fi
|
||||||
|
|
||||||
|
export CC="$(tc-getCC) ${CFLAGS}"
|
||||||
|
|
||||||
|
append-flags -fno-strict-aliasing
|
||||||
|
|
||||||
|
# See progress in http://projects.scipy.org/scipy/numpy/ticket/573
|
||||||
|
# with the subtle difference that we don't want to break Darwin where
|
||||||
|
# -shared is not a valid linker argument
|
||||||
|
if [[ ${CHOST} != *-darwin* ]]; then
|
||||||
|
append-ldflags -shared
|
||||||
|
fi
|
||||||
|
|
||||||
|
# only one fortran to link with:
|
||||||
|
# linking with cblas and lapack library will force
|
||||||
|
# autodetecting and linking to all available fortran compilers
|
||||||
|
append-fflags -fPIC
|
||||||
|
if use lapack; then
|
||||||
|
NUMPY_FCONFIG="config_fc --noopt --noarch"
|
||||||
|
# workaround bug 335908
|
||||||
|
[[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# don't version f2py, we will handle it.
|
||||||
|
sed -i -e '/f2py_exe/s: + os\.path.*$::' numpy/f2py/setup.py || die
|
||||||
|
|
||||||
|
distutils-r1_python_prepare_all
|
||||||
|
}
|
||||||
|
|
||||||
|
python_compile() {
|
||||||
|
export MAKEOPTS=-j1 #660754
|
||||||
|
|
||||||
|
distutils-r1_python_compile ${NUMPY_FCONFIG}
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
local EPYTEST_DESELECT=(
|
||||||
|
# very disk- and memory-hungry
|
||||||
|
numpy/lib/tests/test_io.py::test_large_zip
|
||||||
|
|
||||||
|
# precision problems
|
||||||
|
numpy/core/tests/test_umath_accuracy.py::TestAccuracy::test_validate_transcendentals
|
||||||
|
|
||||||
|
# runs the whole test suite recursively, that's just crazy
|
||||||
|
numpy/core/tests/test_mem_policy.py::test_new_policy
|
||||||
|
|
||||||
|
# very slow, unlikely to be practically useful
|
||||||
|
numpy/typing/tests/test_typing.py
|
||||||
|
)
|
||||||
|
|
||||||
|
if use arm && [[ $(uname -m || echo "unknown") == "armv8l" ]] ; then
|
||||||
|
# Degenerate case. arm32 chroot on arm64.
|
||||||
|
# bug #774108
|
||||||
|
EPYTEST_DESELECT+=(
|
||||||
|
numpy/core/tests/test_cpu_features.py::Test_ARM_Features::test_features
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use x86 ; then
|
||||||
|
EPYTEST_DESELECT+=(
|
||||||
|
# https://github.com/numpy/numpy/issues/18388
|
||||||
|
numpy/core/tests/test_umath.py::TestRemainder::test_float_remainder_overflow
|
||||||
|
# https://github.com/numpy/numpy/issues/18387
|
||||||
|
numpy/random/tests/test_generator_mt19937.py::TestRandomDist::test_pareto
|
||||||
|
# more precision problems
|
||||||
|
numpy/core/tests/test_einsum.py::TestEinsum::test_einsum_sums_int16
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
if use arm || use x86 ; then
|
||||||
|
EPYTEST_DESELECT+=(
|
||||||
|
# too large for 32-bit platforms
|
||||||
|
numpy/core/tests/test_ufunc.py::TestUfunc::test_identityless_reduction_huge_array
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
distutils_install_for_testing --single-version-externally-managed \
|
||||||
|
--record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG}
|
||||||
|
|
||||||
|
cd "${TEST_DIR}/lib" || die
|
||||||
|
epytest -k "not _fuzz"
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install() {
|
||||||
|
# https://github.com/numpy/numpy/issues/16005
|
||||||
|
local mydistutilsargs=( build_src )
|
||||||
|
distutils-r1_python_install ${NUMPY_FCONFIG}
|
||||||
|
python_optimize
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
local DOCS=( LICENSE.txt README.md THANKS.txt )
|
||||||
|
|
||||||
|
if use doc; then
|
||||||
|
local HTML_DOCS=( "${WORKDIR}"/html/. )
|
||||||
|
DOCS+=( "${DISTDIR}"/${PN}-{user,ref}-${DOC_PV}.pdf )
|
||||||
|
fi
|
||||||
|
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
}
|
@ -1,8 +1,12 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<maintainer type="person">
|
<maintainer type="person" proxied="proxy">
|
||||||
<email>andrewammerlaan@gentoo.org</email>
|
<email>andrewammerlaan@gentoo.org</email>
|
||||||
<name>Andrew Ammerlaan</name>
|
<name>Andrew Ammerlaan</name>
|
||||||
</maintainer>
|
</maintainer>
|
||||||
|
<maintainer type="person" proxied="yes">
|
||||||
|
<email>waebbl-gentoo@posteo.net</email>
|
||||||
|
<name>Bernd Waibel</name>
|
||||||
|
</maintainer>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
||||||
|
@ -1,2 +1 @@
|
|||||||
DIST python-glanceclient-4.0.0.tar.gz 202815 BLAKE2B a1d6dc46ca77c67bd42e6603b36652cc2ad9464b172b0bea778aa87130a6ed68613dda68db1ad5215e6d2ea34b9ecd96bc0ce853b94fc137b80aa7c85763622e SHA512 31ce9ee865ba543674a9ccc0267f1e02308e444bedfe1728ed59c20abe77cd7936b059c5adb0a8f73e5bf999c5ac5a34ac3cafe2e695718535ead786916e2414
|
|
||||||
DIST python-glanceclient-4.0.1.tar.gz 202810 BLAKE2B ccc328aac739979d9ef3b3c4b6cccbef0865860827112c73a7d15d257f1735c69bac54d5771a27d6e6dbfaada4825b624d312a17195b081f3b5800b662c3f926 SHA512 23e931741430c0ba9606b5f013c6724285f8d49691c092c11db97434d963bd257639df769cdbc0e18ea2f5a57c13b03c887e8a091fdb40b292ae6a33f28b4e31
|
DIST python-glanceclient-4.0.1.tar.gz 202810 BLAKE2B ccc328aac739979d9ef3b3c4b6cccbef0865860827112c73a7d15d257f1735c69bac54d5771a27d6e6dbfaada4825b624d312a17195b081f3b5800b662c3f926 SHA512 23e931741430c0ba9606b5f013c6724285f8d49691c092c11db97434d963bd257639df769cdbc0e18ea2f5a57c13b03c887e8a091fdb40b292ae6a33f28b4e31
|
||||||
|
@ -1,48 +0,0 @@
|
|||||||
# 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="A client for the OpenStack Glance API"
|
|
||||||
HOMEPAGE="https://github.com/openstack/python-glanceclient"
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 ~arm arm64 ~riscv x86"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-python/keystoneauth-3.6.2[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/oslo-utils-3.33.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/oslo-i18n-3.15.3[${PYTHON_USEDEP}]
|
|
||||||
>dev-python/pbr-2.1.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/prettytable-0.7.1[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pyopenssl-17.1.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/requests-2.14.2[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/warlock-1.2.0[${PYTHON_USEDEP}]
|
|
||||||
<dev-python/warlock-2[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/wrapt-1.7.0[${PYTHON_USEDEP}]
|
|
||||||
"
|
|
||||||
BDEPEND="
|
|
||||||
>dev-python/pbr-2.1.0[${PYTHON_USEDEP}]
|
|
||||||
test? (
|
|
||||||
dev-python/ddt[${PYTHON_USEDEP}]
|
|
||||||
dev-python/fixtures[${PYTHON_USEDEP}]
|
|
||||||
dev-python/requests-mock[${PYTHON_USEDEP}]
|
|
||||||
dev-python/tempest[${PYTHON_USEDEP}]
|
|
||||||
dev-python/testscenarios[${PYTHON_USEDEP}]
|
|
||||||
dev-python/testtools[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
distutils_enable_tests unittest
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
# functional tests require cloud instance access
|
|
||||||
eunittest -b glanceclient/tests/unit
|
|
||||||
}
|
|
@ -1 +1,2 @@
|
|||||||
DIST SecretStorage-3.3.2.tar.gz 19285 BLAKE2B 17089e61a9549f4547faa8c6f7f711f5e4b3ba9ac0bf7787c3384d4920c5cd02704bab86fd4b7abe4ad9b93098b1668cf89901f4a0760023e274c8daf009d5a4 SHA512 f04a35925f86fec25435554083ac0d4b21b88cbc19b67a4c744247e659bc767675a52d18b33be557e99593922aecb0c261ec40803c61e089ff35b6c8b541ac63
|
DIST SecretStorage-3.3.2.tar.gz 19285 BLAKE2B 17089e61a9549f4547faa8c6f7f711f5e4b3ba9ac0bf7787c3384d4920c5cd02704bab86fd4b7abe4ad9b93098b1668cf89901f4a0760023e274c8daf009d5a4 SHA512 f04a35925f86fec25435554083ac0d4b21b88cbc19b67a4c744247e659bc767675a52d18b33be557e99593922aecb0c261ec40803c61e089ff35b6c8b541ac63
|
||||||
|
DIST SecretStorage-3.3.3.tar.gz 19739 BLAKE2B 9ad575df8b059102a38b4f20c956bf80a5f440a80c13a9fe10a96b14c49bd7868667306b75fca7a395e4d4ce44d28174fafcf27521446d4c7d070c5381eeeed7 SHA512 9a048c8245cfb01babebdd85dbbe84f9634b9b28188f7d11d3abad841109cfa307861de05e529199e409e595864ff3e097fcc961fcff210040d214a50f932f6e
|
||||||
|
@ -0,0 +1,55 @@
|
|||||||
|
# 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
|
||||||
|
|
||||||
|
MY_PN="SecretStorage"
|
||||||
|
|
||||||
|
DESCRIPTION="Python bindings to FreeDesktop.org Secret Service API"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/mitya57/secretstorage/
|
||||||
|
https://pypi.org/project/SecretStorage/
|
||||||
|
"
|
||||||
|
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
|
||||||
|
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/jeepney-0.6[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
!hppa? ( !sparc? ( !s390? (
|
||||||
|
sys-apps/dbus
|
||||||
|
virtual/secret-service
|
||||||
|
)
|
||||||
|
) ) )
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests unittest
|
||||||
|
distutils_enable_sphinx docs \
|
||||||
|
dev-python/alabaster
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
|
||||||
|
if ! has_version "virtual/secret-service"; then
|
||||||
|
einfo "gnome-keyring is not supported on ${ARCH}, skipping tests"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
distutils-r1_src_test
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
dbus-run-session "${EPYTHON}" -m unittest discover -v -s tests \
|
||||||
|
|| die "tests failed with ${EPYTHON}"
|
||||||
|
}
|
@ -1,123 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
# please keep this ebuild at EAPI 7 -- sys-apps/portage dep
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
DISTUTILS_USE_PEP517=standalone
|
|
||||||
PYTHON_TESTED=( python3_{8..11} pypy3 )
|
|
||||||
PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" )
|
|
||||||
PYTHON_REQ_USE="xml(+)"
|
|
||||||
|
|
||||||
inherit distutils-r1 multiprocessing
|
|
||||||
|
|
||||||
DESCRIPTION="Collection of extensions to Distutils"
|
|
||||||
HOMEPAGE="
|
|
||||||
https://github.com/pypa/setuptools/
|
|
||||||
https://pypi.org/project/setuptools/
|
|
||||||
"
|
|
||||||
SRC_URI="
|
|
||||||
mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
|
|
||||||
"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~arm64-macos ~x64-macos ~x64-solaris"
|
|
||||||
IUSE="test"
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-python/appdirs-1.4.4-r2[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/jaraco-text-3.7.0-r1[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/more-itertools-8.12.0-r1[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/nspektr-0.3.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/ordered-set-4.0.2-r1[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/packaging-21.3-r2[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/tomli-2.0.1[${PYTHON_USEDEP}]
|
|
||||||
$(python_gen_cond_dep '
|
|
||||||
>=dev-python/importlib_metadata-4.11.1[${PYTHON_USEDEP}]
|
|
||||||
' 3.8 3.9)
|
|
||||||
$(python_gen_cond_dep '
|
|
||||||
>=dev-python/importlib_resources-5.4.0-r3[${PYTHON_USEDEP}]
|
|
||||||
' 3.8)
|
|
||||||
"
|
|
||||||
BDEPEND="
|
|
||||||
${RDEPEND}
|
|
||||||
>=dev-python/wheel-0.37.1-r1[${PYTHON_USEDEP}]
|
|
||||||
test? (
|
|
||||||
$(python_gen_cond_dep '
|
|
||||||
dev-python/build[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/ini2toml-0.9[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/filelock-3.4.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/jaraco-envs-2.2[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/jaraco-path-3.2.0[${PYTHON_USEDEP}]
|
|
||||||
dev-python/mock[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pip[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pip-run[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest-fixture-config[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest-virtualenv[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/tomli-w-1.0.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/virtualenv-20[${PYTHON_USEDEP}]
|
|
||||||
dev-python/wheel[${PYTHON_USEDEP}]
|
|
||||||
' "${PYTHON_TESTED[@]}")
|
|
||||||
)
|
|
||||||
"
|
|
||||||
PDEPEND="
|
|
||||||
>=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}]
|
|
||||||
dev-python/setuptools_scm[${PYTHON_USEDEP}]
|
|
||||||
"
|
|
||||||
|
|
||||||
DOCS=( {CHANGES,README}.rst )
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local PATCHES=(
|
|
||||||
# TODO: remove this when we're 100% PEP517 mode
|
|
||||||
"${FILESDIR}"/setuptools-62.4.0-py-compile.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
# remove bundled dependencies, setuptools will switch to system deps
|
|
||||||
# automatically
|
|
||||||
rm -r */_vendor || die
|
|
||||||
|
|
||||||
# remove the ugly */extern hack that breaks on unvendored deps
|
|
||||||
rm -r */extern || die
|
|
||||||
find -name '*.py' -exec sed \
|
|
||||||
-e 's:from \w*[.]\+extern ::' -e 's:\w*[.]\+extern[.]::' \
|
|
||||||
-i {} + || die
|
|
||||||
|
|
||||||
distutils-r1_src_prepare
|
|
||||||
|
|
||||||
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
local -x SETUPTOOLS_USE_DISTUTILS=stdlib
|
|
||||||
|
|
||||||
if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
local EPYTEST_DESELECT=(
|
|
||||||
# network
|
|
||||||
# TODO: see if PRE_BUILT_SETUPTOOLS_* helps
|
|
||||||
setuptools/tests/config/test_apply_pyprojecttoml.py::test_apply_pyproject_equivalent_to_setupcfg
|
|
||||||
setuptools/tests/integration/test_pip_install_sdist.py::test_install_sdist
|
|
||||||
setuptools/tests/test_distutils_adoption.py
|
|
||||||
setuptools/tests/test_setuptools.py::test_its_own_wheel_does_not_contain_tests
|
|
||||||
setuptools/tests/test_virtualenv.py::test_clean_env_install
|
|
||||||
setuptools/tests/test_virtualenv.py::test_no_missing_dependencies
|
|
||||||
setuptools/tests/test_virtualenv.py::test_test_command_install_requirements
|
|
||||||
# TODO
|
|
||||||
setuptools/tests/config/test_setupcfg.py::TestConfigurationReader::test_basic
|
|
||||||
setuptools/tests/config/test_setupcfg.py::TestConfigurationReader::test_ignore_errors
|
|
||||||
setuptools/tests/test_extern.py::test_distribution_picklable
|
|
||||||
# expects bundled deps in virtualenv
|
|
||||||
setuptools/tests/config/test_apply_pyprojecttoml.py::TestMeta::test_example_file_in_sdist
|
|
||||||
setuptools/tests/config/test_apply_pyprojecttoml.py::TestMeta::test_example_file_not_in_wheel
|
|
||||||
setuptools/tests/test_editable_install.py::test_editable_with_pyproject
|
|
||||||
)
|
|
||||||
|
|
||||||
epytest -n "$(makeopts_jobs)" setuptools
|
|
||||||
}
|
|
@ -1 +1,2 @@
|
|||||||
DIST stack_data-0.3.0.tar.gz 41061 BLAKE2B 9202ddb2e6e8c8c9e050e085cfe6e1bdbf26124eb85c19516558336d46876aba5ede1b6a87cf17e09c2b44629063a8f5e1f558fdaf64db2db029978a5860cd99 SHA512 648b6fd0dbf43ee974c15de85aa530034c6c67a3a7c297c1ea3f1ddd59bf13d331f8db9f8ddf54f69e59385ed2c0c2a24b48c5a93330df62082c333610d8a6bb
|
DIST stack_data-0.3.0.tar.gz 41061 BLAKE2B 9202ddb2e6e8c8c9e050e085cfe6e1bdbf26124eb85c19516558336d46876aba5ede1b6a87cf17e09c2b44629063a8f5e1f558fdaf64db2db029978a5860cd99 SHA512 648b6fd0dbf43ee974c15de85aa530034c6c67a3a7c297c1ea3f1ddd59bf13d331f8db9f8ddf54f69e59385ed2c0c2a24b48c5a93330df62082c333610d8a6bb
|
||||||
|
DIST stack_data-0.4.0.tar.gz 41638 BLAKE2B 1395ce2ba5ce12af2ab4e9c3d4b42c2b5c14fe09013469fb8c659899b0d9a78ce9d12b4a37223d651d4e8bafeb5c1d97437690084dc4592cf8c04fb7236f5b0d SHA512 63514aad17f8e01566606a6a080506c7b363f90538a4c5ae1427b1aa54358c4b95a2752869288b6e6d44641870effbfe466e8830864cbf6e4b6e70e8e28699de
|
||||||
|
@ -0,0 +1,32 @@
|
|||||||
|
# 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="Extract data from Python tracebacks for informative displays"
|
||||||
|
HOMEPAGE="https://github.com/alexmojaki/stack_data"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-python/asttokens[${PYTHON_USEDEP}]
|
||||||
|
dev-python/executing[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pure_eval[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/cython[${PYTHON_USEDEP}]
|
||||||
|
dev-python/typeguard[${PYTHON_USEDEP}]
|
||||||
|
dev-python/littleutils[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pygments[${PYTHON_USEDEP}]
|
||||||
|
)"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
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