parent
9c828944c4
commit
223f736ec8
@ -0,0 +1,100 @@
|
||||
From 30e24dbfc7a8644e29664070e8c16e5c3997f87e Mon Sep 17 00:00:00 2001
|
||||
From: Pablo Neira Ayuso <pablo@netfilter.org>
|
||||
Date: Fri, 7 Nov 2014 18:33:01 +0100
|
||||
Subject: [PATCH] include: keep a copy of linux/netfilter_ipv4/ipt_ULOG.h
|
||||
|
||||
This fixes compilation if you use a Linux kernel >= 3.17. This problem
|
||||
occurs since ULOG was removed from mainstream:
|
||||
|
||||
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=7200135bc1e61f1437dc326ae2ef2f310c50b4eb
|
||||
|
||||
Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=986
|
||||
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 522c345..c5f573c 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -142,7 +142,7 @@ dnl AM_CONDITIONAL(HAVE_PGSQL, test x$pgsqldir != x)
|
||||
|
||||
AC_CONFIG_FILES(include/Makefile include/ulogd/Makefile include/libipulog/Makefile \
|
||||
include/linux/Makefile include/linux/netfilter/Makefile \
|
||||
- libipulog/Makefile \
|
||||
+ include/linux/netfilter_ipv4/Makefile libipulog/Makefile \
|
||||
input/Makefile input/packet/Makefile input/flow/Makefile \
|
||||
input/sum/Makefile \
|
||||
filter/Makefile filter/raw2packet/Makefile filter/packet2flow/Makefile \
|
||||
diff --git a/include/linux/Makefile.am b/include/linux/Makefile.am
|
||||
index ca80d0d..18af1c2 100644
|
||||
--- a/include/linux/Makefile.am
|
||||
+++ b/include/linux/Makefile.am
|
||||
@@ -1,2 +1,2 @@
|
||||
-
|
||||
-SUBDIRS = netfilter
|
||||
+SUBDIRS = netfilter \
|
||||
+ netfilter_ipv4
|
||||
diff --git a/include/linux/netfilter_ipv4/Makefile.am b/include/linux/netfilter_ipv4/Makefile.am
|
||||
new file mode 100644
|
||||
index 0000000..41819a3
|
||||
--- /dev/null
|
||||
+++ b/include/linux/netfilter_ipv4/Makefile.am
|
||||
@@ -0,0 +1 @@
|
||||
+noinst_HEADERS = ipt_ULOG.h
|
||||
diff --git a/include/linux/netfilter_ipv4/ipt_ULOG.h b/include/linux/netfilter_ipv4/ipt_ULOG.h
|
||||
new file mode 100644
|
||||
index 0000000..417aad2
|
||||
--- /dev/null
|
||||
+++ b/include/linux/netfilter_ipv4/ipt_ULOG.h
|
||||
@@ -0,0 +1,49 @@
|
||||
+/* Header file for IP tables userspace logging, Version 1.8
|
||||
+ *
|
||||
+ * (C) 2000-2002 by Harald Welte <laforge@gnumonks.org>
|
||||
+ *
|
||||
+ * Distributed under the terms of GNU GPL */
|
||||
+
|
||||
+#ifndef _IPT_ULOG_H
|
||||
+#define _IPT_ULOG_H
|
||||
+
|
||||
+#ifndef NETLINK_NFLOG
|
||||
+#define NETLINK_NFLOG 5
|
||||
+#endif
|
||||
+
|
||||
+#define ULOG_DEFAULT_NLGROUP 1
|
||||
+#define ULOG_DEFAULT_QTHRESHOLD 1
|
||||
+
|
||||
+#define ULOG_MAC_LEN 80
|
||||
+#define ULOG_PREFIX_LEN 32
|
||||
+
|
||||
+#define ULOG_MAX_QLEN 50
|
||||
+/* Why 50? Well... there is a limit imposed by the slab cache 131000
|
||||
+ * bytes. So the multipart netlink-message has to be < 131000 bytes.
|
||||
+ * Assuming a standard ethernet-mtu of 1500, we could define this up
|
||||
+ * to 80... but even 50 seems to be big enough. */
|
||||
+
|
||||
+/* private data structure for each rule with a ULOG target */
|
||||
+struct ipt_ulog_info {
|
||||
+ unsigned int nl_group;
|
||||
+ size_t copy_range;
|
||||
+ size_t qthreshold;
|
||||
+ char prefix[ULOG_PREFIX_LEN];
|
||||
+};
|
||||
+
|
||||
+/* Format of the ULOG packets passed through netlink */
|
||||
+typedef struct ulog_packet_msg {
|
||||
+ unsigned long mark;
|
||||
+ long timestamp_sec;
|
||||
+ long timestamp_usec;
|
||||
+ unsigned int hook;
|
||||
+ char indev_name[IFNAMSIZ];
|
||||
+ char outdev_name[IFNAMSIZ];
|
||||
+ size_t data_len;
|
||||
+ char prefix[ULOG_PREFIX_LEN];
|
||||
+ unsigned char mac_len;
|
||||
+ unsigned char mac[ULOG_MAC_LEN];
|
||||
+ unsigned char payload[0];
|
||||
+} ulog_packet_msg_t;
|
||||
+
|
||||
+#endif /*_IPT_ULOG_H*/
|
||||
--
|
||||
2.0.4
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST libvirt-1.2.10.tar.gz 30029503 SHA256 5050f4cea3dd59d3eca25c3d3f16085e10d624ecc18bd35820cd3dac6f46c08e SHA512 9cd5d2a604769cf70e388c367abcde27ee8d6d7043227f17dd2cac92a467ea06547374e1d83c7b1ee4c5322d8b3d9e4cbb6db373efae5eaaceed1b1376cbd09d WHIRLPOOL 986c1fd0128101f936897c97a36d646b8893d9ee0a223d05b004d73408a2720aeb9bb5fe3e4a7c476947021b89d955fb4a1b3a64dfe8dfe0d30dbfe75487b8fe
|
||||
DIST libvirt-1.2.9.1.tar.gz 30173171 SHA256 7824638d674b1e3fa6b48760587d6ff6d3d466671e71cc759b3383a5a9c1a3a4 SHA512 113b321a8a3834d6e2e0d952942b681fe047cdb840e39866ad444e9e5f0a65f0140b31e65af8453fcebd541eb932c4470794a8bd7fc7c6e1e70be39d5d685929 WHIRLPOOL 28f1d1fdf904f9f05c3f6116bddf1b7466d431c1e11c6e0c738c69f5e35088581c5748de57980b9bc98ea18972f5c1492453f59aa427a311041cd7aeeec535c7
|
||||
DIST libvirt-1.2.9.tar.gz 30154430 SHA256 95931a5a52f451b9ab73d6a5ae11a5740e1ba69a66520c2a0cffc6068a7e8fc4 SHA512 e91367037622da17b5081ccf471e17d36f474596f19034b30e86f42940939340dc4cf455697e54bf9023005fc45cd9982a0f39d244373dd4d585fd7b9aee918c WHIRLPOOL 771025eb6fdda434f9413b03f6c6e0e8a36fd314eb650f913b695481adb71cff3a07ba19934857dcd468b6357c371ba3972a67b71c4ca29092c2094e482cb24d
|
||||
|
@ -0,0 +1,449 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-1.2.9.1.ebuild,v 1.1 2014/11/17 20:02:58 tamiko Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
AUTOTOOLIZE=yes
|
||||
|
||||
MY_P="${P/_rc/-rc}"
|
||||
|
||||
inherit eutils user autotools linux-info systemd readme.gentoo
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://libvirt.org/libvirt.git"
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
SLOT="0/${PV}"
|
||||
else
|
||||
# Versions with 4 numbers are stable updates:
|
||||
if [[ ${PV} =~ ^[0-9]+(\.[0-9]+){3} ]]; then
|
||||
SRC_URI="http://libvirt.org/sources/stable_updates/${MY_P}.tar.gz"
|
||||
else
|
||||
SRC_URI="http://libvirt.org/sources/${MY_P}.tar.gz"
|
||||
fi
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
fi
|
||||
S="${WORKDIR}/${P%_rc*}"
|
||||
|
||||
DESCRIPTION="C toolkit to manipulate virtual machines"
|
||||
HOMEPAGE="http://www.libvirt.org/"
|
||||
LICENSE="LGPL-2.1"
|
||||
IUSE="audit avahi +caps firewalld fuse iscsi +libvirtd lvm lxc +macvtap nfs \
|
||||
nls numa openvz parted pcap phyp policykit +qemu rbd sasl \
|
||||
selinux +udev uml +vepa virtualbox virt-network wireshark-plugins xen \
|
||||
elibc_glibc systemd"
|
||||
REQUIRED_USE="libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) )
|
||||
lxc? ( caps libvirtd )
|
||||
openvz? ( libvirtd )
|
||||
qemu? ( libvirtd )
|
||||
uml? ( libvirtd )
|
||||
vepa? ( macvtap )
|
||||
virtualbox? ( libvirtd )
|
||||
xen? ( libvirtd )
|
||||
virt-network? ( libvirtd )
|
||||
firewalld? ( virt-network )"
|
||||
|
||||
# gettext.sh command is used by the libvirt command wrappers, and it's
|
||||
# non-optional, so put it into RDEPEND.
|
||||
# We can use both libnl:1.1 and libnl:3, but if you have both installed, the
|
||||
# package will use 3 by default. Since we don't have slot pinning in an API,
|
||||
# we must go with the most recent
|
||||
RDEPEND="sys-libs/readline
|
||||
sys-libs/ncurses
|
||||
>=net-misc/curl-7.18.0
|
||||
dev-libs/libgcrypt:0
|
||||
>=dev-libs/libxml2-2.7.6
|
||||
dev-libs/libnl:3
|
||||
>=net-libs/gnutls-1.0.25
|
||||
net-libs/libssh2
|
||||
sys-apps/dmidecode
|
||||
>=sys-apps/util-linux-2.17
|
||||
sys-devel/gettext
|
||||
>=net-analyzer/netcat6-1.0-r2
|
||||
app-misc/scrub
|
||||
audit? ( sys-process/audit )
|
||||
avahi? ( >=net-dns/avahi-0.6[dbus] )
|
||||
caps? ( sys-libs/libcap-ng )
|
||||
fuse? ( >=sys-fs/fuse-2.8.6 )
|
||||
iscsi? ( sys-block/open-iscsi )
|
||||
lxc? ( !systemd? ( sys-power/pm-utils ) )
|
||||
lvm? ( >=sys-fs/lvm2-2.02.48-r2 )
|
||||
nfs? ( net-fs/nfs-utils )
|
||||
numa? (
|
||||
>sys-process/numactl-2.0.2
|
||||
sys-process/numad
|
||||
)
|
||||
openvz? ( sys-kernel/openvz-sources )
|
||||
parted? (
|
||||
>=sys-block/parted-1.8[device-mapper]
|
||||
sys-fs/lvm2
|
||||
)
|
||||
pcap? ( >=net-libs/libpcap-1.0.0 )
|
||||
policykit? ( >=sys-auth/polkit-0.9 )
|
||||
qemu? (
|
||||
>=app-emulation/qemu-0.13.0
|
||||
dev-libs/yajl
|
||||
!systemd? ( sys-power/pm-utils )
|
||||
)
|
||||
rbd? ( sys-cluster/ceph )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
selinux? ( >=sys-libs/libselinux-2.0.85 )
|
||||
systemd? ( sys-apps/systemd )
|
||||
virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) )
|
||||
wireshark-plugins? ( net-analyzer/wireshark:= )
|
||||
xen? ( app-emulation/xen-tools app-emulation/xen )
|
||||
udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 )
|
||||
virt-network? ( net-dns/dnsmasq[script]
|
||||
>=net-firewall/iptables-1.4.10
|
||||
net-misc/radvd
|
||||
net-firewall/ebtables
|
||||
sys-apps/iproute2[-minimal]
|
||||
firewalld? ( net-firewall/firewalld )
|
||||
)
|
||||
elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
app-text/xhtml1
|
||||
dev-lang/perl
|
||||
dev-libs/libxslt"
|
||||
|
||||
DOC_CONTENTS="For the basic networking support (bridged and routed networks)
|
||||
you don't need any extra software. For more complex network modes
|
||||
including but not limited to NATed network, you can enable the
|
||||
'virt-network' USE flag.\n\n
|
||||
If you are using dnsmasq on your system, you will have
|
||||
to configure /etc/dnsmasq.conf to enable the following settings:\n\n
|
||||
bind-interfaces\n
|
||||
interface or except-interface\n\n
|
||||
Otherwise you might have issues with your existing DNS server."
|
||||
|
||||
LXC_CONFIG_CHECK="
|
||||
~CGROUPS
|
||||
~CGROUP_FREEZER
|
||||
~CGROUP_DEVICE
|
||||
~CGROUP_CPUACCT
|
||||
~CGROUP_SCHED
|
||||
~CGROUP_PERF
|
||||
~BLK_CGROUP
|
||||
~NET_CLS_CGROUP
|
||||
~CGROUP_NET_PRIO
|
||||
~CPUSETS
|
||||
~RESOURCE_COUNTERS
|
||||
~NAMESPACES
|
||||
~UTS_NS
|
||||
~IPC_NS
|
||||
~PID_NS
|
||||
~NET_NS
|
||||
~USER_NS
|
||||
~DEVPTS_MULTIPLE_INSTANCES
|
||||
~VETH
|
||||
~MACVLAN
|
||||
~POSIX_MQUEUE
|
||||
~SECURITYFS
|
||||
~!GRKERNSEC_CHROOT_MOUNT
|
||||
~!GRKERNSEC_CHROOT_DOUBLE
|
||||
~!GRKERNSEC_CHROOT_PIVOT
|
||||
~!GRKERNSEC_CHROOT_CHMOD
|
||||
~!GRKERNSEC_CHROOT_CAPS
|
||||
"
|
||||
|
||||
VIRTNET_CONFIG_CHECK="
|
||||
~BRIDGE_NF_EBTABLES
|
||||
~BRIDGE_EBT_MARK_T
|
||||
~NETFILTER_ADVANCED
|
||||
~NETFILTER_XT_TARGET_CHECKSUM
|
||||
~NETFILTER_XT_CONNMARK
|
||||
~NETFILTER_XT_MARK
|
||||
"
|
||||
|
||||
BWLMT_CONFIG_CHECK="
|
||||
~BRIDGE_EBT_T_NAT
|
||||
~NET_SCH_HTB
|
||||
~NET_SCH_SFQ
|
||||
~NET_SCH_INGRESS
|
||||
~NET_CLS_FW
|
||||
~NET_CLS_U32
|
||||
~NET_ACT_POLICE
|
||||
"
|
||||
|
||||
MACVTAP_CONFIG_CHECK=" ~MACVTAP"
|
||||
|
||||
LVM_CONFIG_CHECK=" ~BLK_DEV_DM ~DM_SNAPSHOT ~DM_MULTIPATH"
|
||||
|
||||
ERROR_USER_NS="Optional depending on LXC configuration."
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup qemu 77
|
||||
enewuser qemu 77 -1 -1 qemu kvm
|
||||
|
||||
# Some people used the masked ebuild which was not adding the qemu
|
||||
# user to the kvm group originally. This results in VMs failing to
|
||||
# start for some users. bug #430808
|
||||
egetent group kvm | grep -q qemu
|
||||
if [[ $? -ne 0 ]]; then
|
||||
gpasswd -a qemu kvm
|
||||
fi
|
||||
|
||||
# Handle specific kernel versions for different features
|
||||
kernel_is lt 3 6 && LXC_CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR"
|
||||
kernel_is ge 3 6 && LXC_CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP ~MEMCG_KMEM"
|
||||
|
||||
CONFIG_CHECK=""
|
||||
use fuse && CONFIG_CHECK+=" ~FUSE_FS"
|
||||
use lvm && CONFIG_CHECK+="${LVM_CONFIG_CHECK}"
|
||||
use lxc && CONFIG_CHECK+="${LXC_CONFIG_CHECK}"
|
||||
use macvtap && CONFIG_CHECK+="${MACVTAP_CONFIG_CHECK}"
|
||||
use virt-network && CONFIG_CHECK+="${VIRTNET_CONFIG_CHECK}"
|
||||
# Bandwidth Limiting Support
|
||||
use virt-network && CONFIG_CHECK+="${BWLMT_CONFIG_CHECK}"
|
||||
if [[ -n ${CONFIG_CHECK} ]]; then
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
touch "${S}/.mailmap"
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
# git checkouts require bootstrapping to create the configure script.
|
||||
# Additionally the submodules must be cloned to the right locations
|
||||
# bug #377279
|
||||
./bootstrap || die "bootstrap failed"
|
||||
(
|
||||
git submodule status | sed 's/^[ +-]//;s/ .*//'
|
||||
git hash-object bootstrap.conf
|
||||
) >.git-module-status
|
||||
fi
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-1.2.9-do_not_use_sysconf.patch
|
||||
|
||||
epatch_user
|
||||
|
||||
[[ -n ${AUTOTOOLIZE} ]] && eautoreconf
|
||||
|
||||
# Tweak the init script
|
||||
local avahi_init=
|
||||
local iscsi_init=
|
||||
local rbd_init=
|
||||
local firewalld_init=
|
||||
cp "${FILESDIR}/libvirtd.init-r13" "${S}/libvirtd.init"
|
||||
use avahi && avahi_init='avahi-daemon'
|
||||
use iscsi && iscsi_init='iscsid'
|
||||
use rbd && rbd_init='ceph'
|
||||
use firewalld && firewalld_init='need firewalld'
|
||||
|
||||
sed -e "s/USE_FLAG_FIREWALLD/${firewalld_init}/" -i "${S}/libvirtd.init"
|
||||
sed -e "s/USE_FLAG_AVAHI/${avahi_init}/" -i "${S}/libvirtd.init"
|
||||
sed -e "s/USE_FLAG_ISCSI/${iscsi_init}/" -i "${S}/libvirtd.init"
|
||||
sed -e "s/USE_FLAG_RBD/${rbd_init}/" -i "${S}/libvirtd.init"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
|
||||
## enable/disable daemon, otherwise client only utils
|
||||
myconf+=" $(use_with libvirtd)"
|
||||
|
||||
## enable/disable the daemon using avahi to find VMs
|
||||
myconf+=" $(use_with avahi)"
|
||||
|
||||
## hypervisors on the local host
|
||||
myconf+=" $(use_with xen) $(use_with xen xen-inotify)"
|
||||
myconf+=" --without-xenapi"
|
||||
if use xen && has_version ">=app-emulation/xen-tools-4.2.0"; then
|
||||
myconf+=" --with-libxl"
|
||||
else
|
||||
myconf+=" --without-libxl"
|
||||
fi
|
||||
myconf+=" $(use_with openvz)"
|
||||
myconf+=" $(use_with lxc)"
|
||||
if use virtualbox && has_version app-emulation/virtualbox-ose; then
|
||||
myconf+=" --with-vbox=/usr/lib/virtualbox-ose/"
|
||||
else
|
||||
myconf+=" $(use_with virtualbox vbox)"
|
||||
fi
|
||||
myconf+=" $(use_with uml)"
|
||||
myconf+=" $(use_with qemu)"
|
||||
myconf+=" $(use_with qemu yajl)" # Use QMP over HMP
|
||||
myconf+=" $(use_with phyp)"
|
||||
myconf+=" --with-esx"
|
||||
myconf+=" --with-vmware"
|
||||
|
||||
## additional host drivers
|
||||
myconf+=" $(use_with virt-network network)"
|
||||
myconf+=" --with-storage-fs"
|
||||
myconf+=" $(use_with lvm storage-lvm)"
|
||||
myconf+=" $(use_with iscsi storage-iscsi)"
|
||||
myconf+=" $(use_with parted storage-disk)"
|
||||
myconf+=" $(use_with lvm storage-mpath)"
|
||||
myconf+=" $(use_with rbd storage-rbd)"
|
||||
myconf+=" $(use_with numa numactl)"
|
||||
myconf+=" $(use_with numa numad)"
|
||||
myconf+=" $(use_with selinux)"
|
||||
myconf+=" $(use_with fuse)"
|
||||
|
||||
# udev for device support details
|
||||
myconf+=" $(use_with udev)"
|
||||
myconf+=" --without-hal"
|
||||
|
||||
# linux capability support so we don't need privileged accounts
|
||||
myconf+=" $(use_with caps capng)"
|
||||
|
||||
## auth stuff
|
||||
myconf+=" $(use_with policykit polkit)"
|
||||
myconf+=" $(use_with sasl)"
|
||||
|
||||
# network bits
|
||||
myconf+=" $(use_with macvtap)"
|
||||
myconf+=" $(use_with pcap libpcap)"
|
||||
myconf+=" $(use_with vepa virtualport)"
|
||||
myconf+=" $(use_with firewalld)"
|
||||
|
||||
## other
|
||||
myconf+=" $(use_enable nls)"
|
||||
|
||||
# user privilege bits fir qemu/kvm
|
||||
if use caps; then
|
||||
myconf+=" --with-qemu-user=qemu"
|
||||
myconf+=" --with-qemu-group=qemu"
|
||||
else
|
||||
myconf+=" --with-qemu-user=root"
|
||||
myconf+=" --with-qemu-group=root"
|
||||
fi
|
||||
|
||||
# audit support
|
||||
myconf+=" $(use_with audit)"
|
||||
|
||||
# wireshark dissector
|
||||
myconf+=" $(use_with wireshark-plugins wireshark-dissector)"
|
||||
|
||||
## stuff we don't yet support
|
||||
myconf+=" --without-netcf"
|
||||
|
||||
# locking support
|
||||
myconf+=" --without-sanlock"
|
||||
|
||||
# systemd unit files
|
||||
myconf+=" $(use_with systemd systemd-daemon)"
|
||||
use systemd && myconf+=" --with-init-script=systemd"
|
||||
|
||||
# this is a nasty trick to work around the problem in bug
|
||||
# #275073. The reason why we don't solve this properly is that
|
||||
# it'll require us to rebuild autotools (and we don't really want
|
||||
# to do that right now). The proper solution has been sent
|
||||
# upstream and should hopefully land in 0.7.7, in the mean time,
|
||||
# mime the same functionality with this.
|
||||
case ${CHOST} in
|
||||
*cygwin* | *mingw* )
|
||||
;;
|
||||
*)
|
||||
ac_cv_prog_WINDRES=no
|
||||
;;
|
||||
esac
|
||||
|
||||
econf \
|
||||
${myconf} \
|
||||
--disable-static \
|
||||
--disable-werror \
|
||||
--with-remote \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
--localstatedir=/var
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
# Restore gnulib's config.sub and config.guess
|
||||
# bug #377279
|
||||
(cd .gnulib && git reset --hard > /dev/null)
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Explicitly allow parallel build of tests
|
||||
export VIR_TEST_DEBUG=1
|
||||
HOME="${T}" emake check || die "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install \
|
||||
DESTDIR="${D}" \
|
||||
HTML_DIR=/usr/share/doc/${PF}/html \
|
||||
DOCS_DIR=/usr/share/doc/${PF} \
|
||||
EXAMPLE_DIR=/usr/share/doc/${PF}/examples \
|
||||
SYSTEMD_UNIT_DIR="$(systemd_get_unitdir)" \
|
||||
|| die "emake install failed"
|
||||
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
|
||||
# Remove bogus, empty directories. They are either not used, or
|
||||
# libvirtd is able to create them on demand
|
||||
rm -rf "${D}"/etc/sysconf
|
||||
rm -rf "${D}"/var/cache
|
||||
rm -rf "${D}"/var/run
|
||||
rm -rf "${D}"/var/log
|
||||
|
||||
use libvirtd || return 0
|
||||
# From here, only libvirtd-related instructions, be warned!
|
||||
|
||||
use systemd && \
|
||||
systemd_install_serviced "${FILESDIR}"/libvirtd.service.conf libvirtd
|
||||
|
||||
newinitd "${S}/libvirtd.init" libvirtd || die
|
||||
newconfd "${FILESDIR}/libvirtd.confd-r4" libvirtd || die
|
||||
newinitd "${FILESDIR}/virtlockd.init" virtlockd || die
|
||||
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# we only ever want to generate this once
|
||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
||||
rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml
|
||||
fi
|
||||
|
||||
# We really don't want to use or support old PolicyKit cause it
|
||||
# screws with the new polkit integration
|
||||
if has_version sys-auth/policykit; then
|
||||
rm -rf "${D}"/usr/share/PolicyKit/policy/org.libvirt.unix.policy
|
||||
fi
|
||||
|
||||
# Only sysctl files ending in .conf work
|
||||
dodir /etc/sysctl.d
|
||||
mv "${D}"/usr/lib/sysctl.d/libvirtd.conf "${D}"/etc/sysctl.d/libvirtd.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
||||
touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml
|
||||
fi
|
||||
|
||||
if ! use policykit; then
|
||||
elog "To allow normal users to connect to libvirtd you must change the"
|
||||
elog "unix sock group and/or perms in /etc/libvirt/libvirtd.conf"
|
||||
fi
|
||||
|
||||
use libvirtd || return 0
|
||||
# From here, only libvirtd-related instructions, be warned!
|
||||
|
||||
readme.gentoo_print_elog
|
||||
|
||||
if use caps && use qemu; then
|
||||
elog "libvirt will now start qemu/kvm VMs with non-root privileges."
|
||||
elog "Ensure any resources your VMs use are accessible by qemu:qemu"
|
||||
fi
|
||||
|
||||
if [[ -n "${REPLACING_VERSIONS}" ]]; then
|
||||
elog ""
|
||||
elog "The systemd service-file configuration under /etc/sysconfig has"
|
||||
elog "been removed. Please use"
|
||||
elog " /etc/systemd/system/libvirt.d/00gentoo.conf"
|
||||
elog "to control the '--listen' parameter for libvirtd. The configuration"
|
||||
elog "for the libvirt-guests.service is now found under"
|
||||
elog " /etc/libvirt/libvirt-guests.conf"
|
||||
elog "The openrc configuration has not been changed. Thus no action is"
|
||||
elog "required for the openrc service manager."
|
||||
elog ""
|
||||
fi
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST kobs-ng-3.0.35-4.1.0.tar.gz 145817 SHA256 92d2f23add8c5d3102c77f241cae26ca55871ccc613a7af833bebbbac7afb8ea SHA512 b2bb27202ecbf31bebec8eadcf04362178ec74337400416259237880b94ac2e5fcffae59b48857e9fcfa1b1aae584b181901d4dafea63eb1e0972ed3bc3b9e6e WHIRLPOOL 03674167651e9bb9fa71983ea71eb207fc96da4c881fb5def3ebfffdb86a8a2cee08de741d102c7aa1781619959064d54b79f74959940c2177c2f15d65acd76e
|
@ -0,0 +1,13 @@
|
||||
the part array is declared as part[2], so trying to index [2] isn't going to work
|
||||
|
||||
--- a/src/mtd.c
|
||||
+++ b/src/mtd.c
|
||||
@@ -786,7 +786,7 @@
|
||||
mp->ecc = 1;
|
||||
}
|
||||
|
||||
- if (md->part[1].fd >= 0 && md->part[2].fd >=0)
|
||||
+ if (md->part[1].fd >= 0)
|
||||
md->flags |= F_MULTICHIP;
|
||||
|
||||
/* if a second partition has been opened, verify that are compatible */
|
@ -0,0 +1,75 @@
|
||||
# Source: http://git.buildroot.net/buildroot/plain/package/kobs-ng/kobs-ng-fix-mtd-defines.patch?id=b6fb2f5018fe0ae9bba275991efc502236422924
|
||||
|
||||
Newer kernel headers renamed mtd mode defines and no longer support
|
||||
MEMSETOOBSEL. Allow code to work with both older and newer kernel
|
||||
versions.
|
||||
|
||||
Signed-off-by: Paul B. Henson <henson@acm.org>
|
||||
|
||||
diff -u -r kobs-ng-3.0.35-4.0.0-orig/src/mtd.c kobs-ng-3.0.35-4.0.0/src/mtd.c
|
||||
--- kobs-ng-3.0.35-4.0.0-orig/src/mtd.c 2012-12-17 22:37:40.000000000 -0800
|
||||
+++ kobs-ng-3.0.35-4.0.0/src/mtd.c 2013-07-28 19:39:59.000000000 -0700
|
||||
@@ -852,8 +852,11 @@
|
||||
mp = &md->part[i];
|
||||
|
||||
if (mp->fd != -1) {
|
||||
+/* Newer kernels dropped MEMSETOOBSEL */
|
||||
+#ifdef MEMSETOOBSEL
|
||||
(void)ioctl(mp->fd, MEMSETOOBSEL,
|
||||
&mp->old_oobinfo);
|
||||
+#endif
|
||||
close(mp->fd);
|
||||
}
|
||||
|
||||
@@ -896,6 +899,8 @@
|
||||
continue;
|
||||
}
|
||||
|
||||
+/* Newer kernels dropped MEMSETOOBSEL */
|
||||
+#ifdef MEMSETOOBSEL
|
||||
if (r == -ENOTTY) {
|
||||
r = ioctl(mp->fd, MEMSETOOBSEL, &mp->old_oobinfo);
|
||||
if (r != 0) {
|
||||
@@ -904,6 +909,7 @@
|
||||
}
|
||||
mp->oobinfochanged = 0;
|
||||
}
|
||||
+#endif
|
||||
} else {
|
||||
r = ioctl(mp->fd, MTDFILEMODE, (void *)MTD_MODE_RAW);
|
||||
if (r != 0 && r != -ENOTTY) {
|
||||
@@ -911,6 +917,8 @@
|
||||
continue;
|
||||
}
|
||||
|
||||
+/* Newer kernels dropped MEMSETOOBSEL */
|
||||
+#ifdef MEMSETOOBSEL
|
||||
if (r == -ENOTTY) {
|
||||
r = ioctl(mp->fd, MEMSETOOBSEL, &none_oobinfo);
|
||||
if (r != 0) {
|
||||
@@ -920,6 +928,7 @@
|
||||
mp->oobinfochanged = 1;
|
||||
} else
|
||||
mp->oobinfochanged = 2;
|
||||
+#endif
|
||||
}
|
||||
|
||||
mp->ecc = ecc;
|
||||
diff -u -r kobs-ng-3.0.35-4.0.0-orig/src/mtd.h kobs-ng-3.0.35-4.0.0/src/mtd.h
|
||||
--- kobs-ng-3.0.35-4.0.0-orig/src/mtd.h 2012-12-17 22:37:40.000000000 -0800
|
||||
+++ kobs-ng-3.0.35-4.0.0/src/mtd.h 2013-07-28 19:33:57.000000000 -0700
|
||||
@@ -31,6 +31,14 @@
|
||||
#include "BootControlBlocks.h"
|
||||
#include "rom_nand_hamming_code_ecc.h"
|
||||
|
||||
+// Newer kernel headers renamed define
|
||||
+#ifndef MTD_MODE_NORMAL
|
||||
+#define MTD_MODE_NORMAL MTD_FILE_MODE_NORMAL
|
||||
+#endif
|
||||
+#ifndef MTD_MODE_RAW
|
||||
+#define MTD_MODE_RAW MTD_FILE_MODE_RAW
|
||||
+#endif
|
||||
+
|
||||
//------------------------------------------------------------------------------
|
||||
// Re-definitions of true and false, because the standard ones aren't good
|
||||
// enough?
|
@ -0,0 +1,13 @@
|
||||
add missing mode to open() when using O_CREAT
|
||||
|
||||
--- kobs-ng-3.0.35-4.1.0/src/main.c
|
||||
+++ kobs-ng-3.0.35-4.1.0/src/main.c
|
||||
@@ -563,7 +563,7 @@
|
||||
int sz = getpagesize();
|
||||
|
||||
from = open(file_name, O_RDONLY);
|
||||
- to = open(tmp_file, O_CREAT | O_RDWR);
|
||||
+ to = open(tmp_file, O_CREAT | O_RDWR, 0644);
|
||||
if (from < 0 || to < 0) {
|
||||
fprintf(stderr, "unable to create a temporary file\n");
|
||||
exit(5);
|
@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-embedded/kobs-ng/kobs-ng-3.0.35.4.1.0.ebuild,v 1.1 2014/11/18 04:07:28 vapier Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils versionator
|
||||
|
||||
MY_PV="$(get_version_component_range 1-3)-$(get_version_component_range 4-)"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
|
||||
DESCRIPTION="utility to write u-boot images to NAND on Freescale iMX devices"
|
||||
HOMEPAGE="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=IMX6_SW"
|
||||
SRC_URI="http://storage.googleapis.com/chromeos-localmirror/distfiles/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE=""
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/kobs-ng-fix-mtd-defines.patch
|
||||
epatch "${FILESDIR}"/kobs-ng-fix-open-without-mode.patch
|
||||
epatch "${FILESDIR}"/kobs-ng-fix-array-violation.patch
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>dev-embedded</herd>
|
||||
</pkgmetadata>
|
@ -1,2 +1,3 @@
|
||||
DIST libcgroup-0.38.tar.bz2 475657 SHA256 5d36d1a48b95f62fe9fcdf74a5a4089512e5e43e6011aa1504fd6f2a0909867f SHA512 763e52bee699b0461508eabb6fdf3a79f15d1d8cdbc6631fcae93127eb7648e6bab660cf3a31019b966095113f9a086d55b5351c7999f3654f8e6c95507725d5 WHIRLPOOL d6a6e9c629687608698817346e1eda1e1406554665ea6aea055844bd47b0a21b0f3301c4a3acb0c2492be0a6536d25c1b609ee3ade8c11376f25b3335859814b
|
||||
DIST libcgroup-0.39.rc1.tar.bz2 497250 SHA256 9d27e4b16b92fb9917d0807934023b8cc691f3b5258c4ee581957645fa7ba143 SHA512 0aad3389cb52e6f4c6f130ba24a4e2f2348562254dee10f343607b78c2e28930753ece70b6b3f2cce57d72f3d0bc78352cfbf15a659b3ec75421d233ac50750f WHIRLPOOL 09e4f444a589e68373ce52f96707a4026175392bc26090a85bc50d7a35233ad5356638d250d1292511110e235aab1d77992f77e35d1be399a017b319354d235e
|
||||
DIST libcgroup-0.41.tar.bz2 500120 SHA256 e4e38bdc7ef70645ce33740ddcca051248d56b53283c0dc6d404e17706f6fb51 SHA512 1aedb02cd2ce3bc2e2a328a247a92976ad0978ca4d3aee4eb671fbcc6bb270348efc78dcf84f27fc500f8bfb9bb57c7d6e4d429ef2bc69e4e5118b7cd895a6bd WHIRLPOOL 3941ec9362dd7da1c5d1b9eaf2b44303982a04d460ab92946201b1fe952c2f94e19950e9a08104c262eb982d8e64bcf290f1b95115aaba11d8b1457b715a3646
|
||||
|
@ -0,0 +1,109 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libcgroup/libcgroup-0.41.ebuild,v 1.1 2014/11/17 19:22:03 hwoarang Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
AUTOTOOLS_AUTORECONF=1
|
||||
|
||||
inherit eutils linux-info pam autotools-utils versionator
|
||||
|
||||
MY_P="${PN}-$(replace_version_separator 2 .)"
|
||||
|
||||
DESCRIPTION="Tools and libraries to configure and manage kernel control groups"
|
||||
HOMEPAGE="http://libcg.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/project/libcg/${PN}/v0.39.rc/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
IUSE="+daemon debug pam static-libs +tools debug"
|
||||
|
||||
RDEPEND="pam? ( virtual/pam )"
|
||||
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
"
|
||||
REQUIRED_USE="daemon? ( tools )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
DOCS=(README_daemon README README_systemd INSTALL)
|
||||
pkg_setup() {
|
||||
local CONFIG_CHECK="~CGROUPS"
|
||||
if use daemon; then
|
||||
CONFIG_CHECK="${CONFIG_CHECK} ~CONNECTOR ~PROC_EVENTS"
|
||||
fi
|
||||
linux-info_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
|
||||
# Change rules file location
|
||||
sed -e 's:/etc/cgrules.conf:/etc/cgroup/cgrules.conf:' \
|
||||
-i src/libcgroup-internal.h || die "sed failed"
|
||||
sed -e 's:\(pam_cgroup_la_LDFLAGS.*\):\1\ -avoid-version:' \
|
||||
-i src/pam/Makefile.am || die "sed failed"
|
||||
sed -e 's#/var/run#/run#g' -i configure.in || die "sed failed"
|
||||
|
||||
autotools-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local my_conf
|
||||
|
||||
if use pam; then
|
||||
my_conf=" --enable-pam-module-dir=$(getpam_mod_dir) "
|
||||
fi
|
||||
|
||||
local myeconfargs=(
|
||||
$(use_enable daemon)
|
||||
$(use_enable debug)
|
||||
$(use_enable pam)
|
||||
$(use_enable tools)
|
||||
${my_conf}
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Use mount cgroup to build directory
|
||||
# sandbox restricted to trivial build,
|
||||
# possible kill Diego tanderbox ;)
|
||||
true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
prune_libtool_files --all
|
||||
|
||||
insinto /etc/cgroup
|
||||
doins samples/*.conf || die
|
||||
|
||||
if use tools; then
|
||||
newconfd "${FILESDIR}"/cgconfig.confd cgconfig || die
|
||||
newinitd "${FILESDIR}"/cgconfig.initd cgconfig || die
|
||||
fi
|
||||
|
||||
if use daemon; then
|
||||
newconfd "${FILESDIR}"/cgred.confd cgred || die
|
||||
newinitd "${FILESDIR}"/cgred.initd cgred || die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Read the kernel docs on cgroups, related schedulers, and the"
|
||||
elog "block I/O controllers. The Redhat Resource Management Guide"
|
||||
elog "is also helpful. DO NOT enable the cgroup namespace subsytem"
|
||||
elog "if you want a custom config, rule processing, etc. This option"
|
||||
elog "should only be enabled for a VM environment. The UID wildcard"
|
||||
elog "rules seem to work only without a custom config (since wildcards"
|
||||
elog "don't work in config blocks). Specific user-id configs *do*"
|
||||
elog "work, but be careful about how the mem limits add up if using"
|
||||
elog "the memory.limit_* directives. There should be a basic task"
|
||||
elog "partitioning into the default group when running cgred with no"
|
||||
elog "specific config blocks or rules (other than the mount directive)."
|
||||
elog "See the docs for the pam module config, and as always, RTFM..."
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST libntru-0.2.tar.gz 49832 SHA256 bc1d10dcd1755f836d4696b734ecc4bc8b047b7ea40d857657c03ecb31ac141f SHA512 4de4cc550fb74d53a26f1b6f94d27d6131756ab7f1b62ce5f1845e6e626581a357004efbd92881d1e180d75f4a92ec97e3c30926dcdf6ea23d87f1da81809f3a WHIRLPOOL 5e96d55f56f608e5ca24506bc8a122d2dff62c61fc0dab847913456d84d36fe13d615c8910b3915c0aa3881a236aaae45725842f9d062183906162df352fd396
|
||||
DIST libntru-0.3.tar.gz 53364 SHA256 9ce6b6a20ca304c09d2ff853e3b5762880a8cb85728113b26eb8ca2e915e2a0a SHA512 b99fecf21104f73246a9494dce6caa6742b7a2e5219e9b2a46d639d3181588bb1580c0b03209f150e9294f721d2e1179157be0eab52f25b2664c1451aaae8712 WHIRLPOOL 1545da85003e0466354767388252a67d5ac9cb457e94baf9ed1862b2b2b28bfa6057202509a017765442ca502c888ca50c6724b8c67569b6e6f4fcb8d5b2fd8a
|
||||
|
@ -0,0 +1,78 @@
|
||||
From 5cb48a5a1bf43c5d4811295aa3fb25744c4c254d Mon Sep 17 00:00:00 2001
|
||||
From: Julian Ospald <hasufell@hasufell.de>
|
||||
Date: Mon, 17 Nov 2014 23:25:31 +0100
|
||||
Subject: [PATCH 3/6] Allow building and installing static lib
|
||||
|
||||
Refactored the install rules a bit, so that installing the static
|
||||
lib optionally becomes a bit more convenient.
|
||||
---
|
||||
Makefile.linux | 36 ++++++++++++++++++++++++++++++------
|
||||
1 file changed, 30 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/Makefile.linux b/Makefile.linux
|
||||
index dbc4957..218162c 100644
|
||||
--- a/Makefile.linux
|
||||
+++ b/Makefile.linux
|
||||
@@ -1,4 +1,5 @@
|
||||
CC?=gcc
|
||||
+AR?=ar
|
||||
CFLAGS?=-g -O2
|
||||
CFLAGS+=-Wall -Wextra -Wno-unused-parameter
|
||||
LIBS+=-lrt
|
||||
@@ -24,24 +25,47 @@ all: lib
|
||||
|
||||
lib: libntru.so
|
||||
|
||||
+static-lib: libntru.a
|
||||
+
|
||||
libntru.so: $(LIB_OBJS_PATHS)
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -shared -Wl,-soname,libntru.so -o libntru.so $(LIB_OBJS_PATHS) $(LDFLAGS) $(LIBS)
|
||||
|
||||
-install: lib
|
||||
- test -d "$(DESTDIR)$(INST_PFX)" || mkdir -p "$(DESTDIR)$(INST_PFX)"
|
||||
- test -d "$(DESTDIR)$(INST_LIBDIR)" || mkdir "$(DESTDIR)$(INST_LIBDIR)"
|
||||
- test -d "$(DESTDIR)$(INST_INCLUDE)" || mkdir -p "$(DESTDIR)$(INST_INCLUDE)"
|
||||
- test -d "$(DESTDIR)$(INST_DOCDIR)" || mkdir -p "$(DESTDIR)$(INST_DOCDIR)"
|
||||
+libntru.a: $(LIB_OBJS_PATHS)
|
||||
+ $(AR) cru libntru.a $(LIB_OBJS_PATHS)
|
||||
+
|
||||
+install: install-lib install-doc install-headers
|
||||
+
|
||||
+install-lib: lib
|
||||
+ test -d "$(DESTDIR)$(INST_LIBDIR)" || mkdir -p "$(DESTDIR)$(INST_LIBDIR)"
|
||||
install -m 0755 libntru.so "$(DESTDIR)$(INST_LIBDIR)/libntru.so"
|
||||
+
|
||||
+install-static-lib: static-lib
|
||||
+ test -d "$(DESTDIR)$(INST_LIBDIR)" || mkdir -p "$(DESTDIR)$(INST_LIBDIR)"
|
||||
+ install -m 0755 libntru.a "$(DESTDIR)$(INST_LIBDIR)/libntru.a"
|
||||
+
|
||||
+install-doc:
|
||||
+ test -d "$(DESTDIR)$(INST_DOCDIR)" || mkdir -p "$(DESTDIR)$(INST_DOCDIR)"
|
||||
install -m 0644 README.md "$(DESTDIR)$(INST_DOCDIR)/README.md"
|
||||
+
|
||||
+install-headers:
|
||||
+ test -d "$(DESTDIR)$(INST_INCLUDE)" || mkdir -p "$(DESTDIR)$(INST_INCLUDE)"
|
||||
for header in $(INST_HEADERS) ; do \
|
||||
install -m 0644 "$(SRCDIR)/$$header" "$(DESTDIR)$(INST_INCLUDE)/" ; \
|
||||
done
|
||||
|
||||
-uninstall:
|
||||
+uninstall: uninstall-lib uninstall-doc uninstall-headers
|
||||
+
|
||||
+uninstall-lib:
|
||||
rm -f "$(DESTDIR)$(INST_LIBDIR)/libntru.so"
|
||||
+
|
||||
+uninstall-static-lib:
|
||||
+ rm -f "$(DESTDIR)$(INST_LIBDIR)/libntru.a"
|
||||
+
|
||||
+uninstall-doc:
|
||||
rm -f "$(DESTDIR)$(INST_DOCDIR)/README.md"
|
||||
rmdir "$(DESTDIR)$(INST_DOCDIR)/"
|
||||
+
|
||||
+uninstall-headers:
|
||||
for header in $(INST_HEADERS) ; do \
|
||||
rm "$(DESTDIR)$(INST_INCLUDE)/$$header" ; \
|
||||
done
|
||||
--
|
||||
2.1.3
|
||||
|
@ -0,0 +1,33 @@
|
||||
From 38e454b12c707a0d6870fb5541fad64ece17f78d Mon Sep 17 00:00:00 2001
|
||||
From: Julian Ospald <hasufell@hasufell.de>
|
||||
Date: Mon, 17 Nov 2014 22:27:39 +0100
|
||||
Subject: [PATCH 1/4] Make the "lib" target depend on the "libntru.so" target
|
||||
|
||||
Depending on the old "lib" target caused a rebuild of libntru.so on any
|
||||
such target (e.g. installation), because "lib" is in .PHONY
|
||||
and not an expected file name.
|
||||
|
||||
Fixing this helps with distro policies which require to not do
|
||||
compilation processes during installation phase.
|
||||
---
|
||||
Makefile.linux | 4 +++-
|
||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile.linux b/Makefile.linux
|
||||
index b699998..dbc4957 100644
|
||||
--- a/Makefile.linux
|
||||
+++ b/Makefile.linux
|
||||
@@ -22,7 +22,9 @@ MAKEFILENAME=$(lastword $(MAKEFILE_LIST))
|
||||
|
||||
all: lib
|
||||
|
||||
-lib: $(LIB_OBJS_PATHS)
|
||||
+lib: libntru.so
|
||||
+
|
||||
+libntru.so: $(LIB_OBJS_PATHS)
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -shared -Wl,-soname,libntru.so -o libntru.so $(LIB_OBJS_PATHS) $(LDFLAGS) $(LIBS)
|
||||
|
||||
install: lib
|
||||
--
|
||||
2.1.3
|
||||
|
@ -0,0 +1,53 @@
|
||||
From e434656449d0797a2f6e14e33b6a0114371d0e16 Mon Sep 17 00:00:00 2001
|
||||
From: Julian Ospald <hasufell@hasufell.de>
|
||||
Date: Mon, 17 Nov 2014 22:58:29 +0100
|
||||
Subject: [PATCH 3/4] Update VERSION in Makefiles
|
||||
|
||||
---
|
||||
Makefile.linux | 2 +-
|
||||
Makefile.osx | 2 +-
|
||||
Makefile.win | 2 +-
|
||||
3 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/Makefile.linux b/Makefile.linux
|
||||
index fabf8d5..3248ba8 100644
|
||||
--- a/Makefile.linux
|
||||
+++ b/Makefile.linux
|
||||
@@ -7,7 +7,7 @@ SRCDIR=src
|
||||
TESTDIR=tests
|
||||
LIB_OBJS=bitstring.o encparams.o hash.o idxgen.o key.o mgf.o ntru.o poly.o rand.o sha1.o sha2.o
|
||||
TEST_OBJS=test_bitstring.o test_hash.o test_idxgen.o test_key.o test_ntru.o test.o test_poly.o test_util.o
|
||||
-VERSION=0.2
|
||||
+VERSION=0.3
|
||||
INST_PFX=/usr
|
||||
INST_LIBDIR=$(INST_PFX)/lib
|
||||
INST_INCLUDE=$(INST_PFX)/include/libntru
|
||||
diff --git a/Makefile.osx b/Makefile.osx
|
||||
index ccbdf3e..a0f67d3 100644
|
||||
--- a/Makefile.osx
|
||||
+++ b/Makefile.osx
|
||||
@@ -4,7 +4,7 @@ SRCDIR=src
|
||||
TESTDIR=tests
|
||||
LIB_OBJS=bitstring.o encparams.o hash.o idxgen.o key.o mgf.o ntru.o poly.o rand.o sha1.o sha2.o
|
||||
TEST_OBJS=test_bitstring.o test_hash.o test_idxgen.o test_key.o test_ntru.o test.o test_poly.o test_util.o
|
||||
-VERSION=0.2
|
||||
+VERSION=0.3
|
||||
INST_PFX=/usr
|
||||
INST_LIBDIR=$(INST_PFX)/lib
|
||||
INST_INCLUDE=$(INST_PFX)/include/libntru
|
||||
diff --git a/Makefile.win b/Makefile.win
|
||||
index 7a93144..ffa7225 100644
|
||||
--- a/Makefile.win
|
||||
+++ b/Makefile.win
|
||||
@@ -6,7 +6,7 @@ SRCDIR=src
|
||||
TESTDIR=tests
|
||||
LIB_OBJS=bitstring.o encparams.o hash.o idxgen.o key.o mgf.o ntru.o poly.o rand.o sha1.o sha2.o
|
||||
TEST_OBJS=test_bitstring.o test_hash.o test_idxgen.o test_key.o test_ntru.o test.o test_poly.o test_util.o
|
||||
-VERSION=0.2
|
||||
+VERSION=0.3
|
||||
INST_PFX=%PROGRAMFILES%
|
||||
INST_LIBDIR=$(INST_PFX)\libntru
|
||||
INST_INCLUDE=$(INST_PFX)\libntru\include
|
||||
--
|
||||
2.1.3
|
||||
|
@ -0,0 +1,57 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libntru/libntru-0.3.ebuild,v 1.1 2014/11/17 22:32:35 hasufell Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils toolchain-funcs multilib multilib-minimal
|
||||
|
||||
DESCRIPTION="C Implementation of NTRUEncrypt"
|
||||
HOMEPAGE="https://github.com/tbuktu/libntru"
|
||||
SRC_URI="https://github.com/tbuktu/libntru/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="examples static-libs"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-Make-the-lib-target-depend-on-the-libntru.so-target.patch \
|
||||
"${FILESDIR}"/${P}-Allow-building-and-installing-static-lib.patch \
|
||||
"${FILESDIR}"/${P}-Update-VERSION-in-Makefiles.patch
|
||||
|
||||
multilib_copy_sources
|
||||
|
||||
_copy_test_dir() {
|
||||
cp -pr "${BUILD_DIR}" "${BUILD_DIR}-test" || die
|
||||
}
|
||||
multilib_foreach_abi _copy_test_dir
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
CFLAGS="${CFLAGS}" emake CC="$(tc-getCC)" $(usex static-libs "libntru.a" "")
|
||||
}
|
||||
|
||||
src_test() {
|
||||
_test() {
|
||||
CFLAGS="${CFLAGS}" emake CC="$(tc-getCC)" test -j1 -C "${BUILD_DIR}-test"
|
||||
}
|
||||
|
||||
multilib_foreach_abi _test
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake \
|
||||
DESTDIR="${ED}" \
|
||||
INST_LIBDIR="/usr/$(get_libdir)" \
|
||||
INST_DOCDIR="/usr/share/doc/${PF}" \
|
||||
install $(usex static-libs install-static-lib "")
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
if use examples ; then
|
||||
docinto examples
|
||||
dodoc src/hybrid.c
|
||||
fi
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST datashape-0.3.0.tar.gz 74433 SHA256 fd4a0188a118dfdd011108520aa8a8c600d73a5abcb11081a08d62078aae669d SHA512 7e4153c899f2e0dca48b8d7737d162b1078987eaf8a034da21afe306df6e9b78a57a9f62fd546d86309558a51d5ccaa4804473dd02e4a1914dd5206fd01f9c98 WHIRLPOOL 4ea63ebd78e842ec03926502bc77c144549d64731a631b6d7e202412d4ab9b42cfed539af5d24e5f2bd3fd7537d664cdf52ded5f1abb540a16e13ce81d183e81
|
||||
DIST datashape-0.4.0.tar.gz 75353 SHA256 0b13c18acc7978c35d8b56e194a2b7b6d7969beb56df543320431e3140b7b3d8 SHA512 69f5d6ad0c923decc052db6d2772665a3a58f5f72df3b7167a17ec99e703e511e85cc36cfe9b84dc8112090015f908c1d8e35630d785fb912f012b91227b17da WHIRLPOOL eb7c706eb554cd8df69b9f55a68a90eb52a0caf9f9befa653f3367bf7bd893d2e068e5b304eb83e7574720b3199c857bde42e453d8e67220cef478af050ddc8c
|
||||
DIST datashape-0.4.1.tar.gz 76873 SHA256 cc72f5feec393890183c82c2d0da55cf3e1e8334909ae71bd6aa5c119961b89b SHA512 dd74aa6d001de5122e155d94b50aeaebbc1e3c1ced19166158d2a9860f2e553d17d0c81a45d81130816ab0406c030f2f7cefbbe7f8543e7b57df338d731af493 WHIRLPOOL 851823fa36955bbedcefc866462ca90ae3bd00e78d32ed5875a83c5ecba7b18ac73457835ddb5e1fb4e093419c008431f1f5b4a54cae284dff8a317b5d0a95ec
|
||||
|
@ -1,47 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/datashape/datashape-0.3.0.ebuild,v 1.2 2014/08/10 01:27:16 idella4 Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Language defining a data description protocol"
|
||||
HOMEPAGE="https://github.com/ContinuumIO/datashape"
|
||||
SRC_URI="https://github.com/ContinuumIO/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="doc test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/ply[${PYTHON_USEDEP}]
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
dev-python/multipledispatch[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? ( ${RDEPEND}
|
||||
dev-python/pytest[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_prepare_all() {
|
||||
# Prevent un-needed d'loading
|
||||
sed -e "s/'sphinx.ext.intersphinx', //" -i docs/source/conf.py || die
|
||||
distutils-r1_python_prepare_all
|
||||
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
py.test -v || die "Tests failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST GitPython-0.1.7.tar.gz 18087 SHA256 03754bc7b256397c1b646e5048e2291590f5080171adb8b00f4e2d7384c76eee SHA512 e0721409fea009548773b7410051d4295be850683dbc45c692a142e3a8abebe12d3452b95384818170eef9a43ba1c3664f5ebe2702fcd7f6a9d8f1a46ab18083 WHIRLPOOL ab6017daea5b3e87d0ee58d7dfc9b40ad8f5434e8f7ec51df4ec5e6d680827dc2ea1225253b1ccff8855fd9cd9e6548f60d3b20be1de58c5560612cb8babddd6
|
||||
DIST GitPython-0.3.2.RC1.tar.gz 313486 SHA256 fd6786684a0d0dd7ebb961da754e3312fafe0c8e88f55ceb09858aa0af6094e0 SHA512 c1a4a50d81aef1e80dfd1dbeaf651796f547830274fb07929409347aca595ea5434d03e6ecf7769ea2b7e3fe990df5698028e4f6aab1e0376f51da25d74ef5e5 WHIRLPOOL 1f4164fc048f9941c466a94cef4a4e9c9eb9e1db061787e13652f24e6fddb6534c53369c02d567f97600a93c9461fe27044f1c654ce8e616b04567eca034998e
|
||||
DIST GitPython-0.3.2.tar.gz 314927 SHA256 094837061ed6d49f5f35fac36fb5885a73d267282d2aff0564e8705d2323e531 SHA512 8fede62d423a783c10dc305ec9aa3ba8f1b7f2cc9bc4ca0abaab7b01ec7f9f9afedc11600612c4aeaffe2e7e63f55deff56eeabf02010c83a930aa922ed165a4 WHIRLPOOL 10fbcb1f061268e0e7013e0536e4dd05fbff7c3dcbd88b2ee3715aeb9f991c0c77d587fed3ccfc1ac0da4843d3da3aba3f780466447d42dc4e083c723f6a9228
|
||||
|
@ -1,34 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/git-python/git-python-0.3.2_rc1.ebuild,v 1.4 2014/08/10 21:11:41 slyfox Exp $
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="2"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
#Tests dont make sense without a git repo
|
||||
#DISTUTILS_SRC_TESTS="nosetests"
|
||||
|
||||
inherit distutils
|
||||
|
||||
MY_PN="GitPython"
|
||||
MY_PV="${PV/_rc/.RC}"
|
||||
MY_P="${MY_PN}-${MY_PV}"
|
||||
|
||||
DESCRIPTION="GitPython is a python library used to interact with Git repositories"
|
||||
HOMEPAGE="http://gitorious.org/git-python http://pypi.python.org/pypi/GitPython"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-vcs/git
|
||||
>=dev-python/gitdb-0.5.4"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools"
|
||||
RESTRICT_PYTHON_ABIS="3.*"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PYTHON_MODNAME="git"
|
@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>python</herd>
|
||||
<upstream>
|
||||
<remote-id type="pypi">GitPython</remote-id>
|
||||
</upstream>
|
||||
<herd>python</herd>
|
||||
<upstream>
|
||||
<remote-id type="pypi">GitPython</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST isodate-0.4.9.tar.gz 24820 SHA256 4e13c0b5824e9af40d99ad1d3969c880e49b6b09e4de138aa08db3d571b2190d SHA512 a59b7d2ce417b40cb6365f87ad8f1dbba58fd356edaa450510453630ef81c4fa308ab3a45b680de5451ec8d5d2b67fa75980a3ba006c51b73860ca96e1a94b6a WHIRLPOOL b6fa919b31ea3aae7acd23d6fe98284ffad9d39a3025a708953a0434d84192bf4bd2d4ae96fc2f137682dca021e79537152a7d57e5d76c43b149c1f898eaf28a
|
||||
DIST isodate-0.5.0.tar.gz 25917 SHA256 f3e436a9c321882942a6c62e9d8ea49787b4c0ea7f7bb3cbd047bcf76bd0dfbe SHA512 5f45fee798e8f79a5f9f271570d542fb68936577e3670a675e66e037bb15d76653717d7fcdeae1cd6ae9afb2f153206210c40d4cfcd8bd60c3ed873d2e6b19d4 WHIRLPOOL a9a62054c5b050a20240699a0955cf1a59f7c9afb4b163f0ef16b6fce578263881e3c8d77dc15a3ac1d11a341f64073685aa8a1d533391884d2d5f956f76a1a0
|
||||
DIST isodate-0.5.1.tar.gz 26859 SHA256 b12aed31c0e834543497e24d609a41531a800d8304c39e6665c45ca023b012fb SHA512 8bc1006a1d3aa03fc69885415f2acc18efde870d1c8e5ac9741672b2818983fabb781d853766105298fc55d187add20f4e3a4bf33966fc5b9d5f5ca08dc77748 WHIRLPOOL b246e35c93bf8001b7b7519c811cf7bda3cf669ace008e8f7ba4ee26e88b764468d326c9c145709a626a11e8358368dda2440a0fcf60587d22dbd6bce8825655
|
||||
|
@ -1,2 +1 @@
|
||||
DIST jsonpatch-1.7.tar.gz 14109 SHA256 14ca0944de01cba9091f54951da058dd515ff3d3a203e6b29e00362eeef67dae SHA512 317d11a875944c7975e17112fe106e134c37993e9fcda5926c317ba5373d2aa63c708c478442d9954ad8759bedd0b3f012c000964ba2841bf2415068e8a1da43 WHIRLPOOL ca908ffc6890bb6b7a65eacae41932ba5977c61ff5e5dd4bfbb050cb2f8250d6fd0d8e3048903f4ab1beb2913555a26d53ce692048ac9b4bde1aaef7451f4c4a
|
||||
DIST jsonpatch-1.8.tar.gz 14072 SHA256 e5c59daf48401441ac2b4e57bbb04585b4ea791842ae1ebfdd2988b9f3351776 SHA512 91dfc62466f44e63ca0165237dedb5046a29846ce390b7c68bc706a506f01ab37c27b6a25295138613985f85a68ebf30fc18b703c269ca64d396b1d35f5c15e6 WHIRLPOOL 0354e33b8bd4113458e9719d4302445e379bc6d866bfaf506e6f72c7feb92e933e3866be7aaecf38c3026a73a9e475f46a8aa673ccc744f68fbb8b2f165c7e41
|
||||
DIST jsonpatch-1.9.tar.gz 14275 SHA256 e997076450992aa7af2f4ae6c3e7767d390ddb6746979c74fd2092bb8fbdf5b2 SHA512 9f27def8519677dbc6d45287b6938ccfb9179f7a315871adeb7198e1568876a391625c060c7901b7acd51af0ed10427a61d54d899719ef1a073b2e93591904ed WHIRLPOOL a7ee28b9cefa8ddebb060867b260b388cd44ce96f0f2a76698091f55d41be44cd690b32d26b1363218c474fc1dd9cfe8eed3c0d939e9e9d8d4c2214e1b08786b
|
||||
|
@ -1,25 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/jsonpatch/jsonpatch-1.7.ebuild,v 1.1 2014/07/14 07:44:03 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3,3_4} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Apply JSON-Patches according to
|
||||
http://tools.ietf.org/html/draft-pbryan-json-patch-04"
|
||||
HOMEPAGE="https://github.com/stefankoegl/python-json-patch"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND=">=dev-python/jsonpointer-1.3[${PYTHON_USEDEP}]"
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" tests.py || die "Tests fail with ${EPYTHON}"
|
||||
}
|
@ -1,3 +1 @@
|
||||
DIST jsonpointer-0.7.tar.gz 3343 SHA256 790255717b982aa9cb837030d4ad4d19447322ff7b8fb4bf8bb340cadc0a42a4 SHA512 900c7341598d3fef4667bf65d4afac8788e9449b45b7799e8cda1406ab703e790431a69f4387f09ace73456c089f179a93d32293a973ff1023aed0dcfe9740b3 WHIRLPOOL 4e618c55bdb52c7f44271e55768aa46a7e04c686695e5829d8a0a0c01d7334b3a0929f4994564548af238352dec49c9e99f3094828aec17f777c518c03c40958
|
||||
DIST jsonpointer-1.3.tar.gz 6829 SHA256 0c60fd449265c301af8492a654e8cb379aeec5f6207ecac9a585fa91e6ccf95c SHA512 9961e29b5a9b3153c0ed97d6da68b86aa2d1f8333e0ff2a8a2accce994276c83ecaead2729100bcdd655ad2120d9d3502422ab365837e93473cc1de5a31e4e7b WHIRLPOOL 3416f4307bedefbcc0e0ef4da6bf0c7eccb9a6d5a0029066d03a6790e83623cfdfffdf80962f256465820578d26a42dd47fa91749fb7a2342ceee43bbce49e55
|
||||
DIST jsonpointer-1.4.tar.gz 6936 SHA256 cb9d357edc67fe41a929fbfd583e95a2a6c5fdc71e22522d88ab715c752905b4 SHA512 be1cf5b5df08bd42c25bded242afd4caf04baba8958cc8599859f80041f8db06e4d6aaadadd6cc6f35b2cc78a77a9d94ac45a9c809c21c61a691d7a6d9b5184f WHIRLPOOL 2441143f7c19d54bfb395dc829439ebfdfa0d0331fd9430e6d2e7463a6aa857ee59426424e3d7511169a85be95f32816d7e8c3987aa16e158b08ce05e60cfbb6
|
||||
DIST jsonpointer-1.5.tar.gz 8221 SHA256 8f26c526cd6a8f211d68abb77ce4bfaf73d3ba17953e1c1164c10a4a2de09d68 SHA512 1b2e74770d98ab051858dab3ec0c1b81389bb6d406f54f4b7baa1fb99888d0e8ef5d5351cbc88c117603cab7b0755a607c99940320bd77a346cb273ed9202c1b WHIRLPOOL 4e898fd0158ada58d6ffc8594cda352a9e283e37ff49c5601baf1a6643ade933b7dc14363dc957a85313e9c3ad1f4a9d725196ac30893d85a54d0c1874212a19
|
||||
|
@ -1,20 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/jsonpointer/jsonpointer-0.7.ebuild,v 1.2 2014/03/19 18:19:31 bicatali Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_6 python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Identify specific nodes in a JSON document (according to draft 08)"
|
||||
HOMEPAGE="https://github.com/stefankoegl/python-json-pointer"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND=""
|
@ -1,24 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/jsonpointer/jsonpointer-1.3.ebuild,v 1.1 2014/04/03 06:42:42 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3,3_4} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Identify specific nodes in a JSON document (according to draft 08)"
|
||||
HOMEPAGE="https://github.com/stefankoegl/python-json-pointer https://pypi.python.org/pypi/jsonpointer/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND=""
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" tests.py || die "Tests fail with ${EPYTHON}"
|
||||
}
|
@ -1,9 +1,9 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/jsonpointer/jsonpointer-1.4.ebuild,v 1.2 2014/10/04 05:38:29 idella4 Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/jsonpointer/jsonpointer-1.5.ebuild,v 1.1 2014/11/18 06:51:15 idella4 Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} pypy )
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>python</herd>
|
||||
<upstream>
|
||||
<remote-id type="pypi">path.py</remote-id>
|
||||
</upstream>
|
||||
<herd>python</herd>
|
||||
<upstream>
|
||||
<remote-id type="pypi">path.py</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
@ -1,9 +1,2 @@
|
||||
DIST rdflib-3.1.0.tar.gz 249824 SHA256 eafa2a6abfde24f08bc8af0b43084bd30a00d94579bea9993643a8b438098043 SHA512 e4beaac8d593ad45bc315075faf99beb1580548b354410edfd7774fbe90a7d9fbbdffb7709b338009e91d796d0ac4fba6a780be5c755c631c7b633f194e9b74e WHIRLPOOL f7d0de5389e0e818954a533b0456dccc13fcdfc197cfc88a3e1c3b1ce3da1399ec681ef242507ecbe74da3a4e0de64459301a8a7ca7524285b4785e47d09a742
|
||||
DIST rdflib-3.2.1.tar.gz 439814 SHA256 b1193b3614bf8f57793adcff0d0bbff9ed67a667849302c4f46192eb34822b21 SHA512 9cd8bfb3afcc70e7c5075c81f86c8e137a1c7b4675cc090306fa7925786916423db31111d860821f1a4630f4a76b675a5dfa3f6b5fe0cdcb590bc042cd48288f WHIRLPOOL e952f4cc81d0735356f466c55f34b288e1e864c1ccc8b4d9eb3b4729c83b42addbb58b0a598b6ca4ae9de361ad37f88bc757d0872c7960be3695d451fb644fc3
|
||||
DIST rdflib-3.2.2.tar.gz 448846 SHA256 996b5c10b3303b10f155665066174c0b4cb1a6b756f8124eb92eb63dfc9a6a05 SHA512 d5f3da670cbaf929255c0540374d0386d248e2db0c48db0b8c0d6e9e53ac0109d35b22426f168a19d2bf52769d34e3237ca6a3f82c8cb3035a87b03737f99040 WHIRLPOOL 95c7f8bf25824a0b36c1ee2abef9a3ae104201a84c500ded474f52530dc460b620a5d595447b422757d3bea07f2dc974d104492740cb306f57e5ae88cf37be68
|
||||
DIST rdflib-3.2.3.tar.gz 449077 SHA256 a3cab51c14fa6fe379261e0157c110d94e2f75ef62073ddc76fe56f5be624b75 SHA512 92697be6d6bba4e31303b46c2a42defd840770f75c6f359b7338fa3d48a2001cdcda3b6319403ad0c9f1696051d773b146c9b012770df81b4d94a34d30f6b02a WHIRLPOOL b41794febee280022990dac8c4e177660f69803f01fc14ade194015bc6cf1eaf23164620b09cf1123445d181c0bbe9f0733b901cddafb126bcd711d0462a9f7b
|
||||
DIST rdflib-4.0.1.tar.gz 903633 SHA256 5e8cd9b9f09d69116add36229e05d7d2fbececee1ae65dc17713c57e823a9813 SHA512 a2050a127039c8e6959ce087ff3d0a663ec0e9b7891e253a1c66be8e04dd99aa203e34c0026d227cdaffb8a203a385a8c42abee073b420df0e11ca138fb459b0 WHIRLPOOL 86f4f3b52ff08bca9698a5257bd32f861506b498fb6febfddfd09ff42c580f30314079d781ea56bec242e0bf4dfe57473d029e66fca49ff88078ff390bc1fe08
|
||||
DIST rdflib-4.0.tar.gz 838730 SHA256 eea954733aca41783abd9a960c84e3c32a51cb3cb620bdf995552cc7195f70c6 SHA512 d49ced6c4e23cd231b5266b2e6de09a1cdb7e59d14dbcce4b669a626f59cfc71cc7b0b9ddb465adb50cd8228fc456f98846f09e653bb1fba572c05a6f5dd18cd WHIRLPOOL e419c3d63fa768e639aeb5ee304cfbada93263abad7c55d0ac4731c4d24ccef4284a132b7f0aa054cbfb693b2cdb2423e4d46c54b9726cfd9684ae888abab5ec
|
||||
DIST rdflib-4.1.0.tar.gz 865610 SHA256 ee9f523c840564f0a370b5a1c6b0b494c689df69fb8bc7a77010b407cba71972 SHA512 82afd54ec974794c8aa0a17f62ca63a7eeb9b2ad61e715e19a6492130b2da30deed6e17319028ab5ffd83990c8b90edf61576bd602076ed4566d1cfea0d752a3 WHIRLPOOL 4cb85e394d21ea90875f39545df90d0b47eac4d696d24d455f1240646e694a08d0461b39b0bc804f2cdb41f2eaaf9ca519fd7ef15c86eed4856bed9ad3ec19e9
|
||||
DIST rdflib-4.1.1.tar.gz 866422 SHA256 3b5e6c09cae3a2c2fb77ff636837c6d1551651984f2d29e299ed88370e9c4b98 SHA512 5c0006f9652bf73cf18e848f8239e732e44333b0b866b5ca07b14c9b2ae8aff73980bba20725c6c5f2152aae2e3f741f6d060eb0ce080afc3b6639c3309e8849 WHIRLPOOL c801ed5c45a1b75cd69a0067b7607d466fbae12eb25e1c61bfeb6019916607cc4e2a8e02a246ea9b7433e0e33ad5b72b059678bfb603b07963493fdbb767cbc5
|
||||
DIST rdflib-4.1.2.tar.gz 868883 SHA256 3cf94bda0867f21468b248ce9f671581efb92ae9edd28ff321716126c6706a4f SHA512 99d4a4b4d37808563575ac13312cf0e0975f7c1563117cfe7e4b70a84a2804f7eb57144d6a7c629c109ff7b236a6ea2489a4925ae41791274f3b234143837e65 WHIRLPOOL 090e00cc3113cec158f786a39103450f0d1d25571ad57c346120756901f01b0fcf20ff731ae3b174b54f3621e46a26061eee7bd774ffdf91380f4a3647380590
|
||||
|
@ -1,47 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/rdflib/rdflib-3.1.0.ebuild,v 1.4 2012/10/07 00:46:43 floppym Exp $
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="2"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="3.* *-pypy-*"
|
||||
|
||||
inherit distutils eutils
|
||||
|
||||
DESCRIPTION="RDF library containing a triple store and parser/serializer"
|
||||
HOMEPAGE="https://github.com/RDFLib/rdflib http://pypi.python.org/pypi/rdflib"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~x86-linux"
|
||||
IUSE="berkdb examples mysql redland sqlite test"
|
||||
|
||||
RDEPEND="berkdb? ( dev-python/bsddb3 )
|
||||
mysql? ( dev-python/mysql-python )
|
||||
redland? ( dev-libs/redland-bindings[python] )
|
||||
sqlite? ( || ( dev-lang/python:2.7[sqlite] dev-lang/python:2.6[sqlite] dev-lang/python:2.5[sqlite] dev-python/pysqlite ) )"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-python/nose )"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-test.patch
|
||||
distutils_src_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
testing() {
|
||||
PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib)" "$(PYTHON)" run_tests.py
|
||||
}
|
||||
python_execute_function testing
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins -r examples/* || die "Installation of examples failed"
|
||||
fi
|
||||
}
|
@ -1,41 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/rdflib/rdflib-3.2.1.ebuild,v 1.2 2012/10/07 00:46:43 floppym Exp $
|
||||
|
||||
EAPI=4
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="*-pypy-*"
|
||||
DISTUTILS_SRC_TEST=nosetests
|
||||
|
||||
inherit distutils
|
||||
|
||||
DESCRIPTION="RDF library containing a triple store and parser/serializer"
|
||||
HOMEPAGE="https://github.com/RDFLib/rdflib http://pypi.python.org/pypi/rdflib"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="berkdb examples mysql redland sqlite"
|
||||
|
||||
RDEPEND="dev-python/isodate
|
||||
berkdb? ( dev-python/bsddb3 )
|
||||
mysql? ( dev-python/mysql-python )
|
||||
redland? ( dev-libs/redland-bindings[python] )
|
||||
sqlite? ( || ( dev-lang/python:2.7[sqlite] dev-lang/python:2.6[sqlite]
|
||||
dev-lang/python:2.5[sqlite] dev-python/pysqlite ) )"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools"
|
||||
|
||||
src_test() {
|
||||
distutils_src_test --py3where='build/src'
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins -r examples/*
|
||||
fi
|
||||
}
|
@ -1,41 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/rdflib/rdflib-3.2.2.ebuild,v 1.2 2012/10/07 00:46:43 floppym Exp $
|
||||
|
||||
EAPI="4"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="*-pypy-*"
|
||||
DISTUTILS_SRC_TEST="nosetests"
|
||||
|
||||
inherit distutils
|
||||
|
||||
DESCRIPTION="RDF library containing a triple store and parser/serializer"
|
||||
HOMEPAGE="https://github.com/RDFLib/rdflib http://pypi.python.org/pypi/rdflib"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="berkdb examples mysql redland sqlite"
|
||||
|
||||
RDEPEND="dev-python/isodate
|
||||
berkdb? ( dev-python/bsddb3 )
|
||||
mysql? ( dev-python/mysql-python )
|
||||
redland? ( dev-libs/redland-bindings[python] )
|
||||
sqlite? ( || ( dev-lang/python:2.7[sqlite] dev-lang/python:2.6[sqlite]
|
||||
dev-lang/python:2.5[sqlite] dev-python/pysqlite ) )"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools"
|
||||
|
||||
src_test() {
|
||||
distutils_src_test --py3where='build/src'
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins -r examples/*
|
||||
fi
|
||||
}
|
@ -1,48 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/rdflib/rdflib-4.0.1.ebuild,v 1.5 2014/08/13 17:47:38 blueness Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
|
||||
PYTHON_REQ_USE="sqlite?"
|
||||
DISTUTILS_NO_PARALLEL_BUILD=true
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="RDF library containing a triple store and parser/serializer"
|
||||
HOMEPAGE="https://github.com/RDFLib/rdflib http://pypi.python.org/pypi/rdflib"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="berkdb examples mysql redland sqlite test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/isodate[${PYTHON_USEDEP}]
|
||||
dev-python/html5lib[$(python_gen_usedep 'python2*')]
|
||||
dev-python/pyparsing[${PYTHON_USEDEP}]
|
||||
berkdb? ( dev-python/bsddb3[${PYTHON_USEDEP}] )
|
||||
mysql? ( dev-python/mysql-python[$(python_gen_usedep 'python2*')] )
|
||||
redland? ( dev-libs/redland-bindings[python] )"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/sparql-wrapper[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_prepare_all() {
|
||||
# Upstream manufactured .pyc files which promptly break distutils' src_test
|
||||
find -name "*.py[oc~]" -delete || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
https://github.com/RDFLib/rdflib/issues/306
|
||||
PYTHONPATH=. nosetests --verbosity=3 --py3where='build/src' || die "Tests failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use examples && local EXAMPLES=( examples/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,48 +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/rdflib/rdflib-4.0.ebuild,v 1.2 2013/09/06 16:19:17 floppym Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
|
||||
PYTHON_USE_WITH="sqlite?"
|
||||
DISTUTILS_NO_PARALLEL_BUILD=true
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="RDF library containing a triple store and parser/serializer"
|
||||
HOMEPAGE="https://github.com/RDFLib/rdflib http://pypi.python.org/pypi/rdflib"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="berkdb examples mysql redland sqlite test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/isodate[${PYTHON_USEDEP}]
|
||||
berkdb? ( dev-python/bsddb3 )
|
||||
mysql? ( dev-python/mysql-python[$(python_gen_usedep 'python2*')] )
|
||||
redland? ( dev-libs/redland-bindings[python] )"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools
|
||||
test? ( dev-python/sparql-wrapper[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_prepare_all() {
|
||||
# Upstream manufactured .pyc files which promptly break distutils' src_test
|
||||
find -name "*.py[oc~]" -delete || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
nosetests --verbosity=3 --py3where='build/src' || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins -r examples/*
|
||||
fi
|
||||
}
|
@ -1,48 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/rdflib/rdflib-4.1.0.ebuild,v 1.2 2014/08/13 17:47:38 blueness Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
|
||||
PYTHON_REQ_USE="sqlite?"
|
||||
DISTUTILS_NO_PARALLEL_BUILD=true
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="RDF library containing a triple store and parser/serializer"
|
||||
HOMEPAGE="https://github.com/RDFLib/rdflib http://pypi.python.org/pypi/rdflib"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="berkdb examples mysql redland sqlite test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/isodate[${PYTHON_USEDEP}]
|
||||
dev-python/html5lib[$(python_gen_usedep 'python2*')]
|
||||
dev-python/pyparsing[${PYTHON_USEDEP}]
|
||||
berkdb? ( dev-python/bsddb3[${PYTHON_USEDEP}] )
|
||||
mysql? ( dev-python/mysql-python[$(python_gen_usedep 'python2*')] )
|
||||
redland? ( dev-libs/redland-bindings[python] )"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/sparql-wrapper[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_prepare_all() {
|
||||
# Upstream manufactured .pyc files which promptly break distutils' src_test
|
||||
find -name "*.py[oc~]" -delete || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
https://github.com/RDFLib/rdflib/issues/306
|
||||
PYTHONPATH=. nosetests --verbosity=3 --py3where='build/src' || die "Tests failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use examples && local EXAMPLES=( examples/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,55 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/rdflib/rdflib-4.1.1.ebuild,v 1.2 2014/08/13 17:47:38 blueness Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
|
||||
PYTHON_REQ_USE="sqlite?"
|
||||
DISTUTILS_NO_PARALLEL_BUILD=true
|
||||
# The usual required for tests
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="RDF library containing a triple store and parser/serializer"
|
||||
HOMEPAGE="https://github.com/RDFLib/rdflib http://pypi.python.org/pypi/rdflib"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="berkdb examples mysql redland sqlite test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/isodate[${PYTHON_USEDEP}]
|
||||
dev-python/html5lib[$(python_gen_usedep 'python2*')]
|
||||
dev-python/pyparsing[${PYTHON_USEDEP}]
|
||||
berkdb? ( dev-python/bsddb3[${PYTHON_USEDEP}] )
|
||||
mysql? ( dev-python/mysql-python[$(python_gen_usedep 'python2*')] )
|
||||
redland? ( dev-libs/redland-bindings[python] )"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/sparql-wrapper[${PYTHON_USEDEP}]
|
||||
>=dev-python/nose-1.3.1-r1[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_prepare_all() {
|
||||
# Upstream manufactured .pyc files which promptly break distutils' src_test
|
||||
find -name "*.py[oc~]" -delete || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
if python_is_python3; then
|
||||
pushd "${BUILD_DIR}/src/" > /dev/null
|
||||
"${PYTHON}" ./run_tests.py || die "Tests failed under ${EPYTHON}"
|
||||
popd > /dev/null
|
||||
else
|
||||
"${PYTHON}" ./run_tests.py || die "Tests failed under ${EPYTHON}"
|
||||
fi
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use examples && local EXAMPLES=( examples/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-conch/twisted-conch-14.0.2.ebuild,v 1.1 2014/11/18 03:18:47 patrick Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit twisted-r1
|
||||
|
||||
DESCRIPTION="Twisted SSHv2 implementation"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
=dev-python/twisted-core-${TWISTED_RELEASE}*[${PYTHON_USEDEP}]
|
||||
dev-python/pyasn1[${PYTHON_USEDEP}]
|
||||
dev-python/pycrypto[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
@ -0,0 +1,127 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-core/twisted-core-14.0.2.ebuild,v 1.1 2014/11/18 03:19:34 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit eutils flag-o-matic twisted-r1
|
||||
|
||||
DESCRIPTION="An asynchronous networking framework written in Python"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~x86 ~x86-fbsd ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="crypt gtk serial test"
|
||||
|
||||
RDEPEND=">=net-zope/zope-interface-3.6.0[${PYTHON_USEDEP}]
|
||||
crypt? ( >=dev-python/pyopenssl-0.10[${PYTHON_USEDEP}]
|
||||
dev-python/service_identity[${PYTHON_USEDEP}] )
|
||||
gtk? ( dev-python/pygtk:2[${PYTHON_USEDEP}] )
|
||||
serial? ( dev-python/pyserial[${PYTHON_USEDEP}] )"
|
||||
DEPEND="test? ( ${RDEPEND} )"
|
||||
|
||||
PATCHES=(
|
||||
# Give a load-sensitive test a better chance of succeeding.
|
||||
"${FILESDIR}/${PN}-2.1.0-echo-less.patch"
|
||||
|
||||
# Skip a test if twisted conch is not available
|
||||
# (see Twisted ticket #5703)
|
||||
"${FILESDIR}/${PN}-12.1.0-remove-tests-conch-dependency.patch"
|
||||
|
||||
# Respect TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE variable.
|
||||
"${FILESDIR}/${PN}-9.0.0-respect_TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE.patch"
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
if [[ "${EUID}" -eq 0 ]]; then
|
||||
# Disable tests failing with root permissions.
|
||||
sed \
|
||||
-e "s/test_newPluginsOnReadOnlyPath/_&/" \
|
||||
-e "s/test_deployedMode/_&/" \
|
||||
-i twisted/test/test_plugin.py
|
||||
fi
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
local CFLAGS CXXFLAGS
|
||||
|
||||
if ! python_is_python3; then
|
||||
# Needed to make the sendmsg extension work
|
||||
# (see http://twistedmatrix.com/trac/ticket/5701 )
|
||||
append-flags -fno-strict-aliasing
|
||||
fi
|
||||
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
distutils_install_for_testing
|
||||
|
||||
pushd "${TEST_DIR}"/lib > /dev/null || die
|
||||
|
||||
# Skip broken tests.
|
||||
|
||||
# http://twistedmatrix.com/trac/ticket/5375
|
||||
sed -e "/class ZshIntegrationTestCase/,/^$/d" -i twisted/scripts/test/test_scripts.py \
|
||||
|| die "sed failed"
|
||||
|
||||
# Prevent it from pulling in plugins from already installed twisted packages.
|
||||
rm -f twisted/plugins/__init__.py
|
||||
|
||||
# An empty file doesn't work because the tests check for doc strings in all packages.
|
||||
echo "'''plugins stub'''" > twisted/plugins/__init__.py || die
|
||||
|
||||
# https://twistedmatrix.com/trac/ticket/6920 6921
|
||||
# Just re-exposing them to list a full list of deficits
|
||||
# sed -e 's:test_basicOperation:_&:' -i twisted/scripts/test/test_tap2deb.py || die
|
||||
# sed -e 's:test_inspectCertificate:_&:' -i twisted/test/test_sslverify.py || die
|
||||
|
||||
# Requires twisted-web, twisted-lore and twisted-names, creating a circ. dep and fail even if installed.
|
||||
# test_loreDeprecation and test_exist failures appeared in version 14.0.0.
|
||||
# Possibly due to over taxing of the distutils_install_for_testing function
|
||||
rm -f twisted/python/test/test_release.py || die
|
||||
sed -e 's:test_loreDeprecation:_&:' -i twisted/test/test_twisted.py || die
|
||||
sed -e 's:test_exist:_&:' -i twisted/python/test/test_dist3.py || die
|
||||
|
||||
# Requires connection to the network
|
||||
sed -e 's:test_multiListen:_&:' -i twisted/test/test_udp.py || die
|
||||
|
||||
# Appeared in version 14.0.0; https://twistedmatrix.com/trac/ticket/7422; known failures
|
||||
# Upstream somewhat unreceptive
|
||||
# The last of these invokes a hang or a long delay
|
||||
sed -e 's:test_dataReceivedThrows:_&:' \
|
||||
-e 's:test_resumeProducingThrows:_&:' \
|
||||
-e 's:test_resumeProducingAbortLater:_&:' \
|
||||
-e 's:test_resumeProducingAbort:_&:' \
|
||||
-e 's:test_fullWriteBufferAfterByteExchange:_&:' \
|
||||
-i twisted/internet/test/test_tcp.py || die
|
||||
sed -e 's:test_logPrefix:_&:' -i twisted/internet/test/connectionmixins.py || die
|
||||
|
||||
if ! "${TEST_DIR}"/scripts/trial twisted; then
|
||||
die "Tests failed with ${EPYTHON}"
|
||||
fi
|
||||
|
||||
popd > /dev/null || die
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
|
||||
cd "${D%/}$(python_get_sitedir)" || die
|
||||
|
||||
# create 'Twisted' egg wrt bug #299736
|
||||
local egg=( Twisted_Core*.egg-info )
|
||||
[[ -f ${egg[0]} ]] || die "Twisted_Core*.egg-info not found"
|
||||
ln -s "${egg[0]}" "${egg[0]/_Core/}" || die
|
||||
|
||||
# own the dropin.cache so we don't leave orphans
|
||||
touch twisted/plugins/dropin.cache || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
newconfd "${FILESDIR}/twistd.conf" twistd
|
||||
newinitd "${FILESDIR}/twistd.init" twistd
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-lore/twisted-lore-14.0.2.ebuild,v 1.1 2014/11/18 03:20:20 patrick Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit twisted-r1
|
||||
|
||||
DESCRIPTION="Twisted documentation system"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="=dev-python/twisted-core-${TWISTED_RELEASE}*[${PYTHON_USEDEP}]
|
||||
=dev-python/twisted-web-${TWISTED_RELEASE}*[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
@ -0,0 +1,17 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-mail/twisted-mail-14.0.2.ebuild,v 1.1 2014/11/18 03:21:04 patrick Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit twisted-r1
|
||||
|
||||
DESCRIPTION="A Twisted Mail library, server and client"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="=dev-python/twisted-core-${TWISTED_RELEASE}*[${PYTHON_USEDEP}]
|
||||
=dev-python/twisted-names-${TWISTED_RELEASE}*[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
@ -0,0 +1,16 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-names/twisted-names-14.0.2.ebuild,v 1.1 2014/11/18 03:21:49 patrick Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit twisted-r1
|
||||
|
||||
DESCRIPTION="A Twisted DNS implementation"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="=dev-python/twisted-core-${TWISTED_RELEASE}*[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
@ -0,0 +1,17 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-news/twisted-news-14.0.2.ebuild,v 1.1 2014/11/18 03:22:34 patrick Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit twisted-r1
|
||||
|
||||
DESCRIPTION="Twisted News is an NNTP server and programming library"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="=dev-python/twisted-core-${TWISTED_RELEASE}*[${PYTHON_USEDEP}]
|
||||
=dev-python/twisted-mail-${TWISTED_RELEASE}*[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-pair/twisted-pair-14.0.2.ebuild,v 1.1 2014/11/18 03:23:09 patrick Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit twisted-r1
|
||||
|
||||
DESCRIPTION="Twisted low-level networking"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="=dev-python/twisted-core-${TWISTED_RELEASE}*[${PYTHON_USEDEP}]
|
||||
dev-python/eunuchs[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
# https://twistedmatrix.com/trac/ticket/7433
|
||||
PATCHES=( "${FILESDIR}"/14.0.0-tests.patch )
|
@ -0,0 +1,16 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-runner/twisted-runner-14.0.2.ebuild,v 1.1 2014/11/18 03:23:54 patrick Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit twisted-r1
|
||||
|
||||
DESCRIPTION="Twisted Runner is a process management library and inetd replacement"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="=dev-python/twisted-core-${TWISTED_RELEASE}*[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-web/twisted-web-14.0.2.ebuild,v 1.1 2014/11/18 03:24:40 patrick Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit twisted-r1
|
||||
|
||||
MY_PN="TwistedWeb"
|
||||
DESCRIPTION="Twisted web server, programmable in Python"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="soap"
|
||||
|
||||
DEPEND="=dev-python/twisted-core-${TWISTED_RELEASE}*[${PYTHON_USEDEP}]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
soap? ( dev-python/soappy[${PYTHON_USEDEP}] )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
python_prepare_all() {
|
||||
if [[ "${EUID}" -eq 0 ]]; then
|
||||
# Disable tests failing with root permissions.
|
||||
sed -e "s/test_forbiddenResource/_&/" -i twisted/web/test/test_static.py
|
||||
sed -e "s/testDownloadPageError3/_&/" -i twisted/web/test/test_webclient.py
|
||||
fi
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
# testsuite has a PYTHONPATH oddity, currently appears to require a system install to effectively import,
|
||||
# putting in question as to whether it is a testsuite
|
@ -0,0 +1,17 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-words/twisted-words-14.0.2.ebuild,v 1.1 2014/11/18 03:25:26 patrick Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit twisted-r1
|
||||
|
||||
DESCRIPTION="Twisted Words contains Instant Messaging implementations"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="=dev-python/twisted-core-${TWISTED_RELEASE}*[${PYTHON_USEDEP}]
|
||||
=dev-python/twisted-web-${TWISTED_RELEASE}*[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
@ -1,3 +1,6 @@
|
||||
DIST rails-3.2.20.tgz 3567367 SHA256 373e66ad1ea7af66504e676b0925806a20532673e2d9da7fa0131aa0559dad5c SHA512 2f39d14c1543e203a6e182528967bfa00d08a29872fd233022e2c3bd6e1a1d4cac754016258c1d7f5f821942e83d5c0f4df39a8c4fa4d5d7ba135f79bcda26a3 WHIRLPOOL e011cccc18a74ed924368077a90e43b14824e460f0d05fbe4c1a4a3092df2fb63808c148190b0f4920bf60ea94fd1be5f56f0d628e8afaf431fb9ba702fa6f71
|
||||
DIST rails-3.2.21.tgz 3568729 SHA256 95dcf2a848a7fd09acbb12c47e6901baeea08645c32c37e2ae04e2650cf01deb SHA512 952c799736dd2a48532a4340d97ffbbbdc2451fc509e7f86ca47c09f5c6a3f4e5cb9b87c3e803692bc8a810bc178513bbe74f3037fdf8f786c30f0c85dd26948 WHIRLPOOL a2c79df0091ea0ca6f3969a91b4d73c14f79cab9d31ec30591a640321487aedafd0318326080ad4d9be0523002eab2c3c5e9e49b2c6b0b5ef6f5dac8da0bfab5
|
||||
DIST rails-4.0.11.tgz 3759423 SHA256 cb44b605bc0e6477c9cf389f9c6a8274de10de6a98f979a53ef8505b7eed9e33 SHA512 a38eee261aa76070417ea248ac8f79536f19a75e5ee4bf16ae59f1eff5a9c751b033257a5cdbd1cfdcd80796142ef2ea1f8b2be5cc73604e96759fe2979f9b41 WHIRLPOOL e4b52b5f3d3ddae13ce4aefa1f5890813370de7874e8c5edce1e4f1df32704782babe52013dfa96cf4e60327429602f7b9534af2c19a9ef269d179186a8e1b62
|
||||
DIST rails-4.0.12.tgz 3760696 SHA256 bfa46d6fc75b0d919831f837bfcdc13ced1d893b3e09ff168e6c401f0eb2c16f SHA512 7c405ac4da32b941e06d1761dbd1afb4cbb9389b4b97baac51bd0064c8ff8d2f300109683f2785d4bd3a4593aa21c8e92c8bdb190e5d6d8a96e7793e776da6cf WHIRLPOOL 42ddb51fdf30160206b76d2d3944ad670a1e91ab7be14179d61b04637188cfdd339369b24c97cbd688e7335aacf726ddceba2fee08bdedb52b267f33f5a4e805
|
||||
DIST rails-4.1.7.tgz 3708137 SHA256 c57a1bf954c4725649b9d11f893c3f6c81de77b36d7f8065d5d0a87fb7cf18e1 SHA512 6fd29ba7b552ec29225ebcb7df78d6043383f36e4c6b1e66880b0bae69bd9f9ae36b1bc63700a8e491818b495087944c990d34d33b6ee566182e2f38370ac0d0 WHIRLPOOL 0a53c4936a9792cebb98b997cafad30f895a908c169d9e8a8d370e3da55a2ba17d594b03e2dbf6a6181fafddc75697d50b0f0e57f44868ac00b4deceda03d5af
|
||||
DIST rails-4.1.8.tgz 3711426 SHA256 419e7cdd8e7fd2b2d45d3a37fb37f01b70ada51db77ca116f83636711d845814 SHA512 140a58c1baa39f89e383c9ef7db22702b7703f4c978937e80c0e336ab5fe1a45d3720d25416f165bfe74ec16453098393a434c3c031522594c37fc13f7e80e48 WHIRLPOOL a3ffcb86a8c482f02cc541f790a0aa8e837864bd7dae2ea91b8dad22e0840d8bd399caa7f59990bd3c5437d35aa1ff8cf45c098eed66d54374da8a17761f19e2
|
||||
|
@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/actionmailer/actionmailer-3.2.21.ebuild,v 1.1 2014/11/17 20:19:39 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="actionmailer.gemspec"
|
||||
|
||||
inherit ruby-fakegem versionator
|
||||
|
||||
DESCRIPTION="Framework for designing email-service layers"
|
||||
HOMEPAGE="https://github.com/rails/rails"
|
||||
SRC_URI="http://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
RUBY_S="rails-${PV}/${PN}"
|
||||
|
||||
ruby_add_rdepend "~dev-ruby/actionpack-${PV}
|
||||
>=dev-ruby/mail-2.5.4:2.5"
|
||||
ruby_add_bdepend "test? (
|
||||
dev-ruby/bundler
|
||||
dev-ruby/mocha:0.13
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Remove items from the common Gemfile that we don't need for this
|
||||
# test run. This also requires handling some gemspecs.
|
||||
sed -i -e "/\(system_timer\|sdoc\|w3c_validators\|pg\|mysql\|jquery-rails\|'mysql'\|journey\|ruby-prof\|benchmark-ips\|nokogiri\|bcrypt-ruby\|rdoc\)/d" ../Gemfile || die
|
||||
sed -i -e '/rack-ssl/d' -e 's/~> 3.4/>= 3.4/' ../railties/railties.gemspec || die
|
||||
}
|
@ -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-ruby/actionmailer/actionmailer-4.0.12.ebuild,v 1.1 2014/11/17 20:19:39 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20 ruby21"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="actionmailer.gemspec"
|
||||
|
||||
inherit ruby-fakegem versionator
|
||||
|
||||
DESCRIPTION="Framework for designing email-service layers"
|
||||
HOMEPAGE="https://github.com/rails/rails"
|
||||
SRC_URI="http://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RUBY_S="rails-${PV}/${PN}"
|
||||
|
||||
ruby_add_rdepend "~dev-ruby/actionpack-${PV}
|
||||
>=dev-ruby/mail-2.5.4:2.5"
|
||||
ruby_add_bdepend "test? (
|
||||
dev-ruby/bundler
|
||||
dev-ruby/mocha:0.13
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Remove items from the common Gemfile that we don't need for this
|
||||
# test run. This also requires handling some gemspecs.
|
||||
sed -i -e "/\(uglifier\|system_timer\|sdoc\|w3c_validators\|pg\|jquery-rails\|'mysql'\|journey\|ruby-prof\|benchmark-ips\|kindlerb\|turbolinks\|coffee-rails\|debugger\|redcarpet\)/d" ../Gemfile || die
|
||||
sed -i -e '/rack-ssl/d' -e 's/~> 3.4/>= 3.4/' ../railties/railties.gemspec || die
|
||||
|
||||
# Add json to Gemfile to fix mime-types not doing this itself.
|
||||
sed -e '5igem "json"' -i ../Gemfile || die
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/actionmailer/actionmailer-4.1.8.ebuild,v 1.1 2014/11/17 20:19:39 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20 ruby21"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="actionmailer.gemspec"
|
||||
|
||||
inherit ruby-fakegem versionator
|
||||
|
||||
DESCRIPTION="Framework for designing email-service layers"
|
||||
HOMEPAGE="https://github.com/rails/rails"
|
||||
SRC_URI="http://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64"
|
||||
IUSE=""
|
||||
|
||||
RUBY_S="rails-${PV}/${PN}"
|
||||
|
||||
ruby_add_rdepend "~dev-ruby/actionpack-${PV}
|
||||
>=dev-ruby/mail-2.5.4:2.5"
|
||||
ruby_add_bdepend "test? (
|
||||
dev-ruby/test-unit:2
|
||||
dev-ruby/mocha:0.14
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Set test environment to our hand.
|
||||
rm "${S}/../Gemfile" || die "Unable to remove Gemfile"
|
||||
sed -i -e '/\/load_paths/d' test/abstract_unit.rb || die "Unable to remove load paths"
|
||||
|
||||
# Make sure we use the test-unit gem since ruby18 does not provide
|
||||
# all the test-unit features needed.
|
||||
sed -i -e '1igem "test-unit"' test/abstract_unit.rb || die
|
||||
|
||||
# Avoid a test failing only on attachment ordering, since this is a
|
||||
# security release.
|
||||
sed -i -e '/adding inline attachments while rendering mail works/askip "gentoo: fails on ordering"' test/base_test.rb || die
|
||||
}
|
@ -1,3 +1,6 @@
|
||||
DIST rails-3.2.20.tgz 3567367 SHA256 373e66ad1ea7af66504e676b0925806a20532673e2d9da7fa0131aa0559dad5c SHA512 2f39d14c1543e203a6e182528967bfa00d08a29872fd233022e2c3bd6e1a1d4cac754016258c1d7f5f821942e83d5c0f4df39a8c4fa4d5d7ba135f79bcda26a3 WHIRLPOOL e011cccc18a74ed924368077a90e43b14824e460f0d05fbe4c1a4a3092df2fb63808c148190b0f4920bf60ea94fd1be5f56f0d628e8afaf431fb9ba702fa6f71
|
||||
DIST rails-3.2.21.tgz 3568729 SHA256 95dcf2a848a7fd09acbb12c47e6901baeea08645c32c37e2ae04e2650cf01deb SHA512 952c799736dd2a48532a4340d97ffbbbdc2451fc509e7f86ca47c09f5c6a3f4e5cb9b87c3e803692bc8a810bc178513bbe74f3037fdf8f786c30f0c85dd26948 WHIRLPOOL a2c79df0091ea0ca6f3969a91b4d73c14f79cab9d31ec30591a640321487aedafd0318326080ad4d9be0523002eab2c3c5e9e49b2c6b0b5ef6f5dac8da0bfab5
|
||||
DIST rails-4.0.11.tgz 3759423 SHA256 cb44b605bc0e6477c9cf389f9c6a8274de10de6a98f979a53ef8505b7eed9e33 SHA512 a38eee261aa76070417ea248ac8f79536f19a75e5ee4bf16ae59f1eff5a9c751b033257a5cdbd1cfdcd80796142ef2ea1f8b2be5cc73604e96759fe2979f9b41 WHIRLPOOL e4b52b5f3d3ddae13ce4aefa1f5890813370de7874e8c5edce1e4f1df32704782babe52013dfa96cf4e60327429602f7b9534af2c19a9ef269d179186a8e1b62
|
||||
DIST rails-4.0.12.tgz 3760696 SHA256 bfa46d6fc75b0d919831f837bfcdc13ced1d893b3e09ff168e6c401f0eb2c16f SHA512 7c405ac4da32b941e06d1761dbd1afb4cbb9389b4b97baac51bd0064c8ff8d2f300109683f2785d4bd3a4593aa21c8e92c8bdb190e5d6d8a96e7793e776da6cf WHIRLPOOL 42ddb51fdf30160206b76d2d3944ad670a1e91ab7be14179d61b04637188cfdd339369b24c97cbd688e7335aacf726ddceba2fee08bdedb52b267f33f5a4e805
|
||||
DIST rails-4.1.7.tgz 3708137 SHA256 c57a1bf954c4725649b9d11f893c3f6c81de77b36d7f8065d5d0a87fb7cf18e1 SHA512 6fd29ba7b552ec29225ebcb7df78d6043383f36e4c6b1e66880b0bae69bd9f9ae36b1bc63700a8e491818b495087944c990d34d33b6ee566182e2f38370ac0d0 WHIRLPOOL 0a53c4936a9792cebb98b997cafad30f895a908c169d9e8a8d370e3da55a2ba17d594b03e2dbf6a6181fafddc75697d50b0f0e57f44868ac00b4deceda03d5af
|
||||
DIST rails-4.1.8.tgz 3711426 SHA256 419e7cdd8e7fd2b2d45d3a37fb37f01b70ada51db77ca116f83636711d845814 SHA512 140a58c1baa39f89e383c9ef7db22702b7703f4c978937e80c0e336ab5fe1a45d3720d25416f165bfe74ec16453098393a434c3c031522594c37fc13f7e80e48 WHIRLPOOL a3ffcb86a8c482f02cc541f790a0aa8e837864bd7dae2ea91b8dad22e0840d8bd399caa7f59990bd3c5437d35aa1ff8cf45c098eed66d54374da8a17761f19e2
|
||||
|
@ -0,0 +1,77 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/actionpack/actionpack-3.2.21.ebuild,v 1.1 2014/11/17 20:19:20 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby19 ruby20"
|
||||
|
||||
# The default test task tries to test activerecord with SQLite as well.
|
||||
RUBY_FAKEGEM_TASK_TEST="test_action_pack"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_DOCDIR="doc"
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="actionpack.gemspec"
|
||||
|
||||
inherit ruby-fakegem versionator
|
||||
|
||||
DESCRIPTION="Eases web-request routing, handling, and response"
|
||||
HOMEPAGE="https://github.com/rails/rails"
|
||||
SRC_URI="http://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
RUBY_S="rails-${PV}/${PN}"
|
||||
|
||||
ruby_add_rdepend "
|
||||
~dev-ruby/activemodel-${PV}
|
||||
~dev-ruby/activesupport-${PV}
|
||||
>=dev-ruby/rack-cache-1.2
|
||||
>=dev-ruby/builder-3.0.0:3
|
||||
>=dev-ruby/rack-1.4.5:1.4
|
||||
>=dev-ruby/rack-test-0.6.1:0.6
|
||||
>=dev-ruby/journey-1.0.4:1.0
|
||||
>=dev-ruby/sprockets-2.2.1:2.2
|
||||
>=dev-ruby/erubis-2.7.0"
|
||||
|
||||
ruby_add_bdepend "
|
||||
test? (
|
||||
dev-ruby/mocha:0.13
|
||||
dev-ruby/bundler
|
||||
~dev-ruby/activerecord-${PV}
|
||||
~dev-ruby/actionmailer-${PV}
|
||||
>=dev-ruby/tzinfo-0.3.29:0
|
||||
>=dev-ruby/uglifier-1.0.3
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Remove items from the common Gemfile that we don't need for this
|
||||
# test run. This also requires handling some gemspecs.
|
||||
sed -i -e "/\(system_timer\|sdoc\|w3c_validators\|pg\|jquery-rails\|'mysql'\|journey\|ruby-prof\|benchmark-ips\|nokogiri\)/d" ../Gemfile || die
|
||||
|
||||
sed -i -e '/rack-ssl/d' -e 's/~> 3.4/>= 3.4/' ../railties/railties.gemspec || die
|
||||
sed -i -e '/mail/d' ../actionmailer/actionmailer.gemspec || die
|
||||
|
||||
sed -i -e '/bcrypt/ s/3.0.0/3.0/' ../Gemfile || die
|
||||
|
||||
# Avoid fragile tests depending on hash ordering
|
||||
sed -i -e '/cookie_3=chocolate/ s:^:#:' test/controller/integration_test.rb || die
|
||||
sed -i -e '/test_to_s/,/end/ s:^:#:' test/template/html-scanner/tag_node_test.rb || die
|
||||
sed -i -e '/"name":"david"/ s:^:#:' test/controller/mime_responds_test.rb || die
|
||||
sed -i -e '/test_option_html_attributes_with_multiple_element_hash/, / end/ s:^:#:' test/template/form_options_helper_test.rb || die
|
||||
sed -i -e '/test_option_html_attributes_with_multiple_hashes/, / end/ s:^:#:' test/template/form_options_helper_test.rb || die
|
||||
|
||||
# Avoid fragile test that gets more output than it expects.
|
||||
sed -i -e '/test_locals_option_to_assert_template_is_not_supported/,/end/ s:^:#:' test/controller/render_test.rb || die
|
||||
|
||||
# Avoid test broken by security updates in i18n.
|
||||
sed -i -e '/test_number_to_i18n_currency/,/end/ s:^:#:' test/template/number_helper_i18n_test.rb || die
|
||||
|
||||
# Avoid test that chokes on bad UTF-8.
|
||||
sed -i -e '/test_handles_urls_with_bad_encoding/askip "gentoo"' test/dispatch/static_test.rb || die
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/actionpack/actionpack-4.0.12.ebuild,v 1.1 2014/11/17 20:19:20 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby19 ruby20 ruby21"
|
||||
|
||||
# The default test task tries to test activerecord with SQLite as well.
|
||||
RUBY_FAKEGEM_TASK_TEST="test_action_pack"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_DOCDIR="doc"
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="actionpack.gemspec"
|
||||
|
||||
inherit ruby-fakegem versionator
|
||||
|
||||
DESCRIPTION="Eases web-request routing, handling, and response"
|
||||
HOMEPAGE="http://rubyforge.org/projects/actionpack/"
|
||||
SRC_URI="http://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RUBY_S="rails-${PV}/${PN}"
|
||||
|
||||
ruby_add_rdepend "
|
||||
~dev-ruby/activesupport-${PV}
|
||||
>=dev-ruby/builder-3.1.0:3.1
|
||||
>=dev-ruby/rack-1.5.2:1.5
|
||||
>=dev-ruby/rack-test-0.6.2:0.6
|
||||
>=dev-ruby/erubis-2.7.0"
|
||||
|
||||
ruby_add_bdepend "
|
||||
test? (
|
||||
dev-ruby/mocha:0.13
|
||||
dev-ruby/bundler
|
||||
~dev-ruby/activemodel-${PV}
|
||||
~dev-ruby/activerecord-${PV}
|
||||
~dev-ruby/actionmailer-${PV}
|
||||
dev-ruby/sprockets-rails:2.0
|
||||
>=dev-ruby/tzinfo-0.3.37:0
|
||||
>=dev-ruby/uglifier-1.0.3
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Remove items from the common Gemfile that we don't need for this
|
||||
# test run. This also requires handling some gemspecs.
|
||||
sed -i -e "/\(system_timer\|sdoc\|w3c_validators\|pg\|jquery-rails\|'mysql'\|journey\|ruby-prof\|benchmark-ips\|kindlerb\|turbolinks\|coffee-rails\|debugger\|sprockets-rails\|redcarpet\)/d" ../Gemfile || die
|
||||
|
||||
sed -i -e '/rack-ssl/d' -e 's/~> 3.4/>= 3.4/' ../railties/railties.gemspec || die
|
||||
sed -i -e '/mail/d' ../actionmailer/actionmailer.gemspec || die
|
||||
|
||||
sed -i -e '/bcrypt/ s/3.0.0/3.0/' ../Gemfile || die
|
||||
|
||||
# Add back json in the Gemfile because we dropped some dependencies
|
||||
# earlier that implicitly required it.
|
||||
sed -i -e '$agem "json"' ../Gemfile || die
|
||||
|
||||
# Avoid fragile test that gets more output than it expects.
|
||||
sed -i -e '/test_locals_option_to_assert_template_is_not_supported/,/end/ s:^:#:' test/controller/render_test.rb || die
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/actionpack/actionpack-4.1.8.ebuild,v 1.1 2014/11/17 20:19:20 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby19 ruby20 ruby21"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_DOCDIR="doc"
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="actionpack.gemspec"
|
||||
|
||||
inherit ruby-fakegem versionator
|
||||
|
||||
DESCRIPTION="Eases web-request routing, handling, and response"
|
||||
HOMEPAGE="http://rubyforge.org/projects/actionpack/"
|
||||
SRC_URI="http://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64"
|
||||
IUSE=""
|
||||
|
||||
RUBY_S="rails-${PV}/${PN}"
|
||||
|
||||
ruby_add_rdepend "
|
||||
~dev-ruby/activesupport-${PV}
|
||||
~dev-ruby/actionview-${PV}
|
||||
>=dev-ruby/rack-1.5.2:1.5
|
||||
>=dev-ruby/rack-test-0.6.2:0.6"
|
||||
|
||||
ruby_add_bdepend "
|
||||
test? (
|
||||
dev-ruby/mocha:0.14
|
||||
dev-ruby/bundler
|
||||
~dev-ruby/activemodel-${PV}
|
||||
>=dev-ruby/rack-cache-1.2:1.2
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Remove items from the common Gemfile that we don't need for this
|
||||
# test run. This also requires handling some gemspecs.
|
||||
sed -i -e "/\(system_timer\|sdoc\|w3c_validators\|pg\|jquery-rails\|'mysql'\|journey\|ruby-prof\|benchmark-ips\|kindlerb\|turbolinks\|coffee-rails\|debugger\|sprockets-rails\|redcarpet\|bcrypt\|uglifier\|minitest\)/ s:^:#:" ../Gemfile || die
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue