parent
7607708934
commit
191d178425
Binary file not shown.
Binary file not shown.
@ -1,2 +1 @@
|
|||||||
DIST ansible-cmdb-1.28.tar.gz 177437 BLAKE2B d3faa6cccdaa0825318bc9df09ad28b15d1a70ac25281f283e65ed760698c06db582d6954f19efe6cdde8e7ab103a915e663659cc64d72851ed830c817a700b7 SHA512 d8f87b7e2c664aec20585c34a83271ea4ec397c70ff1114e2b3669ba17903ed8f57ddf774b74d3d267a423bb71bf6d9fd6e59aa497f4b17449104db6ac71b38a
|
|
||||||
DIST ansible-cmdb-1.30.tar.gz 179165 BLAKE2B 377b182ffd0f7cf6630011f7df82fe1155c0f00a482e91e0d8206eee5aab167eb96dc936b2fbd02c6c80e725b9767f25a02422d538ee7ecf95ad1e9be51fe81a SHA512 e4561976588d6268c6849a4b1656c57d9a0f2db9256b2d2821f9c1a8c23fdb92b843b06bb94b44db565966c209b62da4bb11dfa41319a3b01ea4c7a53dde930f
|
DIST ansible-cmdb-1.30.tar.gz 179165 BLAKE2B 377b182ffd0f7cf6630011f7df82fe1155c0f00a482e91e0d8206eee5aab167eb96dc936b2fbd02c6c80e725b9767f25a02422d538ee7ecf95ad1e9be51fe81a SHA512 e4561976588d6268c6849a4b1656c57d9a0f2db9256b2d2821f9c1a8c23fdb92b843b06bb94b44db565966c209b62da4bb11dfa41319a3b01ea4c7a53dde930f
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python{3_7,3_8} )
|
|
||||||
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="Ansible Configuration Management Database"
|
|
||||||
HOMEPAGE="https://github.com/fboender/ansible-cmdb"
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
|
|
||||||
DEPEND="
|
|
||||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
dev-python/mako[${PYTHON_USEDEP}]
|
|
||||||
dev-python/jsonxs[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pyyaml[${PYTHON_USEDEP}]"
|
|
@ -0,0 +1,56 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
inherit bash-completion-r1 distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||||
|
HOMEPAGE="https://pypi.org/project/awscli/"
|
||||||
|
#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
SRC_URI="https://github.com/aws/aws-cli/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
S="${WORKDIR}/aws-cli-${PV}"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||||
|
|
||||||
|
# botocore is x.(y+1).z
|
||||||
|
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 1)).$(ver_cut 3-)"
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||||
|
dev-python/colorama[${PYTHON_USEDEP}]
|
||||||
|
dev-python/docutils[${PYTHON_USEDEP}]
|
||||||
|
dev-python/rsa[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/s3transfer-0.4.0[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests --install pytest
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# do not rely on bundled deps in botocore (sic!)
|
||||||
|
find -name '*.py' -exec sed -i \
|
||||||
|
-e 's:from botocore[.]vendored import:import:' \
|
||||||
|
-e 's:from botocore[.]vendored[.]:from :' \
|
||||||
|
{} + || die
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
distutils_install_for_testing
|
||||||
|
# integration tests require AWS credentials and Internet access
|
||||||
|
epytest tests/{functional,unit}
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
newbashcomp bin/aws_bash_completer aws
|
||||||
|
|
||||||
|
insinto /usr/share/zsh/site-functions
|
||||||
|
newins bin/aws_zsh_completer.sh _aws
|
||||||
|
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
|
||||||
|
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
DIST stress-ng-0.13.06.tar.gz 1014981 BLAKE2B a93ff571919707568cd0162479e47c6241b4081713cfa88b30594227d01f9af2a6e3ad759ba62f5f5485322d68768ba1ea19087d07281fa1c2b949bcac99f70e SHA512 7aefc794edaa5799f96dd4afe099b747d532e4367bd372b9ed29db03f8276322113509fdd4885500864d292beeb9f407dc3f2ef2a04f92b65f240ee73eb174bb
|
DIST stress-ng-0.13.07.tar.gz 1020232 BLAKE2B 54d2e01877420f0a9b03f1d2ffc3665b3d06def29f5d1370ca312a0c3a1453cebd5254e00aa0c0bbda1146785c26047d459e1e844bf3d47348f92529e93c029d SHA512 ec8f483c34c35ee9171f65e24614a3d4855d90cdfdc6c2d075ff86a2919e1c774ee5da0601e9e30d1c1f7fa7b146bf877de13e3deb88c892b703eb1b4c41e960
|
||||||
|
Binary file not shown.
@ -1,52 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
inherit autotools multilib-minimal
|
|
||||||
|
|
||||||
DESCRIPTION="Yubico Universal 2nd Factor (U2F) server C Library"
|
|
||||||
HOMEPAGE="https://developers.yubico.com/libu2f-server/"
|
|
||||||
SRC_URI="https://developers.yubico.com/${PN}/Releases/${P}.tar.xz"
|
|
||||||
|
|
||||||
LICENSE="BSD-2"
|
|
||||||
SLOT="0/0.1"
|
|
||||||
KEYWORDS="amd64 x86"
|
|
||||||
IUSE="static-libs test"
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
dev-libs/openssl:0=[${MULTILIB_USEDEP}]
|
|
||||||
dev-libs/hidapi[${MULTILIB_USEDEP}]
|
|
||||||
dev-libs/json-c:=[${MULTILIB_USEDEP}]
|
|
||||||
"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
virtual/pkgconfig
|
|
||||||
test? ( dev-libs/check[${MULTILIB_USEDEP}] )
|
|
||||||
"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/${PN}-1.1.0-disable-help2man-gengetopt-checks.patch"
|
|
||||||
"${FILESDIR}/${PN}-1.1.0-jsonc014.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
eautoreconf
|
|
||||||
touch man/u2f-server.1 || die # do not rebuild the man page
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_configure() {
|
|
||||||
myeconfargs=(
|
|
||||||
--disable-h2a # tarball already contains the manpage
|
|
||||||
$(use_enable static-libs static)
|
|
||||||
$(use_enable test tests)
|
|
||||||
)
|
|
||||||
|
|
||||||
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_install_all() {
|
|
||||||
default
|
|
||||||
find "${D}" -name '*.la' -delete || die
|
|
||||||
}
|
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,568 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="7"
|
||||||
|
|
||||||
|
JAVA_PKG_OPT_USE="collectd_plugins_java"
|
||||||
|
LUA_COMPAT=( lua5-{1..3} )
|
||||||
|
PYTHON_COMPAT=( python3_{7..9} )
|
||||||
|
|
||||||
|
inherit autotools fcaps flag-o-matic java-pkg-opt-2 linux-info lua-single \
|
||||||
|
multilib perl-functions python-single-r1 systemd tmpfiles udev
|
||||||
|
|
||||||
|
DESCRIPTION="Collects system statistics and provides mechanisms to store the values"
|
||||||
|
|
||||||
|
HOMEPAGE="https://collectd.org/"
|
||||||
|
SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="MIT GPL-2 GPL-2+ GPL-3 GPL-3+"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~x86"
|
||||||
|
IUSE="contrib debug java kernel_Darwin kernel_FreeBSD kernel_linux perl selinux static-libs udev xfs"
|
||||||
|
|
||||||
|
# The plugin lists have to follow here since they extend IUSE
|
||||||
|
|
||||||
|
# Plugins that don't build (e.g. dependencies not in Gentoo)
|
||||||
|
# apple_sensors: Requires libIOKit
|
||||||
|
# amqp1: Requires libqpid-proton
|
||||||
|
# aquaero: Requires aerotools-ng/libaquaero5
|
||||||
|
# barometer: Requires libi2c (i2c_smbus_read_i2c_block_data)
|
||||||
|
# dpdkevents: Requires dpdk
|
||||||
|
# dpdkstat: Requires dpdk
|
||||||
|
# dpdk_telemetry: Requires dpdk
|
||||||
|
# grpc: Requires libgrpc
|
||||||
|
# intel_pmu: Requires libjevents (pmu-tools)
|
||||||
|
# intel_rdt: Requires libpqos from intel-cmt-cat project
|
||||||
|
# lpar: Requires libperfstat (AIX only)
|
||||||
|
# mic: Requires Intel Many Integrated Core Architecture API
|
||||||
|
# (part of Intel's Xeon Phi software)
|
||||||
|
# netapp: Requires libnetapp (http://communities.netapp.com/docs/DOC-1110)
|
||||||
|
# onewire: Requires sys-fs/owfs which was removed from repository
|
||||||
|
# pf: Requires BSD packet filter
|
||||||
|
# pinba: Requires MySQL Pinba engine (http://pinba.org/)
|
||||||
|
# redfish: Requires libredfish
|
||||||
|
# tape: Requires libkstat (Solaris only)
|
||||||
|
# tokyotyrant: Requires tokyotyrant
|
||||||
|
# write_riemann: Requires riemann-c-client
|
||||||
|
# xmms: Requires libxmms (v1)
|
||||||
|
# zone: Solaris only...
|
||||||
|
COLLECTD_IMPOSSIBLE_PLUGINS="apple_sensors amqp1 aquaero barometer
|
||||||
|
dpdkevents dpdkstat dpdk_telemetry grpc intel_pmu intel_rdt lpar
|
||||||
|
mic netapp onewire pf pinba redfish tape tokyotyrant write_riemann
|
||||||
|
xmms zone"
|
||||||
|
|
||||||
|
# Plugins that have been (compile) tested and can be enabled via COLLECTD_PLUGINS
|
||||||
|
COLLECTD_TESTED_PLUGINS="aggregation amqp apache apcups ascent battery bind
|
||||||
|
buddyinfo capabilities ceph cgroups check_uptime chrony connectivity
|
||||||
|
conntrack contextswitch cpu cpufreq cpusleep csv curl curl_json
|
||||||
|
curl_xml dbi df disk dns drbd email entropy ethstat exec fhcount
|
||||||
|
filecount fscache gmond gps gpu_nvidia hddtemp hugepages interface ipc
|
||||||
|
ipmi iptables ipvs irq java lua load logfile logparser log_logstash
|
||||||
|
madwifi match_empty_counter match_hashed match_regex match_timediff
|
||||||
|
match_value mbmon mcelog md memcachec memcached memory modbus mqtt
|
||||||
|
multimeter mysql netlink network network nfs nginx notify_desktop
|
||||||
|
notify_email notify_nagios ntpd numa nut olsrd onewire openldap
|
||||||
|
openvpn oracle ovs_events ovs_stats pcie_errors perl ping postgresql
|
||||||
|
powerdns procevent processes protocols python redis routeros
|
||||||
|
rrdcached rrdtool sensors serial sigrok slurm smart snmp snmp_agent
|
||||||
|
statsd swap synproxy sysevent syslog table tail tail_csv
|
||||||
|
target_notification target_replace target_scale target_set tcpconns
|
||||||
|
teamspeak2 ted thermal threshold turbostat ubi unixsock uptime users
|
||||||
|
uuid varnish virt vmem vserver wireless write_graphite write_http
|
||||||
|
write_influxdb_udp write_kafka write_log write_mongodb write_prometheus
|
||||||
|
write_redis write_sensu write_stackdriver write_syslog write_tsdb
|
||||||
|
xencpu zfs_arc zookeeper"
|
||||||
|
|
||||||
|
COLLECTD_DISABLED_PLUGINS="${COLLECTD_IMPOSSIBLE_PLUGINS}"
|
||||||
|
|
||||||
|
COLLECTD_ALL_PLUGINS=${COLLECTD_TESTED_PLUGINS}
|
||||||
|
|
||||||
|
for plugin in ${COLLECTD_ALL_PLUGINS}; do
|
||||||
|
IUSE="${IUSE} collectd_plugins_${plugin}"
|
||||||
|
done
|
||||||
|
unset plugin
|
||||||
|
|
||||||
|
# Now come the dependencies.
|
||||||
|
|
||||||
|
COMMON_DEPEND="
|
||||||
|
acct-group/collectd
|
||||||
|
acct-user/collectd
|
||||||
|
dev-libs/libgcrypt:=
|
||||||
|
dev-libs/libltdl:0=
|
||||||
|
sys-libs/libcap
|
||||||
|
perl? ( dev-lang/perl:=[ithreads] )
|
||||||
|
udev? ( virtual/udev )
|
||||||
|
xfs? ( sys-fs/xfsprogs )
|
||||||
|
collectd_plugins_amqp? ( net-libs/rabbitmq-c )
|
||||||
|
collectd_plugins_apache? ( net-misc/curl:0= )
|
||||||
|
collectd_plugins_ascent? ( net-misc/curl:0= dev-libs/libxml2:2= )
|
||||||
|
collectd_plugins_bind? ( net-misc/curl:0= dev-libs/libxml2:2= )
|
||||||
|
collectd_plugins_ceph? ( dev-libs/yajl:= )
|
||||||
|
collectd_plugins_capabilities? ( dev-libs/jansson net-libs/libmicrohttpd:= )
|
||||||
|
collectd_plugins_connectivity? ( dev-libs/yajl:= net-libs/libmnl )
|
||||||
|
collectd_plugins_curl? ( net-misc/curl:0= )
|
||||||
|
collectd_plugins_curl_json? ( net-misc/curl:0= dev-libs/yajl:= )
|
||||||
|
collectd_plugins_curl_xml? ( net-misc/curl:0= dev-libs/libxml2:2= )
|
||||||
|
collectd_plugins_dbi? ( dev-db/libdbi )
|
||||||
|
collectd_plugins_dns? ( net-libs/libpcap )
|
||||||
|
collectd_plugins_gmond? ( sys-cluster/ganglia )
|
||||||
|
collectd_plugins_gps? ( sci-geosciences/gpsd:= )
|
||||||
|
collectd_plugins_gpu_nvidia? ( dev-util/nvidia-cuda-toolkit )
|
||||||
|
collectd_plugins_ipmi? ( >=sys-libs/openipmi-2.0.16-r1 )
|
||||||
|
collectd_plugins_iptables? ( >=net-firewall/iptables-1.4.13:0= )
|
||||||
|
collectd_plugins_log_logstash? ( dev-libs/yajl:= )
|
||||||
|
collectd_plugins_lua? ( ${LUA_DEPS} )
|
||||||
|
collectd_plugins_memcachec? ( dev-libs/libmemcached )
|
||||||
|
collectd_plugins_modbus? ( dev-libs/libmodbus )
|
||||||
|
collectd_plugins_mqtt? ( app-misc/mosquitto )
|
||||||
|
collectd_plugins_mysql? ( dev-db/mysql-connector-c:= )
|
||||||
|
collectd_plugins_netlink? ( net-libs/libmnl )
|
||||||
|
collectd_plugins_nginx? ( net-misc/curl:0= )
|
||||||
|
collectd_plugins_notify_desktop? ( x11-libs/libnotify )
|
||||||
|
collectd_plugins_notify_email? ( net-libs/libesmtp:= )
|
||||||
|
collectd_plugins_nut? ( >=sys-power/nut-2.7.2-r2 )
|
||||||
|
collectd_plugins_openldap? ( net-nds/openldap )
|
||||||
|
collectd_plugins_oracle? ( dev-db/oracle-instantclient-basic )
|
||||||
|
collectd_plugins_ovs_events? ( dev-libs/yajl:= )
|
||||||
|
collectd_plugins_ovs_stats? ( dev-libs/yajl:= )
|
||||||
|
collectd_plugins_perl? ( dev-lang/perl:=[ithreads] )
|
||||||
|
collectd_plugins_ping? ( net-libs/liboping )
|
||||||
|
collectd_plugins_postgresql? ( dev-db/postgresql:= )
|
||||||
|
collectd_plugins_procevent? ( dev-libs/yajl:= )
|
||||||
|
collectd_plugins_python? ( ${PYTHON_DEPS} )
|
||||||
|
collectd_plugins_redis? ( dev-libs/hiredis:= )
|
||||||
|
collectd_plugins_routeros? ( net-libs/librouteros )
|
||||||
|
collectd_plugins_rrdcached? ( net-analyzer/rrdtool:= )
|
||||||
|
collectd_plugins_rrdtool? ( net-analyzer/rrdtool:= )
|
||||||
|
collectd_plugins_sensors? ( sys-apps/lm-sensors:= )
|
||||||
|
collectd_plugins_sigrok? ( >=sci-libs/libsigrok-0.4:= dev-libs/glib:2 )
|
||||||
|
collectd_plugins_slurm? ( sys-cluster/slurm )
|
||||||
|
collectd_plugins_smart? ( dev-libs/libatasmart:0= )
|
||||||
|
collectd_plugins_snmp? ( net-analyzer/net-snmp )
|
||||||
|
collectd_plugins_snmp_agent? ( net-analyzer/net-snmp )
|
||||||
|
collectd_plugins_sysevent? ( dev-libs/yajl:= )
|
||||||
|
collectd_plugins_varnish? ( www-servers/varnish:= )
|
||||||
|
collectd_plugins_virt? ( app-emulation/libvirt:= dev-libs/libxml2:2= )
|
||||||
|
collectd_plugins_write_http? ( net-misc/curl:0= dev-libs/yajl:= )
|
||||||
|
collectd_plugins_write_kafka? ( >=dev-libs/librdkafka-0.9.0.99:= dev-libs/yajl:= )
|
||||||
|
collectd_plugins_write_mongodb? ( >=dev-libs/mongo-c-driver-1.8.2:= )
|
||||||
|
collectd_plugins_write_prometheus? ( >=dev-libs/protobuf-c-1.2.1-r1:= net-libs/libmicrohttpd:= )
|
||||||
|
collectd_plugins_write_redis? ( dev-libs/hiredis:= )
|
||||||
|
collectd_plugins_write_stackdriver? ( net-misc/curl:0= dev-libs/yajl:= )
|
||||||
|
collectd_plugins_xencpu? ( app-emulation/xen-tools:= )
|
||||||
|
|
||||||
|
kernel_FreeBSD? (
|
||||||
|
collectd_plugins_disk? ( sys-libs/libstatgrab:= )
|
||||||
|
collectd_plugins_interface? ( sys-libs/libstatgrab:= )
|
||||||
|
collectd_plugins_load? ( sys-libs/libstatgrab:= )
|
||||||
|
collectd_plugins_memory? ( sys-libs/libstatgrab:= )
|
||||||
|
collectd_plugins_swap? ( sys-libs/libstatgrab:= )
|
||||||
|
collectd_plugins_users? ( sys-libs/libstatgrab:= )
|
||||||
|
)"
|
||||||
|
|
||||||
|
# FIXME: should virtual/jdk be here as well?
|
||||||
|
BDEPEND="virtual/pkgconfig"
|
||||||
|
|
||||||
|
# Enforcing !=sys-kernel/linux-headers-4.5 > due to #577846
|
||||||
|
DEPEND="${COMMON_DEPEND}
|
||||||
|
collectd_plugins_iptables? ( || ( <=sys-kernel/linux-headers-4.4 >=sys-kernel/linux-headers-4.6 ) )
|
||||||
|
collectd_plugins_java? ( >=virtual/jdk-1.8 )"
|
||||||
|
|
||||||
|
RDEPEND="${COMMON_DEPEND}
|
||||||
|
collectd_plugins_java? ( >=virtual/jre-1.8 )
|
||||||
|
collectd_plugins_syslog? ( virtual/logger )
|
||||||
|
selinux? ( sec-policy/selinux-collectd )"
|
||||||
|
|
||||||
|
REQUIRED_USE="
|
||||||
|
collectd_plugins_lua? ( ${LUA_REQUIRED_USE} )
|
||||||
|
collectd_plugins_python? ( ${PYTHON_REQUIRED_USE} )
|
||||||
|
collectd_plugins_smart? ( udev )
|
||||||
|
contrib? ( perl )"
|
||||||
|
|
||||||
|
PATCHES=( "${FILESDIR}"/${PN}-5.11.0-libsigrok-0.4+.patch )
|
||||||
|
|
||||||
|
# @FUNCTION: collectd_plugin_kernel_linux
|
||||||
|
# @DESCRIPTION:
|
||||||
|
# USAGE: <plugin name> <kernel_options> <severity>
|
||||||
|
# kernel_options is a list of kernel configurations options; the check tests whether at least
|
||||||
|
# one of them is enabled. If no, depending on the third argument an elog, ewarn, or eerror message
|
||||||
|
# is emitted.
|
||||||
|
collectd_plugin_kernel_linux() {
|
||||||
|
local multi_opt opt
|
||||||
|
if has ${1} ${COLLECTD_ALL_PLUGINS}; then
|
||||||
|
if use collectd_plugins_${1}; then
|
||||||
|
for opt in ${2}; do
|
||||||
|
if linux_chkconfig_present ${opt}; then
|
||||||
|
return 0;
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
multi_opt=${2//\ /\ or\ }
|
||||||
|
case ${3} in
|
||||||
|
(info)
|
||||||
|
elog "The ${1} plugin can use kernel features that are disabled now; enable ${multi_opt} in your kernel"
|
||||||
|
;;
|
||||||
|
(warn)
|
||||||
|
ewarn "The ${1} plugin uses kernel features that are disabled now; enable ${multi_opt} in your kernel"
|
||||||
|
;;
|
||||||
|
(error)
|
||||||
|
eerror "The ${1} plugin needs kernel features that are disabled now; enable ${multi_opt} in your kernel"
|
||||||
|
;;
|
||||||
|
(*)
|
||||||
|
die "function collectd_plugin_kernel_linux called with invalid third argument"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
collectd_linux_kernel_checks() {
|
||||||
|
if ! linux_chkconfig_present PROC_FS; then
|
||||||
|
ewarn "/proc file system support is disabled, many plugins will not be able to read any statistics from your system unless you enable PROC_FS in your kernel"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! linux_chkconfig_present SYSFS; then
|
||||||
|
ewarn "/sys file system support is disabled, many plugins will not be able to read any statistics from your system unless you enable SYSFS in your kernel"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# battery.c: /proc/pmu/battery_%i
|
||||||
|
# battery.c: /proc/acpi/battery
|
||||||
|
collectd_plugin_kernel_linux battery ACPI_BATTERY warn
|
||||||
|
|
||||||
|
# cgroups.c: /sys/fs/cgroup/
|
||||||
|
collectd_plugin_kernel_linux cgroups CGROUPS warn
|
||||||
|
|
||||||
|
# cpufreq.c: /sys/devices/system/cpu/cpu%d/cpufreq/
|
||||||
|
collectd_plugin_kernel_linux cpufreq SYSFS warn
|
||||||
|
collectd_plugin_kernel_linux cpufreq CPU_FREQ_STAT warn
|
||||||
|
|
||||||
|
# drbd.c: /proc/drbd
|
||||||
|
collectd_plugin_kernel_linux drbd BLK_DEV_DRBD warn
|
||||||
|
|
||||||
|
# conntrack.c: /proc/sys/net/netfilter/*
|
||||||
|
collectd_plugin_kernel_linux conntrack NETFILTER warn
|
||||||
|
|
||||||
|
# fscache.c: /proc/fs/fscache/stats
|
||||||
|
collectd_plugin_kernel_linux fscache FSCACHE warn
|
||||||
|
|
||||||
|
# nfs.c: /proc/net/rpc/nfs
|
||||||
|
# nfs.c: /proc/net/rpc/nfsd
|
||||||
|
collectd_plugin_kernel_linux nfs NFS_COMMON warn
|
||||||
|
|
||||||
|
# serial.c: /proc/tty/driver/serial
|
||||||
|
# serial.c: /proc/tty/driver/ttyS
|
||||||
|
collectd_plugin_kernel_linux serial SERIAL_CORE warn
|
||||||
|
|
||||||
|
# swap.c: /proc/meminfo
|
||||||
|
collectd_plugin_kernel_linux swap SWAP warn
|
||||||
|
|
||||||
|
# thermal.c: /proc/acpi/thermal_zone
|
||||||
|
# thermal.c: /sys/class/thermal
|
||||||
|
collectd_plugin_kernel_linux thermal ACPI_THERMAL warn
|
||||||
|
|
||||||
|
# turbostat.c: /dev/cpu/%d/msr
|
||||||
|
collectd_plugin_kernel_linux turbostat X86_MSR warn
|
||||||
|
|
||||||
|
# vmem.c: /proc/vmstat
|
||||||
|
collectd_plugin_kernel_linux vmem VM_EVENT_COUNTERS warn
|
||||||
|
|
||||||
|
# vserver.c: /proc/virtual
|
||||||
|
collectd_plugin_kernel_linux vserver VSERVER warn
|
||||||
|
|
||||||
|
# uuid.c: /sys/hypervisor/uuid
|
||||||
|
collectd_plugin_kernel_linux uuid SYSFS info
|
||||||
|
|
||||||
|
# wireless.c: /proc/net/wireless
|
||||||
|
collectd_plugin_kernel_linux wireless "WIRELESS MAC80211 IEEE80211" warn
|
||||||
|
|
||||||
|
# zfs_arc.c: /proc/spl/kstat/zfs/arcstats
|
||||||
|
collectd_plugin_kernel_linux zfs_arc "SPL ZFS" warn
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
if use kernel_linux; then
|
||||||
|
linux-info_pkg_setup
|
||||||
|
|
||||||
|
if linux_config_exists; then
|
||||||
|
einfo "Checking your linux kernel configuration:"
|
||||||
|
collectd_linux_kernel_checks
|
||||||
|
else
|
||||||
|
elog "Cannot find a linux kernel configuration. Continuing anyway."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use collectd_plugins_java; then
|
||||||
|
java-pkg-opt-2_pkg_setup
|
||||||
|
fi
|
||||||
|
|
||||||
|
use collectd_plugins_lua && lua-single_pkg_setup
|
||||||
|
use collectd_plugins_python && python-single-r1_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# There's some strange prefix handling in the default config file, resulting in
|
||||||
|
# paths like "/usr/var/..."
|
||||||
|
sed -i -e "s:@prefix@/var:/var:g" src/collectd.conf.in || die
|
||||||
|
|
||||||
|
# Adjust upstream's systemd unit
|
||||||
|
# - Get rid of EnvironmentFile directive; These files don't exist on Gentoo!
|
||||||
|
# - Add User=collectd to run collectd as user "collectd" per default
|
||||||
|
sed -i \
|
||||||
|
-e '/^EnvironmentFile=.*/d' \
|
||||||
|
-e '/^\[Service\]/aUser=collectd' \
|
||||||
|
contrib/systemd.${PN}.service || die
|
||||||
|
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
# Now come the lists of os-dependent plugins. Any plugin that is not listed anywhere here
|
||||||
|
# should work independent of the operating system.
|
||||||
|
|
||||||
|
local linux_plugins="barometer battery cpu cpufreq disk
|
||||||
|
drbd entropy ethstat hugepages interface iptables
|
||||||
|
ipvs irq ipc load memory md netlink nfs numa processes
|
||||||
|
serial swap tcpconns thermal turbostat users vmem wireless
|
||||||
|
zfc_arc"
|
||||||
|
|
||||||
|
local need_libstatgrab=0
|
||||||
|
local libstatgrab_plugins="cpu disk interface load memory swap users"
|
||||||
|
local bsd_plugins="cpu tcpconns ${libstatgrab_plugins} zfc_arc"
|
||||||
|
|
||||||
|
local darwin_plugins="apple_sensors battery cpu disk interface memory processes tcpconns"
|
||||||
|
|
||||||
|
local osdependent_plugins="${linux_plugins} ${bsd_plugins} ${darwin_plugins}"
|
||||||
|
local myos_plugins=""
|
||||||
|
if use kernel_linux; then
|
||||||
|
einfo "Enabling Linux plugins."
|
||||||
|
myos_plugins=${linux_plugins}
|
||||||
|
elif use kernel_FreeBSD; then
|
||||||
|
einfo "Enabling FreeBSD plugins."
|
||||||
|
myos_plugins=${bsd_plugins}
|
||||||
|
elif use kernel_Darwin; then
|
||||||
|
einfo "Enabling Darwin plugins."
|
||||||
|
myos_plugins=${darwin_plugins}
|
||||||
|
fi
|
||||||
|
|
||||||
|
local myconf="--disable-werror"
|
||||||
|
|
||||||
|
# Do we debug?
|
||||||
|
myconf+=" $(use_enable debug)"
|
||||||
|
|
||||||
|
# udev support?
|
||||||
|
# Required for smart plugin via REQUIRED_USE; Optional for disk plugin
|
||||||
|
if use udev; then
|
||||||
|
myconf+=" --with-libudev"
|
||||||
|
else
|
||||||
|
myconf+=" --without-libudev"
|
||||||
|
fi
|
||||||
|
|
||||||
|
local plugin
|
||||||
|
|
||||||
|
# Disable what needs to be disabled.
|
||||||
|
for plugin in ${COLLECTD_DISABLED_PLUGINS}; do
|
||||||
|
if [[ "${plugin}" == 'dpdkstat' ]]; then
|
||||||
|
myconf+=" --without-libdpdk"
|
||||||
|
else
|
||||||
|
myconf+=" --disable-${plugin}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# Set enable/disable for each single plugin.
|
||||||
|
for plugin in ${COLLECTD_ALL_PLUGINS}; do
|
||||||
|
if has ${plugin} ${osdependent_plugins}; then
|
||||||
|
# plugin is os-dependent ...
|
||||||
|
if has ${plugin} ${myos_plugins}; then
|
||||||
|
# ... and available in this os
|
||||||
|
myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})"
|
||||||
|
# ... must we link against libstatgrab? Bug #541518
|
||||||
|
if use kernel_FreeBSD && has ${plugin} ${libstatgrab_plugins}; then
|
||||||
|
einfo "We must link against libstatgrab due to plugin \"${plugin}\" ..."
|
||||||
|
need_libstatgrab=1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
# ... and NOT available in this os
|
||||||
|
if use collectd_plugins_${plugin}; then
|
||||||
|
ewarn "You try to enable the ${plugin} plugin, but it is not available for this"
|
||||||
|
ewarn "kernel. Disabling it automatically."
|
||||||
|
fi
|
||||||
|
myconf+=" --disable-${plugin}"
|
||||||
|
fi
|
||||||
|
elif [[ "${plugin}" = "collectd_plugins_perl" ]]; then
|
||||||
|
if use collectd_plugins_perl && ! use perl; then
|
||||||
|
ewarn "Perl plugin disabled as perl bindings disabled by -perl use flag"
|
||||||
|
myconf+= --disable-perl
|
||||||
|
else
|
||||||
|
myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ "${need_libstatgrab}" -eq 1 ]; then
|
||||||
|
myconf+=" --with-libstatgrab"
|
||||||
|
else
|
||||||
|
myconf+=" --without-libstatgrab"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# JAVA_HOME is set by eclasses.
|
||||||
|
if use collectd_plugins_java; then
|
||||||
|
myconf+=" --with-java"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Need libiptc ONLY for iptables. If we try to use it otherwise bug 340109 happens.
|
||||||
|
# lots of libs are only needed for plugins, if they are disabled, also disable the lib
|
||||||
|
use collectd_plugins_iptables || myconf+=" --with-libiptc=no"
|
||||||
|
use collectd_plugins_openldap || myconf+=" --with-libldap=no"
|
||||||
|
use collectd_plugins_redis || use collectd_plugins_write_redis || myconf+=" --with-libhiredis=no"
|
||||||
|
use collectd_plugins_smart || myconf+=" --with-libatasmart=no"
|
||||||
|
use collectd_plugins_gps || myconf+=" --with-libgps=no"
|
||||||
|
|
||||||
|
if use collectd_plugins_gpu_nvidia; then
|
||||||
|
myconf+=" --with-cuda=${EPREFIX}/opt/cuda"
|
||||||
|
else
|
||||||
|
myconf+=" --with-cuda=no"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use perl; then
|
||||||
|
myconf+=" --with-perl-bindings=INSTALLDIRS=vendor"
|
||||||
|
else
|
||||||
|
myconf+=" --without-perl-bindings"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# No need for v5upgrade
|
||||||
|
myconf+=" --disable-target_v5upgrade"
|
||||||
|
|
||||||
|
# Python
|
||||||
|
if use collectd_plugins_python; then
|
||||||
|
myconf+=" --with-libpython=yes"
|
||||||
|
export PYTHON_CONFIG=$(python_get_PYTHON_CONFIG)
|
||||||
|
else
|
||||||
|
myconf+=" --with-libpython=no"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# XFS support
|
||||||
|
myconf+=" $(use_enable xfs)"
|
||||||
|
|
||||||
|
# Finally, run econf.
|
||||||
|
KERNEL_DIR="${KERNEL_DIR}" econf --config-cache \
|
||||||
|
$(use_enable static-libs static) \
|
||||||
|
--localstatedir=/var ${myconf}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake DESTDIR="${D}" install
|
||||||
|
|
||||||
|
perl_delete_localpod
|
||||||
|
|
||||||
|
find "${ED}"/usr/ -name "*.la" -delete || die
|
||||||
|
|
||||||
|
if use collectd_plugins_java; then
|
||||||
|
java-pkg_regjar "${ED}"/usr/share/${PN}/java/*.jar
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use collectd_plugins_disk && use udev; then
|
||||||
|
udev_newrules contrib/99-storage-collectd.rules 60-persistent-storage-collectd.rules
|
||||||
|
fi
|
||||||
|
|
||||||
|
fowners root:collectd /etc/collectd.conf
|
||||||
|
fperms u=rw,g=r,o= /etc/collectd.conf
|
||||||
|
|
||||||
|
einstalldocs
|
||||||
|
|
||||||
|
if use contrib; then
|
||||||
|
insinto /usr/share/${PN}
|
||||||
|
doins -r contrib
|
||||||
|
fi
|
||||||
|
|
||||||
|
keepdir /var/lib/${PN}
|
||||||
|
fowners collectd:collectd /var/lib/${PN}
|
||||||
|
|
||||||
|
newinitd "${FILESDIR}/${PN}.initd-r2" ${PN}
|
||||||
|
newconfd "${FILESDIR}/${PN}.confd-r2" ${PN}
|
||||||
|
systemd_newunit "contrib/systemd.${PN}.service" ${PN}.service
|
||||||
|
|
||||||
|
insinto /etc/logrotate.d
|
||||||
|
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||||
|
|
||||||
|
newtmpfiles "${FILESDIR}"/${PN}.tmpfile ${PN}.conf
|
||||||
|
|
||||||
|
sed -i -e 's:^.*PIDFile "/var/run/collectd.pid":#PIDFile "/run/collectd.pid":' "${ED}"/etc/collectd.conf || die
|
||||||
|
sed -i -e 's:^# SocketFile "/var/run/collectd-unixsock":# SocketFile "/run/collectd/collectd.socket":' "${ED}"/etc/collectd.conf || die
|
||||||
|
sed -i -e 's:^.*LoadPlugin perl$:# The new, correct way to load the perl plugin -- \n# <LoadPlugin perl>\n# Globals true\n# </LoadPlugin>:' "${ED}"/etc/collectd.conf || die
|
||||||
|
sed -i -e 's:^.*LoadPlugin python$:# The new, correct way to load the python plugin -- \n# <LoadPlugin python>\n# Globals true\n# </LoadPlugin>:' "${ED}"/etc/collectd.conf || die
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
tmpfiles_process "${PN}.conf"
|
||||||
|
|
||||||
|
if use filecaps; then
|
||||||
|
local caps=()
|
||||||
|
use collectd_plugins_ceph && caps+=('CAP_DAC_OVERRIDE')
|
||||||
|
use collectd_plugins_exec && caps+=('CAP_SETUID' 'CAP_SETGID')
|
||||||
|
use collectd_plugins_iptables && caps+=('CAP_NET_ADMIN')
|
||||||
|
use collectd_plugins_filecount && caps+=('CAP_DAC_READ_SEARCH')
|
||||||
|
|
||||||
|
if use collectd_plugins_dns || use collectd_plugins_ping; then
|
||||||
|
caps+=('CAP_NET_RAW')
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use collectd_plugins_turbostat || use collectd_plugins_smart; then
|
||||||
|
caps+=('CAP_SYS_RAWIO')
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ${#caps[@]} -gt 0 ]; then
|
||||||
|
local caps_str=$(IFS=","; echo "${caps[*]}")
|
||||||
|
fcaps ${caps_str} usr/sbin/collectd
|
||||||
|
elog "Capabilities for ${EROOT}/usr/sbin/collectd set to:"
|
||||||
|
elog " ${caps_str}+EP"
|
||||||
|
elog
|
||||||
|
|
||||||
|
local systemd_unit="$(systemd_get_systemunitdir)/collectd.service"
|
||||||
|
if [[ -e "${systemd_unit}" ]]; then
|
||||||
|
caps_str="${caps[*]}"
|
||||||
|
sed -i -e "s:^CapabilityBoundingSet=.*:CapabilityBoundingSet=${caps_str}:" "${systemd_unit}" || \
|
||||||
|
die "Failed to set CapabilityBoundingSet in '${systemd_unit}'"
|
||||||
|
|
||||||
|
elog "CapabilityBoundingSet in '${systemd_unit}'"
|
||||||
|
elog "updated to match capabilities set above."
|
||||||
|
elog
|
||||||
|
else
|
||||||
|
if has_version "sys-apps/systemd"; then
|
||||||
|
# Bug 596852
|
||||||
|
ewarn "Failed to update CapabilityBoundingSet in '${systemd_unit}'"
|
||||||
|
ewarn "because unit was not found. Please file a bug about this."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
elog "Note: Collectd is only the collector."
|
||||||
|
elog " You need to install 'data' sources (applications) locally or"
|
||||||
|
elog " remotely on your own."
|
||||||
|
|
||||||
|
elog
|
||||||
|
elog "Collectd is configured to run as unprivileged user by default."
|
||||||
|
elog "You may want to revisit the configuration."
|
||||||
|
elog
|
||||||
|
|
||||||
|
if use collectd_plugins_email; then
|
||||||
|
ewarn "The email plug-in is deprecated. To submit statistics please use the unixsock plugin."
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use collectd_plugins_smart; then
|
||||||
|
elog ""
|
||||||
|
elog "If you are using smart plugin and don't run collectd as root make sure"
|
||||||
|
elog "that the collectd user is allowed to access the disk you want to monitor"
|
||||||
|
elog "(can be done via udev rule for example) and that collectd has the required"
|
||||||
|
elog "capabilities set (which is the default when package was emerged with"
|
||||||
|
elog "'filecaps' USE flag set)."
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use contrib; then
|
||||||
|
elog "The scripts in /usr/share/doc/${PF}/collection3 for generating graphs need dev-perl/HTML-Parser,"
|
||||||
|
elog "dev-perl/CGI, dev-perl/Config-General and net-analyzer/rrdtool[perl] to be installed."
|
||||||
|
fi
|
||||||
|
}
|
Binary file not shown.
@ -1,2 +1,3 @@
|
|||||||
DIST filebus-0.3.2.tar.gz 17310 BLAKE2B 0f30aabcd316f52ea12d12b136befe643085dff5e283f65edf2a459b127cd3e2d48c472ae0dd8f302bb7211e4da5541a6fc7ac274573631ab03fc246bc8b566f SHA512 88ce3cd2d8aec7afd30d16315a6a8a37dee1b21d882571ef87c7dca56251e737d6500a5fad0124c62aea6383aae5ec30abd8abf86c2fac5d582f8fe96049eaa6
|
DIST filebus-0.3.2.tar.gz 17310 BLAKE2B 0f30aabcd316f52ea12d12b136befe643085dff5e283f65edf2a459b127cd3e2d48c472ae0dd8f302bb7211e4da5541a6fc7ac274573631ab03fc246bc8b566f SHA512 88ce3cd2d8aec7afd30d16315a6a8a37dee1b21d882571ef87c7dca56251e737d6500a5fad0124c62aea6383aae5ec30abd8abf86c2fac5d582f8fe96049eaa6
|
||||||
DIST filebus-0.3.4.tar.gz 17404 BLAKE2B cf6a3fef2e7f3d69fb73df3f9134666e5d1d09d02cc94cd73c2818b1fc92132fafeb8b3b6f904316ab57a3aab4fa01ba00e0e5bfabf9a9c5194de3d6a8666417 SHA512 0619eda926ca77730558600d29a1b7811972b411b86d6c5374f1ccbcd0a4901f70eb87df7577690d72bb7eec4a4191f3b7b4bca237317352bdc0f0ce0f36f120
|
DIST filebus-0.3.4.tar.gz 17404 BLAKE2B cf6a3fef2e7f3d69fb73df3f9134666e5d1d09d02cc94cd73c2818b1fc92132fafeb8b3b6f904316ab57a3aab4fa01ba00e0e5bfabf9a9c5194de3d6a8666417 SHA512 0619eda926ca77730558600d29a1b7811972b411b86d6c5374f1ccbcd0a4901f70eb87df7577690d72bb7eec4a4191f3b7b4bca237317352bdc0f0ce0f36f120
|
||||||
|
DIST filebus-0.3.5.tar.gz 17373 BLAKE2B bd49f86e658bcc8dcdcc7cc0c5ca1a3c354a716137157753417b9b57294c14f058292650092e7e8bdb5563e041c009f36474508fb121e14487075cfc41b223bb SHA512 639b047be8fd3eba9cf97e57d7234f590aeb28e6e321195b435480ce0b334e14c236b888e79d14a824b16505e1c2d2c1fc04dd5d75b6f7ac1c8e9fbae6bf562f
|
||||||
|
@ -0,0 +1,68 @@
|
|||||||
|
# Copyright 2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
DISTUTILS_OPTIONAL=1
|
||||||
|
DISTUTILS_USE_SETUPTOOLS=manual
|
||||||
|
PYTHON_COMPAT=( python3_{7,8,9,10} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="A user space multicast named pipe implementation backed by a regular file"
|
||||||
|
HOMEPAGE="https://github.com/pipebus/filebus"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="+inotify python test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||||
|
RDEPEND="
|
||||||
|
python? (
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||||
|
dev-python/filelock[${PYTHON_USEDEP}]
|
||||||
|
inotify? ( dev-python/watchdog[${PYTHON_USEDEP}] )
|
||||||
|
)"
|
||||||
|
BDEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
if use python; then
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
if use python; then
|
||||||
|
distutils-r1_src_compile
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
"${BASH}" ./lib/bash/filebus-test.bash test || die
|
||||||
|
|
||||||
|
if use python; then
|
||||||
|
distutils-r1_src_test
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
python test/test_filebus.py || die "tests failed for ${EPYTHON}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
if use python; then
|
||||||
|
distutils-r1_src_install
|
||||||
|
else
|
||||||
|
insinto /usr/libexec/filebus
|
||||||
|
doins lib/bash/*.bash
|
||||||
|
cat <<-EOF > "${T}/filebus"
|
||||||
|
#!/bin/sh
|
||||||
|
exec bash "${EPREFIX}/usr/libexec/filebus/filebus.bash" "\$@"
|
||||||
|
EOF
|
||||||
|
dobin "${T}/filebus"
|
||||||
|
dosym filebus /usr/bin/pipebus
|
||||||
|
fi
|
||||||
|
}
|
Binary file not shown.
@ -1,2 +1 @@
|
|||||||
DIST cmark-0.29.0.tar.gz 234545 BLAKE2B 1571cdf08f85142ff790db811b7973f2d95a7b1c8669af467cbeac1ad0907826a46f7e0e3ba717ba677746406f8372e40b9878f7810d317fa3c0e14db06dc8fb SHA512 06eb110cfd90c9e980c022b7588e28864d15a4da5d07d61ad4b27c6de47367492b9e58e9434e62b07517aa6dc484f17af13916808be3188f38c37d20cbf33112
|
|
||||||
DIST cmark-0.30.2.tar.gz 246033 BLAKE2B 487f5adf47afdd4133e16b6cca1403cd555f8722b47c423960909de73aacac1d0f8b16311f6d5349addb5f03a86562545bb2ec80771b822bb8e5b82816375124 SHA512 aaa9b2103cf89c522f9b42a2b43c07ecf75e07eb42214c0be5de17682ea1faf9c85e3dd28fe91d446b69a34f9980bcab6e276a99b42540c40c9ee1481b3a0d17
|
DIST cmark-0.30.2.tar.gz 246033 BLAKE2B 487f5adf47afdd4133e16b6cca1403cd555f8722b47c423960909de73aacac1d0f8b16311f6d5349addb5f03a86562545bb2ec80771b822bb8e5b82816375124 SHA512 aaa9b2103cf89c522f9b42a2b43c07ecf75e07eb42214c0be5de17682ea1faf9c85e3dd28fe91d446b69a34f9980bcab6e276a99b42540c40c9ee1481b3a0d17
|
||||||
|
@ -1,38 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{7,8,9} )
|
|
||||||
|
|
||||||
inherit cmake python-any-r1
|
|
||||||
|
|
||||||
DESCRIPTION="CommonMark parsing and rendering library and program in C"
|
|
||||||
HOMEPAGE="https://github.com/commonmark/cmark"
|
|
||||||
SRC_URI="https://github.com/commonmark/cmark/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="BSD-2"
|
|
||||||
SLOT="0/0.29.0"
|
|
||||||
KEYWORDS="amd64 ppc ppc64 x86"
|
|
||||||
IUSE="test"
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
DEPEND="test? ( ${PYTHON_DEPS} )"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/${P}-python38_tests.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
use test && python-any-r1_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local mycmakeargs=(
|
|
||||||
-DCMARK_LIB_FUZZER=OFF
|
|
||||||
-DCMARK_SHARED=ON
|
|
||||||
-DCMARK_STATIC=OFF
|
|
||||||
-DCMARK_TESTS="$(usex test)"
|
|
||||||
)
|
|
||||||
cmake_src_configure
|
|
||||||
}
|
|
@ -1,31 +0,0 @@
|
|||||||
From 92697d564042d5b914048e087e4274c3c71e0055 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Christopher Fujino <christopherfujino@gmail.com>
|
|
||||||
Date: Sun, 12 Jul 2020 16:11:42 -0700
|
|
||||||
Subject: [PATCH] replace cgi.escape with html.escape (#656)
|
|
||||||
|
|
||||||
---
|
|
||||||
test/normalize.py | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/test/normalize.py b/test/normalize.py
|
|
||||||
index 6073bf01..f8ece18d 100644
|
|
||||||
--- a/test/normalize.py
|
|
||||||
+++ b/test/normalize.py
|
|
||||||
@@ -13,7 +13,7 @@ class HTMLParseError(Exception):
|
|
||||||
from html.entities import name2codepoint
|
|
||||||
import sys
|
|
||||||
import re
|
|
||||||
-import cgi
|
|
||||||
+import html
|
|
||||||
|
|
||||||
# Normalization code, adapted from
|
|
||||||
# https://github.com/karlcow/markdown-testsuite/
|
|
||||||
@@ -66,7 +66,7 @@ def handle_starttag(self, tag, attrs):
|
|
||||||
self.output += ("=" + '"' +
|
|
||||||
urllib.quote(urllib.unquote(v), safe='/') + '"')
|
|
||||||
elif v != None:
|
|
||||||
- self.output += ("=" + '"' + cgi.escape(v,quote=True) + '"')
|
|
||||||
+ self.output += ("=" + '"' + html.escape(v,quote=True) + '"')
|
|
||||||
self.output += ">"
|
|
||||||
self.last_tag = tag
|
|
||||||
self.last = "starttag"
|
|
Binary file not shown.
@ -1,2 +1,4 @@
|
|||||||
DIST aws-2020-20200429-19A9F-src.tar.gz 4120886 BLAKE2B 44156b532dd4382995e5b33eedbb39b4d4fa542f57f3a7d596875a25c1eb59c3e4cc0085cfc60f385566842f2b047086a66a966dc3b9dcd8f48ae7da0c07c01e SHA512 284331bcd07955737ebc6b95a0a72984ace55a1911f1ed809b0ba8e525b03df57a668ccd92d0edfde42be2e06c09a3225e84f5d0501a488a004eb3eeaa746a61
|
DIST aws-2020-20200429-19A9F-src.tar.gz 4120886 BLAKE2B 44156b532dd4382995e5b33eedbb39b4d4fa542f57f3a7d596875a25c1eb59c3e4cc0085cfc60f385566842f2b047086a66a966dc3b9dcd8f48ae7da0c07c01e SHA512 284331bcd07955737ebc6b95a0a72984ace55a1911f1ed809b0ba8e525b03df57a668ccd92d0edfde42be2e06c09a3225e84f5d0501a488a004eb3eeaa746a61
|
||||||
DIST aws-2021-20210518-19F65-src.tar.gz 4351625 BLAKE2B 227e1af5423c7cbf8b15b2ad37b5fbea862daca10dd12e79edb6cb1392f502b8b665d0cedc151a4190723c6aa795801b65c5807592d0292511a9a80318f0a722 SHA512 1820750daf2ba2e95479a8280aa0eae0d38e1d86a32570b4caaa845498ad8f0e8ac8c91f6aef0d5ef06fa1b33bc2b2b264cacb7101ca69fc81f36ab8cb17c65f
|
DIST aws-2021-20210518-19F65-src.tar.gz 4351625 BLAKE2B 227e1af5423c7cbf8b15b2ad37b5fbea862daca10dd12e79edb6cb1392f502b8b665d0cedc151a4190723c6aa795801b65c5807592d0292511a9a80318f0a722 SHA512 1820750daf2ba2e95479a8280aa0eae0d38e1d86a32570b4caaa845498ad8f0e8ac8c91f6aef0d5ef06fa1b33bc2b2b264cacb7101ca69fc81f36ab8cb17c65f
|
||||||
|
DIST aws-22.0.0.tar.gz 2356886 BLAKE2B 3f0a36ce23ed50855dddeb8ecc1888d51c4c7368990124c3d55f240c8b07cc72b59b4c172cad05d282de0ff4cd348ff912315d8cfad1582b2bbb049ad5fcea12 SHA512 6baeff7fa8012cb155bd3964177368f4ccd0bb367abaa66d44c0ffbcd4145f3930fe2e0fe5cfbeb41adccb7395d46c49acffc502878e9b83ecb5e2de597b897b
|
||||||
|
DIST templates-parser-22.0.0.tar.gz 224473 BLAKE2B c0c0d6feada3d0e54ee0456b48979e1f436c2bdf7210aeb061640c3128294b243ac21c29ef538b055871315b567640e37782b28057954bf4d43473d372c7d983 SHA512 9ce512e41bf3e682f1671d3ed931830d2279da9bef58f9997e430f4852cebb6119cabf0fde7dfaf999586155c13472ab258a0e0f3d885522aeb86d8acb4a2d4f
|
||||||
|
@ -0,0 +1,57 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
ADA_COMPAT=( gnat_202{0..1} )
|
||||||
|
inherit ada multiprocessing
|
||||||
|
|
||||||
|
DESCRIPTION="A complete Web development framework"
|
||||||
|
HOMEPAGE="http://libre.adacore.com/tools/aws/"
|
||||||
|
SRC_URI="https://github.com/AdaCore/${PN}/archive/refs/tags/v${PV}.tar.gz
|
||||||
|
-> ${P}.tar.gz
|
||||||
|
https://github.com/AdaCore/templates-parser/archive/refs/tags/v${PV}.tar.gz
|
||||||
|
-> templates-parser-${PV}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
RDEPEND="dev-ada/gnatcoll-core:=[${ADA_USEDEP},shared,static-libs]
|
||||||
|
dev-libs/openssl"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
dev-ada/gprbuild[${ADA_USEDEP}]"
|
||||||
|
|
||||||
|
REQUIRED_USE="${ADA_REQUIRED_USE}"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-2020-gentoo.patch
|
||||||
|
"${FILESDIR}"/${P}-gentoo.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
rmdir templates_parser || die
|
||||||
|
mv ../templates-parser-${PV} templates_parser || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
emake -j1 setup prefix=/usr ENABLE_SHARED=true \
|
||||||
|
ZLIB=true SOCKET=openssl \
|
||||||
|
GPRBUILD="/usr/bin/gprbuild -v"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake \
|
||||||
|
PROCESSORS=$(makeopts_jobs) ENABLE_SHARED=true \
|
||||||
|
GPRBUILD="/usr/bin/gprbuild -v"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake install \
|
||||||
|
DESTDIR="${D}" \
|
||||||
|
PROCESSORS=$(makeopts_jobs) ENABLE_SHARED=true \
|
||||||
|
GPRINSTALL="/usr/bin/gprinstall -v"
|
||||||
|
einstalldocs
|
||||||
|
}
|
@ -0,0 +1,33 @@
|
|||||||
|
--- a/Makefile 2021-11-18 21:58:13.144841987 +0100
|
||||||
|
+++ b/Makefile 2021-11-18 21:59:15.974876738 +0100
|
||||||
|
@@ -185,10 +185,9 @@
|
||||||
|
# build
|
||||||
|
|
||||||
|
build-tools-native:
|
||||||
|
- $(GPRBUILD) -p $(GPROPTS) $(GPR_STATIC) tools/tools.gpr
|
||||||
|
+ $(GPRBUILD) -p $(GPROPTS) $(GPR_SHARED) tools/tools.gpr
|
||||||
|
|
||||||
|
build-lib-native:
|
||||||
|
- $(GPRBUILD) -p $(GPROPTS) aws.gpr
|
||||||
|
ifeq (${ENABLE_SHARED}, true)
|
||||||
|
$(GPRBUILD) -p $(GPROPTS) $(GPR_SHARED) aws.gpr
|
||||||
|
endif
|
||||||
|
@@ -259,15 +258,15 @@
|
||||||
|
--build-var=LIBRARY_TYPE --build-var=AWS_BUILD
|
||||||
|
|
||||||
|
install-lib-native:
|
||||||
|
- $(GPRINSTALL) $(GPROPTS) $(GPRINST_OPTS) $(GPR_DEFAULT) \
|
||||||
|
- --build-name=$(DEFAULT_LIBRARY_TYPE) aws.gpr
|
||||||
|
ifeq (${ENABLE_SHARED}, true)
|
||||||
|
$(GPRINSTALL) $(GPROPTS) $(GPRINST_OPTS) \
|
||||||
|
$(GPR_OTHER) --build-name=$(OTHER_LIBRARY_TYPE) aws.gpr
|
||||||
|
+ $(GPRINSTALL) $(GPROPTS) $(GPRINST_OPTS) \
|
||||||
|
+ $(GPR_OTHER) --build-name=$(OTHER_LIBRARY_TYPE) ssl/ssl.gpr
|
||||||
|
endif
|
||||||
|
|
||||||
|
install-tools-native:
|
||||||
|
- $(GPRINSTALL) $(GPROPTS) $(GPRINST_OPTS) $(GPR_STATIC) --mode=usage \
|
||||||
|
+ $(GPRINSTALL) $(GPROPTS) $(GPRINST_OPTS) $(GPR_SHARED) --mode=usage \
|
||||||
|
--build-name=$(DEFAULT_LIBRARY_TYPE) \
|
||||||
|
--install-name=aws tools/tools.gpr
|
||||||
|
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,61 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit cmake
|
||||||
|
|
||||||
|
MY_PN="${PN/intel-/}"
|
||||||
|
MY_P="${MY_PN}-${PV}"
|
||||||
|
|
||||||
|
DESCRIPTION="Intel Graphics Compute Runtime for oneAPI Level Zero and OpenCL Driver"
|
||||||
|
HOMEPAGE="https://github.com/intel/compute-runtime"
|
||||||
|
SRC_URI="https://github.com/intel/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE="+l0 +vaapi"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-libs/libnl:3
|
||||||
|
dev-libs/libxml2:2
|
||||||
|
>=dev-util/intel-graphics-compiler-1.0.8744
|
||||||
|
>=dev-util/intel-graphics-system-controller-0.2.4
|
||||||
|
>=media-libs/gmmlib-21.2.1
|
||||||
|
>=virtual/opencl-3
|
||||||
|
l0? ( >=dev-libs/level-zero-1.5.4 )
|
||||||
|
vaapi? (
|
||||||
|
x11-libs/libdrm[video_cards_intel]
|
||||||
|
x11-libs/libva
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
# for Khronos OpenGL headers
|
||||||
|
DEPEND="
|
||||||
|
${RDEPEND}
|
||||||
|
media-libs/mesa
|
||||||
|
"
|
||||||
|
|
||||||
|
BDEPEND="virtual/pkgconfig"
|
||||||
|
|
||||||
|
DOCS=( "README.md" "FAQ.md" )
|
||||||
|
|
||||||
|
PATCHES=( "${FILESDIR}/${PN}-21.31.20514-no_Werror.patch" )
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DBUILD_WITH_L0="$(usex l0)"
|
||||||
|
-DDISABLE_LIBVA="$(usex !vaapi)"
|
||||||
|
-DKHRONOS_GL_HEADERS_DIR="${ESYSROOT}/usr/include"
|
||||||
|
-DOCL_ICD_VENDORDIR="${EPREFIX}/etc/OpenCL/vendors"
|
||||||
|
|
||||||
|
# If enabled, tests are automatically run during
|
||||||
|
# the compile phase and we cannot run them because
|
||||||
|
# they require permissions to access the hardware.
|
||||||
|
-DSKIP_UNIT_TESTS="ON"
|
||||||
|
)
|
||||||
|
|
||||||
|
cmake_src_configure
|
||||||
|
}
|
Binary file not shown.
@ -1,93 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
EGIT_COMMIT="5b18e475f38fcf28429b1cc4b17baee3b9793a62"
|
|
||||||
LUA_COMPAT=( lua5-{1..4} luajit )
|
|
||||||
MY_P="${PN}-${EGIT_COMMIT}"
|
|
||||||
|
|
||||||
inherit flag-o-matic lua toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="Networking support library for the Lua language"
|
|
||||||
HOMEPAGE="
|
|
||||||
http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/
|
|
||||||
https://github.com/diegonehab/luasocket
|
|
||||||
"
|
|
||||||
SRC_URI="https://github.com/diegonehab/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86"
|
|
||||||
REQUIRED_USE="${LUA_REQUIRED_USE}"
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
RDEPEND="${LUA_DEPS}"
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
BDEPEND="virtual/pkgconfig"
|
|
||||||
|
|
||||||
HTML_DOCS="doc/."
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
# Respect users CFLAGS
|
|
||||||
sed -e 's/-O2 -ggdb3//g' -i src/makefile || die
|
|
||||||
|
|
||||||
# Workaround for 32-bit systems
|
|
||||||
append-cflags -fno-stack-protector
|
|
||||||
|
|
||||||
lua_copy_sources
|
|
||||||
}
|
|
||||||
|
|
||||||
lua_src_compile() {
|
|
||||||
pushd "${BUILD_DIR}" || die
|
|
||||||
|
|
||||||
local myemakeargs=(
|
|
||||||
"CC=$(tc-getCC)"
|
|
||||||
"LD=$(tc-getCC)"
|
|
||||||
"LDFLAGS_linux=-O -fpic -shared -o"
|
|
||||||
"LUAINC_linux=$(lua_get_include_dir)"
|
|
||||||
"LUAV=${ELUA}"
|
|
||||||
"MIME_V=1.0.3-${ELUA}"
|
|
||||||
"MYCFLAGS=${CFLAGS}"
|
|
||||||
"MYLDFLAGS=${LDFLAGS}"
|
|
||||||
"SOCKET_V=3.0-rc1-${ELUA}"
|
|
||||||
)
|
|
||||||
|
|
||||||
emake "${myemakeargs[@]}" all
|
|
||||||
|
|
||||||
popd
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
lua_foreach_impl lua_src_compile
|
|
||||||
}
|
|
||||||
|
|
||||||
lua_src_install() {
|
|
||||||
pushd "${BUILD_DIR}" || die
|
|
||||||
|
|
||||||
local myemakeargs=(
|
|
||||||
"CDIR=$(lua_get_cmod_dir)"
|
|
||||||
"DESTDIR=${ED}"
|
|
||||||
"LDIR=$(lua_get_lmod_dir)"
|
|
||||||
"LUAPREFIX_linux="
|
|
||||||
"MIME_V=1.0.3-${ELUA}"
|
|
||||||
"SOCKET_V=3.0-rc1-${ELUA}"
|
|
||||||
)
|
|
||||||
|
|
||||||
emake "${myemakeargs[@]}" install
|
|
||||||
emake "${myemakeargs[@]}" install-unix
|
|
||||||
|
|
||||||
insinto "$(lua_get_include_dir)"/luasocket
|
|
||||||
doins src/*.h
|
|
||||||
|
|
||||||
popd
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
lua_foreach_impl lua_src_install
|
|
||||||
|
|
||||||
einstalldocs
|
|
||||||
}
|
|
@ -1,23 +1,19 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=5
|
EAPI=8
|
||||||
|
|
||||||
MODULE_VERSION=1.13
|
DIST_VERSION=1.13
|
||||||
MODULE_AUTHOR=JHAR
|
DIST_AUTHOR=JHAR
|
||||||
inherit perl-module
|
inherit perl-module
|
||||||
|
|
||||||
DESCRIPTION="Fetch info from MPEG-4 files (.mp4, .m4a, .m4p, .3gp)"
|
DESCRIPTION="Fetch info from MPEG-4 files (.mp4, .m4a, .m4p, .3gp)"
|
||||||
|
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64 ~x86"
|
KEYWORDS="~amd64 ~x86"
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
virtual/perl-Encode
|
virtual/perl-Encode
|
||||||
dev-perl/IO-String
|
dev-perl/IO-String
|
||||||
"
|
"
|
||||||
DEPEND="${RDEPEND}
|
BDEPEND="${RDEPEND}
|
||||||
"
|
"
|
||||||
|
|
||||||
SRC_TEST=do
|
|
Binary file not shown.
@ -1,2 +1,2 @@
|
|||||||
DIST Mozilla-PublicSuffix-v1.0.0.tar.gz 71669 BLAKE2B 5a5866b6446cf56df24d5113e2ce663dec3ace6025ff9888b40914b577215dcb65f3f57bae1ac31bc82ff5dc3a0ae4d79f1d63dbe6fa717358ebf92d0779b579 SHA512 79ed7256bccb33f1f428657bd60cccaf7be5d4793424337b94a812a41f46e90507b8c32b3aa8b381bf16d77f4a3f911301f757332e9144718efd2341996d9cc6
|
|
||||||
DIST Mozilla-PublicSuffix-v1.0.4.tar.gz 85940 BLAKE2B a3f8266dc0c48b302cc5c9a488318f2b3668ffdb6e50bc567362d1e00b1798f7a37470e2b3f78321b48567f411d6e10e9b1ffd88bd82caa0659ce2b7f67c43e5 SHA512 681803f51fbc8aca961874607f1f3a6a91c95a0e1397e3d702b013a9ab3cfcca7b08340414f977dcc9af7ee01610bdf8b60ce6bcea3bffab6156d80b2063f008
|
DIST Mozilla-PublicSuffix-v1.0.4.tar.gz 85940 BLAKE2B a3f8266dc0c48b302cc5c9a488318f2b3668ffdb6e50bc567362d1e00b1798f7a37470e2b3f78321b48567f411d6e10e9b1ffd88bd82caa0659ce2b7f67c43e5 SHA512 681803f51fbc8aca961874607f1f3a6a91c95a0e1397e3d702b013a9ab3cfcca7b08340414f977dcc9af7ee01610bdf8b60ce6bcea3bffab6156d80b2063f008
|
||||||
|
DIST Mozilla-PublicSuffix-v1.0.5.tar.gz 87014 BLAKE2B fef4cb6c255eedd4f98392a422ddd0559231dcfd0c73031397f709b8863012f682ddc8c67cffd3f175035718f25bf04577ed92fa770405fe78838a2c71fb65d0 SHA512 3c8932dd9b3ee365e2a511bccfb324152c3fa13bdf795d9ff669b505d0385e212fd6d3991fc80a794e7398ca1cc0e4ea307f45df6a04e295a59fca83abfa7794
|
||||||
|
@ -1,2 +1 @@
|
|||||||
DIST multidimensional-0.013.tar.gz 67528 BLAKE2B 8167da19e5bc0f28547277580cefa871031b7dc129fc6eae521ecc4e5e5714b38b5c5b32446dc41123b6d79c93fd7399e6cd4f33d244d85e937deaa5831ffa2c SHA512 9abc93efd0060042f16c9e89c37a11a08c781ab2d095964701661a17f4adfeaf7cf3cb134db9c91a366b5ddda482716eda5d3b002fdb38fa4694d7e24dbc76f6
|
|
||||||
DIST multidimensional-0.014.tar.gz 66968 BLAKE2B 0496081f7ea4b0c33e5805b85213fa582d58218d7e50614ae0a8660b1d28f823eeed3023f2fd10bb9055e89e38d365f4c1e9741fdaba0d6bc5fe1f67d7a8c461 SHA512 94c9dabb3023165a8dd140ef791e4aab980e3b604eae06ed0e29290aab67a9302f2cde4c8b394de0b4c55c5f78ce4510db902d615d665bf60b12ec409f341043
|
DIST multidimensional-0.014.tar.gz 66968 BLAKE2B 0496081f7ea4b0c33e5805b85213fa582d58218d7e50614ae0a8660b1d28f823eeed3023f2fd10bb9055e89e38d365f4c1e9741fdaba0d6bc5fe1f67d7a8c461 SHA512 94c9dabb3023165a8dd140ef791e4aab980e3b604eae06ed0e29290aab67a9302f2cde4c8b394de0b4c55c5f78ce4510db902d615d665bf60b12ec409f341043
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
DIST_AUTHOR=ILMARI
|
|
||||||
DIST_VERSION=0.013
|
|
||||||
inherit perl-module
|
|
||||||
|
|
||||||
DESCRIPTION="disables multidimensional array emulation"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="test"
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-perl/B-Hooks-OP-Check-0.190.0
|
|
||||||
>=dev-perl/Lexical-SealRequireHints-0.5.0
|
|
||||||
virtual/perl-XSLoader
|
|
||||||
"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
virtual/perl-ExtUtils-MakeMaker
|
|
||||||
dev-perl/ExtUtils-Depends
|
|
||||||
test? (
|
|
||||||
>=virtual/perl-CPAN-Meta-2.112.580
|
|
||||||
>=virtual/perl-Test-Simple-0.880.0
|
|
||||||
)
|
|
||||||
"
|
|
Binary file not shown.
@ -0,0 +1,59 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="The AWS SDK for Python"
|
||||||
|
HOMEPAGE="https://github.com/boto/boto3"
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
EGIT_REPO_URI="https://github.com/boto/boto3"
|
||||||
|
inherit git-r3
|
||||||
|
BOTOCORE_PV=${PV}
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/boto/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
|
||||||
|
# botocore is x.(y+3).z
|
||||||
|
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 3)).$(ver_cut 3-)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/s3transfer-0.3.0[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/mock[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_sphinx docs/source \
|
||||||
|
'dev-python/guzzle_sphinx_theme'
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
python_prepare_all() {
|
||||||
|
# don't lock versions to narrow ranges
|
||||||
|
sed -e '/botocore/ d' \
|
||||||
|
-e '/jmespath/ d' \
|
||||||
|
-e '/s3transfer/ d' \
|
||||||
|
-i setup.py || die
|
||||||
|
|
||||||
|
# do not rely on bundled deps in botocore (sic!)
|
||||||
|
find -name '*.py' -exec sed -i \
|
||||||
|
-e 's:from botocore[.]vendored import:import:' \
|
||||||
|
-e 's:from botocore[.]vendored[.]:from :' \
|
||||||
|
{} + || die
|
||||||
|
|
||||||
|
distutils-r1_python_prepare_all
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
epytest tests/{functional,unit}
|
||||||
|
}
|
@ -0,0 +1,64 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Low-level, data-driven core of boto 3"
|
||||||
|
HOMEPAGE="https://github.com/boto/botocore"
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
EGIT_REPO_URI="https://github.com/boto/botocore"
|
||||||
|
inherit git-r3
|
||||||
|
else
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
fi
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-python/six[${PYTHON_USEDEP}]
|
||||||
|
dev-python/jmespath[${PYTHON_USEDEP}]
|
||||||
|
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/jsonschema[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/1.8.6-tests-pass-all-env-vars-to-cmd-runner.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
distutils_enable_sphinx docs/source \
|
||||||
|
'dev-python/guzzle_sphinx_theme'
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# unpin deps
|
||||||
|
sed -i -e "s:>=.*':':" setup.py || die
|
||||||
|
|
||||||
|
# unbundle deps
|
||||||
|
rm -r botocore/vendored || die
|
||||||
|
find -name '*.py' -exec sed -i \
|
||||||
|
-e 's:from botocore[.]vendored import:import:' \
|
||||||
|
-e 's:from botocore[.]vendored[.]:from :' \
|
||||||
|
{} + || die
|
||||||
|
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
local EPYTEST_DESELECT=(
|
||||||
|
# rely on bundled six
|
||||||
|
tests/functional/test_six_imports.py::test_no_bare_six_imports
|
||||||
|
tests/functional/test_six_threading.py::test_six_thread_safety
|
||||||
|
)
|
||||||
|
|
||||||
|
epytest tests/{functional,unit}
|
||||||
|
}
|
@ -1,2 +1,3 @@
|
|||||||
DIST pygit2-1.6.1.tar.gz 258338 BLAKE2B dc223e2a5231728c42ca7e0581483731fbab6ee090cf4aeeb27f186973b3c753fdf54c89679a88b97d834d717135f9b8f9a2adf492ed8572affa938c79d0f905 SHA512 67a78313493ba096cbae6805bda861495f33644fd180b5fb1cd99dcd226ef5a09ee85bd27d04d0697ef15503a4e902aa1384980870551f430fd9560ac949fe2f
|
DIST pygit2-1.6.1.tar.gz 258338 BLAKE2B dc223e2a5231728c42ca7e0581483731fbab6ee090cf4aeeb27f186973b3c753fdf54c89679a88b97d834d717135f9b8f9a2adf492ed8572affa938c79d0f905 SHA512 67a78313493ba096cbae6805bda861495f33644fd180b5fb1cd99dcd226ef5a09ee85bd27d04d0697ef15503a4e902aa1384980870551f430fd9560ac949fe2f
|
||||||
DIST pygit2-1.7.0.tar.gz 276292 BLAKE2B 6091e2916c4986cb545f23d3a31f262666f0349661ccc48769414e888d0ede48af3a80483b4638a3a2275b74ed9b42113bdeae678f03d76caa7e796c6011b50c SHA512 3a8654036d0ab875898ce60e81bcab48bdb6d6bd63c29dc98272c71b5c82391e3186da61083fba09faf722e176fed5c592a36edb53ae0b957726e74646d25616
|
DIST pygit2-1.7.0.tar.gz 276292 BLAKE2B 6091e2916c4986cb545f23d3a31f262666f0349661ccc48769414e888d0ede48af3a80483b4638a3a2275b74ed9b42113bdeae678f03d76caa7e796c6011b50c SHA512 3a8654036d0ab875898ce60e81bcab48bdb6d6bd63c29dc98272c71b5c82391e3186da61083fba09faf722e176fed5c592a36edb53ae0b957726e74646d25616
|
||||||
|
DIST pygit2-1.7.1.tar.gz 281791 BLAKE2B 51f7f23752acf0abf6000f2262019db7503506267f0f5306bd53e0e15378447d2da564818c1b6efccc4759587aba6b4d7b142c760e4e2796445cd6056e949825 SHA512 a6232039b6364c7a0905aba20f7e27b43892b7067fa95fdd464438869453360ecdb885f2012cdf0eb0734c91dc79b60db894d1d0fee81922b9fb3cf920950937
|
||||||
|
@ -0,0 +1,40 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Python bindings for libgit2"
|
||||||
|
HOMEPAGE="https://github.com/libgit2/pygit2 https://pypi.org/project/pygit2/"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2-with-linking-exception"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
=dev-libs/libgit2-1.3*:=
|
||||||
|
>=dev-python/cffi-1.0:=[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
|
||||||
|
# unconditionally prevent it from using network
|
||||||
|
sed -i -e '/has_network/s:True:False:' test/utils.py || die
|
||||||
|
|
||||||
|
# we need to move them away to prevent pytest from forcing '..'
|
||||||
|
# for imports
|
||||||
|
mkdir hack || die
|
||||||
|
mv test hack/ || die
|
||||||
|
ln -s hack/test test || die
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
epytest hack/test
|
||||||
|
}
|
@ -0,0 +1,98 @@
|
|||||||
|
diff --git a/tests/_device_tests/_attributes_tests.py b/tests/_device_tests/_attributes_tests.py
|
||||||
|
index 23fa6da..7baf043 100644
|
||||||
|
--- a/tests/_device_tests/_attributes_tests.py
|
||||||
|
+++ b/tests/_device_tests/_attributes_tests.py
|
||||||
|
@@ -50,7 +50,7 @@ class TestAttributes(object):
|
||||||
|
"""
|
||||||
|
|
||||||
|
@given(_CONTEXT_STRATEGY, strategies.sampled_from(_DEVICE_DATA))
|
||||||
|
- @settings(max_examples=5)
|
||||||
|
+ @settings(max_examples=5, deadline=30000)
|
||||||
|
def test_getitem(self, a_context, device_datum):
|
||||||
|
"""
|
||||||
|
Test that attribute value exists and is instance of bytes.
|
||||||
|
@@ -60,7 +60,7 @@ def test_getitem(self, a_context, device_datum):
|
||||||
|
for key in device_datum.attributes.keys())
|
||||||
|
|
||||||
|
@given(strategies.sampled_from(_DEVICES))
|
||||||
|
- @settings(max_examples=5)
|
||||||
|
+ @settings(max_examples=5, deadline=30000)
|
||||||
|
def test_getitem_nonexisting(self, a_device):
|
||||||
|
"""
|
||||||
|
Test behavior when corresponding value is non-existant.
|
||||||
|
@@ -87,7 +87,7 @@ def test_non_iterable(self, a_device):
|
||||||
|
a_device.attributes['key']
|
||||||
|
|
||||||
|
@given(_CONTEXT_STRATEGY, strategies.sampled_from(_DEVICE_DATA))
|
||||||
|
- @settings(max_examples=5)
|
||||||
|
+ @settings(max_examples=5, deadline=30000)
|
||||||
|
def test_asstring(self, a_context, device_datum):
|
||||||
|
"""
|
||||||
|
Test that attribute exists for actual device and is unicode.
|
||||||
|
@@ -97,7 +97,7 @@ def test_asstring(self, a_context, device_datum):
|
||||||
|
for key in device_datum.attributes.keys())
|
||||||
|
|
||||||
|
@given(_CONTEXT_STRATEGY, strategies.sampled_from(_DEVICE_DATA))
|
||||||
|
- @settings(max_examples=10)
|
||||||
|
+ @settings(max_examples=10, deadline=30000)
|
||||||
|
def test_asint(self, a_context, device_datum):
|
||||||
|
"""
|
||||||
|
Test that integer result is an int or ValueError raised.
|
||||||
|
@@ -111,7 +111,7 @@ def test_asint(self, a_context, device_datum):
|
||||||
|
device.attributes.asint(key)
|
||||||
|
|
||||||
|
@given(_CONTEXT_STRATEGY, strategies.sampled_from(_DEVICE_DATA))
|
||||||
|
- @settings(max_examples=5)
|
||||||
|
+ @settings(max_examples=5, deadline=30000)
|
||||||
|
def test_asbool(self, a_context, device_datum):
|
||||||
|
"""
|
||||||
|
Test that bool result is a bool or ValueError raised.
|
||||||
|
diff --git a/tests/_device_tests/_device_tests.py b/tests/_device_tests/_device_tests.py
|
||||||
|
index b9a84c6..2ce6751 100644
|
||||||
|
--- a/tests/_device_tests/_device_tests.py
|
||||||
|
+++ b/tests/_device_tests/_device_tests.py
|
||||||
|
@@ -352,7 +352,7 @@ def test_key_subset(self, a_context, device_datum):
|
||||||
|
frozenset(device.properties.keys())
|
||||||
|
|
||||||
|
@given(_CONTEXT_STRATEGY, strategies.sampled_from(_DEVICE_DATA))
|
||||||
|
- @settings(max_examples=1)
|
||||||
|
+ @settings(max_examples=1, deadline=30000)
|
||||||
|
def test_getitem(self, a_context, device_datum):
|
||||||
|
device = Devices.from_path(a_context, device_datum.device_path)
|
||||||
|
for prop in device_datum.properties:
|
||||||
|
@@ -372,7 +372,7 @@ def test_getitem(self, a_context, device_datum):
|
||||||
|
@pytest.mark.skipif(
|
||||||
|
len(_device_data) == 0, reason='no device with a DEVNAME property')
|
||||||
|
@given(_CONTEXT_STRATEGY, strategies.sampled_from(_device_data))
|
||||||
|
- @settings(max_examples=5)
|
||||||
|
+ @settings(max_examples=5, deadline=30000)
|
||||||
|
def test_getitem_devname(self, a_context, device_datum):
|
||||||
|
device = Devices.from_path(a_context, device_datum.device_path)
|
||||||
|
data_devname = os.path.join(a_context.device_path,
|
||||||
|
@@ -382,7 +382,7 @@ def test_getitem_devname(self, a_context, device_datum):
|
||||||
|
assert device_devname == data_devname
|
||||||
|
|
||||||
|
@given(strategies.sampled_from(_DEVICES))
|
||||||
|
- @settings(max_examples=5)
|
||||||
|
+ @settings(max_examples=5, deadline=30000)
|
||||||
|
def test_getitem_nonexisting(self, a_device):
|
||||||
|
with pytest.raises(KeyError) as excinfo:
|
||||||
|
# pylint: disable=pointless-statement
|
||||||
|
@@ -390,7 +390,7 @@ def test_getitem_nonexisting(self, a_device):
|
||||||
|
assert str(excinfo.value) == repr('a non-existing property')
|
||||||
|
|
||||||
|
@given(_CONTEXT_STRATEGY, strategies.sampled_from(_DEVICE_DATA))
|
||||||
|
- @settings(max_examples=5)
|
||||||
|
+ @settings(max_examples=5, deadline=30000)
|
||||||
|
def test_asint(self, a_context, device_datum):
|
||||||
|
device = Devices.from_path(a_context, device_datum.device_path)
|
||||||
|
for prop, value in device_datum.properties.items():
|
||||||
|
@@ -403,7 +403,7 @@ def test_asint(self, a_context, device_datum):
|
||||||
|
assert device.properties.asint(prop) == value
|
||||||
|
|
||||||
|
@given(_CONTEXT_STRATEGY, strategies.sampled_from(_DEVICE_DATA))
|
||||||
|
- @settings(max_examples=5)
|
||||||
|
+ @settings(max_examples=5, deadline=30000)
|
||||||
|
def test_asbool(self, a_context, device_datum):
|
||||||
|
"""
|
||||||
|
Test that values of 1 and 0 get properly interpreted as bool
|
@ -0,0 +1,126 @@
|
|||||||
|
commit a35c394f7f4eb714eeaab1b8ed7977f822e29fa9
|
||||||
|
Author: mulhern <amulhern@redhat.com>
|
||||||
|
Date: Wed May 2 15:50:45 2018 -0400
|
||||||
|
|
||||||
|
Get rid of all test_match_attribute_* methods
|
||||||
|
|
||||||
|
These tests are rendered flaky by the volatility of attribute values.
|
||||||
|
|
||||||
|
Signed-off-by: mulhern <amulhern@redhat.com>
|
||||||
|
|
||||||
|
diff --git a/tests/test_enumerate.py b/tests/test_enumerate.py
|
||||||
|
index f054799..c9c6a67 100644
|
||||||
|
--- a/tests/test_enumerate.py
|
||||||
|
+++ b/tests/test_enumerate.py
|
||||||
|
@@ -200,77 +200,6 @@ def test_match_property_bool(self, context, pair):
|
||||||
|
for device in devices
|
||||||
|
)
|
||||||
|
|
||||||
|
- @failed_health_check_wrapper
|
||||||
|
- @given(_CONTEXT_STRATEGY, _ATTRIBUTE_STRATEGY)
|
||||||
|
- @settings(max_examples=50)
|
||||||
|
- def test_match_attribute_nomatch_unfulfillable(self, context, pair):
|
||||||
|
- """
|
||||||
|
- Match and no match for a key/value gives empty set.
|
||||||
|
- """
|
||||||
|
- key, value = pair
|
||||||
|
- devices = context.list_devices()
|
||||||
|
- devices.match_attribute(key, value)
|
||||||
|
- devices.match_attribute(key, value, nomatch=True)
|
||||||
|
- assert not list(devices)
|
||||||
|
-
|
||||||
|
- @failed_health_check_wrapper
|
||||||
|
- @given(_CONTEXT_STRATEGY, _ATTRIBUTE_STRATEGY)
|
||||||
|
- @settings(max_examples=50)
|
||||||
|
- def test_match_attribute_nomatch_complete(self, context, pair):
|
||||||
|
- """
|
||||||
|
- Test that w/ respect to the universe of devices returned by
|
||||||
|
- list_devices() a match and its inverse are complements of each other.
|
||||||
|
- """
|
||||||
|
- key, value = pair
|
||||||
|
- m_devices = frozenset(context.list_devices().match_attribute(
|
||||||
|
- key, value))
|
||||||
|
- nm_devices = frozenset(context.list_devices().match_attribute(
|
||||||
|
- key, value, nomatch=True))
|
||||||
|
- _test_intersection_and_union(context, m_devices, nm_devices)
|
||||||
|
-
|
||||||
|
- @failed_health_check_wrapper
|
||||||
|
- @given(_CONTEXT_STRATEGY, _ATTRIBUTE_STRATEGY)
|
||||||
|
- @settings(max_examples=50)
|
||||||
|
- def test_match_attribute_string(self, context, pair):
|
||||||
|
- """
|
||||||
|
- Test that matching attribute as string works.
|
||||||
|
- """
|
||||||
|
- key, value = pair
|
||||||
|
- devices = context.list_devices().match_attribute(key, value)
|
||||||
|
- assert all(device.attributes.get(key) == value for device in devices)
|
||||||
|
-
|
||||||
|
- @failed_health_check_wrapper
|
||||||
|
- @given(_CONTEXT_STRATEGY,
|
||||||
|
- _ATTRIBUTE_STRATEGY.filter(lambda x: _is_int(x[1])))
|
||||||
|
- @settings(max_examples=50)
|
||||||
|
- def test_match_attribute_int(self, context, pair):
|
||||||
|
- """
|
||||||
|
- Test matching integer attribute.
|
||||||
|
- """
|
||||||
|
- key, value = pair
|
||||||
|
- int_value = int(value)
|
||||||
|
- devices = context.list_devices().match_attribute(key, int_value)
|
||||||
|
- for device in devices:
|
||||||
|
- attributes = device.attributes
|
||||||
|
- assert attributes.get(key) == value
|
||||||
|
- assert device.attributes.asint(key) == int_value
|
||||||
|
-
|
||||||
|
- @failed_health_check_wrapper
|
||||||
|
- @given(_CONTEXT_STRATEGY,
|
||||||
|
- _ATTRIBUTE_STRATEGY.filter(lambda x: _is_bool(x[1])))
|
||||||
|
- @settings(max_examples=50)
|
||||||
|
- def test_match_attribute_bool(self, context, pair):
|
||||||
|
- """
|
||||||
|
- Test matching boolean attribute.
|
||||||
|
- """
|
||||||
|
- key, value = pair
|
||||||
|
- bool_value = True if int(value) == 1 else False
|
||||||
|
- devices = context.list_devices().match_attribute(key, bool_value)
|
||||||
|
- for device in devices:
|
||||||
|
- attributes = device.attributes
|
||||||
|
- assert attributes.get(key) == value
|
||||||
|
- assert attributes.asbool(key) == bool_value
|
||||||
|
-
|
||||||
|
@_UDEV_TEST(154, "test_match_tag")
|
||||||
|
@failed_health_check_wrapper
|
||||||
|
@given(_CONTEXT_STRATEGY, _TAG_STRATEGY)
|
||||||
|
@@ -335,33 +264,6 @@ def test_combined_property_matches(self, context, ppairs):
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
- @given(_CONTEXT_STRATEGY,
|
||||||
|
- strategies.lists(
|
||||||
|
- elements=_ATTRIBUTE_STRATEGY,
|
||||||
|
- min_size=2,
|
||||||
|
- max_size=3,
|
||||||
|
- unique_by=lambda p: p[0]))
|
||||||
|
- @settings(max_examples=20)
|
||||||
|
- def test_combined_attribute_matches(self, context, apairs):
|
||||||
|
- """
|
||||||
|
- Test for conjunction of attributes.
|
||||||
|
-
|
||||||
|
- If matching multiple attributes, then the result is the intersection of
|
||||||
|
- the matching sets, i.e., the resulting filter is a conjunction.
|
||||||
|
- """
|
||||||
|
- enumeration = context.list_devices()
|
||||||
|
-
|
||||||
|
- for key, value in apairs:
|
||||||
|
- enumeration.match_attribute(key, value)
|
||||||
|
-
|
||||||
|
- _test_direct_and_complement(
|
||||||
|
- context,
|
||||||
|
- frozenset(enumeration),
|
||||||
|
- lambda d: all(
|
||||||
|
- d.attributes.get(key) == value for key, value in apairs
|
||||||
|
- )
|
||||||
|
- )
|
||||||
|
-
|
||||||
|
@given(_CONTEXT_STRATEGY,
|
||||||
|
strategies.lists(
|
||||||
|
elements=_MATCH_PROPERTY_STRATEGY,
|
@ -0,0 +1,51 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
PYTHON_COMPAT=( python3_{7..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Python binding to libudev"
|
||||||
|
HOMEPAGE="https://pyudev.readthedocs.io/en/latest/ https://github.com/pyudev/pyudev"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2.1"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||||||
|
IUSE="qt5"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-python/six[${PYTHON_USEDEP}]
|
||||||
|
virtual/udev
|
||||||
|
qt5? ( dev-python/PyQt5[${PYTHON_USEDEP}] )
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||||
|
test? (
|
||||||
|
dev-python/docutils[${PYTHON_USEDEP}]
|
||||||
|
dev-python/hypothesis[${PYTHON_USEDEP}]
|
||||||
|
dev-python/mock[${PYTHON_USEDEP}]
|
||||||
|
)"
|
||||||
|
|
||||||
|
DOCS=( CHANGES.rst README.rst )
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/pyudev-0.22-fix-hypothesis.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
python_prepare_all() {
|
||||||
|
if use test; then
|
||||||
|
ewarn "If your PORTAGE_TMPDIR is longer in length then '/var/tmp/',"
|
||||||
|
ewarn "change it to /var/tmp to ensure tests will pass."
|
||||||
|
fi
|
||||||
|
|
||||||
|
# tests are known to pass then fail on alternate runs
|
||||||
|
# tests: fix run_path
|
||||||
|
sed -i -e "s|== \('/run/udev'\)|in (\1,'/dev/.udev')|g" \
|
||||||
|
tests/test_core.py || die
|
||||||
|
|
||||||
|
distutils-r1_python_prepare_all
|
||||||
|
}
|
@ -1,7 +1,3 @@
|
|||||||
DIST SQLAlchemy-1.3.24.tar.gz 6353598 BLAKE2B 6eb92b20fa3412a1f1398e18e902e3338320973287afa4a37477ec28d47e7422a19c3a60e6290a6da7b23512c0d818a26400958d02097def778c917f098bb3db SHA512 4f5f0a23e80e1cebe541f8748a7e794e8964d986252803b3289a7cea732ad22557e00221775332e2766b6ff16ad5d9069223f441f8880ca6d0c47011f15fee5b
|
DIST SQLAlchemy-1.3.24.tar.gz 6353598 BLAKE2B 6eb92b20fa3412a1f1398e18e902e3338320973287afa4a37477ec28d47e7422a19c3a60e6290a6da7b23512c0d818a26400958d02097def778c917f098bb3db SHA512 4f5f0a23e80e1cebe541f8748a7e794e8964d986252803b3289a7cea732ad22557e00221775332e2766b6ff16ad5d9069223f441f8880ca6d0c47011f15fee5b
|
||||||
DIST SQLAlchemy-1.4.20.tar.gz 7682074 BLAKE2B 7921bbab0c7fcaccb232121625dcd9acc162cb21e747b889fa032863435b6a922b9ad21c7ba136b94617710d3aa6ec331941b11b0fd87a8d543b633d3d605c36 SHA512 cb9ec5c74b27c93824b7d46844d2a122c719e358d917563039f3dd96a44d057d4daa239b2820893db42348f46546efc469a202999be2c722027abbb6eed50063
|
|
||||||
DIST SQLAlchemy-1.4.22.tar.gz 7709437 BLAKE2B cc4ab689c8f53601ba76632ad32ed2ae23f9ac46fe23f40cc7657b66f48cccc6a7801f9bea64dcebbe1c39786d7ff0708fad8e8d05534a5ab4ef691e6da8d85c SHA512 92a36a77d104db23577dda9add6dca86c1e1c416d3dc552c4dc6049522683da2857c1071c81d216d41a723c11de081af92800acb5d44d69fb0e36ee6756839ce
|
|
||||||
DIST SQLAlchemy-1.4.23.tar.gz 7730769 BLAKE2B ad812a068beba3d55f629d4a3ee5eed6f61e46b19a7e1fcc717cfdd7a8d2cb759d894402a64550576b2cc28d82b53aa56ff4305d45433126a765909150a50450 SHA512 9e668b63487d0b9f9321a73bbf652aa82f31a90222429c4ba2f866edb0a313d8d10989febd456c87bdcde63ab595810232257fb011dce007538651426c1df0d1
|
|
||||||
DIST SQLAlchemy-1.4.25.tar.gz 7776002 BLAKE2B 0c0330d07ab022925cdde0e94c4a33f699777239cc444f3ca31eeaf046b91b41dfe281861725af22a34d9641abb32b5e3558f684157bff9306c06b9333b89c99 SHA512 254d02f36df655638b204bbc8dbe6d32ce66e9f4a072cdb78dc7433b4d91b9cc88a3ec7a279ff2c818e0b794cc69debcb38310fa4734d9c295d067ed3dc33c22
|
|
||||||
DIST SQLAlchemy-1.4.26.tar.gz 7836259 BLAKE2B 149c9947f5536a3715bb05f5bf72a58b597873f824aa492af0df1a0bcbb0e5d8ff848d171f9d12a9f3acc872d3b05df6e67ed79dc190e82d376df152ad150383 SHA512 0289bfc61391e330a8b3df0876727947c6ebd55b54922d3c6107e47a1da27fd6bf7087edbf259e1ef8e7359f53c73d833185f0bc72d307defdb56560bbb21902
|
DIST SQLAlchemy-1.4.26.tar.gz 7836259 BLAKE2B 149c9947f5536a3715bb05f5bf72a58b597873f824aa492af0df1a0bcbb0e5d8ff848d171f9d12a9f3acc872d3b05df6e67ed79dc190e82d376df152ad150383 SHA512 0289bfc61391e330a8b3df0876727947c6ebd55b54922d3c6107e47a1da27fd6bf7087edbf259e1ef8e7359f53c73d833185f0bc72d307defdb56560bbb21902
|
||||||
DIST SQLAlchemy-1.4.27.tar.gz 7907686 BLAKE2B a9751a82e81bcdcf1bd344f0275c0ff89df38c7e9eda4470d147f4b50b0a2a0d7e9861d932fb6382328ec0e2024d72279ea889e4dadd61a4a33fc3e085521604 SHA512 8d1d76596b1698e320305a07e3f0a56607568ef60b6be36c86c0cabc843c8d6d62034d7446eef69f0cd0687de474d34ce1161c1adb9fdeea8c0b47af372015be
|
DIST SQLAlchemy-1.4.27.tar.gz 7907686 BLAKE2B a9751a82e81bcdcf1bd344f0275c0ff89df38c7e9eda4470d147f4b50b0a2a0d7e9861d932fb6382328ec0e2024d72279ea889e4dadd61a4a33fc3e085521604 SHA512 8d1d76596b1698e320305a07e3f0a56607568ef60b6be36c86c0cabc843c8d6d62034d7446eef69f0cd0687de474d34ce1161c1adb9fdeea8c0b47af372015be
|
||||||
|
@ -1,85 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( pypy3 python3_{8..10} )
|
|
||||||
PYTHON_REQ_USE="sqlite?"
|
|
||||||
|
|
||||||
inherit distutils-r1 multiprocessing optfeature
|
|
||||||
|
|
||||||
MY_PN="SQLAlchemy"
|
|
||||||
MY_P="${MY_PN}-${PV/_beta/b}"
|
|
||||||
|
|
||||||
DESCRIPTION="Python SQL toolkit and Object Relational Mapper"
|
|
||||||
HOMEPAGE="https://www.sqlalchemy.org/ https://pypi.org/project/SQLAlchemy/"
|
|
||||||
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
|
||||||
IUSE="examples +sqlite test"
|
|
||||||
|
|
||||||
# Use pytest-xdist to speed up tests
|
|
||||||
BDEPEND="
|
|
||||||
test? (
|
|
||||||
$(python_gen_impl_dep sqlite)
|
|
||||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
distutils_enable_tests pytest
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# remove optional/partial dep on greenlet, greenlet is not very portable
|
|
||||||
sed -i -e '/greenlet/d' setup.cfg || die
|
|
||||||
|
|
||||||
distutils-r1_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
local deselect=()
|
|
||||||
if [[ ${EPYTHON} != pypy3 ]] &&
|
|
||||||
! has_version -b "dev-python/greenlet[${PYTHON_USEDEP}]"
|
|
||||||
then
|
|
||||||
# skip tests requiring greenlet
|
|
||||||
deselect+=(
|
|
||||||
test/base/test_concurrency_py3k.py::TestAsyncAdaptedQueue::test_lazy_init
|
|
||||||
test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_async_error
|
|
||||||
test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_await_fallback_error
|
|
||||||
test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_await_only_error
|
|
||||||
test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_await_only_no_greenlet
|
|
||||||
test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_contextvars
|
|
||||||
test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_ok
|
|
||||||
test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_propagate_cancelled
|
|
||||||
test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_require_await
|
|
||||||
test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_sync_error
|
|
||||||
test/ext/asyncio/test_engine_py3k.py::TextSyncDBAPI::test_sync_driver_execution
|
|
||||||
test/ext/asyncio/test_engine_py3k.py::TextSyncDBAPI::test_sync_driver_run_sync
|
|
||||||
test/base/test_concurrency_py3k.py::TestAsyncAdaptedQueue::test_error_other_loop
|
|
||||||
test/engine/test_pool.py::PoolEventsTest::test_checkin_event_gc[True-_exclusions0]
|
|
||||||
test/engine/test_pool.py::QueuePoolTest::test_userspace_disconnectionerror_weakref_finalizer[True-_exclusions0]
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Disable tests hardcoding function call counts specific to Python versions.
|
|
||||||
epytest --ignore test/aaa_profiling ${deselect[@]/#/--deselect } \
|
|
||||||
-n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
|
|
||||||
}
|
|
||||||
|
|
||||||
python_install_all() {
|
|
||||||
if use examples; then
|
|
||||||
docompress -x "/usr/share/doc/${PF}/examples"
|
|
||||||
dodoc -r examples
|
|
||||||
fi
|
|
||||||
|
|
||||||
distutils-r1_python_install_all
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
optfeature "MySQL support" dev-python/mysqlclient dev-python/pymysql \
|
|
||||||
dev-python/mysql-connector-python
|
|
||||||
optfeature "mssql support" dev-python/pymssql
|
|
||||||
optfeature "postgresql support" dev-python/psycopg:2
|
|
||||||
}
|
|
@ -1,85 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( pypy3 python3_{8..10} )
|
|
||||||
PYTHON_REQ_USE="sqlite?"
|
|
||||||
|
|
||||||
inherit distutils-r1 multiprocessing optfeature
|
|
||||||
|
|
||||||
MY_PN="SQLAlchemy"
|
|
||||||
MY_P="${MY_PN}-${PV/_beta/b}"
|
|
||||||
|
|
||||||
DESCRIPTION="Python SQL toolkit and Object Relational Mapper"
|
|
||||||
HOMEPAGE="https://www.sqlalchemy.org/ https://pypi.org/project/SQLAlchemy/"
|
|
||||||
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
|
||||||
IUSE="examples +sqlite test"
|
|
||||||
|
|
||||||
# Use pytest-xdist to speed up tests
|
|
||||||
BDEPEND="
|
|
||||||
test? (
|
|
||||||
$(python_gen_impl_dep sqlite)
|
|
||||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
distutils_enable_tests pytest
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# remove optional/partial dep on greenlet, greenlet is not very portable
|
|
||||||
sed -i -e '/greenlet/d' setup.cfg || die
|
|
||||||
|
|
||||||
distutils-r1_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
local deselect=()
|
|
||||||
if [[ ${EPYTHON} != pypy3 ]] &&
|
|
||||||
! has_version -b "dev-python/greenlet[${PYTHON_USEDEP}]"
|
|
||||||
then
|
|
||||||
# skip tests requiring greenlet
|
|
||||||
deselect+=(
|
|
||||||
test/base/test_concurrency_py3k.py::TestAsyncAdaptedQueue::test_lazy_init
|
|
||||||
test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_async_error
|
|
||||||
test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_await_fallback_error
|
|
||||||
test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_await_only_error
|
|
||||||
test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_await_only_no_greenlet
|
|
||||||
test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_contextvars
|
|
||||||
test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_ok
|
|
||||||
test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_propagate_cancelled
|
|
||||||
test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_require_await
|
|
||||||
test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_sync_error
|
|
||||||
test/ext/asyncio/test_engine_py3k.py::TextSyncDBAPI::test_sync_driver_execution
|
|
||||||
test/ext/asyncio/test_engine_py3k.py::TextSyncDBAPI::test_sync_driver_run_sync
|
|
||||||
test/base/test_concurrency_py3k.py::TestAsyncAdaptedQueue::test_error_other_loop
|
|
||||||
test/engine/test_pool.py::PoolEventsTest::test_checkin_event_gc[True-_exclusions0]
|
|
||||||
test/engine/test_pool.py::QueuePoolTest::test_userspace_disconnectionerror_weakref_finalizer[True-_exclusions0]
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Disable tests hardcoding function call counts specific to Python versions.
|
|
||||||
epytest --ignore test/aaa_profiling ${deselect[@]/#/--deselect } \
|
|
||||||
-n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
|
|
||||||
}
|
|
||||||
|
|
||||||
python_install_all() {
|
|
||||||
if use examples; then
|
|
||||||
docompress -x "/usr/share/doc/${PF}/examples"
|
|
||||||
dodoc -r examples
|
|
||||||
fi
|
|
||||||
|
|
||||||
distutils-r1_python_install_all
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
optfeature "MySQL support" dev-python/mysqlclient dev-python/pymysql \
|
|
||||||
dev-python/mysql-connector-python
|
|
||||||
optfeature "mssql support" dev-python/pymssql
|
|
||||||
optfeature "postgresql support" dev-python/psycopg:2
|
|
||||||
}
|
|
@ -1,58 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( pypy3 python3_{8..10} )
|
|
||||||
PYTHON_REQ_USE="sqlite?"
|
|
||||||
|
|
||||||
inherit distutils-r1 multiprocessing optfeature
|
|
||||||
|
|
||||||
MY_PN="SQLAlchemy"
|
|
||||||
MY_P="${MY_PN}-${PV/_beta/b}"
|
|
||||||
|
|
||||||
DESCRIPTION="Python SQL toolkit and Object Relational Mapper"
|
|
||||||
HOMEPAGE="https://www.sqlalchemy.org/ https://pypi.org/project/SQLAlchemy/"
|
|
||||||
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
|
||||||
IUSE="examples +sqlite test"
|
|
||||||
|
|
||||||
BDEPEND="
|
|
||||||
test? (
|
|
||||||
$(python_gen_impl_dep sqlite)
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
distutils_enable_tests pytest
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# remove optional/partial dep on greenlet, greenlet is not very portable
|
|
||||||
sed -i -e '/greenlet/d' setup.cfg || die
|
|
||||||
|
|
||||||
distutils-r1_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
# Disable tests hardcoding function call counts specific to Python versions.
|
|
||||||
epytest --ignore test/aaa_profiling
|
|
||||||
}
|
|
||||||
|
|
||||||
python_install_all() {
|
|
||||||
if use examples; then
|
|
||||||
docompress -x "/usr/share/doc/${PF}/examples"
|
|
||||||
dodoc -r examples
|
|
||||||
fi
|
|
||||||
|
|
||||||
distutils-r1_python_install_all
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
optfeature "MySQL support" dev-python/mysqlclient dev-python/pymysql \
|
|
||||||
dev-python/mysql-connector-python
|
|
||||||
optfeature "mssql support" dev-python/pymssql
|
|
||||||
optfeature "postgresql support" dev-python/psycopg:2
|
|
||||||
}
|
|
@ -1,58 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( pypy3 python3_{8..10} )
|
|
||||||
PYTHON_REQ_USE="sqlite?"
|
|
||||||
|
|
||||||
inherit distutils-r1 optfeature
|
|
||||||
|
|
||||||
MY_PN="SQLAlchemy"
|
|
||||||
MY_P="${MY_PN}-${PV/_beta/b}"
|
|
||||||
|
|
||||||
DESCRIPTION="Python SQL toolkit and Object Relational Mapper"
|
|
||||||
HOMEPAGE="https://www.sqlalchemy.org/ https://pypi.org/project/SQLAlchemy/"
|
|
||||||
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
|
||||||
IUSE="examples +sqlite test"
|
|
||||||
|
|
||||||
BDEPEND="
|
|
||||||
test? (
|
|
||||||
$(python_gen_impl_dep sqlite)
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
distutils_enable_tests pytest
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# remove optional/partial dep on greenlet, greenlet is not very portable
|
|
||||||
sed -i -e '/greenlet/d' setup.cfg || die
|
|
||||||
|
|
||||||
distutils-r1_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
# Disable tests hardcoding function call counts specific to Python versions.
|
|
||||||
epytest --ignore test/aaa_profiling
|
|
||||||
}
|
|
||||||
|
|
||||||
python_install_all() {
|
|
||||||
if use examples; then
|
|
||||||
docompress -x "/usr/share/doc/${PF}/examples"
|
|
||||||
dodoc -r examples
|
|
||||||
fi
|
|
||||||
|
|
||||||
distutils-r1_python_install_all
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
optfeature "MySQL support" dev-python/mysqlclient dev-python/pymysql \
|
|
||||||
dev-python/mysql-connector-python
|
|
||||||
optfeature "mssql support" dev-python/pymssql
|
|
||||||
optfeature "postgresql support" dev-python/psycopg:2
|
|
||||||
}
|
|
@ -1 +1,2 @@
|
|||||||
DIST zope.testrunner-5.3.0.tar.gz 141406 BLAKE2B f3434e9f22514fffe912385f61d163e42ba1dcd9e9d3f2b3f1d504b608c73804fa38b14a5ed1bf288b75b98ef106024a27de925c404ad67be6acc6c1d6c8f06d SHA512 6fd9375c7b58847868aaf04e85722fcc2b1fe7a8e4ae2ec9103dcb091e6f837d649557ba014146876f814345240b20863bf1584f32212b0b1b28c38ed343b87a
|
DIST zope.testrunner-5.3.0.tar.gz 141406 BLAKE2B f3434e9f22514fffe912385f61d163e42ba1dcd9e9d3f2b3f1d504b608c73804fa38b14a5ed1bf288b75b98ef106024a27de925c404ad67be6acc6c1d6c8f06d SHA512 6fd9375c7b58847868aaf04e85722fcc2b1fe7a8e4ae2ec9103dcb091e6f837d649557ba014146876f814345240b20863bf1584f32212b0b1b28c38ed343b87a
|
||||||
|
DIST zope.testrunner-5.4.0.tar.gz 132150 BLAKE2B b8367e9d4ac32923099424e0c7a3f00ddb540f966eae05ebced6a6d49ac698e2a07449bb25d26d59d57ef00d3040c8a5f0c03cc53878c01ecfb1cde671780fc8 SHA512 c8c6cbbd2cc352f52068ada3c23305cc270736aaa20c14f7c218bc40d6873cb8e8ecb4e2e1601b8833d32e91ac87e0067515458b96194cfc23b6d02cb71613f2
|
||||||
|
@ -0,0 +1,38 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} pypy3 )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
MY_PN=${PN/-/.}
|
||||||
|
MY_P=${MY_PN}-${PV}
|
||||||
|
|
||||||
|
DESCRIPTION="Zope testrunner script"
|
||||||
|
HOMEPAGE="https://pypi.org/project/zope.testrunner/ https://github.com/zopefoundation/zope.testrunner"
|
||||||
|
SRC_URI="mirror://pypi/${MY_PN::1}/${MY_PN}/${MY_P}.tar.gz"
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
|
LICENSE="ZPL"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-python/namespace-zope[${PYTHON_USEDEP}]
|
||||||
|
dev-python/six[${PYTHON_USEDEP}]
|
||||||
|
dev-python/zope-exceptions[${PYTHON_USEDEP}]
|
||||||
|
dev-python/zope-interface[${PYTHON_USEDEP}]"
|
||||||
|
BDEPEND="
|
||||||
|
test? ( dev-python/zope-testing[${PYTHON_USEDEP}] )"
|
||||||
|
|
||||||
|
distutils_enable_tests setup.py
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
|
||||||
|
# remove .pth files since dev-python/namespace-zope handles the ns
|
||||||
|
find "${D}" -name '*.pth' -delete || die
|
||||||
|
}
|
Binary file not shown.
@ -1,2 +1 @@
|
|||||||
DIST topgit-0.19.12.tar.gz 302492 BLAKE2B 5691823e58774883d33bc96e5d10b871a40224c97e3deb90f4fef051dbcecd6a7d3c979fe6b7e6c9aac64d485b9c4324b4d666a7ae64cb82cd325498d33e0cae SHA512 cb9245fbec7a4a15822a5b70d7052be200aa8b574b528dd929121597eb7dcec97532b0fd4d6a4d6bb63676194ed0ab2129e106fb88f63561187620ec431f9efb
|
|
||||||
DIST topgit-0.19.13.tar.gz 355721 BLAKE2B 0f70d7720d0ca2f7724fe5fa3bb100c7f812c0bb18fd9acb4897487d90f31da957bc0b4e47e9dcdd08594366fb31c4f46447cf78989f828f337edd8f8f231bf3 SHA512 8e477504c5f873651854c9412864c9dcb0ee35d0349b65e7c5d618a0add0fad3f749381edbe17195981bae3ff9f0e7323286abf7a5c6b744721ba2cc2a5d40d4
|
DIST topgit-0.19.13.tar.gz 355721 BLAKE2B 0f70d7720d0ca2f7724fe5fa3bb100c7f812c0bb18fd9acb4897487d90f31da957bc0b4e47e9dcdd08594366fb31c4f46447cf78989f828f337edd8f8f231bf3 SHA512 8e477504c5f873651854c9412864c9dcb0ee35d0349b65e7c5d618a0add0fad3f749381edbe17195981bae3ff9f0e7323286abf7a5c6b744721ba2cc2a5d40d4
|
||||||
|
@ -1,62 +0,0 @@
|
|||||||
From 3df81dacc84bc20471542855139c5b1948409412 Mon Sep 17 00:00:00 2001
|
|
||||||
From: "Azamat H. Hackimov" <azamat.hackimov@gmail.com>
|
|
||||||
Date: Wed, 26 Aug 2020 15:27:06 +0300
|
|
||||||
Subject: [PATCH] Rename $(T) to $(TESTSUITE)
|
|
||||||
|
|
||||||
$(T) is used in Gentoo for temp directory during builging package.
|
|
||||||
---
|
|
||||||
t/Makefile.mak | 8 ++++----
|
|
||||||
t/Makefile.sh | 6 +++---
|
|
||||||
2 files changed, 7 insertions(+), 7 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/t/Makefile.mak b/t/Makefile.mak
|
|
||||||
index bf8805c..73f6171 100644
|
|
||||||
--- a/t/Makefile.mak
|
|
||||||
+++ b/t/Makefile.mak
|
|
||||||
@@ -116,11 +116,11 @@ test: pre-clean TG-TEST-SETTINGS $(TEST_LINT) FORCE
|
|
||||||
$(Q)set -m && $(CACHE_SETUP_TTY) $(MAKE) $${GNO_PD_OPT} -f Makefile.mak aggregate-results-and-cleanup
|
|
||||||
|
|
||||||
prove: pre-clean TG-TEST-SETTINGS $(TEST_LINT) FORCE
|
|
||||||
- @echo "*** prove ***" && set -m && $(CACHE_SETUP) $(PROVE) --exec $(SHELL_PATH_SQ)'' $(TESTLIB_PROVE_OPTS) $(T) :: $(TESTLIB_TEST_OPTS)
|
|
||||||
+ @echo "*** prove ***" && set -m && $(CACHE_SETUP) $(PROVE) --exec $(SHELL_PATH_SQ)'' $(TESTLIB_PROVE_OPTS) $(TESTSUITE) :: $(TESTLIB_TEST_OPTS)
|
|
||||||
$(Q)$(NOCLEANCMT)$(MAKE) $${GNO_PD_OPT} -f Makefile.mak -s post-clean-except-prove-cache
|
|
||||||
|
|
||||||
-.PRECIOUS: $(T)
|
|
||||||
-$(T): FORCE
|
|
||||||
+.PRECIOUS: $(TESTSUITE)
|
|
||||||
+$(TESTSUITE): FORCE
|
|
||||||
@echo "*** $@ ***"; $(SHELL_PATH_SQ)'' $@ $(TESTLIB_TEST_OPTS)
|
|
||||||
|
|
||||||
# How to clean up
|
|
||||||
@@ -169,7 +169,7 @@ test-lint-filenames:
|
|
||||||
|
|
||||||
# Run the tests without using prove
|
|
||||||
|
|
||||||
-run-individual-tests: $(T)
|
|
||||||
+run-individual-tests: $(TESTSUITE)
|
|
||||||
|
|
||||||
aggregate-results-and-cleanup:
|
|
||||||
$(Q)set -m && ec=0 && $(SHELL_PATH_SQ)'' -c 'TESTLIB_TEST_PARENT_INT_ON_ERROR=$$$$ exec "$$@"' $(SHELL_PATH_SQ)'' \
|
|
||||||
diff --git a/t/Makefile.sh b/t/Makefile.sh
|
|
||||||
index ca2cf9c..dc94168 100644
|
|
||||||
--- a/t/Makefile.sh
|
|
||||||
+++ b/t/Makefile.sh
|
|
||||||
@@ -35,12 +35,12 @@ quotevar TEST_RESULTS_DIRECTORY TEST_RESULTS_DIRECTORY_SQ
|
|
||||||
|
|
||||||
v_wildcard ALLT 't[0-9][0-9][0-9][0-9]-*.sh'
|
|
||||||
v_sort ALLT $ALLT
|
|
||||||
-[ -n "$T" ] || T="$ALLT"
|
|
||||||
-[ -n "$LINTTESTS" ] || LINTTESTS="$T"
|
|
||||||
+[ -n "$TESTSUITE" ] || TESTSUITE="$ALLT"
|
|
||||||
+[ -n "$LINTTESTS" ] || LINTTESTS="$TESTSUITE"
|
|
||||||
|
|
||||||
# Extra shell scripts to run through check-non-portable-shell.pl
|
|
||||||
# These will ALWAYS be "checked" whenever the test-lint target is made
|
|
||||||
-# By default all $(T) test files are checked so they don't need to be
|
|
||||||
+# By default all $(TESTSUITE) test files are checked so they don't need to be
|
|
||||||
# in this list
|
|
||||||
|
|
||||||
v_wildcard LINTSCRIPTS '*.sh'
|
|
||||||
--
|
|
||||||
2.26.2
|
|
||||||
|
|
@ -1,38 +0,0 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit bash-completion-r1
|
|
||||||
|
|
||||||
DESCRIPTION="A different patch queue manager"
|
|
||||||
HOMEPAGE="https://mackyle.github.io/topgit/topgit.html https://github.com/mackyle/topgit"
|
|
||||||
SRC_URI="https://github.com/mackyle/${PN}/archive/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 x86"
|
|
||||||
|
|
||||||
BDEPEND="sys-apps/sed
|
|
||||||
virtual/awk"
|
|
||||||
RDEPEND=">=dev-vcs/git-2.10.0"
|
|
||||||
IUSE="test"
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${PN}-${P}"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/${P}-Rename-T-to-TESTSUITE.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
# Needed because of "hardcoded" paths
|
|
||||||
emake prefix="/usr" sharedir="/usr/share/doc/${PF}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake DESTDIR="${D}" prefix="/usr" sharedir="/usr/share/doc/${PF}" install
|
|
||||||
|
|
||||||
newbashcomp contrib/tg-completion.bash tg
|
|
||||||
dodoc README
|
|
||||||
}
|
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,332 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
MOZ_ESR=
|
||||||
|
|
||||||
|
MOZ_PV=${PV}
|
||||||
|
MOZ_PV_SUFFIX=
|
||||||
|
if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
|
||||||
|
MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
|
||||||
|
|
||||||
|
# Convert the ebuild version to the upstream Mozilla version
|
||||||
|
MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
|
||||||
|
MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI
|
||||||
|
MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -n ${MOZ_ESR} ]] ; then
|
||||||
|
# ESR releases have slightly different version numbers
|
||||||
|
MOZ_PV="${MOZ_PV}esr"
|
||||||
|
fi
|
||||||
|
|
||||||
|
MOZ_PN="${PN%-bin}"
|
||||||
|
MOZ_P="${MOZ_PN}-${MOZ_PV}"
|
||||||
|
MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
|
||||||
|
MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
|
||||||
|
|
||||||
|
inherit desktop pax-utils xdg
|
||||||
|
|
||||||
|
MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}"
|
||||||
|
|
||||||
|
SRC_URI="amd64? ( ${MOZ_SRC_BASE_URI}/linux-x86_64/en-US/${MOZ_P}.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 )
|
||||||
|
x86? ( ${MOZ_SRC_BASE_URI}/linux-i686/en-US/${MOZ_P}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2 )"
|
||||||
|
|
||||||
|
DESCRIPTION="Thunderbird Mail Client"
|
||||||
|
HOMEPAGE="https://www.thunderbird.net/"
|
||||||
|
|
||||||
|
KEYWORDS="-* amd64 x86"
|
||||||
|
SLOT="0/$(ver_cut 1)"
|
||||||
|
LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
|
||||||
|
IUSE="+alsa +ffmpeg +pulseaudio selinux wayland"
|
||||||
|
|
||||||
|
RESTRICT="strip"
|
||||||
|
|
||||||
|
BDEPEND="app-arch/unzip
|
||||||
|
alsa? (
|
||||||
|
!pulseaudio? (
|
||||||
|
dev-util/patchelf
|
||||||
|
)
|
||||||
|
)"
|
||||||
|
|
||||||
|
CDEPEND="alsa? (
|
||||||
|
!pulseaudio? (
|
||||||
|
media-sound/apulse
|
||||||
|
)
|
||||||
|
)"
|
||||||
|
|
||||||
|
DEPEND="${CDEPEND}"
|
||||||
|
|
||||||
|
RDEPEND="${CDEPEND}
|
||||||
|
dev-libs/atk
|
||||||
|
dev-libs/dbus-glib
|
||||||
|
>=dev-libs/glib-2.26:2
|
||||||
|
media-libs/fontconfig
|
||||||
|
>=media-libs/freetype-2.4.10
|
||||||
|
sys-apps/dbus
|
||||||
|
virtual/freedesktop-icon-theme
|
||||||
|
>=x11-libs/cairo-1.10[X]
|
||||||
|
x11-libs/gdk-pixbuf
|
||||||
|
>=x11-libs/gtk+-3.11:3[wayland?]
|
||||||
|
x11-libs/libxcb
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libXcomposite
|
||||||
|
x11-libs/libXcursor
|
||||||
|
x11-libs/libXdamage
|
||||||
|
x11-libs/libXext
|
||||||
|
x11-libs/libXfixes
|
||||||
|
x11-libs/libXi
|
||||||
|
x11-libs/libXrender
|
||||||
|
x11-libs/libXt
|
||||||
|
>=x11-libs/pango-1.22.0
|
||||||
|
ffmpeg? ( media-video/ffmpeg )
|
||||||
|
pulseaudio? ( media-sound/pulseaudio )
|
||||||
|
selinux? ( sec-policy/selinux-mozilla )
|
||||||
|
"
|
||||||
|
|
||||||
|
QA_PREBUILT="opt/${MOZ_PN}/*"
|
||||||
|
|
||||||
|
MOZ_LANGS=(
|
||||||
|
af ar ast be bg br ca cak cs cy da de dsb
|
||||||
|
el en-CA en-GB en-US es-AR es-ES et eu
|
||||||
|
fi fr fy-NL ga-IE gd gl he hr hsb hu
|
||||||
|
id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO
|
||||||
|
pa-IN pl pt-BR pt-PT rm ro ru
|
||||||
|
sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW
|
||||||
|
)
|
||||||
|
|
||||||
|
mozilla_set_globals() {
|
||||||
|
# https://bugs.gentoo.org/587334
|
||||||
|
local MOZ_TOO_REGIONALIZED_FOR_L10N=(
|
||||||
|
fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE
|
||||||
|
)
|
||||||
|
|
||||||
|
local lang xflag
|
||||||
|
for lang in "${MOZ_LANGS[@]}" ; do
|
||||||
|
# en and en_US are handled internally
|
||||||
|
if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
# strip region subtag if $lang is in the list
|
||||||
|
if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
|
||||||
|
xflag=${lang%%-*}
|
||||||
|
else
|
||||||
|
xflag=${lang}
|
||||||
|
fi
|
||||||
|
|
||||||
|
SRC_URI+=" l10n_${xflag/[_@]/-}? ("
|
||||||
|
SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi"
|
||||||
|
SRC_URI+=" )"
|
||||||
|
IUSE+=" l10n_${xflag/[_@]/-}"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
mozilla_set_globals
|
||||||
|
|
||||||
|
moz_install_xpi() {
|
||||||
|
debug-print-function ${FUNCNAME} "$@"
|
||||||
|
|
||||||
|
if [[ ${#} -lt 2 ]] ; then
|
||||||
|
die "${FUNCNAME} requires at least two arguments"
|
||||||
|
fi
|
||||||
|
|
||||||
|
local DESTDIR=${1}
|
||||||
|
shift
|
||||||
|
|
||||||
|
insinto "${DESTDIR}"
|
||||||
|
|
||||||
|
local emid xpi_file xpi_tmp_dir
|
||||||
|
for xpi_file in "${@}" ; do
|
||||||
|
emid=
|
||||||
|
xpi_tmp_dir=$(mktemp -d --tmpdir="${T}")
|
||||||
|
|
||||||
|
# Unpack XPI
|
||||||
|
unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die
|
||||||
|
|
||||||
|
# Determine extension ID
|
||||||
|
if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then
|
||||||
|
emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf")
|
||||||
|
[[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf"
|
||||||
|
elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then
|
||||||
|
emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json")
|
||||||
|
[[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json"
|
||||||
|
else
|
||||||
|
die "failed to determine extension id"
|
||||||
|
fi
|
||||||
|
|
||||||
|
einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..."
|
||||||
|
newins "${xpi_file}" "${emid}.xpi"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
local _lp_dir="${WORKDIR}/language_packs"
|
||||||
|
local _src_file
|
||||||
|
|
||||||
|
mkdir "${S}" || die
|
||||||
|
|
||||||
|
if [[ ! -d "${_lp_dir}" ]] ; then
|
||||||
|
mkdir "${_lp_dir}" || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
for _src_file in ${A} ; do
|
||||||
|
if [[ ${_src_file} == *.xpi ]]; then
|
||||||
|
cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!"
|
||||||
|
else
|
||||||
|
MY_SRC_FILE=${_src_file}
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
# Set MOZILLA_FIVE_HOME
|
||||||
|
local MOZILLA_FIVE_HOME="/opt/${MOZ_PN}"
|
||||||
|
|
||||||
|
dodir /opt
|
||||||
|
pushd "${ED}"/opt &>/dev/null || die
|
||||||
|
unpack "${MY_SRC_FILE}"
|
||||||
|
popd &>/dev/null || die
|
||||||
|
|
||||||
|
pax-mark m \
|
||||||
|
"${ED}${MOZILLA_FIVE_HOME}"/${MOZ_PN} \
|
||||||
|
"${ED}${MOZILLA_FIVE_HOME}"/${MOZ_PN}-bin \
|
||||||
|
"${ED}${MOZILLA_FIVE_HOME}"/plugin-container
|
||||||
|
|
||||||
|
# Patch alsa support
|
||||||
|
local apulselib=
|
||||||
|
if use alsa && ! use pulseaudio ; then
|
||||||
|
apulselib="${EPREFIX}/usr/$(get_libdir)/apulse"
|
||||||
|
patchelf --set-rpath "${apulselib}" "${ED}${MOZILLA_FIVE_HOME}/libxul.so" || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Install policy (currently only used to disable application updates)
|
||||||
|
insinto "${MOZILLA_FIVE_HOME}/distribution"
|
||||||
|
newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
|
||||||
|
|
||||||
|
# Install system-wide preferences
|
||||||
|
local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref"
|
||||||
|
insinto "${PREFS_DIR}"
|
||||||
|
newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js
|
||||||
|
|
||||||
|
local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
|
||||||
|
|
||||||
|
# Install language packs
|
||||||
|
local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') )
|
||||||
|
if [[ -n "${langpacks}" ]] ; then
|
||||||
|
moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Install icons
|
||||||
|
local icon_srcdir="${ED}/${MOZILLA_FIVE_HOME}/chrome/icons/default"
|
||||||
|
|
||||||
|
local icon size
|
||||||
|
for icon in "${icon_srcdir}"/default*.png ; do
|
||||||
|
size=${icon%.png}
|
||||||
|
size=${size##*/default}
|
||||||
|
|
||||||
|
if [[ ${size} -eq 48 ]] ; then
|
||||||
|
newicon "${icon}" ${PN}.png
|
||||||
|
fi
|
||||||
|
|
||||||
|
newicon -s ${size} "${icon}" ${PN}.png
|
||||||
|
done
|
||||||
|
|
||||||
|
# Install menu
|
||||||
|
local app_name="Mozilla ${MOZ_PN^} (bin)"
|
||||||
|
local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop"
|
||||||
|
local desktop_filename="${PN}.desktop"
|
||||||
|
local exec_command="${PN}"
|
||||||
|
local icon="${PN}"
|
||||||
|
local use_wayland="false"
|
||||||
|
|
||||||
|
if use wayland ; then
|
||||||
|
use_wayland="true"
|
||||||
|
fi
|
||||||
|
|
||||||
|
cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die
|
||||||
|
|
||||||
|
sed -i \
|
||||||
|
-e "s:@NAME@:${app_name}:" \
|
||||||
|
-e "s:@EXEC@:${exec_command}:" \
|
||||||
|
-e "s:@ICON@:${icon}:" \
|
||||||
|
"${WORKDIR}/${PN}.desktop-template" \
|
||||||
|
|| die
|
||||||
|
|
||||||
|
newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}"
|
||||||
|
|
||||||
|
rm "${WORKDIR}/${PN}.desktop-template" || die
|
||||||
|
|
||||||
|
# Install wrapper script
|
||||||
|
[[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}"
|
||||||
|
newbin "${FILESDIR}/${PN}-r1.sh" ${PN}
|
||||||
|
|
||||||
|
# Update wrapper
|
||||||
|
sed -i \
|
||||||
|
-e "s:@PREFIX@:${EPREFIX}/usr:" \
|
||||||
|
-e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \
|
||||||
|
-e "s:@APULSELIB_DIR@:${apulselib}:" \
|
||||||
|
-e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \
|
||||||
|
"${ED}/usr/bin/${PN}" \
|
||||||
|
|| die
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
xdg_pkg_postinst
|
||||||
|
|
||||||
|
if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' \
|
||||||
|
|| ! has_version 'net-misc/curl'; then
|
||||||
|
einfo
|
||||||
|
einfo "For using the crashreporter, you need gnome-base/gconf,"
|
||||||
|
einfo "gnome-base/orbit and net-misc/curl emerged."
|
||||||
|
einfo
|
||||||
|
fi
|
||||||
|
|
||||||
|
use ffmpeg || ewarn "USE=-ffmpeg : HTML5 video will not render without media-video/ffmpeg installed"
|
||||||
|
|
||||||
|
local HAS_AUDIO=0
|
||||||
|
if use alsa || use pulseaudio; then
|
||||||
|
HAS_AUDIO=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ${HAS_AUDIO} -eq 0 ]] ; then
|
||||||
|
ewarn "USE=-pulseaudio & USE=-alsa : For audio please either set USE=pulseaudio or USE=alsa!"
|
||||||
|
fi
|
||||||
|
|
||||||
|
local show_doh_information
|
||||||
|
local show_shortcut_information
|
||||||
|
|
||||||
|
if [[ -z "${REPLACING_VERSIONS}" ]] ; then
|
||||||
|
# New install; Tell user that DoH is disabled by default
|
||||||
|
show_doh_information=yes
|
||||||
|
show_shortcut_information=no
|
||||||
|
else
|
||||||
|
local replacing_version
|
||||||
|
for replacing_version in ${REPLACING_VERSIONS} ; do
|
||||||
|
if ver_test "${replacing_version}" -lt 91.0 ; then
|
||||||
|
# Tell user that we no longer install a shortcut
|
||||||
|
# per supported display protocol
|
||||||
|
show_shortcut_information=yes
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -n "${show_doh_information}" ]] ; then
|
||||||
|
elog
|
||||||
|
elog "Note regarding Trusted Recursive Resolver aka DNS-over-HTTPS (DoH):"
|
||||||
|
elog "Due to privacy concerns (encrypting DNS might be a good thing, sending all"
|
||||||
|
elog "DNS traffic to Cloudflare by default is not a good idea and applications"
|
||||||
|
elog "should respect OS configured settings), \"network.trr.mode\" was set to 5"
|
||||||
|
elog "(\"Off by choice\") by default."
|
||||||
|
elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences."
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -n "${show_shortcut_information}" ]] ; then
|
||||||
|
elog
|
||||||
|
elog "Since ${PN}-91.0 we no longer install multiple shortcuts for"
|
||||||
|
elog "each supported display protocol. Instead we will only install"
|
||||||
|
elog "one generic Mozilla ${PN^} shortcut."
|
||||||
|
elog "If you still want to be able to select between running Mozilla ${PN^}"
|
||||||
|
elog "on X11 or Wayland, you have to re-create these shortcuts on your own."
|
||||||
|
fi
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue