parent
394efa3319
commit
e4cec67d9e
@ -1,2 +1 @@
|
||||
DIST cpulimit-1.1.tar.gz 5130 SHA256 ee734e82692dc496a083c003340b326bd779567f5de99fcae99e451606c85c00 SHA512 dfc111e90ee01f1f5277b5be1e5f9dbccb560dced335207b58b5db2a370013f76dd557dd3f63d9501011f3b34c41e21b5845fc4ac00f3eceac8b1179db1c747b WHIRLPOOL d763ea90f882c27a25d5d33bbafb8c4a3834513987d6c1a8e94cf5bed6f8d4046b4491b7b9fdfe09d3047f27cd6b015b6514c67aa609f653bda56ad06a8731fa
|
||||
DIST cpulimit-1.8.tar.gz 20610 SHA256 8d0cdc3ec3e462f2ddc6debb195e1a4e7a19cce8233211f473d921f1c517d5f5 SHA512 3098236139b092eb706ec2a6b84528a090b3f4b8b3adfc8debda1b92ffa119ed9adc508898e0f98add593561f5f6b67d52e0966de01a682a6e2e885e3c47b0fa WHIRLPOOL f9be855b9a4b010c8456c2841afc3551a9a28bfc4a9ec3211e2c1e312bf43cdce9e1b745cc325342433feca5a73df03860469ea3a966d3bd37f7ad11a1627510
|
||||
|
@ -1,31 +0,0 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/cpulimit/cpulimit-1.1.ebuild,v 1.7 2009/09/14 21:02:40 volkmar Exp $
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="Limits the CPU usage of a process"
|
||||
HOMEPAGE="http://cpulimit.sourceforge.net"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~ppc x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
epatch "${FILESDIR}/${P}-makefile.patch"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dosbin cpulimit
|
||||
doman "${FILESDIR}/cpulimit.8"
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
--- cpulimit-1.1~/Makefile 2006-07-12 23:33:51.000000000 +0200
|
||||
+++ cpulimit-1.1/Makefile 2006-07-12 23:34:48.000000000 +0200
|
||||
@@ -1,7 +1,7 @@
|
||||
all:: cpulimit
|
||||
|
||||
cpulimit: cpulimit.c
|
||||
- gcc -o cpulimit cpulimit.c -lrt -Wall -O2
|
||||
+ $(CC) $(CFLAGS) $(LDFLAGS) -o cpulimit cpulimit.c -lrt
|
||||
|
||||
clean:
|
||||
rm -f *~ cpulimit
|
@ -1,17 +0,0 @@
|
||||
diff -burN cpulimit-9999~/Makefile cpulimit-9999/Makefile
|
||||
--- cpulimit-9999~/Makefile 2010-06-20 02:55:22.046518587 +0100
|
||||
+++ cpulimit-9999/Makefile 2010-06-20 03:05:25.439517679 +0100
|
||||
@@ -6,7 +6,7 @@
|
||||
all:: $(TARGETS)
|
||||
|
||||
cpulimit: cpulimit.c $(LIBS)
|
||||
- $(CC) -o cpulimit cpulimit.c $(LIBS) $(CFLAGS)
|
||||
+ $(CC) $(CFLAGS) $(LDFLAGS) -o cpulimit cpulimit.c $(LIBS) -lrt
|
||||
|
||||
process.o: process.c process.h
|
||||
$(CC) -c process.c $(CFLAGS)
|
||||
@@ -19,4 +19,3 @@
|
||||
|
||||
clean:
|
||||
rm -f *~ *.o $(TARGETS)
|
||||
-
|
@ -0,0 +1,429 @@
|
||||
# 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.5.1.ebuild,v 1.3 2013/05/21 23:56:31 cardoe Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
#BACKPORTS=9bf6bec4
|
||||
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 systemd
|
||||
|
||||
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/stable_updates/${MY_P}.tar.gz
|
||||
ftp://libvirt.org/libvirt/stable_updates/${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 firewalld fuse 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 \
|
||||
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
|
||||
>=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? ( 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
|
||||
~BRIDGE_EBT_MARK_T
|
||||
~NETFILTER_ADVANCED
|
||||
~NETFILTER_XT_TARGET_CHECKSUM
|
||||
~NETFILTER_XT_CONNMARK
|
||||
~NETFILTER_XT_MARK
|
||||
"
|
||||
|
||||
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 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 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=""
|
||||
|
||||
## 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)"
|
||||
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="${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)"
|
||||
myconf="${myconf} $(use_with fuse)"
|
||||
|
||||
# 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"
|
||||
|
||||
# systemd unit files
|
||||
use systemd && myconf="${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 \
|
||||
--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 \
|
||||
SYSTEMD_UNIT_DIR="$(systemd_get_unitdir)" \
|
||||
|| 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}"/usr/lib/sysctl.d/libvirtd "${D}"/etc/sysctl.d/libvirtd.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use python && python_mod_optimize libvirt.py
|
||||
|
||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
||||
touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml
|
||||
fi
|
||||
|
||||
# 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
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
DIST zygrib-6.1.4.tgz 14448582 SHA256 3d5c3352f29049ae5a9b039b6d9ed10449bb72e6d10c90b755e581a7904d8e0c SHA512 64f643340c32f9d1381a9742cad4ebf6c3220c345a2eaad587b24d016a62811114fb957cb20aaf61ef0aaf52f829cbc23f531c27b3030882b8dc75fd030e697a WHIRLPOOL 38e2f0bc0782622631d444b955d94e80cb1fb3f667b09d36084004fcb93e6bdfc0241b05adee833924eefef64d0ce9fb29c053a20e0e1bb0ccfe0f35e2b321c0
|
||||
DIST zygrib-cities_0-300.txt.gz 517620 SHA256 443015f38acbe3cc972b04b80b0011c53bae939dcf1c23a2f1e4eb344048444b SHA512 f3c51e600e21d082759d3cf71c48742896e8cf3838e08c57eefa312ac7ef2dd1f23cbf02e9374aa9779be4bc5c04fd2748ef814b5b4b40b9d24fe4f1f5de4d80 WHIRLPOOL 41433660c8044f8f970acac4e4cc0754fc6ffa313bb1ca4ea06475760bf50423f8244d8efd56d31f796da2768fb0886f94afd07d1441f66e822717315c036da3
|
||||
DIST zygrib-cities_1k-3k.txt.gz 495119 SHA256 08a4071b0044d20410c894bab11fcaf05533d3d8299233b91430b8f8eafe1ce1 SHA512 010d6688b9c381f0ace549c53a45f8bd43f1d6846dc01241ab7bfdf30b0629f39ef2a9a715c55a534634ad8480bc2edc2796a09f0c369406027f35f6b4ba8c08 WHIRLPOOL 05a03c46932ab2911a33644050d16837879765db362ecad63ae6dbc5674e9c0974a66d0f58133c05294f8b46f46fa1e5b2af326161f7cfe2e7aa08b2e314e7c0
|
||||
DIST zygrib-cities_300-1k.txt.gz 512733 SHA256 6fb04f9c27420ec6f4793be4842a6e6831ee1219d1834a8c1c7d67c3c19cafd0 SHA512 f22f10c5d4d011593cf658acc2b2bdb6678d9ad26be0dfab67e2e6546439adc2c5a26d04889ddfd3544dbd2ff4d52e1d17e7d4b7d929e589fe55ceb6c0dc4112 WHIRLPOOL 2642614d918ac091aca958143aee686dc077ca020962db224713507a6453ebf48fdc16b92b58560746b10edc5041814628f238fc42105e0bf473d871c474258b
|
||||
DIST zygrib-maps2.4.tgz 105735981 SHA256 3cd6bf3de709ff4afb193a7bb5455f28d6ab540687a97f2d978bd0a21592750e SHA512 0f10786ef81141299fd9550e36d976ce126b0d3523b56c10b19a839d56e17697ac93915b46f31d6691950f1e6d13c368fa1d198a5e2d830768fcb9e63034b487 WHIRLPOOL c92677721f234b80ee8f33c30f88f0ce5b82128ae189209f1d484fa1dae3a9dd1346ef8cf4b925cbdb1244f80f7ebb3adbe8229b3f27ce605e73dcce5f1fabee
|
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
cd /opt/zyGrib && exec bin/zyGrib
|
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Name=zyGrib
|
||||
GenericName=GRIB File Viewer
|
||||
Comment=Weather data visualization
|
||||
Exec=/usr/bin/zygrib
|
||||
Terminal=false
|
||||
X-MultipleArgs=false
|
||||
Icon=zygrib
|
||||
Type=Application
|
||||
Categories=Network;
|
After Width: | Height: | Size: 851 B |
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>mschiff@gentoo.org</email>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name='maps'>Installs additional GSHHS maps for high resolution coastline data and cities</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1,72 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/zygrib/zygrib-6.1.4.ebuild,v 1.2 2013/05/21 12:42:58 mschiff Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils qt4-r2
|
||||
|
||||
MY_PN="zyGrib"
|
||||
|
||||
DESCRIPTION="GRIB File Viewer - Weather data visualization"
|
||||
HOMEPAGE="http://www.zygrib.org/"
|
||||
SRC_URI="http://www.zygrib.org/getfile.php?file=${MY_PN}-${PV}.tgz -> ${P}.tgz
|
||||
maps? (
|
||||
http://zygrib.org/getfile.php?file=zyGrib_maps2.4.tgz -> zygrib-maps2.4.tgz
|
||||
http://www.zygrib.org/getfile.php?file=cities_1k-3k.txt.gz -> zygrib-cities_1k-3k.txt.gz
|
||||
http://www.zygrib.org/getfile.php?file=cities_300-1k.txt.gz -> zygrib-cities_300-1k.txt.gz
|
||||
http://www.zygrib.org/getfile.php?file=cities_0-300.txt.gz -> zygrib-cities_0-300.txt.gz
|
||||
)"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+maps"
|
||||
|
||||
DEPEND="app-arch/bzip2
|
||||
sci-libs/libnova
|
||||
sci-libs/proj
|
||||
sys-libs/zlib
|
||||
x11-libs/qwt:6"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
src_prepare() {
|
||||
sed -i 's,/usr/include/qwt ,/usr/include/qwt6 ,' src/zyGrib.pro
|
||||
sed -i 's,/usr/local/qwt6/lib/,/usr/lib/,' src/zyGrib.pro
|
||||
sed -i 's,-lqwt,-lqwt6,' src/zyGrib.pro
|
||||
sed -i 's,INSTALLDIR=$(HOME)/zyGrib,INSTALLDIR=$(DESTDIR)/opt/zyGrib,' Makefile
|
||||
}
|
||||
|
||||
#Maps
|
||||
#cd /opt/zyGrib/data/
|
||||
#sudo wget http://zygrib.org/getfile.php?file=zyGrib_maps2.tgz
|
||||
#sudo tar -xvvzf getfile.php?file=zyGrib_maps2.tgz
|
||||
#sudo chown -R root:root maps/*
|
||||
#sudo rm -rf getfile.php?file=zyGrib_maps2.tgz
|
||||
##Cities
|
||||
#cd ./gis
|
||||
#sudo wget http://www.zygrib.org/getfile.php?file=cities_1k-3k.txt.gz
|
||||
#sudo wget http://www.zygrib.org/getfile.php?file=cities_300-1k.txt.gz
|
||||
#sudo wget http://www.zygrib.org/getfile.php?file=cities_0-300.txt.gz
|
||||
#sudo mv getfile.php?file=cities_1k-3k.txt.gz cities_1k-3k.txt.gz
|
||||
#sudo mv getfile.php?file=cities_300-1k.txt.gz cities_300-1k.txt.gz
|
||||
#sudo mv getfile.php?file=cities_0-300.txt.gz cities_0-300.txt.gz
|
||||
|
||||
src_install() {
|
||||
default
|
||||
rm zyGrib
|
||||
doicon -s 32 "${FILESDIR}/zygrib.png"
|
||||
make_wrapper "${PN}" "./bin/${MY_PN}" "/opt/${MY_PN}"
|
||||
domenu "${FILESDIR}/zygrib.desktop"
|
||||
|
||||
if use maps; then
|
||||
insinto "/opt/${MY_PN}"
|
||||
doins -r "${WORKDIR}/data"
|
||||
insinto "/opt/${MY_PN}/data/gis"
|
||||
gzip "${WORKDIR}"/*.txt
|
||||
doins "${WORKDIR}"/*.txt.gz
|
||||
fi
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/qpdfview/qpdfview-0.4.2-r1.ebuild,v 1.1 2013/05/21 11:05:25 pinkbyte Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PLOCALES="ast az bg bs ca cs da de el en_GB eo es eu fi fr he hr id it ky ms my pl pt_BR ro ru sk tr ug uk zh_CN"
|
||||
inherit l10n multilib qt4-r2
|
||||
|
||||
DESCRIPTION="A tabbed document viewer"
|
||||
HOMEPAGE="http://launchpad.net/qpdfview"
|
||||
SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="cups dbus djvu +pdf postscript sqlite +svg synctex"
|
||||
|
||||
RDEPEND="app-text/poppler[qt4]
|
||||
dev-qt/qtcore:4[iconv]
|
||||
dev-qt/qtgui:4
|
||||
cups? ( net-print/cups )
|
||||
dbus? ( dev-qt/qtdbus:4 )
|
||||
djvu? ( app-text/djvu )
|
||||
postscript? ( app-text/libspectre )
|
||||
sqlite? ( dev-qt/qtsql:4[sqlite] )
|
||||
svg? ( dev-qt/qtsvg:4 )
|
||||
!svg? ( virtual/freedesktop-icon-theme )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
DOCS=( CHANGES CONTRIBUTORS README TODO )
|
||||
|
||||
prepare_locale() {
|
||||
lrelease "translations/${PN}_${1}.ts" || die "preparing ${1} locale failed"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
l10n_find_plocales_changes "translations" "${PN}_" '.ts'
|
||||
l10n_for_each_locale_do prepare_locale
|
||||
|
||||
qt4-r2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local config i
|
||||
|
||||
for i in cups dbus pdf djvu svg synctex ; do
|
||||
if ! use ${i} ; then
|
||||
config+=" without_${i}"
|
||||
fi
|
||||
done
|
||||
|
||||
if ! use sqlite ; then
|
||||
config+=" without_sql"
|
||||
fi
|
||||
|
||||
if ! use postscript ; then
|
||||
config+=" without_ps"
|
||||
fi
|
||||
|
||||
eqmake4 CONFIG+="${config}" PLUGIN_INSTALL_PATH="/usr/$(get_libdir)/${PN}"
|
||||
}
|
@ -0,0 +1,161 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/sqlite-3.7.17.ebuild,v 1.1 2013/05/21 22:49:34 floppym Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib versionator
|
||||
|
||||
SRC_PV="$(printf "%u%02u%02u%02u" $(get_version_components))"
|
||||
DOC_PV="${SRC_PV}"
|
||||
# DOC_PV="$(printf "%u%02u%02u00" $(get_version_components $(get_version_component_range 1-3)))"
|
||||
|
||||
DESCRIPTION="A SQL Database Engine in a C Library"
|
||||
HOMEPAGE="http://sqlite.org/"
|
||||
SRC_URI="doc? ( http://sqlite.org/2013/${PN}-doc-${DOC_PV}.zip )
|
||||
tcl? ( http://sqlite.org/2013/${PN}-src-${SRC_PV}.zip )
|
||||
!tcl? (
|
||||
test? ( http://sqlite.org/2013/${PN}-src-${SRC_PV}.zip )
|
||||
!test? ( http://sqlite.org/2013/${PN}-autoconf-${SRC_PV}.tar.gz )
|
||||
)"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="debug doc +extensions icu +readline secure-delete static-libs tcl test"
|
||||
|
||||
RDEPEND="icu? ( dev-libs/icu:= )
|
||||
readline? ( sys-libs/readline )
|
||||
tcl? ( dev-lang/tcl:= )"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-arch/unzip )
|
||||
tcl? ( app-arch/unzip )
|
||||
test? (
|
||||
app-arch/unzip
|
||||
dev-lang/tcl
|
||||
)"
|
||||
|
||||
amalgamation() {
|
||||
use !tcl && use !test
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if amalgamation; then
|
||||
S="${WORKDIR}/${PN}-autoconf-${SRC_PV}"
|
||||
else
|
||||
S="${WORKDIR}/${PN}-src-${SRC_PV}"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# At least ppc-aix, x86-interix and *-solaris need newer libtool.
|
||||
use prefix && eautoreconf
|
||||
|
||||
if amalgamation; then
|
||||
epunt_cxx
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# `configure` from amalgamation tarball does not add -DSQLITE_DEBUG or -DNDEBUG flag.
|
||||
if amalgamation; then
|
||||
if use debug; then
|
||||
append-cppflags -DSQLITE_DEBUG
|
||||
else
|
||||
append-cppflags -DNDEBUG
|
||||
fi
|
||||
fi
|
||||
|
||||
# Support column metadata functions.
|
||||
# http://sqlite.org/c3ref/column_database_name.html
|
||||
# http://sqlite.org/c3ref/table_column_metadata.html
|
||||
append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
|
||||
|
||||
# Support Full-Text Search versions 3 and 4.
|
||||
# http://sqlite.org/fts3.html
|
||||
append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS4_UNICODE61
|
||||
|
||||
# Support R*Trees.
|
||||
# http://sqlite.org/rtree.html
|
||||
append-cppflags -DSQLITE_ENABLE_RTREE
|
||||
|
||||
# Support soundex() function.
|
||||
# http://sqlite.org/lang_corefunc.html#soundex
|
||||
append-cppflags -DSQLITE_SOUNDEX
|
||||
|
||||
# Support unlock notification.
|
||||
# http://sqlite.org/unlock_notify.html
|
||||
append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
|
||||
|
||||
if use icu; then
|
||||
append-cppflags -DSQLITE_ENABLE_ICU
|
||||
if amalgamation; then
|
||||
sed -e "s/LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
|
||||
else
|
||||
sed -e "s/TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Enable secure_delete pragma by default.
|
||||
# http://sqlite.org/pragma.html#pragma_secure_delete
|
||||
if use secure-delete; then
|
||||
append-cppflags -DSQLITE_SECURE_DELETE -DSQLITE_CHECK_PAGES -DSQLITE_CORE
|
||||
fi
|
||||
|
||||
local extensions_option
|
||||
if amalgamation; then
|
||||
extensions_option="dynamic-extensions"
|
||||
else
|
||||
extensions_option="load-extension"
|
||||
fi
|
||||
|
||||
# Starting from 3.6.23, SQLite has locking strategies that are specific to
|
||||
# OSX. By default they are enabled, and use semantics that only make sense
|
||||
# on OSX. However, they require gethostuuid() function for that, which is
|
||||
# only available on OSX starting from 10.6 (Snow Leopard). For earlier
|
||||
# versions of OSX we have to disable all this nifty locking options, as
|
||||
# suggested by upstream.
|
||||
if [[ "${CHOST}" == *-darwin[56789] ]]; then
|
||||
append-cppflags -DSQLITE_ENABLE_LOCKING_STYLE="0"
|
||||
fi
|
||||
|
||||
if [[ "${CHOST}" == *-mint* ]]; then
|
||||
append-cppflags -DSQLITE_OMIT_WAL
|
||||
fi
|
||||
|
||||
# `configure` from amalgamation tarball does not support
|
||||
# --with-readline-inc and --(enable|disable)-tcl options.
|
||||
econf \
|
||||
--enable-threadsafe \
|
||||
$(use_enable extensions ${extensions_option}) \
|
||||
$(use_enable readline) \
|
||||
$(use_enable static-libs static) \
|
||||
$(amalgamation || echo --with-readline-inc="-I${EPREFIX}/usr/include/readline") \
|
||||
$(amalgamation || use_enable debug) \
|
||||
$(amalgamation || echo --enable-tcl)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if [[ "${EUID}" -eq 0 ]]; then
|
||||
ewarn "Skipping tests due to root permissions"
|
||||
return
|
||||
fi
|
||||
|
||||
emake $(use debug && echo fulltest || echo test)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
|
||||
prune_libtool_files
|
||||
|
||||
doman sqlite3.1
|
||||
|
||||
if use doc; then
|
||||
find "${WORKDIR}/${PN}-doc-${DOC_PV}" -name ".[_~]*" -delete
|
||||
dohtml -A ico,odg,pdf,svg -r "${WORKDIR}/${PN}-doc-${DOC_PV}/"
|
||||
fi
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST bcprov-jdk14-138.tar.gz 3374082 SHA256 15a8099fca68fde937cdfc87ae486498a7c12c7d1ebaca9f26aa31b7ad11d413 SHA512 a320a49ca775a5d0dfb8aa7c7fd900384e4e789df2e11be2bfd84cd3ce0ba1d755a680f1d09d3030b178c7d7c52a469601f40b023ac402e6523731d8098793e1 WHIRLPOOL d08c4401003b1b217594f4ebe4bb55a0ff03df72dff45c84e05b605341aaf3af3b6f5824e179547df3c6777cade20891cdcdd79d52df8e20cbfdb6186fd871f8
|
||||
DIST bcprov-jdk15-140.tar.gz 3494846 SHA256 4284e5b4eef0ae410aa1e65868058230a86c5cc591a47b391c87d4a18e913bbf SHA512 22cbbaa81709c8dcf28ceb0e984ca6181b835fb20f4381a2123291b638d07b987572ddf58d33ae07f7cb7dca9f1a67e3b6a1c0467cb2e0dca7625b622517ddb6 WHIRLPOOL 76c7973f3b4668ac438a0fed38b893b5eee8810aa91c0e43309063f064021e637190a1238d0e8f03c5d8303f91c50cb6beba22fd6dc712985c8b114ba2b75cea
|
||||
DIST bcprov-jdk15-145.tar.gz 3427337 SHA256 7751a677d2cf7f8f9494a9b80c884e88de63be3be6fd9fccecee854196c611e2 SHA512 789ae99942e7d565ee58b2411f1ac089a999c4b947d81d640850190ff80d8aa27448d401deff5f44d9ebb4b75f492cf58a6d1d7bcab78198872bea6e98c9f7c3 WHIRLPOOL bb30f3c4192aef793d1193ce4a85f7aa801dca5ae5c0e17807e8c0d549bf883424985025b157266fc5b504a8892e37494295f780c736903d484c5cee70b5bc33
|
||||
DIST bcprov-jdk15on-148.tar.gz 4070349 SHA256 e3fc3dab563e52939c7fa22f93a051a819729a03dbeabfb6e1998ed41943b56b SHA512 5216f6511c2ab280dc5a06a94017c2045befaa23c4ba71e67f20375f498ac2e1706b772440b5f5615cc18a52ce79fd61f7f95d2663202b50f29196dff33cde46 WHIRLPOOL 9020e24c3f7a63a555760f07ee93ffd0f58350558bf2bf02a5229468867d747e29521b48784ca9f8aeaa832059fe62f02f622ab141c8608d71692ca8c68d9b89
|
||||
|
@ -0,0 +1,64 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/bcprov/bcprov-1.48.ebuild,v 1.1 2013/05/21 16:12:54 tomwij Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
MY_P="${PN}-jdk15on-${PV/./}"
|
||||
DESCRIPTION="Java cryptography APIs"
|
||||
HOMEPAGE="http://www.bouncycastle.org/java.html"
|
||||
SRC_URI="http://www.bouncycastle.org/download/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x64-macos"
|
||||
|
||||
# The src_unpack find needs a new find
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=182276
|
||||
DEPEND=">=virtual/jdk-1.5
|
||||
userland_GNU? ( >=sys-apps/findutils-4.3 )
|
||||
app-arch/unzip"
|
||||
RDEPEND=">=virtual/jre-1.5"
|
||||
|
||||
IUSE="userland_GNU"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
|
||||
cd "${S}" || die
|
||||
unpack ./src.zip
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
# This should eventually split the tests
|
||||
# and call them separately, it's not clean
|
||||
# to just throw the tests away.
|
||||
einfo "Removing testcases' sources:"
|
||||
find . -path '*test/*.java' -print -delete \
|
||||
|| die "Failed to delete testcases."
|
||||
find . -name '*Test*.java' -print -delete \
|
||||
|| die "Failed to delete testcases."
|
||||
|
||||
mkdir "${S}"/classes || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
find . -name "*.java" > "${T}"/src.list
|
||||
ejavac -encoding ISO-8859-1 -d "${S}"/classes "@${T}"/src.list
|
||||
|
||||
cd "${S}"/classes || die
|
||||
jar -cf "${S}"/${PN}.jar * || die "Failed to create jar."
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar "${S}"/${PN}.jar
|
||||
|
||||
use source && java-pkg_dosrc org
|
||||
use doc && java-pkg_dojavadoc docs
|
||||
}
|
@ -1,296 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-3.3.0.ebuild,v 1.7 2013/03/24 01:41:31 floppym Exp $
|
||||
|
||||
EAPI="3"
|
||||
WANT_AUTOMAKE="none"
|
||||
WANT_LIBTOOL="none"
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib pax-utils python toolchain-funcs
|
||||
|
||||
MY_P="Python-${PV}"
|
||||
PATCHSET_REVISION="1"
|
||||
|
||||
DESCRIPTION="Python is an interpreted, interactive, object-oriented programming language."
|
||||
HOMEPAGE="http://www.python.org/"
|
||||
SRC_URI="http://www.python.org/ftp/python/${PV}/${MY_P}.tar.xz
|
||||
mirror://gentoo/python-gentoo-patches-${PV}-${PATCHSET_REVISION}.tar.bz2"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="3.3"
|
||||
PYTHON_ABI="${SLOT}"
|
||||
KEYWORDS=""
|
||||
IUSE="build doc elibc_uclibc examples gdbm hardened ipv6 +ncurses +readline sqlite +ssl +threads tk wininst +xml"
|
||||
|
||||
RDEPEND="app-arch/bzip2
|
||||
>=sys-libs/zlib-1.1.3
|
||||
virtual/libffi
|
||||
virtual/libintl
|
||||
!build? (
|
||||
gdbm? ( sys-libs/gdbm[berkdb] )
|
||||
ncurses? (
|
||||
>=sys-libs/ncurses-5.2
|
||||
readline? ( >=sys-libs/readline-4.1 )
|
||||
)
|
||||
sqlite? ( >=dev-db/sqlite-3.3.8:3[extensions] )
|
||||
ssl? ( dev-libs/openssl )
|
||||
tk? (
|
||||
>=dev-lang/tk-8.0
|
||||
dev-tcltk/blt
|
||||
)
|
||||
xml? ( >=dev-libs/expat-2.1 )
|
||||
)
|
||||
!!<sys-apps/sandbox-2.6-r1"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
>=sys-devel/autoconf-2.65
|
||||
!sys-devel/gcc[libffi]"
|
||||
RDEPEND+=" !build? ( app-misc/mime-types )
|
||||
doc? ( dev-python/python-docs:${SLOT} )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
# Ensure that internal copies of expat, libffi and zlib are not used.
|
||||
rm -fr Modules/expat
|
||||
rm -fr Modules/_ctypes/libffi*
|
||||
rm -fr Modules/zlib
|
||||
|
||||
local excluded_patches
|
||||
if ! tc-is-cross-compiler; then
|
||||
excluded_patches="*_all_crosscompile.patch"
|
||||
fi
|
||||
|
||||
EPATCH_EXCLUDE="${excluded_patches}" EPATCH_SUFFIX="patch" \
|
||||
epatch "${WORKDIR}/${PV}-${PATCHSET_REVISION}"
|
||||
|
||||
sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
|
||||
Lib/distutils/command/install.py \
|
||||
Lib/distutils/sysconfig.py \
|
||||
Lib/site.py \
|
||||
Lib/sysconfig.py \
|
||||
Lib/test/test_site.py \
|
||||
Makefile.pre.in \
|
||||
Modules/Setup.dist \
|
||||
Modules/getpath.c \
|
||||
setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@"
|
||||
|
||||
# Disable ABI flags.
|
||||
sed -e "s/ABIFLAGS=\"\${ABIFLAGS}.*\"/:/" -i configure.ac || die "sed failed"
|
||||
|
||||
eautoconf
|
||||
eautoheader
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if use build; then
|
||||
# Disable extraneous modules with extra dependencies.
|
||||
export PYTHON_DISABLE_MODULES="gdbm _curses _curses_panel readline _sqlite3 _tkinter _elementtree pyexpat"
|
||||
export PYTHON_DISABLE_SSL="1"
|
||||
else
|
||||
local disable
|
||||
use gdbm || disable+=" gdbm"
|
||||
use ncurses || disable+=" _curses _curses_panel"
|
||||
use readline || disable+=" readline"
|
||||
use sqlite || disable+=" _sqlite3"
|
||||
use ssl || export PYTHON_DISABLE_SSL="1"
|
||||
use tk || disable+=" _tkinter"
|
||||
use xml || disable+=" _elementtree pyexpat" # _elementtree uses pyexpat.
|
||||
export PYTHON_DISABLE_MODULES="${disable}"
|
||||
|
||||
if ! use xml; then
|
||||
ewarn "You have configured Python without XML support."
|
||||
ewarn "This is NOT a recommended configuration as you"
|
||||
ewarn "may face problems parsing any XML documents."
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ -n "${PYTHON_DISABLE_MODULES}" ]]; then
|
||||
einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}"
|
||||
fi
|
||||
|
||||
if [[ "$(gcc-major-version)" -ge 4 ]]; then
|
||||
append-flags -fwrapv
|
||||
fi
|
||||
|
||||
filter-flags -malign-double
|
||||
|
||||
[[ "${ARCH}" == "alpha" ]] && append-flags -fPIC
|
||||
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=50309
|
||||
if is-flagq -O3; then
|
||||
is-flagq -fstack-protector-all && replace-flags -O3 -O2
|
||||
use hardened && replace-flags -O3 -O2
|
||||
fi
|
||||
|
||||
if tc-is-cross-compiler; then
|
||||
OPT="-O1" CFLAGS="" LDFLAGS="" CC="" \
|
||||
./configure --{build,host}=${CBUILD} || die "cross-configure failed"
|
||||
emake python Parser/pgen || die "cross-make failed"
|
||||
mv python hostpython
|
||||
mv Parser/pgen Parser/hostpgen
|
||||
make distclean
|
||||
sed -i \
|
||||
-e "/^HOSTPYTHON/s:=.*:=./hostpython:" \
|
||||
-e "/^HOSTPGEN/s:=.*:=./Parser/hostpgen:" \
|
||||
Makefile.pre.in || die "sed failed"
|
||||
|
||||
# The configure script assumes it's buggy when cross-compiling.
|
||||
export ac_cv_buggy_getaddrinfo=no
|
||||
export ac_cv_have_long_long_format=yes
|
||||
fi
|
||||
|
||||
# Export CXX so it ends up in /usr/lib/python3.X/config/Makefile.
|
||||
tc-export CXX
|
||||
# The configure script fails to use pkg-config correctly.
|
||||
# http://bugs.python.org/issue15506
|
||||
export ac_cv_path_PKG_CONFIG=$(tc-getPKG_CONFIG)
|
||||
|
||||
# Set LDFLAGS so we link modules with -lpython3.2 correctly.
|
||||
# Needed on FreeBSD unless Python 3.2 is already installed.
|
||||
# Please query BSD team before removing this!
|
||||
append-ldflags "-L."
|
||||
|
||||
local dbmliborder
|
||||
if use gdbm; then
|
||||
dbmliborder+="${dbmliborder:+:}gdbm"
|
||||
fi
|
||||
|
||||
OPT="" econf \
|
||||
--with-fpectl \
|
||||
--enable-shared \
|
||||
$(use_enable ipv6) \
|
||||
$(use_with threads) \
|
||||
--infodir='${prefix}/share/info' \
|
||||
--mandir='${prefix}/share/man' \
|
||||
--with-computed-gotos \
|
||||
--with-dbmliborder="${dbmliborder}" \
|
||||
--with-libc="" \
|
||||
--enable-loadable-sqlite-extensions \
|
||||
--with-system-expat \
|
||||
--with-system-ffi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CPPFLAGS="" CFLAGS="" LDFLAGS="" || die "emake failed"
|
||||
|
||||
# Work around bug 329499. See also bug 413751.
|
||||
pax-mark m python
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Tests will not work when cross compiling.
|
||||
if tc-is-cross-compiler; then
|
||||
elog "Disabling tests due to crosscompiling."
|
||||
return
|
||||
fi
|
||||
|
||||
# Byte compiling should be enabled here.
|
||||
# Otherwise test_import fails.
|
||||
python_enable_pyc
|
||||
|
||||
# Skip failing tests.
|
||||
local skipped_tests="gdb"
|
||||
|
||||
for test in ${skipped_tests}; do
|
||||
mv Lib/test/test_${test}.py "${T}"
|
||||
done
|
||||
|
||||
# Rerun failed tests in verbose mode (regrtest -w).
|
||||
emake test EXTRATESTOPTS="-w" CPPFLAGS="" CFLAGS="" LDFLAGS="" < /dev/tty
|
||||
local result="$?"
|
||||
|
||||
for test in ${skipped_tests}; do
|
||||
mv "${T}/test_${test}.py" Lib/test
|
||||
done
|
||||
|
||||
elog "The following tests have been skipped:"
|
||||
for test in ${skipped_tests}; do
|
||||
elog "test_${test}.py"
|
||||
done
|
||||
|
||||
elog "If you would like to run them, you may:"
|
||||
elog "cd '${EPREFIX}$(python_get_libdir)/test'"
|
||||
elog "and run the tests separately."
|
||||
|
||||
python_disable_pyc
|
||||
|
||||
if [[ "${result}" -ne 0 ]]; then
|
||||
die "emake test failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" altinstall || die "emake altinstall failed"
|
||||
python_clean_installation_image -q
|
||||
|
||||
sed \
|
||||
-e "s/\(CONFIGURE_LDFLAGS=\).*/\1/" \
|
||||
-e "s/\(PY_LDFLAGS=\).*/\1/" \
|
||||
-i "${ED}$(python_get_libdir)/config-${SLOT}/Makefile" || die "sed failed"
|
||||
|
||||
mv "${ED}usr/bin/python${SLOT}-config" "${ED}usr/bin/python-config-${SLOT}"
|
||||
|
||||
# Fix collisions between different slots of Python.
|
||||
rm -f "${ED}usr/$(get_libdir)/libpython3.so"
|
||||
|
||||
if use build; then
|
||||
rm -fr "${ED}usr/bin/idle${SLOT}" "${ED}$(python_get_libdir)/"{idlelib,sqlite3,test,tkinter}
|
||||
else
|
||||
use elibc_uclibc && rm -fr "${ED}$(python_get_libdir)/test"
|
||||
use sqlite || rm -fr "${ED}$(python_get_libdir)/"{sqlite3,test/test_sqlite*}
|
||||
use tk || rm -fr "${ED}usr/bin/idle${SLOT}" "${ED}$(python_get_libdir)/"{idlelib,tkinter,test/test_tk*}
|
||||
fi
|
||||
|
||||
use threads || rm -fr "${ED}$(python_get_libdir)/multiprocessing"
|
||||
use wininst || rm -f "${ED}$(python_get_libdir)/distutils/command/"wininst-*.exe
|
||||
|
||||
dodoc Misc/{ACKS,HISTORY,NEWS} || die "dodoc failed"
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
find Tools -name __pycache__ -print0 | xargs -0 rm -fr
|
||||
doins -r Tools || die "doins failed"
|
||||
fi
|
||||
|
||||
newconfd "${FILESDIR}/pydoc.conf" pydoc-${SLOT} || die "newconfd failed"
|
||||
newinitd "${FILESDIR}/pydoc.init" pydoc-${SLOT} || die "newinitd failed"
|
||||
sed \
|
||||
-e "s:@PYDOC_PORT_VARIABLE@:PYDOC${SLOT/./_}_PORT:" \
|
||||
-e "s:@PYDOC@:pydoc${SLOT}:" \
|
||||
-i "${ED}etc/conf.d/pydoc-${SLOT}" "${ED}etc/init.d/pydoc-${SLOT}" || die "sed failed"
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if has_version "<${CATEGORY}/${PN}-${SLOT}" && ! has_version ">=${CATEGORY}/${PN}-${SLOT}_alpha"; then
|
||||
python_updater_warning="1"
|
||||
fi
|
||||
}
|
||||
|
||||
eselect_python_update() {
|
||||
if [[ -z "$(eselect python show)" || ! -f "${EROOT}usr/bin/$(eselect python show)" ]]; then
|
||||
eselect python update
|
||||
fi
|
||||
|
||||
if [[ -z "$(eselect python show --python${PV%%.*})" || ! -f "${EROOT}usr/bin/$(eselect python show --python${PV%%.*})" ]]; then
|
||||
eselect python update --python${PV%%.*}
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
eselect_python_update
|
||||
|
||||
python_mod_optimize -f -x "/(site-packages|test|tests)/" $(python_get_libdir)
|
||||
|
||||
if [[ "${python_updater_warning}" == "1" ]]; then
|
||||
ewarn "You have just upgraded from an older version of Python."
|
||||
ewarn "You should switch active version of Python ${PV%%.*} and run"
|
||||
ewarn "'python-updater [options]' to rebuild Python modules."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect_python_update
|
||||
|
||||
python_mod_cleanup $(python_get_libdir)
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
DIST v8-3.16.14.9.tar.bz2 10461483 SHA256 a2a69c4915bf2e36d327b4b1edb3d398d4967da31eaa1ae0058b6b6615cd66aa SHA512 424b3d8285244acbb8872fddb90a1e269a35bc8f57c0dba66758d6a853cf75e90a52e4e2d7db4095fe798271c794ac4f99cc40a1dbb99eb1b43d3b5b1878da94 WHIRLPOOL fd7beb7fdb661aa2a04591e7a25fe1c5b39af9bfe9b6e1ab8ed1f4cb6238bb740f3c26d12202c972cdb5552fb02ea31c207304394c095a0839b90b368c436ffc
|
||||
DIST v8-3.17.15.3.tar.bz2 10516836 SHA256 bfca163e9e90d9aeaaebe89309245be2fcf697258c273e54c087406ea9dc3ed7 SHA512 8ab664b9801ac0d111cc0af6ada8bf42d458ea7fd951c40d1e7599991d813dc96957c07777ed2f2ad48c4fcf84955293de2e4e1138d4d3ec186e58bc0d2e4c73 WHIRLPOOL 6fca6906330a4e47fa155f7ac61531c5f0f156f7e8b74dafaec1ba8d44e1cc4f72ee77d6f32257c7d23edcc689853d80d5e782b6928e6989f3a08ffd908de009
|
||||
DIST v8-3.17.16.2.tar.bz2 10519702 SHA256 c0695dd9d36f6a8e0b5fb110baf8d174c76eb7f0d26acc00d4f42179e26c4058 SHA512 97da0af9cca0ca47340dba2d088506563d7b66688f60fbca9dd76b8fc294af0b9d99ab2930679959e5931305dd4ed657e7dc9e47a31f04c56267f3f6cb5938e8 WHIRLPOOL 985013f35bcb9e50f7b4dadc55ecaeadbacf05bfdc934c86bb584a1d108b2cdfc411041b978244ac119f1a81139668aeb0ac3146c68ce05b50e25af22eaa241e
|
||||
DIST v8-3.18.5.1.tar.bz2 10539811 SHA256 a544c607c597890f2586c794b41ef3910f49c0d1ccb062a52fc28e796d2cae3c SHA512 3189ad8999ba1bcaab421a63f1a11cc7ee2cce193a0af45b367c053c5795e8bec366cc5077b1e39dcb587bab9119739e33f9cdf7321332f9babbf8f19f3feabc WHIRLPOOL 7ee328ec3fb73142400ffd24590860a89d6d0594076ed4281de73cd043c17f8b592671ceb8a3045e9825141dd6e24eddf1f63102f0bc3448feab468084b7e633
|
||||
DIST v8-3.18.5.2.tar.bz2 10543191 SHA256 19a6e005ed4321dbd553b31b04bddf04e1e17e47dad2860039aff5fdfcc347a6 SHA512 e2c3066b3f51bce1b7b956e5385b460d5da145256622635897ad9c8a957e37ee618f30fe26077ddcbee76594779a192b5f53814efabf453bdc10ee9f33498d78 WHIRLPOOL 44f77e6c5c33371deb0de142fa018948bb86ac46d9b9dce8f7f2719a24024fa75a17b9a41af1e2d50b93fe3a638ea7a6a3349533a43e2ea74b36c547049af2f7
|
||||
DIST v8-3.18.5.5.tar.bz2 10540043 SHA256 8e48503c871eb4de608453e69085bbb7636be9492db14d4ae06371ba3e004fd4 SHA512 c9ccb3dd83ed753c808a0cca1496726eaea8ff3d5608d96cdff9aece2053d73c0cc1b1f15f707deec5a55d5b744d178aebd99a979e5fe332ad033b047276529e WHIRLPOOL 95196e05518d38ee429a2647a8e5561401c3559ef9662e8bb50cd6d07d93fe760de73bf17103a4389f5a5678fa0fbd4cb64c6894ec4f9bac9009039e2d41b309
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-3.18.5.1.ebuild,v 1.1 2013/05/03 16:47:26 phajdan.jr Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-3.18.5.5.ebuild,v 1.1 2013/05/21 21:34:25 phajdan.jr Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_{6,7} )
|
@ -0,0 +1,15 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/UTF8Strings/UTF8Strings-1.14.0.ebuild,v 1.1 2013/05/21 16:37:23 tomwij Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="C++ library that provides ability to work natively with UTF8 strings in a very simple way."
|
||||
HOMEPAGE="http://grigory.info/${PN}.About.html"
|
||||
SRC_URI="http://grigory.info/distfiles/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
@ -0,0 +1,11 @@
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -61,7 +61,7 @@
|
||||
|
||||
# AC_CONFIG_HEADERS([config.h])
|
||||
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
|
||||
-AM_CONFIG_HEADER(config.h)
|
||||
+AC_CONFIG_HEADERS(config.h)
|
||||
|
||||
AH_TOP([
|
||||
/* This file is part of GMetaDOM
|
@ -0,0 +1,111 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/gmp-5.1.2.ebuild,v 1.1 2013/05/21 18:48:02 vapier Exp $
|
||||
|
||||
inherit flag-o-matic eutils libtool unpacker toolchain-funcs
|
||||
|
||||
MY_PV=${PV/_p*}
|
||||
MY_P=${PN}-${MY_PV}
|
||||
PLEVEL=${PV/*p}
|
||||
DESCRIPTION="Library for arithmetic on arbitrary precision integers, rational numbers, and floating-point numbers"
|
||||
HOMEPAGE="http://gmplib.org/"
|
||||
SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.xz
|
||||
ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
|
||||
doc? ( http://gmplib.org/${PN}-man-${MY_PV}.pdf )"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="doc cxx pgo static-libs"
|
||||
|
||||
DEPEND="sys-devel/m4
|
||||
app-arch/xz-utils"
|
||||
RDEPEND=""
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_unpack() {
|
||||
unpacker_src_unpack
|
||||
cd "${S}"
|
||||
[[ -d ${FILESDIR}/${PV} ]] && EPATCH_SUFFIX="diff" EPATCH_FORCE="yes" epatch "${FILESDIR}"/${PV}
|
||||
epatch "${FILESDIR}"/${PN}-4.1.4-noexecstack.patch
|
||||
|
||||
# disable -fPIE -pie in the tests for x86 #236054
|
||||
if use x86 && gcc-specs-pie ; then
|
||||
epatch "${FILESDIR}"/${PN}-5.1.0-x86-nopie-tests.patch
|
||||
fi
|
||||
|
||||
# note: we cannot run autotools here as gcc depends on this package
|
||||
elibtoolize
|
||||
|
||||
# GMP uses the "ABI" env var during configure as does Gentoo (econf).
|
||||
# So, to avoid patching the source constantly, wrap things up.
|
||||
mv configure configure.wrapped || die
|
||||
cat <<-\EOF > configure
|
||||
#!/bin/sh
|
||||
exec env ABI="$GMPABI" "$0.wrapped" "$@"
|
||||
EOF
|
||||
chmod a+rx configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
|
||||
# http://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
|
||||
if [[ ${CHOST} == hppa2.0-* ]] ; then
|
||||
export GMPABI="1.0"
|
||||
fi
|
||||
|
||||
# ABI mappings (needs all architectures supported)
|
||||
case ${ABI} in
|
||||
32|x86) GMPABI=32;;
|
||||
64|amd64|n64) GMPABI=64;;
|
||||
[onx]32) GMPABI=${ABI};;
|
||||
esac
|
||||
export GMPABI
|
||||
|
||||
tc-export CC
|
||||
econf \
|
||||
--localstatedir=/var/state/gmp \
|
||||
$(use_enable cxx) \
|
||||
$(use_enable static-libs static)
|
||||
|
||||
emake || die
|
||||
|
||||
if use pgo ; then
|
||||
emake -j1 -C tune tuneup || die
|
||||
rm gmp-mparam.h || die
|
||||
./tune/tuneup | tee gmp-mparam.h
|
||||
emake clean || die
|
||||
emake || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die
|
||||
|
||||
# should be a standalone lib
|
||||
rm -f "${D}"/usr/$(get_libdir)/libgmp.la
|
||||
# this requires libgmp
|
||||
local la="${D}/usr/$(get_libdir)/libgmpxx.la"
|
||||
use static-libs \
|
||||
&& sed -i 's:/[^ ]*/libgmp.la:-lgmp:' "${la}" \
|
||||
|| rm -f "${la}"
|
||||
|
||||
dodoc AUTHORS ChangeLog NEWS README
|
||||
dodoc doc/configuration doc/isa_abi_headache
|
||||
dohtml -r doc
|
||||
|
||||
use doc && cp "${DISTDIR}"/gmp-man-${MY_PV}.pdf "${D}"/usr/share/doc/${PF}/
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
preserve_old_lib /usr/$(get_libdir)/libgmp.so.3
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
preserve_old_lib_notify /usr/$(get_libdir)/libgmp.so.3
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST leveldb-1.10.0.tar.gz 204270 SHA256 84a4ab34671e1271d895f093932f8c8cfecb45b2e085da738671599825d12f62 SHA512 ba9829a203c25d00184b77382ee8db6b383058c527771a795443e0d3ae02b93dd29c3362f12fd89b08ac24f784b7ed2f3e3325b30abe2763df1cc9e4b8a12948 WHIRLPOOL d9b46a0f6586203091f2b89e4d141f8c7ba65ea994a2352d7f063796f50ba0e7a8c2d3a93ac2591a554b293ac8cb8a6eb26bfb2879f8859cb985db2cfd5985ae
|
||||
DIST leveldb-1.9.0.tar.gz 203872 SHA256 b2699b04e5aba8e98382c4955b94725d1f76bd0b5decd60c5628205b717a1d4f SHA512 47b0a3272eef2d677ddeb8d0c973e59a1be4bff580528c3bc3f83a654f41485ecc86892d9124ce21ef747c220f98cdad687436849dc978adfd42f8c8c05b9160 WHIRLPOOL 301ba45968095420ff72da36f128bd916d4e039385270eecd8e077aac3781ed12931c9a7d426842e197fd62a99ad6477e5eabbca7524fcba2a185a702f4ef22a
|
||||
|
@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/leveldb/leveldb-1.10.0.ebuild,v 1.1 2013/05/22 03:36:15 patrick Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="a fast key-value storage library written at Google"
|
||||
HOMEPAGE="http://code.google.com/p/leveldb/"
|
||||
SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="+snappy static-libs +tcmalloc"
|
||||
|
||||
DEPEND="tcmalloc? ( dev-util/google-perftools )
|
||||
snappy? (
|
||||
app-arch/snappy
|
||||
static-libs? ( app-arch/snappy[static-libs] )
|
||||
)"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_configure() {
|
||||
# These vars all get picked up by build_detect_platform
|
||||
# which the Makefile runs for us automatically.
|
||||
tc-export AR CC CXX
|
||||
export OPT="-DNDEBUG ${CPPFLAGS}"
|
||||
# Probably needs more filling out
|
||||
export TARGET_OS
|
||||
case ${CHOST} in
|
||||
*) TARGET_OS="Linux";;
|
||||
esac
|
||||
export USE_SNAPPY=$(usex snappy)
|
||||
export USE_TCMALLOC=no
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake $(usex static-libs '' 'LIBRARY=') all libmemenv.a
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/include
|
||||
doins -r include/* helpers/memenv/memenv.h
|
||||
dolib.so libleveldb*$(get_libname)*
|
||||
use static-libs && dolib.a libleveldb.a
|
||||
dolib.a libmemenv.a
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST libofx-0.9.4.tar.gz 1263379 SHA256 9b30641fd5672e7a4a7fd3dd789a8a9df80039e5cc5756e28e16e8935560dbaf SHA512 8e61a1cf3a41721b4e34fefc0a6f6ce9867e52e7e9b22f449b1f73d077e430c0c2aaa197dfcea0b0657e99fcb768357960dde2f4839fb6e06e8db45d85335bc7 WHIRLPOOL def0c49e024c1bbc8f55f416af1b4f67b519a9edce3e985b06297230279f0bff942ba6c207385998f1969a3e7ceee9fbb37cb557a4b43f84a8f0230354e534af
|
||||
DIST libofx-0.9.5.tar.gz 1526857 SHA256 a075c5634b94bad16f8c949eeb77625d31bedea3bb10a8da174b989ffab7e78e SHA512 f7c6e0d85ee1f01216678ec51939ffe09c4a4c5ccc97a5928be45bd2be27418a95004a8a46f17225366908cdd8bb43b19bf95295f0e6422802d3a935a63eb0a9 WHIRLPOOL 67f61361417636e297f45f7c9d3d4de9e88a20c9af4b1a6f811d4b6d6d671f045f3f485b193d24372e89fdbfbd944565bb3ec224578351c1d31cf9c109921d5f
|
||||
|
@ -1,10 +0,0 @@
|
||||
--- ofxconnect/ofxpartner.cpp~ 2011-03-31 00:30:50.000000000 +0200
|
||||
+++ ofxconnect/ofxpartner.cpp 2012-06-23 16:30:34.227522021 +0200
|
||||
@@ -32,6 +32,7 @@
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
+#include <unistd.h>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <vector>
|
@ -1,44 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libofx/libofx-0.9.4.ebuild,v 1.9 2012/09/09 15:44:22 armin76 Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="A library to support the Open Financial eXchange XML format"
|
||||
HOMEPAGE="http://libofx.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 hppa ppc ppc64 x86"
|
||||
IUSE="static-libs test"
|
||||
|
||||
RDEPEND=">=app-text/opensp-1.5
|
||||
dev-cpp/libxmlpp:2.6
|
||||
>=net-misc/curl-7.9.7"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
test? ( app-crypt/gnupg )"
|
||||
|
||||
src_prepare() {
|
||||
# Be sure DTD gets installed in correct path after redefining docdir in install
|
||||
sed -i \
|
||||
-e 's:$(DESTDIR)$(docdir):$(DESTDIR)$(LIBOFX_DTD_DIR):' \
|
||||
dtd/Makefile.in || die
|
||||
epatch "${FILESDIR}/${P}-gcc47.patch"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable static-libs static) \
|
||||
--disable-doxygen
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" docdir=/usr/share/doc/${PF} install
|
||||
|
||||
rm -f "${ED}"/usr/share/doc/${PF}/{COPYING,INSTALL}
|
||||
find "${ED}" -name '*.la' -exec rm -f {} +
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST libusb-compat-0.1.4.tar.bz2 242379 SHA256 ed5bdd160c7b01ef767fb931a81b454f46226d1e2cf58502ced758d3e5a9fdc4 SHA512 23214b362f3a3c2aa299678bf6da786ac3ff3c6a4299b392dee65b6ca7ffff68d8559f72549b16175f2fd44f45e127efdfc883895a1b39465a89f0b288b2fb7d WHIRLPOOL d4eb0c6c43f5bddd980ddfbdf1dea22276666ace6ded5e095a2cc5db623fa0196ad95e41ac5986b6e40f3fbb921280395a1478d54f8743e14c9146dedf78ad44
|
||||
DIST libusb-compat-0.1.5.tar.bz2 276769 SHA256 404ef4b6b324be79ac1bfb3d839eac860fbc929e6acb1ef88793a6ea328bc55a SHA512 fe63bd1c65e67588a83ebfdd329025ecf75f33f877fb80dd83eb528df057efb591e010416027f9054294504562299166e8e2811a7681fa1967a03baae9b88857 WHIRLPOOL 2f84934c28980bee9e8ca69d284303cdbaf4cb72cee02108825bd7366bfff7f6365db5ffee8de024eb85dee571eccc47acea6a25d6835f0fefb0ad8a77d05045
|
||||
|
@ -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/libusb-compat/libusb-compat-0.1.5.ebuild,v 1.1 2013/05/21 11:54:04 ssuominen Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="Userspace access to USB devices (libusb-0.1 compat wrapper)"
|
||||
HOMEPAGE="http://libusb.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN/-compat}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="debug static-libs"
|
||||
|
||||
RDEPEND="virtual/libusb:1
|
||||
!dev-libs/libusb:0"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
DOCS="AUTHORS ChangeLog NEWS README"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN/-compat}-0.1-ansi.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable debug debug-log)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins examples/*.c
|
||||
|
||||
prune_libtool_files
|
||||
}
|
@ -0,0 +1,160 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/files/gentoo.config-1.0.1,v 1.1 2013/05/21 17:53:19 vapier Exp $
|
||||
#
|
||||
# Openssl doesn't play along nicely with cross-compiling
|
||||
# like autotools based projects, so let's teach it new tricks.
|
||||
#
|
||||
# Review the bundled 'config' script to see why kind of targets
|
||||
# we can pass to the 'Configure' script.
|
||||
|
||||
|
||||
# Testing routines
|
||||
if [[ $1 == "test" ]] ; then
|
||||
for c in \
|
||||
"arm-gentoo-linux-uclibc |linux-generic32 -DL_ENDIAN" \
|
||||
"armv5b-linux-gnu |linux-armv4 -DB_ENDIAN" \
|
||||
"x86_64-pc-linux-gnu |linux-x86_64" \
|
||||
"alpha-linux-gnu |linux-alpha-gcc" \
|
||||
"alphaev56-unknown-linux-gnu |linux-alpha+bwx-gcc" \
|
||||
"i686-pc-linux-gnu |linux-elf" \
|
||||
"whatever-gentoo-freebsdX.Y |BSD-generic32" \
|
||||
"i686-gentoo-freebsdX.Y |BSD-x86-elf" \
|
||||
"sparc64-alpha-freebsdX.Y |BSD-sparc64" \
|
||||
"ia64-gentoo-freebsd5.99234 |BSD-ia64" \
|
||||
"x86_64-gentoo-freebsdX.Y |BSD-x86_64" \
|
||||
"hppa64-aldsF-linux-gnu5.3 |linux-generic32 -DB_ENDIAN" \
|
||||
"powerpc-gentOO-linux-uclibc |linux-ppc" \
|
||||
"powerpc64-unk-linux-gnu |linux-ppc64" \
|
||||
"x86_64-apple-darwinX |darwin64-x86_64-cc" \
|
||||
"powerpc64-apple-darwinX |darwin64-ppc-cc" \
|
||||
"i686-apple-darwinX |darwin-i386-cc" \
|
||||
"i386-apple-darwinX |darwin-i386-cc" \
|
||||
"powerpc-apple-darwinX |darwin-ppc-cc" \
|
||||
"i586-pc-winnt |winnt-parity" \
|
||||
"s390-ibm-linux-gnu |linux-generic32 -DB_ENDIAN" \
|
||||
"s390x-linux-gnu |linux64-s390x" \
|
||||
;do
|
||||
CHOST=${c/|*}
|
||||
ret_want=${c/*|}
|
||||
ret_got=$(CHOST=${CHOST} "$0")
|
||||
|
||||
if [[ ${ret_want} == "${ret_got}" ]] ; then
|
||||
echo "PASS: ${CHOST}"
|
||||
else
|
||||
echo "FAIL: ${CHOST}"
|
||||
echo -e "\twanted: ${ret_want}"
|
||||
echo -e "\twe got: ${ret_got}"
|
||||
fi
|
||||
done
|
||||
exit 0
|
||||
fi
|
||||
[[ -z ${CHOST} && -n $1 ]] && CHOST=$1
|
||||
|
||||
|
||||
# Detect the operating system
|
||||
case ${CHOST} in
|
||||
*-aix*) system="aix";;
|
||||
*-darwin*) system="darwin";;
|
||||
*-freebsd*) system="BSD";;
|
||||
*-hpux*) system="hpux";;
|
||||
*-linux*) system="linux";;
|
||||
*-solaris*) system="solaris";;
|
||||
*-winnt*) system="winnt";;
|
||||
x86_64-*-mingw*) system="mingw64";;
|
||||
*mingw*) system="mingw";;
|
||||
*) exit 0;;
|
||||
esac
|
||||
|
||||
|
||||
# Compiler munging
|
||||
compiler="gcc"
|
||||
if [[ ${CC} == "ccc" ]] ; then
|
||||
compiler=${CC}
|
||||
fi
|
||||
|
||||
|
||||
# Detect target arch
|
||||
machine=""
|
||||
chost_machine=${CHOST%%-*}
|
||||
case ${system} in
|
||||
linux)
|
||||
case ${chost_machine}:${ABI} in
|
||||
alphaev56*|\
|
||||
alphaev[678]*)machine=alpha+bwx-${compiler};;
|
||||
alpha*) machine=alpha-${compiler};;
|
||||
armv[4-9]*b*) machine="armv4 -DB_ENDIAN";;
|
||||
armv[4-9]*) machine="armv4 -DL_ENDIAN";;
|
||||
arm*b*) machine="generic32 -DB_ENDIAN";;
|
||||
arm*) machine="generic32 -DL_ENDIAN";;
|
||||
avr*) machine="generic32 -DL_ENDIAN";;
|
||||
bfin*) machine="generic32 -DL_ENDIAN";;
|
||||
# hppa64*) machine=parisc64;;
|
||||
hppa*) machine="generic32 -DB_ENDIAN";;
|
||||
i[0-9]86*|\
|
||||
x86_64*:x86) machine=elf;;
|
||||
ia64*) machine=ia64;;
|
||||
m68*) machine="generic32 -DB_ENDIAN";;
|
||||
mips*el*) machine="generic32 -DL_ENDIAN";;
|
||||
mips*) machine="generic32 -DB_ENDIAN";;
|
||||
powerpc64*) machine=ppc64;;
|
||||
powerpc*) machine=ppc;;
|
||||
# sh64*) machine=elf;;
|
||||
sh*b*) machine="generic32 -DB_ENDIAN";;
|
||||
sh*) machine="generic32 -DL_ENDIAN";;
|
||||
sparc*v7*) machine="generic32 -DB_ENDIAN";;
|
||||
sparc64*) machine=sparcv9;;
|
||||
sparc*) machine=sparcv8;;
|
||||
s390x*) machine=s390x system=linux64;;
|
||||
s390*) machine="generic32 -DB_ENDIAN";;
|
||||
x86_64*:x32) machine=x32;;
|
||||
x86_64*) machine=x86_64;;
|
||||
esac
|
||||
;;
|
||||
BSD)
|
||||
case ${chost_machine} in
|
||||
alpha*) machine=generic64;;
|
||||
i[6-9]86*) machine=x86-elf;;
|
||||
ia64*) machine=ia64;;
|
||||
sparc64*) machine=sparc64;;
|
||||
x86_64*) machine=x86_64;;
|
||||
*) machine=generic32;;
|
||||
esac
|
||||
;;
|
||||
aix)
|
||||
machine=${compiler}
|
||||
;;
|
||||
darwin)
|
||||
case ${chost_machine} in
|
||||
powerpc64) machine=ppc-cc; system=${system}64;;
|
||||
powerpc) machine=ppc-cc;;
|
||||
i?86*) machine=i386-cc;;
|
||||
x86_64) machine=x86_64-cc; system=${system}64;;
|
||||
esac
|
||||
;;
|
||||
hpux)
|
||||
case ${chost_machine} in
|
||||
ia64) machine=ia64-${compiler} ;;
|
||||
esac
|
||||
;;
|
||||
solaris)
|
||||
case ${chost_machine} in
|
||||
i386) machine=x86-${compiler} ;;
|
||||
x86_64*) machine=x86_64-${compiler}; system=${system}64;;
|
||||
sparcv9*) machine=sparcv9-${compiler}; system=${system}64;;
|
||||
sparc*) machine=sparcv8-${compiler};;
|
||||
esac
|
||||
;;
|
||||
winnt)
|
||||
machine=parity
|
||||
;;
|
||||
mingw*)
|
||||
# special case ... no xxx-yyy style name
|
||||
echo ${system}
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
# If we have something, show it
|
||||
[[ -n ${machine} ]] && echo ${system}-${machine}
|
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/django-debug-toolbar/django-debug-toolbar-0.9.4-r1.ebuild,v 1.1 2013/05/21 14:40:24 idella4 Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A configurable set of panels that display debug information"
|
||||
HOMEPAGE="http://pypi.python.org/pypi/django-debug-toolbar/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
RDEPEND="dev-python/django[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/dingus[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_test() {
|
||||
# To verify tests are run, simply add -v before -c
|
||||
export DJANGO_SETTINGS_MODULE="django.conf"
|
||||
export SECRET_KEY='green'
|
||||
if "${PYTHON}" -c \
|
||||
"from django.conf import global_settings;global_settings.SECRET_KEY='$SECRET_KEY'" -m tests.tests; then
|
||||
einfo "Tests completed for ${EPYTHON}"
|
||||
else
|
||||
die "Tests failed for ${EPYTHON}"
|
||||
fi
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
#rm all OSX fork files, Bug #450880
|
||||
pushd "${ED}" > /dev/null
|
||||
rm -f $(find . -name "._*")
|
||||
}
|
@ -1,47 +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/django-debug-toolbar/django-debug-toolbar-0.9.4.ebuild,v 1.3 2013/01/09 08:44:01 idella4 Exp $
|
||||
|
||||
EAPI=4
|
||||
PYTHON_DEPEND="2"
|
||||
SUPPORT_PYTHON_ABIS=1
|
||||
RESTRICT_PYTHON_ABIS="3.*"
|
||||
|
||||
inherit distutils eutils
|
||||
|
||||
DESCRIPTION="A configurable set of panels that display debug information"
|
||||
HOMEPAGE="http://pypi.python.org/pypi/django-debug-toolbar/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
PYTHON_MODNAME="debug_toolbar"
|
||||
|
||||
RDEPEND="dev-python/django"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools
|
||||
test? ( dev-python/dingus )"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-fix-with-py2.5.patch
|
||||
}
|
||||
|
||||
src_test() {
|
||||
export DJANGO_SETTINGS_MODULE="django.conf"
|
||||
testing() {
|
||||
PYTHONPATH=. "$(PYTHON)" -m tests.tests
|
||||
einfo "Tests for python$(python_get_version) completed"
|
||||
einfo ""
|
||||
}
|
||||
python_execute_function testing
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
#rm all OSX fork files, Bug #450880
|
||||
pushd "${ED}" > /dev/null
|
||||
rm -f $(find . -name "._*")
|
||||
popd > /dev/null
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/django-endless-pagination/django-endless-pagination-1.1-r1.ebuild,v 1.1 2013/05/21 15:51:10 idella4 Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Tools supporting ajax, multiple and lazy pagination, Twitter-style and Digg-style pagination"
|
||||
HOMEPAGE="http://code.google.com/p/django-endless-pagination/"
|
||||
SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc test"
|
||||
|
||||
RDEPEND=">=dev-python/django-1.3[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C doc html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
export SECRET_KEY='green'
|
||||
if ! "${PYTHON}" -c \
|
||||
"from django.conf import global_settings;global_settings.SECRET_KEY='$SECRET_KEY'" \
|
||||
-d tests/runtests.py; then
|
||||
die "Tests failed under python2.7"
|
||||
else
|
||||
einfo "Tests passed under python2.7"
|
||||
fi
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( "${S}"/doc/_build/html/. )
|
||||
|
||||
#rm all OSX fork files, Bug #450842
|
||||
pushd "${ED}" > /dev/null
|
||||
rm -f $(find . -name "._*")
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,49 +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/django-endless-pagination/django-endless-pagination-1.1.ebuild,v 1.2 2013/01/09 09:02:48 idella4 Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
PYTHON_DEPEND="2:2.7"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="3.*"
|
||||
PYTHON_TESTS_RESTRICTED_ABIS="2.7-pypy-1.*"
|
||||
inherit distutils
|
||||
|
||||
DESCRIPTION="Tools supporting ajax, multiple and lazy pagination, Twitter-style and Digg-style pagination"
|
||||
HOMEPAGE="http://code.google.com/p/django-endless-pagination/"
|
||||
SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc test"
|
||||
PYTHON_MODNAME="endless_pagination"
|
||||
|
||||
DEPEND="dev-python/setuptools"
|
||||
RDEPEND="${DEPEND}
|
||||
doc? ( dev-python/sphinx )"
|
||||
|
||||
src_compile() {
|
||||
distutils_src_compile
|
||||
use doc && emake -C doc html
|
||||
}
|
||||
|
||||
src_test() {
|
||||
testing() {
|
||||
pushd build-"${PYTHON_ABI}"/lib > /dev/null
|
||||
PYTHONPATH=. "$(PYTHON)" -d "${S}"/tests/runtests.py
|
||||
popd > /dev/null
|
||||
}
|
||||
python_execute_function testing
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
use doc && dohtml -r doc/_build/html/
|
||||
|
||||
#rm all OSX fork files, Bug #450842
|
||||
pushd "${ED}" > /dev/null
|
||||
rm -f $(find . -name "._*")
|
||||
popd > /dev/null
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST gevent-0.13.7.tar.gz 288284 SHA256 0754f141d2889fa861918eb75482b9572763bd661479bbfc73a8c250f4eab6c5 SHA512 e53d1cea049519f4696a988625ddcd42bf935af7ca2644baeaca37f315665b5950ddb119ff9143f02db6907b6b562c42dbce73e247816ca57405334da369a36a WHIRLPOOL f79db3d07e054be2b93b27736bfbdc0867af1173608192a2db59ec1478de8d2a9099394f47926b14aee4aef29f0ae31edcddfab3d52ae7db7157a07bf5eca6f5
|
||||
DIST gevent-0.13.8.tar.gz 300098 SHA256 54b8d26300ce408c0916a3e63ef6cd3e6aca76230833558deb7de15196ed955e SHA512 f3d93e2503aa54137f942150fe9ab667b5ebcdff25f0aef979923265a0767cf1552480e9b855014613e706ca76ef72432622a8569e1aa5f1c357ebe9fc4dea96 WHIRLPOOL 2d07c1ae9f7ca03f1d4ab65f736811123c2497d686aa3ecc0a8a75386248ff5a6415f344e58c47db803d7bf058e04cec9917c329ae42a5dcc25ce97e1d9ad67f
|
||||
DIST gevent-1.0b2.tar.gz 1033734 SHA256 b77ab611d09e36fcd992809d115f82e0b41151d18ff925235569d4fb57724b59 SHA512 921be2724acd64f1516e93d42775aea039591d750682f3d59bf9a78095b042b5f9ecaff94742062f121cbacba0827820726895c8353f0d1b68d5456aeed7df80 WHIRLPOOL cb97b1d11e52151ade71dab682656feda0c4726e30fdef7ff655dac16fb72245ebed333482c094c8ff4c7a8e8eb27b2ee28ff25b1395a8d2721dc2cc47d7efae
|
||||
DIST gevent-1.0rc2.tar.gz 1390008 SHA256 620b071f5aaf8203fc86d2b49b1f9227cabc30e2cef6dfe064233e2d4ced3fda SHA512 f0a3890e19ef1e13029a6427b99b4614db9fa1c3ae05dd522c47c47e8fb6045367ec8d70e859a9721ed8f6f858b7df835fb9c298e53ca6f1eb80a0e2f771ef43 WHIRLPOOL 383f708e0082ebcc562d4c16b8b712827a0879985cb90ccc2030d586195151f7abbab8c04e0af72a8296fe8084da97442de735eea63019e89d9833158c093941
|
||||
|
@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/gevent/gevent-0.13.8.ebuild,v 1.1 2013/05/22 01:31:10 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
|
||||
inherit distutils-r1 flag-o-matic
|
||||
|
||||
DESCRIPTION="Python networking library that uses greenlet to provide synchronous API"
|
||||
HOMEPAGE="http://gevent.org/ http://pypi.python.org/pypi/gevent/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="doc examples"
|
||||
|
||||
RDEPEND="dev-libs/libevent
|
||||
dev-python/greenlet[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
|
||||
|
||||
# Tests take long and fail terribly a few times.
|
||||
# It also seems that they require network access.
|
||||
RESTRICT="test"
|
||||
|
||||
python_configure_all() {
|
||||
append-flags -fno-strict-aliasing
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C doc html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cd greentest || die
|
||||
"${PYTHON}" testrunner.py || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local DOCS=( AUTHORS changelog.rst README.rst )
|
||||
use doc && local HTML_DOCS=( doc/_build/html/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
if use examples; then
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST elfix-0.8.1.tar.gz 366485 SHA256 6bdb6bebbfe45aff36351fadcba7077e42b24096218f60c64e3fb42c73bc2673 SHA512 5c0d5d9ae93961ec39915fe5310f385be0bf2a8f01b513565ba077294139397fea05b22032afbc9da68be6847b46ff330d98b912d68bb6ba06857219a65cc29a WHIRLPOOL 0d69412dc694b3142f47df03265280d4e8f87f9b4fcde82976d5abf818e2a46899a0e80a9c08e51b89513457d1fd19b3c0e08b09d80d53f5909d66034d8e85ac
|
||||
DIST elfix-0.8.2.tar.gz 369381 SHA256 b3b47d9d77f251c6cbffdd93c6e9659c75d0a3d4fc6970d62d347f67ce25b951 SHA512 d8ae09a4d6b22980373d87cd960e355fcce864d0db9cd019ac95c4879d04e4e7f6908a839ff1acb2d66500a42231f40a5b99b03089cfa5e99adbd5345dac4e55 WHIRLPOOL 4e2b9315a09a9e077c557ec031d5fc63dcd79484d0626018cb85a1db9b32a5f690deb25ab38b14595dcacbe0a8e6b5a7f7837c3d4d638c830829fd56b15dd48e
|
||||
DIST elfix-0.8.3.tar.gz 369719 SHA256 b2ac841e9c9681f421dd8d3a99d33c78a4cfb69215f3234ca0c7edab73c12456 SHA512 ba16670e632fda552f2de2e6dfd0b46c93c7f9be321671433261d25e0b11a4cf2bf774ce6d5153ec7763c776b6188d56f8c17d027c697aed5185722da617e530 WHIRLPOOL 31c39670d465806595bf8ac340d485a422659cf9e6e2e7a7bd8eec40513fbfffcb939f632f98738156f5f0f177a659f3792dda1df0f385233a6ce8e02253d5fd
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/pypax/pypax-0.8.2.ebuild,v 1.1 2013/05/20 22:05:36 blueness Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/pypax/pypax-0.8.3.ebuild,v 1.1 2013/05/21 15:32:38 blueness Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST anjuta-3.6.2.tar.xz 5178068 SHA256 2cf44120dcf22c4f4f25bbc65d3641c206e627776ab0f3a37ff0059844d581a2 SHA512 1c7012b97f51cce056d38c79602da16aab04fa06f24a774f66a78eedfca812ce6ddbb94bcd69fa853a8e2ac4a2abbb5d74006dda6192f379d7ebc9ff5702e711 WHIRLPOOL f013deb02459331128f777fc052901b655c3ce293e1cd321f230862191be4ef8765143100bb4c341eff1a09c857563d824c63c262513a6537518ca3a90584ea6
|
||||
DIST anjuta-3.8.1.tar.xz 5180820 SHA256 ef5d8a5032d4c2025e1870bef044fa025f01096a86f8f226eb178688a960c5b9 SHA512 7e922c509af47cb32bb372d9a95edc6a5b52ae85571a487aecc144ae2d9cba0492360ce3ff368dbc64a82a1ec060157e670af60079838623b4da005952c29861 WHIRLPOOL b2058a1dd743d4fe8f2a54f3200e295a955427fb1dadb79efef8ad54fb0f974dff0b8740e4ceb8c14a0a7411439fe2c0613cc4059c83ac7252e5e17e9c0541fd
|
||||
DIST anjuta-3.8.3.tar.xz 5181464 SHA256 06afea1de911067419b774eda2548a729668f93c5463726b353f5db686493f95 SHA512 caae0f45e3f983e3457d50592d66e34fd5476589b4de1b693c937e40e44aeaf2e3b7f9f40588f0a8fbf2c7eec91bc6f75344d42b608f10a87299cfe6e6715dd7 WHIRLPOOL 7fe55633ca80b9f899a8082a477864ff7a882fcd38394e2e04de7651686d59384ba2f1dab078fd9065158a1d5abd62640b72ef03428588cefb46fb86fdb597c7
|
||||
|
@ -0,0 +1,132 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-util/anjuta/anjuta-3.8.3.ebuild,v 1.1 2013/05/21 22:40:12 pacho Exp $
|
||||
|
||||
EAPI="5"
|
||||
GCONF_DEBUG="yes"
|
||||
GNOME2_LA_PUNT="yes"
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
# libanjuta-language-vala.so links to a specific slot of libvala; we want to
|
||||
# avoid automagic behavior.
|
||||
VALA_MIN_API_VERSION="0.20"
|
||||
VALA_MAX_API_VERSION="${VALA_MIN_API_VERSION}"
|
||||
|
||||
inherit eutils gnome2 flag-o-matic multilib readme.gentoo python-single-r1 vala
|
||||
|
||||
DESCRIPTION="A versatile IDE for GNOME"
|
||||
HOMEPAGE="http://projects.gnome.org/anjuta/"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE="debug devhelp glade +introspection packagekit subversion test vala"
|
||||
|
||||
# FIXME: make python dependency non-automagic
|
||||
COMMON_DEPEND="
|
||||
>=dev-libs/glib-2.32:2
|
||||
x11-libs/gdk-pixbuf:2
|
||||
>=x11-libs/gtk+-3.4:3
|
||||
>=x11-libs/vte-0.27.6:2.90
|
||||
>=dev-libs/libxml2-2.4.23
|
||||
>=dev-libs/gdl-3.5.5:3=
|
||||
>=x11-libs/gtksourceview-3:3.0
|
||||
|
||||
sys-devel/autogen
|
||||
|
||||
>=gnome-extra/libgda-5:5=
|
||||
dev-util/ctags
|
||||
|
||||
x11-libs/libXext
|
||||
x11-libs/libXrender
|
||||
|
||||
${PYTHON_DEPS}
|
||||
|
||||
devhelp? ( >=dev-util/devhelp-3.7.4:= )
|
||||
glade? ( >=dev-util/glade-3.12:3.10= )
|
||||
introspection? ( >=dev-libs/gobject-introspection-0.9.5 )
|
||||
subversion? (
|
||||
>=dev-vcs/subversion-1.5.0:=
|
||||
>=net-libs/neon-0.28.2:=
|
||||
>=dev-libs/apr-1:=
|
||||
>=dev-libs/apr-util-1:= )
|
||||
vala? ( $(vala_depend) )
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
packagekit? ( app-admin/packagekit-base )
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=dev-lang/perl-5
|
||||
>=dev-util/gtk-doc-am-1.4
|
||||
>=dev-util/intltool-0.40.1
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
>=sys-devel/gettext-0.17
|
||||
virtual/pkgconfig
|
||||
!!dev-libs/gnome-build
|
||||
test? (
|
||||
app-text/docbook-xml-dtd:4.1.2
|
||||
app-text/docbook-xml-dtd:4.5 )
|
||||
|
||||
app-text/yelp-tools
|
||||
dev-libs/gobject-introspection-common
|
||||
gnome-base/gnome-common
|
||||
"
|
||||
# eautoreconf requires: gnome-common, gobject-introspection-common, yelp-tools
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if use vala; then
|
||||
DISABLE_AUTOFORMATTING="yes"
|
||||
DOC_CONTENTS="To create a generic vala project you will need to specify
|
||||
desired valac versioned binary to be used, to do that you
|
||||
will need to:
|
||||
1. Go to 'Build' -> 'Configure project'
|
||||
2. Add 'VALAC=/usr/bin/valac-X.XX' (respecting quotes) to
|
||||
'Configure options'."
|
||||
fi
|
||||
|
||||
# COPYING is used in Anjuta's help/about entry
|
||||
DOCS="AUTHORS ChangeLog COPYING FUTURE MAINTAINERS NEWS README ROADMAP THANKS TODO"
|
||||
|
||||
# Conflicts with -pg in a plugin, bug #266777
|
||||
filter-flags -fomit-frame-pointer
|
||||
|
||||
# python2.7-configure in Fedora vs. python-configure in Gentoo
|
||||
sed -e 's:$PYTHON-config:$PYTHON$PYTHON_VERSION-config:g' \
|
||||
-i plugins/am-project/tests/anjuta.lst || die "sed failed"
|
||||
|
||||
use vala && vala_src_prepare
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
gnome2_src_configure \
|
||||
--disable-static \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
$(use_enable debug) \
|
||||
$(use_enable devhelp plugin-devhelp) \
|
||||
$(use_enable glade plugin-glade) \
|
||||
$(use_enable introspection) \
|
||||
$(use_enable packagekit) \
|
||||
$(use_enable subversion plugin-subversion) \
|
||||
$(use_enable vala)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# COPYING is used in Anjuta's help/about entry
|
||||
docompress -x "/usr/share/doc/${PF}/COPYING"
|
||||
|
||||
# Anjuta uses a custom rule to install DOCS, get rid of it
|
||||
gnome2_src_install
|
||||
rm -rf "${ED}"/usr/share/doc/${PN} || die "rm failed"
|
||||
|
||||
use vala && readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_pkg_postinst
|
||||
use vala && readme.gentoo_print_elog
|
||||
}
|
@ -1,180 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-util/cmake/cmake-2.8.10.2-r1.ebuild,v 1.5 2013/04/15 21:02:55 ssuominen Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
CMAKE_REMOVE_MODULES="no"
|
||||
inherit elisp-common toolchain-funcs eutils versionator flag-o-matic base cmake-utils virtualx
|
||||
|
||||
DESCRIPTION="Cross platform Make"
|
||||
HOMEPAGE="http://www.cmake.org/"
|
||||
SRC_URI="http://www.cmake.org/files/v$(get_version_component_range 1-2)/${P}.tar.gz"
|
||||
|
||||
LICENSE="CMake"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
SLOT="0"
|
||||
IUSE="emacs ncurses qt4 vim-syntax"
|
||||
|
||||
DEPEND="
|
||||
!>=media-gfx/imagemagick-6.8
|
||||
>=app-arch/libarchive-2.8.0
|
||||
>=dev-libs/expat-2.0.1
|
||||
>=net-misc/curl-7.20.0-r1[ssl]
|
||||
sys-libs/zlib
|
||||
virtual/pkgconfig
|
||||
ncurses? ( sys-libs/ncurses )
|
||||
qt4? (
|
||||
dev-qt/qtcore:4
|
||||
dev-qt/qtgui:4
|
||||
)
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
emacs? ( virtual/emacs )
|
||||
vim-syntax? (
|
||||
|| (
|
||||
app-editors/vim
|
||||
app-editors/gvim
|
||||
)
|
||||
)
|
||||
"
|
||||
|
||||
SITEFILE="50${PN}-gentoo.el"
|
||||
VIMFILE="${PN}.vim"
|
||||
|
||||
CMAKE_BINARY="${S}/Bootstrap.cmk/cmake"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.6.3-fix_broken_lfs_on_aix.patch
|
||||
"${FILESDIR}"/${PN}-2.6.3-no-duplicates-in-rpath.patch
|
||||
"${FILESDIR}"/${PN}-2.8.0-darwin-default-install_name.patch
|
||||
"${FILESDIR}"/${PN}-2.8.7-FindBLAS.patch
|
||||
"${FILESDIR}"/${PN}-2.8.7-FindBoost-python.patch
|
||||
"${FILESDIR}"/${PN}-2.8.7-FindLAPACK.patch
|
||||
"${FILESDIR}"/${PN}-2.8.8-FindPkgConfig.patch
|
||||
"${FILESDIR}"/${PN}-2.8.10-darwin-bundle.patch
|
||||
"${FILESDIR}"/${PN}-2.8.10-desktop.patch
|
||||
"${FILESDIR}"/${PN}-2.8.10-FindPythonLibs.patch
|
||||
"${FILESDIR}"/${PN}-2.8.10-libform.patch
|
||||
"${FILESDIR}"/${PN}-2.8.10-more-no_host_paths.patch
|
||||
"${FILESDIR}"/${PN}-2.8.10.2-implicit-include.patch
|
||||
"${FILESDIR}"/${PN}-2.8.10.2-qt5.patch
|
||||
)
|
||||
|
||||
cmake_src_bootstrap() {
|
||||
# Cleanup args to extract only JOBS.
|
||||
# Because bootstrap does not know anything else.
|
||||
echo ${MAKEOPTS} | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' > /dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
par_arg=$(echo ${MAKEOPTS} | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' | tail -n1 | egrep -o '[[:digit:]]+')
|
||||
par_arg="--parallel=${par_arg}"
|
||||
else
|
||||
par_arg="--parallel=1"
|
||||
fi
|
||||
|
||||
tc-export CC CXX LD
|
||||
|
||||
# bootstrap script isn't exactly /bin/sh compatible
|
||||
${CONFIG_SHELL:-sh} ./bootstrap \
|
||||
--prefix="${T}/cmakestrap/" \
|
||||
${par_arg} \
|
||||
|| die "Bootstrap failed"
|
||||
}
|
||||
|
||||
cmake_src_test() {
|
||||
# fix OutDir test
|
||||
# this is altered thanks to our eclass
|
||||
sed -i -e 's:#IGNORE ::g' "${S}"/Tests/OutDir/CMakeLists.txt || die
|
||||
|
||||
pushd "${CMAKE_BUILD_DIR}" > /dev/null
|
||||
|
||||
local ctestargs
|
||||
[[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure"
|
||||
|
||||
# Excluded tests:
|
||||
# BootstrapTest: we actualy bootstrap it every time so why test it.
|
||||
# CTest.updatecvs, which fails to commit as root
|
||||
# Qt4Deploy, which tries to break sandbox and ignores prefix
|
||||
# TestUpload, which requires network access
|
||||
"${CMAKE_BUILD_DIR}"/bin/ctest ${ctestargs} \
|
||||
-E "(BootstrapTest|CTest.UpdateCVS|Qt4Deploy|TestUpload)" \
|
||||
|| die "Tests failed"
|
||||
|
||||
popd > /dev/null
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
einfo "Fixing java access violations ..."
|
||||
# bug 387227
|
||||
addpredict /proc/self/coredump_filter
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
base_src_prepare
|
||||
|
||||
# disable running of cmake in boostrap command
|
||||
sed -i \
|
||||
-e '/"${cmake_bootstrap_dir}\/cmake"/s/^/#DONOTRUN /' \
|
||||
bootstrap || die "sed failed"
|
||||
|
||||
# Add gcc libs to the default link paths
|
||||
sed -i \
|
||||
-e "s|@GENTOO_PORTAGE_GCCLIBDIR@|${EPREFIX}/usr/${CHOST}/lib/|g" \
|
||||
-e "s|@GENTOO_PORTAGE_EPREFIX@|${EPREFIX}/|g" \
|
||||
Modules/Platform/{UnixPaths,Darwin}.cmake || die "sed failed"
|
||||
|
||||
cmake_src_bootstrap
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# make things work with gentoo java setup
|
||||
# in case java-config cannot be run, the variable just becomes unset
|
||||
# per bug #315229
|
||||
export JAVA_HOME=$(java-config -g JAVA_HOME 2> /dev/null)
|
||||
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_USE_SYSTEM_LIBRARIES=ON
|
||||
-DCMAKE_INSTALL_PREFIX="${EPREFIX}"/usr
|
||||
-DCMAKE_DOC_DIR=/share/doc/${PF}
|
||||
-DCMAKE_MAN_DIR=/share/man
|
||||
-DCMAKE_DATA_DIR=/share/${PN}
|
||||
$(cmake-utils_use_build ncurses CursesDialog)
|
||||
$(cmake-utils_use_build qt4 QtDialog)
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
use emacs && elisp-compile Docs/cmake-mode.el
|
||||
}
|
||||
|
||||
src_test() {
|
||||
VIRTUALX_COMMAND="cmake_src_test" virtualmake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
if use emacs; then
|
||||
elisp-install ${PN} Docs/cmake-mode.el Docs/cmake-mode.elc
|
||||
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||||
fi
|
||||
if use vim-syntax; then
|
||||
insinto /usr/share/vim/vimfiles/syntax
|
||||
doins Docs/cmake-syntax.vim
|
||||
|
||||
insinto /usr/share/vim/vimfiles/indent
|
||||
doins Docs/cmake-indent.vim
|
||||
|
||||
insinto /usr/share/vim/vimfiles/ftdetect
|
||||
doins "${FILESDIR}/${VIMFILE}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
@ -1,178 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-util/cmake/cmake-2.8.9.ebuild,v 1.9 2013/04/15 21:02:55 ssuominen Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
CMAKE_REMOVE_MODULES="no"
|
||||
inherit elisp-common toolchain-funcs eutils versionator flag-o-matic base cmake-utils virtualx
|
||||
|
||||
MY_P="${PN}-$(replace_version_separator 3 - ${MY_PV})"
|
||||
|
||||
DESCRIPTION="Cross platform Make"
|
||||
HOMEPAGE="http://www.cmake.org/"
|
||||
SRC_URI="http://www.cmake.org/files/v$(get_version_component_range 1-2)/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="CMake"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
SLOT="0"
|
||||
IUSE="emacs ncurses qt4 vim-syntax"
|
||||
|
||||
DEPEND="
|
||||
!>=media-gfx/imagemagick-6.8
|
||||
>=app-arch/libarchive-2.8.0
|
||||
>=net-misc/curl-7.20.0-r1[ssl]
|
||||
>=dev-libs/expat-2.0.1
|
||||
virtual/pkgconfig
|
||||
sys-libs/zlib
|
||||
ncurses? ( sys-libs/ncurses )
|
||||
qt4? ( dev-qt/qtgui:4 )
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
emacs? ( virtual/emacs )
|
||||
vim-syntax? (
|
||||
|| (
|
||||
app-editors/vim
|
||||
app-editors/gvim
|
||||
)
|
||||
)
|
||||
"
|
||||
|
||||
SITEFILE="50${PN}-gentoo.el"
|
||||
VIMFILE="${PN}.vim"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
CMAKE_BINARY="${S}/Bootstrap.cmk/cmake"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.6.3-darwin-bundle.patch
|
||||
"${FILESDIR}"/${PN}-2.6.3-fix_broken_lfs_on_aix.patch
|
||||
"${FILESDIR}"/${PN}-2.6.3-no-duplicates-in-rpath.patch
|
||||
"${FILESDIR}"/${PN}-2.8.0-darwin-default-install_name.patch
|
||||
"${FILESDIR}"/${PN}-2.8.1-libform.patch
|
||||
"${FILESDIR}"/${PN}-2.8.4-FindPythonLibs.patch
|
||||
"${FILESDIR}"/${PN}-2.8.7-FindBLAS.patch
|
||||
"${FILESDIR}"/${PN}-2.8.7-FindBoost-python.patch
|
||||
"${FILESDIR}"/${PN}-2.8.7-FindLAPACK.patch
|
||||
"${FILESDIR}"/${PN}-2.8.8-FindPkgConfig.patch
|
||||
"${FILESDIR}"/${PN}-2.8.8-tests.patch
|
||||
"${FILESDIR}"/${PN}-2.8.9-more-no_host_paths.patch
|
||||
)
|
||||
|
||||
cmake_src_bootstrap() {
|
||||
# Cleanup args to extract only JOBS.
|
||||
# Because bootstrap does not know anything else.
|
||||
echo ${MAKEOPTS} | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' > /dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
par_arg=$(echo ${MAKEOPTS} | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' | egrep -o '[[:digit:]]+')
|
||||
par_arg="--parallel=${par_arg}"
|
||||
else
|
||||
par_arg="--parallel=1"
|
||||
fi
|
||||
|
||||
tc-export CC CXX LD
|
||||
|
||||
# bootstrap script isn't exactly /bin/sh compatible
|
||||
${CONFIG_SHELL:-sh} ./bootstrap \
|
||||
--prefix="${T}/cmakestrap/" \
|
||||
${par_arg} \
|
||||
|| die "Bootstrap failed"
|
||||
}
|
||||
|
||||
cmake_src_test() {
|
||||
# fix OutDir test
|
||||
# this is altered thanks to our eclass
|
||||
sed -i -e 's:#IGNORE ::g' "${S}"/Tests/OutDir/CMakeLists.txt || die
|
||||
|
||||
pushd "${CMAKE_BUILD_DIR}" > /dev/null
|
||||
|
||||
local ctestargs
|
||||
[[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure"
|
||||
|
||||
# Excluded tests:
|
||||
# BootstrapTest: we actualy bootstrap it every time so why test it.
|
||||
# SimpleCOnly_sdcc: sdcc choke on global cflags so just skip the test
|
||||
# as it was never intended to be used this way.
|
||||
"${CMAKE_BUILD_DIR}"/bin/ctest ${ctestargs} \
|
||||
-E BootstrapTest SimpleCOnly_sdcc \
|
||||
|| die "Tests failed"
|
||||
|
||||
popd > /dev/null
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
einfo "Fixing java access violations ..."
|
||||
# bug 387227
|
||||
addpredict /proc/self/coredump_filter
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
base_src_prepare
|
||||
|
||||
# disable running of cmake in boostrap command
|
||||
sed -i \
|
||||
-e '/"${cmake_bootstrap_dir}\/cmake"/s/^/#DONOTRUN /' \
|
||||
bootstrap || die "sed failed"
|
||||
|
||||
# Add gcc libs to the default link paths
|
||||
sed -i \
|
||||
-e "s|@GENTOO_PORTAGE_GCCLIBDIR@|${EPREFIX}/usr/${CHOST}/lib/|g" \
|
||||
-e "s|@GENTOO_PORTAGE_EPREFIX@|${EPREFIX}/|g" \
|
||||
Modules/Platform/{UnixPaths,Darwin}.cmake || die "sed failed"
|
||||
|
||||
cmake_src_bootstrap
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# make things work with gentoo java setup
|
||||
# in case java-config cannot be run, the variable just becomes unset
|
||||
# per bug #315229
|
||||
export JAVA_HOME=$(java-config -g JAVA_HOME 2> /dev/null)
|
||||
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_USE_SYSTEM_LIBRARIES=ON
|
||||
-DCMAKE_INSTALL_PREFIX="${EPREFIX}"/usr
|
||||
-DCMAKE_DOC_DIR=/share/doc/${PF}
|
||||
-DCMAKE_MAN_DIR=/share/man
|
||||
-DCMAKE_DATA_DIR=/share/${PN}
|
||||
$(cmake-utils_use_build ncurses CursesDialog)
|
||||
$(cmake-utils_use_build qt4 QtDialog)
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
use emacs && elisp-compile Docs/cmake-mode.el
|
||||
}
|
||||
|
||||
src_test() {
|
||||
VIRTUALX_COMMAND="cmake_src_test" virtualmake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
if use emacs; then
|
||||
elisp-install ${PN} Docs/cmake-mode.el Docs/cmake-mode.elc
|
||||
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||||
fi
|
||||
if use vim-syntax; then
|
||||
insinto /usr/share/vim/vimfiles/syntax
|
||||
doins Docs/cmake-syntax.vim
|
||||
|
||||
insinto /usr/share/vim/vimfiles/indent
|
||||
doins Docs/cmake-indent.vim
|
||||
|
||||
insinto /usr/share/vim/vimfiles/ftdetect
|
||||
doins "${FILESDIR}/${VIMFILE}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
Don't use .so for modules on darwin/macos. Use .bundle instead.
|
||||
Patch by Heiko Przybyl
|
||||
|
||||
--- Modules/Platform/Darwin.cmake
|
||||
+++ Modules/Platform/Darwin.cmake
|
||||
@@ -23,7 +23,7 @@
|
||||
SET(CMAKE_SHARED_LIBRARY_PREFIX "lib")
|
||||
SET(CMAKE_SHARED_LIBRARY_SUFFIX ".dylib")
|
||||
SET(CMAKE_SHARED_MODULE_PREFIX "lib")
|
||||
-SET(CMAKE_SHARED_MODULE_SUFFIX ".so")
|
||||
+SET(CMAKE_SHARED_MODULE_SUFFIX ".bundle")
|
||||
SET(CMAKE_MODULE_EXISTS 1)
|
||||
SET(CMAKE_DL_LIBS "")
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle -headerpad_max_install_names")
|
||||
SET(CMAKE_SHARED_MODULE_LOADER_C_FLAG "-Wl,-bundle_loader,")
|
||||
SET(CMAKE_SHARED_MODULE_LOADER_CXX_FLAG "-Wl,-bundle_loader,")
|
||||
-SET(CMAKE_FIND_LIBRARY_SUFFIXES ".dylib" ".so" ".a")
|
||||
+SET(CMAKE_FIND_LIBRARY_SUFFIXES ".dylib" ".bundle" ".a")
|
||||
|
||||
# hack: if a new cmake (which uses CMAKE_INSTALL_NAME_TOOL) runs on an old build tree
|
||||
# (where install_name_tool was hardcoded) and where CMAKE_INSTALL_NAME_TOOL isn't in the cache
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue