parent
220d8effbb
commit
b6bb5390b0
@ -1,5 +1,3 @@
|
||||
DIST ansible-1.2.3.tar.gz 778715 SHA256 232e90a6c3d2146c10dcab1e374124994935a15f9cf6e892c9730cc89cc70e53 SHA512 82a8a7ceb3a40d52f205901ac6c93e35cea313db6db6253170bc9c1dd0e7af650242fb8f052a8bef01f0913238db1195ec5b2865cebb135498cba2b1c3acbc20 WHIRLPOOL 3ed6394637e165869c233ba8cf6bdbe5a59101e05268b0dec7ce8f663ecc83e8720546ac3e06c7d8acaa6c431c842cefd49c0d4df0c70bb79dea9c075a18df8f
|
||||
DIST ansible-1.3.3.tar.gz 869148 SHA256 72eed601930616aa8953514c96fd371e2cae4c5bd4611a5215eac054d62c8382 SHA512 400b207c58df1e3fc4c490b0db3bfb978ec38045a52e5c280dbaba6134826674c05e0924c63fb458104969d873c1405e9dc1fd13b65eff6495a3a90e4419728c WHIRLPOOL 57e949c3d5e4d5dbacf4463cb895d373e916c67bb2c993cf1e094a841a2428add4833c56683e3b4fd829461017748c7cb4af107bae34827fc1668a8b1ee8bea1
|
||||
DIST ansible-1.3.4.tar.gz 869278 SHA256 127ff0c68c7997f26ad9840fe6049567ada1ce76ed99f1ca24ed3a58171049b5 SHA512 c802b9abbf20029e01e368af48dc90968c0f2a08e2580fda97c6600431cf5d22c09d04ad6a33a745a8b25d413a0a4ce708eef075602210f27dccfa4a9e396e40 WHIRLPOOL e8de8d20fd485a35123a46b648f0b93eaa65eb5b3d1e0e8fb522c2bd1ebf21830b2f5f2ddb28d0fb66597a43babe4cb232984909412876bc96cb9522e3e30a3f
|
||||
DIST ansible-1.4.1.tar.gz 1003129 SHA256 dd4e3f5a4bbd2f65c17be208a15313c5679859b0dccb762debfa0699cb4a1bfe SHA512 c62f93a8446ebc47c625c9ac985a81a8bcb311b5a224585147d984eaaff9c0f7bf4a3b58e5000ea7b7ed6a04b0ef51923fbd5b84972fb4ef94792ad0ade218e4 WHIRLPOOL 0ec66c5d299b1b4481a732d45eb9e39e60bfd43ac10a90b240b7f41c71a30910f1712d889b6c5a6b3a49c9c31be721f053692ff64a2e07d3d4ec0542f822ef92
|
||||
DIST ansible-1.4.3.tar.gz 1011935 SHA256 bb9f2a63a0a88ab60b64c58e5e7fe9e1602d7bea22f3965e633fe87dfc87eaf5 SHA512 52b7efe63f0c6932ae829011e545ed0e71d15ded10aadfba37c0e8185d3fc9015468c63888426215e492942489bd791cce831564954fa168dfcce34387ce90f8 WHIRLPOOL a9119c1758fc2ac6fe059ee97dd6b8c38a182fb2547104934f3cd08d5a607dbdabae282d586f90a5a139f5341246f0e2241067feff836975b8eaf08e90ee66ac
|
||||
DIST ansible-1.4.5.tar.gz 1012349 SHA256 61c35aad0d4ef668051652b8a5b84b6407016a5b1daa74b982889ff0fafddea0 SHA512 b65f1eaac0ef749a0cb1592b5e26cb3004dcf9b49dbf35496e06fe59f58328d0c82fc01ca38c6276440b85f267fcf69006b14f585525ee5219e1868c18433fed WHIRLPOOL 70be758c77aca464a83368533011aaf2d2467a946879e154c9fd1e798ab02207c11de2a4dbaaa816aba3edb873fdeafc76a3975723b4837a2d1a2f19a5a42806
|
||||
DIST ansible-1.5.0.tar.gz 1024953 SHA256 9ac02f181f595a95c00cf1615b1166ba86149a7d1503a8c0e758165409d1e4be SHA512 cc0f0dedbaeaaad6d69448490bdbeae4fb100d31d5ee12d95823df5f11e093d8bedb7cc202e47915eeeffad2dce09cfee36b3937627c5637a1dfdc1daa290531 WHIRLPOOL 19e5194182da5b22dcdb70416459f5d0a7369d71703d62a3a924ccd2b4fbde5d5eb0f1581d4868d32310df2a2ad7a9d53aeb650d74fd15efeff7fbb9e647c932
|
||||
|
@ -1,62 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/ansible/ansible-1.2.3.ebuild,v 1.3 2013/09/14 10:13:37 ago Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
|
||||
inherit distutils-r1 readme.gentoo
|
||||
|
||||
DESCRIPTION="Radically simple deployment, model-driven configuration management, and command execution framework"
|
||||
HOMEPAGE="http://ansible.cc/"
|
||||
SRC_URI="https://github.com/ansible/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
KEYWORDS="amd64 x86"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="test? (
|
||||
dev-python/nose
|
||||
dev-vcs/git
|
||||
)"
|
||||
RDEPEND="
|
||||
dev-python/jinja
|
||||
dev-python/pyyaml
|
||||
dev-python/paramiko
|
||||
net-misc/sshpass
|
||||
virtual/ssh
|
||||
"
|
||||
|
||||
DOC_CONTENTS="You can define parameters through shell variables OR use config files
|
||||
Examples of config files installed in /usr/share/doc/${P}/examples\n\n
|
||||
You have to create ansible hosts file!\n
|
||||
More info on http://ansible.cc/docs/gettingstarted.html"
|
||||
|
||||
python_prepare_all() {
|
||||
distutils-r1_python_prepare_all
|
||||
# Skip tests which need ssh access
|
||||
sed -i 's:$(NOSETESTS) -d -v:\0 -e \\(TestPlayBook.py\\|TestRunner.py\\):' Makefile || die "sed failed"
|
||||
}
|
||||
|
||||
python_test() {
|
||||
make tests || die "tests failed"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
doman docs/man/man1/*.1
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
# Hint: do not install example config files into /etc
|
||||
# let this choice to user
|
||||
|
||||
newenvd "${FILESDIR}"/${PN}.env 95ansible
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
readme.gentoo_create_doc
|
||||
}
|
@ -1,62 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/ansible/ansible-1.3.3.ebuild,v 1.1 2013/10/11 11:30:57 pinkbyte Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
|
||||
inherit distutils-r1 readme.gentoo
|
||||
|
||||
DESCRIPTION="Radically simple deployment, model-driven configuration management, and command execution framework"
|
||||
HOMEPAGE="http://ansible.cc/"
|
||||
SRC_URI="https://github.com/ansible/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="test? (
|
||||
dev-python/nose
|
||||
dev-vcs/git
|
||||
)"
|
||||
RDEPEND="
|
||||
dev-python/jinja
|
||||
dev-python/pyyaml
|
||||
dev-python/paramiko
|
||||
net-misc/sshpass
|
||||
virtual/ssh
|
||||
"
|
||||
|
||||
DOC_CONTENTS="You can define parameters through shell variables OR use config files
|
||||
Examples of config files installed in /usr/share/doc/${PF}/examples\n\n
|
||||
You have to create ansible hosts file!\n
|
||||
More info on http://ansible.cc/docs/gettingstarted.html"
|
||||
|
||||
python_prepare_all() {
|
||||
distutils-r1_python_prepare_all
|
||||
# Skip tests which need ssh access
|
||||
sed -i 's:$(NOSETESTS) -d -v:\0 -e \\(TestPlayBook.py\\|TestRunner.py\\):' Makefile || die "sed failed"
|
||||
}
|
||||
|
||||
python_test() {
|
||||
make tests || die "tests failed"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
doman docs/man/man1/*.1
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
# Hint: do not install example config files into /etc
|
||||
# let this choice to user
|
||||
|
||||
newenvd "${FILESDIR}"/${PN}.env 95ansible
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
readme.gentoo_create_doc
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
--- test/TestUtils.py.orig 2013-12-09 13:39:23.585258424 -0500
|
||||
+++ test/TestUtils.py 2013-12-09 13:39:40.524257467 -0500
|
||||
@@ -10,6 +10,10 @@
|
||||
import ansible.utils
|
||||
import ansible.utils.template as template2
|
||||
|
||||
+import sys
|
||||
+reload(sys)
|
||||
+sys.setdefaultencoding("utf8")
|
||||
+
|
||||
class TestUtils(unittest.TestCase):
|
||||
|
||||
#####################################
|
@ -0,0 +1,28 @@
|
||||
--- mg-20140220-orig/sysdef.h
|
||||
+++ mg-20140220/sysdef.h
|
||||
@@ -15,7 +15,7 @@
|
||||
# define __USE_GNU
|
||||
#endif
|
||||
|
||||
-#ifdef __APPLE__
|
||||
+#if defined(__APPLE__) || defined(__FreeBSD__)
|
||||
# define LOGIN_NAME_MAX _POSIX_LOGIN_NAME_MAX
|
||||
#endif
|
||||
|
||||
--- mg-20140220-orig/tags.c
|
||||
+++ mg-20140220/tags.c
|
||||
@@ -15,9 +15,12 @@
|
||||
#include <err.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
+#include <stdio.h>
|
||||
|
||||
-#ifndef LIBBSD_OVERLAY
|
||||
-#include <util.h>
|
||||
+#if defined(LIBBSD_OVERLAY) || defined(__FreeBSD__)
|
||||
+# include <libutil.h>
|
||||
+#else
|
||||
+# include <util.h>
|
||||
#endif
|
||||
|
||||
#include "def.h"
|
@ -0,0 +1,113 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/ganeti/files/ganeti-2.2.initd,v 1.1 2014/03/03 23:59:44 chutzpah Exp $
|
||||
|
||||
depend() {
|
||||
need localmount logger
|
||||
after bootmisc
|
||||
use net
|
||||
}
|
||||
|
||||
DAEMON_UTIL="/usr/lib/ganeti/daemon-util"
|
||||
|
||||
check_config() {
|
||||
if ! $DAEMON_UTIL check-config ; then
|
||||
eend 0 "Incomplete configuration, will not run."
|
||||
fi
|
||||
}
|
||||
|
||||
check_exitcode() {
|
||||
RC=${1}
|
||||
if errmsg=$(${DAEMON_UTIL} check-exitcode ${RC}) ; then
|
||||
eend 0 "${errmsg}"
|
||||
else
|
||||
eend 1 "${errmsg}"
|
||||
fi
|
||||
}
|
||||
|
||||
start_action() {
|
||||
# called as start_action daemon-name
|
||||
local daemon="${1}"
|
||||
ebegin "Starting ${daemon}"
|
||||
${DAEMON_UTIL} start "${@}"
|
||||
check_exitcode ${?}
|
||||
}
|
||||
|
||||
stop_action() {
|
||||
# called as stop_action daemon-name
|
||||
local daemon="${1}"
|
||||
ebegin "Stopping ${daemon}"
|
||||
${DAEMON_UTIL} stop "${@}"
|
||||
check_exitcode ${?}
|
||||
}
|
||||
|
||||
maybe_do() {
|
||||
requested="${1}"; shift
|
||||
action="${1}"; shift
|
||||
target="${1}"
|
||||
if [ -z "${requested}" -o "${requested}" = "${target}" ] ; then
|
||||
${action} "${@}"
|
||||
fi
|
||||
}
|
||||
|
||||
get_master_node() {
|
||||
MASTER_NODE="$(gnt-cluster getmaster)"
|
||||
NODE_HOSTNAME="$(hostname -f)"
|
||||
if [ "$MASTER_NODE" == "$NODE_HOSTNAME" ] ; then
|
||||
MASTER=1
|
||||
else
|
||||
MASTER=0
|
||||
fi
|
||||
}
|
||||
|
||||
start_all() {
|
||||
check_config
|
||||
get_master_node
|
||||
for i in $($DAEMON_UTIL list-start-daemons); do \
|
||||
GANETI_START_OPTS="${GANETI_OPTS}"
|
||||
case "${i}" in
|
||||
ganeti-masterd)
|
||||
GANETI_OPTS="${GANETI_START_OPTS} ${GANETI_MASTERD_OPTS}"
|
||||
;;
|
||||
ganeti-rapid)
|
||||
GANETI_OPTS="${GANETI_START_OPTS} ${GANETI_RAPI_OPTS}"
|
||||
;;
|
||||
ganeti-noded)
|
||||
GANETI_OPTS="${GANETI_START_OPTS} ${GANETI_NODED_OPTS}"
|
||||
;;
|
||||
ganeti-confd)
|
||||
GANETI_OPTS="${GANETI_START_OPTS} ${GANETI_CONFD_OPTS}"
|
||||
;;
|
||||
esac
|
||||
# Don't start if not master
|
||||
if [ $MASTER = 0 -a $i = "ganeti-masterd" ] ; then
|
||||
continue
|
||||
elif [ $MASTER = 0 -a $i = "ganeti-rapi" ] ; then
|
||||
continue
|
||||
else
|
||||
maybe_do "${1}" start_action ${i} ${GANETI_OPTS}
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
stop_all() {
|
||||
get_master_node
|
||||
for i in $($DAEMON_UTIL list-stop-daemons) ; do \
|
||||
if [ $MASTER = 0 -a $i = "ganeti-masterd" ] ; then
|
||||
continue
|
||||
elif [ $MASTER = 0 -a $i = "ganeti-rapi" ] ; then
|
||||
continue
|
||||
else
|
||||
maybe_do "${1}" stop_action ${i} ${GANETI_OPTS}
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
start() {
|
||||
start_all
|
||||
}
|
||||
|
||||
stop() {
|
||||
stop_all
|
||||
}
|
@ -0,0 +1,166 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/ganeti/ganeti-2.10.0.ebuild,v 1.2 2014/03/04 00:12:09 chutzpah Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=(python2_{6,7})
|
||||
use test && PYTHON_REQ_USE="ipv6"
|
||||
|
||||
inherit eutils confutils autotools bash-completion-r1 python-single-r1 versionator
|
||||
|
||||
MY_PV="${PV/_rc/~rc}"
|
||||
#MY_PV="${PV/_beta/~beta}"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="git://git.ganeti.org/ganeti.git"
|
||||
inherit git-2
|
||||
KEYWORDS=""
|
||||
# you will need to pull in the haskell overlay for pandoc
|
||||
GIT_DEPEND="app-text/pandoc
|
||||
dev-python/docutils
|
||||
dev-python/sphinx
|
||||
media-libs/gd[fontconfig,jpeg,png,truetype]
|
||||
media-gfx/graphviz
|
||||
media-fonts/urw-fonts"
|
||||
else
|
||||
SRC_URI="http://downloads.ganeti.org/releases/$(get_version_component_range 1-2)/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Ganeti is a virtual server management software tool"
|
||||
HOMEPAGE="http://code.google.com/p/ganeti/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="kvm xen lxc drbd htools syslog ipv6 haskell-daemons rbd test"
|
||||
REQUIRED_USE="|| ( kvm xen lxc )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
HASKELL_DEPS=">=dev-lang/ghc-6.12:0=
|
||||
dev-haskell/json:0=
|
||||
dev-haskell/curl:0=
|
||||
dev-haskell/network:0=
|
||||
dev-haskell/parallel
|
||||
dev-haskell/hslogger:0=
|
||||
dev-haskell/utf8-string:0=
|
||||
dev-haskell/deepseq:0=
|
||||
dev-haskell/attoparsec:0=
|
||||
dev-haskell/crypto:0="
|
||||
|
||||
DEPEND="xen? ( >=app-emulation/xen-3.0 )
|
||||
kvm? ( app-emulation/qemu )
|
||||
lxc? ( app-emulation/lxc )
|
||||
drbd? ( <sys-cluster/drbd-8.5 )
|
||||
rbd? ( sys-cluster/ceph )
|
||||
ipv6? ( net-misc/ndisc6 )
|
||||
haskell-daemons? (
|
||||
${HASKELL_DEPS}
|
||||
dev-haskell/text:0=
|
||||
dev-haskell/hinotify:0=
|
||||
dev-haskell/regex-pcre-builtin:0=
|
||||
dev-haskell/vector:0=
|
||||
)
|
||||
dev-libs/openssl
|
||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
dev-python/pyparsing[${PYTHON_USEDEP}]
|
||||
dev-python/pycurl[${PYTHON_USEDEP}]
|
||||
dev-python/pyinotify[${PYTHON_USEDEP}]
|
||||
dev-python/simplejson[${PYTHON_USEDEP}]
|
||||
dev-python/ipaddr[${PYTHON_USEDEP}]
|
||||
dev-python/bitarray[${PYTHON_USEDEP}]
|
||||
net-analyzer/arping
|
||||
net-analyzer/fping
|
||||
net-misc/bridge-utils
|
||||
net-misc/curl[ssl]
|
||||
net-misc/openssh
|
||||
net-misc/socat
|
||||
sys-apps/iproute2
|
||||
sys-fs/lvm2
|
||||
>=sys-apps/baselayout-2.0
|
||||
${PYTHON_DEPS}
|
||||
${GIT_DEPEND}"
|
||||
RDEPEND="${DEPEND}
|
||||
!app-emulation/ganeti-htools"
|
||||
DEPEND+="${HASKELL_DEPS}
|
||||
sys-devel/m4
|
||||
test? (
|
||||
dev-python/mock
|
||||
dev-python/pyyaml
|
||||
dev-haskell/test-framework:0=
|
||||
dev-haskell/test-framework-hunit:0=
|
||||
dev-haskell/test-framework-quickcheck2:0=
|
||||
dev-haskell/temporary:0=
|
||||
sys-apps/fakeroot
|
||||
)"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.6-fix-args.patch"
|
||||
"${FILESDIR}/${PN}-2.6-add-pgrep.patch"
|
||||
"${FILESDIR}/${PN}-2.7-fix-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.9-disable-root-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.9-regex-builtin.patch"
|
||||
"${FILESDIR}/${PN}-2.9-skip-cli-test.patch"
|
||||
)
|
||||
|
||||
pkg_setup () {
|
||||
confutils_use_depend_all haskell-daemons htools
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${PATCHES[@]}"
|
||||
has_version ">=sys-devel/automake-1.13" && epatch "${FILESDIR}/${PN}-2.9-automake-1.13.patch"
|
||||
[[ ${PV} == "9999" ]] && ./autogen.sh
|
||||
rm autotools/missing
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure () {
|
||||
econf --localstatedir=/var \
|
||||
--docdir=/usr/share/doc/${P} \
|
||||
--with-ssh-initscript=/etc/init.d/sshd \
|
||||
--with-export-dir=/var/lib/ganeti-storage/export \
|
||||
--with-os-search-path=/usr/share/ganeti/os \
|
||||
$(use_enable syslog) \
|
||||
$(usex kvm '--with-kvm-path=' '' '/usr/bin/qemu-kvm' '') \
|
||||
$(usex haskell-daemons "--enable-confd=haskell" '' '' '')
|
||||
}
|
||||
|
||||
src_install () {
|
||||
emake V=1 DESTDIR="${D}" install || die "emake install failed"
|
||||
newinitd "${FILESDIR}"/ganeti-2.2.initd ganeti
|
||||
newconfd "${FILESDIR}"/ganeti.confd ganeti
|
||||
use kvm && newinitd "${FILESDIR}"/ganeti-kvm-poweroff.initd ganeti-kvm-poweroff
|
||||
use kvm && newconfd "${FILESDIR}"/ganeti-kvm-poweroff.confd ganeti-kvm-poweroff
|
||||
newbashcomp doc/examples/bash_completion ganeti
|
||||
dodoc INSTALL UPGRADE NEWS README doc/*.rst
|
||||
dohtml -r doc/html/*
|
||||
rm -rf "${D}"/usr/share/doc/ganeti
|
||||
|
||||
docinto examples
|
||||
dodoc doc/examples/{ganeti.cron,gnt-config-backup} doc/examples/*.ocf
|
||||
|
||||
docinto examples/hooks
|
||||
dodoc doc/examples/hooks/{ipsec,ethers}
|
||||
|
||||
insinto /etc/cron.d
|
||||
newins doc/examples/ganeti.cron ${PN}
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins doc/examples/ganeti.logrotate ${PN}
|
||||
|
||||
python_fix_shebang "${D}"/usr/sbin/ "${D}"/usr/"$(get_libdir)"/ganeti/ensure-dirs
|
||||
|
||||
keepdir /var/{lib,log,run}/ganeti/
|
||||
keepdir /usr/share/ganeti/os/
|
||||
keepdir /var/lib/ganeti-storage/{export,file,shared}/
|
||||
|
||||
python_fix_shebang "${ED}"
|
||||
}
|
||||
|
||||
src_test () {
|
||||
emake check || die "emake check failed"
|
||||
}
|
@ -0,0 +1,166 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/ganeti/ganeti-2.9.5.ebuild,v 1.2 2014/03/04 00:12:09 chutzpah Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=(python2_{6,7})
|
||||
use test && PYTHON_REQ_USE="ipv6"
|
||||
|
||||
inherit eutils confutils autotools bash-completion-r1 python-single-r1 versionator
|
||||
|
||||
MY_PV="${PV/_rc/~rc}"
|
||||
#MY_PV="${PV/_beta/~beta}"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
SERIES="$(get_version_component_range 1-2)"
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="git://git.ganeti.org/ganeti.git"
|
||||
inherit git-2
|
||||
KEYWORDS=""
|
||||
# you will need to pull in the haskell overlay for pandoc
|
||||
GIT_DEPEND="app-text/pandoc
|
||||
dev-python/docutils
|
||||
dev-python/sphinx
|
||||
media-libs/gd[fontconfig,jpeg,png,truetype]
|
||||
media-gfx/graphviz
|
||||
media-fonts/urw-fonts"
|
||||
else
|
||||
SRC_URI="http://downloads.ganeti.org/releases/${SERIES}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Ganeti is a virtual server management software tool"
|
||||
HOMEPAGE="http://code.google.com/p/ganeti/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="kvm xen lxc drbd htools syslog ipv6 haskell-daemons rbd test"
|
||||
REQUIRED_USE="|| ( kvm xen lxc )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
HASKELL_DEPS=">=dev-lang/ghc-6.12:0=
|
||||
dev-haskell/json:0=
|
||||
dev-haskell/curl:0=
|
||||
dev-haskell/network:0=
|
||||
dev-haskell/parallel
|
||||
dev-haskell/hslogger:0=
|
||||
dev-haskell/utf8-string:0=
|
||||
dev-haskell/deepseq:0="
|
||||
|
||||
DEPEND="xen? ( >=app-emulation/xen-3.0 )
|
||||
kvm? ( app-emulation/qemu )
|
||||
lxc? ( app-emulation/lxc )
|
||||
drbd? ( <sys-cluster/drbd-8.5 )
|
||||
rbd? ( sys-cluster/ceph )
|
||||
ipv6? ( net-misc/ndisc6 )
|
||||
haskell-daemons? (
|
||||
${HASKELL_DEPS}
|
||||
dev-haskell/crypto:0=
|
||||
dev-haskell/text:0=
|
||||
dev-haskell/hinotify:0=
|
||||
dev-haskell/regex-pcre-builtin:0=
|
||||
dev-haskell/attoparsec:0=
|
||||
dev-haskell/vector:0=
|
||||
)
|
||||
dev-libs/openssl
|
||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
dev-python/pyparsing[${PYTHON_USEDEP}]
|
||||
dev-python/pycurl[${PYTHON_USEDEP}]
|
||||
dev-python/pyinotify[${PYTHON_USEDEP}]
|
||||
dev-python/simplejson[${PYTHON_USEDEP}]
|
||||
dev-python/ipaddr[${PYTHON_USEDEP}]
|
||||
dev-python/bitarray[${PYTHON_USEDEP}]
|
||||
net-analyzer/arping
|
||||
net-analyzer/fping
|
||||
net-misc/bridge-utils
|
||||
net-misc/curl[ssl]
|
||||
net-misc/openssh
|
||||
net-misc/socat
|
||||
sys-apps/iproute2
|
||||
sys-fs/lvm2
|
||||
>=sys-apps/baselayout-2.0
|
||||
${PYTHON_DEPS}
|
||||
${GIT_DEPEND}"
|
||||
RDEPEND="${DEPEND}
|
||||
!app-emulation/ganeti-htools"
|
||||
DEPEND+="${HASKELL_DEPS}
|
||||
test? (
|
||||
dev-python/mock
|
||||
dev-python/pyyaml
|
||||
dev-haskell/test-framework:0=
|
||||
dev-haskell/test-framework-hunit:0=
|
||||
dev-haskell/test-framework-quickcheck2:0=
|
||||
dev-haskell/temporary:0=
|
||||
sys-apps/fakeroot
|
||||
)"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.6-fix-args.patch"
|
||||
"${FILESDIR}/${PN}-2.6-add-pgrep.patch"
|
||||
"${FILESDIR}/${PN}-2.7-fix-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.9-disable-root-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.9-regex-builtin.patch"
|
||||
"${FILESDIR}/${PN}-2.9-skip-cli-test.patch"
|
||||
)
|
||||
|
||||
pkg_setup () {
|
||||
confutils_use_depend_all haskell-daemons htools
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${PATCHES[@]}"
|
||||
has_version ">=sys-devel/automake-1.13" && epatch "${FILESDIR}/${PN}-2.9-automake-1.13.patch"
|
||||
[[ ${PV} == "9999" ]] && ./autogen.sh
|
||||
rm autotools/missing
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure () {
|
||||
econf --localstatedir=/var \
|
||||
--docdir=/usr/share/doc/${P} \
|
||||
--with-ssh-initscript=/etc/init.d/sshd \
|
||||
--with-export-dir=/var/lib/ganeti-storage/export \
|
||||
--with-os-search-path=/usr/share/ganeti/os \
|
||||
$(use_enable syslog) \
|
||||
$(usex kvm '--with-kvm-path=' '' '/usr/bin/qemu-kvm' '') \
|
||||
$(usex haskell-daemons "--enable-confd=haskell" '' '' '')
|
||||
}
|
||||
|
||||
src_install () {
|
||||
emake V=1 DESTDIR="${D}" install || die "emake install failed"
|
||||
newinitd "${FILESDIR}"/ganeti-2.2.initd ganeti
|
||||
newconfd "${FILESDIR}"/ganeti.confd ganeti
|
||||
use kvm && newinitd "${FILESDIR}"/ganeti-kvm-poweroff.initd ganeti-kvm-poweroff
|
||||
use kvm && newconfd "${FILESDIR}"/ganeti-kvm-poweroff.confd ganeti-kvm-poweroff
|
||||
newbashcomp doc/examples/bash_completion ganeti
|
||||
dodoc INSTALL UPGRADE NEWS README doc/*.rst
|
||||
dohtml -r doc/html/*
|
||||
rm -rf "${D}"/usr/share/doc/ganeti
|
||||
|
||||
docinto examples
|
||||
dodoc doc/examples/{ganeti.cron,gnt-config-backup} doc/examples/*.ocf
|
||||
|
||||
docinto examples/hooks
|
||||
dodoc doc/examples/hooks/{ipsec,ethers}
|
||||
|
||||
insinto /etc/cron.d
|
||||
newins doc/examples/ganeti.cron ${PN}
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins doc/examples/ganeti.logrotate ${PN}
|
||||
|
||||
python_fix_shebang "${D}"/usr/sbin/ "${D}"/usr/"$(get_libdir)"/ganeti/ensure-dirs
|
||||
|
||||
keepdir /var/{lib,log,run}/ganeti/
|
||||
keepdir /usr/share/ganeti/os/
|
||||
keepdir /var/lib/ganeti-storage/{export,file,shared}/
|
||||
|
||||
python_fix_shebang "${ED}"
|
||||
}
|
||||
|
||||
src_test () {
|
||||
emake check || die "emake check failed"
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/elixir/elixir-0.12.4.ebuild,v 1.1 2014/03/04 01:56:25 hasufell Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit multilib
|
||||
|
||||
DESCRIPTION="Elixir programming language"
|
||||
HOMEPAGE="http://elixir-lang.org"
|
||||
SRC_URI="https://github.com/elixir-lang/elixir/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 ErlPL-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=dev-lang/erlang-16"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_compile() {
|
||||
emake Q=""
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" LIBDIR="$(get_libdir)" PREFIX="/usr" install
|
||||
dodoc README.md CHANGELOG.md CONTRIBUTING.md
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/File-HomeDir/File-HomeDir-0.980.0.ebuild,v 1.7 2012/03/25 14:42:51 armin76 Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
MODULE_AUTHOR=ADAMK
|
||||
MODULE_VERSION=0.98
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Get home directory for self or other user"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 ~arm ia64 ppc ppc64 sparc x86 ~x86-fbsd ~ppc-macos ~x64-macos ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="virtual/perl-File-Spec
|
||||
>=virtual/perl-File-Temp-0.19
|
||||
dev-perl/File-Which"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
SRC_TEST="do"
|
@ -1,22 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/File-HomeDir/File-HomeDir-0.990.0.ebuild,v 1.2 2012/09/01 11:34:36 grobian Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
MODULE_AUTHOR=ADAMK
|
||||
MODULE_VERSION=0.99
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Get home directory for self or other user"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~ppc-aix ~x86-fbsd ~ppc-macos ~x64-macos ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="virtual/perl-File-Spec
|
||||
>=virtual/perl-File-Temp-0.19
|
||||
dev-perl/File-Which"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
SRC_TEST="do"
|
@ -1,22 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/File-HomeDir/File-HomeDir-1.0.0.ebuild,v 1.2 2013/09/03 18:38:08 zlogene Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
MODULE_AUTHOR=ADAMK
|
||||
MODULE_VERSION=1.00
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Get home directory for self or other user"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86 ~ppc-aix ~x86-fbsd ~ppc-macos ~x64-macos ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="virtual/perl-File-Spec
|
||||
>=virtual/perl-File-Temp-0.19
|
||||
dev-perl/File-Which"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
SRC_TEST="do"
|
@ -1,3 +1 @@
|
||||
DIST File-HomeDir-0.98.tar.gz 50202 SHA256 834149453ff5535b8d6afdcf5e3e5feadca9d3662e3b2e30bc2ef0d9a504a062 SHA512 621b3ec591bea0bff4d2c059f0a907fcfc4a984505aa4851a8ed7ca630faa37626243c9d940a5d47fa9068362e3627bb32bf9946a61c2b99acd8825ee7f1f5a6 WHIRLPOOL 0ada915c05d6f25a0afe9e4dd1ea372f17e271d1a68aef68d2d1b83fc40851e0b678f873c54da1d7cb86b96030b13504abab6e8939e9e3f6da5afc73abba352f
|
||||
DIST File-HomeDir-0.99.tar.gz 50522 SHA256 d0be01e0cb3313d22fdc58fc4263db75775389536a70b52e1204f6fe44512ef8 SHA512 ac154f07105fc0267488f152fa9b853f252a8ae8f8dcb39d204ae305ff2ff24e3682ff41b0f5dbb81fe5f8e842e555de009e93704084611b8f8e0e2d4c12192b WHIRLPOOL 9c763979088e0ee321f4401a3023b6a999e2c22b062ef25e64917e375e83d370447816558640b2037c0783ed1747d3f6d7579a78d475c386c57976ae0e9ff047
|
||||
DIST File-HomeDir-1.00.tar.gz 51349 SHA256 85b94f3513093ec0a25b91f9f2571918519ae6f2b7a1e8546f8f78d09a877143 SHA512 e033b9a60583a76e7b270b99bc113b5dfd616853e7a9e05c34e03bff3cabfa15f8e50a84a932dfb6ed7c2df0aceba3d0c16cd99e08d82a02c9fbe3747af7e994 WHIRLPOOL 2e87ccac5633a8b92f8fd52fda789d6cb969e8844f417311550afba7d13a32525a5c3733508232d5a672c54509ae757cdb53055ef9a6c93464454bd996c4d527
|
||||
|
@ -0,0 +1 @@
|
||||
DIST ipdbplugin-1.4.tar.gz 2473 SHA256 4778d78b5d0af1a2a6d341aed9e72eb73b1df6b179e145b4845d3a209137029c SHA512 5831d1e9aceb2fe4db272975d4d792622822049813ba76bdc0ee48dee001339084efddf534882775922ec178c1bcd52954bc2df1ce42181cbfdd1c3c4b944365 WHIRLPOOL ebf61a52db5be766a8407a85d8af04667a0818b5e084f762759cc535df8611ff363017961278a8da1bbeaafdb1b5630bbff1ba83475b89cf7f1add683748a79d
|
@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/ipdbplugin/ipdbplugin-1.4.ebuild,v 1.1 2014/03/03 13:45:43 slis Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python{2_7,3_2,3_3} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Nose plugin to use iPdb instead of Pdb when tests fail"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/ipdbplugin"
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://github.com/flavioamieiro/nose-ipdb.git"
|
||||
else
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="LGPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-python/ipython[${PYTHON_USEDEP}]
|
||||
dev-python/ipdb
|
||||
dev-python/nose"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/ipdbplugin/ipdbplugin-9999.ebuild,v 1.1 2014/03/03 13:45:43 slis Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python{2_7,3_2,3_3} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Nose plugin to use iPdb instead of Pdb when tests fail"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/ipdbplugin"
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://github.com/flavioamieiro/nose-ipdb.git"
|
||||
else
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="LGPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-python/ipython[${PYTHON_USEDEP}]
|
||||
dev-python/ipdb
|
||||
dev-python/nose"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>slis@gentoo.org</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/pip/pip-1.5.4.ebuild,v 1.1 2014/03/03 19:24:00 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy2_0 )
|
||||
|
||||
inherit bash-completion-r1 distutils-r1
|
||||
|
||||
DESCRIPTION="Installs python packages -- replacement for easy_install"
|
||||
HOMEPAGE="http://www.pip-installer.org/ http://pypi.python.org/pypi/pip/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
SLOT="0"
|
||||
IUSE="zsh-completion"
|
||||
|
||||
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
# required test data isn't bundled with the tarball
|
||||
RESTRICT="test"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-1.5-unversioned.patch )
|
||||
|
||||
python_install_all() {
|
||||
local DOCS=( AUTHORS.txt docs/*.rst )
|
||||
distutils-r1_python_install_all
|
||||
|
||||
COMPLETION="${T}"/completion.tmp
|
||||
|
||||
${EPYTHON} pip/runner.py completion --bash > "${COMPLETION}" || die
|
||||
newbashcomp "${COMPLETION}" ${PN}
|
||||
|
||||
if use zsh-completion ; then
|
||||
${EPYTHON} pip/runner.py completion --zsh > "${COMPLETION}" || die
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins "${COMPLETION}" _pip
|
||||
fi
|
||||
}
|
@ -0,0 +1,78 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyro/pyro-4.24.ebuild,v 1.1 2014/03/03 11:01:57 aidecoe Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3,3_4} pypy2_0 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN="Pyro4"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Advanced and powerful Distributed Object Technology system written entirely in Python"
|
||||
HOMEPAGE="http://www.xs4all.nl/~irmen/pyro/ http://pypi.python.org/pypi/Pyro4"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="4"
|
||||
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="doc examples test"
|
||||
|
||||
RDEPEND="!dev-python/pyro:0
|
||||
dev-python/serpent[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/coverage[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
virtual/python-unittest2[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
python_prepare_all() {
|
||||
sed \
|
||||
-e '/sys.path.insert/a sys.path.insert(1,"PyroTests")' \
|
||||
-i tests/run_suite.py || die
|
||||
|
||||
# Disable tests requiring network connection.
|
||||
sed \
|
||||
-e "s/testBCstart/_&/" \
|
||||
-e "s/testDaemonPyroObj/_&/" \
|
||||
-e "s/testLookupAndRegister/_&/" \
|
||||
-e "s/testMulti/_&/" \
|
||||
-e "s/testRefuseDottedNames/_&/" \
|
||||
-e "s/testResolve/_&/" \
|
||||
-e "s/testBCLookup/_&/" \
|
||||
-i tests/PyroTests/test_naming.py || die
|
||||
sed \
|
||||
-e "s/testOwnloopBasics/_&/" \
|
||||
-e "s/testStartNSfunc/_&/" \
|
||||
-i tests/PyroTests/test_naming2.py || die
|
||||
|
||||
sed \
|
||||
-e "s/testServerConnections/_&/" \
|
||||
-e "s/testServerParallelism/_&/" \
|
||||
-i tests/PyroTests/test_server.py || die
|
||||
|
||||
sed \
|
||||
-e "s/testBroadcast/_&/" \
|
||||
-e "s/testGetIP/_&/" \
|
||||
-e "s/testGetIpVersion[46]/_&/" \
|
||||
-i tests/PyroTests/test_socket.py || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cd "${S}"/tests || die
|
||||
${PYTHON} run_suite.py || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && HTML_DOCS=( docs/. )
|
||||
use examples && local EXAMPLES=( examples/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,3 +1 @@
|
||||
DIST Skype4Py-1.0.32.1.tar.gz 131880 SHA256 6ec059ff567299f9ffccd0dd8ff29809442f14b9525768fc7b516f37dadaeec5 SHA512 ed28380c1f5c1d1af348a05c76ed7e3fb9a45ab52824acfc7d5443bbd9ab5fb54e478bf365c49a9e7ac9e3be4a5b39e156ee8007549f7c0dacbffa2f1d30498d WHIRLPOOL 50fc581cba1af5b5e64abcd2504bdc5c02e7ba86cb8b7aa9aa932d784d1df932b7f2817b2f81b6f7142c105262babdae65d0ab94155f01d44dd75bf858010845
|
||||
DIST skype4py-1.0.34.tar.gz 142702 SHA256 7d564aecbbc4b2ce8de987d386a59bdaf9e296f19d9b92847be81ce298fc5d8a SHA512 e0a77afa038faf1caef55f8fd62370c3a0809b1bc7e3af0dcc08f80879a422876d6911fb34a8087e39fc937159ea56f9d915776f1da5eb6e599824822af6d45e WHIRLPOOL 90c49b035920f089eaaf1545f728b3a562b870ec86b2283914eb04d78d3d40ffe372bf0a67880cc85c09e412695d8e25a51563812a752a2381f95251bea05578
|
||||
DIST skype4py-1.0.35.tar.gz 143453 SHA256 47b61664a47d29f3d5d4a3d6f01a7c5c13c1610767b6ed9e48c07439003533b8 SHA512 daf07b08e5a3dda47f1e643ebbf6d8d01175e7f3a23cf6daf852c75f4b2552b8c68f255e27c89ea8773836b2b154193fed1b3b5e28ed07b503b5c2f95ee4314f WHIRLPOOL 567aa5247959881277449a49f3250831fbd3ce416eadb78f3931b6b2a6a6812dbf2bfbf4cff3a1bef2a53791aaecf124ef152146de0f1c1c22f62047ea6da964
|
||||
|
@ -1,11 +0,0 @@
|
||||
--- Skype4Py-1.0.32.1/Skype4Py/api/posix_dbus.py
|
||||
+++ Skype4Py-1.0.32.1/Skype4Py/api/posix_dbus.py
|
||||
@@ -176,7 +176,7 @@
|
||||
import os
|
||||
if os.fork() == 0: # we're child
|
||||
os.setsid()
|
||||
- os.execlp('skype')
|
||||
+ os.execlp('skype', 'skype')
|
||||
|
||||
def shutdown(self):
|
||||
import os
|
@ -1,25 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/skype4py/skype4py-1.0.32.1-r1.ebuild,v 1.3 2013/09/05 18:46:29 mgorny Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN=Skype4Py
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
DESCRIPTION="Python wrapper for the Skype API"
|
||||
HOMEPAGE="https://github.com/awahlig/skype4py http://pypi.python.org/pypi/Skype4Py/"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="net-im/skype"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-python.patch )
|
@ -1,21 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/skype4py/skype4py-1.0.34.ebuild,v 1.2 2013/09/05 18:46:29 mgorny Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python wrapper for the Skype API"
|
||||
HOMEPAGE="https://github.com/awahlig/skype4py http://pypi.python.org/pypi/Skype4Py/"
|
||||
SRC_URI="https://github.com/awahlig/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="net-im/skype
|
||||
|| ( dev-python/dbus-python[${PYTHON_USEDEP}] x11-libs/libX11 )"
|
||||
|
||||
DOCS=( CHANGES.rst README.rst )
|
@ -1,3 +1,3 @@
|
||||
DIST Sphinx-1.1.3.tar.gz 2632059 SHA256 34dc95b70a2b07a61b5d61034c34b05f82514aab54ad27adedb49cee911bb8e9 SHA512 b8312140d752bf557c8e41728513812aff3e5d0a89af88dea9da0df21bf09c8315f13305d7a724a5596d0192b167d613065ea564c6d92e4ffb23f1f246dbf052 WHIRLPOOL a40c4d0f5c32cf1d4b9b662b0fb2b2b0956e0455abbc88d6b5f95c54f93cc2baae25e8b9196dd0b64090d30a1a796c336ca4b6866243be4198ccdf67a7e18b48
|
||||
DIST Sphinx-1.2.1.tar.gz 3135360 SHA256 182e5c81c3250e1752e744b6a35af4ef680bb6251276b49ef7d17f1d25e9ce70 SHA512 00feb7f842f1fe31ea83fb2978bf69f3c9b06a1c280a8911d282e36d5018691e6e3ba026c0a8275923b8ee6e89f4b01d5e95e26388f58d1b3b0ceac880c206b8 WHIRLPOOL 49f082984166e395e937178503caddf94aea2b235469548e46e51aef46f888af55e75af84250a723fc37cae03017cc7dea0c2b9d62fe96bb7e92a2f1a00ca0fb
|
||||
DIST Sphinx-1.2.tar.gz 3123291 SHA256 bc3c424a0114ff4711f64353cc3eaca30682a5bbfabf3a7f338cd5ea70af79da SHA512 251788018ce05b4ba1b602a878a3b57340810410f7ede7e207f8a7c559d706c3ea8d9f22b50d3cb5630919e3ba64bee72309239bd267b4adf28ecff57ad573a9 WHIRLPOOL b5aa2f711fd16cc27b0cb97389a4b713cc7752f3e17123beeebfd9e13d6093790227cddc9a72b3a78e7c98de22fc4ec0b233b0e7594cf8392e27786c2eebbc96
|
||||
DIST Sphinx-1.2.2.tar.gz 3143671 SHA256 2d3415f5b3e6b7535877f4c84fe228bdb802a8993c239b2d02c23169d67349bd SHA512 44073c215f9d0e7f6c7bc91cb85b0508a96e5cfff5f940fef86e2fc6f11281d03b54e87e51e5a99a23e96b470a93f3af86a6a3ab7c317c747406c55b4c37791c WHIRLPOOL c5ed15b51682d3be9f8349ab838c6758cb4e25023b6ad13622d748b771594ed75f786709a25fb2d61ad245ecef0925e5bcc1aafb93fc355a0f0ea50df63efcd7
|
||||
|
@ -1,121 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/sphinx-1.1.3-r3.ebuild,v 1.10 2013/01/04 13:10:28 ago Exp $
|
||||
|
||||
EAPI="4"
|
||||
PYTHON_DEPEND="*::3.2"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
DISTUTILS_SRC_TEST="nosetests"
|
||||
PYTHON_TESTS_RESTRICTED_ABIS="2.5 *-pypy-*"
|
||||
|
||||
inherit eutils distutils
|
||||
|
||||
MY_PN="Sphinx"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Python documentation generator"
|
||||
HOMEPAGE="http://sphinx.pocoo.org/ http://pypi.python.org/pypi/Sphinx"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc latex"
|
||||
|
||||
DEPEND=">=dev-python/docutils-0.7
|
||||
>=dev-python/jinja-2.3
|
||||
>=dev-python/pygments-1.2
|
||||
dev-python/setuptools
|
||||
latex? (
|
||||
dev-texlive/texlive-latexextra
|
||||
app-text/dvipng
|
||||
)"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
DOCS="CHANGES"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-python3.patch
|
||||
distutils_src_prepare
|
||||
|
||||
prepare_tests() {
|
||||
mkdir -p build-${PYTHON_ABI}
|
||||
cp -r tests build-${PYTHON_ABI}/tests
|
||||
if [[ $(python_get_version -l --major) == "3" ]]; then
|
||||
2to3-${PYTHON_ABI} -nw --no-diffs build-${PYTHON_ABI}/tests
|
||||
fi
|
||||
}
|
||||
use test && python_execute_function prepare_tests
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
distutils_src_compile
|
||||
|
||||
if use doc; then
|
||||
einfo "Generation of documentation"
|
||||
sed -e "/import sys/a sys.path.insert(0, '${S}/build-$(PYTHON -f --ABI)/lib')" -i sphinx-build.py
|
||||
pushd doc > /dev/null
|
||||
emake SPHINXBUILD="$(PYTHON -f) ../sphinx-build.py" html || die
|
||||
popd > /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
testing() {
|
||||
pushd build-${PYTHON_ABI} > /dev/null
|
||||
echo PYTHONPATH=lib nosetests --verbosity=1
|
||||
PYTHONPATH=lib nosetests --verbosity=1
|
||||
local rv=$?
|
||||
popd > /dev/null
|
||||
return $rv
|
||||
}
|
||||
python_execute_function testing
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
python_generate_wrapper_scripts -E -f -q "${ED}usr/bin/sphinx-build"
|
||||
|
||||
delete_grammar_pickle() {
|
||||
rm -f "${ED}$(python_get_sitedir)/sphinx/pycode/Grammar$(python_get_version -l).pickle"
|
||||
}
|
||||
python_execute_function -q delete_grammar_pickle
|
||||
|
||||
if use doc; then
|
||||
dohtml -A txt -r doc/_build/html/* || die "Installation of documentation failed"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
distutils_pkg_postinst
|
||||
|
||||
# Generate the Grammar pickle to avoid sandbox violations.
|
||||
generation_of_grammar_pickle() {
|
||||
"$(PYTHON)" -c "import sys; sys.path.insert(0, '${EROOT}$(python_get_sitedir -b)'); from sphinx.pycode.pgen2.driver import load_grammar; load_grammar('${EROOT}$(python_get_sitedir -b)/sphinx/pycode/Grammar.txt')"
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Generation of Grammar pickle with $(python_get_implementation_and_version)...' \
|
||||
--failure-message 'Generation of Grammar pickle with $(python_get_implementation_and_version) failed' \
|
||||
generation_of_grammar_pickle
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
distutils_pkg_postrm
|
||||
|
||||
deletion_of_grammar_pickle() {
|
||||
rm -f "${EROOT}$(python_get_sitedir -b)/sphinx/pycode"/Grammar*.pickle || return 1
|
||||
|
||||
# Delete empty parent directories.
|
||||
local dir="${EROOT}$(python_get_sitedir -b)/sphinx/pycode"
|
||||
while [[ "${dir}" != "${EROOT%/}" ]]; do
|
||||
rmdir "${dir}" 2> /dev/null || break
|
||||
dir="${dir%/*}"
|
||||
done
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Deletion of Grammar pickle with $(python_get_implementation_and_version)...' \
|
||||
--failure-message 'Deletion of Grammar pickle with $(python_get_implementation_and_version) failed' \
|
||||
deletion_of_grammar_pickle
|
||||
}
|
@ -1,117 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/sphinx-1.1.3-r5.ebuild,v 1.8 2013/09/05 18:46:10 mgorny Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy2_0 )
|
||||
|
||||
inherit distutils-r1 versionator
|
||||
|
||||
MY_PN="Sphinx"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Python documentation generator"
|
||||
HOMEPAGE="http://sphinx.pocoo.org/ http://pypi.python.org/pypi/Sphinx"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc latex test"
|
||||
|
||||
RDEPEND=">=dev-python/docutils-0.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/jinja-2.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/pygments-1.2[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
latex? (
|
||||
dev-texlive/texlive-latexextra
|
||||
app-text/dvipng
|
||||
)"
|
||||
DEPEND="${DEPEND}
|
||||
test? ( dev-python/nose[${PYTHON_USEDEP}] )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-python3.patch
|
||||
)
|
||||
|
||||
python_compile() {
|
||||
distutils-r1_python_compile
|
||||
|
||||
# Generate the grammar. It will be caught by install somehow.
|
||||
# Note that the tests usually do it for us. However, I don't want
|
||||
# to trust USE=test really running all the tests, especially
|
||||
# with FEATURES=test-fail-continue.
|
||||
cd "${BUILD_DIR}"/lib || die
|
||||
"${PYTHON}" -m sphinx.pycode.__init__ \
|
||||
|| die "Grammar generation failed."
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C doc SPHINXBUILD="${PYTHON} -m sphinx.__init__" html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cp -r -l tests "${BUILD_DIR}"/ || die
|
||||
|
||||
if [[ ${EPYTHON} == python3* ]]; then
|
||||
2to3 -w --no-diffs "${BUILD_DIR}"/tests || die
|
||||
fi
|
||||
|
||||
nosetests -w "${BUILD_DIR}"/tests \
|
||||
|| die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( doc/_build/html/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
replacing_python_eclass() {
|
||||
local pv
|
||||
for pv in ${REPLACING_VERSIONS}; do
|
||||
if ! version_is_at_least 1.1.3-r4 ${pv}; then
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if replacing_python_eclass; then
|
||||
# the old python.eclass ebuild will want to remove our pickles...
|
||||
backup_pickle() {
|
||||
# array to enable filename expansion
|
||||
local pickle_name=(
|
||||
"${D}$(python_get_sitedir)"/sphinx/pycode/Grammar*.pickle
|
||||
)
|
||||
|
||||
local dest=${ROOT}${pickle_name[0]#${D}}.backup
|
||||
|
||||
cp -p -v "${pickle_name[0]}" "${dest}" \
|
||||
|| die "Unable to backup grammar pickle from overwriting"
|
||||
}
|
||||
|
||||
python_foreach_impl backup_pickle
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if replacing_python_eclass; then
|
||||
restore_pickle() {
|
||||
local backup_name=(
|
||||
"${ROOT}$(python_get_sitedir)"/sphinx/pycode/Grammar*.pickle.backup
|
||||
)
|
||||
local dest=${backup_name[0]%.backup}
|
||||
|
||||
mv -v "${backup_name[0]}" "${dest}" \
|
||||
|| die "Unable to restore grammar pickle backup"
|
||||
}
|
||||
|
||||
python_foreach_impl restore_pickle
|
||||
fi
|
||||
}
|
@ -1,126 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/sphinx-1.1.3-r6.ebuild,v 1.14 2013/09/05 18:46:10 mgorny Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy2_0 )
|
||||
|
||||
inherit distutils-r1 eutils versionator
|
||||
|
||||
MY_PN="Sphinx"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Python documentation generator"
|
||||
HOMEPAGE="http://sphinx.pocoo.org/ http://pypi.python.org/pypi/Sphinx"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc latex test"
|
||||
|
||||
RDEPEND=">=dev-python/docutils-0.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/jinja-2.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/pygments-1.2[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
latex? (
|
||||
dev-texlive/texlive-latexextra
|
||||
app-text/dvipng
|
||||
)"
|
||||
DEPEND="${DEPEND}
|
||||
test? ( dev-python/nose[${PYTHON_USEDEP}] )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-python3.patch
|
||||
"${FILESDIR}"/${P}-docutils-manpage.patch
|
||||
)
|
||||
|
||||
python_compile() {
|
||||
distutils-r1_python_compile
|
||||
|
||||
# Generate the grammar. It will be caught by install somehow.
|
||||
# Note that the tests usually do it for us. However, I don't want
|
||||
# to trust USE=test really running all the tests, especially
|
||||
# with FEATURES=test-fail-continue.
|
||||
cd "${BUILD_DIR}"/lib || die
|
||||
"${PYTHON}" -m sphinx.pycode.__init__ \
|
||||
|| die "Grammar generation failed."
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C doc SPHINXBUILD="${PYTHON} -m sphinx.__init__" html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cp -r -l tests "${BUILD_DIR}"/ || die
|
||||
|
||||
if [[ ${EPYTHON} == python3* ]]; then
|
||||
2to3 -w --no-diffs "${BUILD_DIR}"/tests || die
|
||||
fi
|
||||
|
||||
nosetests -w "${BUILD_DIR}"/tests \
|
||||
|| die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( doc/_build/html/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
replacing_python_eclass() {
|
||||
local pv
|
||||
for pv in ${REPLACING_VERSIONS}; do
|
||||
if ! version_is_at_least 1.1.3-r4 ${pv}; then
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if replacing_python_eclass; then
|
||||
# the old python.eclass ebuild will want to remove our pickles...
|
||||
backup_pickle() {
|
||||
# array to enable filename expansion
|
||||
local pickle_name=(
|
||||
"${D}$(python_get_sitedir)"/sphinx/pycode/Grammar*.pickle
|
||||
)
|
||||
|
||||
local dest=${ROOT}${pickle_name[0]#${D}}.backup
|
||||
|
||||
eumask_push 022
|
||||
mkdir -p "${dest%/*}" || die
|
||||
eumask_pop
|
||||
|
||||
cp -p -v "${pickle_name[0]}" "${dest}" \
|
||||
|| die "Unable to backup grammar pickle from overwriting"
|
||||
}
|
||||
|
||||
python_foreach_impl backup_pickle
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if replacing_python_eclass; then
|
||||
local warned
|
||||
|
||||
restore_pickle() {
|
||||
local backup_name=(
|
||||
"${ROOT}$(python_get_sitedir)"/sphinx/pycode/Grammar*.pickle.backup
|
||||
)
|
||||
local dest=${backup_name[0]%.backup}
|
||||
|
||||
mv -v "${backup_name[0]}" "${dest}" \
|
||||
|| die "Unable to restore grammar pickle backup"
|
||||
}
|
||||
|
||||
python_foreach_impl restore_pickle
|
||||
|
||||
[[ ${warned} ]] && ewarn "Please try rebuilding the package."
|
||||
fi
|
||||
}
|
@ -1,9 +1,8 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/sphinx-1.2.ebuild,v 1.2 2014/01/22 13:19:53 jlec Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx/sphinx-1.2.2.ebuild,v 1.1 2014/03/03 23:26:02 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy2_0 )
|
||||
|
||||
inherit distutils-r1 eutils versionator
|
@ -1,3 +1,4 @@
|
||||
DIST spyder-2.1.11.zip 2180419 SHA256 b6d98442a8b529e31cd66c47c6634571aeaae40067757e95b2d6ee748fbc5877 SHA512 fe47a6ee505c0de9fe3a4f2cf13b5bc814aa074214bb06bf2452ba8a23c46a27422a2d484a099b063d419a8539fc81ca08288f281183addf68a6cbe10b5bb299 WHIRLPOOL 9545108e94d605947a6abe3e6b25ba1f89bc75e5469434f6b65d425f9a0919a30fc977126d5aa17ee2a94cc0d22d53d9f0d7df437eef4e244a3248eb569c169a
|
||||
DIST spyder-2.1.13.zip 2182796 SHA256 5222946d8ef96d9c770d63b3831b5af1555cf886933ab5d339321aa83ecc5a30 SHA512 4a3096079ec45d17559e1ddcb32186bb1c7717c5c1fec0c3c32265fcf9202789fdf52bedc8bc390b6e736dd1b0786eb74ceb0d88faae8be686f3b6305879e4f6 WHIRLPOOL 6598fd997589b3f1ff5c081e38d3c667bdeabb84b1ff4b636111d865aab10722162ad6526c6453ce38e3fb1a18045736e6ea14196f0debaf7b21932c9faf146f
|
||||
DIST spyder-2.2.1.zip 3495448 SHA256 8b5a23778f00b26e4c082360e3d83b60afe7b66e092ec618f10649d050658e55 SHA512 91d45e53154e859220e778473ed30e48859e45091bd6187b56c60890c52216a85b6e61a586dd5de97719a4387128af368437a48351523fd7deb1759d9a7d6587 WHIRLPOOL e1cd1dd0245571f827a7548f6acea7e3bedfdb3848cd1f3446db8b903cac62a4ca5fe99df649e2e9ae4bd70bffe3f4051c8edd56e2225ff4f576ede4e7cf1be5
|
||||
DIST spyder-2.2.5.zip 3543387 SHA256 e2ae6155d6f84a9bdee7b3a6eca4b72f3f5e6d775ad23e8d0e82e125342eacaf SHA512 a8c818a09e4638f898568ede811f7e844bcb0552fcc5aff4341fe5c89620982b7ccb28f7b75f488685db56ded1d2447a53bb2ef3da27a2af465097655468ff0d WHIRLPOOL 792f5ab800b0ff62a62e6e99079c7c4bdd4e1dda6ec4b4a0809cfe326356ffeeaac4a479a6da5a31f891a48efaa010f1a8924074c1c980d8b1415f8a99bf1128
|
||||
|
@ -0,0 +1,70 @@
|
||||
--- setup.py.orig 2014-03-03 12:55:59.209248082 -0800
|
||||
+++ setup.py 2014-03-03 12:57:08.651709021 -0800
|
||||
@@ -81,51 +81,6 @@
|
||||
else:
|
||||
return
|
||||
|
||||
-try:
|
||||
- from sphinx import setup_command
|
||||
-
|
||||
- class MyBuild(build):
|
||||
- def has_doc(self):
|
||||
- setup_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
- return os.path.isdir(os.path.join(setup_dir, 'doc'))
|
||||
- sub_commands = build.sub_commands + [('build_doc', has_doc)]
|
||||
- CMDCLASS['build'] = MyBuild
|
||||
- class MyBuildDoc(setup_command.BuildDoc):
|
||||
- def run(self):
|
||||
- build = self.get_finalized_command('build')
|
||||
- sys.path.insert(0, os.path.abspath(build.build_lib))
|
||||
- dirname = self.distribution.get_command_obj('build').build_purelib
|
||||
- self.builder_target_dir = osp.join(dirname, 'spyderlib', 'doc')
|
||||
-
|
||||
- hhc_exe = get_html_help_exe()
|
||||
- self.builder = "html" if hhc_exe is None else "htmlhelp"
|
||||
-
|
||||
- try:
|
||||
- setup_command.BuildDoc.run(self)
|
||||
- except UnicodeDecodeError:
|
||||
- print("ERROR: unable to build documentation because Sphinx "\
|
||||
- "do not handle source path with non-ASCII characters. "\
|
||||
- "Please try to move the source package to another "\
|
||||
- "location (path with *only* ASCII characters).",
|
||||
- file=sys.stderr)
|
||||
- sys.path.pop(0)
|
||||
-
|
||||
- # Building chm doc, if HTML Help Workshop is installed
|
||||
- if hhc_exe is not None:
|
||||
- fname = osp.join(self.builder_target_dir, 'Spyderdoc.chm')
|
||||
- subprocess.call('"%s" %s' % (hhc_exe, fname), shell=True)
|
||||
- if osp.isfile(fname):
|
||||
- dest = osp.join(dirname, 'spyderlib')
|
||||
- try:
|
||||
- shutil.move(fname, dest)
|
||||
- except shutil.Error:
|
||||
- print("Unable to replace %s" % dest)
|
||||
- shutil.rmtree(self.builder_target_dir)
|
||||
-
|
||||
- CMDCLASS['build_doc'] = MyBuildDoc
|
||||
-except ImportError:
|
||||
- print('WARNING: unable to build documentation because Sphinx '\
|
||||
- 'is not installed', file=sys.stderr)
|
||||
|
||||
|
||||
NAME = 'spyder'
|
||||
@@ -191,7 +146,7 @@
|
||||
package_data={LIBNAME: get_package_data(LIBNAME, EXTLIST),
|
||||
'spyderplugins':
|
||||
get_package_data('spyderplugins', EXTLIST)},
|
||||
- requires=["rope (>=0.9.2)", "sphinx (>=0.6.0)", "PyQt4 (>=4.4)"],
|
||||
+ requires=["rope (>=0.9.2)", "PyQt4 (>=4.4)"],
|
||||
scripts=[osp.join('scripts', fname) for fname in SCRIPTS],
|
||||
data_files=get_data_files(),
|
||||
options={"bdist_wininst":
|
||||
@@ -212,5 +167,4 @@
|
||||
'Programming Language :: Python :: 2.7',
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
'Topic :: Scientific/Engineering',
|
||||
- 'Topic :: Software Development :: Widget Sets'],
|
||||
- cmdclass=CMDCLASS)
|
||||
+ 'Topic :: Software Development :: Widget Sets'])
|
@ -0,0 +1,51 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/spyder/spyder-2.2.5.ebuild,v 1.1 2014/03/03 20:59:40 bicatali Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
|
||||
inherit distutils-r1 eutils
|
||||
|
||||
DESCRIPTION="Python IDE with matlab-like features"
|
||||
HOMEPAGE="http://code.google.com/p/spyderlib/"
|
||||
SRC_URI="http://spyderlib.googlecode.com/files/${P}.zip"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="doc ipython matplotlib numpy pep8 +pyflakes pylint +rope scipy sphinx"
|
||||
|
||||
RDEPEND="
|
||||
|| ( dev-python/PyQt4[${PYTHON_USEDEP},svg,webkit]
|
||||
dev-python/pyside[${PYTHON_USEDEP},svg,webkit] )
|
||||
ipython? ( dev-python/ipython[${PYTHON_USEDEP}] )
|
||||
matplotlib? ( dev-python/matplotlib[${PYTHON_USEDEP}] )
|
||||
numpy? ( dev-python/numpy[${PYTHON_USEDEP}] )
|
||||
pep8? ( dev-python/pep8[${PYTHON_USEDEP}] )
|
||||
pyflakes? ( >=dev-python/pyflakes-0.3[${PYTHON_USEDEP}] )
|
||||
pylint? ( dev-python/pylint[${PYTHON_USEDEP}] )
|
||||
rope? ( >=dev-python/rope-0.9.3[${PYTHON_USEDEP}] )
|
||||
scipy? ( sci-libs/scipy[${PYTHON_USEDEP}] )
|
||||
sphinx? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/unzip
|
||||
doc? ( dev-python/sphinx )"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-2.2.5-disable_sphinx_dependency.patch )
|
||||
|
||||
python_compile() {
|
||||
if use doc; then
|
||||
einfo "Generation of documentation"
|
||||
PYTHONPATH="{BUILD_DIR}" \
|
||||
sphinx-build doc doc_output || die "Generation of documentation failed"
|
||||
fi
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
doicon spyderlib/images/spyder.svg
|
||||
make_desktop_entry spyder Spyder spyder "Development;IDE"
|
||||
use doc && dohtml -r doc_output/*
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
DIST virtualenv-1.10.1.tar.gz 1327717 SHA256 8778f2c932dcc115514284ac827d710b764e556cfd25e64e60be429e4e57938e SHA512 db5157433986fab503c7f6906d73387f1511efd906a8e804f1299c87e8c6604f3a2b88cf73b19b00079b5ef3ed008c0003348d256048c11f85bec1137dfde733 WHIRLPOOL f95a3f0057bf781ac0a9600f6a52d0ecee4bda056bfcb693b19c9554f39e02321c100efa51c76f7772597a950af7252fdb70d57de1aacac7ae016e725eebd80c
|
||||
DIST virtualenv-1.10.tar.gz 1325423 SHA256 bb65e9160a8f014c2a5c5bfc77845a367df88aca214b33474ed23517a647e389 SHA512 fbb78492adfd826f0862feee0208d38c982d9d93b56e23a8020d29540017e302c34e9b03155721a1495c94847afee345ea355c2fc401275e2ecd549622adc7d4 WHIRLPOOL 99d97d5a90e0dedcabe54914d768cb0953bb393222c397fb074c13ffffc74d2d717a964700fb0a7bffe3d3c84651c5a353fa8b0fe29c592cd2e350e463b64a9b
|
||||
DIST virtualenv-1.11.3.tar.gz 1745970 SHA256 c76acdcac465c52ff6f2a13471e5ad6855709fd6a48ec1320300a2e95cd35ec2 SHA512 4140596aeb2f16f5e5e1c7ea9c1dcc9e7cdb06db1db0f7906b4fb5d40cff31665bacf8870b32c930e3eeaac3a36cd8b53343dc3e53d9e8ef85e2626fc959275d WHIRLPOOL 88d3b484bdfb15afd30618f1106138bcdbdb0aff6f8c9bde2ea4371fbd26ed18e637b6edbf805c04a5650f751f6a2639f2e4d330fd0a80adaa70cba6fbb26095
|
||||
DIST virtualenv-1.11.4.tar.gz 1746033 SHA256 7420b06b0dd655a765297b41941f63d31b4ba5d94f8082f4211ec4b2c65ecd82 SHA512 053fdca494cf78cb4a5f2c328a2e6c4296e60f6567149b2928cd55eff71cd16412fb85c5a2127a10cfd9458be11f097eb8a1ee3562cc378fe7dc750e3f9941d5 WHIRLPOOL 722b25b6c96ef9856e5b063c9155d26545d06ca6f67c2823a0353ce678f25e9aa1f1b1d5def34d835ef00a9bc04e4e6380f4964aa410dfe8d1ea2261648b0af2
|
||||
DIST virtualenv-1.9.1.tar.gz 2007470 SHA256 b095484a235606bdcaba7992702f5736d454f2e758626ede6b346ca0d64a32a1 SHA512 f7a33b9d488e9d9543cd1b08b40ebf6e6ecda68a411a566d93dfcaa48a4e0068713cbe3ac503961d33fa3710df4e3d243edab29fd888e0244f694bebff8d0fed WHIRLPOOL 0f4b2b82840d268d1bd5d51d85621f76b9c7e97cd7e4166bcec3c82700b1373d97bc236fcc6a18bd57b22cec09dc8ee95c2e107b89f243311defa685a097c5d9
|
||||
|
@ -0,0 +1,44 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/virtualenv/virtualenv-1.11.4.ebuild,v 1.1 2014/03/03 19:26:54 radhermit Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy2_0 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Virtual Python Environment builder"
|
||||
HOMEPAGE="http://www.virtualenv.org/ http://pypi.python.org/pypi/virtualenv"
|
||||
SRC_URI="https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
|
||||
SLOT="0"
|
||||
IUSE="doc test"
|
||||
|
||||
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? (
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
DOCS=( docs/index.rst docs/news.rst )
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.8.2-no-versioned-script.patch
|
||||
"${FILESDIR}"/${PN}-1.11.3-skip-broken-test.patch
|
||||
)
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( "${S}"/docs/_build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
nosetests || die "Tests fail with ${EPYTHON}"
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue