parent
8d62f2b675
commit
1e7652487c
@ -1,5 +1,5 @@
|
||||
DIST eselect-1.2.15.tar.bz2 169358 SHA256 fa8e3b2af2bc4a951ddb6067ba1e786a04681555ab7e83d50d4eb85047f2e7d7 SHA512 228b1a3a8e8fee6ede929c8d36532ca58537ea59f1e9d055c9ca49049949ffc76dde2c04d684c63ec2df451bda5f0ee3d38e3a1c56d13f671be88f0f9fbb3dee WHIRLPOOL b4972c570038c2e27e61002ba008d17eeab102316cb49e1118b02387b14b9f4cc1b6032ed0654c6ba4f8f60eb15dea0677e147cd47137b93c9f66832339649af
|
||||
DIST eselect-1.2.18.tar.bz2 170120 SHA256 68581af8f7ca427dbd726b766071c833918fb5ae25ad03224def7e1599297b3c SHA512 e73c2503163e4c3400885ada32d4c7a4a2a511d7747c9add92522a9f3117eff6174092310ee0b5d56fb25546d11a881c643e00ef653d00d58e07a7742a1b5004 WHIRLPOOL 37b1bf6917b8e3dff48153a0c7af72d0b991392de79c95e3dcf484ed98077e20626ff967d6a0887167ec77536e12ac3fc4699e2d1b9f1d2c6fdce81f3218ef4d
|
||||
DIST eselect-1.3.1.tar.xz 163908 SHA256 4fc1c3f1b021dd8d28475ab2115f6a2de843bbbb941a0f70999389d1e0d56444 SHA512 b62e3e9f9c145a92625d136ea14ffa9705fa312971160ee3bb33f285dd67f6e6f415c7b9909b902b872500663a7a79c6fe53f52d179de7b7e120c5de994effd3 WHIRLPOOL a04a20c25617c3a53b0937c7f01f6dc89677beb5e1917a8d078a7f4403d4d77b7342da47766a061bc9158962ada190901db5b99d4b9603c49d9b90d3ad57feb5
|
||||
DIST eselect-1.3.2.tar.xz 164168 SHA256 8b3906133090229defd6c5017fac0049e14cc0a5185c479cb3e6155a71827a78 SHA512 3225ce8b4313ae15bc7be8f047b29a202976c4a8766005487b78031a0e11e6395da55d74a961b022685126b397f8811babd3ee6580e8ba94e1ddd117964207e5 WHIRLPOOL 94917cad340ab697a35d0b3d4e80e95a6d764829692d54e0ee17fdef84c847aa35da10174352b0d4ffd8f541bbf0280e4b63790a276789a66463d2c8a1a245b0
|
||||
DIST eselect-1.3.3.tar.xz 164872 SHA256 09132a0e7512da5c0e5907d04736445101c83b0dd0e6283374ebbc9d76bf6b74 SHA512 480c9c0cd844471b84b2e44440b23ab7538cb6ecb953648ea63057d65ac0f475f057294313f00d3c8cf4b1f1b4effb960cafdd636421302100b8ad7b82213114 WHIRLPOOL c91c91d5e52a9eeba0e8ef86a741838ce3dec2f5b0f0911ada3de3d51a5eba7b9addd9a4e4696171fa4ff3c71f7db494cd8f356d0d7b5daf943b0c24129ac2ea
|
||||
DIST eselect-1.3.4.tar.xz 165376 SHA256 9a2fc94d806ca04c20bd60034d3a1acc38caea49fbc66a027a0e9ef531991d33 SHA512 88c35ebee726fa75abe706a547f8ce9239e4bef04620368ae2ea66d7600bff2f17391e145f08e74284668f47a710bdfc427b958023c4f4c4df58bb058ba27a6a WHIRLPOOL b7e8d61218921b89d8cdfb9e42dc6b5401a86a191fe4e792c30fde3d54894e01d0e6c6d702f06a3b88bc7bf6a10d36a95917145b27bc4bcdc9a8968ed9035b45
|
||||
|
@ -1,11 +0,0 @@
|
||||
--- a/bin/eselect.in
|
||||
+++ b/bin/eselect.in
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
# Support variables for Gentoo Prefix
|
||||
EPREFIX="@EPREFIX@"
|
||||
-EROOT="${ROOT%/}${EPREFIX}"
|
||||
+EROOT="${ROOT%${EPREFIX:+/}}${EPREFIX}"
|
||||
|
||||
# Remove all alias definitions. Unset functions and variables that are
|
||||
# known to cause trouble.
|
@ -1,3 +1,4 @@
|
||||
DIST hashcat-0.39.7z 716387 SHA256 9d86cb175030de5b5872077028456f944c18e94749fc79cb63fb2f74106bed4e SHA512 bc7058bc13cfab52d9e3ec842180bfcf3bc17628d74c79806ae0f741169960dbac97c57339ff06ada1bc898dcd1adbf3a7efd8bfbc8a83ed614d50d3d4b97e17 WHIRLPOOL dae6f8421ddf617baa17122e20a4840d67fb913b8b3fe5caf635606e37c6d3e33dc37044ad90df641fd97853d579cbaa3cf7fd6cf6f67e61efe3f7f4acedd95b
|
||||
DIST hashcat-0.40.7z 785935 SHA256 3b587185a3957f7f3e5dfe58a340d0b65bd1ee9d71a6ae5d97009b5bc21150ae SHA512 0c68877111cc3633eea332a992ee4d897fdf7875821668faaf2149d91ce15d0c973d8db83ae407051f530a97a8835338b7acda1c9577e762cef7e6e51c519751 WHIRLPOOL 9f0fed3e1e7b06338ba1a73b19fd54fe53fc9a75aad05d4909d3a2a80de941d6910d30215bb52ae6b6c52f9c3c71a07c523655512b7d7dc5aa5b8076c2131919
|
||||
DIST hashcat-0.41.7z 1013298 SHA256 b0f2f086d30b43bad8d5925e5d7b1758c10afe7a38d963281931dda1a109b8e3 SHA512 414cf3b90699b361050c61280df51f891393831aba2640b3af3e01902562ad720e6e598a04e4e55fa1d81bd05c48f9fc14938ad03eebc96ea6cc5d69b1ada416 WHIRLPOOL 76d3e9126b86477fbb1a194960b917983e8252e90d9481088ff602433ef7bf195c830bac01e68545951dbb7b6a21c834f5d242a98e9598f0ae3a2567f24270b4
|
||||
DIST hashcat-0.42.7z 1027627 SHA256 9894ce812ce2ea2c7715a8550012c5aa95ce5c81d5e0b1c54336bab2963bd975 SHA512 cd46ad3b5346c3b2643e0e85b1c7697fbc673f1aa957ccbce8e0658e4ba22e0dd5ce35330f18cb2eddda9ddd528edb6323825f69d940e2b11d6762f87faff938 WHIRLPOOL 7262de91b9195ebb63181a09a7473e00a519233c97cde6b929ecd3733b219efefea88ff3cda10b8c3f9a38a7324402288e7d18ade5227b40903a37a0f21f1faa
|
||||
|
@ -0,0 +1,79 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-crypt/hashcat-bin/hashcat-bin-0.42.ebuild,v 1.1 2013/01/07 04:12:18 zerochaos Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
MY_P="hashcat-${PV}"
|
||||
|
||||
inherit eutils pax-utils
|
||||
DESCRIPTION="An multi-threaded multihash cracker"
|
||||
HOMEPAGE="http://hashcat.net/hashcat/"
|
||||
|
||||
SRC_URI="http://hashcat.net/files/${MY_P}.7z"
|
||||
|
||||
#license applies to this version per http://hashcat.net/forum/thread-1348.html
|
||||
LICENSE="hashcat"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~amd64-linux ~x64-macos ~x86 ~x86-linux"
|
||||
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/p7zip"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
RESTRICT="strip"
|
||||
QA_PREBUILT="opt/${PN}/hashcat-cli*.bin
|
||||
opt/${PN}/hashcat-cli64.app"
|
||||
|
||||
src_install() {
|
||||
dodoc docs/*
|
||||
rm -r *.exe docs || die
|
||||
use x86 || { rm hashcat-cli32.bin || die; }
|
||||
use amd64 || { rm hashcat-cli64.bin || die; }
|
||||
use x64-macos || { rm hashcat-cli64.app || die; }
|
||||
|
||||
#I assume this is needed but I didn't check
|
||||
pax-mark m hashcat-cli*.bin
|
||||
|
||||
insinto /opt/${PN}
|
||||
doins -r "${S}"/*
|
||||
|
||||
dodir /opt/bin
|
||||
if [ -f "${ED}"/opt/${PN}/hashcat-cli32.bin ]
|
||||
then
|
||||
fperms +x /opt/${PN}/hashcat-cli32.bin
|
||||
cat <<-EOF > "${ED}"/opt/bin/hashcat-cli32.bin
|
||||
#! /bin/sh
|
||||
cd "${EPREFIX}"/opt/${PN}
|
||||
echo "Warning: hashcat-cli32.bin is running from ${EPREFIX}/opt/${PN} so be careful of relative paths."
|
||||
exec ./hashcat-cli32.bin \$@
|
||||
EOF
|
||||
fperms +x /opt/bin/hashcat-cli32.bin
|
||||
fi
|
||||
if [ -f "${ED}"/opt/${PN}/hashcat-cli64.bin ]
|
||||
then
|
||||
fperms +x /opt/${PN}/hashcat-cli64.bin
|
||||
cat <<-EOF > "${ED}"/opt/bin/hashcat-cli64.bin
|
||||
#! /bin/sh
|
||||
cd "${EPREFIX}"/opt/${PN}
|
||||
echo "Warning: hashcat-cli64.bin is running from ${EPREFIX}/opt/${PN} so be careful of relative paths."
|
||||
exec ./hashcat-cli64.bin \$@
|
||||
EOF
|
||||
fperms +x /opt/bin/hashcat-cli64.bin
|
||||
fi
|
||||
if [ -f "${ED}"/opt/${PN}/hashcat-cli64.app ]
|
||||
then
|
||||
fperms +x /opt/${PN}/hashcat-cli64.app
|
||||
cat <<-EOF > "${ED}"/opt/bin/hashcat-cli64.app
|
||||
#! /bin/sh
|
||||
cd "${EPREFIX}"/opt/${PN}
|
||||
echo "Warning: hashcat-cli64.app is running from ${EPREFIX}/opt/${PN} so be careful of relative paths."
|
||||
exec ./hashcat-cli64.app \$@
|
||||
EOF
|
||||
fperms +x /opt/bin/hashcat-cli64.app
|
||||
fi
|
||||
}
|
@ -0,0 +1,414 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-1.0.1.ebuild,v 1.1 2013/01/06 18:54:23 cardoe Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
#BACKPORTS=85e8c146
|
||||
AUTOTOOLIZE=yes
|
||||
|
||||
MY_P="${P/_rc/-rc}"
|
||||
|
||||
PYTHON_DEPEND="python? 2:2.5"
|
||||
#RESTRICT_PYTHON_ABIS="3.*"
|
||||
#SUPPORT_PYTHON_ABIS="1"
|
||||
|
||||
inherit eutils python user autotools linux-info
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit git-2
|
||||
EGIT_REPO_URI="git://libvirt.org/libvirt.git"
|
||||
AUTOTOOLIZE=yes
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="http://libvirt.org/sources/${MY_P}.tar.gz
|
||||
ftp://libvirt.org/libvirt/${MY_P}.tar.gz
|
||||
${BACKPORTS:+
|
||||
http://dev.gentoo.org/~cardoe/distfiles/${MY_P}-${BACKPORTS}.tar.xz}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
S="${WORKDIR}/${P%_rc*}"
|
||||
|
||||
DESCRIPTION="C toolkit to manipulate virtual machines"
|
||||
HOMEPAGE="http://www.libvirt.org/"
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
IUSE="audit avahi +caps debug firewalld iscsi +libvirtd lvm +lxc +macvtap nfs \
|
||||
nls numa openvz parted pcap phyp policykit python qemu rbd sasl \
|
||||
selinux +udev uml +vepa virtualbox virt-network xen elibc_glibc"
|
||||
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
|
||||
>=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 )
|
||||
iscsi? ( sys-block/open-iscsi )
|
||||
lxc? ( 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
|
||||
sys-power/pm-utils
|
||||
)
|
||||
rbd? ( sys-cluster/ceph )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
selinux? ( >=sys-libs/libselinux-2.0.85 )
|
||||
virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) )
|
||||
xen? ( app-emulation/xen-tools app-emulation/xen )
|
||||
udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 )
|
||||
virt-network? ( net-dns/dnsmasq
|
||||
>=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 ) )"
|
||||
# one? ( dev-libs/xmlrpc-c )
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
app-text/xhtml1
|
||||
dev-libs/libxslt
|
||||
=dev-lang/python-2*"
|
||||
|
||||
LXC_CONFIG_CHECK="
|
||||
~CGROUPS
|
||||
~CGROUP_FREEZER
|
||||
~CGROUP_DEVICE
|
||||
~CPUSETS
|
||||
~CGROUP_CPUACCT
|
||||
~RESOURCE_COUNTERS
|
||||
~CGROUP_SCHED
|
||||
~BLK_CGROUP
|
||||
~NAMESPACES
|
||||
~UTS_NS
|
||||
~IPC_NS
|
||||
~PID_NS
|
||||
~NET_NS
|
||||
~DEVPTS_MULTIPLE_INSTANCES
|
||||
~VETH
|
||||
~MACVLAN
|
||||
~POSIX_MQUEUE
|
||||
~!GRKERNSEC_CHROOT_MOUNT
|
||||
~!GRKERNSEC_CHROOT_DOUBLE
|
||||
~!GRKERNSEC_CHROOT_PIVOT
|
||||
~!GRKERNSEC_CHROOT_CHMOD
|
||||
~!GRKERNSEC_CHROOT_CAPS
|
||||
"
|
||||
|
||||
VIRTNET_CONFIG_CHECK="
|
||||
~BRIDGE_NF_EBTABLES
|
||||
~NETFILTER_ADVANCED
|
||||
~NETFILTER_XT_TARGET_CHECKSUM
|
||||
"
|
||||
|
||||
MACVTAP_CONFIG_CHECK="~MACVTAP"
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
python_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 5 && LXC_CONFIG_CHECK+=" ~USER_NS"
|
||||
kernel_is lt 3 6 && LXC_CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR" || \
|
||||
LXC_CONFIG_CHECK+=" ~MEMCG"
|
||||
|
||||
CONFIG_CHECK=""
|
||||
use lxc && CONFIG_CHECK+="${LXC_CONFIG_CHECK}"
|
||||
use macvtap && CONFIG_CHECK+="${MACVTAP}"
|
||||
use virt-network && CONFIG_CHECK+="${VIRTNET_CONFIG_CHECK}"
|
||||
if [[ -n ${CONFIG_CHECK} ]]; then
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
touch "${S}/.mailmap"
|
||||
[[ -n ${BACKPORTS} ]] && \
|
||||
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
|
||||
epatch
|
||||
|
||||
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_user
|
||||
|
||||
[[ -n ${AUTOTOOLIZE} ]] && eautoreconf
|
||||
|
||||
# Tweak the init script
|
||||
local avahi_init=
|
||||
local iscsi_init=
|
||||
local rbd_init=
|
||||
local firewalld_init=
|
||||
cp "${FILESDIR}/libvirtd.init-r11" "${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=""
|
||||
|
||||
myconf="${myconf} $(use_enable debug)"
|
||||
|
||||
## enable/disable daemon, otherwise client only utils
|
||||
myconf="${myconf} $(use_with libvirtd)"
|
||||
|
||||
## enable/disable the daemon using avahi to find VMs
|
||||
myconf="${myconf} $(use_with avahi)"
|
||||
|
||||
## hypervisors on the local host
|
||||
myconf="${myconf} $(use_with xen) $(use_with xen xen-inotify)"
|
||||
# leave it automagic as it depends on the version of xen used.
|
||||
use xen || myconf+=" --without-libxl"
|
||||
use xen || myconf+=" --without-xenapi"
|
||||
myconf="${myconf} $(use_with openvz)"
|
||||
myconf="${myconf} $(use_with lxc)"
|
||||
if use virtualbox && has_version app-emulation/virtualbox-ose; then
|
||||
myconf="${myconf} --with-vbox=/usr/lib/virtualbox-ose/"
|
||||
else
|
||||
myconf="${myconf} $(use_with virtualbox vbox)"
|
||||
fi
|
||||
myconf="${myconf} $(use_with uml)"
|
||||
myconf="${myconf} $(use_with qemu)"
|
||||
myconf="${myconf} $(use_with qemu yajl)" # Use QMP over HMP
|
||||
myconf="${myconf} $(use_with phyp)"
|
||||
myconf="${myconf} --with-esx"
|
||||
myconf="${myconf} --with-vmware"
|
||||
|
||||
## additional host drivers
|
||||
myconf="${myconf} $(use_with virt-network network)"
|
||||
myconf="${myconf} --with-storage-fs"
|
||||
myconf="${myconf} $(use_with lvm storage-lvm)"
|
||||
myconf="${myconf} $(use_with iscsi storage-iscsi)"
|
||||
myconf="${myconf} $(use_with parted storage-disk)"
|
||||
myconf="${myconf} $(use_with lvm storage-mpath)"
|
||||
myconf="${myconf} $(use_with rbd storage-rbd)"
|
||||
myconf="${myconf} $(use_with numa numactl)"
|
||||
myconf="${myconf} $(use_with numa numad)"
|
||||
myconf="${myconf} $(use_with selinux)"
|
||||
|
||||
# udev for device support details
|
||||
myconf="${myconf} $(use_with udev)"
|
||||
|
||||
# linux capability support so we don't need privileged accounts
|
||||
myconf="${myconf} $(use_with caps capng)"
|
||||
|
||||
## auth stuff
|
||||
myconf="${myconf} $(use_with policykit polkit)"
|
||||
myconf="${myconf} $(use_with sasl)"
|
||||
|
||||
# network bits
|
||||
myconf="${myconf} $(use_with macvtap)"
|
||||
myconf="${myconf} $(use_with pcap libpcap)"
|
||||
myconf="${myconf} $(use_with vepa virtualport)"
|
||||
myconf="${myconf} $(use_with firewalld)"
|
||||
|
||||
## other
|
||||
myconf="${myconf} $(use_enable nls)"
|
||||
myconf="${myconf} $(use_with python)"
|
||||
|
||||
# user privilege bits fir qemu/kvm
|
||||
if use caps; then
|
||||
myconf="${myconf} --with-qemu-user=qemu"
|
||||
myconf="${myconf} --with-qemu-group=qemu"
|
||||
else
|
||||
myconf="${myconf} --with-qemu-user=root"
|
||||
myconf="${myconf} --with-qemu-group=root"
|
||||
fi
|
||||
|
||||
# audit support
|
||||
myconf="${myconf} $(use_with audit)"
|
||||
|
||||
## stuff we don't yet support
|
||||
myconf="${myconf} --without-netcf"
|
||||
|
||||
# we use udev over hal
|
||||
myconf="${myconf} --without-hal"
|
||||
|
||||
# locking support
|
||||
myconf="${myconf} --without-sanlock"
|
||||
|
||||
# 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 \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
--with-remote \
|
||||
--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}/python \
|
||||
EXAMPLE_DIR=/usr/share/doc/${PF}/python/examples \
|
||||
|| die "emake install failed"
|
||||
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
|
||||
use libvirtd || return 0
|
||||
# From here, only libvirtd-related instructions, be warned!
|
||||
|
||||
newinitd "${S}/libvirtd.init" libvirtd || die
|
||||
newconfd "${FILESDIR}/libvirtd.confd-r4" libvirtd || die
|
||||
|
||||
keepdir /var/lib/libvirt/images
|
||||
}
|
||||
|
||||
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
|
||||
mv "${D}"/etc/sysctl.d/libvirtd "${D}"/etc/sysctl.d/libvirtd.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use python && python_mod_optimize libvirt.py
|
||||
|
||||
# support for dropped privileges
|
||||
if use qemu; then
|
||||
fperms 0750 "${EROOT}/var/lib/libvirt/qemu"
|
||||
fperms 0750 "${EROOT}/var/cache/libvirt/qemu"
|
||||
fi
|
||||
|
||||
if use caps && use qemu; then
|
||||
fowners -R qemu:qemu "${EROOT}/var/lib/libvirt/qemu"
|
||||
fowners -R qemu:qemu "${EROOT}/var/cache/libvirt/qemu"
|
||||
elif use qemu; then
|
||||
fowners -R root:root "${EROOT}/var/lib/libvirt/qemu"
|
||||
fowners -R root:root "${EROOT}/var/cache/libvirt/qemu"
|
||||
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!
|
||||
|
||||
elog
|
||||
elog "For the basic networking support (bridged and routed networks)"
|
||||
elog "you don't need any extra software. For more complex network modes"
|
||||
elog "including but not limited to NATed network, you can enable the"
|
||||
elog "'virt-network' USE flag."
|
||||
elog
|
||||
if has_version net-dns/dnsmasq; then
|
||||
ewarn "If you have a DNS server setup on your machine, you will have"
|
||||
ewarn "to configure /etc/dnsmasq.conf to enable the following settings: "
|
||||
ewarn " bind-interfaces"
|
||||
ewarn " interface or except-interface"
|
||||
ewarn
|
||||
ewarn "Otherwise you might have issues with your existing DNS server."
|
||||
fi
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use python && python_mod_cleanup libvirt.py
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST datovka-2.1.2.tar.gz 998633 SHA256 54951627d990bca92894c76fdb4f0c6c55bdb1fa3791117ccafad58ba4c76900 SHA512 3335d9333e6a800f32d58fb30e7d806722ad07b868579bd165658e411c0b5d027ca0292c0e562ecaf72837ed4205e9119444b21305c990ec492bbacaacc313de WHIRLPOOL 93b89166f7be9ce2763f91ca8dc0c8d9b77da8d5e04b75df00ec0614166305df297c7f71f521387899aeec7e3faf0ca5cae5c986d748105a609ed8520a6af065
|
||||
DIST datovka-3.0.2.tar.gz 671108 SHA256 f9a709e8bf45d90f4e2cad779614efe7b754fbfc3024ba2bcf995354141fa860 SHA512 be839814ef210333ffa71aeb38e0c01812d047e100d6346aadea05ed17401dcb8dd0cc625b4dbfeddea79d62d8f16aed7970a84a6e161c91b23c78812c5c5344 WHIRLPOOL 0945d7bf9f94b6e9936a50957b7196ff1105797608ff1d23a447d8c447eaeb4baf7eaa705b46559de2e580559f6a532c1cbf98de40a6f8b86a5e3a69dc8b23f6
|
||||
DIST datovka-3.0.3.tar.gz 671555 SHA256 96bbc89fb2fe0c6a306d80260945b1b4eb089a061f9e324139b9a238d8588c3c SHA512 c3dfa23125849fb1c5691a4ad6077fedd307b8c0417c72e014876f56c1185a2da73478927fb594cac45ada77a71a3798f57a75032a4d83cd81c194fe3257397d WHIRLPOOL 4ab43452a51130ce021fd23e292f6922cd6d16670b8e65f270747b75b35b8fd085962fe6086ed3ae8f0797e4e764e5e403b7694dd82396a7c1d2b4dacb81262f
|
||||
|
@ -1,43 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/datovka/datovka-2.1.2.ebuild,v 1.2 2012/09/04 09:29:50 scarabeus Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
PYTHON_DEPEND="2"
|
||||
|
||||
inherit distutils
|
||||
|
||||
DESCRIPTION="GUI to access Czech eGov \"Datove schranky\""
|
||||
HOMEPAGE="http://labs.nic.cz/page/969/datovka/"
|
||||
SRC_URI="http://www.nic.cz/public_media/datove_schranky/releases/${P}/src/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
dev-python/pygtk:2
|
||||
dev-python/pyopenssl
|
||||
dev-python/reportlab
|
||||
dev-python/sqlalchemy
|
||||
media-fonts/dejavu
|
||||
>=net-libs/dslib-2.1
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
python_convert_shebangs -r 4 "${WORKDIR}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
rm -rf "${ED}"/usr/share/${PN}/fonts/*
|
||||
dosym /usr/share/fonts/${PN}/DejaVuSans.ttf /usr/share/dsgui/fonts/DejaVuSans.ttf
|
||||
}
|
@ -1,2 +1,4 @@
|
||||
DIST evtest-1.29-mans.tar.xz 2108 SHA256 8f5c92bb15671fd1acc3a4e66c8218115ff8f6365c4fc3ca491a728bdeff3231 SHA512 d32786fde7ca20cad445b6cce35f603fff8d39f51e6a0f7569f4cc020def77240686b3a12a969c5176c5cfc0e34270f169c4429cb9e6aa5f0684fa2c50abdf85 WHIRLPOOL ff6322a3c45e178dffa3d4c1d9768d587c7533566bc41f75d5d9eaa0ce41bc4579ba9f644a29751996a7eacca4babd47564bab6708abc8ff53c17a7779918d42
|
||||
DIST evtest-1.29.tar.bz2 21930 SHA256 6373c66e72cd461879f9fc6ee19b5b508ae1d6d365660a00cb8bcee7f415bb90 SHA512 ddbda6f1a34363a844b3e2e206afec6f6aed18c2b8c97f6e5bc9c57c1585fc00ee99ded8aded2d2674e58cfaf48c8028953059cc3024e04253f4cd961a1da2e1 WHIRLPOOL f9d1fb7e4036878e901d5da10ebe4a9a0bc01238224953322aaa9c0116e61d90a23bcbc8d1ae08d52b31188878d3f2ea13aa5cc6ccdc1819841d4a6b05a817fb
|
||||
DIST evtest-1.30-mans.tar.gz 2112 SHA256 bb66750d9871caac02c48aa309774e7043e2ff5a2fcf4188d424625583c41800 SHA512 470ac504091f9826023dd2cc62a1c0169f98bf2d6e9c4c3986e3719d67d02bb587023aa347a3fb26b0d06efae8eccdd05d88ae74556f3819416a6f6c905c4618 WHIRLPOOL fcdba792eb614bb47f35063dd8554a35e2ebd4e3a8413f3b39c54a468e8eb3d0b2bc249c7f24e763a23b3042dd55561364158ca03c9d9e272ab3aeb556db3fc1
|
||||
DIST evtest-1.30.tar.gz 25556 SHA256 68ec133d4c7834c682269cbf3c35c53ec5630a275368a8a470f461e9acceb1b7 SHA512 ea995c37c0cf8dd8a4c493895bd039e4adac5056a06e9e0275e879ca1e774e98b5cf42bc77f1ad34225b15282cc4edb6dc088cb6fb16f82250bc35fb3975c4bf WHIRLPOOL 7654c986ad4626a73ecc33e560da79d00eb1db362ede63d6d87dc84dace70091f3a08217fe92270a40583903f04da781e76e6a6fe126ce3897bc935486868da7
|
||||
|
@ -0,0 +1,40 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/evtest/evtest-1.30.ebuild,v 1.1 2013/01/06 20:22:25 vapier Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit autotools eutils
|
||||
|
||||
DESCRIPTION="test program for capturing input device events"
|
||||
HOMEPAGE="http://cgit.freedesktop.org/evtest/"
|
||||
SRC_URI="http://cgit.freedesktop.org/evtest/snapshot/${PN}-${P}.tar.gz -> ${P}.tar.gz
|
||||
mirror://gentoo/${P}-mans.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="+xml"
|
||||
|
||||
# We bundled the man pages ourselves to avoid xmlto/asciidoc.
|
||||
# We need libxml2 for the capture tool. While at runtime,
|
||||
# we have a file that can be used with xsltproc, we don't
|
||||
# directly need it ourselves, so don't depend on libxslt.
|
||||
# tar zcf ${P}-mans.tar.gz *.1 --transform=s:^:evtest-${P}/:
|
||||
RDEPEND="xml? ( dev-libs/libxml2 )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
S=${WORKDIR}/${PN}-${P}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-1.30-autoconf.patch
|
||||
epatch "${FILESDIR}"/${PN}-1.30-xml.patch
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# We pre-compile the man pages.
|
||||
XMLTO=/bin/true ASCIIDOC=/bin/true \
|
||||
econf $(use_enable xml)
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
From d3864018ef09ef38e1733110e2643735067bc02f Mon Sep 17 00:00:00 2001
|
||||
From: Mike Frysinger <vapier@gentoo.org>
|
||||
Date: Sun, 6 Jan 2013 14:49:40 -0500
|
||||
Subject: [PATCH] use newer config headers macro
|
||||
|
||||
With newer automake, it throws an error:
|
||||
configure.ac:5: error: 'AM_CONFIG_HEADER': this macro is obsolete.
|
||||
You should use the 'AC_CONFIG_HEADERS' macro instead.
|
||||
|
||||
The newer macro has been around a long time, so there's no need to
|
||||
worry about backwards compat here.
|
||||
|
||||
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
||||
---
|
||||
configure.ac | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index ebf657f..9980c5a 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -2,7 +2,7 @@ AC_PREREQ([2.57])
|
||||
AC_INIT(evtest,[1.30], [https://bugzilla.freedesktop.org/enter_bug.cgi?product=evtest], evtest)
|
||||
AM_INIT_AUTOMAKE([foreign dist-bzip2])
|
||||
|
||||
-AM_CONFIG_HEADER(config.h)
|
||||
+AC_CONFIG_HEADERS(config.h)
|
||||
AC_PROG_CC
|
||||
AC_PROG_INSTALL
|
||||
|
||||
--
|
||||
1.8.0.2
|
||||
|
@ -0,0 +1,40 @@
|
||||
From 92ecfec7b0a9c1f8d952d20e8a0cde5930f9264f Mon Sep 17 00:00:00 2001
|
||||
From: Mike Frysinger <vapier@gentoo.org>
|
||||
Date: Sun, 6 Jan 2013 15:09:26 -0500
|
||||
Subject: [PATCH] add a configure flag to control xml behavior
|
||||
|
||||
The default behavior (autodetection) is unchanged.
|
||||
This adds a knob for distros to control directly.
|
||||
|
||||
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
||||
---
|
||||
configure.ac | 12 ++++++++----
|
||||
1 file changed, 8 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 9980c5a..e973733 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -5,11 +5,15 @@ AM_INIT_AUTOMAKE([foreign dist-bzip2])
|
||||
AC_CONFIG_HEADERS(config.h)
|
||||
AC_PROG_CC
|
||||
AC_PROG_INSTALL
|
||||
+PKG_PROG_PKG_CONFIG
|
||||
|
||||
-PKG_CHECK_MODULES(XML, libxml-2.0, [HAVE_LIBXML=yes], [HAVE_LIBXML=no])
|
||||
-if test x$HAVE_LIBXML = "xno"; then
|
||||
- AC_MSG_WARN([libxml headers not available. Cannot build evtest-capture.])
|
||||
-fi
|
||||
+AC_ARG_ENABLE([xml], [AS_HELP_STRING([--disable-xml], [Disable support for xml (evtest-capture)])])
|
||||
+AS_IF([test "x$enable_xml" != "xno"], [
|
||||
+ PKG_CHECK_MODULES(XML, libxml-2.0, [HAVE_LIBXML=yes], [HAVE_LIBXML=no])
|
||||
+ AS_IF([test "x$enable_xml$HAVE_LIBXML" = "xyesno"], [
|
||||
+ AC_MSG_ERROR([libxml headers not available. Cannot build evtest-capture.])
|
||||
+ ])
|
||||
+])
|
||||
AM_CONDITIONAL(HAVE_LIBXML, [test "x$HAVE_LIBXML" = "xyes"])
|
||||
|
||||
AC_PATH_PROG(XSLTPROC, [xsltproc])
|
||||
--
|
||||
1.8.0.2
|
||||
|
@ -1 +1,2 @@
|
||||
DIST skrooge-1.3.3.tar.bz2 9737954 SHA256 251ffca5ad8e3696901fb29df2714fcb30541fe9e3107b9de2c2cb9f6b47cee9 SHA512 1066de3fc4a09f1d15fda58106b41519a0470cd5572660ca8d037dc9658030be4959c5dad94173e6decf56a9a04bbf2f874a92ade54fd544cfaf2339aaa38840 WHIRLPOOL 4b6eb773af793fa35d610b207fe209ff5f7e0f0679be2a1d79f94662d0ff9ecf7bb26332919f2c34ca8165122fa7a5e5a576fbc7b423d13c3d4f2a46dec16f27
|
||||
DIST skrooge-1.4.0.tar.bz2 9697141 SHA256 71df527bea98b7a998deeeed009bdf381ff890a5743a84b93db4f007223974f9 SHA512 5a5e4f7752a6d3a3551614d5c429194469d32ab5a49df273d17a54ab8a4f402552a5ff46770624b36b18832f101e3cfbf454acc15f167cc54c92562155798c54 WHIRLPOOL 474f81005d51dbfd558d3001dd5b8ea14dc5c4668edc2ef0348f7344df67be58b05567af0d1ae32262bfebb21dcbb30a0c5aa32ca84da81064bce1a636ca5d5c
|
||||
|
@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-office/skrooge/skrooge-1.4.0.ebuild,v 1.1 2013/01/06 10:49:04 johu Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
KDE_LINGUAS="bg bs ca ca@valencia cs da de el en_GB eo es et fi fr ga gl hu it
|
||||
ja ko lt ms nb nds nl pl pt pt_BR ro ru sk sv tr ug uk zh_CN zh_TW"
|
||||
KDE_DOC_DIRS="doc"
|
||||
KDE_HANDBOOK=optional
|
||||
inherit kde4-base
|
||||
|
||||
DESCRIPTION="personal finances manager for KDE4, aiming at being simple and intuitive"
|
||||
HOMEPAGE="http://www.skrooge.org/"
|
||||
SRC_URI="http://www.skrooge.org/files/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="4"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
DEPEND="
|
||||
app-crypt/qca:2
|
||||
dev-libs/grantlee
|
||||
>=dev-libs/libofx-0.9.1
|
||||
x11-libs/qt-sql:4[sqlite]
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
$(add_kdebase_dep kdesdk-scripts)
|
||||
"
|
||||
|
||||
DOCS=( AUTHORS CHANGELOG README TODO )
|
||||
|
||||
src_test() { :; }
|
||||
# tests are not included in tarball, bug 372315
|
@ -1 +1,2 @@
|
||||
DIST percona-toolkit-2.1.1.tar.gz 1182760 SHA256 ae8fc0479ee48a1ef1882006eecfbcdd3ba1ab5cae19825087fb02d96d8e4a39 SHA512 161f6e87fd9b93fd9d22b767eada2db8b1ddbdeae25305d7bb91d74a7281ba5fe773ee2e4305a5df0186fc5482fe186f60a86053e53b33d5f0d5c60ac55f15ab WHIRLPOOL e5f71aa274f182ffe0a07e9de7f42c51f41ca794a7b17843f5edf81756aa0d170eee46d0502f4940dd9ac994fa37ace30c38876bbb2954e6817cd392f020eabf
|
||||
DIST percona-toolkit-2.1.7.tar.gz 1468872 SHA256 9b8be47ad4470ae2af684c0014b6cef8df4868457c73e924bb89bfca5a600479 SHA512 1a228ef7de4129079de35dca032a020887cd692a9d04d61c3317f8636c5e90ac671bd943c2e8cefa101748daa2891f022ce5031920030d605a83bbeb19c9bb8a WHIRLPOOL f28e58f432207ae09652ef49baece5eada40b7be9d9a38b1a52115c65c13e9857e925b1c7fdba9eec0bc7f8e1960ad5a46de00703f59ce25b2aaff0a7ee5435b
|
||||
|
@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/percona-toolkit/percona-toolkit-2.1.7.ebuild,v 1.1 2013/01/06 21:33:36 robbat2 Exp $
|
||||
|
||||
EAPI=3
|
||||
|
||||
inherit perl-app perl-module toolchain-funcs
|
||||
|
||||
DESCRIPTION="essential command-line utilities for MySQL"
|
||||
HOMEPAGE="http://www.percona.com/software/percona-toolkit/"
|
||||
SRC_URI="http://www.percona.com/downloads/${PN}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( GPL-2 Artistic )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEPEND="dev-perl/DBI
|
||||
dev-perl/DBD-mysql
|
||||
virtual/perl-Time-HiRes"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
virtual/perl-Getopt-Long
|
||||
virtual/perl-Time-Local
|
||||
virtual/perl-Digest-MD5
|
||||
virtual/perl-IO-Compress
|
||||
virtual/perl-File-Temp
|
||||
virtual/perl-File-Spec
|
||||
virtual/perl-Time-HiRes
|
||||
virtual/perl-Scalar-List-Utils
|
||||
dev-perl/TermReadKey"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
virtual/perl-ExtUtils-MakeMaker"
|
||||
|
||||
# Percona Toolkit does NOT contain the UDF code for Murmur/FNV any more.
|
@ -0,0 +1,12 @@
|
||||
--- bloomfilter-1.2.6.10-orig/tests/QCSupport.hs 2012-06-16 09:59:56.000000000 +1000
|
||||
+++ bloomfilter-1.2.6.10/tests/QCSupport.hs 2012-07-14 19:00:06.035731133 +1000
|
||||
@@ -20,9 +20,6 @@
|
||||
arbitrary = choose (epsilon, 1 - epsilon)
|
||||
where epsilon = 1e-6 :: P
|
||||
|
||||
-instance Arbitrary Ordering where
|
||||
- arbitrary = oneof [return LT, return GT, return EQ]
|
||||
-
|
||||
-- For some reason, MIN_VERSION_random doesn't work here :-(
|
||||
#if __GLASGOW_HASKELL__ < 704
|
||||
integralRandomR :: (Integral a, RandomGen g) => (a, a) -> g -> (a, g)
|
@ -1,14 +1,10 @@
|
||||
DIST ruby-1.8.7-p352.tar.bz2 4207576 SHA256 9df4e9108387f7d24a6ab8950984d0c0f8cdbc1dad63194e744f1a176d1c5576 SHA512 30ac829da3cbddecb85318662780bca627eab72cad97882eac1ab20678d9609d603cfa9e33a80d701f7112a3445d94b2c8ce5ad82a6865ef86387d931d0a6a3d WHIRLPOOL b77c5979c4101ce8277916384ab885f2e2d24fa0d61df73175935b2de9eba3bbb80af6fbeebf61718c4dca0c56145d6064646b203b20d2589d1c8b8f7cf5b4f3
|
||||
DIST ruby-1.8.7-p357.tar.bz2 4208157 SHA256 5c64b63a597b4cb545887364e1fd1e0601a7aeb545e576e74a6d8e88a2765a37 SHA512 c8ec885ed4598ac29bc21a328b6c659feb85b71fc18e2ed6c5fe41ed94131cbb59b128e24015fd482e7e19cca349ab519dfa0eaf52f6b1bb77db41b8c8525765 WHIRLPOOL afbf25d0b6c1e57b399d247d2c5b5a2e73eba47357aecf0030a7f4bc693181b980b9cf7a30410a004087a960f62d2172555419be0bb9cda5d1b3790c3ac4c634
|
||||
DIST ruby-1.8.7-p358.tar.bz2 4209883 SHA256 309ccd427e47ef41a70f96462bd3c2ef2e7911ce1b22432ab502f5bc6e949c1b SHA512 f5d3729cbf869ee8d24a8d73008de8591d7d3fbee7a935c3cd69f755008243e821e53405b1a62e46d6af847a749c73e7463aede091d63ff43e5b1e01ecf06199 WHIRLPOOL 43329aeb38b6ed2e901ee32b51e527cc49bd72bbf668efd60d7bfd6962171dca2b235d2a13d291ab0a362c7ee5a9262a50538a4c2cff1122c23bb8b2ddcab10e
|
||||
DIST ruby-1.8.7-p370.tar.bz2 4211597 SHA256 6359b03a1c8ba16630a96fcb5f972c7af15bd33b752e324cd87964224ab1fe31 SHA512 d8e592e142b79d108da7bb3798016b26ac0cba34468c96978a561f1f2386d83714a4d9bf2cbd7e78c7aa71ff29f10cce65cf5b7cadf3ec089412c8d73e627e91 WHIRLPOOL 6762f7006c25f12edd5d8be0ecaa3b76f29f2a54eeb642898094df5c3e3de1f993da9207749b2cc4f793fcb42a14e9ad4335aa8a5ad3f127d32fc00a500ae3af
|
||||
DIST ruby-1.8.7-p371.tar.bz2 4248262 SHA256 2dd0e463cd82039beb75c9b9f4ee20bef5f5b5ff68527008e5aee61cfb3b55e1 SHA512 992bb7a4b53f9112443230fe17842fa9500c04fbf4fabfe1c2c7b51fb90b3366354aeb6aac1850760fe3ab413cf6d970bd19e9ac0e613f2248a53dbee0e7ef3a WHIRLPOOL a461df561b2bf8643ac41a77f1794e89622d3f99216b047cfdc66c5a035433f823027af1cc644cb8b694ecf2a0314dbf838da9a2c74b0bfe33567100eb7bf0d6
|
||||
DIST ruby-1.9.3-p125.tar.bz2 9733962 SHA256 c67a59443052b5a9219eb4cee3892bdfbc6f250f0c8e214e02256a4cc7ef5526 SHA512 3a3e4284e2533a501ade3a32cdea01cbdf919cb03bd46b237a2f6af28c97416a3e4d3db021da7a9154362de11dc3db5a48d22801b0e31e7c52f785555759e2f7 WHIRLPOOL 0ee5badbc89d5d38757f65681db2cff4a64b1636039d756d18838734e8e2084ed65dc22514824377377e539421a6553de5afaa454e7ca4e1225958106e372982
|
||||
DIST ruby-1.9.3-p194.tar.bz2 9841223 SHA256 a9d1ea9eaea075c60048369a63b35b3b5a06a30aa214a3d990e0bb71212db8fa SHA512 cb01bb02154c8c316404326ddfa182d212d3291f11250e56d3ada269c1898eea75c23b11558d805d7505422b084d3b7b6aea2c37e23546499e8040a0d4da8b01 WHIRLPOOL 27aff31f301679a70e8ff7babd8a060ea3722150ca29a008f339633a762dab968f77b5b6108a9c938902785213ea59a0cad54742a60ac9a390f90aa5b90e196a
|
||||
DIST ruby-1.9.3-p286.tar.bz2 9961862 SHA256 5281656c7a0ae48b64f28d845a96b4dfa16ba1357a911265752787585fb5ea64 SHA512 73ca8e21a6d070d65b8ae2c8d6192285cc4a4bf71ea1caab81d87c4902a6a63178e9315eac47d20b5f776768cc2c745686891445159ce4d375dfcc8199922747 WHIRLPOOL 9b336bc2aa77388eedacb4e869272e6aded2d739e655b7f0cd6b2a07a27af0fb7641e06a96f64f003e0ae3537db551a8bee465a6106941eaed8d318cc422b5c2
|
||||
DIST ruby-patches-1.8.7_p352.tar.bz2 2646 SHA256 695895d4ab77294975669d879f0b03e08af5fcd750b967b44305031b2c115da6 SHA512 c944e0d8fc2c24fb7d2181dc54025a0b2e119be218e2073edc84f7c8666aff6afb32ff44e3b8dab98b294b63bd28b13006528e5b1da0901a85bcbdce631785f7 WHIRLPOOL e48d826daca4f0c7827fceb41236bf4f12db0e48ba01b5165f86e667752b0d86ec0af4e369c772080735ed7678d2bac15ddace42dc726dbf9753e5303502ae16
|
||||
DIST ruby-patches-1.8.7_p357.tar.bz2 2444 SHA256 779d98e7c325eaf5bdb652dc7ceebda604792cddcce547766966021e60e68aac SHA512 4fbcdc2fb14ceb5add860537cc97cff1711ac56f9bc9a7fa3a699f12d3882c5404c76fddfe0b648b88e956dc12a72789ffbce158a85d4a6a6e71d773effb796c WHIRLPOOL 5c30143ab906e3520ca3fed85518a5f0abe20373ac80f6a2c69480006fe4587212c571f530e5b1310e243638f5c477e2948f3b197428dc9af022ce35c6e368ab
|
||||
DIST ruby-patches-1.8.7_p358.tar.bz2 4852 SHA256 7afcafa54bfcf4a2f2bb5b95e14aa304d84e9388c9680243db8dc397aa3008cf SHA512 2d37f9334e73993762b5b8e669b3ec091f201393bf07317068b65a40b25718384bd4bd80bd76641439105ed1311db0964c103432994f95d84cc2e209152738aa WHIRLPOOL 5a93cafe85bd88946289c5066edaed284b648a5218b11a1cf80966465d82e0ef6e77fb22a11d93f5f70f777056745c322d76528d4fce8ed34ec7ffc3d51c6fe2
|
||||
DIST ruby-patches-1.8.7_p370.tar.bz2 1751 SHA256 aac510388694255db850d7773d75e37b0d6ceefcb36786c61870f318d831be42 SHA512 21b3b6c8c91337414d68a30faf1f800854fa627c3b7078a42920b55a4c9c8af25997657ad5165a98096b14816f422bc88b0bbbb7735eeda6d5782c87ae9ff9cf WHIRLPOOL 8418d37166ddcb45c31c95cbddf957153d1c601ed33e6d23aa1fc9dd4328f3daa9a8b0fbb16720b2cab7f6ca0cf1c81cde99929339a53830e1168779645fe5c7
|
||||
DIST ruby-patches-1.8.7_p371.tar.bz2 1751 SHA256 aac510388694255db850d7773d75e37b0d6ceefcb36786c61870f318d831be42 SHA512 21b3b6c8c91337414d68a30faf1f800854fa627c3b7078a42920b55a4c9c8af25997657ad5165a98096b14816f422bc88b0bbbb7735eeda6d5782c87ae9ff9cf WHIRLPOOL 8418d37166ddcb45c31c95cbddf957153d1c601ed33e6d23aa1fc9dd4328f3daa9a8b0fbb16720b2cab7f6ca0cf1c81cde99929339a53830e1168779645fe5c7
|
||||
DIST ruby-patches-1.9.3_p125.tar.bz2 1852 SHA256 bc025f4a304a74531aa683b1a8a806f68b4a96fcf26fa42d9660218b9a1cef1a SHA512 a73b4065bc356e3936aaacfadc5349d0cc1557e31d606a2efac28c0c45f1c583c272f2a21d67580387c06fff7245d5933d82f2d05adbaca3eb194e4a48ad3ac9 WHIRLPOOL 990e1db7dfabe4e88ba9727adabc6566a291b9fba0798349c4b581feb15b60fe8d562729a9cb6f9975a4c7dd1c250919e8094f3757b037e8e496f2efc593bdf5
|
||||
DIST ruby-patches-1.9.3_p194-r1.tar.bz2 2508 SHA256 c2e01dceb2eee33209d6e218d2750cbd2ff32bdc34af816613b4d902fe107ee8 SHA512 38b2ec286072078ad3a9f17cd676a5636bf38dfc9aa2957a0edd3fe0248becf3d2c9def9a776995515151974f0874d79407ae1619502ea408b3bfb9a7e4661ea WHIRLPOOL eb3db89c7e2c2cf9f4e4b8295d5779dcdba1a0f793810d49f56d209363f2012e9230c0fd55da46b24980ad9c46de9e152ab68ce2c51a78ac2f593122b100c2ac
|
||||
DIST ruby-patches-1.9.3_p286.tar.bz2 2508 SHA256 c2e01dceb2eee33209d6e218d2750cbd2ff32bdc34af816613b4d902fe107ee8 SHA512 38b2ec286072078ad3a9f17cd676a5636bf38dfc9aa2957a0edd3fe0248becf3d2c9def9a776995515151974f0874d79407ae1619502ea408b3bfb9a7e4661ea WHIRLPOOL eb3db89c7e2c2cf9f4e4b8295d5779dcdba1a0f793810d49f56d209363f2012e9230c0fd55da46b24980ad9c46de9e152ab68ce2c51a78ac2f593122b100c2ac
|
||||
|
@ -1,195 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.7_p352.ebuild,v 1.7 2011/10/22 12:07:43 armin76 Exp $
|
||||
|
||||
EAPI=2
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib versionator
|
||||
|
||||
MY_P="${PN}-$(replace_version_separator 3 '-')"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
SLOT=$(get_version_component_range 1-2)
|
||||
MY_SUFFIX=$(delete_version_separator 1 ${SLOT})
|
||||
# 1.8 and 1.9 series disagree on this
|
||||
RUBYVERSION=$(get_version_component_range 1-2)
|
||||
|
||||
if [[ -n ${PATCHSET} ]]; then
|
||||
if [[ ${PVR} == ${PV} ]]; then
|
||||
PATCHSET="${PV}-r0.${PATCHSET}"
|
||||
else
|
||||
PATCHSET="${PVR}.${PATCHSET}"
|
||||
fi
|
||||
else
|
||||
PATCHSET="${PVR}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="An object-oriented scripting language"
|
||||
HOMEPAGE="http://www.ruby-lang.org/"
|
||||
SRC_URI="mirror://ruby/${SLOT}/${MY_P}.tar.bz2
|
||||
http://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2"
|
||||
|
||||
LICENSE="|| ( Ruby GPL-2 )"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="+berkdb debug doc examples +gdbm ipv6 rubytests socks5 ssl threads tk xemacs ncurses +readline libedit"
|
||||
|
||||
RDEPEND="
|
||||
berkdb? ( sys-libs/db )
|
||||
gdbm? ( sys-libs/gdbm )
|
||||
ssl? ( >=dev-libs/openssl-0.9.8m )
|
||||
socks5? ( >=net-proxy/dante-1.1.13 )
|
||||
tk? ( dev-lang/tk[threads=] )
|
||||
ncurses? ( sys-libs/ncurses )
|
||||
libedit? ( dev-libs/libedit )
|
||||
!libedit? ( readline? ( sys-libs/readline ) )
|
||||
sys-libs/zlib
|
||||
>=app-admin/eselect-ruby-20100603
|
||||
!=dev-lang/ruby-cvs-${SLOT}*
|
||||
!<dev-ruby/rdoc-2
|
||||
!dev-ruby/rexml"
|
||||
DEPEND="${RDEPEND}"
|
||||
PDEPEND="xemacs? ( app-xemacs/ruby-modes )"
|
||||
|
||||
src_prepare() {
|
||||
EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \
|
||||
epatch "${WORKDIR}/patches"
|
||||
|
||||
# Fix a hardcoded lib path in configure script
|
||||
sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \
|
||||
configure.in || die "sed failed"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=
|
||||
|
||||
# -fomit-frame-pointer makes ruby segfault, see bug #150413.
|
||||
filter-flags -fomit-frame-pointer
|
||||
# In many places aliasing rules are broken; play it safe
|
||||
# as it's risky with newer compilers to leave it as it is.
|
||||
append-flags -fno-strict-aliasing
|
||||
|
||||
# Socks support via dante
|
||||
if use socks5 ; then
|
||||
# Socks support can't be disabled as long as SOCKS_SERVER is
|
||||
# set and socks library is present, so need to unset
|
||||
# SOCKS_SERVER in that case.
|
||||
unset SOCKS_SERVER
|
||||
fi
|
||||
|
||||
# Increase GC_MALLOC_LIMIT if set (default is 8000000)
|
||||
if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
|
||||
append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
|
||||
fi
|
||||
|
||||
# ipv6 hack, bug 168939. Needs --enable-ipv6.
|
||||
use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
|
||||
|
||||
if use libedit; then
|
||||
einfo "Using libedit to provide readline extension"
|
||||
myconf="${myconf} --enable-libedit --with-readline"
|
||||
elif use readline; then
|
||||
einfo "Using readline to provide readline extension"
|
||||
myconf="${myconf} --with-readline"
|
||||
else
|
||||
myconf="${myconf} --without-readline"
|
||||
fi
|
||||
|
||||
econf \
|
||||
--program-suffix="${MY_SUFFIX}" \
|
||||
--enable-shared \
|
||||
$(use_enable socks5 socks) \
|
||||
$(use_enable doc install-doc) \
|
||||
$(use_enable threads pthread) \
|
||||
--enable-ipv6 \
|
||||
$(use_enable debug) \
|
||||
$(use_with berkdb dbm) \
|
||||
$(use_with gdbm) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with tk) \
|
||||
$(use_with ncurses curses) \
|
||||
${myconf} \
|
||||
--with-sitedir=/usr/$(get_libdir)/ruby/site_ruby \
|
||||
--enable-option-checking=no \
|
||||
|| die "econf failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake EXTLDFLAGS="${LDFLAGS}" || die "emake failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 test || die "make test failed"
|
||||
|
||||
elog "Ruby's make test has been run. Ruby also ships with a make check"
|
||||
elog "that cannot be run until after ruby has been installed."
|
||||
elog
|
||||
if use rubytests; then
|
||||
elog "You have enabled rubytests, so they will be installed to"
|
||||
elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
|
||||
elog "than root, and you must place them into a writeable directory."
|
||||
elog "Then call: "
|
||||
elog
|
||||
elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
|
||||
else
|
||||
elog "Enable the rubytests USE flag to install the make check tests"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Ruby is involved in the install process, we don't want interference here.
|
||||
unset RUBYOPT
|
||||
|
||||
local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
|
||||
|
||||
LD_LIBRARY_PATH="${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
|
||||
RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
|
||||
for d in $(find "${S}/ext" -type d) ; do
|
||||
RUBYLIB="${RUBYLIB}:$d"
|
||||
done
|
||||
export LD_LIBRARY_PATH RUBYLIB
|
||||
|
||||
emake DESTDIR="${D}" install || die "make install failed"
|
||||
|
||||
keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitelibdir']")
|
||||
keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitearchdir']")
|
||||
|
||||
if use doc; then
|
||||
make DESTDIR="${D}" install-doc || die "make install-doc failed"
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r sample
|
||||
fi
|
||||
|
||||
dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \
|
||||
"/usr/$(get_libdir)/libruby$(get_libname ${PV%.*})"
|
||||
dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \
|
||||
"/usr/$(get_libdir)/libruby$(get_libname ${PV%_*})"
|
||||
|
||||
dodoc ChangeLog NEWS README* ToDo || die
|
||||
|
||||
if use rubytests; then
|
||||
pushd test
|
||||
insinto /usr/share/${PN}-${SLOT}/test
|
||||
doins -r .
|
||||
popd
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then
|
||||
eselect ruby set ruby${MY_SUFFIX}
|
||||
fi
|
||||
|
||||
elog
|
||||
elog "To switch between available Ruby profiles, execute as root:"
|
||||
elog "\teselect ruby set ruby(18|19|...)"
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect ruby cleanup
|
||||
}
|
@ -1,193 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.7_p357.ebuild,v 1.6 2012/01/08 15:36:01 armin76 Exp $
|
||||
|
||||
EAPI=2
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib versionator
|
||||
|
||||
MY_P="${PN}-$(replace_version_separator 3 '-')"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
SLOT=$(get_version_component_range 1-2)
|
||||
MY_SUFFIX=$(delete_version_separator 1 ${SLOT})
|
||||
# 1.8 and 1.9 series disagree on this
|
||||
RUBYVERSION=$(get_version_component_range 1-2)
|
||||
|
||||
if [[ -n ${PATCHSET} ]]; then
|
||||
if [[ ${PVR} == ${PV} ]]; then
|
||||
PATCHSET="${PV}-r0.${PATCHSET}"
|
||||
else
|
||||
PATCHSET="${PVR}.${PATCHSET}"
|
||||
fi
|
||||
else
|
||||
PATCHSET="${PVR}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="An object-oriented scripting language"
|
||||
HOMEPAGE="http://www.ruby-lang.org/"
|
||||
SRC_URI="mirror://ruby/${SLOT}/${MY_P}.tar.bz2
|
||||
http://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2"
|
||||
|
||||
LICENSE="|| ( Ruby GPL-2 )"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="+berkdb debug doc examples +gdbm ipv6 rubytests socks5 ssl threads tk xemacs ncurses +readline libedit"
|
||||
|
||||
RDEPEND="
|
||||
berkdb? ( sys-libs/db )
|
||||
gdbm? ( sys-libs/gdbm )
|
||||
ssl? ( >=dev-libs/openssl-0.9.8m )
|
||||
socks5? ( >=net-proxy/dante-1.1.13 )
|
||||
tk? ( dev-lang/tk[threads=] )
|
||||
ncurses? ( sys-libs/ncurses )
|
||||
libedit? ( dev-libs/libedit )
|
||||
!libedit? ( readline? ( sys-libs/readline ) )
|
||||
sys-libs/zlib
|
||||
>=app-admin/eselect-ruby-20100603
|
||||
!<dev-ruby/rdoc-2"
|
||||
DEPEND="${RDEPEND}"
|
||||
PDEPEND="xemacs? ( app-xemacs/ruby-modes )"
|
||||
|
||||
src_prepare() {
|
||||
EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \
|
||||
epatch "${WORKDIR}/patches"
|
||||
|
||||
# Fix a hardcoded lib path in configure script
|
||||
sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \
|
||||
configure.in || die "sed failed"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=
|
||||
|
||||
# -fomit-frame-pointer makes ruby segfault, see bug #150413.
|
||||
filter-flags -fomit-frame-pointer
|
||||
# In many places aliasing rules are broken; play it safe
|
||||
# as it's risky with newer compilers to leave it as it is.
|
||||
append-flags -fno-strict-aliasing
|
||||
|
||||
# Socks support via dante
|
||||
if use socks5 ; then
|
||||
# Socks support can't be disabled as long as SOCKS_SERVER is
|
||||
# set and socks library is present, so need to unset
|
||||
# SOCKS_SERVER in that case.
|
||||
unset SOCKS_SERVER
|
||||
fi
|
||||
|
||||
# Increase GC_MALLOC_LIMIT if set (default is 8000000)
|
||||
if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
|
||||
append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
|
||||
fi
|
||||
|
||||
# ipv6 hack, bug 168939. Needs --enable-ipv6.
|
||||
use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
|
||||
|
||||
if use libedit; then
|
||||
einfo "Using libedit to provide readline extension"
|
||||
myconf="${myconf} --enable-libedit --with-readline"
|
||||
elif use readline; then
|
||||
einfo "Using readline to provide readline extension"
|
||||
myconf="${myconf} --with-readline"
|
||||
else
|
||||
myconf="${myconf} --without-readline"
|
||||
fi
|
||||
|
||||
econf \
|
||||
--program-suffix="${MY_SUFFIX}" \
|
||||
--enable-shared \
|
||||
$(use_enable socks5 socks) \
|
||||
$(use_enable doc install-doc) \
|
||||
$(use_enable threads pthread) \
|
||||
--enable-ipv6 \
|
||||
$(use_enable debug) \
|
||||
$(use_with berkdb dbm) \
|
||||
$(use_with gdbm) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with tk) \
|
||||
$(use_with ncurses curses) \
|
||||
${myconf} \
|
||||
--with-sitedir=/usr/$(get_libdir)/ruby/site_ruby \
|
||||
--enable-option-checking=no \
|
||||
|| die "econf failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake EXTLDFLAGS="${LDFLAGS}" || die "emake failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 test || die "make test failed"
|
||||
|
||||
elog "Ruby's make test has been run. Ruby also ships with a make check"
|
||||
elog "that cannot be run until after ruby has been installed."
|
||||
elog
|
||||
if use rubytests; then
|
||||
elog "You have enabled rubytests, so they will be installed to"
|
||||
elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
|
||||
elog "than root, and you must place them into a writeable directory."
|
||||
elog "Then call: "
|
||||
elog
|
||||
elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
|
||||
else
|
||||
elog "Enable the rubytests USE flag to install the make check tests"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Ruby is involved in the install process, we don't want interference here.
|
||||
unset RUBYOPT
|
||||
|
||||
local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
|
||||
|
||||
LD_LIBRARY_PATH="${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
|
||||
RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
|
||||
for d in $(find "${S}/ext" -type d) ; do
|
||||
RUBYLIB="${RUBYLIB}:$d"
|
||||
done
|
||||
export LD_LIBRARY_PATH RUBYLIB
|
||||
|
||||
emake DESTDIR="${D}" install || die "make install failed"
|
||||
|
||||
keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitelibdir']")
|
||||
keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitearchdir']")
|
||||
|
||||
if use doc; then
|
||||
make DESTDIR="${D}" install-doc || die "make install-doc failed"
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r sample
|
||||
fi
|
||||
|
||||
dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \
|
||||
"/usr/$(get_libdir)/libruby$(get_libname ${PV%.*})"
|
||||
dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \
|
||||
"/usr/$(get_libdir)/libruby$(get_libname ${PV%_*})"
|
||||
|
||||
dodoc ChangeLog NEWS README* ToDo || die
|
||||
|
||||
if use rubytests; then
|
||||
pushd test
|
||||
insinto /usr/share/${PN}-${SLOT}/test
|
||||
doins -r .
|
||||
popd
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then
|
||||
eselect ruby set ruby${MY_SUFFIX}
|
||||
fi
|
||||
|
||||
elog
|
||||
elog "To switch between available Ruby profiles, execute as root:"
|
||||
elog "\teselect ruby set ruby(18|19|...)"
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect ruby cleanup
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.7_p358.ebuild,v 1.2 2012/04/26 16:55:14 aballier Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.7_p371.ebuild,v 1.1 2013/01/06 14:16:19 graaff Exp $
|
||||
|
||||
EAPI=2
|
||||
|
@ -0,0 +1,53 @@
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=589735
|
||||
|
||||
--- a/js/src/jsgcchunk.cpp 2011-03-31 21:08:36.000000000 +0200
|
||||
+++ b/js/src/jsgcchunk.cpp 2012-11-02 10:36:08.324453878 +0100
|
||||
@@ -318,15 +318,48 @@
|
||||
static void *
|
||||
MapPages(void *addr, size_t size)
|
||||
{
|
||||
+#if defined(__ia64__)
|
||||
+ /*
|
||||
+ * The JS engine assumes that all allocated pointers have their high 17 bits clear,
|
||||
+ * which ia64's mmap doesn't support directly. However, we can emulate it by passing
|
||||
+ * mmap an "addr" parameter with those bits clear. The mmap will return that address,
|
||||
+ * or the nearest available memory above that address, providing a near-guarantee
|
||||
+ * that those bits are clear. If they are not, we return NULL below to indicate
|
||||
+ * out-of-memory.
|
||||
+ *
|
||||
+ * The addr is chosen as 0x0000070000000000, which still allows about 120TB of virtual
|
||||
+ * address space.
|
||||
+ *
|
||||
+ * See Bug 589735 for more information.
|
||||
+ */
|
||||
+#endif
|
||||
+
|
||||
/*
|
||||
* We don't use MAP_FIXED here, because it can cause the *replacement*
|
||||
* of existing mappings, and we only want to create new mappings.
|
||||
*/
|
||||
+#if defined(__ia64__)
|
||||
+ void *p = mmap(addr ? addr : (void*)0x0000070000000000,
|
||||
+ size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON,
|
||||
+ -1, 0);
|
||||
+#else
|
||||
void *p = mmap(addr, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON,
|
||||
-1, 0);
|
||||
+#endif
|
||||
if (p == MAP_FAILED)
|
||||
return NULL;
|
||||
+#if defined(__ia64__)
|
||||
+ /*
|
||||
+ * If the caller requested a specific memory location, verify that's what mmap returned.
|
||||
+ * Otherwise: If the allocated memory doesn't have its upper 17 bits clear, consider it
|
||||
+ * as out of memory.
|
||||
+ */
|
||||
+ if (addr && p != addr
|
||||
+ || !addr && ((long long)p & 0xffff800000000000)) {
|
||||
+#else
|
||||
+ /* If the caller requested a specific memory location, verify that's what mmap returned. */
|
||||
if (addr && p != addr) {
|
||||
+#endif
|
||||
/* We succeeded in mapping memory, but not in the right place. */
|
||||
JS_ALWAYS_TRUE(munmap(p, size) == 0);
|
||||
return NULL;
|
@ -0,0 +1,381 @@
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=589735
|
||||
|
||||
--- a/js/src/jsatom.cpp 2011-03-31 21:08:36.000000000 +0200
|
||||
+++ b/js/src/jsatom.cpp 2012-11-02 10:43:16.970562590 +0100
|
||||
@@ -603,11 +603,13 @@
|
||||
JSString str, *str2;
|
||||
JSAtomState *state;
|
||||
|
||||
+#ifdef JS_HAS_STATIC_STRINGS
|
||||
if (length == 1) {
|
||||
jschar c = *chars;
|
||||
if (c < UNIT_STRING_LIMIT)
|
||||
return STRING_TO_ATOM(JSString::unitString(c));
|
||||
}
|
||||
+#endif
|
||||
|
||||
str.initFlatNotTerminated((jschar *)chars, length);
|
||||
state = &cx->runtime->atomState;
|
||||
--- a/js/src/jsiter.cpp 2011-03-31 21:08:36.000000000 +0200
|
||||
+++ b/js/src/jsiter.cpp 2012-11-02 10:43:16.974562590 +0100
|
||||
@@ -1002,9 +1002,12 @@
|
||||
|
||||
JSString *str;
|
||||
jsint i;
|
||||
+#ifdef JS_HAS_STATIC_STRINGS
|
||||
if (rval->isInt32() && (jsuint(i = rval->toInt32()) < INT_STRING_LIMIT)) {
|
||||
str = JSString::intString(i);
|
||||
- } else {
|
||||
+ } else
|
||||
+#endif
|
||||
+ {
|
||||
str = js_ValueToString(cx, *rval);
|
||||
if (!str)
|
||||
return false;
|
||||
--- a/js/src/jsnum.cpp 2011-03-31 21:08:36.000000000 +0200
|
||||
+++ b/js/src/jsnum.cpp 2012-11-02 10:43:16.982562589 +0100
|
||||
@@ -605,8 +605,10 @@
|
||||
{
|
||||
uint32 ui;
|
||||
if (si >= 0) {
|
||||
+#ifdef JS_HAS_STATIC_STRINGS
|
||||
if (si < INT_STRING_LIMIT)
|
||||
return JSString::intString(si);
|
||||
+#endif
|
||||
ui = si;
|
||||
} else {
|
||||
ui = uint32(-si);
|
||||
@@ -1169,6 +1171,7 @@
|
||||
|
||||
int32_t i;
|
||||
if (JSDOUBLE_IS_INT32(d, &i)) {
|
||||
+#ifdef JS_HAS_STATIC_STRINGS
|
||||
if (base == 10 && jsuint(i) < INT_STRING_LIMIT)
|
||||
return JSString::intString(i);
|
||||
if (jsuint(i) < jsuint(base)) {
|
||||
@@ -1176,6 +1179,7 @@
|
||||
return JSString::intString(i);
|
||||
return JSString::unitString(jschar('a' + i - 10));
|
||||
}
|
||||
+#endif
|
||||
|
||||
if (JSString *str = c->dtoaCache.lookup(base, d))
|
||||
return str;
|
||||
--- a/js/src/jsstr.cpp 2011-03-31 21:08:36.000000000 +0200
|
||||
+++ b/js/src/jsstr.cpp 2012-11-02 10:43:16.990562588 +0100
|
||||
@@ -3121,6 +3121,8 @@
|
||||
JS_FS_END
|
||||
};
|
||||
|
||||
+#ifdef JS_HAS_STATIC_STRINGS
|
||||
+
|
||||
/*
|
||||
* Set up some tools to make it easier to generate large tables. After constant
|
||||
* folding, for each n, Rn(0) is the comma-separated list R(0), R(1), ..., R(2^n-1).
|
||||
@@ -3291,6 +3293,8 @@
|
||||
#undef R3
|
||||
#undef R7
|
||||
|
||||
+#endif /* defined(JS_HAS_STATIC_STRINGS) */
|
||||
+
|
||||
JSBool
|
||||
js_String(JSContext *cx, uintN argc, Value *vp)
|
||||
{
|
||||
@@ -3331,6 +3335,7 @@
|
||||
uint16_t code;
|
||||
if (!ValueToUint16(cx, argv[0], &code))
|
||||
return JS_FALSE;
|
||||
+#ifdef JS_HAS_STATIC_STRINGS
|
||||
if (code < UNIT_STRING_LIMIT) {
|
||||
str = JSString::unitString(code);
|
||||
if (!str)
|
||||
@@ -3338,6 +3343,7 @@
|
||||
vp->setString(str);
|
||||
return JS_TRUE;
|
||||
}
|
||||
+#endif
|
||||
argv[0].setInt32(code);
|
||||
}
|
||||
chars = (jschar *) cx->malloc((argc + 1) * sizeof(jschar));
|
||||
@@ -3367,8 +3373,10 @@
|
||||
{
|
||||
JS_ASSERT(JS_ON_TRACE(cx));
|
||||
jschar c = (jschar)i;
|
||||
+#ifdef JS_HAS_STATIC_STRINGS
|
||||
if (c < UNIT_STRING_LIMIT)
|
||||
return JSString::unitString(c);
|
||||
+#endif
|
||||
return js_NewStringCopyN(cx, &c, 1);
|
||||
}
|
||||
#endif
|
||||
--- a/js/src/jsstr.h 2011-03-31 21:08:36.000000000 +0200
|
||||
+++ b/js/src/jsstr.h 2012-11-02 10:43:16.998562587 +0100
|
||||
@@ -57,6 +57,15 @@
|
||||
#include "jsvalue.h"
|
||||
#include "jscell.h"
|
||||
|
||||
+#if !defined(__ia64__)
|
||||
+/*
|
||||
+ * Don't use static strings on ia64 since the compiler may put the static
|
||||
+ * memory out of the acceptable 47-bit jsval pointer range.
|
||||
+ */
|
||||
+# define JS_HAS_STATIC_STRINGS
|
||||
+#endif
|
||||
+
|
||||
+#ifdef JS_HAS_STATIC_STRINGS
|
||||
enum {
|
||||
UNIT_STRING_LIMIT = 256U,
|
||||
SMALL_CHAR_LIMIT = 128U, /* Bigger chars cannot be in a length-2 string. */
|
||||
@@ -64,6 +73,7 @@
|
||||
INT_STRING_LIMIT = 256U,
|
||||
NUM_HUNDRED_STRINGS = 156U
|
||||
};
|
||||
+#endif
|
||||
|
||||
extern jschar *
|
||||
js_GetDependentStringChars(JSString *str);
|
||||
@@ -380,10 +390,15 @@
|
||||
typedef uint8 SmallChar;
|
||||
|
||||
static inline bool fitsInSmallChar(jschar c) {
|
||||
+#ifdef JS_HAS_STATIC_STRINGS
|
||||
return c < SMALL_CHAR_LIMIT && toSmallChar[c] != INVALID_SMALL_CHAR;
|
||||
+#else
|
||||
+ return false;
|
||||
+#endif
|
||||
}
|
||||
|
||||
static inline bool isUnitString(void *ptr) {
|
||||
+#ifdef JS_HAS_STATIC_STRINGS
|
||||
jsuword delta = reinterpret_cast<jsuword>(ptr) -
|
||||
reinterpret_cast<jsuword>(unitStringTable);
|
||||
if (delta >= UNIT_STRING_LIMIT * sizeof(JSString))
|
||||
@@ -392,9 +407,13 @@
|
||||
/* If ptr points inside the static array, it must be well-aligned. */
|
||||
JS_ASSERT(delta % sizeof(JSString) == 0);
|
||||
return true;
|
||||
+#else
|
||||
+ return false;
|
||||
+#endif
|
||||
}
|
||||
|
||||
static inline bool isLength2String(void *ptr) {
|
||||
+#ifdef JS_HAS_STATIC_STRINGS
|
||||
jsuword delta = reinterpret_cast<jsuword>(ptr) -
|
||||
reinterpret_cast<jsuword>(length2StringTable);
|
||||
if (delta >= NUM_SMALL_CHARS * NUM_SMALL_CHARS * sizeof(JSString))
|
||||
@@ -403,9 +422,13 @@
|
||||
/* If ptr points inside the static array, it must be well-aligned. */
|
||||
JS_ASSERT(delta % sizeof(JSString) == 0);
|
||||
return true;
|
||||
+#else
|
||||
+ return false;
|
||||
+#endif
|
||||
}
|
||||
|
||||
static inline bool isHundredString(void *ptr) {
|
||||
+#ifdef JS_HAS_STATIC_STRINGS
|
||||
jsuword delta = reinterpret_cast<jsuword>(ptr) -
|
||||
reinterpret_cast<jsuword>(hundredStringTable);
|
||||
if (delta >= NUM_HUNDRED_STRINGS * sizeof(JSString))
|
||||
@@ -414,6 +437,9 @@
|
||||
/* If ptr points inside the static array, it must be well-aligned. */
|
||||
JS_ASSERT(delta % sizeof(JSString) == 0);
|
||||
return true;
|
||||
+#else
|
||||
+ return false;
|
||||
+#endif
|
||||
}
|
||||
|
||||
static inline bool isStatic(void *ptr) {
|
||||
@@ -424,6 +450,7 @@
|
||||
#pragma align 8 (__1cIJSStringPunitStringTable_, __1cIJSStringSlength2StringTable_, __1cIJSStringShundredStringTable_)
|
||||
#endif
|
||||
|
||||
+#ifdef JS_HAS_STATIC_STRINGS
|
||||
static const SmallChar INVALID_SMALL_CHAR = -1;
|
||||
|
||||
static const jschar fromSmallChar[];
|
||||
@@ -436,6 +463,7 @@
|
||||
* strings, we keep a table to map from integer to the correct string.
|
||||
*/
|
||||
static const JSString *const intStringTable[];
|
||||
+#endif
|
||||
|
||||
static JSFlatString *unitString(jschar c);
|
||||
static JSLinearString *getUnitString(JSContext *cx, JSString *str, size_t index);
|
||||
--- a/js/src/jsstrinlines.h 2011-03-31 21:08:36.000000000 +0200
|
||||
+++ b/js/src/jsstrinlines.h 2012-11-02 10:43:17.010562586 +0100
|
||||
@@ -215,52 +215,75 @@
|
||||
inline JSFlatString *
|
||||
JSString::unitString(jschar c)
|
||||
{
|
||||
+#ifdef JS_HAS_STATIC_STRINGS
|
||||
JS_ASSERT(c < UNIT_STRING_LIMIT);
|
||||
return const_cast<JSString *>(&unitStringTable[c])->assertIsFlat();
|
||||
+#else
|
||||
+ JS_NOT_REACHED("no static strings");
|
||||
+ return NULL;
|
||||
+#endif
|
||||
}
|
||||
|
||||
inline JSLinearString *
|
||||
JSString::getUnitString(JSContext *cx, JSString *str, size_t index)
|
||||
{
|
||||
JS_ASSERT(index < str->length());
|
||||
+#ifdef JS_HAS_STATIC_STRINGS
|
||||
const jschar *chars = str->getChars(cx);
|
||||
if (!chars)
|
||||
return NULL;
|
||||
jschar c = chars[index];
|
||||
if (c < UNIT_STRING_LIMIT)
|
||||
return unitString(c);
|
||||
+#endif
|
||||
return js_NewDependentString(cx, str, index, 1);
|
||||
}
|
||||
|
||||
inline JSFlatString *
|
||||
JSString::length2String(jschar c1, jschar c2)
|
||||
{
|
||||
+#ifdef JS_HAS_STATIC_STRINGS
|
||||
JS_ASSERT(fitsInSmallChar(c1));
|
||||
JS_ASSERT(fitsInSmallChar(c2));
|
||||
return const_cast<JSString *> (
|
||||
&length2StringTable[(((size_t)toSmallChar[c1]) << 6) + toSmallChar[c2]]
|
||||
)->assertIsFlat();
|
||||
+#else
|
||||
+ JS_NOT_REACHED("no static strings");
|
||||
+ return NULL;
|
||||
+#endif
|
||||
}
|
||||
|
||||
inline JSFlatString *
|
||||
JSString::length2String(uint32 i)
|
||||
{
|
||||
+#ifdef JS_HAS_STATIC_STRINGS
|
||||
JS_ASSERT(i < 100);
|
||||
return length2String('0' + i / 10, '0' + i % 10);
|
||||
+#else
|
||||
+ JS_NOT_REACHED("no static strings");
|
||||
+ return NULL;
|
||||
+#endif
|
||||
}
|
||||
|
||||
inline JSFlatString *
|
||||
JSString::intString(jsint i)
|
||||
{
|
||||
+#ifdef JS_HAS_STATIC_STRINGS
|
||||
jsuint u = jsuint(i);
|
||||
JS_ASSERT(u < INT_STRING_LIMIT);
|
||||
return const_cast<JSString *>(JSString::intStringTable[u])->assertIsFlat();
|
||||
+#else
|
||||
+ JS_NOT_REACHED("no static strings");
|
||||
+ return NULL;
|
||||
+#endif
|
||||
}
|
||||
|
||||
/* Get a static atomized string for chars if possible. */
|
||||
inline JSFlatString *
|
||||
JSString::lookupStaticString(const jschar *chars, size_t length)
|
||||
{
|
||||
+#ifdef JS_HAS_STATIC_STRINGS
|
||||
if (length == 1) {
|
||||
if (chars[0] < UNIT_STRING_LIMIT)
|
||||
return unitString(chars[0]);
|
||||
@@ -290,6 +313,7 @@
|
||||
return intString(i);
|
||||
}
|
||||
}
|
||||
+#endif
|
||||
|
||||
return NULL;
|
||||
}
|
||||
--- a/js/src/jstracer.cpp 2011-03-31 21:08:36.000000000 +0200
|
||||
+++ b/js/src/jstracer.cpp 2012-11-02 10:43:17.022562584 +0100
|
||||
@@ -11505,6 +11505,7 @@
|
||||
}
|
||||
if (vp[1].isString()) {
|
||||
JSString *str = vp[1].toString();
|
||||
+#ifdef JS_HAS_STATIC_STRINGS
|
||||
if (native == js_str_charAt) {
|
||||
jsdouble i = vp[2].toNumber();
|
||||
if (JSDOUBLE_IS_NaN(i))
|
||||
@@ -11518,7 +11519,9 @@
|
||||
set(&vp[0], char_ins);
|
||||
pendingSpecializedNative = IGNORE_NATIVE_CALL_COMPLETE_CALLBACK;
|
||||
return RECORD_CONTINUE;
|
||||
- } else if (native == js_str_charCodeAt) {
|
||||
+ } else
|
||||
+#endif
|
||||
+ if (native == js_str_charCodeAt) {
|
||||
jsdouble i = vp[2].toNumber();
|
||||
if (JSDOUBLE_IS_NaN(i))
|
||||
i = 0;
|
||||
@@ -12967,6 +12970,7 @@
|
||||
JS_STATIC_ASSERT(sizeof(JSString) == 16 || sizeof(JSString) == 32);
|
||||
|
||||
|
||||
+#ifdef JS_HAS_STATIC_STRINGS
|
||||
JS_REQUIRES_STACK LIns*
|
||||
TraceRecorder::getUnitString(LIns* str_ins, LIns* idx_ins)
|
||||
{
|
||||
@@ -13010,6 +13014,7 @@
|
||||
}
|
||||
return RECORD_CONTINUE;
|
||||
}
|
||||
+#endif
|
||||
|
||||
// Typed array tracing depends on EXPANDED_LOADSTORE and F2I
|
||||
#if NJ_EXPANDED_LOADSTORE_SUPPORTED && NJ_F2I_SUPPORTED
|
||||
@@ -13044,6 +13049,7 @@
|
||||
LIns* obj_ins = get(&lval);
|
||||
LIns* idx_ins = get(&idx);
|
||||
|
||||
+#ifdef JS_HAS_STATIC_STRINGS
|
||||
// Special case for array-like access of strings.
|
||||
if (lval.isString() && hasInt32Repr(idx)) {
|
||||
if (call)
|
||||
@@ -13056,6 +13062,7 @@
|
||||
set(&lval, char_ins);
|
||||
return ARECORD_CONTINUE;
|
||||
}
|
||||
+#endif
|
||||
|
||||
if (lval.isPrimitive())
|
||||
RETURN_STOP_A("JSOP_GETLEM on a primitive");
|
||||
--- a/js/src/jstracer.h 2011-03-31 21:08:36.000000000 +0200
|
||||
+++ b/js/src/jstracer.h 2012-11-02 10:43:17.034562582 +0100
|
||||
@@ -1394,10 +1394,12 @@
|
||||
JS_REQUIRES_STACK RecordingStatus getCharCodeAt(JSString *str,
|
||||
nanojit::LIns* str_ins, nanojit::LIns* idx_ins,
|
||||
nanojit::LIns** out_ins);
|
||||
+#ifdef JS_HAS_STATIC_STRINGS
|
||||
JS_REQUIRES_STACK nanojit::LIns* getUnitString(nanojit::LIns* str_ins, nanojit::LIns* idx_ins);
|
||||
JS_REQUIRES_STACK RecordingStatus getCharAt(JSString *str,
|
||||
nanojit::LIns* str_ins, nanojit::LIns* idx_ins,
|
||||
JSOp mode, nanojit::LIns** out_ins);
|
||||
+#endif
|
||||
|
||||
JS_REQUIRES_STACK RecordingStatus initOrSetPropertyByName(nanojit::LIns* obj_ins,
|
||||
Value* idvalp, Value* rvalp,
|
||||
--- a/js/src/tracejit/Writer.cpp 2011-03-31 21:08:36.000000000 +0200
|
||||
+++ b/js/src/tracejit/Writer.cpp 2012-11-02 10:43:17.038562582 +0100
|
||||
@@ -246,7 +246,9 @@
|
||||
// ins = andq ins_oprnd1, ins_oprnd2
|
||||
ret = true;
|
||||
#endif
|
||||
- } else if (ins->isop(LIR_addp) &&
|
||||
+ }
|
||||
+#ifdef JS_HAS_STATIC_STRINGS
|
||||
+ else if (ins->isop(LIR_addp) &&
|
||||
((ins->oprnd1()->isImmP() &&
|
||||
(void *)ins->oprnd1()->immP() == JSString::unitStringTable) ||
|
||||
(ins->oprnd2()->isImmP() &&
|
||||
@@ -258,6 +260,7 @@
|
||||
// ins = addp JSString::unitStringTable, ...
|
||||
ret = true;
|
||||
}
|
||||
+#endif
|
||||
|
||||
return ret;
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST cloog-0.17.0.tar.gz 4253468 SHA256 f265f5069830c03d2919a7673c0963495437d6d79a8cbd3474cde2d4e3291e04 SHA512 05ddc455b9b6875f8ef5bff83046d29fdb082db49b10806d84719054c678c6fa976f80b047a5a76ce36e4c6f2a371c406dd20e2938c88b95c77d3c411d01c39c WHIRLPOOL 6172f34cb0f7b25ebfc2722e7cd378fe29ffbe61a9cd7d5c994a50f44f75a12a6cdd4e72e8c90a6f0473c87d6eb958b049d85f4e75c0042a0b1283f3aa87adab
|
||||
DIST cloog-0.18.0.tar.gz 3776262 SHA256 1c4aa8dde7886be9cbe0f9069c334843b21028f61d344a2d685f88cb1dcf2228 SHA512 34404984c4269dfc19673712271b08f220b6b49e451e7479cefbc5d2f27ab8e780f5d51fbbc7cecb974dab655673d8348f2a1ece3a60feaeeb9413fccf16eb1d WHIRLPOOL e079de53e876448f1e9b783c864b820ebae39fca4f51d59e2528b1b68530910c48b23719e3fd760bf105e03838651e15f367709a2c8dde022627fe3f158134ea
|
||||
|
@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/cloog/cloog-0.18.0.ebuild,v 1.1 2013/01/07 00:28:01 dirtyepic Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="A loop generator for scanning polyhedra"
|
||||
HOMEPAGE="http://www.bastoul.net/cloog/index.php"
|
||||
SRC_URI="http://www.bastoul.net/cloog/pages/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="static-libs"
|
||||
|
||||
DEPEND="dev-libs/gmp
|
||||
>=dev-libs/isl-0.11.1
|
||||
!<dev-libs/cloog-ppl-0.15.10"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
DOCS=( README )
|
||||
|
||||
src_prepare() {
|
||||
# m4/ax_create_pkgconfig_info.m4 includes LDFLAGS
|
||||
# sed to avoid eautoreconf
|
||||
sed -i -e '/Libs:/s:@LDFLAGS@ ::' configure || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--with-isl=system \
|
||||
--with-polylib=no \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
prune_libtool_files
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST isl-0.09.tar.bz2 1046002 SHA256 4f3290a3adcc2ca4bf94432194635140ebf9c9c2bb73acfa79ec259f91092934 SHA512 6f9373251285651fcc32fb06b997a1a8928f16023596903d9f3d716d5491c84bda184044d648e371f7841c484124542daf7b1adb48be77045de2d8c1ca499bdd WHIRLPOOL 60592973e6f112da5144f918a95b83248644a96ac01b395cfea816ef050dc9255c6e00a31c55190a54897265b83bb717b4560ef0b24a24d9b1240e87c30a911a
|
||||
DIST isl-0.10.tar.bz2 1076325 SHA256 73980d8ea801f8aeff4ee57ee0be142f109f5a9f9e797d07fde02efe23b8151f SHA512 e809d3048d8588d02d545c7b7a0bdef3694f93c3eeb154e0ef6d346b7d069625704196fbe15d11f71059c638188316440221413876552841c0d7c9b6fb1b68e0 WHIRLPOOL 95989761b44b1e3e1d4a4aac74b707ce8d649c757ed541a47e5de83b34aaffa0320b161999c8dd233bf03771f87d66da7b009fef15784d1f973615d545af8253
|
||||
DIST isl-0.11.1.tar.bz2 1244610 SHA256 095f4b54c88ca13a80d2b025d9c551f89ea7ba6f6201d701960bfe5c1466a98d SHA512 f021ef6982b30a4834bc459af3520bd74b9c6af3e479b344c2d0e1bb4550b85cd30612e342ac761d85f1d2e2160ab3183e1252696726f438e61fb070a7a7bd22 WHIRLPOOL 369e6412c55b194516e4bd5c609d0fbe56093001d324d90f7c0729160f12c4cea4cdb8aa9b4fc29da4e3e95ba5a080dc5761740ffa0cadefa9e544a6b4da97fe
|
||||
|
@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/isl/isl-0.11.1.ebuild,v 1.1 2013/01/07 00:23:02 dirtyepic Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="A library for manipulating integer points bounded by affine constraints."
|
||||
HOMEPAGE="http://www.kotnet.org/~skimo/isl/"
|
||||
SRC_URI="http://www.kotnet.org/~skimo/isl/${P}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="static-libs"
|
||||
|
||||
RDEPEND="dev-libs/gmp"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
DOCS=( ChangeLog AUTHORS doc/manual.pdf )
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-0.07-gdb-autoload-dir.patch
|
||||
|
||||
# m4/ax_create_pkgconfig_info.m4 is broken but avoid eautoreconf
|
||||
# http://groups.google.com/group/isl-development/t/37ad876557e50f2c
|
||||
sed -i -e '/Libs:/s:@LDFLAGS@ ::' configure || die #382737
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
prune_libtool_files
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
--- lib/cmake/FindQt5Transitional.cmake
|
||||
+++ lib/cmake/FindQt5Transitional.cmake
|
||||
@@ -1,5 +1,8 @@
|
||||
+option(WITH_Qt5 ON)
|
||||
|
||||
-find_package(Qt5Core QUIET)
|
||||
+if (WITH_Qt5)
|
||||
+ find_package(Qt5Core QUIET)
|
||||
+endif()
|
||||
|
||||
if (Qt5Core_FOUND)
|
||||
if (NOT Qt5Transitional_FIND_COMPONENTS)
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue