parent
d6b4a19094
commit
9292f3570b
@ -0,0 +1,518 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="6"
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
JAVA_PKG_OPT_USE="collectd_plugins_java"
|
||||
|
||||
inherit autotools fcaps flag-o-matic java-pkg-opt-2 linux-info multilib perl-functions python-single-r1 systemd user
|
||||
|
||||
DESCRIPTION="Collects system statistics and provides mechanisms to store the values"
|
||||
|
||||
HOMEPAGE="https://collectd.org/"
|
||||
SRC_URI="${HOMEPAGE%/}/files/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~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
|
||||
# aquaero: Requires aerotools-ng/libaquaero5
|
||||
# barometer: Requires libi2c (i2c_smbus_read_i2c_block_data)
|
||||
# grpc: Requires libgrpc
|
||||
# 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)
|
||||
# pf: Requires BSD packet filter
|
||||
# pinba: Requires MySQL Pinba engine (http://pinba.org/)
|
||||
# tape: Requires libkstat (Solaris only)
|
||||
# write_mongodb: https://github.com/collectd/collectd/issues/492
|
||||
# write_riemann: Requires riemann-c-client
|
||||
# xmms: Requires libxmms (v1)
|
||||
# zone: Solaris only...
|
||||
COLLECTD_IMPOSSIBLE_PLUGINS="apple_sensors aquaero barometer grpc lpar mic
|
||||
netapp pf pinba tape write_kafka write_mongodb 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
|
||||
ceph cgroups chrony 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 hddtemp interface
|
||||
ipc ipmi iptables ipvs irq java lua load logfile log_logstash lvm
|
||||
madwifi match_empty_counter match_hashed match_regex match_timediff
|
||||
match_value mbmon 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 perl ping postgresql powerdns processes protocols
|
||||
python python redis routeros rrdcached rrdtool sensors serial
|
||||
sigrok smart snmp statsd swap syslog table tail tail_csv
|
||||
target_notification target_replace target_scale target_set tcpconns
|
||||
teamspeak2 ted thermal threshold tokyotyrant turbostat unixsock
|
||||
uptime users uuid varnish virt vmem vserver wireless write_graphite
|
||||
write_http write_kafka write_log write_redis write_sensu 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="
|
||||
dev-libs/libgcrypt:=
|
||||
dev-libs/libltdl:0=
|
||||
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_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_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? ( dev-lang/lua:0= )
|
||||
collectd_plugins_lvm? ( sys-fs/lvm2 )
|
||||
collectd_plugins_memcachec? ( dev-libs/libmemcached )
|
||||
collectd_plugins_modbus? ( dev-libs/libmodbus )
|
||||
collectd_plugins_mqtt? ( app-misc/mosquitto )
|
||||
collectd_plugins_mysql? ( >=virtual/mysql-5.0 )
|
||||
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_onewire? ( >=sys-fs/owfs-3.1:= )
|
||||
collectd_plugins_oracle? ( dev-db/oracle-instantclient-basic )
|
||||
collectd_plugins_perl? ( dev-lang/perl:=[ithreads] )
|
||||
collectd_plugins_ping? ( net-libs/liboping )
|
||||
collectd_plugins_postgresql? ( dev-db/postgresql:= )
|
||||
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_smart? ( dev-libs/libatasmart )
|
||||
collectd_plugins_snmp? ( net-analyzer/net-snmp )
|
||||
collectd_plugins_tokyotyrant? ( net-misc/tokyotyrant )
|
||||
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_redis? ( dev-libs/hiredis:= )
|
||||
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:= )
|
||||
)"
|
||||
|
||||
# Enforcing <=sys-kernel/linux-headers-4.4 due to #577846
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
collectd_plugins_iptables? ( <=sys-kernel/linux-headers-4.4 )
|
||||
collectd_plugins_java? ( >=virtual/jdk-1.6 )
|
||||
virtual/pkgconfig"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
collectd_plugins_java? ( >=virtual/jre-1.6 )
|
||||
collectd_plugins_syslog? ( virtual/logger )
|
||||
selinux? ( sec-policy/selinux-collectd )"
|
||||
|
||||
REQUIRED_USE="
|
||||
collectd_plugins_python? ( ${PYTHON_REQUIRED_USE} )
|
||||
collectd_plugins_smart? ( udev )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-5.6.0-gentoo.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_python && python-single-r1_pkg_setup
|
||||
|
||||
enewgroup collectd
|
||||
enewuser collectd -1 -1 /var/lib/collectd collectd
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
# fix installdirs for perl, bug 444360
|
||||
sed -i -e 's/INSTALL_BASE=$(DESTDIR)$(prefix) //' bindings/Makefile.am || 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
|
||||
|
||||
if use collectd_plugins_java; then
|
||||
# Set javac -source and -target flags according to (R)DEPEND.
|
||||
sed -i -e "s/\$(JAVAC)/\0 $(java-pkg_javac-args)/g" bindings/java/Makefile.am || die
|
||||
fi
|
||||
|
||||
ebegin "Removing bundled libltdl"
|
||||
rm -rf libltdl || die
|
||||
eend 0
|
||||
|
||||
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 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
|
||||
myconf+=" --disable-${plugin}"
|
||||
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 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
|
||||
|
||||
fowners root:collectd /etc/collectd.conf
|
||||
fperms u=rw,g=r,o= /etc/collectd.conf
|
||||
|
||||
dodoc AUTHORS ChangeLog NEWS README TODO
|
||||
|
||||
if use contrib ; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r contrib
|
||||
fi
|
||||
|
||||
keepdir /var/lib/${PN}
|
||||
fowners collectd:collectd /var/lib/${PN}
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd-r1" ${PN}
|
||||
newconfd "${FILESDIR}/${PN}.confd-r1" ${PN}
|
||||
systemd_newunit "contrib/systemd.${PN}.service" ${PN}.service
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||
|
||||
sed -i -e 's:^.*PIDFile "/var/run/collectd.pid":PIDFile "/run/collectd/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() {
|
||||
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')
|
||||
use collectd_plugins_turbostat && caps+=('CAP_SYS_RAWIO')
|
||||
|
||||
if use collectd_plugins_dns || use collectd_plugins_ping; then
|
||||
caps+=('CAP_NET_RAW')
|
||||
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="${EROOT}usr/lib/systemd/system/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
|
||||
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 contrib; then
|
||||
elog "The scripts in /usr/share/doc/${PF}/collection3 for generating graphs need dev-perl/HTML-Parser,"
|
||||
elog "dev-perl/config-general, dev-perl/regexp-common, and net-analyzer/rrdtool[perl] to be installed."
|
||||
fi
|
||||
}
|
@ -1,6 +1,10 @@
|
||||
AUX filebeat.confd 226 SHA256 9b20262588c18a31b486f9ee9ece7064423db9eaeb7e5e71f32981ad3471be89 SHA512 cab957749ca31b83a36d7126f1f638f3fa434f7f2f1bf7661b0a0ed20627dd3e9a78c75b60a8fef139962ff8c0095c7a71dd4f7de3495a1f06a976e84296896d WHIRLPOOL dfdff628f33cc16e972440dd8929ff9f850e25537f492a216d766c161debad411b914b8c83f3069e9ac83879054acd86b81d6d72549a9f88d84d28e84c563cf0
|
||||
AUX filebeat.confd-r1 269 SHA256 c0de5c04228bc7eb683aacba029407238ff8ec66cc1dedb3decf16653791523a SHA512 89f2a8ead476750b3fd9a94dcc84311503907e78e66c70d151f27c7fdc8835e7bae6667a6aed0b6470a8f9b42c850396973fd09b1b6aec2d170e3774c8cfddff WHIRLPOOL aad29bbd4ba57dad89f002c2c2535aa0b9d61b7caf594345e95290de451eba99eb6015605fc705729ceaeaf1833c09527521535e53be7d8b09e310cea4492abe
|
||||
AUX filebeat.initd 1307 SHA256 d5452cb2a040929c0f947709236e14fce6da52a2137ccf420a11b440f63cb4ed SHA512 ea4c435a7d5c95c2eccd1b96461adaf0b83f228a0415e59ae9befd0d1cb2f08c1dca4f7639080cbd618da9c960fad8923fe5f9f153161897c6a60eec01d434f2 WHIRLPOOL 607d616ee98f05219522db84c1c88a1f2b7b52b27576bed9743658fd697378d006995ceec73953e96bdd82b3fa4e0b6783ccbfb0e5941c5394b0c01ff14672ae
|
||||
AUX filebeat.initd-r1 1577 SHA256 92a616e5b2278860d7e6e9502d0b0eb1a3a98b94e6b8274cb70ae42184d3e919 SHA512 4de569bb8cf378acf1ba08ae5bbdaa4dd81337809f58b2679003b6f7c97d5320a3c1a40478501b69f20c804e8cf713a86ab9bb3850531921d73784fac34f414d WHIRLPOOL 60056e8141cc8edd63d4aee628d0396ce7d813a9d8fc652c5eea9b1bd22a280cf4c46607dad693a3aa412d033e9729668e68f1b5aede36abcd33c087e0e4f617
|
||||
DIST filebeat-1.3.1.tar.gz 10225540 SHA256 1d8e41b42a0b2dd59403795ff07cbfd8a9a76477731c38122aa9242b47b054e0 SHA512 60f6d4ae93bb01e74311d7ccc3d367707f888f58898b89a0ea7512c96b6e1369edf7dc2afe3615df97e8c311629d9fc1e9fc2f1abe8edcbb5bc5bcf47c82107c WHIRLPOOL 608b825fa4dc99d792deb9d23672eea0e66318461adb944dc484d42edc3d3acb1cf1f65cd4024cf0437dd5e5ed088ff5b5aeec967f7efad03b82f259793410f0
|
||||
DIST filebeat-5.0.0.tar.gz 15736495 SHA256 3e6b7cf2ee5f52e78ae87ef04ab9dd49977c89f86a09416586896aeaea844e34 SHA512 0838fb5e04d2266b15a6f21ebf1109626b60591a9154f4bb11cde73ae127a7695defb1e238a115ab59e0a7441bd9fa5642d4eb924663f00467b715224a3fa076 WHIRLPOOL a2b39bccfb45a32a25de9ae32ad881cd79e7a854280d6eb17614f4c274e9f92d956f8b811e6ff6371d16e7d723a98c59e82906d90029a25d079b33089142df5f
|
||||
EBUILD filebeat-1.3.1.ebuild 956 SHA256 50e92f57a9eec13fb4a00bd5df2542be9d3fbee4eb03bce140710cfc9b7ee8d0 SHA512 b91c1de8236effa49f4e25d0452553fece4d70aaca9601511a9532168b212dec34c3bce4daeaafb600837b9682bc5fe53f274e64664763d30fdf2922e2b60f42 WHIRLPOOL aa3cdf0d592af59136d07100905a78d4b59207738f332868baa188810ba662e9b63724b2cc0a0b572e5be638a36c3e7429f30fc58ec469aeac58fcdd5f3bc365
|
||||
EBUILD filebeat-5.0.0.ebuild 1541 SHA256 72f9d039d959841931b8231e9e1a5b8808b3cdb1747226cc796862d70d356b26 SHA512 02480b731c702e4ccd4d1b544c3f6bcc495a6a228563b7ef216a0ab6482deeb011609912f12a8df476c69060cc0e0165464af687881fc019d55b8e1ddeb50538 WHIRLPOOL cda20444409035a6d088a3919c826820d45781280538b761acc0238d4385fffe54627505471c0bb56d4929651731abbe7f95f1e5e80f1027608767d79ded6a71
|
||||
MISC ChangeLog 704 SHA256 91681869c74d33f8f9491dbcb1da8c89547ca4dee09db374a236376bdc427629 SHA512 dead1c24775405b65b47e10a7689ced747a13de428e0540712a9aaaf35e3b95992c5bd1b50aa24b3a95286c54903d4159bb205730c4481c3a0cb8d592aac4868 WHIRLPOOL bed63f6f81d764c1af1bd3f4dad01da71e2e123a92d0ee34132d5f494b64f6b0d0a531aed0535fae1fdf94fc285512228e23fbec603cde41a0155da33c94a7de
|
||||
MISC metadata.xml 461 SHA256 94fffc864abb707e5594de973d0bf23fdf364533744acab01d2629e679967889 SHA512 903c43c9cf4b371e34afffd0b425086d5fba6f37af0d761fc0065d114dc843ea0dcdd439682e48749bdf2f9138bfc3dc6cfcc6490503daeb7a71ce5706a779d8 WHIRLPOOL b3e19ddf3062d2903cf3e86a726e82eaf5a3d7c9b247f33b92017a591fc598aace0b65f9d6acba5ed592f6f9d374447fa7b5d4931ffedb41adea057d37a5058c
|
||||
|
@ -0,0 +1,65 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Lightweight log shipper for Logstash and Elasticsearch"
|
||||
HOMEPAGE="https://www.elastic.co/products/beats"
|
||||
SRC_URI="https://github.com/elastic/beats/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND="dev-lang/go"
|
||||
RDEPEND="!app-admin/filebeat-bin"
|
||||
|
||||
ELASTIC="${WORKDIR}/src/github.com/elastic"
|
||||
BEATS="${ELASTIC}/beats"
|
||||
S="${BEATS}"
|
||||
|
||||
src_unpack() {
|
||||
mkdir -p "${ELASTIC}" || die
|
||||
unpack ${P}.tar.gz
|
||||
mv beats-${PV} "${BEATS}" || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd ${BEATS}/filebeat || die
|
||||
GOPATH="${WORKDIR}" emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
keepdir /var/{lib,log}/${PN}
|
||||
|
||||
fperms 0750 /var/{lib,log}/${PN}
|
||||
|
||||
newconfd "${FILESDIR}/${PN}.confd-r1" ${PN}
|
||||
newinitd "${FILESDIR}/${PN}.initd-r1" ${PN}
|
||||
|
||||
insinto "/usr/share/doc/${PF}/examples"
|
||||
doins ${PN}/{filebeat.yml,filebeat.full.yml}
|
||||
|
||||
insinto "/etc/${PN}"
|
||||
doins ${PN}/{filebeat.template.json,filebeat.template-es2x.json}
|
||||
|
||||
exeinto "/usr/share/${PN}"
|
||||
doexe libbeat/scripts/migrate_beat_config_1_x_to_5_0.py
|
||||
|
||||
dobin filebeat/filebeat
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -n "${REPLACING_VERSIONS}" ]]; then
|
||||
elog "Please read the migration guide at:"
|
||||
elog "https://www.elastic.co/guide/en/beats/libbeat/5.0/upgrading.html"
|
||||
elog ""
|
||||
elog "The migration script:"
|
||||
elog "${EROOT%/}/usr/share/filebeat/migrate_beat_config_1_x_to_5_0.py"
|
||||
elog ""
|
||||
fi
|
||||
|
||||
elog "Example configurations:"
|
||||
elog "${EROOT%/}/usr/share/doc/${PF}/examples"
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
# Run filebeat under this user/group
|
||||
#FILEBEAT_USER=""
|
||||
#FILEBEAT_GROUP=""
|
||||
|
||||
# Configuration path
|
||||
#FILEBEAT_CONFIG=""
|
||||
|
||||
# Path to data directory
|
||||
#FILEBEAT_DATADIR=""
|
||||
|
||||
# Path to log directory
|
||||
#FILEBEAT_LOGDIR=""
|
||||
|
||||
# Additional arguments passed to filebeat
|
||||
#FILEBEAT_OPTS=""
|
@ -0,0 +1,50 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
FILEBEAT_USER="${FILEBEAT_USER:-root}"
|
||||
FILEBEAT_GROUP="${FILEBEAT_GROUP:-root}"
|
||||
FILEBEAT_CONFIG="${FILEBEAT_CONFIG:-/etc/filebeat/filebeat.yml}"
|
||||
FILEBEAT_DATADIR="${FILEBEAT_DATADIR:-/var/lib/filebeat}"
|
||||
FILEBEAT_LOGDIR="${FILEBEAT_LOGDIR:-/var/log/filebeat}"
|
||||
FILEBEAT_OPTS="${FILEBEAT_OPTS:-}"
|
||||
|
||||
command="/usr/bin/filebeat"
|
||||
command_args="-c ${FILEBEAT_CONFIG} ${FILEBEAT_OPTS} -path.config $(dirname $FILEBEAT_CONFIG) \
|
||||
-path.data ${FILEBEAT_DATADIR} -path.home ${FILEBEAT_DATADIR} -path.logs ${FILEBEAT_LOGDIR}"
|
||||
extra_commands="checkconfig"
|
||||
command_background="true"
|
||||
start_stop_daemon_args="--user ${FILEBEAT_USER}:${FILEBEAT_GROUP} \
|
||||
--chdir ${FILEBEAT_DATADIR}"
|
||||
pidfile="/run/filebeat/filebeat.pid"
|
||||
|
||||
depend() {
|
||||
use net
|
||||
after elasticsearch
|
||||
}
|
||||
|
||||
checkconfig() {
|
||||
if [[ ! -e ${FILEBEAT_CONFIG} ]]; then
|
||||
eend "Please create a configuration file at ${FILEBEAT_CONFIG}"
|
||||
return 1
|
||||
fi
|
||||
|
||||
ebegin "Checking your configuration"
|
||||
${command} ${command_args} -configtest
|
||||
eend $? "Configuration error. Please fix your configuration files."
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkconfig || return 1
|
||||
|
||||
checkpath -d -o "${FILEBEAT_USER}":"${FILEBEAT_GROUP}" -m750 "$(dirname "${pidfile}")"
|
||||
checkpath -d -o "${FILEBEAT_USER}":"${FILEBEAT_GROUP}" -m750 "${FILEBEAT_DATADIR}"
|
||||
checkpath -d -o "${FILEBEAT_USER}":"${FILEBEAT_GROUP}" -m750 "${FILEBEAT_LOGDIR}"
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping filebeat"
|
||||
start-stop-daemon --stop \
|
||||
--pidfile=${pidfile} \
|
||||
--retry=TERM/5/KILL/5
|
||||
}
|
@ -0,0 +1,175 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
USE_RUBY="ruby21"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
|
||||
inherit elisp-common xemacs-elisp-common eutils user ruby-fakegem versionator
|
||||
|
||||
DESCRIPTION="A system automation and configuration management software."
|
||||
HOMEPAGE="http://puppetlabs.com/"
|
||||
SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
|
||||
IUSE="augeas diff doc emacs ldap rrdtool selinux shadow sqlite vim-syntax xemacs"
|
||||
RESTRICT="test"
|
||||
|
||||
ruby_add_rdepend "
|
||||
dev-ruby/hiera
|
||||
>=dev-ruby/rgen-0.6.5
|
||||
dev-ruby/json:=
|
||||
>=dev-ruby/facter-3.0.0
|
||||
augeas? ( dev-ruby/ruby-augeas )
|
||||
diff? ( dev-ruby/diff-lcs )
|
||||
doc? ( dev-ruby/rdoc )
|
||||
ldap? ( dev-ruby/ruby-ldap )
|
||||
shadow? ( dev-ruby/ruby-shadow )
|
||||
sqlite? ( dev-ruby/sqlite3 )
|
||||
virtual/ruby-ssl"
|
||||
|
||||
ruby_add_bdepend "
|
||||
test? (
|
||||
dev-ruby/mocha
|
||||
dev-ruby/rack
|
||||
dev-ruby/rspec-its
|
||||
)"
|
||||
# this should go in the above lists, but isn't because of test deps not being keyworded
|
||||
# dev-ruby/rspec-collection_matchers
|
||||
|
||||
DEPEND+=" ${DEPEND}
|
||||
emacs? ( virtual/emacs )
|
||||
xemacs? ( app-editors/xemacs )"
|
||||
RDEPEND+=" ${RDEPEND}
|
||||
rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
|
||||
selinux? (
|
||||
sys-libs/libselinux[ruby]
|
||||
sec-policy/selinux-puppet
|
||||
)
|
||||
vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 )
|
||||
>=app-portage/eix-0.18.0"
|
||||
|
||||
SITEFILE="50${PN}-mode-gentoo.el"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup puppet
|
||||
enewuser puppet -1 -1 /var/lib/puppet puppet
|
||||
}
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Avoid spec that require unpackaged json-schema.
|
||||
rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die
|
||||
|
||||
# can't be run within portage.
|
||||
epatch "${FILESDIR}/puppet-fix-tests-4.7.0.patch"
|
||||
|
||||
# Avoid specs that can only run in the puppet.git repository. This
|
||||
# should be narrowed down to the specific specs.
|
||||
rm spec/integration/parser/compiler_spec.rb || die
|
||||
|
||||
# Avoid failing spec that need further investigation.
|
||||
rm spec/unit/module_tool/metadata_spec.rb || die
|
||||
}
|
||||
|
||||
all_ruby_compile() {
|
||||
if use emacs ; then
|
||||
elisp-compile ext/emacs/puppet-mode.el
|
||||
fi
|
||||
|
||||
if use xemacs ; then
|
||||
# Create a separate version for xemacs to be able to install
|
||||
# emacs and xemacs in parallel.
|
||||
mkdir ext/xemacs
|
||||
cp ext/emacs/* ext/xemacs/
|
||||
xemacs-elisp-compile ext/xemacs/puppet-mode.el
|
||||
fi
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
each_fakegem_install
|
||||
# dosym "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${P}" "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${PN}"
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
# systemd stuffs
|
||||
insinto /usr/lib/systemd/system
|
||||
doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
|
||||
|
||||
# tmpfiles stuff
|
||||
insinto /usr/lib/tmpfiles.d
|
||||
newins "${FILESDIR}/tmpfiles.d" "puppet.conf"
|
||||
|
||||
# openrc init stuff
|
||||
newinitd "${FILESDIR}"/puppet.init-4.x puppet
|
||||
newinitd "${FILESDIR}"/puppetmaster.init-4.x puppetmaster
|
||||
newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster
|
||||
|
||||
keepdir /etc/puppetlabs/puppet/ssl
|
||||
|
||||
keepdir /var/lib/puppet/facts
|
||||
keepdir /var/lib/puppet/files
|
||||
fowners -R puppet:puppet /var/lib/puppet
|
||||
|
||||
fperms 0750 /var/lib/puppet
|
||||
|
||||
fperms 0750 /etc/puppetlabs
|
||||
fperms 0750 /etc/puppetlabs/puppet
|
||||
fperms 0750 /etc/puppetlabs/puppet/ssl
|
||||
fowners -R :puppet /etc/puppetlabs
|
||||
fowners -R :puppet /var/lib/puppet
|
||||
|
||||
if use emacs ; then
|
||||
elisp-install ${PN} ext/emacs/puppet-mode.el*
|
||||
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||||
fi
|
||||
|
||||
if use xemacs ; then
|
||||
xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el*
|
||||
xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||||
fi
|
||||
|
||||
if use ldap ; then
|
||||
insinto /etc/openldap/schema; doins ext/ldap/puppet.schema
|
||||
fi
|
||||
|
||||
# ext and examples files
|
||||
for f in $(find ext examples -type f) ; do
|
||||
docinto "$(dirname ${f})"; dodoc "${f}"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
|
||||
elog "cause puppet to hang while installing packages."
|
||||
elog
|
||||
elog "Portage Puppet module with Gentoo-specific resources:"
|
||||
elog "http://forge.puppetlabs.com/gentoo/portage"
|
||||
elog
|
||||
|
||||
if [ "$(get_major_version $REPLACING_VERSIONS)" = "3" ]; then
|
||||
elog
|
||||
elog "If you're upgrading from 3.x then please move everything in /etc/puppet to"
|
||||
elog "/etc/puppetlabs/puppet"
|
||||
elog "Also, puppet now uses config directories for modules and manifests."
|
||||
elog "See https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_agent.html"
|
||||
elog "and https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_server.html"
|
||||
elog "for more information."
|
||||
elog
|
||||
fi
|
||||
|
||||
use emacs && elisp-site-regen
|
||||
use xemacs && xemacs-elisp-site-regen
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
use xemacs && xemacs-elisp-site-regen
|
||||
}
|
@ -1,221 +0,0 @@
|
||||
diff --git a/tests/unit/auth_test.py b/tests/unit/auth_test.py
|
||||
index 84e8699..5acd6c9 100644
|
||||
--- a/tests/unit/auth_test.py
|
||||
+++ b/tests/unit/auth_test.py
|
||||
@@ -50,22 +50,6 @@ class LoadAuthTestCase(TestCase):
|
||||
ret = self.lauth.load_name(valid_eauth_load)
|
||||
format_call_mock.assert_has_calls((expected_ret,), any_order=True)
|
||||
|
||||
- def test_get_groups(self):
|
||||
- valid_eauth_load = {'username': 'test_user',
|
||||
- 'show_timeout': False,
|
||||
- 'test_password': '',
|
||||
- 'eauth': 'pam'}
|
||||
- with patch('salt.utils.format_call') as format_call_mock:
|
||||
- expected_ret = call('fake_groups_function_str', {
|
||||
- 'username': 'test_user',
|
||||
- 'test_password': '',
|
||||
- 'show_timeout': False,
|
||||
- 'eauth': 'pam'
|
||||
- }, expected_extra_kws=auth.AUTH_INTERNAL_KEYWORDS)
|
||||
- self.lauth.get_groups(valid_eauth_load)
|
||||
- format_call_mock.assert_has_calls((expected_ret,), any_order=True)
|
||||
-
|
||||
-
|
||||
@patch('zmq.Context', MagicMock())
|
||||
@patch('salt.payload.Serial.dumps', MagicMock())
|
||||
@patch('salt.master.tagify', MagicMock())
|
||||
diff --git a/tests/unit/modules/boto_secgroup_test.py b/tests/unit/modules/boto_secgroup_test.py
|
||||
index cc88568..07fd8ec 100644
|
||||
--- a/tests/unit/modules/boto_secgroup_test.py
|
||||
+++ b/tests/unit/modules/boto_secgroup_test.py
|
||||
@@ -192,30 +192,6 @@ class BotoSecgroupTestCase(TestCase):
|
||||
**conn_parameters)
|
||||
self.assertEqual(group_vpc.id, retrieved_group_id)
|
||||
|
||||
- @mock_ec2
|
||||
- def test_get_config_single_rule_group_name(self):
|
||||
- '''
|
||||
- tests return of 'config' when given group name. get_config returns an OrderedDict.
|
||||
- '''
|
||||
- group_name = _random_group_name()
|
||||
- ip_protocol = u'tcp'
|
||||
- from_port = 22
|
||||
- to_port = 22
|
||||
- cidr_ip = u'0.0.0.0/0'
|
||||
- rules_egress = [{'to_port': -1, 'from_port': -1, 'ip_protocol': u'-1', 'cidr_ip': u'0.0.0.0/0'}]
|
||||
-
|
||||
- conn = boto.ec2.connect_to_region(region, **boto_conn_parameters)
|
||||
- group = conn.create_security_group(name=group_name, description=group_name)
|
||||
- group.authorize(ip_protocol=ip_protocol, from_port=from_port, to_port=to_port, cidr_ip=cidr_ip)
|
||||
- # setup the expected get_config result
|
||||
- expected_get_config_result = OrderedDict([('name', group.name), ('group_id', group.id), ('owner_id', u'111122223333'),
|
||||
- ('description', group.description), ('tags', {}),
|
||||
- ('rules', [{'to_port': to_port, 'from_port': from_port,
|
||||
- 'ip_protocol': ip_protocol, 'cidr_ip': cidr_ip}]),
|
||||
- ('rules_egress', rules_egress)])
|
||||
- secgroup_get_config_result = boto_secgroup.get_config(group_id=group.id, **conn_parameters)
|
||||
- self.assertEqual(expected_get_config_result, secgroup_get_config_result)
|
||||
-
|
||||
@skipIf(True, 'test skipped due to error in moto return - fixed in '
|
||||
'https://github.com/spulec/moto/commit/cc0166964371f7b5247a49d45637a8f936ccbe6f')
|
||||
@mock_ec2
|
||||
diff --git a/tests/unit/modules/cron_test.py b/tests/unit/modules/cron_test.py
|
||||
index fd9b62d..8445471 100644
|
||||
--- a/tests/unit/modules/cron_test.py
|
||||
+++ b/tests/unit/modules/cron_test.py
|
||||
@@ -630,16 +630,6 @@ class PsTestCase(TestCase):
|
||||
def test_list_tab(self):
|
||||
self.assertDictEqual(STUB_SIMPLE_CRON_DICT, cron.list_tab('DUMMY_USER'))
|
||||
|
||||
- @patch('salt.modules.cron._write_cron_lines')
|
||||
- @patch('salt.modules.cron.list_tab', new=MagicMock(return_value=STUB_SIMPLE_CRON_DICT))
|
||||
- def test_set_special(self, write_cron_lines_mock):
|
||||
- expected_write_call = call('DUMMY_USER',
|
||||
- ['5 0 * * * /tmp/no_script.sh\n',
|
||||
- '# Lines below here are managed by Salt, do not edit\n',
|
||||
- '@hourly echo Hi!\n'])
|
||||
- ret = cron.set_special('DUMMY_USER', '@hourly', 'echo Hi!')
|
||||
- write_cron_lines_mock.assert_has_calls((expected_write_call,), any_order=True)
|
||||
-
|
||||
def test__get_cron_date_time(self):
|
||||
ret = cron._get_cron_date_time(minute=STUB_CRON_TIMESTAMP['minute'],
|
||||
hour=STUB_CRON_TIMESTAMP['hour'],
|
||||
diff --git a/tests/unit/modules/linux_sysctl_test.py b/tests/unit/modules/linux_sysctl_test.py
|
||||
index 89bea83..49851cb 100644
|
||||
--- a/tests/unit/modules/linux_sysctl_test.py
|
||||
+++ b/tests/unit/modules/linux_sysctl_test.py
|
||||
@@ -85,18 +85,6 @@ class LinuxSysctlTestCase(TestCase):
|
||||
'net.ipv4.ip_forward', 1), ret)
|
||||
|
||||
@patch('os.path.isfile', MagicMock(return_value=False))
|
||||
- def test_persist_no_conf_failure(self):
|
||||
- '''
|
||||
- Tests adding of config file failure
|
||||
- '''
|
||||
- with patch('salt.utils.fopen', mock_open()) as m_open:
|
||||
- helper_open = m_open()
|
||||
- helper_open.write.assertRaises(CommandExecutionError,
|
||||
- linux_sysctl.persist,
|
||||
- 'net.ipv4.ip_forward',
|
||||
- 1, config=None)
|
||||
-
|
||||
- @patch('os.path.isfile', MagicMock(return_value=False))
|
||||
@patch('os.path.exists', MagicMock(return_value=True))
|
||||
def test_persist_no_conf_success(self):
|
||||
'''
|
||||
diff --git a/tests/unit/modules/mac_sysctl_test.py b/tests/unit/modules/mac_sysctl_test.py
|
||||
index e90ec64..b2ea691 100644
|
||||
--- a/tests/unit/modules/mac_sysctl_test.py
|
||||
+++ b/tests/unit/modules/mac_sysctl_test.py
|
||||
@@ -67,18 +67,6 @@ class DarwinSysctlTestCase(TestCase):
|
||||
'net.inet.icmp.icmplim', 50), ret)
|
||||
|
||||
@patch('os.path.isfile', MagicMock(return_value=False))
|
||||
- def test_persist_no_conf_failure(self):
|
||||
- '''
|
||||
- Tests adding of config file failure
|
||||
- '''
|
||||
- with patch('salt.utils.fopen', mock_open()) as m_open:
|
||||
- helper_open = m_open()
|
||||
- helper_open.write.assertRaises(CommandExecutionError,
|
||||
- mac_sysctl.persist,
|
||||
- 'net.inet.icmp.icmplim',
|
||||
- 50, config=None)
|
||||
-
|
||||
- @patch('os.path.isfile', MagicMock(return_value=False))
|
||||
def test_persist_no_conf_success(self):
|
||||
'''
|
||||
Tests successful add of config file when previously not one
|
||||
diff --git a/tests/unit/modules/mount_test.py b/tests/unit/modules/mount_test.py
|
||||
index 9c4ad6f..bf00c8e 100644
|
||||
--- a/tests/unit/modules/mount_test.py
|
||||
+++ b/tests/unit/modules/mount_test.py
|
||||
@@ -102,23 +102,6 @@ class MountTestCase(TestCase):
|
||||
'opts': ['D', 'E', 'F'],
|
||||
'pass': 'H'}})
|
||||
|
||||
- def test_rm_fstab(self):
|
||||
- '''
|
||||
- Remove the mount point from the fstab
|
||||
- '''
|
||||
- mock_fstab = MagicMock(return_value={})
|
||||
- with patch.object(mount, 'fstab', mock_fstab):
|
||||
- with patch('salt.utils.fopen', mock_open()):
|
||||
- self.assertTrue(mount.rm_fstab('name', 'device'))
|
||||
-
|
||||
- mock_fstab = MagicMock(return_value={'name': 'name'})
|
||||
- with patch.object(mount, 'fstab', mock_fstab):
|
||||
- with patch('salt.utils.fopen', mock_open()) as m_open:
|
||||
- helper_open = m_open()
|
||||
- helper_open.write.assertRaises(CommandExecutionError,
|
||||
- mount.rm_fstab,
|
||||
- config=None)
|
||||
-
|
||||
def test_set_fstab(self):
|
||||
'''
|
||||
Tests to verify that this mount is represented in the fstab,
|
||||
@@ -143,22 +126,6 @@ class MountTestCase(TestCase):
|
||||
mock_open(read_data=MOCK_SHELL_FILE)):
|
||||
self.assertEqual(mount.set_fstab('A', 'B', 'C'), 'new')
|
||||
|
||||
- def test_rm_automaster(self):
|
||||
- '''
|
||||
- Remove the mount point from the auto_master
|
||||
- '''
|
||||
- mock = MagicMock(return_value={})
|
||||
- with patch.object(mount, 'automaster', mock):
|
||||
- self.assertTrue(mount.rm_automaster('name', 'device'))
|
||||
-
|
||||
- mock = MagicMock(return_value={'name': 'name'})
|
||||
- with patch.object(mount, 'fstab', mock):
|
||||
- with patch('salt.utils.fopen', mock_open()) as m_open:
|
||||
- helper_open = m_open()
|
||||
- helper_open.write.assertRaises(CommandExecutionError,
|
||||
- mount.rm_automaster,
|
||||
- 'name', 'device')
|
||||
-
|
||||
def test_set_automaster(self):
|
||||
'''
|
||||
Verify that this mount is represented in the auto_salt, change the mount
|
||||
diff --git a/tests/unit/modules/puppet_test.py b/tests/unit/modules/puppet_test.py
|
||||
index 02bc2e1..249efcb 100644
|
||||
--- a/tests/unit/modules/puppet_test.py
|
||||
+++ b/tests/unit/modules/puppet_test.py
|
||||
@@ -72,24 +72,6 @@ class PuppetTestCase(TestCase):
|
||||
|
||||
self.assertFalse(puppet.enable())
|
||||
|
||||
- def test_disable(self):
|
||||
- '''
|
||||
- Test to disable the puppet agent
|
||||
- '''
|
||||
- mock_lst = MagicMock(return_value=[])
|
||||
- with patch.dict(puppet.__salt__, {'cmd.run': mock_lst}):
|
||||
- mock = MagicMock(side_effect=[True, False])
|
||||
- with patch.object(os.path, 'isfile', mock):
|
||||
- self.assertFalse(puppet.disable())
|
||||
-
|
||||
- with patch('salt.utils.fopen', mock_open()):
|
||||
- self.assertTrue(puppet.disable())
|
||||
-
|
||||
- with patch('salt.utils.fopen', mock_open()) as m_open:
|
||||
- helper_open = m_open()
|
||||
- helper_open.write.assertRaises(CommandExecutionError,
|
||||
- puppet.disable)
|
||||
-
|
||||
def test_status(self):
|
||||
'''
|
||||
Test to display puppet agent status
|
||||
@@ -144,11 +126,6 @@ class PuppetTestCase(TestCase):
|
||||
mock_open(read_data="resources: 1")):
|
||||
self.assertDictEqual(puppet.summary(), {'resources': 1})
|
||||
|
||||
- with patch('salt.utils.fopen', mock_open()) as m_open:
|
||||
- helper_open = m_open()
|
||||
- helper_open.write.assertRaises(CommandExecutionError,
|
||||
- puppet.summary)
|
||||
-
|
||||
def test_plugin_sync(self):
|
||||
'''
|
||||
Test to runs a plugin synch between the puppet master and agent
|
@ -1,109 +0,0 @@
|
||||
diff --git a/tests/unit/modules/linux_sysctl_test.py b/tests/unit/modules/linux_sysctl_test.py
|
||||
index 89bea83..49851cb 100644
|
||||
--- a/tests/unit/modules/linux_sysctl_test.py
|
||||
+++ b/tests/unit/modules/linux_sysctl_test.py
|
||||
@@ -85,18 +85,6 @@ class LinuxSysctlTestCase(TestCase):
|
||||
'net.ipv4.ip_forward', 1), ret)
|
||||
|
||||
@patch('os.path.isfile', MagicMock(return_value=False))
|
||||
- def test_persist_no_conf_failure(self):
|
||||
- '''
|
||||
- Tests adding of config file failure
|
||||
- '''
|
||||
- with patch('salt.utils.fopen', mock_open()) as m_open:
|
||||
- helper_open = m_open()
|
||||
- helper_open.write.assertRaises(CommandExecutionError,
|
||||
- linux_sysctl.persist,
|
||||
- 'net.ipv4.ip_forward',
|
||||
- 1, config=None)
|
||||
-
|
||||
- @patch('os.path.isfile', MagicMock(return_value=False))
|
||||
@patch('os.path.exists', MagicMock(return_value=True))
|
||||
def test_persist_no_conf_success(self):
|
||||
'''
|
||||
diff --git a/tests/unit/modules/mac_sysctl_test.py b/tests/unit/modules/mac_sysctl_test.py
|
||||
index e90ec64..b2ea691 100644
|
||||
--- a/tests/unit/modules/mac_sysctl_test.py
|
||||
+++ b/tests/unit/modules/mac_sysctl_test.py
|
||||
@@ -67,18 +67,6 @@ class DarwinSysctlTestCase(TestCase):
|
||||
'net.inet.icmp.icmplim', 50), ret)
|
||||
|
||||
@patch('os.path.isfile', MagicMock(return_value=False))
|
||||
- def test_persist_no_conf_failure(self):
|
||||
- '''
|
||||
- Tests adding of config file failure
|
||||
- '''
|
||||
- with patch('salt.utils.fopen', mock_open()) as m_open:
|
||||
- helper_open = m_open()
|
||||
- helper_open.write.assertRaises(CommandExecutionError,
|
||||
- mac_sysctl.persist,
|
||||
- 'net.inet.icmp.icmplim',
|
||||
- 50, config=None)
|
||||
-
|
||||
- @patch('os.path.isfile', MagicMock(return_value=False))
|
||||
def test_persist_no_conf_success(self):
|
||||
'''
|
||||
Tests successful add of config file when previously not one
|
||||
diff --git a/tests/unit/modules/mount_test.py b/tests/unit/modules/mount_test.py
|
||||
index 290c368..16918d8 100644
|
||||
--- a/tests/unit/modules/mount_test.py
|
||||
+++ b/tests/unit/modules/mount_test.py
|
||||
@@ -137,15 +137,6 @@ class MountTestCase(TestCase):
|
||||
with patch('salt.utils.fopen', mock_open()):
|
||||
self.assertTrue(mount.rm_fstab('name', 'device'))
|
||||
|
||||
- mock_fstab = MagicMock(return_value={'name': 'name'})
|
||||
- with patch.dict(mount.__grains__, {'kernel': ''}):
|
||||
- with patch.object(mount, 'fstab', mock_fstab):
|
||||
- with patch('salt.utils.fopen', mock_open()) as m_open:
|
||||
- helper_open = m_open()
|
||||
- helper_open.write.assertRaises(CommandExecutionError,
|
||||
- mount.rm_fstab,
|
||||
- config=None)
|
||||
-
|
||||
def test_set_fstab(self):
|
||||
'''
|
||||
Tests to verify that this mount is represented in the fstab,
|
||||
@@ -178,14 +169,6 @@ class MountTestCase(TestCase):
|
||||
with patch.object(mount, 'automaster', mock):
|
||||
self.assertTrue(mount.rm_automaster('name', 'device'))
|
||||
|
||||
- mock = MagicMock(return_value={'name': 'name'})
|
||||
- with patch.object(mount, 'fstab', mock):
|
||||
- with patch('salt.utils.fopen', mock_open()) as m_open:
|
||||
- helper_open = m_open()
|
||||
- helper_open.write.assertRaises(CommandExecutionError,
|
||||
- mount.rm_automaster,
|
||||
- 'name', 'device')
|
||||
-
|
||||
def test_set_automaster(self):
|
||||
'''
|
||||
Verify that this mount is represented in the auto_salt, change the mount
|
||||
diff --git a/tests/unit/modules/puppet_test.py b/tests/unit/modules/puppet_test.py
|
||||
index 02bc2e1..1fd915b 100644
|
||||
--- a/tests/unit/modules/puppet_test.py
|
||||
+++ b/tests/unit/modules/puppet_test.py
|
||||
@@ -85,11 +85,6 @@ class PuppetTestCase(TestCase):
|
||||
with patch('salt.utils.fopen', mock_open()):
|
||||
self.assertTrue(puppet.disable())
|
||||
|
||||
- with patch('salt.utils.fopen', mock_open()) as m_open:
|
||||
- helper_open = m_open()
|
||||
- helper_open.write.assertRaises(CommandExecutionError,
|
||||
- puppet.disable)
|
||||
-
|
||||
def test_status(self):
|
||||
'''
|
||||
Test to display puppet agent status
|
||||
@@ -144,11 +139,6 @@ class PuppetTestCase(TestCase):
|
||||
mock_open(read_data="resources: 1")):
|
||||
self.assertDictEqual(puppet.summary(), {'resources': 1})
|
||||
|
||||
- with patch('salt.utils.fopen', mock_open()) as m_open:
|
||||
- helper_open = m_open()
|
||||
- helper_open.write.assertRaises(CommandExecutionError,
|
||||
- puppet.summary)
|
||||
-
|
||||
def test_plugin_sync(self):
|
||||
'''
|
||||
Test to runs a plugin synch between the puppet master and agent
|
@ -1,28 +1,5 @@
|
||||
diff --git a/tests/unit/modules/boto_lambda_test.py b/tests/unit/modules/boto_lambda_test.py
|
||||
index 01ca245..722915b 100644
|
||||
--- a/tests/unit/modules/boto_lambda_test.py
|
||||
+++ b/tests/unit/modules/boto_lambda_test.py
|
||||
@@ -626,18 +626,6 @@ class BotoLambdaEventSourceMappingTestCase(BotoLambdaTestCaseBase, BotoLambdaTes
|
||||
**conn_parameters)
|
||||
self.assertTrue(result['deleted'])
|
||||
|
||||
- @skipIf(ON_SUSE, 'Skipping while debugging why the test suite hangs and bails on this test on opensuse')
|
||||
- def test_that_when_deleting_an_event_source_mapping_by_name_succeeds_the_delete_event_source_mapping_method_returns_true(self):
|
||||
- '''
|
||||
- tests True mapping deleted.
|
||||
- '''
|
||||
- self.conn.list_event_source_mappings.return_value = {'EventSourceMappings': [event_source_mapping_ret]}
|
||||
- result = boto_lambda.delete_event_source_mapping(
|
||||
- EventSourceArn=event_source_mapping_ret['EventSourceArn'],
|
||||
- FunctionName=event_source_mapping_ret['FunctionArn'],
|
||||
- **conn_parameters)
|
||||
- self.assertTrue(result['deleted'])
|
||||
-
|
||||
def test_that_when_deleting_an_event_source_mapping_without_identifier_the_delete_event_source_mapping_method_raises_saltinvocationexception(self):
|
||||
'''
|
||||
tests Deleting a mapping without identifier
|
||||
diff --git a/tests/unit/modules/inspect_collector_test.py b/tests/unit/modules/inspect_collector_test.py
|
||||
index 9d2fa3a..710bbd7 100644
|
||||
index 9d2fa3ada7..710bbd75a5 100644
|
||||
--- a/tests/unit/modules/inspect_collector_test.py
|
||||
+++ b/tests/unit/modules/inspect_collector_test.py
|
||||
@@ -36,28 +36,6 @@ class InspectorCollectorTestCase(TestCase):
|
@ -0,0 +1,32 @@
|
||||
diff --git a/tests/unit/conf_test.py b/tests/unit/conf_test.py
|
||||
index cce0023423..c1324f4a61 100644
|
||||
--- a/tests/unit/conf_test.py
|
||||
+++ b/tests/unit/conf_test.py
|
||||
@@ -140,6 +140,8 @@ class ConfTest(TestCase):
|
||||
commented out. This test loops through all of the files in that directory to check
|
||||
for any lines that are not commented or blank.
|
||||
'''
|
||||
+ if not os.path.exists(SAMPLE_CONF_DIR + 'cloud.profiles.d/'):
|
||||
+ return
|
||||
cloud_sample_files = os.listdir(SAMPLE_CONF_DIR + 'cloud.profiles.d/')
|
||||
for conf_file in cloud_sample_files:
|
||||
profile_conf = SAMPLE_CONF_DIR + 'cloud.profiles.d/' + conf_file
|
||||
@@ -158,6 +160,8 @@ class ConfTest(TestCase):
|
||||
commented out. This test loops through all of the files in that directory to check
|
||||
for any lines that are not commented or blank.
|
||||
'''
|
||||
+ if not os.path.exists(SAMPLE_CONF_DIR + 'cloud.providers.d/'):
|
||||
+ return
|
||||
cloud_sample_files = os.listdir(SAMPLE_CONF_DIR + 'cloud.providers.d/')
|
||||
for conf_file in cloud_sample_files:
|
||||
provider_conf = SAMPLE_CONF_DIR + 'cloud.providers.d/' + conf_file
|
||||
@@ -176,6 +180,9 @@ class ConfTest(TestCase):
|
||||
commented out. This test loops through all of the files in that directory to check
|
||||
for any lines that are not commented or blank.
|
||||
'''
|
||||
+ if not os.path.exists(SAMPLE_CONF_DIR + 'cloud.maps.d/'):
|
||||
+ return
|
||||
+
|
||||
cloud_sample_files = os.listdir(SAMPLE_CONF_DIR + 'cloud.maps.d/')
|
||||
for conf_file in cloud_sample_files:
|
||||
map_conf = SAMPLE_CONF_DIR + 'cloud.maps.d/' + conf_file
|
@ -1,135 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=(python2_7)
|
||||
|
||||
inherit eutils systemd distutils-r1
|
||||
|
||||
DESCRIPTION="Salt is a remote execution and configuration manager"
|
||||
HOMEPAGE="http://saltstack.org/"
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git"
|
||||
EGIT_BRANCH="develop"
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="cherrypy ldap libcloud libvirt gnupg keyring mako mongodb mysql neutron nova"
|
||||
IUSE+=" openssl portage profile redis selinux test timelib raet +zeromq vim-syntax"
|
||||
|
||||
RDEPEND="sys-apps/pciutils
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
>=dev-python/msgpack-0.3[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/markupsafe[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=www-servers/tornado-4.2.1[${PYTHON_USEDEP}]
|
||||
virtual/python-futures[${PYTHON_USEDEP}]
|
||||
libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] )
|
||||
mako? ( dev-python/mako[${PYTHON_USEDEP}] )
|
||||
ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] )
|
||||
libvirt? ( dev-python/libvirt-python[${PYTHON_USEDEP}] )
|
||||
openssl? (
|
||||
dev-libs/openssl:*[-bindist]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
)
|
||||
raet? (
|
||||
>=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/raet-0.6.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
zeromq? (
|
||||
>=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pycrypto-2.6.1[${PYTHON_USEDEP}]
|
||||
)
|
||||
cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] )
|
||||
mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] )
|
||||
portage? ( sys-apps/portage[${PYTHON_USEDEP}] )
|
||||
keyring? ( dev-python/keyring[${PYTHON_USEDEP}] )
|
||||
mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
|
||||
redis? ( dev-python/redis-py[${PYTHON_USEDEP}] )
|
||||
selinux? ( sec-policy/selinux-salt )
|
||||
timelib? ( dev-python/timelib[${PYTHON_USEDEP}] )
|
||||
nova? ( >=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}] )
|
||||
neutron? ( >=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}] )
|
||||
gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )
|
||||
profile? ( dev-python/yappi[${PYTHON_USEDEP}] )
|
||||
vim-syntax? ( app-vim/salt-vim )"
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
dev-python/pip[${PYTHON_USEDEP}]
|
||||
dev-python/virtualenv[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/timelib[${PYTHON_USEDEP}]
|
||||
>=dev-python/boto-2.32.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/moto-0.3.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/SaltTesting-2015.2.16[${PYTHON_USEDEP}]
|
||||
${RDEPEND}
|
||||
)"
|
||||
|
||||
DOCS=(README.rst AUTHORS)
|
||||
|
||||
REQUIRED_USE="|| ( raet zeromq )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2015.8.0-remove-buggy-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.5.5-auth-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.5.5-cron-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.5.5-remove-buggy-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.8.2-tmpdir.patch"
|
||||
"${FILESDIR}/${PN}-2015.8.10-remove-failing-boto-test.patch"
|
||||
)
|
||||
|
||||
python_prepare() {
|
||||
# this test fails because it trys to "pip install distribute"
|
||||
rm tests/unit/{modules,states}/zcbuildout_test.py \
|
||||
tests/unit/modules/{rh_ip,win_network,random_org}_test.py
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local svc
|
||||
USE_SETUPTOOLS=1 distutils-r1_python_install_all
|
||||
|
||||
for svc in minion master syndic api; do
|
||||
newinitd "${FILESDIR}"/${svc}-initd-4 salt-${svc}
|
||||
newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc}
|
||||
systemd_dounit "${FILESDIR}"/salt-${svc}.service
|
||||
done
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins -r conf/*
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local tempdir
|
||||
# testsuite likes lots of files
|
||||
ulimit -n 3072
|
||||
|
||||
# ${T} is too long a path for the tests to work
|
||||
tempdir="$(mktemp -dup /tmp salt-XXX)"
|
||||
mkdir "${T}/$(basename "${tempdir}")"
|
||||
|
||||
(
|
||||
cleanup() { rm -f "${tempdir}"; }
|
||||
trap cleanup EXIT
|
||||
|
||||
addwrite "${tempdir}"
|
||||
ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}"
|
||||
|
||||
USE_SETUPTOOLS=1 SHELL="/bin/bash" TMPDIR="${tempdir}" \
|
||||
${EPYTHON} tests/runtests.py \
|
||||
--unit-tests --no-report --verbose
|
||||
|
||||
) || die "testing failed"
|
||||
}
|
@ -1,135 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=(python2_7)
|
||||
|
||||
inherit eutils systemd distutils-r1
|
||||
|
||||
DESCRIPTION="Salt is a remote execution and configuration manager"
|
||||
HOMEPAGE="http://saltstack.org/"
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git"
|
||||
EGIT_BRANCH="develop"
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="cherrypy ldap libcloud libvirt gnupg keyring mako mongodb mysql neutron nova"
|
||||
IUSE+=" openssl portage profile redis selinux test timelib raet +zeromq vim-syntax"
|
||||
|
||||
RDEPEND="sys-apps/pciutils
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
>=dev-python/msgpack-0.3[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/markupsafe[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=www-servers/tornado-4.2.1[${PYTHON_USEDEP}]
|
||||
virtual/python-futures[${PYTHON_USEDEP}]
|
||||
libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] )
|
||||
mako? ( dev-python/mako[${PYTHON_USEDEP}] )
|
||||
ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] )
|
||||
libvirt? ( dev-python/libvirt-python[${PYTHON_USEDEP}] )
|
||||
openssl? (
|
||||
dev-libs/openssl:*[-bindist]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
)
|
||||
raet? (
|
||||
>=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/raet-0.6.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
zeromq? (
|
||||
>=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pycrypto-2.6.1[${PYTHON_USEDEP}]
|
||||
)
|
||||
cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] )
|
||||
mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] )
|
||||
portage? ( sys-apps/portage[${PYTHON_USEDEP}] )
|
||||
keyring? ( dev-python/keyring[${PYTHON_USEDEP}] )
|
||||
mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
|
||||
redis? ( dev-python/redis-py[${PYTHON_USEDEP}] )
|
||||
selinux? ( sec-policy/selinux-salt )
|
||||
timelib? ( dev-python/timelib[${PYTHON_USEDEP}] )
|
||||
nova? ( >=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}] )
|
||||
neutron? ( >=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}] )
|
||||
gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )
|
||||
profile? ( dev-python/yappi[${PYTHON_USEDEP}] )
|
||||
vim-syntax? ( app-vim/salt-vim )"
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
dev-python/pip[${PYTHON_USEDEP}]
|
||||
dev-python/virtualenv[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/timelib[${PYTHON_USEDEP}]
|
||||
>=dev-python/boto-2.32.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/moto-0.3.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/SaltTesting-2015.2.16[${PYTHON_USEDEP}]
|
||||
${RDEPEND}
|
||||
)"
|
||||
|
||||
DOCS=(README.rst AUTHORS)
|
||||
|
||||
REQUIRED_USE="|| ( raet zeromq )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2015.8.0-remove-buggy-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.5.5-auth-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.5.5-cron-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.5.5-remove-buggy-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.8.2-tmpdir.patch"
|
||||
"${FILESDIR}/${PN}-2015.8.10-remove-failing-boto-test.patch"
|
||||
)
|
||||
|
||||
python_prepare() {
|
||||
# this test fails because it trys to "pip install distribute"
|
||||
rm tests/unit/{modules,states}/zcbuildout_test.py \
|
||||
tests/unit/modules/{rh_ip,win_network,random_org}_test.py
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local svc
|
||||
USE_SETUPTOOLS=1 distutils-r1_python_install_all
|
||||
|
||||
for svc in minion master syndic api; do
|
||||
newinitd "${FILESDIR}"/${svc}-initd-4 salt-${svc}
|
||||
newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc}
|
||||
systemd_dounit "${FILESDIR}"/salt-${svc}.service
|
||||
done
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins -r conf/*
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local tempdir
|
||||
# testsuite likes lots of files
|
||||
ulimit -n 3072
|
||||
|
||||
# ${T} is too long a path for the tests to work
|
||||
tempdir="$(mktemp -dup /tmp salt-XXX)"
|
||||
mkdir "${T}/$(basename "${tempdir}")"
|
||||
|
||||
(
|
||||
cleanup() { rm -f "${tempdir}"; }
|
||||
trap cleanup EXIT
|
||||
|
||||
addwrite "${tempdir}"
|
||||
ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}"
|
||||
|
||||
USE_SETUPTOOLS=1 SHELL="/bin/bash" TMPDIR="${tempdir}" \
|
||||
${EPYTHON} tests/runtests.py \
|
||||
--unit-tests --no-report --verbose
|
||||
|
||||
) || die "testing failed"
|
||||
}
|
@ -1,133 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=(python2_7)
|
||||
|
||||
inherit eutils systemd distutils-r1
|
||||
|
||||
DESCRIPTION="Salt is a remote execution and configuration manager"
|
||||
HOMEPAGE="http://saltstack.org/"
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git"
|
||||
EGIT_BRANCH="develop"
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="cherrypy ldap libcloud libvirt gnupg keyring mako mongodb mysql neutron nova"
|
||||
IUSE+=" openssl profile redis selinux test timelib raet +zeromq vim-syntax"
|
||||
|
||||
RDEPEND="sys-apps/pciutils
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
>=dev-python/msgpack-0.3[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/markupsafe[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=www-servers/tornado-4.2.1[${PYTHON_USEDEP}]
|
||||
virtual/python-futures[${PYTHON_USEDEP}]
|
||||
libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] )
|
||||
mako? ( dev-python/mako[${PYTHON_USEDEP}] )
|
||||
ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] )
|
||||
libvirt? ( dev-python/libvirt-python[${PYTHON_USEDEP}] )
|
||||
openssl? (
|
||||
dev-libs/openssl:*[-bindist]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
)
|
||||
raet? (
|
||||
>=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/raet-0.6.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
zeromq? (
|
||||
>=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pycrypto-2.6.1[${PYTHON_USEDEP}]
|
||||
)
|
||||
cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] )
|
||||
mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] )
|
||||
keyring? ( dev-python/keyring[${PYTHON_USEDEP}] )
|
||||
mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
|
||||
redis? ( dev-python/redis-py[${PYTHON_USEDEP}] )
|
||||
selinux? ( sec-policy/selinux-salt )
|
||||
timelib? ( dev-python/timelib[${PYTHON_USEDEP}] )
|
||||
nova? ( >=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}] )
|
||||
neutron? ( >=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}] )
|
||||
gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )
|
||||
profile? ( dev-python/yappi[${PYTHON_USEDEP}] )
|
||||
vim-syntax? ( app-vim/salt-vim )"
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
dev-python/pip[${PYTHON_USEDEP}]
|
||||
dev-python/virtualenv[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/timelib[${PYTHON_USEDEP}]
|
||||
>=dev-python/boto-2.32.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/moto-0.3.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/SaltTesting-2015.2.16[${PYTHON_USEDEP}]
|
||||
${RDEPEND}
|
||||
)"
|
||||
|
||||
DOCS=(README.rst AUTHORS)
|
||||
|
||||
REQUIRED_USE="|| ( raet zeromq )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2015.8.0-remove-buggy-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.5.5-auth-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.5.5-cron-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.5.5-remove-buggy-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.8.2-tmpdir.patch"
|
||||
)
|
||||
|
||||
python_prepare() {
|
||||
# this test fails because it trys to "pip install distribute"
|
||||
rm tests/unit/{modules,states}/zcbuildout_test.py \
|
||||
tests/unit/modules/{rh_ip,win_network,random_org}_test.py
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local svc
|
||||
USE_SETUPTOOLS=1 distutils-r1_python_install_all
|
||||
|
||||
for svc in minion master syndic api; do
|
||||
newinitd "${FILESDIR}"/${svc}-initd-4 salt-${svc}
|
||||
newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc}
|
||||
systemd_dounit "${FILESDIR}"/salt-${svc}.service
|
||||
done
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins -r conf/*
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local tempdir
|
||||
# testsuite likes lots of files
|
||||
ulimit -n 3072
|
||||
|
||||
# ${T} is too long a path for the tests to work
|
||||
tempdir="$(mktemp -dup /tmp salt-XXX)"
|
||||
mkdir "${T}/$(basename "${tempdir}")"
|
||||
|
||||
(
|
||||
cleanup() { rm -f "${tempdir}"; }
|
||||
trap cleanup EXIT
|
||||
|
||||
addwrite "${tempdir}"
|
||||
ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}"
|
||||
|
||||
USE_SETUPTOOLS=1 SHELL="/bin/bash" TMPDIR="${tempdir}" \
|
||||
${EPYTHON} tests/runtests.py \
|
||||
--unit-tests --no-report --verbose
|
||||
|
||||
) || die "testing failed"
|
||||
}
|
@ -1,142 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=(python2_7)
|
||||
|
||||
inherit eutils systemd distutils-r1
|
||||
|
||||
DESCRIPTION="Salt is a remote execution and configuration manager"
|
||||
HOMEPAGE="http://saltstack.org/"
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git"
|
||||
EGIT_BRANCH="develop"
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="cherrypy ldap libcloud libvirt gnupg keyring mako mongodb mysql neutron nova"
|
||||
IUSE+=" openssl portage profile redis selinux test timelib raet +zeromq vim-syntax"
|
||||
|
||||
RDEPEND="sys-apps/pciutils
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
>=dev-python/msgpack-0.3[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/markupsafe[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=www-servers/tornado-4.2.1[${PYTHON_USEDEP}]
|
||||
virtual/python-futures[${PYTHON_USEDEP}]
|
||||
libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] )
|
||||
mako? ( dev-python/mako[${PYTHON_USEDEP}] )
|
||||
ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] )
|
||||
libvirt? ( dev-python/libvirt-python[${PYTHON_USEDEP}] )
|
||||
openssl? (
|
||||
dev-libs/openssl:*[-bindist]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
)
|
||||
raet? (
|
||||
>=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/raet-0.6.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
zeromq? (
|
||||
>=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pycrypto-2.6.1[${PYTHON_USEDEP}]
|
||||
)
|
||||
cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] )
|
||||
mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] )
|
||||
portage? ( sys-apps/portage[${PYTHON_USEDEP}] )
|
||||
keyring? ( dev-python/keyring[${PYTHON_USEDEP}] )
|
||||
mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
|
||||
redis? ( dev-python/redis-py[${PYTHON_USEDEP}] )
|
||||
selinux? ( sec-policy/selinux-salt )
|
||||
timelib? ( dev-python/timelib[${PYTHON_USEDEP}] )
|
||||
nova? ( >=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}] )
|
||||
neutron? ( >=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}] )
|
||||
gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )
|
||||
profile? ( dev-python/yappi[${PYTHON_USEDEP}] )
|
||||
vim-syntax? ( app-vim/salt-vim )"
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
dev-python/pip[${PYTHON_USEDEP}]
|
||||
dev-python/virtualenv[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/timelib[${PYTHON_USEDEP}]
|
||||
>=dev-python/boto-2.32.1[${PYTHON_USEDEP}]
|
||||
!x86? ( dev-python/boto3[${PYTHON_USEDEP}] )
|
||||
>=dev-python/moto-0.3.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/SaltTesting-2016.5.11[${PYTHON_USEDEP}]
|
||||
>=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}]
|
||||
${RDEPEND}
|
||||
)"
|
||||
|
||||
DOCS=(README.rst AUTHORS)
|
||||
|
||||
REQUIRED_USE="|| ( raet zeromq )"
|
||||
RESTRICT="x86? ( test )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2015.8.2-tmpdir.patch"
|
||||
"${FILESDIR}/${PN}-2016.3.1-dont-realpath-tmpdir.patch"
|
||||
"${FILESDIR}/${PN}-2016.3.1-broken-tests.patch"
|
||||
)
|
||||
|
||||
python_prepare() {
|
||||
# this test fails because it trys to "pip install distribute"
|
||||
rm tests/unit/{modules,states}/zcbuildout_test.py \
|
||||
tests/unit/modules/{rh_ip,win_network,random_org}_test.py
|
||||
|
||||
# apparently libcloud does not know about this?
|
||||
rm tests/unit/cloud/clouds/dimensiondata_test.py
|
||||
|
||||
# seriously? "ValueError: Missing (or not readable) key file: '/home/dany/PRIVKEY.pem'"
|
||||
rm tests/unit/cloud/clouds/gce_test.py
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local svc
|
||||
USE_SETUPTOOLS=1 distutils-r1_python_install_all
|
||||
|
||||
for svc in minion master syndic api; do
|
||||
newinitd "${FILESDIR}"/${svc}-initd-4 salt-${svc}
|
||||
newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc}
|
||||
systemd_dounit "${FILESDIR}"/salt-${svc}.service
|
||||
done
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins -r conf/*
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local tempdir
|
||||
# testsuite likes lots of files
|
||||
ulimit -n 3072
|
||||
|
||||
# ${T} is too long a path for the tests to work
|
||||
tempdir="$(mktemp -dup /tmp salt-XXX)"
|
||||
mkdir "${T}/$(basename "${tempdir}")"
|
||||
|
||||
(
|
||||
cleanup() { rm -f "${tempdir}"; }
|
||||
trap cleanup EXIT
|
||||
|
||||
addwrite "${tempdir}"
|
||||
ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}"
|
||||
|
||||
USE_SETUPTOOLS=1 SHELL="/bin/bash" \
|
||||
TMPDIR="${tempdir}" \
|
||||
${EPYTHON} tests/runtests.py \
|
||||
--unit-tests --no-report --verbose
|
||||
|
||||
) || die "testing failed"
|
||||
}
|
@ -1,142 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=(python2_7)
|
||||
|
||||
inherit eutils systemd distutils-r1
|
||||
|
||||
DESCRIPTION="Salt is a remote execution and configuration manager"
|
||||
HOMEPAGE="http://saltstack.org/"
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git"
|
||||
EGIT_BRANCH="develop"
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="cherrypy ldap libcloud libvirt gnupg keyring mako mongodb mysql neutron nova"
|
||||
IUSE+=" openssl portage profile redis selinux test timelib raet +zeromq vim-syntax"
|
||||
|
||||
RDEPEND="sys-apps/pciutils
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
>=dev-python/msgpack-0.3[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/markupsafe[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=www-servers/tornado-4.2.1[${PYTHON_USEDEP}]
|
||||
virtual/python-futures[${PYTHON_USEDEP}]
|
||||
libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] )
|
||||
mako? ( dev-python/mako[${PYTHON_USEDEP}] )
|
||||
ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] )
|
||||
libvirt? ( dev-python/libvirt-python[${PYTHON_USEDEP}] )
|
||||
openssl? (
|
||||
dev-libs/openssl:*[-bindist]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
)
|
||||
raet? (
|
||||
>=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/raet-0.6.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
zeromq? (
|
||||
>=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pycrypto-2.6.1[${PYTHON_USEDEP}]
|
||||
)
|
||||
cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] )
|
||||
mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] )
|
||||
portage? ( sys-apps/portage[${PYTHON_USEDEP}] )
|
||||
keyring? ( dev-python/keyring[${PYTHON_USEDEP}] )
|
||||
mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
|
||||
redis? ( dev-python/redis-py[${PYTHON_USEDEP}] )
|
||||
selinux? ( sec-policy/selinux-salt )
|
||||
timelib? ( dev-python/timelib[${PYTHON_USEDEP}] )
|
||||
nova? ( >=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}] )
|
||||
neutron? ( >=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}] )
|
||||
gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )
|
||||
profile? ( dev-python/yappi[${PYTHON_USEDEP}] )
|
||||
vim-syntax? ( app-vim/salt-vim )"
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
dev-python/pip[${PYTHON_USEDEP}]
|
||||
dev-python/virtualenv[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/timelib[${PYTHON_USEDEP}]
|
||||
>=dev-python/boto-2.32.1[${PYTHON_USEDEP}]
|
||||
!x86? ( dev-python/boto3[${PYTHON_USEDEP}] )
|
||||
>=dev-python/moto-0.3.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/SaltTesting-2016.5.11[${PYTHON_USEDEP}]
|
||||
>=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}]
|
||||
${RDEPEND}
|
||||
)"
|
||||
|
||||
DOCS=(README.rst AUTHORS)
|
||||
|
||||
REQUIRED_USE="|| ( raet zeromq )"
|
||||
RESTRICT="x86? ( test )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2015.8.2-tmpdir.patch"
|
||||
"${FILESDIR}/${PN}-2016.3.1-dont-realpath-tmpdir.patch"
|
||||
"${FILESDIR}/${PN}-2016.3.2-broken-tests.patch"
|
||||
)
|
||||
|
||||
python_prepare() {
|
||||
# this test fails because it trys to "pip install distribute"
|
||||
rm tests/unit/{modules,states}/zcbuildout_test.py \
|
||||
tests/unit/modules/{rh_ip,win_network,random_org}_test.py
|
||||
|
||||
# apparently libcloud does not know about this?
|
||||
rm tests/unit/cloud/clouds/dimensiondata_test.py
|
||||
|
||||
# seriously? "ValueError: Missing (or not readable) key file: '/home/dany/PRIVKEY.pem'"
|
||||
rm tests/unit/cloud/clouds/gce_test.py
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local svc
|
||||
USE_SETUPTOOLS=1 distutils-r1_python_install_all
|
||||
|
||||
for svc in minion master syndic api; do
|
||||
newinitd "${FILESDIR}"/${svc}-initd-4 salt-${svc}
|
||||
newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc}
|
||||
systemd_dounit "${FILESDIR}"/salt-${svc}.service
|
||||
done
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins -r conf/*
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local tempdir
|
||||
# testsuite likes lots of files
|
||||
ulimit -n 3072
|
||||
|
||||
# ${T} is too long a path for the tests to work
|
||||
tempdir="$(mktemp -dup /tmp salt-XXX)"
|
||||
mkdir "${T}/$(basename "${tempdir}")"
|
||||
|
||||
(
|
||||
cleanup() { rm -f "${tempdir}"; }
|
||||
trap cleanup EXIT
|
||||
|
||||
addwrite "${tempdir}"
|
||||
ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}"
|
||||
|
||||
USE_SETUPTOOLS=1 SHELL="/bin/bash" \
|
||||
TMPDIR="${tempdir}" \
|
||||
${EPYTHON} tests/runtests.py \
|
||||
--unit-tests --no-report --verbose
|
||||
|
||||
) || die "testing failed"
|
||||
}
|
@ -0,0 +1,408 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
VIM_VERSION="8.0"
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
PYTHON_REQ_USE=threads
|
||||
inherit eutils vim-doc flag-o-matic fdo-mime gnome2-utils versionator bash-completion-r1 prefix python-r1
|
||||
|
||||
if [[ ${PV} == 9999* ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/vim/vim.git"
|
||||
EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV}
|
||||
else
|
||||
SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz
|
||||
https://dev.gentoo.org/~radhermit/vim/vim-8.0.0106-gentoo-patches.tar.bz2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
|
||||
fi
|
||||
|
||||
DESCRIPTION="GUI version of the Vim text editor"
|
||||
HOMEPAGE="http://www.vim.org/ https://github.com/vim/vim"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="vim"
|
||||
IUSE="acl aqua cscope debug gnome gtk gtk3 lua luajit motif neXt netbeans nls perl python racket ruby selinux session tcl"
|
||||
REQUIRED_USE="
|
||||
luajit? ( lua )
|
||||
python? (
|
||||
|| ( $(python_gen_useflags '*') )
|
||||
?? ( $(python_gen_useflags 'python2*') )
|
||||
?? ( $(python_gen_useflags 'python3*') )
|
||||
)
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
~app-editors/vim-core-${PV}
|
||||
>=app-eselect/eselect-vi-1.1
|
||||
>=sys-libs/ncurses-5.2-r2:0=
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libXext
|
||||
x11-libs/libXt
|
||||
acl? ( kernel_linux? ( sys-apps/acl ) )
|
||||
!aqua? (
|
||||
gtk3? (
|
||||
x11-libs/gtk+:3
|
||||
x11-libs/libXft
|
||||
)
|
||||
!gtk3? (
|
||||
gtk? (
|
||||
>=x11-libs/gtk+-2.6:2
|
||||
x11-libs/libXft
|
||||
gnome? ( >=gnome-base/libgnomeui-2.6 )
|
||||
)
|
||||
!gtk? (
|
||||
motif? ( >=x11-libs/motif-2.3:0 )
|
||||
!motif? (
|
||||
neXt? ( x11-libs/neXtaw )
|
||||
!neXt? ( x11-libs/libXaw )
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
cscope? ( dev-util/cscope )
|
||||
lua? (
|
||||
luajit? ( dev-lang/luajit:2= )
|
||||
!luajit? ( dev-lang/lua:0[deprecated] )
|
||||
)
|
||||
nls? ( virtual/libintl )
|
||||
perl? ( dev-lang/perl:= )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
racket? ( dev-scheme/racket )
|
||||
ruby? ( || ( dev-lang/ruby:2.3 dev-lang/ruby:2.2 dev-lang/ruby:2.1 dev-lang/ruby:2.0 ) )
|
||||
selinux? ( sys-libs/libselinux )
|
||||
session? ( x11-libs/libSM )
|
||||
tcl? ( dev-lang/tcl:0= )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/ctags
|
||||
sys-devel/autoconf
|
||||
virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )
|
||||
"
|
||||
|
||||
S=${WORKDIR}/vim-${PV}
|
||||
|
||||
pkg_setup() {
|
||||
# people with broken alphabets run into trouble. bug 82186.
|
||||
unset LANG LC_ALL
|
||||
export LC_COLLATE="C"
|
||||
|
||||
# Gnome sandbox silliness. bug #114475.
|
||||
mkdir -p "${T}"/home
|
||||
export HOME="${T}"/home
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if [[ ${PV} != 9999* ]] ; then
|
||||
# Gentoo patches to fix runtime issues, cross-compile errors, etc
|
||||
eapply "${WORKDIR}"/patches/
|
||||
fi
|
||||
|
||||
# Fixup a script to use awk instead of nawk
|
||||
sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \
|
||||
|| die "mve.awk sed failed"
|
||||
|
||||
# Read vimrc and gvimrc from /etc/vim
|
||||
echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h
|
||||
echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h
|
||||
|
||||
# Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
|
||||
# Hopefully this pattern won't break for a while at least.
|
||||
# This fixes bug 29398 (27 Sep 2003 agriffis)
|
||||
sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
|
||||
"${S}"/runtime/doc/syntax.txt \
|
||||
"${S}"/runtime/doc/tagsrch.txt \
|
||||
"${S}"/runtime/doc/usr_29.txt \
|
||||
"${S}"/runtime/menu.vim \
|
||||
"${S}"/src/configure.ac || die 'sed failed'
|
||||
|
||||
# Don't be fooled by /usr/include/libc.h. When found, vim thinks
|
||||
# this is NeXT, but it's actually just a file in dev-libs/9libs
|
||||
# This fixes bug 43885 (20 Mar 2004 agriffis)
|
||||
sed -i 's/ libc\.h / /' "${S}"/src/configure.ac || die 'sed failed'
|
||||
|
||||
# gcc on sparc32 has this, uhm, interesting problem with detecting EOF
|
||||
# correctly. To avoid some really entertaining error messages about stuff
|
||||
# which isn't even in the source file being invalid, we'll do some trickery
|
||||
# to make the error never occur. bug 66162 (02 October 2004 ciaranm)
|
||||
find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done
|
||||
|
||||
# Try to avoid sandbox problems. Bug #114475.
|
||||
if [[ -d "${S}"/src/po ]] ; then
|
||||
sed -i '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
|
||||
"${S}"/src/po/Makefile
|
||||
fi
|
||||
|
||||
if version_is_at_least 7.3.122 ; then
|
||||
cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk
|
||||
fi
|
||||
|
||||
# Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0
|
||||
if version_is_at_least 7.3 ; then
|
||||
sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
|
||||
"${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
|
||||
fi
|
||||
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=()
|
||||
|
||||
# Fix bug 37354: Disallow -funroll-all-loops on amd64
|
||||
# Bug 57859 suggests that we want to do this for all archs
|
||||
filter-flags -funroll-all-loops
|
||||
|
||||
# Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
|
||||
# everyone since previous flag filtering bugs have turned out to affect
|
||||
# multiple archs...
|
||||
replace-flags -O3 -O2
|
||||
|
||||
# Fix bug 18245: Prevent "make" from the following chain:
|
||||
# (1) Notice configure.ac is newer than auto/configure
|
||||
# (2) Rebuild auto/configure
|
||||
# (3) Notice auto/configure is newer than auto/config.mk
|
||||
# (4) Run ./configure (with wrong args) to remake auto/config.mk
|
||||
sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
|
||||
rm -f src/auto/configure
|
||||
emake -j1 -C src autoconf
|
||||
|
||||
# This should fix a sandbox violation (see bug 24447). The hvc
|
||||
# things are for ppc64, see bug 86433.
|
||||
for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do
|
||||
[[ -e ${file} ]] && addwrite $file
|
||||
done
|
||||
|
||||
use debug && append-flags "-DDEBUG"
|
||||
|
||||
myconf=(
|
||||
--with-features=huge
|
||||
--disable-gpm
|
||||
--enable-multibyte
|
||||
$(use_enable acl)
|
||||
$(use_enable cscope)
|
||||
$(use_enable lua luainterp)
|
||||
$(use_with luajit)
|
||||
$(use_enable netbeans)
|
||||
$(use_enable nls)
|
||||
$(use_enable perl perlinterp)
|
||||
$(use_enable racket mzschemeinterp)
|
||||
$(use_enable ruby rubyinterp)
|
||||
$(use_enable selinux)
|
||||
$(use_enable session xsmp)
|
||||
$(use_enable tcl tclinterp)
|
||||
)
|
||||
|
||||
if use python ; then
|
||||
py_add_interp() {
|
||||
local v
|
||||
|
||||
[[ ${EPYTHON} == python3* ]] && v=3
|
||||
myconf+=(
|
||||
--enable-python${v}interp
|
||||
vi_cv_path_python${v}="${PYTHON}"
|
||||
)
|
||||
}
|
||||
|
||||
python_foreach_impl py_add_interp
|
||||
else
|
||||
myconf+=(
|
||||
--disable-pythoninterp
|
||||
--disable-python3interp
|
||||
)
|
||||
fi
|
||||
|
||||
# --with-features=huge forces on cscope even if we --disable it. We need
|
||||
# to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
|
||||
if ! use cscope ; then
|
||||
sed -i '/# define FEAT_CSCOPE/d' src/feature.h || \
|
||||
die "couldn't disable cscope"
|
||||
fi
|
||||
|
||||
# gvim's GUI preference order is as follows:
|
||||
# aqua CARBON (not tested)
|
||||
# -aqua gtk3 GTK3
|
||||
# -aqua -gtk3 gnome GNOME2
|
||||
# -aqua -gtk3 -gnome gtk GTK2
|
||||
# -aqua -gtk -gtk3 motif MOTIF
|
||||
# -aqua -gtk -gtk3 -motif neXt NEXTAW
|
||||
# -aqua -gtk -gtk3 -motif -neXt ATHENA
|
||||
echo ; echo
|
||||
if use aqua ; then
|
||||
einfo "Building gvim with the Carbon GUI"
|
||||
myconf+=(
|
||||
--enable-darwin
|
||||
--enable-gui=carbon
|
||||
)
|
||||
elif use gtk3 ; then
|
||||
myconf+=( --enable-gtk3-check )
|
||||
einfo "Building gvim with the gtk+-3 GUI"
|
||||
myconf+=( --enable-gui=gtk3 )
|
||||
elif use gtk ; then
|
||||
myconf+=( --enable-gtk2-check )
|
||||
if use gnome ; then
|
||||
einfo "Building gvim with the Gnome 2 GUI"
|
||||
myconf+=( --enable-gui=gnome2 )
|
||||
else
|
||||
einfo "Building gvim with the gtk+-2 GUI"
|
||||
myconf+=( --enable-gui=gtk2 )
|
||||
fi
|
||||
elif use motif ; then
|
||||
einfo "Building gvim with the MOTIF GUI"
|
||||
myconf+=( --enable-gui=motif )
|
||||
elif use neXt ; then
|
||||
einfo "Building gvim with the neXtaw GUI"
|
||||
myconf+=( --enable-gui=nextaw )
|
||||
else
|
||||
einfo "Building gvim with the Athena GUI"
|
||||
myconf+=( --enable-gui=athena )
|
||||
fi
|
||||
echo ; echo
|
||||
|
||||
# let package manager strip binaries
|
||||
export ac_cv_prog_STRIP="$(type -P true ) faking strip"
|
||||
|
||||
# keep prefix env contained within the EPREFIX
|
||||
use prefix && myconf+=( --without-local-dir )
|
||||
|
||||
if [[ ${CHOST} == *-interix* ]]; then
|
||||
# avoid finding of this function, to avoid having to patch either
|
||||
# configure or the source, which would be much more hackish.
|
||||
# after all vim does it right, only interix is badly broken (again)
|
||||
export ac_cv_func_sigaction=no
|
||||
fi
|
||||
|
||||
econf \
|
||||
--with-modified-by=Gentoo-${PVR} \
|
||||
--with-vim-name=gvim \
|
||||
--with-x \
|
||||
"${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# The following allows emake to be used
|
||||
emake -j1 -C src auto/osdef.h objects
|
||||
|
||||
emake
|
||||
}
|
||||
|
||||
src_test() {
|
||||
echo
|
||||
einfo "Starting vim tests. Several error messages will be shown"
|
||||
einfo "while the tests run. This is normal behaviour and does not"
|
||||
einfo "indicate a fault."
|
||||
echo
|
||||
ewarn "If the tests fail, your terminal may be left in a strange"
|
||||
ewarn "state. Usually, running 'reset' will fix this."
|
||||
echo
|
||||
|
||||
# Don't let vim talk to X
|
||||
unset DISPLAY
|
||||
|
||||
# Make gvim not try to connect to X. See :help gui-x11-start in vim for how
|
||||
# this evil trickery works.
|
||||
ln -s "${S}"/src/gvim "${S}"/src/testvim || die
|
||||
|
||||
# Make sure our VIMPROG is used.
|
||||
sed -i 's:\.\./vim:../testvim:' src/testdir/test49.vim || die
|
||||
|
||||
# Don't do additional GUI tests.
|
||||
emake -j1 VIMPROG=../testvim -C src/testdir nongui
|
||||
}
|
||||
|
||||
# Make convenience symlinks, hopefully without stepping on toes. Some
|
||||
# of these links are "owned" by the vim ebuild when it is installed,
|
||||
# but they might be good for gvim as well (see bug 45828)
|
||||
update_vim_symlinks() {
|
||||
local f syms
|
||||
syms="vimdiff rvim rview"
|
||||
einfo "Calling eselect vi update..."
|
||||
# Call this with --if-unset to respect user's choice (bug 187449)
|
||||
eselect vi update --if-unset
|
||||
|
||||
# Make or remove convenience symlink, vim -> gvim
|
||||
if [[ -f "${EROOT}"/usr/bin/gvim ]]; then
|
||||
ln -s gvim "${EROOT}"/usr/bin/vim 2>/dev/null
|
||||
elif [[ -L "${EROOT}"/usr/bin/vim && ! -f "${EROOT}"/usr/bin/vim ]]; then
|
||||
rm "${EROOT}"/usr/bin/vim
|
||||
fi
|
||||
|
||||
# Make or remove convenience symlinks to vim
|
||||
if [[ -f "${EROOT}"/usr/bin/vim ]]; then
|
||||
for f in ${syms}; do
|
||||
ln -s vim "${EROOT}"/usr/bin/${f} 2>/dev/null
|
||||
done
|
||||
else
|
||||
for f in ${syms}; do
|
||||
if [[ -L "${EROOT}"/usr/bin/${f} && ! -f "${EROOT}"/usr/bin/${f} ]]; then
|
||||
rm -f "${EROOT}"/usr/bin/${f}
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# This will still break if you merge then remove the vi package,
|
||||
# but there's only so much you can do, eh? Unfortunately we don't
|
||||
# have triggers like are done in rpm-land.
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
|
||||
|
||||
dobin src/gvim
|
||||
dosym gvim /usr/bin/gvimdiff
|
||||
dosym gvim /usr/bin/evim
|
||||
dosym gvim /usr/bin/eview
|
||||
dosym gvim /usr/bin/gview
|
||||
dosym gvim /usr/bin/rgvim
|
||||
dosym gvim /usr/bin/rgview
|
||||
|
||||
emake -C src DESTDIR="${D}" DATADIR="${EPREFIX}"/usr/share install-icons
|
||||
|
||||
dodir /usr/share/man/man1
|
||||
echo ".so vim.1" > "${ED}"/usr/share/man/man1/gvim.1
|
||||
echo ".so vim.1" > "${ED}"/usr/share/man/man1/gview.1
|
||||
echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/gvimdiff.1
|
||||
|
||||
insinto /etc/vim
|
||||
newins "${FILESDIR}"/gvimrc-r1 gvimrc
|
||||
eprefixify "${ED}"/etc/vim/gvimrc
|
||||
|
||||
doicon -s scalable "${FILESDIR}"/gvim.svg
|
||||
|
||||
# bash completion script, bug #79018.
|
||||
newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
|
||||
|
||||
# don't install vim desktop file
|
||||
rm "${ED}"/usr/share/applications/vim.desktop || die "failed to remove vim.desktop"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Update documentation tags (from vim-doc.eclass)
|
||||
update_vim_helptags
|
||||
|
||||
# Update fdo mime stuff, bug #78394
|
||||
fdo-mime_desktop_database_update
|
||||
|
||||
# Update icon cache
|
||||
gnome2_icon_cache_update
|
||||
|
||||
# Make convenience symlinks
|
||||
update_vim_symlinks
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
# Update documentation tags (from vim-doc.eclass)
|
||||
update_vim_helptags
|
||||
|
||||
# Update fdo mime stuff, bug #78394
|
||||
fdo-mime_desktop_database_update
|
||||
|
||||
# Update icon cache
|
||||
gnome2_icon_cache_update
|
||||
|
||||
# Make convenience symlinks
|
||||
update_vim_symlinks
|
||||
}
|
@ -1,16 +1,19 @@
|
||||
AUX vimrc-r4 6814 SHA256 1dd8550b737322fe6333611342a68ea5aad6ac0b3c6b1eed0b06b7ef8f2dbb7e SHA512 7b53ff22d5bdff077b307f2269eb61ae95feab137199184262893b478a7989d2a6db38dfe3502d1a09b10e2ecf6ce9b84a583cb9efb1186bd800762248ee42d3 WHIRLPOOL e02b8b6c95a42f91acc4caea304b6f8b223f21ea0d7d4275674d4c744374ebe4ffe1d1a7253347c213efccc057056f2f062121bcac4d3a1db7f775addb4b422a
|
||||
AUX vimrc-r5 6932 SHA256 9deeccd652fe54108ee29824d3eaa851038c200d6fd78bf0bf18f74fae9c5d42 SHA512 47b03ac08575c7324a52d4c31a1fa8eb205dab5ff3d9fe59654cfa92ff561e3098c1e496c91f24d4fea692509d2f005dd357dc76ea41102aa8225f21c63828ef WHIRLPOOL 233d158d01128edc7261883fa76a49eba5d20837f6fdd57d0b9063987fb6e9b736cb095666285d512c206c1a6ab6512d1308e78c49ac258dbd713a144fb60d64
|
||||
AUX vimrc-r5 6933 SHA256 cf07f6a0e7cbae4e4513026c0906ff216615626150f021f8a2cdcf3f61e60147 SHA512 7e091830a85b275ff4d3a85a9d381ea67e4793130216ead89622983b5807ffd1b98f2384c9df090512763dc2b5e932cbcc9655157b61a0b381a8ee4900578b0a WHIRLPOOL cc2f29ea88eb4f3583e5c061fc3d624c306e9184c67e51407791fef5476c54a4067df08017a359948ce61056dc2b4ee1bcbf7462293136190744dfec34da27fa
|
||||
AUX xxd-completion 461 SHA256 580064ca4db3ac149fd89c743bd9946241220c211721f978f7a3ef97b3c171df SHA512 fc92426ea657e86ff765aa5a60736cdc70db938156dd8946db0a30c54d3f557bd8af421f1713bd750e779ccacd73f8f290a12a5e71ed48259fe1e6dece2de19c WHIRLPOOL 65324afb44612f1dd8f8850b7caa8524cff055d83aaad74c5b5030787463d0a95dbe0ce1b91c1a7b7f3e6954db3c0608ac2a2e1e75572af94e83758237b18447
|
||||
DIST vim-7.4.2102-gentoo-patches.tar.bz2 2308 SHA256 1928059fe173b3abf66a96a8205c2e46b5320639d62385aeeae760e99820da67 SHA512 4e678b214fc7b1be89728b8151335ca8af332e8b0c0e25c27287a38ad5ccf14d5dcf82d5dd86af9aa502df4fae986aba98104f150b49a880e34f8283e8e63574 WHIRLPOOL 8a53a8980418f16f8c7883409dea49cfc758fc29dcfaab36f1bd6ae53b32211870a95361c8b63cdfe50795ea11958b113c9909ed6d29de5cb3696efc6ff7888b
|
||||
DIST vim-7.4.2102.tar.gz 12838026 SHA256 19c059b2d0e61effcd288e2a18969017cbbc031cf19fe775b3f4b4c42bda2578 SHA512 9cf80b1c9e2dd8713b9ba33c39917a8771c7378ae59c2dc1809bf0cabc4545547ad0a5b9f0b87cef2b34f6d1f72b135d1217495716fc482a70a16e1097bd88a2 WHIRLPOOL 301d41e9bf9a6a220776d6e32ab2918c6a8aaf33862725fba9c738e0c99921e631d8c2fdfd9bc2dc9a214a9124ecfa113081a86addf79b023e8421471843f869
|
||||
DIST vim-7.4.542-gentoo-patches.tar.bz2 3307 SHA256 0eb635f13e199de77846e0d363a473882f2186f138158271fabf0975747a2f3d SHA512 446c66764dac2533cc2f2b3d50481971d4c63a4e81d94c545862a1be620179fdcd81a79f2d81737d1188812a6ad41d90e2a752a05acf6913e7a71464f7cecdd9 WHIRLPOOL cfca8feef0eb8096897ef751afb0427acddd008530ded6cf908fcff51be9713da4ea3e5e613d544c5caba400d664ae19ca70925df3a218bec5c8be6f69aadda2
|
||||
DIST vim-7.4.769.tar.gz 12189043 SHA256 c89568f3dfcefd773bfbb0958c1cf58a0b0ceedb9d0c264250b379a77ad02e9e SHA512 00048c1d579c409767308c991e5de4ed54e9e50db7e97b0d148f0667742d5e46047c702bee693a5caf13a1603548ab783f7fa846574841d807ffbaa97d7f611e WHIRLPOOL 28ada4763250bbed6f9a1768e81a79b75db64f0ef25296c5d4825f21d21d6e88ff24d488e841e6ba492e363da6d3a3e75e9ec2f2881a731e7ed261c7d21ffd3c
|
||||
DIST vim-8.0.0005.tar.gz 12909267 SHA256 4ad6b4e8fad6412724a665d974e1be3138a9562a5f4f4aab17debf709c1d3ad3 SHA512 3d62557c6929e554c50f8043658665b907b235f180d8917288fc1434237856df7fa098ecb1823e6edea9e5735564cb55869e535350e52fd8c22423480a49438d WHIRLPOOL a80eec04afb2a797837874ec4b035268a20be7cefa487e44e8e441fb518d46cd7e16a263a6256f49e23e60e737b14dc6a7d93d7c3e579d3da13ccee48536b41b
|
||||
DIST vim-8.0.0106-gentoo-patches.tar.bz2 2281 SHA256 9823a91b050eb4b001cc50f508d2ad03c7c256ed49183c1af7582318667f48d4 SHA512 39edd9f518c230d2b0486b18aa155572a9eada4a5e21108573d6e66e2eef1276f23b77d766648f018c9cf973a7d03712d8861be6ea13255d7b389912d554a47a WHIRLPOOL d6d01e3944d56762a2a999ee631f89e212360aa030ddd16ea96e32d518ec171e04d8565dcb89e804248d53e4c6e06b19be239ad2316ea88bb57364815b85d26b
|
||||
DIST vim-8.0.0106.tar.gz 12945768 SHA256 cbace3e7a2db3df73720c4181fa4cdbf7df94310522b1c7a4fd7d6afeaa1e145 SHA512 4e40d9ba8ba694d951be78c653d8fcfebe2b3cc460986ef8e3478f81f2dfd5e4b3c2bc5d22082536b9c275e41beeac343cee0aa1e4de125b71fe95c772e26c20 WHIRLPOOL 569a8f50ebdb7f380f675ed0a4b4aa5e7e226303a8e92db2a8e81f5d8acc0e466620c60c160e2204f3af615b91ca2481eb9716f9c2e6dbdb416050d758a49f09
|
||||
EBUILD vim-core-7.4.2102.ebuild 6858 SHA256 3e20f5509e87954d44d3ebfff21d749c31912154d6c1e63142e5f0c74fe5c13c SHA512 a10a132bd750b9ca5486af66ae2432c60026540a813e539a345d40874995e421175b254d6ad5871a1d27bef0737326c0fade4304afec366d450eb4a7aa6e7b67 WHIRLPOOL 93ade998f8b8d1ea180f4961fd9b659951c31f321e7cc70ba941fcb6e3c057bf5600f346470eaa42119d55243bae83843e2493f7182a170631a9a7a4f69e69cb
|
||||
EBUILD vim-core-7.4.769.ebuild 6918 SHA256 97dd69dc1715e1406fc795eb38ae91d9ee78f743a38db859d17396cb2c62cc3b SHA512 8034f26be445b3cbb5e73972b1ef5f58a41f2dc1e76a3a14ba5099ff55f66b891781f040c613cb6206eccd7bdb4fb9cd5f48a8978e5662d1dbc634d6396c35de WHIRLPOOL 3922467adccdfecea9d93a27df27873503bae61d502df2cf414df3d394ae1546063eb7c7e23fffc5008666288eb3cc9698b3c3a08b0adecbaf2a20a229dabc74
|
||||
EBUILD vim-core-8.0.0005-r1.ebuild 6820 SHA256 177b6d5065413efcac3a85304709626584edada446a6d5b1341f254258d0d053 SHA512 0904c40dc58c5e800a96ec836047205051de16c9f787325e6af4bd8f04f2ccce099bef3b4a32abf1a7e600d5e6b20cd435df943e4f92bbc9677b05cbe9e6bd83 WHIRLPOOL 0bf626d96e2b205a51a9079e9295928f03a594ff71d6e6c65fa21381535152077c68149ab118e570bf9de7cbd68ee58a6a05224c6ab21229f3139d32e0a3d89f
|
||||
EBUILD vim-core-8.0.0005.ebuild 6820 SHA256 1555f3ea7d1b0554e4101d3f1e2e88717ac4456e651126d64dad7a4dd549cc82 SHA512 a6125d2e38670bf9553f18469d546aff9b648bac476c40a4a005d81c51af6265baf725554bc84ba64cd5d760534e21e0762a318687398da74c796f6131eb041a WHIRLPOOL 455be6b08099b26270bde44240464d11f4880024df00e6c9949efbdf8a0b1e9478409c6aee0bf7b623019ef559510a28acb8f432fbaa216a88353027be1b72af
|
||||
EBUILD vim-core-9999.ebuild 6820 SHA256 dcc3c95b7dc5a9ea5f7ef71fc811d15c167f61f8a5aabeb13408caa79f9aa24d SHA512 24e2d7a8f55dd0340a895c28bebe8c32ed69df294a331ac693757e46cfbf4d333cbaca0e7828a963be72221d0a8734b3a9e57be97a293ac609d5a26364f28906 WHIRLPOOL 5d1b4974bdd3016c0c5b79058f746f291acf3aa3bec72d5651f7a6a1ae3b1a1b4a309d95ab3b99825426e13c3c941d239d5a4d749e99fd4587e0d8889f9a37b6
|
||||
MISC ChangeLog 7373 SHA256 be5bdc6119bc48064b4c7daef8a758b11f37f94db063d5c516b6cabe862dd7d0 SHA512 f36f0a2b0d8696fe0d2070926aeb6ecd336dd34476ef9024dd8cbe9ad38bcb37eed73d3177a4060319c86095ac0badb19cc9c1e047975d04daec6ba483df7241 WHIRLPOOL c03103d40e6141f8154074be5e6b22862b2cd5fb8f9886adb0c90e5e9de04044920396d9b5b3633fadd5b852626b5cdeb55ee23db9ea534e8565d18fc2b730ba
|
||||
EBUILD vim-core-8.0.0106.ebuild 6820 SHA256 d3e3e9e11fddbe4a03be83cbef424565f2b9892de83b2feee6fea88dd7b953d9 SHA512 52f791d92ee3024555620d70f43b18bb9660f615a453fa27a620d50fbb901635f55f291f217a0dcb111edafbeb5a8197afa475b401681c1308cec9383b64ffd5 WHIRLPOOL 705a5c6d4edbd8b4263a829157bc1f95b1089a698646598fa2c54aa0d91bfd22724fd6d754bef0d62b86db04051696f3da2c4f95a5bbf22c0d0fe3994a6db125
|
||||
EBUILD vim-core-9999.ebuild 6820 SHA256 d3e3e9e11fddbe4a03be83cbef424565f2b9892de83b2feee6fea88dd7b953d9 SHA512 52f791d92ee3024555620d70f43b18bb9660f615a453fa27a620d50fbb901635f55f291f217a0dcb111edafbeb5a8197afa475b401681c1308cec9383b64ffd5 WHIRLPOOL 705a5c6d4edbd8b4263a829157bc1f95b1089a698646598fa2c54aa0d91bfd22724fd6d754bef0d62b86db04051696f3da2c4f95a5bbf22c0d0fe3994a6db125
|
||||
MISC ChangeLog 7685 SHA256 d458c324cc768cd1532c514b515e18ea0056f1399faf88ff3023428df0c11e3c SHA512 858448a4304102aa49874539f25a7eb6378c2bfe57dface3636cdf5782bdc45ea777f5572effc94641a2630f56cb4bc4cea2960f3ce970fa13b4a36225a34b51 WHIRLPOOL 657a8b0b14de7c98a80eff3052e29f2cffd83daf9e4a6add9f0a672aa077e6e95ecbb051e0003035e4df1eaa1f5c47bf660570832fb30715069e9c82112e4529
|
||||
MISC ChangeLog-2015 63585 SHA256 fcbf2e79dabadcfea37e13f90bd1a0da5060f06fa4676551bb5ae5c15b140d3b SHA512 f5431dc90fecae587bfe51915711f2cd117505a034dfa821d412e29898d2046feb7afa98762878b9554d602c4a24dce8807b75613ba7b01fb5747ebc5911fe54 WHIRLPOOL 2410b2440a6eecee31ac1f8b2ccfc0ebc5ffbaf043e95fb4734fd1e22fd4b29093296d1a6b63a8e6e66c5d845a3b300f7655c31e2397eddb2a582033796b680c
|
||||
MISC metadata.xml 321 SHA256 f9326975290ccd756ea9e8aed462a63d5281409d82e6cf70c1cda86b1783c118 SHA512 7d4a40b09c24eb8f08e6c171a4cf0e332d82f06163846602db338a1ad2e51133ed18694f216ce061fd9964fba3380b9991d86b93f111c6f8d0bb62ac5e14f705 WHIRLPOOL df4da6e95b9dda591cf35853baebf9ebff792a7ba5f03c7060e41d319fcf40e31f5874b31c9841b27ed860e5a8d3346e3afb7cf80e93eb2b297c5975288e5b1a
|
||||
|
@ -0,0 +1,218 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
VIM_VERSION="8.0"
|
||||
inherit eutils vim-doc flag-o-matic versionator bash-completion-r1 prefix
|
||||
|
||||
if [[ ${PV} == 9999* ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/vim/vim.git"
|
||||
EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV}
|
||||
else
|
||||
SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz
|
||||
https://dev.gentoo.org/~radhermit/vim/vim-8.0.0106-gentoo-patches.tar.bz2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
DESCRIPTION="vim and gvim shared files"
|
||||
HOMEPAGE="http://www.vim.org/ https://github.com/vim/vim"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="vim"
|
||||
IUSE="nls acl minimal"
|
||||
|
||||
DEPEND="sys-devel/autoconf"
|
||||
PDEPEND="!minimal? ( app-vim/gentoo-syntax )"
|
||||
|
||||
S=${WORKDIR}/vim-${PV}
|
||||
|
||||
pkg_setup() {
|
||||
# people with broken alphabets run into trouble. bug 82186.
|
||||
unset LANG LC_ALL
|
||||
export LC_COLLATE="C"
|
||||
|
||||
# Gnome sandbox silliness. bug #114475.
|
||||
mkdir -p "${T}"/home
|
||||
export HOME="${T}"/home
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if [[ ${PV} != 9999* ]] ; then
|
||||
# Gentoo patches to fix runtime issues, cross-compile errors, etc
|
||||
eapply "${WORKDIR}"/patches
|
||||
fi
|
||||
|
||||
# Fixup a script to use awk instead of nawk
|
||||
sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \
|
||||
|| die "mve.awk sed failed"
|
||||
|
||||
# Read vimrc and gvimrc from /etc/vim
|
||||
echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h
|
||||
echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h
|
||||
|
||||
# Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
|
||||
# Hopefully this pattern won't break for a while at least.
|
||||
# This fixes bug 29398 (27 Sep 2003 agriffis)
|
||||
sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
|
||||
"${S}"/runtime/doc/syntax.txt \
|
||||
"${S}"/runtime/doc/tagsrch.txt \
|
||||
"${S}"/runtime/doc/usr_29.txt \
|
||||
"${S}"/runtime/menu.vim \
|
||||
"${S}"/src/configure.ac || die 'sed failed'
|
||||
|
||||
# Don't be fooled by /usr/include/libc.h. When found, vim thinks
|
||||
# this is NeXT, but it's actually just a file in dev-libs/9libs
|
||||
# This fixes bug 43885 (20 Mar 2004 agriffis)
|
||||
sed -i 's/ libc\.h / /' "${S}"/src/configure.ac || die 'sed failed'
|
||||
|
||||
# gcc on sparc32 has this, uhm, interesting problem with detecting EOF
|
||||
# correctly. To avoid some really entertaining error messages about stuff
|
||||
# which isn't even in the source file being invalid, we'll do some trickery
|
||||
# to make the error never occur. bug 66162 (02 October 2004 ciaranm)
|
||||
find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done
|
||||
|
||||
# Try to avoid sandbox problems. Bug #114475.
|
||||
if [[ -d "${S}"/src/po ]] ; then
|
||||
sed -i -e \
|
||||
'/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
|
||||
"${S}"/src/po/Makefile
|
||||
fi
|
||||
|
||||
if version_is_at_least 7.3.122 ; then
|
||||
cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk
|
||||
fi
|
||||
|
||||
# Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0
|
||||
if version_is_at_least 7.3 ; then
|
||||
sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
|
||||
"${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
|
||||
fi
|
||||
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
|
||||
# Fix bug 37354: Disallow -funroll-all-loops on amd64
|
||||
# Bug 57859 suggests that we want to do this for all archs
|
||||
filter-flags -funroll-all-loops
|
||||
|
||||
# Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
|
||||
# everyone since previous flag filtering bugs have turned out to affect
|
||||
# multiple archs...
|
||||
replace-flags -O3 -O2
|
||||
|
||||
# Fix bug 18245: Prevent "make" from the following chain:
|
||||
# (1) Notice configure.ac is newer than auto/configure
|
||||
# (2) Rebuild auto/configure
|
||||
# (3) Notice auto/configure is newer than auto/config.mk
|
||||
# (4) Run ./configure (with wrong args) to remake auto/config.mk
|
||||
sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
|
||||
rm -f src/auto/configure
|
||||
emake -j1 -C src autoconf
|
||||
|
||||
# This should fix a sandbox violation (see bug 24447). The hvc
|
||||
# things are for ppc64, see bug 86433.
|
||||
for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do
|
||||
[[ -e ${file} ]] && addwrite $file
|
||||
done
|
||||
|
||||
# Let Portage do the stripping. Some people like that.
|
||||
export ac_cv_prog_STRIP="$(type -P true ) faking strip"
|
||||
|
||||
# Keep Gentoo Prefix env contained within the EPREFIX
|
||||
use prefix && myconf+=" --without-local-dir"
|
||||
|
||||
econf \
|
||||
--with-modified-by=Gentoo-${PVR} \
|
||||
--enable-gui=no \
|
||||
--without-x \
|
||||
--disable-darwin \
|
||||
--disable-perlinterp \
|
||||
--disable-pythoninterp \
|
||||
--disable-rubyinterp \
|
||||
--disable-gpm \
|
||||
--disable-selinux \
|
||||
$(use_enable nls) \
|
||||
$(use_enable acl) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# The following allows emake to be used
|
||||
emake -j1 -C src auto/osdef.h objects
|
||||
|
||||
emake tools
|
||||
}
|
||||
|
||||
src_test() { :; }
|
||||
|
||||
src_install() {
|
||||
local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
|
||||
|
||||
dodir /usr/{bin,share/{man/man1,vim}}
|
||||
emake -C src \
|
||||
installruntime \
|
||||
installmanlinks \
|
||||
installmacros \
|
||||
installtutor \
|
||||
installtutorbin \
|
||||
installtools \
|
||||
install-languages \
|
||||
DESTDIR="${D}" \
|
||||
BINDIR="${EPREFIX}"/usr/bin \
|
||||
MANDIR="${EPREFIX}"/usr/share/man \
|
||||
DATADIR="${EPREFIX}"/usr/share
|
||||
|
||||
keepdir ${vimfiles}/keymap
|
||||
|
||||
# default vimrc is installed by vim-core since it applies to
|
||||
# both vim and gvim
|
||||
insinto /etc/vim/
|
||||
newins "${FILESDIR}"/vimrc-r5 vimrc
|
||||
eprefixify "${ED}"/etc/vim/vimrc
|
||||
|
||||
if use minimal ; then
|
||||
# To save space, install only a subset of the files.
|
||||
# Helps minimalize the livecd, bug 65144.
|
||||
eshopts_push -s extglob
|
||||
|
||||
rm -fr "${ED}${vimfiles}"/{compiler,doc,ftplugin,indent}
|
||||
rm -fr "${ED}${vimfiles}"/{macros,print,tools,tutor}
|
||||
rm "${ED}"/usr/bin/vimtutor
|
||||
|
||||
local keep_colors="default"
|
||||
ignore=$(rm -fr "${ED}${vimfiles}"/colors/!(${keep_colors}).vim )
|
||||
|
||||
local keep_syntax="conf|crontab|fstab|inittab|resolv|sshdconfig"
|
||||
# tinkering with the next line might make bad things happen ...
|
||||
keep_syntax="${keep_syntax}|syntax|nosyntax|synload"
|
||||
ignore=$(rm -fr "${ED}${vimfiles}"/syntax/!(${keep_syntax}).vim )
|
||||
|
||||
eshopts_pop
|
||||
fi
|
||||
|
||||
# These files might have slight security issues, so we won't
|
||||
# install them. See bug #77841. We don't mind if these don't
|
||||
# exist.
|
||||
rm "${ED}${vimfiles}"/tools/{vimspell.sh,tcltags} 2>/dev/null
|
||||
|
||||
newbashcomp "${FILESDIR}"/xxd-completion xxd
|
||||
|
||||
# We shouldn't be installing the ex or view man page symlinks, as they
|
||||
# are managed by eselect-vi
|
||||
rm -f "${ED}"/usr/share/man/man1/{ex,view}.1
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Update documentation tags (from vim-doc.eclass)
|
||||
update_vim_helptags
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
# Update documentation tags (from vim-doc.eclass)
|
||||
update_vim_helptags
|
||||
}
|
@ -0,0 +1,349 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
VIM_VERSION="8.0"
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
PYTHON_REQ_USE=threads
|
||||
inherit eutils vim-doc flag-o-matic fdo-mime versionator bash-completion-r1 python-r1
|
||||
|
||||
if [[ ${PV} == 9999* ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/vim/vim.git"
|
||||
else
|
||||
SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://dev.gentoo.org/~radhermit/vim/vim-8.0.0106-gentoo-patches.tar.bz2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Vim, an improved vi-style text editor"
|
||||
HOMEPAGE="http://www.vim.org/ https://github.com/vim/vim"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="vim"
|
||||
IUSE="X acl cscope debug gpm lua luajit minimal nls perl python racket ruby selinux tcl vim-pager"
|
||||
REQUIRED_USE="
|
||||
luajit? ( lua )
|
||||
python? (
|
||||
|| ( $(python_gen_useflags '*') )
|
||||
?? ( $(python_gen_useflags 'python2*') )
|
||||
?? ( $(python_gen_useflags 'python3*') )
|
||||
)
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
>=app-eselect/eselect-vi-1.1
|
||||
>=sys-libs/ncurses-5.2-r2:0=
|
||||
nls? ( virtual/libintl )
|
||||
acl? ( kernel_linux? ( sys-apps/acl ) )
|
||||
cscope? ( dev-util/cscope )
|
||||
gpm? ( >=sys-libs/gpm-1.19.3 )
|
||||
lua? (
|
||||
luajit? ( dev-lang/luajit:2= )
|
||||
!luajit? ( dev-lang/lua:0[deprecated] )
|
||||
)
|
||||
!minimal? (
|
||||
~app-editors/vim-core-${PV}
|
||||
dev-util/ctags
|
||||
)
|
||||
perl? ( dev-lang/perl:= )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
racket? ( dev-scheme/racket )
|
||||
ruby? ( || ( dev-lang/ruby:2.3 dev-lang/ruby:2.2 dev-lang/ruby:2.1 dev-lang/ruby:2.0 ) )
|
||||
selinux? ( sys-libs/libselinux )
|
||||
tcl? ( dev-lang/tcl:0= )
|
||||
X? ( x11-libs/libXt )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/autoconf
|
||||
nls? ( sys-devel/gettext )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
# people with broken alphabets run into trouble. bug 82186.
|
||||
unset LANG LC_ALL
|
||||
export LC_COLLATE="C"
|
||||
|
||||
# Gnome sandbox silliness. bug #114475.
|
||||
mkdir -p "${T}"/home
|
||||
export HOME="${T}"/home
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if [[ ${PV} != 9999* ]] ; then
|
||||
# Gentoo patches to fix runtime issues, cross-compile errors, etc
|
||||
eapply "${WORKDIR}"/patches/
|
||||
fi
|
||||
|
||||
# Fixup a script to use awk instead of nawk
|
||||
sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \
|
||||
|| die "mve.awk sed failed"
|
||||
|
||||
# Read vimrc and gvimrc from /etc/vim
|
||||
echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h
|
||||
echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h
|
||||
|
||||
# Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
|
||||
# Hopefully this pattern won't break for a while at least.
|
||||
# This fixes bug 29398 (27 Sep 2003 agriffis)
|
||||
sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
|
||||
"${S}"/runtime/doc/syntax.txt \
|
||||
"${S}"/runtime/doc/tagsrch.txt \
|
||||
"${S}"/runtime/doc/usr_29.txt \
|
||||
"${S}"/runtime/menu.vim \
|
||||
"${S}"/src/configure.ac || die 'sed failed'
|
||||
|
||||
# Don't be fooled by /usr/include/libc.h. When found, vim thinks
|
||||
# this is NeXT, but it's actually just a file in dev-libs/9libs
|
||||
# This fixes bug 43885 (20 Mar 2004 agriffis)
|
||||
sed -i 's/ libc\.h / /' "${S}"/src/configure.ac || die 'sed failed'
|
||||
|
||||
# gcc on sparc32 has this, uhm, interesting problem with detecting EOF
|
||||
# correctly. To avoid some really entertaining error messages about stuff
|
||||
# which isn't even in the source file being invalid, we'll do some trickery
|
||||
# to make the error never occur. bug 66162 (02 October 2004 ciaranm)
|
||||
find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done
|
||||
|
||||
# conditionally make the manpager.sh script
|
||||
if use vim-pager ; then
|
||||
cat <<-END > "${S}"/runtime/macros/manpager.sh
|
||||
#!/bin/sh
|
||||
sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | \\
|
||||
vim \\
|
||||
-c 'let no_plugin_maps = 1' \\
|
||||
-c 'set nolist nomod ft=man ts=8' \\
|
||||
-c 'let g:showmarks_enable=0' \\
|
||||
-c 'runtime! macros/less.vim' -
|
||||
END
|
||||
fi
|
||||
|
||||
# Try to avoid sandbox problems. Bug #114475.
|
||||
if [[ -d "${S}"/src/po ]] ; then
|
||||
sed -i '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
|
||||
"${S}"/src/po/Makefile
|
||||
fi
|
||||
|
||||
if version_is_at_least 7.3.122 ; then
|
||||
cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk
|
||||
fi
|
||||
|
||||
# Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0
|
||||
if version_is_at_least 7.3 ; then
|
||||
sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
|
||||
"${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
|
||||
fi
|
||||
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=()
|
||||
|
||||
# Fix bug 37354: Disallow -funroll-all-loops on amd64
|
||||
# Bug 57859 suggests that we want to do this for all archs
|
||||
filter-flags -funroll-all-loops
|
||||
|
||||
# Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
|
||||
# everyone since previous flag filtering bugs have turned out to affect
|
||||
# multiple archs...
|
||||
replace-flags -O3 -O2
|
||||
|
||||
# Fix bug 18245: Prevent "make" from the following chain:
|
||||
# (1) Notice configure.ac is newer than auto/configure
|
||||
# (2) Rebuild auto/configure
|
||||
# (3) Notice auto/configure is newer than auto/config.mk
|
||||
# (4) Run ./configure (with wrong args) to remake auto/config.mk
|
||||
sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
|
||||
rm -f src/auto/configure
|
||||
emake -j1 -C src autoconf
|
||||
|
||||
# This should fix a sandbox violation (see bug 24447). The hvc
|
||||
# things are for ppc64, see bug 86433.
|
||||
for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do
|
||||
[[ -e ${file} ]] && addwrite $file
|
||||
done
|
||||
|
||||
if use minimal ; then
|
||||
myconf=(
|
||||
--with-features=tiny
|
||||
--disable-nls
|
||||
--disable-multibyte
|
||||
--disable-acl
|
||||
--enable-gui=no
|
||||
--without-x
|
||||
--disable-darwin
|
||||
--disable-luainterp
|
||||
--disable-perlinterp
|
||||
--disable-pythoninterp
|
||||
--disable-mzschemeinterp
|
||||
--disable-rubyinterp
|
||||
--disable-selinux
|
||||
--disable-tclinterp
|
||||
--disable-gpm
|
||||
)
|
||||
else
|
||||
use debug && append-flags "-DDEBUG"
|
||||
|
||||
myconf=(
|
||||
--with-features=huge
|
||||
--enable-multibyte
|
||||
$(use_enable acl)
|
||||
$(use_enable cscope)
|
||||
$(use_enable gpm)
|
||||
$(use_enable lua luainterp)
|
||||
$(usex lua "--with-lua-prefix=${EPREFIX}/usr" "")
|
||||
$(use_with luajit)
|
||||
$(use_enable nls)
|
||||
$(use_enable perl perlinterp)
|
||||
$(use_enable racket mzschemeinterp)
|
||||
$(use_enable ruby rubyinterp)
|
||||
$(use_enable selinux)
|
||||
$(use_enable tcl tclinterp)
|
||||
)
|
||||
|
||||
if use python ; then
|
||||
py_add_interp() {
|
||||
local v
|
||||
|
||||
[[ ${EPYTHON} == python3* ]] && v=3
|
||||
myconf+=(
|
||||
--enable-python${v}interp
|
||||
vi_cv_path_python${v}="${PYTHON}"
|
||||
)
|
||||
}
|
||||
|
||||
python_foreach_impl py_add_interp
|
||||
else
|
||||
myconf+=(
|
||||
--disable-pythoninterp
|
||||
--disable-python3interp
|
||||
)
|
||||
fi
|
||||
|
||||
# --with-features=huge forces on cscope even if we --disable it. We need
|
||||
# to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
|
||||
if ! use cscope ; then
|
||||
sed -i '/# define FEAT_CSCOPE/d' src/feature.h || \
|
||||
die "couldn't disable cscope"
|
||||
fi
|
||||
|
||||
# don't test USE=X here ... see bug #19115
|
||||
# but need to provide a way to link against X ... see bug #20093
|
||||
myconf+=(
|
||||
--enable-gui=no
|
||||
--disable-darwin
|
||||
$(use_with X x)
|
||||
)
|
||||
fi
|
||||
|
||||
# let package manager strip binaries
|
||||
export ac_cv_prog_STRIP="$(type -P true ) faking strip"
|
||||
|
||||
# keep prefix env contained within the EPREFIX
|
||||
use prefix && myconf+=( --without-local-dir )
|
||||
|
||||
econf \
|
||||
--with-modified-by=Gentoo-${PVR} \
|
||||
"${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# The following allows emake to be used
|
||||
emake -j1 -C src auto/osdef.h objects
|
||||
|
||||
emake
|
||||
}
|
||||
|
||||
src_test() {
|
||||
echo
|
||||
einfo "Starting vim tests. Several error messages will be shown"
|
||||
einfo "while the tests run. This is normal behaviour and does not"
|
||||
einfo "indicate a fault."
|
||||
echo
|
||||
ewarn "If the tests fail, your terminal may be left in a strange"
|
||||
ewarn "state. Usually, running 'reset' will fix this."
|
||||
echo
|
||||
|
||||
# Don't let vim talk to X
|
||||
unset DISPLAY
|
||||
|
||||
emake -j1 -C src/testdir nongui
|
||||
}
|
||||
|
||||
# Make convenience symlinks, hopefully without stepping on toes. Some
|
||||
# of these links are "owned" by the vim ebuild when it is installed,
|
||||
# but they might be good for gvim as well (see bug 45828)
|
||||
update_vim_symlinks() {
|
||||
local f syms
|
||||
syms="vimdiff rvim rview"
|
||||
einfo "Calling eselect vi update..."
|
||||
# Call this with --if-unset to respect user's choice (bug 187449)
|
||||
eselect vi update --if-unset
|
||||
|
||||
# Make or remove convenience symlink, vim -> gvim
|
||||
if [[ -f "${EROOT}"/usr/bin/gvim ]]; then
|
||||
ln -s gvim "${EROOT}"/usr/bin/vim 2>/dev/null
|
||||
elif [[ -L "${EROOT}"/usr/bin/vim && ! -f "${EROOT}"/usr/bin/vim ]]; then
|
||||
rm "${EROOT}"/usr/bin/vim
|
||||
fi
|
||||
|
||||
# Make or remove convenience symlinks to vim
|
||||
if [[ -f "${EROOT}"/usr/bin/vim ]]; then
|
||||
for f in ${syms}; do
|
||||
ln -s vim "${EROOT}"/usr/bin/${f} 2>/dev/null
|
||||
done
|
||||
else
|
||||
for f in ${syms}; do
|
||||
if [[ -L "${EROOT}"/usr/bin/${f} && ! -f "${EROOT}"/usr/bin/${f} ]]; then
|
||||
rm -f "${EROOT}"/usr/bin/${f}
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# This will still break if you merge then remove the vi package,
|
||||
# but there's only so much you can do, eh? Unfortunately we don't
|
||||
# have triggers like are done in rpm-land.
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
|
||||
|
||||
# Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are
|
||||
# managed by eselect-vi
|
||||
dobin src/vim
|
||||
dosym vim /usr/bin/vimdiff
|
||||
dosym vim /usr/bin/rvim
|
||||
dosym vim /usr/bin/rview
|
||||
if use vim-pager ; then
|
||||
dosym ${vimfiles}/macros/less.sh /usr/bin/vimpager
|
||||
dosym ${vimfiles}/macros/manpager.sh /usr/bin/vimmanpager
|
||||
insinto ${vimfiles}/macros
|
||||
doins runtime/macros/manpager.sh
|
||||
fperms a+x ${vimfiles}/macros/manpager.sh
|
||||
fi
|
||||
|
||||
newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
|
||||
# keep in sync with 'complete ... -F' list
|
||||
bashcomp_alias vim ex vi view rvim rview vimdiff
|
||||
|
||||
# We shouldn't be installing the ex or view man page symlinks, as they
|
||||
# are managed by eselect-vi
|
||||
rm -f "${ED}"/usr/share/man/man1/{ex,view}.1
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Update documentation tags (from vim-doc.eclass)
|
||||
update_vim_helptags
|
||||
|
||||
# Make convenience symlinks
|
||||
update_vim_symlinks
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
# Update documentation tags (from vim-doc.eclass)
|
||||
update_vim_helptags
|
||||
|
||||
# Make convenience symlinks
|
||||
update_vim_symlinks
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
DIST gentoopm-0.2.9.tar.bz2 24652 SHA256 49d757e521a9a254645ca1f765e9ea86c082f68263c697dec84acd2d80d48368 SHA512 e7d1daa811eb6c0877c2bec98b72bce61380802fe704f271a4df6383506d62ba661eb83ac9afd432627e2f10bf38840796768a565b80b6489563cfc54ed81ae7 WHIRLPOOL 2bc4fcace43b306c6677a37bd675042214bef36a7f4977be944d76fcbba735b54490c8d60add7e15fa30ab0213a8fab14c488a55f6da67b0e1cac10eb30e4a20
|
||||
EBUILD gentoopm-0.2.9.ebuild 908 SHA256 6b651818df9283016932a770914e9cd8af58385c2c4151c10638bac417592eac SHA512 0ebb428189089c730d478817cb3d3c4d4aa35ce278a5e5c195fee4be3dbfd4ceb6a7d045083312770512d2eb479c97628231b1121e3841cba5039504a8867904 WHIRLPOOL 0c1398bd0bce546cb1e5c77138dd453bf0ef7128fdd93dc4995b6014bf6806da9e3513e2d72ef259651459214fda7df83f4c924851abdad7ec7be0cbc40ce59f
|
||||
EBUILD gentoopm-9999.ebuild 1035 SHA256 4b8edfd7ec2277e2f075d9887a8153c031cee0e7eb5c0231108d4b9262285a7d SHA512 e6a9836c6e849c76e2a032f626fd4b898c5453cdd1dd2709e5be15ae2b9444a932e1f09a852ac17b335acd33037513733e78296d66e747fb29834e87f5ff5c8b WHIRLPOOL 7349fed963cb064bdd4f44a0ad5a5ba56f3463fc1e5ece9dd9235972ecf04d3cb44895d9bd4a41e4a3297b4e34795f2541a48c553692bc97acb88e6a62ecf597
|
||||
MISC ChangeLog 3447 SHA256 8fa3958936d9e6f8f18b3aee420232e8e189cc61fa761a27246f86304c7b267c SHA512 75168e79465db114e1cba477afbe6a90e3643038836f17229ac9baf2b3617a1c5e404a457811f0cb9878521f0fc80bbede780b4ce4925e43a2b8b16c51e6c547 WHIRLPOOL e62242722abde40c1edf6dbc792c35fa1d5c71de671d7983fb8f7a539169e72ba775011e05780921b02a8563635edbcefe7beec2b1ce8f1dffcd86221f0181e7
|
||||
MISC ChangeLog 3653 SHA256 b2926877abc4ca955c3deab36f6c013762ee64c80bbd90beee688b9cacc8237e SHA512 d2ce6c1dec7a4a7f3d4c3a990b4d5fde245a62c765b97596ff3d0b9a03816f726170ce61072ee73fa99dbbcfe8e5c4f88777b4202277919465d5e0b2ebe376f2 WHIRLPOOL e133cc282cb72fd50e86e3d7eebf783911a67719e8ecf9825781fabbddb3934ad2a4283b8e08e7f7c4d106a39595f783b71db91b3f5942725797a8ee2cb9114e
|
||||
MISC ChangeLog-2015 9550 SHA256 acb14eb487ae16dfab21b278a891c3ebec1c781cd7154baf5aab028f294a3451 SHA512 73e7a3a7863d93fc10b116ba43a974d28ba040042f89ea440b2de2d33dbf09084c263fa6207f57ae4fa6691d68a759d35390913caf83551c5607480ecfaefa5f WHIRLPOOL 08bc7d65c5bf1142a7097fa4b627eb8ffb87d6c677c6a601dd22fb7cf23f0acdbd418911ea9bf6b4adea10957a16c50f26a2f1080835dcab554a577613b4fb90
|
||||
MISC metadata.xml 527 SHA256 4ce95cdf83d7dc68c4b06314933d03a8c20a9fbeb6ddfcde3eef36bcce02ad13 SHA512 422137d02e652646b6e1cc176d4b5209dd7831dcd63eb1c47ce58105aee6648817cd79b67c8dcc1002cb97c53112b0ec75957821af0935275ee5125013c7ff2e WHIRLPOOL 9bf6c83816ed036411d4f02975114f294891e87e52ed085a3429df485a2f8f0f2f43cb33f99d5a47cf7dc6f6885752c748857cf19c3ee526557570306cd62082
|
||||
|
@ -1,5 +1,7 @@
|
||||
DIST sqlcipher-3.3.0.tar.gz 10235736 SHA256 18f5df41a9806bc8eece00fde24c85107bd4807a5ae7057f9a6188de5d8fd82a SHA512 9f24fcd25811aabe36f5e27cdfc117a02ad3578a95691e9b3b7f41ee47ee0c176243c4f35a8415a17a3828d4534aae58a1097b75a950937706b10a79f2c92c81 WHIRLPOOL 1f4bdaf9ead7e2834d1efd2612c74eb91df2bbc17dfa4d404a72db4ef837b6b7a8430da522b6ec708f8873482c2de318a3cf65aebfdc53c200cad53a4ded9e6b
|
||||
DIST sqlcipher-3.4.0.tar.gz 13600901 SHA256 99b702ecf796de02bf7b7b35de4ceef145f0d62b4467a86707c2d59beea243d0 SHA512 c9b7db77b742a61b5befc33f63070a2970137e0c57892ba554a37e3ca51e42dd1164a6789d21958375ed7f38ee919bfc1332eb9da8307e6fa3805d9f9c409d9c WHIRLPOOL 644b4193dc128a2bbb5ba71867d6e919ae22894143ffc3c8d6a8d103aa8ed22795cfa2b7e1e04e54f38df00c86e0534bf04be1bc9df92be32c56da6b834376d7
|
||||
EBUILD sqlcipher-3.3.0.ebuild 978 SHA256 f85db23b476d280dd3a07af4b2f8d9782e6a36e5ef68c7a2b95293889682abbf SHA512 03af5e0b044c19624036b8332e2485b34220d3a1f635b3b149df58a619a51c2a1fabde05987bcae1b583879b669036e1bd49666734852aa02389c0dfe7b9694b WHIRLPOOL f39451140154eb5ac415f14e924a7d001132273bb379b3852cf62250283cff0d6b039a7bb70eb5268695710b91c23671cb82ba7dd3c7bc6b9e0ec4e5befcac5e
|
||||
MISC ChangeLog 2987 SHA256 47dbca03063582b0e748cb4c1869199a04ab6148765f18843b3fdd97bf39d16e SHA512 c3fd94c10fc40db358bf63e70cfc5cb06343b1380dd9bbb55f0c30f0475339d8deae4ea4f26aaf54ea3fb130e70d4b5f52bd4d1fed3a0929fa79ddda57b1f7d6 WHIRLPOOL a0cc5e2bf9db8bc46b7a9153001d8271d765ffe276a4a7856e13887cbda383fadb2793d8ffdb7745c03137d5ce48149bda4a9e8c6355ac64f5dbb525087dc53f
|
||||
EBUILD sqlcipher-3.4.0.ebuild 1229 SHA256 b729d67471cc1d932f05134693ac16ce2c0106d23f1aa3727f68b96318e228c7 SHA512 a517ad31a8438873320191a71e267236ff24dcf04cbd94df6089367bf5fc63f1ce2e370ea0534532d65c6e0ba120d7877edef7a5d11548905e3384974a310bc9 WHIRLPOOL 62f77f820afa4e53bbd4173181e0bdf2ea886c3bb8c56785b26eec193a9b50deac5dcf505190649db21a77b5d4b0336f17b93c3322ba825f10e557c99ce4b9c8
|
||||
MISC ChangeLog 3303 SHA256 ca1fed110d6d3533c9ba4cabfb944f61bd77376678acdd498ec992a2995c00ff SHA512 ad824a603e391dd222f90c4bd914831168e1ce04a04b2bcf392bc9f0e5fff8c8af39b5c1ff1e061dafbdf61d0e99961cdc166b97d823af9814806ec841dfff47 WHIRLPOOL 3edc31b08cff0ccbdd3c3186f5e3a41886cd7e44761c4c7d3533f59cabc21da695500dba65e9282c9826c9df2a5c8ff262a24d16eed19a1580e402c157569477
|
||||
MISC ChangeLog-2015 461 SHA256 578d8843f8f55f30aff6f251842f7bed4ffb9d18a0cb29c2f9760853554e2048 SHA512 b78d5725ffa1650432449c589e8f83069f083820c12302b24b2e8b887ae520ebadeddf201f96a690b04fac03b562d234ebcdcbf76d94e1f703cd61bd06796544 WHIRLPOOL c7901507ed4911e05d75233781eb2f42176dc3e03081a7057136d67bf24e7e25ec7692c8eb63be2def907a4980742dceb70771a8505fbe1f63390756f837c03a
|
||||
MISC metadata.xml 341 SHA256 d3d590bffb97239d4199ef2c39400da6d4bfafcda0b86d69cd850ddcbb727a40 SHA512 b387658993279fb3c74c7647b36035f5c0e0e3e81a3cf4eab28f3dac19319f0b6958cfa16fab30295e5508c0810d601b0e2899710f57e992886f35c781e37dfa WHIRLPOOL 92b45938556062eca687b1ca6fb2d1379dcaa40bd58fa5cecb88a8043d58e82b3751b39c7c08ae851347f898c48c437d3b5845d9969912163ca56d3bdf731b3d
|
||||
|
@ -0,0 +1,56 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib-minimal
|
||||
|
||||
DESCRIPTION="Full Database Encryption for SQLite"
|
||||
HOMEPAGE="https://www.zetetic.net/sqlcipher/"
|
||||
SRC_URI="https://github.com/sqlcipher/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="readline libressl static-libs tcl test"
|
||||
|
||||
# Tcl is always needed by buildsystem
|
||||
RDEPEND="
|
||||
!libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
|
||||
libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] )
|
||||
readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
|
||||
tcl? ( dev-lang/tcl:=[${MULTILIB_USEDEP}] )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/tcl:*"
|
||||
|
||||
# Testsuite requires compilation with TCL, bug #582584
|
||||
REQUIRED_USE="test? ( tcl )"
|
||||
|
||||
DOCS=( README.md )
|
||||
|
||||
src_prepare() {
|
||||
append-cflags -DSQLITE_HAS_CODEC
|
||||
|
||||
eapply_user
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE=${S} \
|
||||
econf \
|
||||
--enable-fts3 \
|
||||
--enable-fts4 \
|
||||
--enable-fts5 \
|
||||
--enable-json1 \
|
||||
--enable-tempstore \
|
||||
$(use_enable readline) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable tcl)
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
prune_libtool_files
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
https://bugs.gentoo.org/575232
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index fa5977b..2832c69 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -416,6 +416,10 @@ AC_HEADER_STDC
|
||||
AC_LIBTOOL_WIN32_DLL
|
||||
# This causes monodis to not link correctly
|
||||
#AC_DISABLE_FAST_INSTALL
|
||||
+
|
||||
+#lookup makedev() header
|
||||
+AC_HEADER_MAJOR
|
||||
+
|
||||
AM_PROG_LIBTOOL
|
||||
# Use dolt (http://dolt.freedesktop.org/) instead of libtool for building.
|
||||
DOLT
|
||||
diff --git a/mono/io-layer/processes.c b/mono/io-layer/processes.c
|
||||
index 53c271a..7ff8d03 100644
|
||||
--- a/mono/io-layer/processes.c
|
||||
+++ b/mono/io-layer/processes.c
|
||||
@@ -45,6 +45,13 @@
|
||||
#include <utime.h>
|
||||
#endif
|
||||
|
||||
+/* makedev() macro */
|
||||
+#ifdef MAJOR_IN_MKDEV
|
||||
+#include <sys/mkdev.h>
|
||||
+#elif defined MAJOR_IN_SYSMACROS
|
||||
+#include <sys/sysmacros.h>
|
||||
+#endif
|
||||
+
|
||||
/* sys/resource.h (for rusage) is required when using osx 10.3 (but not 10.4) */
|
||||
#ifdef __APPLE__
|
||||
#include <TargetConditionals.h>
|
@ -0,0 +1,7 @@
|
||||
AUX caliper-1.5.0-cmake.patch 1084 SHA256 ad010aadc82051e0dcdb34e189903df3773ad55a95b8d9614d31ef182feef125 SHA512 668499dd540cafdb6c8a3c7c08c4973ad3181f7c16f2c62db765e05cff7b82c1a59d849f669f7c9e9e48e9acb46437e76942e7e5fcd448eb386c14872d5fdb4c WHIRLPOOL dd6a6f6756cf0dbff66fe3de447b2202164b79ed470ef83cd9aa55fd60b31a3c821b088740308c47c1f53925b9531abe164e62513627a9ad9b1ed1f98f48e5d9
|
||||
AUX caliper-1.5.0-multilib.patch 10636 SHA256 542cac36e6edfd4a734e915af6f085e264bb54fc336188b0c0d740c43b5d38f7 SHA512 96c83c3cc67d6a3cb71b077ce7d18e664582670894b19cfbe6e097fe446865cbaaa5e55b6f61ea315a4ab18bcc43270c0e137246e7659f66ebc5b3c0c8695ccc WHIRLPOOL fe8a2d1ef5a265bbd1c26bd750d0f0d10d7e5d5a6736e391f3926adb72c03f05b743c7ad108e549d0a6d3e8c2190d3bf3f8bb44c838fe51b1cc3ccdc545f565c
|
||||
AUX caliper-1.5.0-python2.patch 765 SHA256 ca6c700c62f6e51cef9b36ed51d005b4511848e0efa569e93c2c68ae2f8b0c22 SHA512 58b6117e62f78e86fe95610b2e3fa3b7469790d1d635df3d7d8e861abbd875ccc6e8dc04eff2b3b2eae8d88e431b19aef49411b05758d3ea0ea73ae53dfce1d8 WHIRLPOOL c365ba8d8711e73f6d7566436c1e74b568d09e4f60e86b303f3d9cab2c32bb9de549d3041797ca734ed91891cb97600dd7b8cd747a1a63fdd7ccb2008729daea
|
||||
DIST caliper-1.5.0.tar.gz 167184 SHA256 f6580f88a2bc500590a3412ecc3e8fe245a03f111aef129cd1ac9d55a31fca93 SHA512 8f54d453efc4a1d3b6ef5cfd9c07726813850942c694378ebcf03dd9dfb390c67473ff621627cc78209b811e9591e6c8542697dbc23ee05ceef3a1fb8af2bb4e WHIRLPOOL 8a8d92cf1c4ff66a2b4181939ff9519227c3f8c4f92cc9ee395ff7d61bb224144efb94c2f3c88b74af495773dece3771e5b1295321ba48435721f545903c984c
|
||||
EBUILD caliper-1.5.0.ebuild 725 SHA256 df361e037b497092c9000618aa6052620e91167ee9d992c6c31d6f807ef75100 SHA512 488aa5c3198a64627cd3130d14a95d75a1d8e9d51d8feb553a8c0a0254d355d72efee08af797cf4ec8590d54c947b074b2d8e7dc2b97dcc798080f3bbf4bf5bb WHIRLPOOL 1ddcca8f6749f0ca8758b8e2c8e09b03da5ccfe41b3782198e72c69dab20162a494e157ca8aa35e82736367c058873a52acf7e385fb2aaff7822cc501cf51f49
|
||||
MISC ChangeLog 508 SHA256 fa5fbfa5fb7cd36aedaf003f261ff34e472ad669ff1c747c9bf79f135b27e2eb SHA512 c1f9844861c57af76013092e46de6c62b65ab4cf7c336e10d95ab334b20fac3784718a3f95489f776485a5241c959690f60524e43d580cc538b6ed13cb65b47c WHIRLPOOL 22129d7affbe370cd8322b26b879c9674e51b34122441284535cb6ae22eab3f713c719918438fa41ed856984b4fb405b7ff265afd0f209af8cc6f0150243f1c3
|
||||
MISC metadata.xml 330 SHA256 c259c21f7feab8f9bfc0a6472350bb6a99ce646aaf5a97ba0fb38a05cd2bbdab SHA512 c57e35d5483149031fe76ca273160e1912ad840b019ab2ea06bc5c9efa4c33c7d72c251af6a0b85b0f937a98f664b4400304b81d454ce9b9b58a026cfcbac9ee WHIRLPOOL 8d5c740069ab6cf7d8d5825344f6c834ce446c943f480dee6f91ea244166504405c6922deab1c4fbe0ecc8c196db78e1374c8765b1c85125fed2fbb931da0d7f
|
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="Application Introspection System"
|
||||
HOMEPAGE="http://computation.llnl.gov/projects/caliper"
|
||||
SRC_URI="https://github.com/LLNL/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
net-misc/curl
|
||||
sys-libs/libunwind
|
||||
dev-libs/papi
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
#thttps://github.com/LLNL/Caliper/pull/23
|
||||
#thttps://github.com/LLNL/Caliper/pull/24
|
||||
#thttps://github.com/LLNL/Caliper/pull/25
|
||||
PATCHES=( "${FILESDIR}/${P}-cmake.patch"
|
||||
"${FILESDIR}/${P}-python2.patch"
|
||||
"${FILESDIR}/${P}-multilib.patch"
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${P^c}"
|
@ -0,0 +1,33 @@
|
||||
From f3f634a7e3eb76c8206739a362d3926e8a5ff1d7 Mon Sep 17 00:00:00 2001
|
||||
From: Christoph Junghans <junghans@lanl.gov>
|
||||
Date: Wed, 30 Nov 2016 10:12:31 -0700
|
||||
Subject: [PATCH] FindLibcurl.cmake: add path suffix
|
||||
|
||||
Most linux distros put curl.h in a subdir curl
|
||||
---
|
||||
cmake/FindLibcurl.cmake | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/cmake/FindLibcurl.cmake b/cmake/FindLibcurl.cmake
|
||||
index c3dcce1..ad0ac5b 100644
|
||||
--- a/cmake/FindLibcurl.cmake
|
||||
+++ b/cmake/FindLibcurl.cmake
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# - Find libcurl
|
||||
#
|
||||
-# LIBCURL_INCLUDE_DIR - Path to libcurl.h
|
||||
+# LIBCURL_INCLUDE_DIR - Path to curl.h
|
||||
# LIBCURL_LIBRARY - List of libraries for using libcurl
|
||||
# LIBCURL_FOUND - True if libcurl was found
|
||||
|
||||
@@ -9,8 +9,8 @@ if(LIBCURL_INCLUDE_DIR)
|
||||
set(LIBCURL_FIND_QUIETLY true)
|
||||
endif()
|
||||
|
||||
-find_path(LIBCURL_INCLUDE_DIR curl.h)
|
||||
find_library(LIBCURL_LIBRARY curl)
|
||||
+find_path(LIBCURL_INCLUDE_DIR curl.h PATH_SUFFIXES curl)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(Libcurl DEFAULT_MSG LIBCURL_LIBRARY LIBCURL_INCLUDE_DIR)
|
@ -0,0 +1,271 @@
|
||||
From b296fb1d9db532a14c815d6e90ec606a32f570be Mon Sep 17 00:00:00 2001
|
||||
From: Christoph Junghans <junghans@lanl.gov>
|
||||
Date: Wed, 30 Nov 2016 11:01:58 -0700
|
||||
Subject: [PATCH] cmake: add multilib support
|
||||
|
||||
---
|
||||
CMakeLists.txt | 13 ++++++++-----
|
||||
src/caliper-stub/CMakeLists.txt | 8 ++++----
|
||||
src/caliper/CMakeLists.txt | 6 +++---
|
||||
src/common/CMakeLists.txt | 8 ++++----
|
||||
src/common/csv/CMakeLists.txt | 2 +-
|
||||
src/fortran/CMakeLists.txt | 2 +-
|
||||
src/reader/CMakeLists.txt | 6 +++---
|
||||
src/services/callpath/CMakeLists.txt | 2 +-
|
||||
src/services/mpiwrap/CMakeLists.txt | 4 ++--
|
||||
src/services/ompt/CMakeLists.txt | 2 +-
|
||||
src/services/papi/CMakeLists.txt | 2 +-
|
||||
src/services/recorder/CMakeLists.txt | 2 +-
|
||||
src/tools/cali-graph/CMakeLists.txt | 2 +-
|
||||
src/tools/cali-query/CMakeLists.txt | 2 +-
|
||||
src/tools/cali-stat/CMakeLists.txt | 2 +-
|
||||
src/tools/util/CMakeLists.txt | 6 +++---
|
||||
16 files changed, 36 insertions(+), 33 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 3088112..e3e2384 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -16,6 +16,9 @@ set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake;${CMAKE_MODULE_PATH}")
|
||||
include(FindLibunwind)
|
||||
include(FindPAPI)
|
||||
include(FindLibcurl)
|
||||
+
|
||||
+include(GNUInstallDirs)
|
||||
+
|
||||
# Optional Fortran
|
||||
option(WITH_FORTRAN "Install Fortran interface and build test programs")
|
||||
|
||||
@@ -131,15 +134,15 @@ configure_file(
|
||||
@ONLY)
|
||||
|
||||
install(FILES ${PROJECT_BINARY_DIR}/caliper-config.cmake
|
||||
- DESTINATION share/cmake/caliper)
|
||||
+ DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/cmake/caliper)
|
||||
install(EXPORT caliper
|
||||
- DESTINATION share/cmake/caliper)
|
||||
+ DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/cmake/caliper)
|
||||
|
||||
install(FILES ${PROJECT_BINARY_DIR}/caliper-config.h
|
||||
- DESTINATION include/caliper)
|
||||
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/caliper)
|
||||
|
||||
install(FILES ${PROJECT_BINARY_DIR}/caliper.pc
|
||||
- DESTINATION share/pkgconfig)
|
||||
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
||||
|
||||
add_subdirectory(src)
|
||||
if (WITH_TESTS)
|
||||
@@ -149,4 +152,4 @@ endif()
|
||||
add_subdirectory(doc)
|
||||
|
||||
# Install exports
|
||||
-#install(EXPORT caliper DESTINATION lib/cmake)
|
||||
+#install(EXPORT caliper DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake)
|
||||
diff --git a/src/caliper-stub/CMakeLists.txt b/src/caliper-stub/CMakeLists.txt
|
||||
index b796f47..d168875 100644
|
||||
--- a/src/caliper-stub/CMakeLists.txt
|
||||
+++ b/src/caliper-stub/CMakeLists.txt
|
||||
@@ -12,9 +12,9 @@ add_library(caliper-stub ${CALIPER_STUB_CXX_SOURCES})
|
||||
|
||||
install(TARGETS caliper-stub-c
|
||||
EXPORT caliper-stub-c
|
||||
- ARCHIVE DESTINATION lib
|
||||
- LIBRARY DESTINATION lib)
|
||||
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
install(TARGETS caliper-stub
|
||||
EXPORT caliper-stub
|
||||
- ARCHIVE DESTINATION lib
|
||||
- LIBRARY DESTINATION lib)
|
||||
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
diff --git a/src/caliper/CMakeLists.txt b/src/caliper/CMakeLists.txt
|
||||
index 4c25990..38b58ac 100644
|
||||
--- a/src/caliper/CMakeLists.txt
|
||||
+++ b/src/caliper/CMakeLists.txt
|
||||
@@ -26,9 +26,9 @@ foreach (_extlib ${CALIPER_EXTERNAL_LIBS})
|
||||
target_link_libraries(caliper ${_extlib})
|
||||
endforeach()
|
||||
|
||||
-install(FILES ${CALIPER_HEADERS} DESTINATION include/caliper)
|
||||
+install(FILES ${CALIPER_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/caliper)
|
||||
|
||||
install(TARGETS caliper
|
||||
EXPORT caliper
|
||||
- ARCHIVE DESTINATION lib
|
||||
- LIBRARY DESTINATION lib)
|
||||
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
|
||||
index 73666fb..0c0b441 100644
|
||||
--- a/src/common/CMakeLists.txt
|
||||
+++ b/src/common/CMakeLists.txt
|
||||
@@ -36,10 +36,10 @@ add_library(caliper-common
|
||||
$<TARGET_OBJECTS:c-util>
|
||||
${CALIPER_COMMON_SOURCES})
|
||||
|
||||
-install(FILES ${CALIPER_COMMON_HEADERS} DESTINATION include/caliper)
|
||||
-install(FILES ${CALIPER_UTIL_HEADERS} DESTINATION include/caliper/util)
|
||||
+install(FILES ${CALIPER_COMMON_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/caliper)
|
||||
+install(FILES ${CALIPER_UTIL_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/caliper/util)
|
||||
|
||||
install(TARGETS caliper-common
|
||||
EXPORT caliper
|
||||
- ARCHIVE DESTINATION lib
|
||||
- LIBRARY DESTINATION lib)
|
||||
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
diff --git a/src/common/csv/CMakeLists.txt b/src/common/csv/CMakeLists.txt
|
||||
index ef4357a..1f6f506 100644
|
||||
--- a/src/common/csv/CMakeLists.txt
|
||||
+++ b/src/common/csv/CMakeLists.txt
|
||||
@@ -13,5 +13,5 @@ if (${BUILD_SHARED_LIBS})
|
||||
set_property(TARGET caliper-csv PROPERTY POSITION_INDEPENDENT_CODE TRUE)
|
||||
endif()
|
||||
|
||||
-install(FILES ${CALIPER_CSV_HEADERS} DESTINATION include/caliper/csv)
|
||||
+install(FILES ${CALIPER_CSV_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/caliper/csv)
|
||||
|
||||
diff --git a/src/fortran/CMakeLists.txt b/src/fortran/CMakeLists.txt
|
||||
index c81323c..9c57f47 100644
|
||||
--- a/src/fortran/CMakeLists.txt
|
||||
+++ b/src/fortran/CMakeLists.txt
|
||||
@@ -6,4 +6,4 @@ set_target_properties(testf03 PROPERTIES LINKER_LANGUAGE CXX)
|
||||
|
||||
target_link_libraries(testf03 caliper)
|
||||
|
||||
-install(FILES caliper.f90 DESTINATION share/fortran)
|
||||
+install(FILES caliper.f90 DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/fortran)
|
||||
diff --git a/src/reader/CMakeLists.txt b/src/reader/CMakeLists.txt
|
||||
index 5d23d24..3ca79b9 100644
|
||||
--- a/src/reader/CMakeLists.txt
|
||||
+++ b/src/reader/CMakeLists.txt
|
||||
@@ -21,9 +21,9 @@ add_library(caliper-reader ${CALIPER_READER_SOURCES})
|
||||
|
||||
target_link_libraries(caliper-reader caliper-common)
|
||||
|
||||
-install(FILES ${CALIPER_READER_HEADERS} DESTINATION include/caliper)
|
||||
+install(FILES ${CALIPER_READER_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/caliper)
|
||||
|
||||
install(TARGETS caliper-reader
|
||||
EXPORT caliper
|
||||
- ARCHIVE DESTINATION lib
|
||||
- LIBRARY DESTINATION lib)
|
||||
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
diff --git a/src/services/callpath/CMakeLists.txt b/src/services/callpath/CMakeLists.txt
|
||||
index dd47570..1f49f36 100644
|
||||
--- a/src/services/callpath/CMakeLists.txt
|
||||
+++ b/src/services/callpath/CMakeLists.txt
|
||||
@@ -3,7 +3,7 @@ include_directories(${LIBUNWIND_INCLUDE_DIR})
|
||||
set(CALIPER_CALLPATH_SOURCES
|
||||
Callpath.cpp)
|
||||
|
||||
-# install(TARGETS caliper-callpath DESTINATION lib)
|
||||
+# install(TARGETS caliper-callpath DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
add_library(caliper-callpath OBJECT ${CALIPER_CALLPATH_SOURCES})
|
||||
|
||||
diff --git a/src/services/mpiwrap/CMakeLists.txt b/src/services/mpiwrap/CMakeLists.txt
|
||||
index 53a8377..c381347 100644
|
||||
--- a/src/services/mpiwrap/CMakeLists.txt
|
||||
+++ b/src/services/mpiwrap/CMakeLists.txt
|
||||
@@ -27,6 +27,6 @@ target_link_libraries(caliper-mpiwrap ${MPI_C_LIBRARIES})
|
||||
|
||||
install(TARGETS caliper-mpiwrap
|
||||
EXPORT caliper
|
||||
- ARCHIVE DESTINATION lib
|
||||
- LIBRARY DESTINATION lib)
|
||||
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
add_caliper_service("mpi CALIPER_HAVE_MPI")
|
||||
diff --git a/src/services/ompt/CMakeLists.txt b/src/services/ompt/CMakeLists.txt
|
||||
index f0e4085..8563eb2 100644
|
||||
--- a/src/services/ompt/CMakeLists.txt
|
||||
+++ b/src/services/ompt/CMakeLists.txt
|
||||
@@ -8,7 +8,7 @@ set(CALIPER_OMPT_SOURCES
|
||||
# target_link_libraries(caliper-ompt caliper-common)
|
||||
# target_link_libraries(caliper-ompt caliper)
|
||||
|
||||
-# install(TARGETS caliper-ompt DESTINATION lib)
|
||||
+# install(TARGETS caliper-ompt DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
add_library(caliper-ompt OBJECT ${CALIPER_OMPT_SOURCES})
|
||||
|
||||
diff --git a/src/services/papi/CMakeLists.txt b/src/services/papi/CMakeLists.txt
|
||||
index 70dab41..fa971cc 100644
|
||||
--- a/src/services/papi/CMakeLists.txt
|
||||
+++ b/src/services/papi/CMakeLists.txt
|
||||
@@ -9,7 +9,7 @@ set(CALIPER_PAPI_SOURCES
|
||||
# target_link_libraries(caliper-papi caliper)
|
||||
# target_link_libraries(caliper-papi ${PAPI_LIBRARIES})
|
||||
|
||||
-# install(TARGETS caliper-papi DESTINATION lib)
|
||||
+# install(TARGETS caliper-papi DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
add_library(caliper-papi OBJECT ${CALIPER_PAPI_SOURCES})
|
||||
|
||||
diff --git a/src/services/recorder/CMakeLists.txt b/src/services/recorder/CMakeLists.txt
|
||||
index c0543d4..c5c6ea8 100644
|
||||
--- a/src/services/recorder/CMakeLists.txt
|
||||
+++ b/src/services/recorder/CMakeLists.txt
|
||||
@@ -7,7 +7,7 @@ set(CALIPER_RECORDER_SOURCES
|
||||
# target_link_libraries(caliper-recorder caliper-common)
|
||||
# target_link_libraries(caliper-recorder caliper)
|
||||
|
||||
-# install(TARGETS caliper-recorder DESTINATION lib)
|
||||
+# install(TARGETS caliper-recorder DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
add_service_sources(${CALIPER_RECORDER_SOURCES})
|
||||
add_caliper_service("recorder")
|
||||
diff --git a/src/tools/cali-graph/CMakeLists.txt b/src/tools/cali-graph/CMakeLists.txt
|
||||
index 2b90f51..e3aa7c1 100644
|
||||
--- a/src/tools/cali-graph/CMakeLists.txt
|
||||
+++ b/src/tools/cali-graph/CMakeLists.txt
|
||||
@@ -13,4 +13,4 @@ target_link_libraries(cali-graph caliper-common)
|
||||
target_link_libraries(cali-graph caliper-tools-util)
|
||||
target_link_libraries(cali-graph caliper)
|
||||
|
||||
-install(TARGETS cali-graph DESTINATION bin)
|
||||
+install(TARGETS cali-graph DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
diff --git a/src/tools/cali-query/CMakeLists.txt b/src/tools/cali-query/CMakeLists.txt
|
||||
index e013e96..72202be 100644
|
||||
--- a/src/tools/cali-query/CMakeLists.txt
|
||||
+++ b/src/tools/cali-query/CMakeLists.txt
|
||||
@@ -13,4 +13,4 @@ target_link_libraries(cali-query caliper-common)
|
||||
target_link_libraries(cali-query caliper-tools-util)
|
||||
target_link_libraries(cali-query caliper)
|
||||
|
||||
-install(TARGETS cali-query DESTINATION bin)
|
||||
+install(TARGETS cali-query DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
diff --git a/src/tools/cali-stat/CMakeLists.txt b/src/tools/cali-stat/CMakeLists.txt
|
||||
index 35395d9..d337abb 100644
|
||||
--- a/src/tools/cali-stat/CMakeLists.txt
|
||||
+++ b/src/tools/cali-stat/CMakeLists.txt
|
||||
@@ -13,4 +13,4 @@ target_link_libraries(cali-stat caliper-common)
|
||||
target_link_libraries(cali-stat caliper-tools-util)
|
||||
target_link_libraries(cali-stat caliper)
|
||||
|
||||
-install(TARGETS cali-stat DESTINATION bin)
|
||||
+install(TARGETS cali-stat DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
diff --git a/src/tools/util/CMakeLists.txt b/src/tools/util/CMakeLists.txt
|
||||
index be4e393..652194c 100644
|
||||
--- a/src/tools/util/CMakeLists.txt
|
||||
+++ b/src/tools/util/CMakeLists.txt
|
||||
@@ -5,9 +5,9 @@ set(CALIPER_TOOLS_UTIL_HEADERS
|
||||
|
||||
add_library(caliper-tools-util ${CALIPER_TOOLS_UTIL_SOURCES})
|
||||
|
||||
-install(FILES ${CALIPER_TOOLS_UTIL_HEADERS} DESTINATION include/caliper)
|
||||
+install(FILES ${CALIPER_TOOLS_UTIL_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/caliper)
|
||||
|
||||
install(TARGETS caliper-tools-util
|
||||
EXPORT caliper
|
||||
- ARCHIVE DESTINATION lib
|
||||
- LIBRARY DESTINATION lib)
|
||||
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
--
|
||||
2.7.3
|
||||
|
@ -0,0 +1,22 @@
|
||||
From 916e2cc2d326575894c651947035afe06a6d936f Mon Sep 17 00:00:00 2001
|
||||
From: Christoph Junghans <junghans@lanl.gov>
|
||||
Date: Wed, 30 Nov 2016 10:53:58 -0700
|
||||
Subject: [PATCH] wrap.py: is not python3 compliant
|
||||
|
||||
---
|
||||
src/services/mpiwrap/wrap.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/services/mpiwrap/wrap.py b/src/services/mpiwrap/wrap.py
|
||||
index 7a3122f..86bb2f3 100755
|
||||
--- a/src/services/mpiwrap/wrap.py
|
||||
+++ b/src/services/mpiwrap/wrap.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/env python2
|
||||
#################################################################################################
|
||||
# Copyright (c) 2010, Lawrence Livermore National Security, LLC.
|
||||
# Produced at the Lawrence Livermore National Laboratory
|
||||
--
|
||||
2.7.3
|
||||
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>junghans@gentoo.org</email>
|
||||
<name>Christoph Junghans</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">LLNL/Caliper</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,5 +1,5 @@
|
||||
DIST libevent-0.1.0.tgz 9806 SHA256 de3d2ce16f5ab8798de1f059143a3367e59608fd12ec3b4b720fc64e4ba93435 SHA512 d49a24dcd9389ffe59e367d7c3b5d6e6cb07b5acc3f9c82cad9cd0fdcebf5feddcd7ec0bbc0c6d9eab450629e446575ce0ed711482557c4bc87cd4c6bc59f995 WHIRLPOOL e1523d10c59978f4f6c9341d7594c7c05a839101b980a75735f66a93831a05582688022183d656f720aad3f2211ef7538c808ad1570bfbd514726fec341c301b
|
||||
EBUILD pecl-libevent-0.1.0-r1.ebuild 387 SHA256 1607da8dec9c82d0a6abe651ef58addc421ccdd2d611d7879f1d32cb113c1d0b SHA512 ac0413959763c0d661d451f693c93b77dd22da2ae7ebc5c6cca392de36431a449eea35c4844a2aa29f3a63d9638171c9eb1b09d24c8a522d7eefeebb9a225510 WHIRLPOOL 2b4f04cfbf7bfe1b26515c065783663b22a293d32c688da05bee7e61992daa436efa18a0d0a94f95cb8b069ab66534dafb4462bc7c3c0eaf26e9769e2a18805c
|
||||
MISC ChangeLog 3149 SHA256 6495c5f61f688a2423702be61ca9bad58b60ea3dcd43a88bf94fd26f3ccacf76 SHA512 cf19e8b63356168f858dbd89e28759b272cbeadef4f21b98c70598ccd1b20a7567a57a7ffc9fce5162f71fd2e0316ac10ecd5ca31e61590a2f783b2bdfdbb79e WHIRLPOOL 0f46e528241ced6f898d1effcfa2e21e4a4fe512742a21c0ed201c6168284f9cd00f14e5de551421962b36e110b3dcbd3ce2007b9de4d1afa64f9b2be8d9e027
|
||||
EBUILD pecl-libevent-0.1.0-r2.ebuild 380 SHA256 4b7b0356c3e2f501d968afa0f85bacbf13e8468190fa53856d6364f04dacf6b8 SHA512 98f2a459cef0ba065e234067afcf99dd715898eb908f07538a61651be382531c07a7ddc8cd444b3118f9023b228cd498e9afb9492c8955a5d83dca73a736d90a WHIRLPOOL 71060c0a927689dbbddb6f0529d0e1a780f2cc8d478ad8aab9eb508a7b93bc6023ec72a944bb53240f64387363e4e4434b2c482038cab8f153630e10110c4af3
|
||||
MISC ChangeLog 3637 SHA256 898104954ebdbd6e7159b9e87fb9c75d5bcc6a44da21419fa689e04e63dfc743 SHA512 2d9d33091f72ad96918d8d8cf5770b5d9d264c40e396302cc19e62ff2a1264824c4600de193d30bc874a03a82b4a6da33b9ef05ad2ae5e3857f0275bf46ad4e5 WHIRLPOOL 66d3b2c6b10c60e67d49943af3d3f5e2b1ace6eab3a190cba05f698c0e80d143dd152209707253e83cbdb6cddb5c990661fb19424511de0a7b24fdb0c3a1e571
|
||||
MISC ChangeLog-2015 858 SHA256 d9d93aa8beb4b93cdded8708dd0f5189659cb2da3a82738f4b5d7fcf4cbf69ea SHA512 8611553732ef12c93910ae9ca73a18a926472b349664420f541f02f50b7f831fe068bd4394b8dd2becafaf249bd169a93561668c64b1e3ed50b570c89f458217 WHIRLPOOL cf7ba317c89059ab286bee30d9f68a69ad04d9a604ef674773300d834059c1fa04f32edea4c22c6cf1a0495f8b9e4177de3ae3a63ea51959c5e1f1ecc6f4ce86
|
||||
MISC metadata.xml 233 SHA256 6b21c6c49a436661f3c5e8ffdfc6e2078a7735a94b7f12f27fb20fb772ae1733 SHA512 a9b5c765633c7eacd7978444e065d5eef85ce8d71de4d1467dee2ad527384e676acabde6c9daaf1ee087c1661e744d4051c983fb707c7260ddd80e50190b137c WHIRLPOOL 69a379de7ea2c96561f2339e6080c3e5a4cbe83f5c40a3e72a27b7cfd75f454b758e79f43b5df407b088749028772218759f65e5c302ec26c5589935e7ccebbb
|
||||
|
@ -1,5 +1,5 @@
|
||||
DIST LZF-1.6.3.tgz 15545 SHA256 42ec458ea10128a801e8d39736b519ba81fa75d2a617d2777b7d6b3276601a5d SHA512 e9e27d338b5615e71883ad3d239832837256af16a165060c33f41d58ec71ad12795a33ccdd1dea0939453554ff447fa8c5a1e25151653f7c4605342906a551ce WHIRLPOOL 972e629958c978a771ee2e786af76e9d3c0f5297da48e5438207edd4ec5e24975df81d5b9962169d83b7f78720d5a118e07fae19ad784676f37ff88d34e75a2b
|
||||
EBUILD pecl-lzf-1.6.3.ebuild 372 SHA256 e25fc2108a401be74b4e80d7305d55b2c3fad2a8442e131526b5744d408d9770 SHA512 ac10943f5b88f7e0c4852e93fe8082f39aa7a82b4b5e66bb321659032798522d7843ee2f89cd54dc85cd4c13b3741f8ed9d83752d579bb5bb618008a2b5bc95e WHIRLPOOL affe93c6b86e59059d26b5bbde80f767d1e6b8378a9010fe3ffbe3111998d027392d7a11e924612458059aa038db45a09ca6572e6feefef1cd69ca1e57ed22d2
|
||||
MISC ChangeLog 2644 SHA256 54a9b8c9e519b0dd30cf8427dcbbdcd28a802e1e392f0eab53bae1e471fde1d5 SHA512 afd9748ec050eefdf1b679b94adaa3afb669de15eb4d0e50842e3d861ec3dd7f510b49219e650af9068f58ce809f5d164980d3d66ed6c2d2ee97e0aab4e00446 WHIRLPOOL caa437fe24f72f30c05c1f74e0e74abc2189960f9d5ea5f3f7fc3ba801cabacd03858c9c42c28ee4e1221dbdde41c5a2922e3bd814cd0a3823cbedaa082de3c4
|
||||
DIST LZF-1.6.5.tgz 16968 SHA256 dd116d12a3be985f42256650ce9a033fd3c4e8da4f2280c79fb9fd6a73199a4c SHA512 0c34bf7c62be1d963dd229733836103a965dc5e24e663f48fba4a65cd3aca2dcc311069c3fd90d944359051eae51ba427f28a024e2214638a4c7886c08d1912d WHIRLPOOL 4fe0e2548563f9a3628409c47f863112b53793f90a04950c0955526d866939a6983b30cb686b4aba59478eff67d838ac991eca86d272d841567fcdfeb22006fe
|
||||
EBUILD pecl-lzf-1.6.5.ebuild 365 SHA256 2d961740c34cdf4bd7fbd6d0c75228e1db63060ccb0044aff969c4b8f498429b SHA512 677605e34f99f76f8ddaa3c3d8ef1130141f03e3e1ac7993d36c90a8d1595314678e06d76205d4d1739b3071412d35da90c6f4cd30ad0fa05761c02c41dca2cb WHIRLPOOL e16e27091918fb6c9424a9790b3b47fa1b52daafab32e5340f1884f6f6ba73e11fc4fbdcc597912cbedd5b39f30e5ddecf32a3fca24825b7df0147778d930427
|
||||
MISC ChangeLog 2971 SHA256 5d22dc95f7f55a78f4c3bbda9757f0544f49ca1bf8caa841d99c0d6d1285c51a SHA512 926a9868d2eaeed66a343f5573d7deb6dde48d4895e019d5e320d80165d3865cdf65c2c36b14bbbc5a4052a653298e0e540bae8bb80d1e1c26922e7341a73430 WHIRLPOOL 6e8ef8b68bb682c0250fd9e962bd67800227e049cb8de26e87ae2c63da70ade69c893d0e9b9a7858a8d602602bd22770beb0930a802739f86f2dc7dd2acf1705
|
||||
MISC ChangeLog-2015 974 SHA256 3e0a0e6b779cd42a27d75badf29cfe92ec0dacc7c225fd9e3b732a41306dd648 SHA512 5e6687b893c6752675b9196be2e0d9d10b0266ea77e18f3296ee49aa873a0d9f202d05df0ad1e149de4dbc88b586040798c77dd31240126f3ef6b0193ac3592e WHIRLPOOL c6c684f0bb595771906912a37a1ee19e806cdaf7a1e85d765d2367f55b417d7cc6c4c82ea46393a6b316a3155b57083d64921687ec421f7420833b3d31f96747
|
||||
MISC metadata.xml 235 SHA256 b248157b2feece4fbe51f91e87ab0c0249a13655e50e070080763a2a6556606f SHA512 0b3e95bbf68eddf74289dad50f8828cffce2d904ff6f9bd5468177de979677cac11da84d1e0302c52b72085915b9d1b3496107172e5726520d51dad1981daf64 WHIRLPOOL d9032f2fa2b465d0658cb19728a50849c3ca8e021574651e7aa69a9f949f186bb43812034fffda1273cfa8fbbec663ee5f08fd30db366b96ab6945b7ed4291e0
|
||||
|
@ -1,16 +1,16 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
EAPI=6
|
||||
|
||||
PHP_EXT_NAME="lzf"
|
||||
PHP_EXT_PECL_PKG="LZF"
|
||||
PHP_EXT_INI="yes"
|
||||
PHP_EXT_ZENDEXT="no"
|
||||
USE_PHP="php5-6 php5-5 php5-4"
|
||||
USE_PHP="php5-6 php7-0"
|
||||
|
||||
inherit php-ext-pecl-r2
|
||||
inherit php-ext-pecl-r3
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
@ -1,6 +1,6 @@
|
||||
DIST PySocks-1.5.6.tar.gz 9189 SHA256 a62b35b13968ba3642a973d115ae6a11be886b5f5ae0841a3ecad4b4f1d7deb1 SHA512 3255591864c532f9ce3c0304d7b33165bb09c0a332fb0d126f61315e98f50e1af0f792517533166558fe457dce2d08f2b320adf9dd87b58618e0941d72daee49 WHIRLPOOL fd2b797c863aef1258b7f3e9f8e1abfa83df8d9387274f084cf731e5ae7b5d01230eb793d5d0f60734bdf178761eaec47a6c87634943c90f6a1fab7cca9d82df
|
||||
DIST PySocks-1.5.7.tar.gz 32480 SHA256 e51c7694b10288e6fd9a28e15c0bcce9aca0327e7b32ebcd9af05fcd56f38b88 SHA512 adcb504b938dacb3c5bd5bd28a9f2cd8311bb188dea1a1b65de13ef0b2b00af498a0e44280fff1ceaca4fed95281c070a13866cf13ee898cb564b4ef215ac4a4 WHIRLPOOL 57c9ebc6577b6fdcf883fed8cc5957330eb6848ec7c1bf164a34829832e17492bb9df433bacd9852ea4003d509c19108d5b540db918cf30322e2511fc567b336
|
||||
EBUILD PySocks-1.5.6.ebuild 507 SHA256 ea0085595aa5165adfb13177a258e77bc2c0bd69401d43766eef06c53697382e SHA512 73a983e4b61557a9d5a2e71f9f9915c28813d786711c6262c27a15f5416afb2feeaf35818fde58e31aaf94a9747c8e81c2ed53f98a81997461d10ce0c6c00510 WHIRLPOOL ad1b15733a0d4982e81533eae9d14665e18b93ca377fb7bc0734c0a9acc541ed0219e43748b982ffca01959f0a41f8828d1f86be8ea40bfdcadf28dfd7b5b9a0
|
||||
EBUILD PySocks-1.5.7.ebuild 510 SHA256 193b1703d4a3b680c7c9f5ff526e359a95f2527d787a494a05125168a4380f2e SHA512 4bab1bb68d84d6e3995d9ad15465e07551eff76fa59e970b0c6fa4364c10ce9f8c7dafc240e59a3c7ddf993bf89b03158c0157c808da803f73fce8570f3916e2 WHIRLPOOL d51f030c9f180d7ea6ba4785996dd9f4802618409c8a2c084f443f57f6241d39b0e279b19274540653c307d0b8ca7f2b60634c5c2a863d629645a986f4681dd9
|
||||
MISC ChangeLog 1313 SHA256 b25a50831537518d84797aa8f45e9386c7d54e5f2eac0320dd187cf1f4a75a0b SHA512 6b759b12c518589cacbf0e56f632628600ca386c255d950c509b62bb84771c3d51ecf8ede8820a3d19ac29cd8c699bd22da3edf8f616f10bbdafb3c882e2c258 WHIRLPOOL 9b9da744a76a080a801561e9646b42ec642ffc74099c15b07409f569eb93b822b427b17158b51119c1d78ffb3c29180d02bbcf755eb0e6e1c0a0e478b71bd45f
|
||||
EBUILD PySocks-1.5.7.ebuild 514 SHA256 9f7a5c0e088be3c7a6fb182beec750f5450e87b6a49e148742c24ae9009ab593 SHA512 fb25c5a6f7fb83bb290343a3708ed40738f59297029b0a39aef6be5f2fb15364c8b473cbce8510e36e4e292e7ec2521f022ade26745b99ac2bc10f53b46612e6 WHIRLPOOL cb54197c753413f93ab6c00b5b2e6ac5592eba494cccad8776e0d087a8131e51b8310c029cf181436909c46ae80d077b422126255c833caafad87c6e7590e129
|
||||
MISC ChangeLog 1401 SHA256 0bbbbddf90df9c71b1e07796365a3987a06cde37ef3870b5eb3d1c923377bec4 SHA512 e179e492929faf7dfab7ebe14cadbe7cfac641ae8f6d659fff76423424a0959039bd97bd83a6d3ddc9cb7b08ef4c2ba568e413c64be61d7159a8178a888af1fd WHIRLPOOL ff53674d97f359879c0a050aa7b8109febf14d9fae999c14a44dadd12750f69b9d0a6548526c5f6bafe5028b4d331fc5e3164edaa17680f3ffeceb238924e579
|
||||
MISC metadata.xml 443 SHA256 18012d26faf61b70d539f862f444a54277a3dd13667af2e316feaf43fefa8f15 SHA512 fcd74627d1b0d0d3e8ac8cb60d304fe47a173b485046de98190cb2a3192d114288fe8b54a037079276c97fc369fee8fa591fedf726be764bc5297adb4d581534 WHIRLPOOL e2d9715e4bb10607e399cb53ce91cc71652c56100b156158003ca2f97eb57281c5a92a0637204a6e2a0e30a810c0ceec38e7b59ebdfe21e364b06ce25d95f9cb
|
||||
|
@ -0,0 +1,5 @@
|
||||
AUX astroplan-0.2-ephem-import.patch 505 SHA256 61f9e8a3b25d18cc39eab86de9ec85ae6cd668a442d85dfebd840b3d41895440 SHA512 9ea80ff153f9da458d377eb99fefa5f0dfdf448af196150e47bd19d3c5071f975b7746c6fe91c0042e92b3349a44d7c0843025d8069084bd779ebdb7160f0d74 WHIRLPOOL 187fa28f5234569132f8d792c2fc741099cdec1160f29eb6ddfaf006165cffcda76102d79a3dcecc0b8c0b950281d150a01f88831d3ef839cf886adff01e3c0d
|
||||
DIST astroplan-0.2.tar.gz 264623 SHA256 427d6a890ea7bc4df0b8d0a4b607d060e6e2b230fa1224a648217790d8c1cba7 SHA512 ab98402d2b0daf64aea4a10934c8e33097b92d3b7de9a2346fa3e318e672c85966c050f560bb3fc4c247e2fdd4c94a4b158d6a0dff6af9c83d6411613c663bd9 WHIRLPOOL 6ab4ca9daf2daa8a6a16b06b7287473f149cf3261b2ef35a8f29a24f67e7c0d32edeef59c03fd1fe77f3050670a4c9488b4defe6e417f4925581ca300ca6a8f1
|
||||
EBUILD astroplan-0.2.ebuild 1473 SHA256 ab986227a1b5fa68dce182bd529769840e0dcfacd1d7315affabd9ed90746f67 SHA512 6b6eccf58c7085aa1559b7f544d817a3f39e9827855c1c5623905e5c079fbed189b132b07eb41dc8897f23cbc775c2ba827a29bc2b80026f9f9ab27b8bc64a03 WHIRLPOOL b4e9cb790a709e671e47fb06845613b8e6a549b9fc227026eec742341b5ff2d44167a457c61cf0577d86e6423f6fddb17badde06466e8b10be461aa6d47729db
|
||||
MISC ChangeLog 358 SHA256 780369f4f848a0447f102a2b2e0ccd59e0295c5292a622b2c7bb36735b130f51 SHA512 11b4d98b0ef2df1f88692d9330009d15cdef91b6a8eee27f146e1663ee0964879702d696f6595ccac1b814a7b544c5963ad7a6a290e3d6a947ba48aa222b3fe3 WHIRLPOOL 8640c3aa50c97a01ac597f704ba09407d78ed93200e2d2dc1868ba95e991ae25baeace5f31a23a800305b5085c9544d444bebd96f6b84d3f570a036f9660b7fc
|
||||
MISC metadata.xml 580 SHA256 edd6856050bd434d4305069934f9cf8a1788b9820def83c19cf6ff11bd94684c SHA512 16cb9da0545ab48966ee589d6f6ed9dbf011efbecf5eeddd3cbca35d1369ea35fe7dee7cf89ea735ca83058b1e2ab8232d2f404cba35d100798fdcc0ab46a083 WHIRLPOOL 72fc6e5c5c9d5d81e4e084a74b9986c643375e12202fce6d9040f12124bff056bcbd56e4188389c65eef7cb1ed0d4683758799f1a0514bec200168bcd245b12a
|
@ -0,0 +1,57 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
|
||||
inherit distutils-r1 virtualx xdg-utils
|
||||
|
||||
DESCRIPTION="Observation planning package for astronomers"
|
||||
HOMEPAGE="https://astroplan.readthedocs.org/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
|
||||
IUSE="doc test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/astropy[${PYTHON_USEDEP}]
|
||||
dev-python/pytz[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/astropy-helpers[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? (
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] )
|
||||
test? ( dev-python/pytest-mpl[${PYTHON_USEDEP}] )"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-ephem-import.patch )
|
||||
|
||||
python_prepare_all() {
|
||||
# use system astropy-helpers instead of bundled one
|
||||
sed -i -e '/auto_use/s/True/False/' setup.cfg || die
|
||||
xdg_environment_reset
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
if use doc; then
|
||||
python_setup
|
||||
VARTEXFONTS="${T}"/fonts \
|
||||
MPLCONFIGDIR="${BUILD_DIR}" \
|
||||
PYTHONPATH="${BUILD_DIR}"/lib \
|
||||
esetup.py build_sphinx --no-intersphinx
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
echo 'backend: Agg' > "${WORKDIR}"/matplotlibrc || die
|
||||
MATPLOTLIBRC="${WORKDIR}" virtx esetup.py test
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
--- a/astroplan/conftest.py.orig 2016-11-30 23:17:49.057492656 +0000
|
||||
+++ b/astroplan/conftest.py 2016-11-30 23:18:11.076451659 +0000
|
||||
@@ -38,7 +38,7 @@
|
||||
try:
|
||||
PYTEST_HEADER_MODULES['Astropy'] = 'astropy'
|
||||
PYTEST_HEADER_MODULES['pytz'] = 'pytz'
|
||||
- PYTEST_HEADER_MODULES['pyephem'] = 'pyephem'
|
||||
+ PYTEST_HEADER_MODULES['pyephem'] = 'ephem'
|
||||
PYTEST_HEADER_MODULES['matplotlib'] = 'matplotlib'
|
||||
PYTEST_HEADER_MODULES['nose'] = 'nose'
|
||||
PYTEST_HEADER_MODULES['pytest-mpl'] = 'pytest_mpl'
|
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>sci-astronomy@gentoo.org</email>
|
||||
<name>Gentoo Astronomy Project</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
Astroplan is an observation planning package for astronomers that can help
|
||||
you plan for everything but the clouds.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="pypi">astroplan</remote-id>
|
||||
<remote-id type="github">astropy/astroplan</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,4 +1,6 @@
|
||||
DIST attrs-15.2.0.tar.gz 36766 SHA256 9f895d2ecefa0be054e29375769f1d0ee88e93ce820088cf5c49390529bf7ee7 SHA512 f34f70acbd01dc94c6f994ce7c764e169e26f5d71454522f4f88859b67309556e88e20504e2a6a63590e4ad8e55f04ba7cc9a90c024364c1bf932bfadd5a4491 WHIRLPOOL b2eb25ff59faae2d71965f9a8292372be6a02db42333bb8b0d04b9a6eae2924b2f363e4b486db8864ad0a9031968ada8edb3e1f3b8bbf8c2ca5be2c2b0972834
|
||||
DIST attrs-16.3.0.tar.gz 57512 SHA256 80203177723e36f3bbe15aa8553da6e80d47bfe53647220ccaa9ad7a5e473ccc SHA512 1a91e6f27ecaf20c409c3abf88ffed5c6cfdbba8cff44637399b713271ff838a054f5859dd29440b2780d81b40673033e3f8e43dd491bece72e0a4f08c4ef688 WHIRLPOOL 85d53df74265b6db36171ad84c21321fd8f4b3c345ea65c46b627a25e586399c8cd7d3231417c7450ea9bb8237286434828f1c795759bdcf4d459f63555c8636
|
||||
EBUILD attrs-15.2.0.ebuild 752 SHA256 b1ee76b0f2661a9a093d5b9c112a3f9229e69d64c311db0a1c8dc0736a50065b SHA512 410b4d333184a65da753c6ee149e2987061f3d4bf0f2ceea5d4f802cbdecb76c959ab108ab37224fd8de42c58df1d863804bf7d81cc951d5f959c068bf1151d9 WHIRLPOOL da48414ede203108ec0d1e9bacd84cb9ac67dcd755eb4bfeae47b7f6e711bc7f12102fc765ea90c5878096239b37d5ebcac6684b3a74c6310873ed3a56f75235
|
||||
MISC ChangeLog 686 SHA256 26902eef54bb75b019dde4c6a445eca3080538f2b34ce051a6f01ecc2e5f7d25 SHA512 534c9f95f54e7f6a203889cd8f5a1d7be514fdd283a4867be281d80d1e73a9a1d1b52760ab09d211419ac66819eabec7af8923db135cb86dbfe8dc608bf8d59c WHIRLPOOL b41bc42c26c2280aecf802e0a25cfae59a84b996c6064a2c02961fb66e327aea5b5d0fefe26025c3e521ccbe060c6b7161cdea9511400c756ddb6b63a69991d2
|
||||
EBUILD attrs-16.3.0.ebuild 752 SHA256 b1ee76b0f2661a9a093d5b9c112a3f9229e69d64c311db0a1c8dc0736a50065b SHA512 410b4d333184a65da753c6ee149e2987061f3d4bf0f2ceea5d4f802cbdecb76c959ab108ab37224fd8de42c58df1d863804bf7d81cc951d5f959c068bf1151d9 WHIRLPOOL da48414ede203108ec0d1e9bacd84cb9ac67dcd755eb4bfeae47b7f6e711bc7f12102fc765ea90c5878096239b37d5ebcac6684b3a74c6310873ed3a56f75235
|
||||
MISC ChangeLog 851 SHA256 fd78a5f76e806dadc226c364b7164813c830812f3e2bb4a8990b0384a500fee3 SHA512 70095dfa30df08d05f372b239ce7771d827e88ed50ff7dca81c305d3838b91bd76f2f34d9b46c7e5a0a0d3e08509cb3cb3294f54818c2aaf9473e7a87331cc8b WHIRLPOOL 4ca24ac7b1454cfaa3d1b75bc1baad322856f63f4afbcdf4a8191b4bda70f7f2f907d2c3742e54a72463bc4c442c5a635c11ffda372dcf8510745dd0dc1fcd9a
|
||||
MISC metadata.xml 435 SHA256 29eec8481816ee39bdd6b35b4715bddffd5b579f8938a8aaf673ebcbc881aaa5 SHA512 59e9c7c78d16237f5ea054ca77fee4359ef1a7d0543a6780f06317570b1acd9b9682389cd56e7fdc37e2c8abbffbd2788c358a14835af5d93aa193705aebb6d9 WHIRLPOOL 3b7dc0100b5ba44a3d744e93c6c990181b2c0545466cd67a3ad17f91060485a57736d0cde7981d200f58ade548b4da670526c7b3cf2442e12dfd1c0eb052a41a
|
||||
|
@ -0,0 +1,32 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_{4,5}} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Attributes without boilerplate"
|
||||
HOMEPAGE="
|
||||
https://github.com/hynek/attrs
|
||||
https://attrs.readthedocs.org/
|
||||
http://pypi.python.org/pypi/attrs"
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="dev-python/zope-interface[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
python_test() {
|
||||
py.test -v -v || die
|
||||
}
|
@ -1,4 +1,6 @@
|
||||
DIST backports_abc-0.4.tar.gz 5593 SHA256 8b3e4092ba3d541c7a2f9b7d0d9c0275b21c6a01c53a61c731eba6686939d0a5 SHA512 0b7f9cc1d12db16a0c0eaf658fd874bf9fe09959fab65d1b0104d337fb20cceb2e3e9213be895df5951876846eccac85012c270e34197d625ce128b688e847ae WHIRLPOOL acc7b78e0dae1f533778513a5a92cc03ebd42906e84a5f4266fbe911fa54b56ca0e65e670730b2afab2d48cbea26a8ea1207ff5bccae56aa20191aaebd9b00d9
|
||||
DIST backports_abc-0.5.tar.gz 9807 SHA256 033be54514a03e255df75c5aee8f9e672f663f93abb723444caec8fe43437bde SHA512 5c2bc01bce8d3ed482bf5d8361a20f9afa3edc1c50280f0a01ffb890690b92296fcbfa68f79677fc3ebba851617f339cb6367ccdd0fadf1127a4e3c030784b7d WHIRLPOOL 582c107ddeab83c682940bfdaf4b850dcc73b79ff6e4968215c03d34c475fe5db2d9bf836c9aae5170fedef74f2a30216abaed0f275967ffa839122725cdbbc5
|
||||
EBUILD backports-abc-0.4.ebuild 713 SHA256 170f490677883de130447a1348f6f0e18ba05edf5dbabca132c7905ce800fe5e SHA512 13a8d4d48fbbb7d7e34e14aa1b1c6f52d9b73b82b3c9d83861bc022b2d0775c761f93b58792e46471d453a52c40f82bbe7760929c652ab74c5ff036ba27b6904 WHIRLPOOL 13184167d2c03bb36f8c3d6dbdc25357b5969cb447b4bcc8bf4cbb23134f004509cc383cf978c17b03863bf0b19fcbe1f56b4b35434cdbb892754b2867e7bb6d
|
||||
MISC ChangeLog 4838 SHA256 5b658844f600d0827286226c5d2706ed700a60480335156d1df5ace7aa56d459 SHA512 de491cd4a78478dfda450319645c3192304a7f6eeb1a3bb875ee9be891b6a14bcca37b9d44b11a73ed3b7310c9ccf789cfebbd3f4812401934b1b1914bee065a WHIRLPOOL 7353d79b63a65c1f04341a992be862928afc3b3e92f86eaa5c4f8fd2ee04f544f5872c6f7f16b481b280e92582815e20b91fb181a550722c1a766cc1ccdef389
|
||||
EBUILD backports-abc-0.5.ebuild 721 SHA256 4ff253bf9059d014075783e4b0836daa0514e3b732907eba76b08c4d6c92fad8 SHA512 e8bac99180afadfa8dd0aa6a6f77971ec0a95ac94309569ba9e5be46f8260531f469978e2d4b24221ff4f59635f98bbe7cfd86edbea6d400271d6aed528b2d3b WHIRLPOOL 280da24174f88724a184cc2606f516aa4eb2c61843949a59b5098ffb8e66b0acbeff82a8179827b7367379c7fd77f7514474a08d1a82710459b1bb7b4ff75080
|
||||
MISC ChangeLog 5012 SHA256 72f3ab2bfd6cd385d7a0a67b0dfaa6838eb0a5033f1d151749e115f49b29fc6a SHA512 0592c6b209f8d17173c753ccd76456c43b76e7628581ce12b593998db29d1838b423dd45e7f77c7568caa2281dbbc6a9f5527e787145c37bb0ddcb35f87e86b7 WHIRLPOOL 72188e3678d94692391293f5f92c147fc24d57de456c04fb737739852d28fba0353d0ebc45204876bf90a0d6c07926261edc7f4f23e7eb3bc50df184723bb293
|
||||
MISC metadata.xml 388 SHA256 04625fc596d0aafb7587c8dc35856652bcaa3e7fa6191ece708852ee711cfd41 SHA512 8172e10d53d5946f0756fe81fde64eaad10e2e2313941a8d98665639afb2248fbff9821915abed5f696f33f38fa779caa233467c991207d47f6cf57f3241334f WHIRLPOOL b594f1fe8f938d2da5607e2cd4dbb174e8364a8c4646114abc52d9cf3352ac797e1f71433432f41769be72837fb843f691615a0dc9aa9e3e19a40898694a2a36
|
||||
|
@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN=${PN/-/_}
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
DESCRIPTION="Backport of Python 3.5's 'collections.abc' module"
|
||||
HOMEPAGE="https://github.com/cython/backports_abc https://pypi.python.org/pypi/backports_abc/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
python_test() {
|
||||
PYTHONPATH="${BUILD_DIR}/lib" "${PYTHON}" tests.py || die "tests failed with ${EPYTHON}"
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
DIST bleach-1.4.3.tar.gz 18094 SHA256 1293061adb5a9eebb7b260516e691785ac08cc1646c8976aeda7db9dbb1c6f4b SHA512 316450f6325c4fba78de97ba755c185d59aa4d112f303d9f630918f02e613170c2e6bc6ce2de73ce3b0000572de673ab0e0dddbe41da59de5f4cebbfa1348a14 WHIRLPOOL 48a591bdd5b2b91ccc9fa1efe3eb59215d06aa9fa8cb2efeaa352afd5f62e0002185ad99745814c7622e3e7f9645c159267f12e43752df7eed5726a3d01de2f6
|
||||
DIST bleach-1.5.0.tar.gz 36502 SHA256 978e758599b54cd3caa2e160d74102879b230ea8dc93871d0783721eef58bc65 SHA512 572a089691af61f096716d96517a96755fe674cc471bdbcff80615ae903eaeff72c47b918ee28a1db60ee5c0253c0c52ba02544f8535ae4f283a3a87a3061124 WHIRLPOOL 9003f026686cd4fbff6c12c16359114df7414ca7e9363ed16197137aea8da43aa8374ddd6f0f26258ac89d4edcb7a82b2a252cde031432e6770781116c2f8e4e
|
||||
EBUILD bleach-1.4.3.ebuild 685 SHA256 a3e4d854934302b19a04bb2a95dcd77c81365ad95643fe0d3c6d499cb363f022 SHA512 e0e319261b6a91d1e4453797ba4857c3f356a98d408c883a22062fad27d67039538a8ba1b464f9ddb60f7c4d10840cfa05fe8b970dae146dcfff1c3c38498a5f WHIRLPOOL cb623802e800ed5d00ce55fd6ed012fd76d2e9e273a482c255525e84114769c65b4e8f389311c2cc342c5acec00baed8672259daa7c59d1faab4a34e160ac43f
|
||||
EBUILD bleach-1.5.0.ebuild 726 SHA256 0d3590fbe3940b7f7c02adf11e84d44bd23a0af16c272db185466a857568318c SHA512 247f7f0ca0b7b6c80efff1eab6654d3a0d8d7f1a9d4fad04fe4844b7fa548e7031e830ff89dd61dfdd65c45817823e623ed3c4c1728dd6a6b80dda1954272bb8 WHIRLPOOL 9a31ee0c9aad77abf298f1b4fe8b0d6250a6d91d8479135c20f6ca57de125179197425897ab6762ba4f1be07746aa2e7367eaa2eae38c3104846681fa2cf1fbf
|
||||
MISC ChangeLog 3188 SHA256 38957894dd0065c0e14d5530664c336284b6123f48b1216e11a837dd14e7b157 SHA512 6d54fbb82b1b5fb4251ee1042968afbc4c057eaff74b14b0d64a3104dfda674d851d427b22c598b8bb37daa047d35346bf54465829c39ede990c115d833aadcc WHIRLPOOL bef7fd35d021aae8633bb8ae9ee6ab181ea4285a9f82ade544c592e84f94749baa0034d5b364d64bc1e6324ba5a5a435a4c1f97256941c806e73869276d378e4
|
||||
EBUILD bleach-1.5.0.ebuild 730 SHA256 d6257fcbb5c4cbe66ff9f95c7f1302616fabe121fe99b0a7fbb14807f8d03002 SHA512 e2b0fce938cba05a8d0e9d5591d0d546fc2c8023b6b817bb136a20b3e9be6674cf4b5b637e98c39e3c70ba8cee11f3117eeebf3f8b1e613431f16c6b72fd8719 WHIRLPOOL 19c97906a1d1589699f59dae1c4b2a54eb9ebbcd82c83746d4e0bcc99612ab1b3a65b3fb4021d8ef9d496acee6e21786764c345b8638afd1d0a9e3dfa19951a9
|
||||
MISC ChangeLog 3275 SHA256 be17b256b673f55023c80e178558a9d953ee38d6b83703de45db331eab478650 SHA512 9082441fb5a7f8f694563860d8ab77a996d4056f176f5bb1909b6eee7e1c9cbad469367194bc5751edafb515e6519942b0a272de9c82447ba5f821f597879630 WHIRLPOOL 4a85fa993584a91e2fe70dc0021ee3e9befb57096e3dd92f7969377c4042bdb6dba4c8291348d810b6be9d3effc9cac7e07c1cf2535b226db015377336bb2395
|
||||
MISC ChangeLog-2015 827 SHA256 61dfa937024850a217970e390f7c288c3e2cfed28d5de4cd40a3a5f7b9a3625b SHA512 0ff6260070e27e16fbf822f712b22dde01bbff0f0bfd949103e4a9edf47817ed34e083e012fa75736bb9b183c73870771522ff5c4e76b45108430a516997fb75 WHIRLPOOL f8ab52f8d9414371fb5d16d19daece621d0503424cadd04ebd9eebacf9bc431c0145b4bcc201df80242983c19c942a420ef939bf6993b1c77ebf816b3a061c2d
|
||||
MISC metadata.xml 374 SHA256 69bdd9b635986954667a94efe3445bf871f098a585946b733647f36feef32f68 SHA512 c6954cc2f7e3ea97e36b28be1ed726be445eee1441774f34f8de22324739c3920f2d55d68d714f7214df3b010053eaf15af4bdc56c704409c8a0386e13b0424e WHIRLPOOL 8ec611e11618b8bda4ec8d105ceef45004641c7d22887ad7e91d3f37fa9e254f756eded552232620b31e32f4af0556ae8d893e59a33c0126d3a8266451088a04
|
||||
|
@ -1,14 +1,15 @@
|
||||
AUX flask-0.10.1-is_package.patch 655 SHA256 cd564c6aa58798e61a0759645ebd6ffbbdb1f694d8749d5ecb49d85b2cb30314 SHA512 d68d5db64f629f106151bfe8b4ddbc837a38f54e4a55897e64abccd48f533ffdad0395428e2e5f39f9f733ca20b08170de21f5250e522a78ea95631410915d50 WHIRLPOOL 4355b5ec26b24dbbee2a01659a8ec053a17442087fde41fd59bb8cd1fad780e554985f3428d6d21dc2f5b5bc89777f2224e8e6d80eec44df62cae5bd3e168a20
|
||||
AUX flask-0.10.1-sort_json.patch 1563 SHA256 50449f406b0164a5f2d1934e0f7f24aa48967fc434d93b3953bd4699bb32941c SHA512 d03d38d6a8cb96ee56c6f678955fea60df151a712d0bc42eb98464817bf436e6846b445677d8a961e13f2c6f6774c44a3c4fd16a1656107212852632f0bc708b WHIRLPOOL 2f66700910a5abeddc4bc8d8b9a3887a6ac6f829d38ae918bc38d713229d3589f81ddc814a311499148e096d3ff22bdecc26069f89be291539d56ae5cb79f9c8
|
||||
AUX flask-0.10.1-test_appcontext.patch 550 SHA256 866872ac74d58dc024dfbffbb6d16cddb18a09f1db69d6700d2b6ab26e4d7e27 SHA512 5510d536ee432429ba2f0da8248653192e9e5ed9ad107b05dd3cc640d63039327f1f495148da5b7de403cd124d04760fb94d185b6b774ce39a8ebb171bca4d61 WHIRLPOOL c9af7a75be4e6dc3b62b55248443686a2918826755be73ed9a11db7856254e163a6deacb00fa11dba4dc58398685a2ec11750a7dc1b78c2cbc6f85d18349354c
|
||||
AUX flask-0.11.1-pypy3.patch 1746 SHA256 0ad6baad429d711b7d71c48c0180313320e5bb95fa677fec8345c0d5313d9aac SHA512 29512dfc4de40ad5041623bc850f7fd622e9bdd7a1b88328e5f2f19d38a73c03d100710cdb5a533c991c64da494d7b6761ef1a4053521702d3fb8fa70bbac125 WHIRLPOOL 3e10d0da9d982b447bc9f05677025726a6b8d9d0002da848feb15d428d3faf5137b4c6fef031503f8f0a77f37f83426b6b6baea916b81c625a3ccca89a29ecb1
|
||||
DIST Flask-0.10.1.tar.gz 544247 SHA256 4c83829ff83d408b5e1d4995472265411d2c414112298f2eb4b359d9e4563373 SHA512 0008d62d03a46b071c7d0510513d011a9bfd2b77df7f677371a446ca9805d16b1ee5e17dd8dd7cde6443a629370234e44735e20381de20a7da385969797f053f WHIRLPOOL f30a306ed00fe6d4c8e47b781c556c576b99b3545f833ae06f6b778d91c3127dc0adcc34d48221a0f1db1bb1633f2329d6085b7a4550afc672530525fdff474f
|
||||
DIST Flask-0.11.1.tar.gz 564993 SHA256 b4713f2bfb9ebc2966b8a49903ae0d3984781d5c878591cf2f7b484d28756b0e SHA512 62168dea0d44a1fcf862373def1f6d55d53145800cf353634b108bef2fcf9170b75e05d1e7d374e45e7fe261f170b6d7bf503816120dd9034dc19b6b83f1e384 WHIRLPOOL 66c766658e4786dda9105078c839c739ae0bc87f6f72790db65aaf2ad476b0ab36c17041b8d8926844581683cf023ddc26e4bd6510257f5c792e5e8f5ff362b2
|
||||
DIST Flask-0.11.tar.gz 563928 SHA256 29a7405a7f0de178232fe48cd9b2a2403083bf03bd34eabe12168863d4cdb493 SHA512 77ee9998c96ba5e4eb007b81e04a051a6f8fc3ac837496a8c9e6637fdbff3e6fbba4912919b1cb2c5ed72951cc9fb8eb28d699e3f15de14ecbb51c362111eafc WHIRLPOOL ee65af738a841a05c7d2ad2e9b021e3b0a0e046db706c747802d675d76246701b62d1911fae321aa460f7aafd17274b21177fd2cc5c647383ac6b6eba37cd36d
|
||||
EBUILD flask-0.10.1-r1.ebuild 1146 SHA256 f6a62ad22ec5e26b8bdc218977c05bb4a58e23812b4360496499fabafc4e35ba SHA512 9f23ee35ec511f45e52865d72c5a3552f8a819b7ef97a7971d54677b700cee10344e9d2b9f3a2c43de8c1df6152f372f42fca3ff9b09f64121926699bf0b2780 WHIRLPOOL efd9b0b10bdfc3f79bb669fd0e90a0071da2aff96b190ef7e8c472132f0597f6d41e6c2935c185b5a1ec8262d45afae608b1719d5b0ab962c2ecfe95c76fc06f
|
||||
EBUILD flask-0.10.1-r2.ebuild 1471 SHA256 ef48451adad3c29fa8155d1a52f3b899b5abcc8744a7522272989acc18c30f77 SHA512 f7f9971929e7c4c234fb25e29a3c6e16236e8e1ef096b0433f68a794b8f151ca03c54a31688f003b162ffd3a7d3ee611b40327725a85a3ab18879cf07f9ff693 WHIRLPOOL 89ecd811725d1d59d87d8868726adacdacbd194c2997c3db4f84faba929e6d3b40ae8c54fbad11a755a3022f5047f5f93e3ccbc4c2066087fb578174558e01aa
|
||||
EBUILD flask-0.11.1.ebuild 1360 SHA256 7f6b78e22f86acf49f32d777120fd99d991f9c1759fb2342753f7cb998d168ba SHA512 b49985d94d029920fe2c4cd55bbafb9ce6c1c7a7497c7a74773f3f4c20bc34ca733efb560dbfa65703ecce21b2c0027e88abace4b83c7d4f6fa54aad7f8507ed WHIRLPOOL d5392dd0a9811646d5202e066b575cdc55d6d96bcb8448a05531cbf9ad254faa92b8b9ef9f8b92676489c87afc7788a2f90ea972f054c1d34c3a1a71a859b8fb
|
||||
EBUILD flask-0.11.1-r1.ebuild 1413 SHA256 3e8c449e327f12ca2345ad2a042963fc3699ee8b0e5370cb6e28560cd38932d8 SHA512 e9a4b3b13bcb6c22a3fd0f8ce286145ab8a2df67a3e14a976c31d94e2add4c01b89f23bfdbf3f60bd54ee2e160197b1d0e8d66af121a2b5683b457cade572746 WHIRLPOOL d68f1a45d8d8141d95c72b05e823d504c2cb41022f77f73563eefeede087b001b2bfa480abcbeb1797c1ae3ebf168e13785ab82933e2757a455a6cde64b2d95c
|
||||
EBUILD flask-0.11.ebuild 1360 SHA256 7f6b78e22f86acf49f32d777120fd99d991f9c1759fb2342753f7cb998d168ba SHA512 b49985d94d029920fe2c4cd55bbafb9ce6c1c7a7497c7a74773f3f4c20bc34ca733efb560dbfa65703ecce21b2c0027e88abace4b83c7d4f6fa54aad7f8507ed WHIRLPOOL d5392dd0a9811646d5202e066b575cdc55d6d96bcb8448a05531cbf9ad254faa92b8b9ef9f8b92676489c87afc7788a2f90ea972f054c1d34c3a1a71a859b8fb
|
||||
EBUILD flask-9999.ebuild 1117 SHA256 7f3217888b7ff02a89e4f0b0b04018965549f6c8cf9ab74d6040a534733b1b84 SHA512 d3aa99ba13b4f200620db143f2b096f43e05253343244146dc9d6f0ff8b8a4103c1be910b7700de950763744d6ab9da0d49ef403202cf08826643fff1fedc0b5 WHIRLPOOL e1f8b45a7f1f66e96e1829d9733aef044344d0e1ac40a36b7384e0b3923e9bd72eedbaf017e32bdae205e7912d91d7672d45837c40ee4fbb228102d8045b3687
|
||||
MISC ChangeLog 3837 SHA256 d4448f1916d2db44df33cc210cd007c31075355eaeaf2e447b9b038d5ad71ed8 SHA512 913e2122ecebd7ce21c2e82a3bbbe978d70c450d891e5fab2f096259732395fd63e3dca6f3ba63c0b0cc37745242d51873e20cbca9ac2e01241ce3c259eb7245 WHIRLPOOL a52371be094a8b8c3e45581182efdc70aa7de42748c9390d98a86710f1878393ebfc76513f760f73065527a0045af3e96951f4eac593ebbf329a2956e0bcf523
|
||||
MISC ChangeLog 4034 SHA256 c227cb9f563938a8c37758dea86d9f912cdaa7b7a075f4c03de7b52e607395fe SHA512 a4173a2e68f4c51b67d72653f520cb3007346af41c8e1c182d2ff0b65b0be46884f3dde10c29c66e249d403bd8438d3cd467ae75428c97a2283d92bbbc54658f WHIRLPOOL 9d8eaf216cb8d3d773f85005a0a5b87f48365d40e12fba29303ef18f2dc3272fee18ec9ef967d20698cb2c87e195c26555fb39b5fc5c79df5a00c529eecf2221
|
||||
MISC ChangeLog-2015 5610 SHA256 83fa7a0722e9585f39448a2eb4ffac7e49e4db12f8a82af4140c15c38c781d84 SHA512 4eb71e7171f26cdb1906149ded4acc45a3dfecbb52127e6c66452e286d000d39f03c19401ef756ca9f6b9d5a9f702fc510ddf1a142a6a7fb061bcbfedfeee1b8 WHIRLPOOL 89bdd2077fb6acdbe55d0727225bd66505e2400682ce8ed64e1ff903712a9c731296cadbf89e94c727ac118dfd28e7bb5fa6baf914da36f3cde7b0df9b2bc5be
|
||||
MISC metadata.xml 363 SHA256 8da9e9b392ea7622393b929fe21f4f468aa1711ca7f503b79b421cd21856a554 SHA512 33989d02b79b82d3256dbbf7402d79580d529e728222d74dbb80f740dfc1f8f1357f03ab5da857ff1821f2bb90f7b7eeae71d89e237516da62656d3d124ef4d6 WHIRLPOOL 93a6905c11beeee5a5ecaf05032bbc3e984287279fafd918d4eb28584d98818f8c1252fdd74e66b8d743ba814251d849263c2648e813d575519311eca269b94e
|
||||
|
@ -0,0 +1,45 @@
|
||||
From 6e46d0cd3969f6c13ff61c95c81a975192232fed Mon Sep 17 00:00:00 2001
|
||||
From: Markus Unterwaditzer <markus@unterwaditzer.net>
|
||||
Date: Mon, 13 Jun 2016 20:29:21 +0200
|
||||
Subject: [PATCH] Fix PyPy3 support and add bug references
|
||||
|
||||
Fix #1841
|
||||
---
|
||||
flask/_compat.py | 18 +++++++++++++-----
|
||||
2 files changed, 20 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/flask/_compat.py b/flask/_compat.py
|
||||
index bfe607d..071628f 100644
|
||||
--- a/flask/_compat.py
|
||||
+++ b/flask/_compat.py
|
||||
@@ -65,17 +65,25 @@ def __new__(cls, name, this_bases, d):
|
||||
|
||||
|
||||
# Certain versions of pypy have a bug where clearing the exception stack
|
||||
-# breaks the __exit__ function in a very peculiar way. This is currently
|
||||
-# true for pypy 2.2.1 for instance. The second level of exception blocks
|
||||
-# is necessary because pypy seems to forget to check if an exception
|
||||
-# happened until the next bytecode instruction?
|
||||
+# breaks the __exit__ function in a very peculiar way. The second level of
|
||||
+# exception blocks is necessary because pypy seems to forget to check if an
|
||||
+# exception happened until the next bytecode instruction?
|
||||
+#
|
||||
+# Relevant PyPy bugfix commit:
|
||||
+# https://bitbucket.org/pypy/pypy/commits/77ecf91c635a287e88e60d8ddb0f4e9df4003301
|
||||
+# According to ronan on #pypy IRC, it is released in PyPy2 2.3 and later
|
||||
+# versions.
|
||||
+#
|
||||
+# Ubuntu 14.04 has PyPy 2.2.1, which does exhibit this bug.
|
||||
BROKEN_PYPY_CTXMGR_EXIT = False
|
||||
if hasattr(sys, 'pypy_version_info'):
|
||||
class _Mgr(object):
|
||||
def __enter__(self):
|
||||
return self
|
||||
def __exit__(self, *args):
|
||||
- sys.exc_clear()
|
||||
+ if hasattr(sys, 'exc_clear'):
|
||||
+ # Python 3 (PyPy3) doesn't have exc_clear
|
||||
+ sys.exc_clear()
|
||||
try:
|
||||
try:
|
||||
with _Mgr():
|
@ -1,4 +1,6 @@
|
||||
DIST gammapy-0.4.tar.gz 933018 SHA256 370c98b1078a19e4ac9721b807ea62a32c1f9ac323fd738b3b1d43cceccae2a3 SHA512 d44e24faddbb7064c5f222e3cb59d9d4442a128dca84bb8e8e63ac4dffe6fc3be573e4252ef2a052e2e07b51efa1151639296aa8d7785437992aab0be4986155 WHIRLPOOL 73040d13ccc1a00f6a817b01ec0c0a0a103e480ae348588410bfb578383252381cfba81abe8d0578caa2ec02d7a07699c8b0c81079ae2d1b3b33d2619c123830
|
||||
DIST gammapy-0.5.tar.gz 1054718 SHA256 7d5711b2e74b887947bde74d982a50e19723f0e2bcba1dc93836855e48112042 SHA512 24132a4ce02660724cc92c5dc8ccc8d4f096ae5ab56a27cbfead55404358885fd7eaa7fc6c95b8842d42f8492fbfa4cc2c6af66e53736576ebf3674e1ecdc69d WHIRLPOOL 323b511379e8ffc41736ac282b583e05e408d9028269213fe33353cd109475c1355cd79909ff3015dc9d248ac7faf795f9bb62f1d159b0e04606560f80883ae4
|
||||
EBUILD gammapy-0.4.ebuild 1242 SHA256 25258a44d62394ca4edbfdd108c054100ef46482b61513815fcaa10bc892da37 SHA512 3fc9c9584475bbbf1c966d5e9dae87e772a14eabaf288c3948a098f977594da297d3b3f6b8fb2f950bf823f171796fa0d8b7162d721202c77725359ac6bc16be WHIRLPOOL 69b8488e543e90d99b469fa6dc317ab6372d1d02cbdb8078c5ec06bd9ab731509538aabf14eb7f343d6e5e3d8a39416d6b0c9a0f8a64f80a3079981582b5f05d
|
||||
MISC ChangeLog 904 SHA256 9389cff9b3b5bc7960a5300200a64050f423c93c9d16d1301416678151cf2f60 SHA512 520efbd78700deedc7f971b4c0fdce703db1618c62915b58d22ac9d204a274a43a4ddb344c05684109996a5ca1c61d4d57334b27fa0f0c54ce46565c312c5778 WHIRLPOOL 15bfa39b02719624529d0e487db146c842c341ba90bc805e54462fffd9c7529acea4bbd2fb727ca2d9093e56f76676ec66d3920e009941e1b00136f9c2974bcc
|
||||
EBUILD gammapy-0.5.ebuild 1819 SHA256 bb2c3eb60f9c7f409b617ba382bff0041c35e22373cfcce28dce9ceea7f1ce0d SHA512 58be52e49a783b6a5051cff4c50376fa9f3eaa61cef2e60540880eea37087dba8cdf54607fc898fc2c185ab8a758f91989c1b2531dcfe2d5a583666ac281862a WHIRLPOOL ec2c201406df2192e43fd07f1c8cacd107a79faad290f971007b0321f85637e8b76c49db50e2d1e563cc48a198236358d4084e96676e28a5d79ac9335a6578a9
|
||||
MISC ChangeLog 1058 SHA256 37a8ce6900b4883022de5dbb18f3aa9f46f7691039dcfd5d6e5d5bbf4398341f SHA512 50e2c30bb99a1c9ab1ca17392eb0b544a59e83218a8c70289c29339fa15067d176a422395a339d01f2680d47aaf133e5b114971739a9fda7760ed283f39819ee WHIRLPOOL 8fa438c820a9456c32142fc169ac7bb256fe90d90b8420291b2ca533ac094b786f3b5bac950aab7e6a5f58e7acc66734d556f9ddd2f8fc9b810ebd6fe1b1079b
|
||||
MISC metadata.xml 667 SHA256 03320967448a2fd079e873cd423e96432ecef978a7bcb23dd25be44c67b88dc9 SHA512 858634d57feea0db252d21360a9ea790059455e803a83aabbf08437c2a8c668c0e49a1e28c29ae57b85865ce402b8888d2a8af94f97a07821f749cafa1a6da5c WHIRLPOOL 9dc699bfbdcb948f2cd39105dd73f19fe7d9073fe91b88a7d52a41dbe4cbc4d5969ce17d1695e7859662db76df6d7b57c4c27658be81eba201e6f5e63dc14197
|
||||
|
@ -0,0 +1,74 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
inherit distutils-r1 eutils virtualx xdg-utils
|
||||
|
||||
DESCRIPTION="Python package for gamma-ray astronomy"
|
||||
HOMEPAGE="https://gammapy.readthedocs.org/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
IUSE="doc test"
|
||||
DOCS=( README.rst )
|
||||
|
||||
RDEPEND="
|
||||
dev-python/astropy[${PYTHON_USEDEP}]
|
||||
dev-python/click[${PYTHON_USEDEP}]
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
dev-python/regions[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/astropy-helpers[${PYTHON_USEDEP}]
|
||||
dev-python/cython[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_prepare_all() {
|
||||
sed -i -e '/auto_use/s/True/False/' setup.cfg || die
|
||||
xdg_environment_reset
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
if use doc; then
|
||||
python_setup
|
||||
VARTEXFONTS="${T}"/fonts \
|
||||
MPLCONFIGDIR="${BUILD_DIR}" \
|
||||
PYTHONPATH="${BUILD_DIR}"/lib \
|
||||
esetup.py build_sphinx --no-intersphinx
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
virtx esetup.py test
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "${PN} full functionality" \
|
||||
dev-python/aplpy \
|
||||
dev-python/astroplan \
|
||||
dev-python/h5py \
|
||||
dev-python/iminuit \
|
||||
dev-python/matplotlib \
|
||||
dev-python/naima \
|
||||
dev-python/pandas \
|
||||
dev-python/photutils \
|
||||
dev-python/reproject \
|
||||
dev-python/wcsaxes \
|
||||
sci-libs/scipy \
|
||||
sci-libs/scikits_image \
|
||||
sci-libs/scikits_learn
|
||||
# not yet in portage: sherpa, gwcs, uncertainties
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
DIST nose-exclude-0.4.1.tar.gz 5930 SHA256 44466a9bcb56d2e568750f91504d1278c74eabb259a305b06e975b87b51635da SHA512 07dd869f948fb6e6f23dbecc316d08f23701f30ace3755e560f94deeb62cb2b5e1f5690477260d8d3a7f634e3e9959142a340f4fe0886e2ad12852444244ca3f WHIRLPOOL 5ef409e2ada229f7e7fc4c32ea86377709d305fa3a1f11543ba7d6aeee67558eeb554cdce06a9a67b7d9ae80d66ce90ca9a5608e4d54610eed8a9a02ea20e7da
|
||||
EBUILD nose-exclude-0.4.1.ebuild 686 SHA256 e1d1b7bbb10caf8513c39a1b074186c6a0cf01aa392d29ca194166828214c981 SHA512 2c9b172b0a4c043bc77fab421b207062d11a028f201ac3a781044532f71abca907e30ca71fb01cdcba002c3ea31ecaccefc7ae854c95698b816d303c193112ab WHIRLPOOL 52c0b5b5632cb4552fffe5ef36b0de513d06b183693f60263e7f9b8dee741a2f53d86fc88656995cb22544387ec7ae1380b3f5462d9b65f733dc426eccfc56e1
|
||||
MISC ChangeLog 6517 SHA256 e8cff242cde9c1623f919a4ab19fad6a6e947a21c10192f8654d2dbae1e24d68 SHA512 011f9b4b5efdc07228641a4e933026c04e479de92d5d0e39d50fa9bc696d25378a615c06a5ec958822079efc7de5683f2f69dfcbdab012847fce1b867b636184 WHIRLPOOL 57b45fd76cb88d84e9c9976e7608f9187659e1a1db6afaf5d4d5bfcf2b49019e05ebc57623937c58e88d8a9506bf16f93d5b7a97de2b95b6ac7b64629e973d0d
|
||||
EBUILD nose-exclude-0.4.1.ebuild 580 SHA256 1ae855afc2c56f58d0fe9213a1fd8690a366b3db14bb0032cf0d243cb2398788 SHA512 64082b4e0261b37d514323017794c56e10cf13a658157946fb169249b45bfbf545960d5a272925ca224f2d23bede8b517357c01ed7d657d2615f45104e7e2e43 WHIRLPOOL 7f378d758989ab2b5f2976e587be366002f07cfa30f05735e2ff13c2faf9bd9c787503591d44a8dcd1ec2ebb211512da220fcabf038a6a5c9cb9fafccd16f36f
|
||||
MISC ChangeLog 6713 SHA256 fa1ab385e3cc07b90d92e0b155af275f274d97ab590dc24898fae74e08f399b2 SHA512 b63791d41dc2b7f0f129db4ec2cdfc0fb891664f89cfe400b029a69cc3fc82bd039de6132a13ef99511d80572913bb022539cd44c65d35deefdc83a1af1bcfd8 WHIRLPOOL 2e57eda693f394d63687d90222b752979edbac1fbbb42ce38c01446fbf4327a88201f76c0d91e13ad6253c3f8d8d953073fe49ea7d644c683afbadaca410b217
|
||||
MISC ChangeLog-2015 2087 SHA256 1b93ab7ba96f38bc6c9a899b855671fc3e468a92095de30c2afb10f0ab2d4e91 SHA512 230b3d6943f3acedd29791f3ddc145e3d7e72ebc00fc31d5475ccf7460194a6320e17b860e74c7abd9b570d14ac64571beb0f2f935954a6ab235e39abe42089c WHIRLPOOL 91ef001d578486fea86b3db94a0adf7b9a1b6b38dddb1a8046bb6d199bc0843978328e81ebe4f1468017a56ee0bd9230cf463f686b5583dfc918490e21a9dece
|
||||
MISC metadata.xml 680 SHA256 7e07efdc89d5dda28fdf52311a6896d0c4806757ee4f5dadd2b1a082c0a9d29f SHA512 77c4bd6bf1d654c9b7a5f22235a56a4861b5cd784dba4459916580e623ef5017c52a79af949bc9fcdcf9ac66f8f84d8646a61393f5c45c5d732693486fac5ca7 WHIRLPOOL 42d630608eb26129b56b1ddbf778e5741654c4c91060beec0ec0da19058d33fb72050f2dd111c5f9073b9ffa09b9ed7469b6d0bae8438b63b54088232bc7dfdd
|
||||
|
@ -0,0 +1,4 @@
|
||||
DIST pytest-pep8-1.0.6.tar.gz 7271 SHA256 032ef7e5fa3ac30f4458c73e05bb67b0f036a8a5cb418a534b3170f89f120318 SHA512 162d9e25c264ecd82a51c6798ae75493c724a847ad8cdd953225f73e587f9a14298a6281e541695f6e7471a6121e9b0e4f694270f45ead851e392efcd7aeb758 WHIRLPOOL a1132d582b1bab47e3cf61d46111c1c2a59acf0d9a4858153ad0618c3eb514fee6f4ef23dd3b1b5c8d3b7573fb3493ec577e67d6834b0bb3dafa8655fb9ad926
|
||||
EBUILD pytest-pep8-1.0.6.ebuild 626 SHA256 0fbceec6bf7a0e1d75162c6f65047a0fc9437097484ac01aba5a9ac978c83952 SHA512 b08ab5817ad25dbd1624422d96c1f421026f0a6a8c6c012ea39c3b1bf19aebda27d153177ddf1a8d9b7506c7abcb2725d9b8cfe6ee6a0e50a763ef6b832b7aa8 WHIRLPOOL 338a4a4c10ce47e4cc3ea0255dfdf26c5c86624bcdc3703fcb1fef4a81070a8316c7a0da2465080fef9202b688b6813d04dfcee679c24fd4865ac4b8d48c3715
|
||||
MISC ChangeLog 327 SHA256 e7896bd5bc0566b4d9f0e348777289e9c779692b62df075eac059601a43d396c SHA512 8629aaf952af354549c97736558f7d548b7d1b4e638615ea7820d4e06d3f0cdc04238492f7ca5cf0c9d9671ec2c31ab5be934a35bf0b967ad32469b669c7d8bc WHIRLPOOL 4356fff3550610067239ae19fa437bc61175197bdd4e458387e4e4cc83ab9839b3fc9e702638a6f91cc1c22fcd0081cb78246ac20c351092732678942f1fb617
|
||||
MISC metadata.xml 324 SHA256 7ea8c566c255845ba519d268aafeae92cf3d7aa30196a8be072c5d0ff67964da SHA512 3622d9663e7966ff8a566971b51f886be021d2e58254836d3c5dfa62e5001289d8d9beabb3f980af243a91cbfd527a076db628a1b29fb6562041a88cbc617b59 WHIRLPOOL 0d929a33b783271f55787dfa7c13db03fb0424f35f5c80c98b2ef61254040257ee3c917313aaace102627642b6a1b47b4682dd3de3ca3c2bac0a652c8ee8e7d3
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">pytest-pep8</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,29 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="pytest plugin to check PEP8 requirements"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/pytest-pep8"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/pep8-1.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-2.4.2[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-cache[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
python_test() {
|
||||
${EPYTHON} test_pep8.py || die
|
||||
}
|
@ -1,7 +1,9 @@
|
||||
DIST pytest-timeout-0.4.tar.gz 10204 SHA256 d5900aaa94af5cb2d06ed806b1e636255e65a8a26eccecccd2b9a9d6123d50d5 SHA512 07031d64012e683064cd0bf2cef1d7209f02085e07dd8c7dfc704270d1e6ecf9679c639d529586c7d52d9425244a05ac362a7cd0092ca1f162a54539f58286e4 WHIRLPOOL b4befc271e378246d3e9fdd23a931fa400a981f79e90b0d44bbd533bea2be976fb4fcf73f6aa552d129e6945d82880bdf7bbf08c653c787913a8b782be54ab51
|
||||
DIST pytest-timeout-1.0.0.tar.gz 11125 SHA256 1465096be73e16df1e15d1b1453692428a7e15b997d756bc565aee0d12798ce1 SHA512 67a42562dfa7175c213ae50a7e152f04406f01a4821d69c9e95637a06a2574de8ce2f147030ff1417cc99eb7d518d7c59ac72ff2671dc3e7e813962da91e7591 WHIRLPOOL cc5f915b9a875d2c5886d6eee1329deb5c86e853cf65f3964364278ad6f6271cf05fbbe37960d14019d99dced0bfd5c84726f692c43930e51331b2e750604cba
|
||||
DIST pytest-timeout-1.2.0.tar.gz 13258 SHA256 c29e3168f10897728059bd6b8ca20b28733d7fe6b8f6c09bb9d89f6146f27cb8 SHA512 b86548843e9ff8c8f7d1c39735025cdfa98befe2860e2a8a5d422d08bd7f542032384f147125a2a2841268154cc3a3874ef0aa4765d454fd5390edb773b106ae WHIRLPOOL b2155fd77c5c1fbfd5ec7679bc92f3aa9c28f67db47f2ad93f6e868c11787c5988a6e612f432c20a32d82d55acc43f520aa5a87b8a1155e98fb6da066cc44685
|
||||
EBUILD pytest-timeout-0.4.ebuild 553 SHA256 25c61243dec5e56e6dbae9ae7ce48fb0aaea725c7f973ae05ace492f57b2c67e SHA512 28e196bda83259a8d6819fe4d83f2f33903797a8e10a9776805255b8f6835f1039fc684be286a80ccb2769fe7cd64372847ca036aabbadbcbfac1a1f5bf8ac3f WHIRLPOOL 95224424e21ca7f30ffc4a20b6c4f893b954d86f744849425c462a6e8c1f671436237bf81f4ff5d37d1d70087e3dabe623528d3900467e022504c935fc18bfc9
|
||||
EBUILD pytest-timeout-1.0.0.ebuild 557 SHA256 4e1b6f51d6221b588183a94518ed3bb9aff0ca7d4284e70f3771027ffff82c4e SHA512 7f75bf297f6b44390bf582ad25e79ff879ee065bd592842a84b1025478dec58b0c65a8b9cba023b6ad96375cdab18ff5c5e6bd797f6af95ff33aa2104badc34f WHIRLPOOL d106b2eb6bfe50ddc4134ccd530f7be6522e869ac1d2de48a41ea1dc3725ee3bcd843606cf328b3d88025c9ba53f04e14265b3dd936ab1da3960772a61faa771
|
||||
MISC ChangeLog 3025 SHA256 b82152430ed8f6eba8221c7e9328d96cd10972ea2018b144937cc6ef24a55a00 SHA512 19ecbf2fda7e727ed92d7e859f5519640b7747e9d1b20cd0f7b32e6d600ecfeeaf55b75b480da8899f000c62f51806ad66cc2381a6dde63c26d4c760142e5313 WHIRLPOOL dc4e7a80c4596f5eba7acc7a9da5720946540773815f5338eb506f773352b63662fa49e522d36103ce8db57140d3817a409d88b1aa9a05d1cb4fac02d88da1cd
|
||||
EBUILD pytest-timeout-1.2.0.ebuild 557 SHA256 0cfabb71b3050e38ebd9ebe39f545c185f7336d09bc35e3015c2eff68a01edd3 SHA512 32d8b3a2cc1c8e604e06d1fc88458d914ee7bf11a4546e3e8a95e613907a8d43fb486e7983f537adf559e059322efad1219d0ca523a2426545348ebe7b020c47 WHIRLPOOL 1db89c85194f2c18d2b16f9d42d5c1c6f91f2e306fe51cba989b6901088fdc700e5535cd24b26afa5f0b24b3f75236071d40b407d176d5fc78bb1494e320ce8b
|
||||
MISC ChangeLog 3207 SHA256 8afa6a164b8f636ebdb49b2ea04009f256cc355fef6df49bf7aa8d19754a13f1 SHA512 4469ea4a14471e4b332e470199cd5d63d1270c9409ea0943809331b2498e93ceddaef4d870d21ff90cf7a13dd2141dbac8824bdc83bdd35681e6f9c875a7d0bb WHIRLPOOL e0ef35de4f1a398c64d5c3e717cf74c4ca358225c608632131a51a4aa26e1b1a7732d7abca6418a3dc16a0494c6246741784b55c1326352c84698180e74f962f
|
||||
MISC ChangeLog-2015 771 SHA256 ee7a5d41aa0380849c9e311bc4812e404b601b269e058b717aa56f56cdbe1d5d SHA512 9800d19955af62ee2c18464a56479313e4209ff2ca6f4812c303599c9dcf212f6596d5c4ca6ef3085bf6dfbed6fe89127dd576b1925736d14b352302a1faf3af WHIRLPOOL 41821207ad8edba0aee8df452147dc7da858dd787b113737e6560a18f1c37d36e93157a52737ee44a489082f22e18294ff34c295df0f5291e87de637cd222dfa
|
||||
MISC metadata.xml 327 SHA256 3b0081c18757072512299803a7d53de817b3cf4a7c668d8b86b21b960abfa4c5 SHA512 6040289d134f65896f2fb80538d9caa4ce628911c5ed21568a30087d1b0ffb14b9acbf874956720b1d9c56290c78bb965ac9299bc400fd89a258f3627180780a WHIRLPOOL 9c4ecea0ea603f68535af94a431c8398c781507bd5fd47deb71b1b7df1c3dc24e91c3106312fa40fbc5bc996c44033042ebc8cb520e6a41dd5091f32c6b6034c
|
||||
|
@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="py.test plugin to abort hanging tests"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/pytest-timeout"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-python/pytest"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
python_test() {
|
||||
${EPYTHON} test_pytest_timeout.py || die
|
||||
}
|
@ -0,0 +1,71 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Simple powerful testing with Python"
|
||||
HOMEPAGE="http://pytest.org/ https://pypi.python.org/pypi/pytest"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc test"
|
||||
|
||||
# When bumping, please check setup.py for the proper py version
|
||||
PY_VER="1.4.29"
|
||||
COMMON_DEPEND="
|
||||
>=dev-python/py-${PY_VER}[${PYTHON_USEDEP}]
|
||||
doc? (
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
>=dev-python/hypothesis-3.5.2[${PYTHON_USEDEP}]
|
||||
>dev-python/pytest-xdist-1.13[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
!dev-python/logilab-common
|
||||
"
|
||||
|
||||
python_prepare_all() {
|
||||
chmod o-w *egg*/* || die
|
||||
# Disable versioning of py.test script to avoid collision with
|
||||
# versioning performed by the eclass.
|
||||
sed -e "s/return points/return {'py.test': target}/" -i setup.py || die "sed failed"
|
||||
grep -qF "py>=${PY_VER}" setup.py || die "Incorrect dev-python/py dependency"
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# test_nose.py not written to suit py3.2 in pypy3
|
||||
if [[ "${EPYTHON}" == pypy3 ]]; then
|
||||
"${PYTHON}" "${BUILD_DIR}"/lib/pytest.py -x -v \
|
||||
--ignore=testing/BUILD_nose.py \
|
||||
|| die "tests failed with ${EPYTHON}"
|
||||
else
|
||||
"${PYTHON}" "${BUILD_DIR}"/lib/pytest.py -v testing || die "tests failed with ${EPYTHON}"
|
||||
fi
|
||||
}
|
||||
|
||||
python_compile_all(){
|
||||
use doc && emake -C doc/en html
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && HTML_DOCS=( doc/en/_build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,18 +1,12 @@
|
||||
AUX python-dateutil-2.1-open-utf-8.patch 554 SHA256 8c634055a700ffa05b8b3df574baa88557e8dfcc187fa84f3fc7bc9e11241617 SHA512 9c3a6f06dcd746ca50d454c8f29283d5d57ec7660d70fe220080191af5583478156f3e1585fd44c426132fd0948a45474b197f75b9eb33dd110f05cb447d0358 WHIRLPOOL 992c455df92491abb22dfc6c49679e82b399a90ae67bbfa242eac664aa3655719f5a1f33bb1029e0c6ee4755ec22895afe8a86fff36c0a4ae41991b47b7e1278
|
||||
AUX python-dateutil-2.4.2-timelex.patch 468 SHA256 d8ea8e3b2b70a882e0f720024ab40116ca08356ef1cf6adea8a0182a9dde844a SHA512 d8a735921f73c09239838527e8caa7932199bd8d5499b549a00283a7355bd8454b19617b1e6087a58a4393ae01fa63c5814cda7d1b09db28b76d605bf96929f2 WHIRLPOOL c2ea1eea6d1b3a9f2e702e1f707e81939323752d018dc11250f520035e8fc09364c46b17c107932c783c12ca6e8eae569c6fac680eb3ccfae16dfa866b883e0a
|
||||
DIST python-dateutil-2.1.tar.gz 152334 SHA256 4c44ec3f9ff057b8c7b4c78beca5fdd8710600ea9a1df42f31bfcbae2f059dee SHA512 017e054f22886814763f6ab0c5c3ee411ce3d59a0d07e26fdf9afdab2500d689aa67a6c4c617b8960755272cb800ff449caedcb180c3a58631ac3cec3ffb89cc WHIRLPOOL f77bb35f5d8706e0909e5e522380f77a8f2bea1f183bdbd8bd41250fc3414730d327ccbab728bf67b5f80e34e672b8d9b346595d1b6c5694bff24a64b43a7454
|
||||
DIST python-dateutil-2.2.tar.gz 259085 SHA256 eec865307ebe7f329a6a9945c15453265a449cdaaf3710340828a1934d53e468 SHA512 cb278b8e18da3b991c6415ff59e9f3aa87cfb2e52048b3f74a9e3d183e0cc5bf71595123c644d0aea75084e653a885cbfa70c8ddd8b6a888bb13183624fcb46b WHIRLPOOL 545495d466cbea8f750b7e997699e2466131ce780ed73e18a880934a5255f759cee470b6f85a16a44f62bacaad14490e72a212c4cf6e53f0fe69b87492f9d055
|
||||
DIST python-dateutil-2.4.0.tar.gz 195214 SHA256 439df33ce47ef1478a4f4765f3390eab0ed3ec4ae10be32f2930000c8d19f417 SHA512 2e62e6fe430838bbb86e94dd3b224e5a0676f06a1c0fecf11ae6954f98916b4b91555bdeabfb6c458516fcee2462a731ebcb8c551fd7ceb808f9f55d5bdb7408 WHIRLPOOL ca717566d50b32e7a346569a391f8d47c86a5c5c833d8083c7fb26e5eaeb45c590e563b9cf8dd2b2d8ff5210b0b8c08d7bc58d87aac3ffb333546622db66c76f
|
||||
DIST python-dateutil-2.4.1.post1.tar.gz 207628 SHA256 aa9bdbd60c395db90204609f1fb5aeb3797870f65c09f04f243476d22f8f4615 SHA512 abd2b00f93cb4a4513da52c2f4c9ee632f1db1de583179b6e20a948463cf830ac339b7be6f7b6c5f9a823d0da955a48aee16c8d769eaaf33421090a5fbd199ce WHIRLPOOL 8c86898994dd65ee06034de47b47937203db66f9e8ae64c72c220464e9e590aa0e9e6a1e94b76fa9ed2571b11e5beb6f7d637937cc05f6c262e18c7130cf4a9b
|
||||
DIST python-dateutil-2.4.2.tar.gz 209120 SHA256 3e95445c1db500a344079a47b171c45ef18f57d188dffdb0e4165c71bea8eb3d SHA512 8e38721e6d132850f85e7808d2731285d2c12eae2a3e0cbebe05265d0837ad22d4d94b611e146028ea3d23a3e2611b281dd6224081a69dfe4b58cf3b378d7f0d WHIRLPOOL 88ddb75f52a95a6b7197b41364b80968bf2c21a3bda9c7b992726ef35ca934a66a5d8ccd773d7647f985541d87c66fa94af13600b0165707af9b73d1bff8887e
|
||||
DIST python-dateutil-2.5.3.tar.gz 236877 SHA256 1408fdb07c6a1fa9997567ce3fcee6a337b39a503d80699e0f213de4aa4b32ed SHA512 413b935321f0a65fd8e8ba49990acd5bed60b9bcd614837a26c1cf52ecbf268543a97791dfa7b91ebf183866a8de7be302ca7d18d10352e897994f60bce5df62 WHIRLPOOL dd199467d5ddccb7a82b0f08d3ccc5695f542e62f7bddc1d9b01fefcdeb91cb119a5978901b0bc84af0d69482e7f984fa512e5978a1e791753b1c3ee64c87103
|
||||
EBUILD python-dateutil-2.1-r1.ebuild 1389 SHA256 f6c67d5963c039204fb48cd563981ea3a8024ff79c60261b05123571dfd8e793 SHA512 2984184ba915f376c7271c087b1cbb23f0144c26fcaae17e6dc575b360eb5b9377b41cfeabe79275f6e19dd9d5ab8cf528c356820bfef2baa848c139cc245bd0 WHIRLPOOL 8c13d5d64b2b13b374568ac17f61a2d58c45e0fbf72db376780a0de6846cc1d27248c40402c23f46656841cae6959ff7bfd2a8cbe5c6092023e9ad289a3414d7
|
||||
DIST python-dateutil-2.6.0.tar.gz 258060 SHA256 62a2f8df3d66f878373fd0072eacf4ee52194ba302e00082828e0d263b0418d2 SHA512 1fec6dd6fc00650821fd826405414bcde79e1542a53608ebd837e924b4abc147a369214ec064adbff682fc5ff67440086f3000eaa77b274c7463c3f58686ced9 WHIRLPOOL 1cae1f1e3dfe09c3215bba031ee5a604ffe86bae7b70999320f37232ddaf5401edbb56697157b9b89316220d932faef07e7d7e6a2e68992fc17bb91bf86b24b3
|
||||
EBUILD python-dateutil-2.2.ebuild 1326 SHA256 d66aa4dd75df5d8d929a5151042c68ecce11e4ded363b898d5e170524669a09c SHA512 a5072d6ba6661b6223871a3be4813f7ee85093e7ad4e8fc93b2031950aeb66a21fe025e0eaf037b4f33394dfbbdbbf72f5f9a7b5c172d863cc8080480d068d29 WHIRLPOOL 753a77525be8c88c8465f015a2034827a151592b72c7e58231fac7d8b824248566f2562b95b27e56a9075d3dd0687db2270af455dffa2298d5c4236f33093dec
|
||||
EBUILD python-dateutil-2.4.0.ebuild 929 SHA256 584c4e65d97709ca203ea671581a31a58c160ab51af585536117fdbb6434683c SHA512 9d8142b836066b1f51c4ce6817ca2a17bea00905515f1acfebb6a1e55dbc6f3fb16f7a3c8e5867f705b7af28eafd25f136c8640ccefadaf3a0aca42f324efe63 WHIRLPOOL 618ab5422db23b8e7e4ab6e7be6fadfd925d7f9a5497cc61f36341dadfafa07da5c4ec449ebe0ce46f552787869d4132609b09b145838d3af50d7ef51f2abbe2
|
||||
EBUILD python-dateutil-2.4.1-r1.ebuild 935 SHA256 9aca5d7b90880ed67b3c2d3d1b622684282131e8075e8d8754390e7595fd9a2e SHA512 57d8733b758adf1da4856160d70afe83fd4b153ec5271147024cbf58a98cac01b45fa8598cd23f487737b9988c2a101629a6c39643a6e34806ae7c6deec6a72b WHIRLPOOL cbb24a8536c7a4c8e72092eb91b334f298e824ef84d1338d7d8a77c0f3b9547e7ce320fee05e8b6cdc2acbdcbf96b960c2bea5de48dc3a51c9c8a5cd767cdf0d
|
||||
EBUILD python-dateutil-2.4.2-r1.ebuild 997 SHA256 f4dc24cf80571008798a8f9fff6011df7fea4d9ebd70dee9b5e7e9a49c52b062 SHA512 d442a2f62131d921da4f64f63b5489a1009a6fb15c49157f821423f97272ba43ed923bc2dc003e33004d9c6d7ae108ccc1013ef9641bf1a880ff08c74d43845d WHIRLPOOL 929f04ce4687deaf7f229b2a9112e87454d2e3a92373b27ed03a81f51fbc0a24f2632b0c1e8e31f61b1680409211564168b3d223e98ba2989b09347527154aa9
|
||||
EBUILD python-dateutil-2.4.2.ebuild 941 SHA256 36d42d04ea52711378e24c84869b06a15206a3e1a410ccd934ca0524c3a02f2c SHA512 469ecf05a0a7d1d9763b10e407bab6282f4edc54336c3a572fc90de169fd3a1c22e80fa28eab46a7f05c1b612ac27e65bb4ef1dcece824753e0493305d0356b0 WHIRLPOOL c68dce6e3ebe9729645adfc342f0aabfdfdc4137342bb3ac71e19d2aa985a3ac7b7165cd099540f6e8cdcf48628dac68511c288188727951d87d2f0d0c8d4d8e
|
||||
EBUILD python-dateutil-2.5.3.ebuild 951 SHA256 0c64da3d856b9d4d42d22c96c6b4beaf3d8ad373ce1774adb0f9e953d42c7dd8 SHA512 43865b2e68e45d5cbb19754a74562974cac50d70900053065f0abc06d3062b9840e4bc430ecaf99f06fc90a778cd591a7ca734ca5aea6a128db203be7ed584e1 WHIRLPOOL f7079b33ef5ba9f5c50f1e7c596a2f7e1d99d7bd33b67358555df472ed8548d52439f1e7f15f2832195f5efb3b761e440f739c2582f5b17e9268af76312c7549
|
||||
MISC ChangeLog 4439 SHA256 362a3dd87df9a3ece606ade78262ea23233c889047e032af524957dc05442c83 SHA512 8721e79f6e44857697c589bc6a1c357247f51ef7fe53061f44fc595d4c762bd5b9ddc3197a88c94d365449361464d8fa3b4efc3f13333d5b8ac0c4ec486a507e WHIRLPOOL 51f8a4743c42ca75ba830ae8ac64072459ad1af6003e117675f686d20c9d1a0f231b44b7a14e4263cf9e9ccfcd42e74b0653dea74a710302397dbf15485b3ff9
|
||||
EBUILD python-dateutil-2.6.0.ebuild 951 SHA256 0c64da3d856b9d4d42d22c96c6b4beaf3d8ad373ce1774adb0f9e953d42c7dd8 SHA512 43865b2e68e45d5cbb19754a74562974cac50d70900053065f0abc06d3062b9840e4bc430ecaf99f06fc90a778cd591a7ca734ca5aea6a128db203be7ed584e1 WHIRLPOOL f7079b33ef5ba9f5c50f1e7c596a2f7e1d99d7bd33b67358555df472ed8548d52439f1e7f15f2832195f5efb3b761e440f739c2582f5b17e9268af76312c7549
|
||||
MISC ChangeLog 4906 SHA256 a19b62b4b3d86b3b045709ce17b511328ad0ab8ac93e8ed89b988800498eb485 SHA512 af7e5c97eabf3472dee4c03f73db9aa4580aa302473181e13d5088c0e333d2a4d15d29281003edfb2e431af68095cc0a394dfab450935195e20c61bff66b5eef WHIRLPOOL 377286b3363fe1e78d94dcff64fdea2c765a587f0c51fe98b8013f3f607793a57f193ce7fbfb1b5009dc99ba0152ef4be9f9e2c4081aae40329fe27a11b186b6
|
||||
MISC ChangeLog-2015 10635 SHA256 636cebef239d2c893b631cac56b4f411b835e5f4957890a4f77f8751d9909d0b SHA512 18af6739457392aabf58dba688fe6a8016c0b4dcc622c1010076ec38ff334f419aaba065a062da376371b2385bccd8e5e0ed5a2bf51e3e2015c1fd7ab2db09cd WHIRLPOOL 7032c6eda78eff8f24d1c7e0f03dd85a1cd9c3fecfc98430203ea56edb31dad70331503acbdb9b64e31b2510efa5647ed64d60f0945cade4165165f0621369e5
|
||||
MISC metadata.xml 603 SHA256 f3a4d2cf042eb37dc92f3920e259385541b28c0b5745c658957b72db4c23f925 SHA512 87f5ea8b8918e72b57b91d32ed103d88f93ad9fbbe0a8f3f8b8ea72627d82e5cac25246553a0cb6988af26c30841ca5a3ddccf7f957603283a1b4e455a7c6439 WHIRLPOOL 5d70545ea532b591a934f1dc57b06c9b0d856d7a7b415788ab66fb58518716fff9bd8b1ecbe060ba2b72314c05d86add8d55fa613e611f366e029a036c77e32b
|
||||
|
@ -1,21 +0,0 @@
|
||||
Fix UnicodeDecodeError in setup.py.
|
||||
|
||||
https://bugs.gentoo.org/show_bug.cgi?id=410725
|
||||
--- setup.py
|
||||
+++ setup.py
|
||||
@@ -1,5 +1,6 @@
|
||||
#!/usr/bin/python
|
||||
from os.path import isfile, join
|
||||
+import codecs
|
||||
import glob
|
||||
import os
|
||||
import re
|
||||
@@ -13,7 +14,7 @@
|
||||
|
||||
TOPDIR = os.path.dirname(__file__) or "."
|
||||
VERSION = re.search('__version__ = "([^"]+)"',
|
||||
- open(TOPDIR + "/dateutil/__init__.py").read()).group(1)
|
||||
+ codecs.open(TOPDIR + "/dateutil/__init__.py", encoding='utf-8').read()).group(1)
|
||||
|
||||
|
||||
setup(name="python-dateutil",
|
@ -1,58 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_7,3_4} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Extensions to the standard Python datetime module"
|
||||
HOMEPAGE="https://launchpad.net/dateutil https://pypi.python.org/pypi/python-dateutil"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="examples"
|
||||
|
||||
RDEPEND="dev-python/six[${PYTHON_USEDEP}]
|
||||
sys-libs/timezone-data
|
||||
!<dev-python/python-dateutil-2.1"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
PATCHES=(
|
||||
# Bug 410725.
|
||||
"${FILESDIR}/${P}-open-utf-8.patch"
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
# Use zoneinfo in /usr/share/zoneinfo.
|
||||
sed -i -e "s/zoneinfo.gettz/gettz/g" test.py || die
|
||||
|
||||
# Fix parsing of date in non-English locales.
|
||||
sed -e 's/subprocess.getoutput("date")/subprocess.getoutput("LC_ALL=C date")/' \
|
||||
-i example.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" test.py || die
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
|
||||
rm -f "${D}$(python_get_sitedir)/dateutil/zoneinfo"/*.tar.*
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
if use examples; then
|
||||
docinto examples
|
||||
dodoc example.py sandbox/*.py
|
||||
fi
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_7,3_4} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Extensions to the standard Python datetime module"
|
||||
HOMEPAGE="https://dateutil.readthedocs.org/ https://pypi.python.org/pypi/python-dateutil https://github.com/dateutil/dateutil/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-python/six-1.5[${PYTHON_USEDEP}]
|
||||
sys-libs/timezone-data"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
python_prepare_all() {
|
||||
# don't install zoneinfo tarball
|
||||
sed -i '/package_data=/d' setup.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_7,3_4} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Extensions to the standard Python datetime module"
|
||||
HOMEPAGE="https://dateutil.readthedocs.org/ https://pypi.python.org/pypi/python-dateutil https://github.com/dateutil/dateutil/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.post1.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-python/six-1.5[${PYTHON_USEDEP}]
|
||||
sys-libs/timezone-data"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
python_prepare_all() {
|
||||
# don't install zoneinfo tarball
|
||||
sed -i '/package_data=/d' setup.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
@ -1,10 +1,10 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_4 pypy )
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
@ -1,7 +1,7 @@
|
||||
DIST readme-0.5.1.tar.gz 9917 SHA256 4d33851d7fa56d1f93b7ba979ebbb17b5175ccde9fd9dfb974427bdd72ec667b SHA512 50cbd71e692be0b6cba06d85765946aa2d2d751f3f44563c5a6902ecc982658e5e3b1e01cbaf50a4df4dc61a56290e67b71eb88c109cbb830af36f0d334552c2 WHIRLPOOL f53d900d9764c59053db1350fe059a45d1faed43f7d53468ebf3d88dfea44fe69ffb22e80483e69c4b24708fd75963a034e429325b5844375a11202ce7877a23
|
||||
DIST readme-0.6.0.tar.gz 9938 SHA256 150c55626d2be4237616d84367b789e398f4d416029e5c62b09fd1688fe14222 SHA512 73c41c728171a18a963460459aa19d559f38ad34d54a9840820feb1329a0d71c1b0eb32ce773a4f8e9d361e534bfd916e376fe1a3fe8b8a9eb91fffac3ef565c WHIRLPOOL bb45daa786a26a0c3ab7b16583b13d56e782439a06ef53a87a94d60bfb2e6220eb65fc75d7ebfc77d5f6bb3b299438f1c00e88d7edf391ad95231e18be37c523
|
||||
EBUILD readme-0.5.1.ebuild 949 SHA256 1e930df2996df60d0f8ec9e5e1a088b408da14f5ed2b6e7fe4f5511a1b0ee24f SHA512 0810b1aad589438c0bf55225b7de4578707b9492d29bc2de4fe727e999d8bccd1f1b41baff5928c27a068fe2214a6e02682b589a173ad2b518c0729cf3eb8548 WHIRLPOOL b2f296dbc7859ff6775f8ffc464381a91faefd192a4686b97594f1def340dbb03478dc02b0f8d6f8cdfa901b01f6054eef0f6e36577af5ed3ecdbb2563c35a87
|
||||
EBUILD readme-0.6.0.ebuild 817 SHA256 87bb81fe775fbd2ca59b7a829de9c8df0989bf4a591390267fe72c6f022f6ac4 SHA512 dfc812f3d99c0a34b383d01ea8ae48a83037fdfada669509e90f4cab62f5c3fb1818b9047fb949a45fbd38b29e45a3731cc54ecca26688c3274c212a0d3a18e4 WHIRLPOOL c75380b34fa9de985e64af5f0a9aac5deaae6dfd15a5030aef554bb8c1e03d8c09c41f431fa44d33c2730b041ecd9cd82cf98bec8d802d87a2075e0c8255e0c7
|
||||
MISC ChangeLog 3136 SHA256 f891a49b250bea7d19c645bc3854f5c90061a0300671c87d17bbb79e17b07aa5 SHA512 60f677472547f53d5b47be8e8fe94eb60ca3b5de6869024bec3d8990b505376b49f85982ce046802289617087b7d371a0e95f3c6417619608f297608089737a3 WHIRLPOOL 6c17b9011c0b4beeab0da766932d8b9995920909db541d875afea2d4a10c12f8616acd88c813b4b848d104cf9fa15b62c7949385fbe5327d23ca96b8d27c14c8
|
||||
EBUILD readme-0.6.0.ebuild 821 SHA256 a3bdd081eebcfd628f96dcf8aa06dcd4798476656e194bcf3017690737ed3118 SHA512 7da5481ab06d2da5a5922af8b21aeb814269f7af94bf142be4bca685c0a66c3a2a4f7168c81f5b768bc63f83ef4b9373d53f88faa0d34249cdc9a593e6408684 WHIRLPOOL fcf96023927b33d6ee558e73b9c9cf06be11cdd1167fb36bfe94362917bb23b9f77838c895d2ebca25330529fb5365a69c54b59aede6e96adc496033e6907091
|
||||
MISC ChangeLog 3292 SHA256 38d88bd4172b8ec65f682d075efebec515ba155583f2ef65cb3ba58e6cdd0083 SHA512 c7f228543d8c337507786f42153411150e21717f1ca8b1a9088bc5ffef94f6230596732d7035da05456fba065cf93073fa3f05442e2da51e47aa59b9412fe9b5 WHIRLPOOL b272433e1a23ddaa67e6af42c6d18ab4e772bd3a53e5346d761a018d47abacc6c8bf8eaff45cfa2727a491c7106ab7a030c912f887012846b4ce9556b1329e76
|
||||
MISC ChangeLog-2015 873 SHA256 732bfeaf317e91190effb0a0131012e51e1c911e35f186d21d81af9c5a964bfc SHA512 64eb349562c940476d5a30fee6b500ee2617eab42ce23a0ddc7c7e341478675a1efafc2efa40c689cbe367fe833e5c94c228b2c463c623fd2f5db3054dfb1be1 WHIRLPOOL 6dbfe10a2f8244ff52ed2f4b4022bdc550e56dbf0763b89509fddd52e2e21df6cedd1e3a279227ca7a2cf7e5bba35ed6f34966e2d022b21d2fdd9974aefbd054
|
||||
MISC metadata.xml 372 SHA256 916d64bdf5cc8109b671e1a07f73df8a58acfee12022cc1e343e63e48a05f85f SHA512 97168e8c89035983857c0c5d3f3241665d3dfb7088e591563835214cfc2786e11f7a5ab95b0deda2f017dd2c2c3713d8dc6d7c76950ed163285013b6a4b39dda WHIRLPOOL dbda74ec65c6d363925cc18ab360cb3e9ea3559fe90f84452a98bff9d75eadf0efa4d23d1046a72d50c0d18136cf05892c7fc7dc7d69de20d686627f1eee0efa
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue