Sync with portage [Wed Oct 24 09:51:09 MSK 2012].

mhiretskiy
root 12 years ago
parent 8959a4200b
commit ebb1e90965

@ -1,4 +1,4 @@
DIST eselect-1.2.15.tar.bz2 169358 SHA256 fa8e3b2af2bc4a951ddb6067ba1e786a04681555ab7e83d50d4eb85047f2e7d7 SHA512 228b1a3a8e8fee6ede929c8d36532ca58537ea59f1e9d055c9ca49049949ffc76dde2c04d684c63ec2df451bda5f0ee3d38e3a1c56d13f671be88f0f9fbb3dee WHIRLPOOL b4972c570038c2e27e61002ba008d17eeab102316cb49e1118b02387b14b9f4cc1b6032ed0654c6ba4f8f60eb15dea0677e147cd47137b93c9f66832339649af
DIST eselect-1.2.18.tar.bz2 170120 SHA256 68581af8f7ca427dbd726b766071c833918fb5ae25ad03224def7e1599297b3c SHA512 e73c2503163e4c3400885ada32d4c7a4a2a511d7747c9add92522a9f3117eff6174092310ee0b5d56fb25546d11a881c643e00ef653d00d58e07a7742a1b5004 WHIRLPOOL 37b1bf6917b8e3dff48153a0c7af72d0b991392de79c95e3dcf484ed98077e20626ff967d6a0887167ec77536e12ac3fc4699e2d1b9f1d2c6fdce81f3218ef4d
DIST eselect-1.3.1.tar.xz 163908 SHA256 4fc1c3f1b021dd8d28475ab2115f6a2de843bbbb941a0f70999389d1e0d56444 SHA512 b62e3e9f9c145a92625d136ea14ffa9705fa312971160ee3bb33f285dd67f6e6f415c7b9909b902b872500663a7a79c6fe53f52d179de7b7e120c5de994effd3 WHIRLPOOL a04a20c25617c3a53b0937c7f01f6dc89677beb5e1917a8d078a7f4403d4d77b7342da47766a061bc9158962ada190901db5b99d4b9603c49d9b90d3ad57feb5
DIST eselect-1.3.2.tar.xz 164168 SHA256 8b3906133090229defd6c5017fac0049e14cc0a5185c479cb3e6155a71827a78 SHA512 3225ce8b4313ae15bc7be8f047b29a202976c4a8766005487b78031a0e11e6395da55d74a961b022685126b397f8811babd3ee6580e8ba94e1ddd117964207e5 WHIRLPOOL 94917cad340ab697a35d0b3d4e80e95a6d764829692d54e0ee17fdef84c847aa35da10174352b0d4ffd8f541bbf0280e4b63790a276789a66463d2c8a1a245b0
DIST eselect-1.3.3.tar.xz 164872 SHA256 09132a0e7512da5c0e5907d04736445101c83b0dd0e6283374ebbc9d76bf6b74 SHA512 480c9c0cd844471b84b2e44440b23ab7538cb6ecb953648ea63057d65ac0f475f057294313f00d3c8cf4b1f1b4effb960cafdd636421302100b8ad7b82213114 WHIRLPOOL c91c91d5e52a9eeba0e8ef86a741838ce3dec2f5b0f0911ada3de3d51a5eba7b9addd9a4e4696171fa4ff3c71f7db494cd8f356d0d7b5daf943b0c24129ac2ea

@ -1,58 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect/eselect-1.2.15.ebuild,v 1.7 2011/09/09 10:43:05 ulm Exp $
inherit bash-completion-r1
DESCRIPTION="Gentoo's multi-purpose configuration and management tool"
HOMEPAGE="http://www.gentoo.org/proj/en/eselect/"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="doc"
RDEPEND="sys-apps/sed
|| (
sys-apps/coreutils
sys-freebsd/freebsd-bin
app-misc/realpath
)"
DEPEND="${RDEPEND}
doc? ( dev-python/docutils )"
RDEPEND="!app-admin/eselect-news
${RDEPEND}
sys-apps/file
sys-libs/ncurses"
# Commented out: only few users of eselect will edit its source
#PDEPEND="emacs? ( app-emacs/gentoo-syntax )
# vim-syntax? ( app-vim/eselect-syntax )"
src_compile() {
econf
emake || die "emake failed"
if use doc; then
make html || die "failed to build html"
fi
}
src_install() {
emake DESTDIR="${D}" install || die "make install failed"
newbashcomp misc/${PN}.bashcomp ${PN} || die
dodoc AUTHORS ChangeLog NEWS README TODO doc/*.txt
use doc && dohtml *.html doc/*
# needed by news module
keepdir /var/lib/gentoo/news
}
pkg_postinst() {
# fowners in src_install doesn't work for the portage group:
# merging changes the group back to root
[[ -z ${EROOT} ]] && local EROOT=${ROOT}
chgrp portage "${EROOT}/var/lib/gentoo/news" \
&& chmod g+w "${EROOT}/var/lib/gentoo/news"
}

@ -0,0 +1,68 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect/eselect-1.3.3.ebuild,v 1.1 2012/10/23 15:30:14 ulm Exp $
EAPI=3
inherit eutils bash-completion-r1
DESCRIPTION="Gentoo's multi-purpose configuration and management tool"
HOMEPAGE="http://www.gentoo.org/proj/en/eselect/"
SRC_URI="mirror://gentoo/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="doc"
RDEPEND="sys-apps/sed
|| (
sys-apps/coreutils
sys-freebsd/freebsd-bin
app-misc/realpath
)"
DEPEND="${RDEPEND}
app-arch/xz-utils
doc? ( dev-python/docutils )"
RDEPEND="!app-admin/eselect-news
${RDEPEND}
sys-apps/file
sys-libs/ncurses"
# Commented out: only few users of eselect will edit its source
#PDEPEND="emacs? ( app-emacs/gentoo-syntax )
# vim-syntax? ( app-vim/eselect-syntax )"
src_compile() {
emake || die
if use doc; then
emake html || die
fi
}
src_install() {
emake DESTDIR="${D}" install || die
newbashcomp misc/${PN}.bashcomp ${PN} || die
dodoc AUTHORS ChangeLog NEWS README TODO doc/*.txt || die
if use doc; then
dohtml *.html doc/* || die
fi
# needed by news module
keepdir /var/lib/gentoo/news
if ! use prefix; then
fowners root:portage /var/lib/gentoo/news || die
fperms g+w /var/lib/gentoo/news || die
fi
}
pkg_postinst() {
# fowners in src_install doesn't work for the portage group:
# merging changes the group back to root
if ! use prefix; then
chgrp portage "${EROOT}/var/lib/gentoo/news" \
&& chmod g+w "${EROOT}/var/lib/gentoo/news"
fi
}

@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/integrit/integrit-4.1-r1.ebuild,v 1.1 2012/10/22 12:58:58 ago Exp $
# $Header: /var/cvsroot/gentoo-x86/app-admin/integrit/integrit-4.1-r1.ebuild,v 1.2 2012/10/23 18:57:19 radhermit Exp $
EAPI=4
@ -14,8 +14,6 @@ SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
RESTRICT="test" # 276190
src_prepare() {
sed -i -e "/^CC/d" configure.in hashtbl/configure.in || die
sed -i -e "/^AC_PROGRAM_PATH/d" configure.in hashtbl/configure.in || die
@ -31,6 +29,11 @@ src_compile() {
cd "${S}"/hashtbl && emake hashtest
}
src_test() {
chmod +x test/test || die
default
}
src_install() {
dosbin integrit
dolib libintegrit.a

@ -1,9 +1,9 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/usbview/usbview-2.0.ebuild,v 1.2 2012/10/23 07:06:31 ssuominen Exp $
# $Header: /var/cvsroot/gentoo-x86/app-admin/usbview/usbview-2.0.ebuild,v 1.3 2012/10/23 15:56:20 ssuominen Exp $
EAPI=4
inherit eutils
inherit eutils linux-info
DESCRIPTION="Display the topology of devices on the USB bus"
HOMEPAGE="http://www.kroah.com/linux-usb/"
@ -20,6 +20,11 @@ DEPEND="${RDEPEND}
DOCS="AUTHORS ChangeLog NEWS README TODO"
pkg_setup() {
CONFIG_CHECK="~DEBUG_FS"
linux-info_pkg_setup
}
src_install() {
default
doicon usb_icon.xpm

@ -1 +1,2 @@
DIST gummi-0.6.4.tar.gz 513494 SHA256 ac5c1de476f8689040a185b01515544a5e53da45ff4e10a072b8944e9de8a6ff SHA512 8209c7a3a59ee1fdc95f47769890857eb7d7e11f6ddfb11476c15e453126e71a4129273e1cb5989ba4d5aabdf1cc7e9d17f7aedc1d0431b189f3f2b54e2e9f29 WHIRLPOOL 52f3cca7e218d3ac97ef58e71ea350b128306fd1bf4f4080f95981eaea8023378b32f2c9816e50e4b697778a46496186da5c0f64810142d117e6d8314430259c
DIST gummi-0.6.5.tar.gz 520902 SHA256 b23c2958376ea43c701a276ad19ceac5b50d9cb32a489a10897b25aa5004fffb SHA512 9a35533273ff5f2606ba1d79c01dcdf14f2a47628eb5d19613330650ed2a2bd542461492d031e51b773e13c6ac406b564e6703919f16e5f8d7e6bb3c4428b40e WHIRLPOOL 47e1ad5a15183ed0d24a88ebc3bc1af166604825da54db10461243ba4c1b8d6ca82d1afaf7306ef45a4df0f65d103b6cbc83db02cb6469fb7138545e16ae2728

@ -0,0 +1,44 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/gummi/gummi-0.6.5.ebuild,v 1.1 2012/10/23 17:58:13 hwoarang Exp $
EAPI=4
inherit base eutils
DESCRIPTION="Simple LaTeX editor for GTK+"
HOMEPAGE="http://gummi.midnightcoding.org"
SRC_URI="http://dev.midnightcoding.org/attachments/download/301/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
LANGS="ar ca cs da de el es fr hu it nl pl pt pt_BR ro ru sv zh_CN zh_TW"
for X in ${LANGS} ; do
IUSE="${IUSE} linguas_${X}"
done
RDEPEND="app-text/gtkspell:2
>=dev-libs/glib-2.28.6
dev-texlive/texlive-latex
dev-texlive/texlive-latexextra
>=x11-libs/gtk+-2.24:2
x11-libs/gtksourceview:2.0"
DEPEND="${RDEPEND}
app-text/poppler[cairo]
x11-libs/gtksourceview:2.0
x11-libs/pango"
DOCS=( AUTHORS ChangeLog README )
src_prepare() {
strip-linguas ${LANGS}
}
pkg_postinst() {
elog "Gummi >=0.4.8 supports spell-checking through gtkspell. Support for"
elog "additional languages can be added by installing myspell-** packages"
elog "for your language of choice."
}

@ -1,4 +1,5 @@
DIST libvirt-0.10.2-7feb3393.tar.xz 10180 SHA256 12eae00f6d4f67ddc1b58b5e37385389d0331c105a3c7b1696d1284fb05fa0c5 SHA512 35a26b953d8c0d9d352812006c4d93ccacfc667b7ed62894f7429e744c74acd78691dd459806900d16115e165a5428edd42820e7db46bf0dfac6162d8073d52b WHIRLPOOL f7735207e9618d98320d7fcdfaeff443972ab7ff184279f79e2a6c6cc47385632adf7e6dbf73c3759719b418cb6db1ed902bf95e3d39b967a370c3129eebdddd
DIST libvirt-0.10.2-85e8c146.tar.xz 9096 SHA256 df88922446f4667051348c6919bbbb79697661e95d3fc952c273272356fef5ed SHA512 f4f4344289b590dc32a1d8cbc0173d05a3e64aa675ab3721b32381147db74fb77dab23100dbc19d433b043379992a278eb922e14fef33d4c899133ccb8bf111b WHIRLPOOL d763e2d97be476d1e5133105972dcaefcad763705043d504d1608ce1df1967940b26668410685ae9bb7fd1df06ef0dda884235642ee984c85ce00a91bba1e8ba
DIST libvirt-0.10.2.tar.gz 21916817 SHA256 1fe69ae1268a097cc0cf83563883b51780d528c6493efe3e7d94c4160cc46977 SHA512 b0e784ebedf1c6694792ae9d7672101669441e08ad0352be3d57eaae03d6cd99527c2826ea41e3edcf069eab6f2168200b198bca9504d8d63375d20ecbead120 WHIRLPOOL 4a1651be688aabc3b175da762cc88dfe8b61268bf42bb731d7e74ab8b51cf2c1793c77eff6b5d7696b2a4d5bb1103f40d5fbe544d8784dc80e6899c28e2d3f50
DIST libvirt-0.9.13-bp-1.tar.xz 6160 SHA256 dfb91f17d999f1aaf17e9cb59b64227631851ccfabaa24f0ba217dd5f4ae8f51 SHA512 9d7b7d9106fa217d1d6a218196b4692c6f560ffa2824de2b0e04ca35e8eb9ee6abeb02fece3720aa649128596c0990613d7914ab7dadfc7c8e830208882a2e1b WHIRLPOOL 54d96823526d569f081805569fa94947a0843c45cbefa83492e0da19741474fe6d07e212c5dadf93fa2d9123e05c21ab30cec9d8fff3f1ccff6dba8b41f23c8d
DIST libvirt-0.9.13.tar.gz 20276757 SHA256 d124e9915c88c195da9c008a6d855e53e555dca5816052e163dda61388359d5b SHA512 d275cf6dd6c5700eeee701ff4d28a1483137f8c7525496069438b9e81727761066f1d4b1504bf170f6a3f457ecc203f6b5e7b367fe931803cb7592cccceb7f71 WHIRLPOOL 26a5c660c07516c3736f7bd818b6b4b06c98d78181ba991139818f321ace43a33dcc7d095ce6f02b94f7b3aea7c556bb5388cea34ef801576e4d86f9c08712f7

@ -0,0 +1,389 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-0.10.2-r3.ebuild,v 1.1 2012/10/23 16:55:52 cardoe Exp $
EAPI=4
BACKPORTS=85e8c146
AUTOTOOLIZE=yes
MY_P="${P/_rc/-rc}"
PYTHON_DEPEND="python? 2:2.5"
#RESTRICT_PYTHON_ABIS="3.*"
#SUPPORT_PYTHON_ABIS="1"
inherit eutils python user autotools linux-info
if [[ ${PV} = *9999* ]]; then
inherit git-2
EGIT_REPO_URI="git://libvirt.org/libvirt.git"
AUTOTOOLIZE=yes
SRC_URI=""
KEYWORDS=""
else
SRC_URI="http://libvirt.org/sources/${MY_P}.tar.gz
ftp://libvirt.org/libvirt/${MY_P}.tar.gz
${BACKPORTS:+
http://dev.gentoo.org/~cardoe/distfiles/${MY_P}-${BACKPORTS}.tar.xz}"
KEYWORDS="~amd64 ~x86"
fi
S="${WORKDIR}/${P%_rc*}"
DESCRIPTION="C toolkit to manipulate virtual machines"
HOMEPAGE="http://www.libvirt.org/"
LICENSE="LGPL-2.1"
SLOT="0"
IUSE="audit avahi +caps debug iscsi +libvirtd lvm +lxc +macvtap nfs \
nls numa openvz parted pcap phyp policykit python qemu rbd sasl \
selinux +udev uml +vepa virtualbox virt-network xen elibc_glibc"
REQUIRED_USE="libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) )
lxc? ( caps libvirtd )
openvz? ( libvirtd )
qemu? ( libvirtd )
uml? ( libvirtd )
vepa? ( macvtap )
virtualbox? ( libvirtd )
xen? ( libvirtd )"
# gettext.sh command is used by the libvirt command wrappers, and it's
# non-optional, so put it into RDEPEND.
# We can use both libnl:1.1 and libnl:3, but if you have both installed, the
# package will use 3 by default. Since we don't have slot pinning in an API,
# we must go with the most recent
RDEPEND="sys-libs/readline
sys-libs/ncurses
>=net-misc/curl-7.18.0
dev-libs/libgcrypt
>=dev-libs/libxml2-2.7.6
dev-libs/libnl:3
>=net-libs/gnutls-1.0.25
net-libs/libssh2
sys-apps/dmidecode
>=sys-apps/util-linux-2.17
sys-devel/gettext
>=net-analyzer/netcat6-1.0-r2
app-misc/scrub
audit? ( sys-process/audit )
avahi? ( >=net-dns/avahi-0.6[dbus] )
caps? ( sys-libs/libcap-ng )
iscsi? ( sys-block/open-iscsi )
lxc? ( sys-power/pm-utils )
lvm? ( >=sys-fs/lvm2-2.02.48-r2 )
nfs? ( net-fs/nfs-utils )
numa? (
>sys-process/numactl-2.0.2
sys-process/numad
)
openvz? ( sys-kernel/openvz-sources )
parted? (
>=sys-block/parted-1.8[device-mapper]
sys-fs/lvm2
)
pcap? ( >=net-libs/libpcap-1.0.0 )
policykit? ( >=sys-auth/polkit-0.9 )
qemu? (
>=app-emulation/qemu-0.13.0
dev-libs/yajl
sys-power/pm-utils
)
rbd? ( sys-cluster/ceph )
sasl? ( dev-libs/cyrus-sasl )
selinux? ( >=sys-libs/libselinux-2.0.85 )
virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) )
xen? ( app-emulation/xen-tools app-emulation/xen )
udev? ( >=sys-fs/udev-145 >=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] )
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_MEM_RES_CTLR
~CGROUP_SCHED
~BLK_CGROUP
~NAMESPACES
~UTS_NS
~IPC_NS
~PID_NS
~NET_NS
~DEVPTS_MULTIPLE_INSTANCES
~VETH
~MACVLAN
~POSIX_MQUEUE
~!GRKERNSEC_CHROOT_MOUNT
~!GRKERNSEC_CHROOT_DOUBLE
~!GRKERNSEC_CHROOT_PIVOT
~!GRKERNSEC_CHROOT_CHMOD
~!GRKERNSEC_CHROOT_CAPS
"
VIRTNET_CONFIG_CHECK="
~BRIDGE_NF_EBTABLES
~NETFILTER_ADVANCED
~NETFILTER_XT_TARGET_CHECKSUM
"
MACVTAP_CONFIG_CHECK="~MACVTAP"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
enewgroup qemu 77
enewuser qemu 77 -1 -1 qemu kvm
# Some people used the masked ebuild which was not adding the qemu
# user to the kvm group originally. This results in VMs failing to
# start for some users. bug #430808
egetent group kvm | grep -q qemu
if [[ $? -ne 0 ]]; then
gpasswd -a qemu kvm
fi
CONFIG_CHECK=""
use lxc && CONFIG_CHECK+="${LXC_CONFIG_CHECK}"
kernel_is lt 3 5 && use lxc && CONFIG_CHECK+=" ~USER_NS"
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
}
src_configure() {
local myconf=""
myconf="${myconf} $(use_enable debug)"
## enable/disable daemon, otherwise client only utils
myconf="${myconf} $(use_with libvirtd)"
## enable/disable the daemon using avahi to find VMs
myconf="${myconf} $(use_with avahi)"
## hypervisors on the local host
myconf="${myconf} $(use_with xen) $(use_with xen xen-inotify)"
# leave it automagic as it depends on the version of xen used.
use xen || myconf+=" --without-libxl"
use xen || myconf+=" --without-xenapi"
myconf="${myconf} $(use_with openvz)"
myconf="${myconf} $(use_with lxc)"
if use virtualbox && has_version app-emulation/virtualbox-ose; then
myconf="${myconf} --with-vbox=/usr/lib/virtualbox-ose/"
else
myconf="${myconf} $(use_with virtualbox vbox)"
fi
myconf="${myconf} $(use_with uml)"
myconf="${myconf} $(use_with qemu)"
myconf="${myconf} $(use_with qemu yajl)" # Use QMP over HMP
myconf="${myconf} $(use_with phyp)"
myconf="${myconf} --with-esx"
myconf="${myconf} --with-vmware"
## additional host drivers
myconf="${myconf} $(use_with virt-network network)"
myconf="${myconf} --with-storage-fs"
myconf="${myconf} $(use_with lvm storage-lvm)"
myconf="${myconf} $(use_with iscsi storage-iscsi)"
myconf="${myconf} $(use_with parted storage-disk)"
myconf="${myconf} $(use_with lvm storage-mpath)"
myconf="${myconf} $(use_with rbd storage-rbd)"
myconf="${myconf} $(use_with numa numactl)"
myconf="${myconf} $(use_with numa numad)"
myconf="${myconf} $(use_with selinux)"
# udev for device support details
myconf="${myconf} $(use_with udev)"
# linux capability support so we don't need privileged accounts
myconf="${myconf} $(use_with caps capng)"
## auth stuff
myconf="${myconf} $(use_with policykit polkit)"
myconf="${myconf} $(use_with sasl)"
# network bits
myconf="${myconf} $(use_with macvtap)"
myconf="${myconf} $(use_with pcap libpcap)"
myconf="${myconf} $(use_with vepa virtualport)"
## other
myconf="${myconf} $(use_enable nls)"
myconf="${myconf} $(use_with python)"
# user privilege bits fir qemu/kvm
if use caps; then
myconf="${myconf} --with-qemu-user=qemu"
myconf="${myconf} --with-qemu-group=qemu"
else
myconf="${myconf} --with-qemu-user=root"
myconf="${myconf} --with-qemu-group=root"
fi
# audit support
myconf="${myconf} $(use_with audit)"
## stuff we don't yet support
myconf="${myconf} --without-netcf"
# we use udev over hal
myconf="${myconf} --without-hal"
# locking support
myconf="${myconf} --without-sanlock"
# this is a nasty trick to work around the problem in bug
# #275073. The reason why we don't solve this properly is that
# it'll require us to rebuild autotools (and we don't really want
# to do that right now). The proper solution has been sent
# upstream and should hopefully land in 0.7.7, in the mean time,
# mime the same functionality with this.
case ${CHOST} in
*cygwin* | *mingw* )
;;
*)
ac_cv_prog_WINDRES=no
;;
esac
econf \
${myconf} \
--disable-static \
--docdir=/usr/share/doc/${PF} \
--with-remote \
--localstatedir=/var
if [[ ${PV} = *9999* ]]; then
# Restore gnulib's config.sub and config.guess
# bug #377279
(cd .gnulib && git reset --hard > /dev/null)
fi
}
src_test() {
# Explicitly allow parallel build of tests
HOME="${T}" emake check || die "tests failed"
}
src_install() {
emake install \
DESTDIR="${D}" \
HTML_DIR=/usr/share/doc/${PF}/html \
DOCS_DIR=/usr/share/doc/${PF}/python \
EXAMPLE_DIR=/usr/share/doc/${PF}/python/examples \
|| die "emake install failed"
find "${D}" -name '*.la' -delete || die
use libvirtd || return 0
# From here, only libvirtd-related instructions, be warned!
newinitd "${FILESDIR}/libvirtd.init-r9" libvirtd || die
newconfd "${FILESDIR}/libvirtd.confd-r3" libvirtd || die
keepdir /var/lib/libvirt/images
}
pkg_preinst() {
# we only ever want to generate this once
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml
fi
# We really don't want to use or support old PolicyKit cause it
# screws with the new polkit integration
if has_version sys-auth/policykit; then
rm -rf "${D}"/usr/share/PolicyKit/policy/org.libvirt.unix.policy
fi
# Only sysctl files ending in .conf work
mv "${D}"/etc/sysctl.d/libvirtd "${D}"/etc/sysctl.d/libvirtd.conf
}
pkg_postinst() {
use python && python_mod_optimize libvirt.py
# support for dropped privileges
if use qemu; then
fperms 0750 "${EROOT}/var/lib/libvirt/qemu"
fperms 0750 "${EROOT}/var/cache/libvirt/qemu"
fi
if use caps && use qemu; then
fowners -R qemu:qemu "${EROOT}/var/lib/libvirt/qemu"
fowners -R qemu:qemu "${EROOT}/var/cache/libvirt/qemu"
elif use qemu; then
fowners -R root:root "${EROOT}/var/lib/libvirt/qemu"
fowners -R root:root "${EROOT}/var/cache/libvirt/qemu"
fi
if ! use policykit; then
elog "To allow normal users to connect to libvirtd you must change the"
elog "unix sock group and/or perms in /etc/libvirt/libvirtd.conf"
fi
use libvirtd || return 0
# From here, only libvirtd-related instructions, be warned!
elog
elog "For the basic networking support (bridged and routed networks)"
elog "you don't need any extra software. For more complex network modes"
elog "including but not limited to NATed network, you can enable the"
elog "'virt-network' USE flag."
elog
if has_version net-dns/dnsmasq; then
ewarn "If you have a DNS server setup on your machine, you will have"
ewarn "to configure /etc/dnsmasq.conf to enable the following settings: "
ewarn " bind-interfaces"
ewarn " interface or except-interface"
ewarn
ewarn "Otherwise you might have issues with your existing DNS server."
fi
if use caps && use qemu; then
elog "libvirt will now start qemu/kvm VMs with non-root privileges."
elog "Ensure any resources your VMs use are accessible by qemu:qemu"
fi
}
pkg_postrm() {
use python && python_mod_cleanup libvirt.py
}

@ -1,3 +1,4 @@
DIST phpvirtualbox-4.1-11.zip 2763347 SHA256 91a78c7dead035edf8138a363c6b3cb89d8f348fa3c38455af232f51bcf592ef SHA512 c5eb1b9fd0bba20e3dda9cbe6985c60d953a340d77b9427f344e8b595a06a5d9805209cf73704fb93de5ee2f412e02cb1434ed0e983b0622cf8a8172d7dff9a5 WHIRLPOOL ca95767f63f3c018738de36dede1859e0b6185cd22d4f7a40128dd5a14791ca9402a2ef54c4928c1a4c4408ddcb62b312a4d05743c0722f9a8fee1555df4021a
DIST phpvirtualbox-4.1-7.zip 2760199 SHA256 16c27cd1bcc843b464752c3dd7091247b690218bca06fcecbdd130c5daf70b7c SHA512 657d5c5424d540ef3da9db54e638d227b68fcc336ec097f8a319a689990a53ad9f17af6fd0cd4be699212e83f06468bb65c4da03faf0a65ff77386f23aaf9409 WHIRLPOOL f2327749d6333bc07dce1f28f42e297f8e24777b556967513218d429e78db1fdd00112cca5ddd91d94012a8b0c5ab7c475c7209b3f12e2bad95085ce112f6f3d
DIST phpvirtualbox-4.2-1.zip 3160160 SHA256 d0b0dc480f055ba98408c4dcc548cd603f11e2ba35bb99bcededfb94b19f4403 SHA512 4370c4fa92522243acef91e571bae53f5237da04398a93c83c7f0ab7dacd3b18dbbc201046770360c8a04ad752366bd47f7a15acfe2337f5ac4987907a9beb97 WHIRLPOOL fd90f66d6928417c967f05b6d04432082bb009bded11792d37bf35c36875da7e729d72565f630c59ccd48d6fe7ff555eb0123a8c000d9fea1b30a3e47834f908
DIST phpvirtualbox-4.2-3b.zip 3184088 SHA256 23134a05d22ac9429524abb9d7165eb4c0ef7c52c917e9ced317e9ff71d0405f SHA512 c0ebf5fb2defd23b5999d7616e47a93696259973b563e2e0cd415db0a9f5be5f3798ac9e6d242c44208ce2c51ba2ab7cf43288ae8108563b45bd119ba2fa8c2f WHIRLPOOL 467385c219fc525151285390fa5a68b273b52be699e97a308f77c74bdeab911a845a7e28343b665ee2d6126aca2f0c3021816adbaa23b0d563ea06d7ec20c62c

@ -0,0 +1,67 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/phpvirtualbox/phpvirtualbox-4.2.3b.ebuild,v 1.1 2012/10/23 19:17:16 hwoarang Exp $
EAPI="2"
inherit versionator eutils webapp depend.php
MY_PV="$(replace_version_separator 2 '-')"
MY_P="${PN}-${MY_PV}"
DESCRIPTION="Web-based administration for VirtualBox in PHP"
HOMEPAGE="http://phpvirtualbox.googlecode.com"
SRC_URI="http://${PN}.googlecode.com/files/${MY_P}.zip"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="
dev-lang/php[session,unicode,soap,gd]
"
DEPEND="app-arch/unzip"
need_php_httpd
src_install() {
webapp_src_preinst
cd ${MY_P}
dodoc CHANGELOG.txt LICENSE.txt README.txt || die
rm -f CHANGELOG.txt LICENSE.txt README.txt
insinto "${MY_HTDOCSDIR}"
doins -r .
webapp_configfile "${MY_HTDOCSDIR}"/config.php-example
webapp_serverowned "${MY_HTDOCSDIR}"/config.php-example
webapp_src_install
if has_version app-emulation/virtualbox[vboxwebsrv] || \
has_version app-emulation/virtualbox-bin[vboxwebsrv]
then
newinitd "${FILESDIR}"/vboxinit-initd vboxinit
fi
}
pkg_postinst() {
webapp_pkg_postinst
elog "Local or remote virtualbox hosts must be compiled with"
elog "'vboxwebsrv' useflag and the respective init script"
elog "must be running to use this interface"
elog " /etc/init.d/vboxwebsrv start"
elog
elog "To enable the automatic startup mode feature uncomment the"
elog "following line in the config.php file:"
elog " var \$startStopConfig = true;"
elog
elog "You should also add the /etc/init.d/vboxinit script to the"
elog "default runlevel on the virtualbox host:"
elog "\`rc-update add vboxinit default\`"
elog "If the server is on a remote host, than the script must be"
elog "copied manually from"
elog "${FILESDIR}/vboxinit-initd to /etc/init.d/vboxinit"
elog "on the remote host."
}

@ -1,2 +1,3 @@
DIST VBoxGuestAdditions_4.1.22.iso 52207616 SHA256 5c7d9a4a31c8a926ba6dbae2b9704a561638e94ea0fc4f805a9231dd4f932d46 SHA512 529e5f236a1c4bad9123941d8fc3b0d73f93309d42656bf72090282bd970843457af548323079e36ea95d14b8320b3aaafb3ae790da5694d22f538ff8aa1fcf3 WHIRLPOOL f826dd334cfcc25b64b0ecdfb6a5e15bed60d3ceb398710a1787ea43f154b72e1117840f448ba398dcfe149ce0897799b57f0cf1e1e8b070cc055bc9e98896f9
DIST VBoxGuestAdditions_4.2.0.iso 55207936 SHA256 ef274ecdcb48adec469656959e51c8468b6d3a7733ddf93f9a3713f77f1604f3 SHA512 e6d9241298297bac9fdcc0cbd8afba8d5075b531d966059ae7cf216cf4b1536e9320e773c0bbe3b376effa8b49bc189189607e85735149f73a7cacff5ad2d798 WHIRLPOOL 1fb8418151bc9ed323044834d65b042792a434d0e91cb873c07be03d85789b316979dd73b75d34967ccfce442717cddb54976467d1f7111e9a6662c4c2c7ce91
DIST VBoxGuestAdditions_4.2.2.iso 56872960 SHA256 26f5390b36a3bb9855846d194dcd287b8e53613b599c6ffd7aff1b451cc7f1f1 SHA512 f82e3c4705140cd33737c0819b541bb7c8613ca03bf13fc8d7baeba7f0425b29f04beea7d1e0235080023ef2e23521f458c2a208ddc36736db791955f5c12780 WHIRLPOOL b58f0cead91e291abe61168caef4405884f625c93fd593abe6995abacb9fb078908f11289604c016c5293ff5d557975ebb368fb3e763bf11c31390913cabcf73

@ -0,0 +1,34 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-additions/virtualbox-additions-4.2.2.ebuild,v 1.1 2012/10/24 04:40:47 patrick Exp $
EAPI=2
inherit eutils
MY_PN=VBoxGuestAdditions
MY_PV="${PV/beta/BETA}"
MY_PV="${MY_PV/rc/RC}"
MY_P=${MY_PN}_${MY_PV}
DESCRIPTION="CD image containing guest additions for VirtualBox"
HOMEPAGE="http://www.virtualbox.org/"
SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.iso"
LICENSE="PUEL"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RESTRICT="mirror"
RDEPEND="!app-emulation/virtualbox-bin
!=app-emulation/virtualbox-9999"
src_unpack() {
return 0
}
src_install() {
insinto /usr/share/${PN/-additions}
newins "${DISTDIR}"/${MY_P}.iso ${MY_PN}.iso
}

@ -1,8 +1,12 @@
DIST Oracle_VM_VirtualBox_Extension_Pack-4.1.22-80657.tar.gz 10778079 SHA256 837ea30834b7c80e2ae114bb62becac4745ad2878658239cc8eb13ff54cea75f SHA512 1dc1aa1d57a51b05e01004cabbdd40b2b5ff410d3f514cb499c50d847f8830610108bde225a6156a0d9c0c03a7ab96c4d767a7c7a6a5616191cbc1fb46486cca WHIRLPOOL 6758b41ac4d2169b618fbaff6f759ba0b5a3595c77025f61c74ef57ee180ba49c31a9d7ce2b65d37de3e921c2d734878a6deaa00741603e3d5717d203510838d
DIST Oracle_VM_VirtualBox_Extension_Pack-4.2.0-80737.tar.gz 10828566 SHA256 18055795fa95d3a49ac00fd7e5009113d871a0c87a5e0f864f88c4eeb3222218 SHA512 ef637feea9041bcd68e5937a5bcc092b99862e2b9baa95263630f5ae2c1999c0cd2522b83707fb462d7a32af6ab1dcc2bf9275fd15ac94947cc5189b92c3b64e WHIRLPOOL b0696b319dff29a050ca5520e39625fb0d956e45309a2c773f1b77ad2fab83f9d7fbef4adb3a27be9ddd50068a45e4df155013cf7b6c879a9caa9e34ecf8a7aa
DIST Oracle_VM_VirtualBox_Extension_Pack-4.2.2-81494.tar.gz 11008309 SHA256 2a0824a7f6b93842feb13fe15de16a1bb33c9221116d62ce759eed6878169c2b SHA512 1f1ef106959d342303abbc5e15f07e63ce01335c3f05d525e1d9ba1e21309f2d51bf855b3f7bb0dac62a1d9b57bb8422425a45c313e232795b2e342f0c9ffe7e WHIRLPOOL 071053f6337da7a749c49c945d383b852e6d8d669e59c36e528966d278c2f99b58760977d6c59eaa41965472a2a787268492dfdea9f8321ef4370cdff2a37359
DIST VirtualBox-4.1.22-80657-Linux_amd64.run 78693841 SHA256 d53a5cc2d1b9431d4f9443462b84549678e943be1d8b4a714d7844c741507c76 SHA512 cdd2920099c0c0349bc6750ab7cad67f23cfba109db62297ad8bede1e7a5658781a29ea1111c8ae1b07cf1eeaf2394baf419be1b9b174575f3c10c13aa9d9b68 WHIRLPOOL c532b3b48c9a0b8057c65db4cbd6e31f17e93a88a4bb5842f9b8c821e8f102d4e2b1bcbfd081ec6a1ecc95b697d8f7914542e8aefcebeb9b2137ad8edf267696
DIST VirtualBox-4.1.22-80657-Linux_x86.run 78632398 SHA256 a18a2b7723bc8c325149b5581ae36208211c7d8651269516d366db9cdafcd0ae SHA512 0f9dd4fc25828cec3ac3d2961b925a57dd88e0af1c3cf75c9199428b4090790ebd439015700b63def6c53b5acc94135e7766f36f29d6befcb03339d563fac054 WHIRLPOOL 76d06e577f2ee3d9ec0eea0b9800b618af97205ac9b036fe3f1c73b7ecccfbf6f57e49ddc224e9963eb048c5fe6e88cfedf9743b8af2df97137feb03e89fac36
DIST VirtualBox-4.2.0-80737-Linux_amd64.run 80342468 SHA256 04030998f15b656e9b76064cde3e6cb43c5a41b1e25e700f123f5a629578fe5e SHA512 12230b1910cbf7d3ef7942fa262d96caeb0a5d97cc21b344933c2b21feb0883785d51134c2d14f904972595ca4655034408d57f2327024ba7c95abbc7e2c4152 WHIRLPOOL 2a92948b86514b684cf7116d9cf4ae880cb9b559ea5379ae7c7c1dbd652549a431ace9c77704fd7a916cafab18f5f3fec88383cea7164dfc18788e1802eb8585
DIST VirtualBox-4.2.0-80737-Linux_x86.run 80158144 SHA256 d859981312c2b6ed9e596375fc180378763b09e5a3cf0d6dd61bc252789006c4 SHA512 755aa7efbe75e4bd83b04bd950955516d2a5462fd8b398092dbb8854cbba54ce22d8072b885abba883fc8c751a41ee7670c021ef72f530b726466fa3bddbbf0d WHIRLPOOL 101492d5e9b85ee7634d2b3b5cbd9f1aff258b12c951455ee969b2fe48768f48e90956a5dbcfaf8c83be6cf10f601fad6633c56a471a34762f8079f52db8a72d
DIST VirtualBox-4.2.2-81494-Linux_amd64.run 81960401 SHA256 a4d1d1f3047fb3e242338dbaa59d781b189d58021a04d29aac0a3f8ab7b54733 SHA512 8d807c05e3e47ff5613c76356a50a522b1a8dc3d665ed0f7c7f24db47f0495278e5877aa8a0057a50f0c7dac14d5b1f4aa18fb54dc61b2f4dc9d9f91b99320b0 WHIRLPOOL df48a91e981f0edc34b3e1e52691a8efe768107a02459423c740b977aae90f55e1540ee17b40f696b3d325a589eba29feeed7ef69a517b256e9a8f270298e84b
DIST VirtualBox-4.2.2-81494-Linux_x86.run 81694157 SHA256 c9f1609d9df2f467e1b79ce483e21a912dc3a1431219d5e7528815517de1c175 SHA512 2a593d6ab7d77c60ce1743e86edc6a5d50ec6e07a65dada1bb13c8a3dd7c2e5c2f454f94f32502297746615a09b08f3ffdf27b3e362ac3762fed80dfcdfe556a WHIRLPOOL 15ccffe8ebf00c8acc811911b84d1413c74b36cff1893772aa1cdaac9627c8bbefe84162b6175956bf365dc88a5efc54b924a2acaff953ff3bbc154d3410e98b
DIST VirtualBoxSDK-4.1.22-80657.zip 8805310 SHA256 89f221ae08863342e7a8da3186135796430614e5792d7f8eae284b1360f669d2 SHA512 e488f6099f814174555112bccb06710d1dd782943c01ae4afb6f907328f28b198caf992f6c142751223b71cff02cdaca206fddd5f61b00c4c010ed84f922f94d WHIRLPOOL 69d9c3c1e44e5657d88b1d6b6da0deb8b65d0f88656eea895249fb610bdc0c0539b0c6daadaf04185296fbc2553873acf86308d26725d3292760ff395bf3390d
DIST VirtualBoxSDK-4.2.0-80737.zip 9718188 SHA256 cf1bca71340d78b474c5c74eadf97d66121b39a6fa575b156f2f1e1f8a8db24d SHA512 699d01933d65fde33ebd60f7b4928801641c5ae2432fee0693da84cffe3271012a09ed7021d71381bd6894d4457e90ed02fac14dcb8b58dea396dbf990344db5 WHIRLPOOL c407867a4b4d68844553c33d012b79bbd80f2cad59e94435c451486518aca1022480fa4d13b2fddc6e93231fe5d7b9cbe6d60be3d30166e5c33a856230b43206
DIST VirtualBoxSDK-4.2.2-81494.zip 9714925 SHA256 694fe0bef149e4f0802d2415f914e77e49f897b69316d608f4d7c4ef62acfbb9 SHA512 169982667582534cf160d6049ca8bd9a0f62b1c33c2e4037747eedafecd999218084fb85d8d4af3fca00b8126eb64a6b845e3d5590cd0ab24e0dfbd394ff6e53 WHIRLPOOL 96673147e0a9fa35ded2c84a6e36f1884ac91584824daef0b90f1b137db115cc0dce9837ae15aa5d8a1f6b424db1fc1f24cbf99c25fb55fc68714e64a1519f7f

@ -0,0 +1,346 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-bin/virtualbox-bin-4.2.2.ebuild,v 1.1 2012/10/24 04:41:40 patrick Exp $
EAPI=2
inherit eutils unpacker fdo-mime gnome2 pax-utils
MY_PV=${PV/beta/BETA}
MY_PV=${MY_PV/rc/RC}
VBOX_PV=${MY_PV}-81494
SDK_PV=${VBOX_PV}
EXTP_PV=${SDK_PV}
MY_P=VirtualBox-${VBOX_PV}-Linux
EXTP_PN=Oracle_VM_VirtualBox_Extension_Pack
DESCRIPTION="Family of powerful x86 virtualization products for enterprise as well as home use"
HOMEPAGE="http://www.virtualbox.org/"
SRC_URI="amd64? ( http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_amd64.run )
x86? ( http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_x86.run )
sdk? ( http://download.virtualbox.org/virtualbox/${MY_PV}/VirtualBoxSDK-${SDK_PV}.zip )
http://download.virtualbox.org/virtualbox/${MY_PV}/${EXTP_PN}-${EXTP_PV}.vbox-extpack -> ${EXTP_PN}-${EXTP_PV}.tar.gz"
LICENSE="GPL-2 PUEL"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+additions +chm headless python sdk vboxwebsrv rdesktop-vrdp"
RESTRICT="mirror"
DEPEND="app-arch/unzip"
RDEPEND="!!app-emulation/virtualbox
!app-emulation/virtualbox-additions
~app-emulation/virtualbox-modules-${PV}
!headless? (
x11-libs/libXcursor
media-libs/libsdl[X]
x11-libs/libXrender
x11-libs/libXfixes
media-libs/libpng
x11-libs/libXi
x11-libs/libXrandr
x11-libs/libXinerama
x11-libs/libXft
media-libs/freetype
media-libs/fontconfig
x11-libs/libXext
dev-libs/glib
chm? ( dev-libs/expat )
)
x11-libs/libXt
dev-libs/libxml2
x11-libs/libXau
x11-libs/libX11
x11-libs/libXmu
x11-libs/libSM
x11-libs/libICE
x11-libs/libXdmcp
python? ( || (
dev-lang/python:2.7
dev-lang/python:2.6
dev-lang/python:2.5
) )"
S=${WORKDIR}
QA_TEXTRELS_amd64="opt/VirtualBox/VBoxVMM.so"
QA_TEXTRELS_x86="opt/VirtualBox/VBoxGuestPropSvc.so
opt/VirtualBox/VBoxSDL.so
opt/VirtualBox/VBoxDbg.so
opt/VirtualBox/VBoxSharedFolders.so
opt/VirtualBox/VBoxDD2.so
opt/VirtualBox/VBoxOGLrenderspu.so
opt/VirtualBox/VBoxPython.so
opt/VirtualBox/VBoxPython2_5.so
opt/VirtualBox/VBoxPython2_6.so
opt/VirtualBox/VBoxPython2_7.so
opt/VirtualBox/VBoxDD.so
opt/VirtualBox/VBoxVRDP.so
opt/VirtualBox/VBoxDDU.so
opt/VirtualBox/VBoxREM64.so
opt/VirtualBox/VBoxSharedClipboard.so
opt/VirtualBox/VBoxHeadless.so
opt/VirtualBox/VBoxRT.so
opt/VirtualBox/VRDPAuth.so
opt/VirtualBox/VBoxREM.so
opt/VirtualBox/VBoxSettings.so
opt/VirtualBox/VBoxKeyboard.so
opt/VirtualBox/VBoxSharedCrOpenGL.so
opt/VirtualBox/VBoxVMM.so
opt/VirtualBox/VirtualBox.so
opt/VirtualBox/VBoxOGLhosterrorspu.so
opt/VirtualBox/components/VBoxC.so
opt/VirtualBox/components/VBoxSVCM.so
opt/VirtualBox/VBoxREM32.so
opt/VirtualBox/VBoxPython2_5.so
opt/VirtualBox/VBoxXPCOMC.so
opt/VirtualBox/VBoxOGLhostcrutil.so
opt/VirtualBox/VBoxNetDHCP.so
opt/VirtualBox/VBoxGuestControlSvc.so"
QA_PRESTRIPPED="opt/VirtualBox/VBoxDD.so
opt/VirtualBox/VBoxDD2.so
opt/VirtualBox/VBoxDDU.so
opt/VirtualBox/VBoxDbg.so
opt/VirtualBox/VBoxGuestControlSvc.so
opt/VirtualBox/VBoxGuestPropSvc.so
opt/VirtualBox/VBoxHeadless
opt/VirtualBox/VBoxHeadless.so
opt/VirtualBox/VBoxKeyboard.so
opt/VirtualBox/VBoxManage
opt/VirtualBox/VBoxNetAdpCtl
opt/VirtualBox/VBoxNetDHCP
opt/VirtualBox/VBoxNetDHCP.so
opt/VirtualBox/VBoxOGLhostcrutil.so
opt/VirtualBox/VBoxOGLhosterrorspu.so
opt/VirtualBox/VBoxOGLrenderspu.so
opt/VirtualBox/VBoxPython.so
opt/VirtualBox/VBoxPython2_5.so
opt/VirtualBox/VBoxPython2_6.so
opt/VirtualBox/VBoxPython2_7.so
opt/VirtualBox/VBoxREM.so
opt/VirtualBox/VBoxREM32.so
opt/VirtualBox/VBoxREM64.so
opt/VirtualBox/VBoxRT.so
opt/VirtualBox/VBoxSDL
opt/VirtualBox/VBoxSDL.so
opt/VirtualBox/VBoxSVC
opt/VirtualBox/VBoxSettings.so
opt/VirtualBox/VBoxSharedClipboard.so
opt/VirtualBox/VBoxSharedCrOpenGL.so
opt/VirtualBox/VBoxSharedFolders.so
opt/VirtualBox/VBoxTestOGL
opt/VirtualBox/VBoxTunctl
opt/VirtualBox/VBoxVMM.so
opt/VirtualBox/VBoxVRDP.so
opt/VirtualBox/VBoxXPCOM.so
opt/VirtualBox/VBoxXPCOMC.so
opt/VirtualBox/VBoxXPCOMIPCD
opt/VirtualBox/VRDPAuth.so
opt/VirtualBox/VirtualBox
opt/VirtualBox/VirtualBox.so
opt/VirtualBox/accessible/libqtaccessiblewidgets.so
opt/VirtualBox/components/VBoxC.so
opt/VirtualBox/components/VBoxSVCM.so
opt/VirtualBox/components/VBoxXPCOMIPCC.so
opt/VirtualBox/kchmviewer
opt/VirtualBox/libQtCoreVBox.so.4
opt/VirtualBox/libQtGuiVBox.so.4
opt/VirtualBox/libQtNetworkVBox.so.4
opt/VirtualBox/libQtOpenGLVBox.so.4
opt/VirtualBox/vboxwebsrv"
PYTHON_UPDATER_IGNORE="1"
src_unpack() {
unpack_makeself ${MY_P}_${ARCH}.run
unpack ./VirtualBox.tar.bz2
mkdir "${S}"/${EXTP_PN} || die
pushd "${S}"/${EXTP_PN} &>/dev/null || die
unpack ${EXTP_PN}-${EXTP_PV}.tar.gz
popd &>/dev/null || die
if use sdk; then
unpack VirtualBoxSDK-${SDK_PV}.zip
fi
}
src_configure() {
:;
}
src_compile() {
:;
}
src_install() {
# create virtualbox configurations files
insinto /etc/vbox
newins "${FILESDIR}/${PN}-config" vbox.cfg
if ! use headless ; then
pushd "${S}"/icons &>/dev/null || die
for size in * ; do
if [ -f "${size}/virtualbox.png" ] ; then
insinto "/usr/share/icons/hicolor/${size}/apps"
newins "${size}/virtualbox.png" ${PN}.png
fi
done
dodir /usr/share/pixmaps
cp "48x48/virtualbox.png" "${D}/usr/share/pixmaps/${PN}.png" \
|| die
popd &>/dev/null || die
newmenu "${FILESDIR}"/${PN}.desktop-2 ${PN}.desktop
fi
pushd "${S}"/${EXTP_PN} &>/dev/null || die
insinto /opt/VirtualBox/ExtensionPacks/${EXTP_PN}
doins -r linux.${ARCH}
doins ExtPack* PXE-Intel.rom
popd &>/dev/null || die
rm -rf "${S}"/${EXTP_PN}
insinto /opt/VirtualBox
dodir /opt/bin
doins UserManual.pdf
if use sdk ; then
doins -r sdk || die
fi
if use additions; then
doins -r additions || die
fi
if use vboxwebsrv; then
doins vboxwebsrv || die
fowners root:vboxusers /opt/VirtualBox/vboxwebsrv
fperms 0750 /opt/VirtualBox/vboxwebsrv
dosym /opt/VirtualBox/VBox.sh /opt/bin/vboxwebsrv
newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
fi
if use rdesktop-vrdp; then
doins rdesktop-vrdp || die
doins -r rdesktop-vrdp-keymaps || die
fperms 0750 /opt/VirtualBox/rdesktop-vrdp
dosym /opt/VirtualBox/rdesktop-vrdp /opt/bin/rdesktop-vrdp
fi
if ! use headless && use chm; then
doins kchmviewer VirtualBox.chm || die
fowners root:vboxusers /opt/VirtualBox/kchmviewer
fperms 0750 /opt/VirtualBox/kchmviewer
fi
if use python; then
local pyver
for pyver in 2.5 2.6 2.7; do
if has_version "=dev-lang/python-${pyver}*" && [ -f "${S}/VBoxPython${pyver/./_}.so" ] ; then
doins VBoxPython${pyver/./_}.so || die
fi
done
fi
rm -rf src rdesktop* deffiles install* routines.sh runlevel.sh \
vboxdrv.sh VBox.sh VBox.png vboxnet.sh additions VirtualBox.desktop \
VirtualBox.tar.bz2 LICENSE VBoxSysInfo.sh rdesktop* vboxwebsrv \
webtest kchmviewer VirtualBox.chm vbox-create-usb-node.sh \
90-vbox-usb.fdi uninstall.sh vboxshell.py vboxdrv-pardus.py \
VBoxPython?_*.so
if use headless ; then
rm -rf VBoxSDL VirtualBox VBoxKeyboard.so
fi
doins -r * || die
# create symlinks for working around unsupported $ORIGIN/.. in VBoxC.so (setuid)
dosym /opt/VirtualBox/VBoxVMM.so /opt/VirtualBox/components/VBoxVMM.so
dosym /opt/VirtualBox/VBoxREM.so /opt/VirtualBox/components/VBoxREM.so
dosym /opt/VirtualBox/VBoxRT.so /opt/VirtualBox/components/VBoxRT.so
dosym /opt/VirtualBox/VBoxDDU.so /opt/VirtualBox/components/VBoxDDU.so
dosym /opt/VirtualBox/VBoxXPCOM.so /opt/VirtualBox/components/VBoxXPCOM.so
local each
for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,NetAdpCtl,NetDHCP,TestOGL,ExtPackHelperApp}; do
fowners root:vboxusers /opt/VirtualBox/${each}
fperms 0750 /opt/VirtualBox/${each}
pax-mark -m "${D}"/opt/VirtualBox/${each}
done
# VBoxNetAdpCtl and VBoxNetDHCP binaries need to be suid root in any case..
fperms 4750 /opt/VirtualBox/VBoxNetAdpCtl
fperms 4750 /opt/VirtualBox/VBoxNetDHCP
if ! use headless ; then
# Hardened build: Mark selected binaries set-user-ID-on-execution
for each in VBox{SDL,Headless} VirtualBox; do
fowners root:vboxusers /opt/VirtualBox/${each}
fperms 4510 /opt/VirtualBox/${each}
pax-mark -m "${D}"/opt/VirtualBox/${each}
done
dosym /opt/VirtualBox/VBox.sh /opt/bin/VirtualBox
dosym /opt/VirtualBox/VBox.sh /opt/bin/VBoxSDL
else
# Hardened build: Mark selected binaries set-user-ID-on-execution
fowners root:vboxusers /opt/VirtualBox/VBoxHeadless
fperms 4510 /opt/VirtualBox/VBoxHeadless
pax-mark -m "${D}"/opt/VirtualBox/VBoxHeadless
fi
exeinto /opt/VirtualBox
newexe "${FILESDIR}/${PN}-3-wrapper" "VBox.sh" || die
fowners root:vboxusers /opt/VirtualBox/VBox.sh
fperms 0750 /opt/VirtualBox/VBox.sh
dosym /opt/VirtualBox/VBox.sh /opt/bin/VBoxManage
dosym /opt/VirtualBox/VBox.sh /opt/bin/VBoxVRDP
dosym /opt/VirtualBox/VBox.sh /opt/bin/VBoxHeadless
dosym /opt/VirtualBox/VBoxTunctl /opt/bin/VBoxTunctl
# set an env-variable for 3rd party tools
echo -n "VBOX_APP_HOME=/opt/VirtualBox" > "${T}/90virtualbox"
doenvd "${T}/90virtualbox"
insinto /lib/udev/rules.d
doins "${FILESDIR}"/10-virtualbox.rules
# move udev scripts into /lib/udev (bug #372491)
mv "${D}"/opt/VirtualBox/VBoxCreateUSBNode.sh "${D}"/lib/udev
fperms 0750 /lib/udev/VBoxCreateUSBNode.sh
}
pkg_postinst() {
fdo-mime_desktop_database_update
gnome2_icon_cache_update
udevadm control --reload-rules && udevadm trigger --subsystem-match=usb
elog ""
if ! use headless ; then
elog "To launch VirtualBox just type: \"VirtualBox\""
elog ""
fi
elog "You must be in the vboxusers group to use VirtualBox."
elog ""
elog "For advanced networking setups you should emerge:"
elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
elog ""
elog "Please visit http://www.virtualbox.org/wiki/Editions for"
elog "an overview about the different features of ${PN}"
elog "and virtualbox-ose"
if [ -e "${ROOT}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
elog ""
elog "Please remove \"${ROOT}/etc/udev/rules.d/10-virtualbox.rules\""
elog "or else USB in ${PN} won't work."
fi
}
pkg_postrm() {
fdo-mime_desktop_database_update
}

@ -1,2 +1,3 @@
DIST Oracle_VM_VirtualBox_Extension_Pack-4.1.22-80657.tar.gz 10778079 SHA256 837ea30834b7c80e2ae114bb62becac4745ad2878658239cc8eb13ff54cea75f SHA512 1dc1aa1d57a51b05e01004cabbdd40b2b5ff410d3f514cb499c50d847f8830610108bde225a6156a0d9c0c03a7ab96c4d767a7c7a6a5616191cbc1fb46486cca WHIRLPOOL 6758b41ac4d2169b618fbaff6f759ba0b5a3595c77025f61c74ef57ee180ba49c31a9d7ce2b65d37de3e921c2d734878a6deaa00741603e3d5717d203510838d
DIST Oracle_VM_VirtualBox_Extension_Pack-4.2.0-80737.tar.gz 10828566 SHA256 18055795fa95d3a49ac00fd7e5009113d871a0c87a5e0f864f88c4eeb3222218 SHA512 ef637feea9041bcd68e5937a5bcc092b99862e2b9baa95263630f5ae2c1999c0cd2522b83707fb462d7a32af6ab1dcc2bf9275fd15ac94947cc5189b92c3b64e WHIRLPOOL b0696b319dff29a050ca5520e39625fb0d956e45309a2c773f1b77ad2fab83f9d7fbef4adb3a27be9ddd50068a45e4df155013cf7b6c879a9caa9e34ecf8a7aa
DIST Oracle_VM_VirtualBox_Extension_Pack-4.2.2-81494.tar.gz 11008309 SHA256 2a0824a7f6b93842feb13fe15de16a1bb33c9221116d62ce759eed6878169c2b SHA512 1f1ef106959d342303abbc5e15f07e63ce01335c3f05d525e1d9ba1e21309f2d51bf855b3f7bb0dac62a1d9b57bb8422425a45c313e232795b2e342f0c9ffe7e WHIRLPOOL 071053f6337da7a749c49c945d383b852e6d8d669e59c36e528966d278c2f99b58760977d6c59eaa41965472a2a787268492dfdea9f8321ef4370cdff2a37359

@ -0,0 +1,33 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-4.2.2.ebuild,v 1.1 2012/10/24 04:42:36 patrick Exp $
EAPI=2
inherit eutils multilib
MY_BUILD="81494"
MY_PN="Oracle_VM_VirtualBox_Extension_Pack"
MY_PV="${PV/beta/BETA}"
MY_PV="${MY_PV/rc/RC}"
MY_P="${MY_PN}-${MY_PV}-${MY_BUILD}"
DESCRIPTION="PUEL extensions for VirtualBox"
HOMEPAGE="http://www.virtualbox.org/"
SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.vbox-extpack -> ${MY_P}.tar.gz"
LICENSE="PUEL"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RESTRICT="mirror strip"
RDEPEND="~app-emulation/virtualbox-${PV}"
QA_PREBUILT="/usr/$(get_libdir)/virtualbox/ExtensionPacks/${MY_PN}/.*"
src_install() {
insinto /usr/$(get_libdir)/virtualbox/ExtensionPacks/${MY_PN}
doins -r linux.${ARCH}
doins ExtPack* PXE-Intel.rom
}

@ -1,2 +1,3 @@
DIST VirtualBox-4.1.22.tar.bz2 73385514 SHA256 7abb506203dd0d69b4b408fd999b5b9a479a9adce5f80e9b5569641c053dd153 SHA512 1bc2e33f6ce1ab417887241ee95bc3042b5c6072b3babc221c349b36b923f0655e776e98468cc63f65662e5ae3819c974bc8b5c97bae531a2c4a0ebb1c1ebba6 WHIRLPOOL e52ee58fdf1b3d1e1323cb26df1791dbc4c9375061467191a73f12071ac99a5c2791ddb65eeff9af5a645ba39fe88d4f7bc4362c919c9c14ba10a99d1b6c3776
DIST VirtualBox-4.2.0.tar.bz2 76590194 SHA256 895426ecac371bef4c070e8bcc9306f0c57dcbd6be25188d915b63ddde6f49e6 SHA512 76cddb682a2f5615e8ab465e8766d0ba19e1482b595a185cb401fdb962fb6f161945986ea5514934652305fa3d25f66a88767572fa4e0c5d3b5d5ffeb15c8005 WHIRLPOOL 5c4521a1dfc5b249c6c9692741a83014dc98496086e31186883e8b3f43c18af700f8002c3586b1475fd2c8bac2cbcaadc90aafb259ec50ebbeb3703440ddb822
DIST VirtualBox-4.2.2.tar.bz2 75655741 SHA256 943daa13694605d5d0a23ffef27c398b5e72ada669de89bad4b98f000f029700 SHA512 d6a85175e15d3dc49aab825aeb9aa4fb9b2640e6bb3c65dfeaaf492fe8589abe70ad5dbf8ed07d502f337c243b469a7da35d4bf23bb26f5ad3b0ee0a06a51a10 WHIRLPOOL ad45932ca5ea7e990af975a1c3823d58cc9b180a9f1e0c23576e1c6fb2aead39cdd2d0303b830f334d811c1f4b6b8b585d243a177253f13b53735303ae247c33

@ -0,0 +1,201 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-4.2.2.ebuild,v 1.1 2012/10/24 04:43:27 patrick Exp $
EAPI=2
inherit eutils linux-mod user
MY_PV="${PV/beta/BETA}"
MY_PV="${PV/rc/RC}"
MY_P=VirtualBox-${MY_PV}
DESCRIPTION="VirtualBox kernel modules and user-space tools for Linux guests"
HOMEPAGE="http://www.virtualbox.org/"
SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="X"
RDEPEND="X? ( ~x11-drivers/xf86-video-virtualbox-${PV}
x11-apps/xrandr
x11-apps/xrefresh
x11-libs/libXmu
x11-libs/libX11
x11-libs/libXt
x11-libs/libXext
x11-libs/libXau
x11-libs/libXdmcp
x11-libs/libSM
x11-libs/libICE )
!!x11-drivers/xf86-input-virtualbox"
DEPEND="${RDEPEND}
>=dev-util/kbuild-0.1.9998_pre20120806
>=dev-lang/yasm-0.6.2
sys-devel/bin86
sys-devel/dev86
sys-libs/pam
sys-power/iasl
X? ( x11-proto/renderproto )
!X? ( x11-proto/xproto )"
BUILD_TARGETS="all"
BUILD_TARGET_ARCH="${ARCH}"
MODULE_NAMES="vboxguest(misc:${WORKDIR}/vboxguest:${WORKDIR}/vboxguest)
vboxsf(misc:${WORKDIR}/vboxsf:${WORKDIR}/vboxsf)"
S="${WORKDIR}/${MY_P}"
pkg_setup() {
linux-mod_pkg_setup
BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}"
enewgroup vboxguest
enewuser vboxguest -1 /bin/sh /var/run/vboxguest vboxguest
}
src_unpack() {
unpack ${A}
# Create and unpack a tarball with the sources of the Linux guest
# kernel modules, to include all the needed files
"${S}"/src/VBox/Additions/linux/export_modules "${WORKDIR}/vbox-kmod.tar.gz"
unpack ./vbox-kmod.tar.gz
# Remove shipped binaries (kBuild,yasm), see bug #232775
cd "${S}"
rm -rf kBuild/bin tools
}
src_prepare() {
# PaX fixes (see bug #298988)
pushd "${WORKDIR}" &>/dev/null || die
epatch "${FILESDIR}"/vboxguest-4.1.0-log-use-c99.patch
popd &>/dev/null || die
# Disable things unused or splitted into separate ebuilds
cp "${FILESDIR}/${PN}-3-localconfig" LocalConfig.kmk
# stupid new header references...
for vboxheader in {product,revision}-generated.h ; do
for mdir in vbox{guest,sf} ; do
ln -sf "${S}"/out/linux.${ARCH}/release/${vboxheader} \
"${WORKDIR}/${mdir}/${vboxheader}"
done
done
}
src_configure() {
# build the user-space tools, warnings are harmless
./configure --nofatal \
--disable-xpcom \
--disable-sdl-ttf \
--disable-pulse \
--disable-alsa \
--build-headless || die "configure failed"
}
src_compile() {
source ./env.sh
for each in /src/VBox/{Runtime,Additions/common} \
/src/VBox/Additions/linux/{sharedfolders,daemon} ; do
cd "${S}"${each}
MAKE="kmk" emake TOOL_YASM_AS=yasm \
KBUILD_PATH="${S}/kBuild" \
|| die "kmk VBoxControl failed"
done
if use X; then
cd "${S}"/src/VBox/Additions/x11/VBoxClient
MAKE="kmk" emake TOOL_YASM_AS=yasm \
KBUILD_PATH="${S}/kBuild" \
|| die "kmk VBoxClient failed"
fi
# Now creating the kernel modules. We must do this _after_
# we compiled the user-space tools as we need two of the
# automatically generated header files. (>=3.2.0)
linux-mod_src_compile
}
src_install() {
linux-mod_src_install
cd "${S}"/out/linux.${ARCH}/release/bin/additions
insinto /sbin
newins mount.vboxsf mount.vboxsf
fperms 4755 /sbin/mount.vboxsf
newinitd "${FILESDIR}"/${PN}-7.initd ${PN}
insinto /usr/sbin/
newins VBoxService vboxguest-service
fperms 0755 /usr/sbin/vboxguest-service
insinto /usr/bin
doins VBoxControl
fperms 0755 /usr/bin/VBoxControl
# VBoxClient user service and xrandr wrapper
if use X; then
doins VBoxClient
fperms 0755 /usr/bin/VBoxClient
cd "${S}"/src/VBox/Additions/x11/Installer
newins 98vboxadd-xclient VBoxClient-all
fperms 0755 /usr/bin/VBoxClient-all
fi
# udev rule for vboxdrv
dodir /lib/udev/rules.d
echo 'KERNEL=="vboxguest", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
>> "${D}/lib/udev/rules.d/60-virtualbox-guest-additions.rules" \
|| die
echo 'KERNEL=="vboxuser", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
>> "${D}/lib/udev/rules.d/60-virtualbox-guest-additions.rules" \
|| die
# VBoxClient autostart file
insinto /etc/xdg/autostart
doins "${FILESDIR}"/vboxclient.desktop
# sample xorg.conf
insinto /usr/share/doc/${PF}
doins "${FILESDIR}"/xorg.conf.vbox
}
pkg_postinst() {
linux-mod_pkg_postinst
if ! use X ; then
elog "use flag X is off, enable it to install the"
elog "X Window System input and video drivers"
fi
elog ""
elog "Please add users to the \"vboxguest\" group so they can"
elog "benefit from seamless mode, auto-resize and clipboard."
elog ""
elog "Please add:"
elog "/etc/init.d/${PN}"
elog "to the default runlevel in order to start"
elog "needed services."
elog "To use the VirtualBox X drivers, use the following"
elog "file as your /etc/X11/xorg.conf:"
elog " /usr/share/doc/${PF}/xorg.conf.xorg"
elog ""
elog "Also make sure you use the Mesa library for OpenGL:"
elog " eselect opengl set xorg-x11"
elog ""
elog "An autostart .desktop file has been installed to start"
elog "VBoxClient in desktop sessions."
elog ""
elog "You can mount shared folders with:"
elog " mount -t vboxsf <shared_folder_name> <mount_point>"
elog ""
elog "Warning:"
elog "this ebuild is only needed if you are running gentoo"
elog "inside a VirtualBox Virtual Machine, you don't need"
elog "it to run VirtualBox itself."
elog ""
}

@ -1,2 +1,3 @@
DIST vbox-kernel-module-src-4.1.22.tar.xz 459980 SHA256 8d37d4c4497fd1de9511af2eb1aea4959045b47ad623f04e76958dfabd0848e3 SHA512 3ac0e55b794468b7b4b204500334d86763c523a2dfac84d830153b3ca324883fdce996eeaa35fa0e36606b46c126c0ab77374d1d3d7df8b65cf1058335ece214 WHIRLPOOL 19b2bfa3be78a845af962c80a5dd1defc7bbba2d30f0641ff02d069d5d2e3fab53eb4ce42a450ff16d5ea40f2ec3b5b88af8f341a481a93c6fe2aad03eca09ce
DIST vbox-kernel-module-src-4.2.0.tar.xz 493424 SHA256 f8fc3df8360acda833c881b5eeba90eb86551541573a1a0d410996de044f1b37 SHA512 02bf75adcb5f8413d560b17b96a711538fff9b7a3ff6fd833b2d2f597888b5c5ed255d08b511482ebfd5230b05d3a4f0a4ac7a10b9e870474228803dd45243cd WHIRLPOOL b7813f4ff79757dee2978dfb8c8c1727ea6fe75ef5760759d5bdb285cec6c7844b9af09b5aa6b11721f9c86d3c805ecb0df7f1ebd926c7395a6b55d151d41f9f
DIST vbox-kernel-module-src-4.2.2.tar.xz 492868 SHA256 66fc2716195292e831ecec44dd94ec2a980d4b105708af871903f6c77322eadb SHA512 5cb312e6e89c5103fd982d107f57a324d96b5698d6b622364552581220b34f62e06232a7e563c4643ce7747b3f466ad39bd89dbd5890e13ae259caab622b53da WHIRLPOOL 9c1ddd0eb5065d31b9a6800b05b98a8f4831b12fef47f44266c91d0a8cec22048c2b1e6cb2592217adf2831ac42ede73dc3550aef47bc8e2a0f1e8bf8177cd59

@ -0,0 +1,59 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-modules/virtualbox-modules-4.2.2.ebuild,v 1.1 2012/10/24 04:44:17 patrick Exp $
# XXX: the tarball here is just the kernel modules split out of the binary
# package that comes from virtualbox-bin
EAPI=4
inherit eutils linux-mod user
MY_P=vbox-kernel-module-src-${PV}
DESCRIPTION="Kernel Modules for Virtualbox"
HOMEPAGE="http://www.virtualbox.org/"
SRC_URI="http://dev.gentoo.org/~polynomial-c/virtualbox/${MY_P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="pax_kernel"
RDEPEND="!=app-emulation/virtualbox-9999"
S=${WORKDIR}
BUILD_TARGETS="all"
BUILD_TARGET_ARCH="${ARCH}"
MODULE_NAMES="vboxdrv(misc:${S}) vboxnetflt(misc:${S}) vboxnetadp(misc:${S}) vboxpci(misc:${S})"
pkg_setup() {
linux-mod_pkg_setup
BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}"
enewgroup vboxusers
}
src_prepare() {
if kernel_is -ge 2 6 33 ; then
# evil patch for new kernels - header moved
grep -lR linux/autoconf.h * | xargs sed -i -e 's:<linux/autoconf.h>:<generated/autoconf.h>:'
fi
if use pax_kernel && kernel_is -ge 3 0 0 ; then
epatch "${FILESDIR}"/${PN}-4.1.4-pax-const.patch
fi
}
src_install() {
linux-mod_src_install
}
pkg_postinst() {
linux-mod_pkg_postinst
elog "Starting with the 3.x release new kernel modules were added,"
elog "be sure to load all the needed modules."
elog ""
elog "Please add \"vboxdrv\", \"vboxnetflt\" and \"vboxnetadp\" to:"
elog "/etc/conf.d/modules"
}

@ -1,4 +1,7 @@
DIST VirtualBox-4.1.22.tar.bz2 73385514 SHA256 7abb506203dd0d69b4b408fd999b5b9a479a9adce5f80e9b5569641c053dd153 SHA512 1bc2e33f6ce1ab417887241ee95bc3042b5c6072b3babc221c349b36b923f0655e776e98468cc63f65662e5ae3819c974bc8b5c97bae531a2c4a0ebb1c1ebba6 WHIRLPOOL e52ee58fdf1b3d1e1323cb26df1791dbc4c9375061467191a73f12071ac99a5c2791ddb65eeff9af5a645ba39fe88d4f7bc4362c919c9c14ba10a99d1b6c3776
DIST VirtualBox-4.2.0.tar.bz2 76590194 SHA256 895426ecac371bef4c070e8bcc9306f0c57dcbd6be25188d915b63ddde6f49e6 SHA512 76cddb682a2f5615e8ab465e8766d0ba19e1482b595a185cb401fdb962fb6f161945986ea5514934652305fa3d25f66a88767572fa4e0c5d3b5d5ffeb15c8005 WHIRLPOOL 5c4521a1dfc5b249c6c9692741a83014dc98496086e31186883e8b3f43c18af700f8002c3586b1475fd2c8bac2cbcaadc90aafb259ec50ebbeb3703440ddb822
DIST VirtualBox-4.2.2.tar.bz2 75655741 SHA256 943daa13694605d5d0a23ffef27c398b5e72ada669de89bad4b98f000f029700 SHA512 d6a85175e15d3dc49aab825aeb9aa4fb9b2640e6bb3c65dfeaaf492fe8589abe70ad5dbf8ed07d502f337c243b469a7da35d4bf23bb26f5ad3b0ee0a06a51a10 WHIRLPOOL ad45932ca5ea7e990af975a1c3823d58cc9b180a9f1e0c23576e1c6fb2aead39cdd2d0303b830f334d811c1f4b6b8b585d243a177253f13b53735303ae247c33
DIST VirtualBox_fa_IR.ts 424578 SHA256 4934fa27a2be76ee432a333b29a4ed8c0106821b88fc7057d3806270fed40b5c SHA512 fafb5e87c71bd22605ee4d11e8c9710a3f40adaf9a6dd2a530d3b0d1525fd36f3f18dfa5b50423f01bab0f49782b761934078ea9fcedebbfc0574c5b9c39beb6 WHIRLPOOL 63b258de9cc1411fdda7d8d991f55f767b187280752bc1379101c7541c19bac07ab64201c696357a6d2bbdfa00f1b5b785fc81380df4dfdd92f300d5eff89355
DIST qt_fa_IR.ts 191494 SHA256 b2651c0329e53d3eecc78923905b9a7b68e3121b7b04fa3fd86499c940a5eb43 SHA512 3c6fdf2dac487bf72d4d85364e02c98f8366cecb85f46872aae689e02a83a22c99078c0296811e3f680275a10c8f30ba58ce52cc6d452d0b2d9b515163883aa7 WHIRLPOOL 50e8d14769f1659e9da51884f2475683ad6470a4b82d2a6f900f00e5e2643e11dfcb5b27f6188c75f25b51d8201da987b276f89eb1299ef7ac5c26cdfd97940c
DIST virtualbox-4.1.22-patches-01.tar.xz 3752 SHA256 2ff58f8d2bdfdcbf1ae4bbe9f68ad1256f1ae37091fd4b392582a062d206962f SHA512 9bba2a4352d52cddd27f55b4ad0e9de250c1d29359a8859f61fc413e53ac62206321c5e347391ca478b942967bd7974a3a469eb3bb133c79d7033692afe559dd WHIRLPOOL 1aa98913e7d4e1ddf5f775db200cddc18a7ed4d7dd915dda0dab6bffbf33bfd63a785cc7381bca74e4780e7dce21f18314dc093b9c6ba02addfd1330f3b61aa9
DIST virtualbox-4.2.0-patches-01.tar.xz 3840 SHA256 acc1463032b036a75c03ef7f64933c20097ba4aa63b4abacc6c37806cb69f1aa SHA512 ce4c912d6fa8d58df730a6b63daa28833f092f7a0712e153592f1969ce367072a1a960a7775ad5e8d1c8d1352506271b95f28bfc1a51a0675c8135b042d87ad7 WHIRLPOOL d8e0fc9e893302254a801b4c9c528dbeb79531e0660737cea16282b5d7b8dbd76c0991a9468dfa8e8aa28f07cc271b77cf3a1b341c7e4a8ae671e9138962f3b7

@ -0,0 +1,385 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/virtualbox-4.2.2.ebuild,v 1.1 2012/10/24 04:41:53 patrick Exp $
EAPI=4
inherit eutils fdo-mime flag-o-matic linux-info multilib pax-utils python qt4-r2 toolchain-funcs java-pkg-opt-2
if [[ ${PV} == "9999" ]] ; then
# XXX: should finish merging the -9999 ebuild into this one ...
ESVN_REPO_URI="http://www.virtualbox.org/svn/vbox/trunk"
inherit linux-mod subversion
else
MY_PV="${PV/beta/BETA}"
MY_PV="${MY_PV/rc/RC}"
MY_P=VirtualBox-${MY_PV}
SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2"
S="${WORKDIR}/${MY_P}"
fi
DESCRIPTION="Family of powerful x86 virtualization products for enterprise as well as home use"
HOMEPAGE="http://www.virtualbox.org/"
SRC_URI="${SRC_URI}
http://dev.gentoo.org/~polynomial-c/virtualbox/patchsets/virtualbox-4.2.0-patches-01.tar.xz
http://dev.gentoo.org/~patrick/qt_fa_IR.ts
http://dev.gentoo.org/~patrick/VirtualBox_fa_IR.ts"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+additions alsa doc extensions headless java pam pulseaudio +opengl python +qt4 +sdk vboxwebsrv vnc"
RDEPEND="!app-emulation/virtualbox-bin
~app-emulation/virtualbox-modules-${PV}
dev-libs/libIDL
>=dev-libs/libxslt-1.1.19
net-misc/curl
dev-libs/openssl
dev-libs/libxml2
sys-libs/zlib
!headless? (
qt4? (
x11-libs/qt-gui:4
x11-libs/qt-core:4
opengl? ( x11-libs/qt-opengl:4 )
x11-libs/libXinerama
)
opengl? ( virtual/opengl media-libs/freeglut )
x11-libs/libX11
x11-libs/libXcursor
x11-libs/libXext
x11-libs/libXmu
x11-libs/libXt
media-libs/libsdl[X,video]
)
vnc? ( >=net-libs/libvncserver-0.9.9 )
java? ( || ( virtual/jre:1.7 virtual/jre:1.6 ) )"
DEPEND="${RDEPEND}
>=dev-util/kbuild-0.1.9998_pre20120806
>=dev-lang/yasm-0.6.2
sys-devel/bin86
sys-devel/dev86
sys-power/iasl
media-libs/libpng
pam? ( sys-libs/pam )
sys-libs/libcap
doc? (
dev-texlive/texlive-basic
dev-texlive/texlive-latex
dev-texlive/texlive-latexrecommended
dev-texlive/texlive-latexextra
dev-texlive/texlive-fontsrecommended
dev-texlive/texlive-fontsextra
)
java? ( || ( virtual/jdk:1.7 virtual/jdk:1.6 ) )
virtual/pkgconfig
alsa? ( >=media-libs/alsa-lib-1.0.13 )
!headless? ( x11-libs/libXinerama )
pulseaudio? ( media-sound/pulseaudio )
vboxwebsrv? ( >=net-libs/gsoap-2.7.13 )"
PDEPEND="additions? ( ~app-emulation/virtualbox-additions-${PV} )
extensions? ( ~app-emulation/virtualbox-extpack-oracle-${PV} )"
QA_TEXTRELS_x86="usr/lib/virtualbox-ose/VBoxGuestPropSvc.so
usr/lib/virtualbox/VBoxSDL.so
usr/lib/virtualbox/VBoxSharedFolders.so
usr/lib/virtualbox/VBoxDD2.so
usr/lib/virtualbox/VBoxOGLrenderspu.so
usr/lib/virtualbox/VBoxPython.so
usr/lib/virtualbox/VBoxDD.so
usr/lib/virtualbox/VBoxDDU.so
usr/lib/virtualbox/VBoxREM64.so
usr/lib/virtualbox/VBoxSharedClipboard.so
usr/lib/virtualbox/VBoxHeadless.so
usr/lib/virtualbox/VBoxRT.so
usr/lib/virtualbox/VBoxREM.so
usr/lib/virtualbox/VBoxSettings.so
usr/lib/virtualbox/VBoxKeyboard.so
usr/lib/virtualbox/VBoxSharedCrOpenGL.so
usr/lib/virtualbox/VBoxVMM.so
usr/lib/virtualbox/VirtualBox.so
usr/lib/virtualbox/VBoxOGLhosterrorspu.so
usr/lib/virtualbox/components/VBoxC.so
usr/lib/virtualbox/components/VBoxSVCM.so
usr/lib/virtualbox/components/VBoxDDU.so
usr/lib/virtualbox/components/VBoxRT.so
usr/lib/virtualbox/components/VBoxREM.so
usr/lib/virtualbox/components/VBoxVMM.so
usr/lib/virtualbox/VBoxREM32.so
usr/lib/virtualbox/VBoxPython2_4.so
usr/lib/virtualbox/VBoxPython2_5.so
usr/lib/virtualbox/VBoxPython2_6.so
usr/lib/virtualbox/VBoxPython2_7.so
usr/lib/virtualbox/VBoxXPCOMC.so
usr/lib/virtualbox/VBoxOGLhostcrutil.so
usr/lib/virtualbox/VBoxNetDHCP.so"
REQUIRED_USE="
java? ( sdk )
python? ( sdk )
vboxwebsrv? ( java )
"
pkg_setup() {
if ! use headless && ! use qt4 ; then
einfo "No USE=\"qt4\" selected, this build will not include"
einfo "any Qt frontend."
elif use headless && use qt4 ; then
einfo "You selected USE=\"headless qt4\", defaulting to"
einfo "USE=\"headless\", this build will not include any X11/Qt frontend."
fi
if ! use opengl ; then
einfo "No USE=\"opengl\" selected, this build will lack"
einfo "the OpenGL feature."
fi
java-pkg-opt-2_pkg_setup
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
# Remove shipped binaries (kBuild,yasm), see bug #232775
rm -rf kBuild/bin tools
# Disable things unused or split into separate ebuilds
sed -e "s@MY_LIBDIR@$(get_libdir)@" \
"${FILESDIR}"/${PN}-4-localconfig > LocalConfig.kmk || die
# Respect LDFLAGS
sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
-i Config.kmk src/libs/xpcom18a4/Config.kmk || die
# Use PAM only when pam USE flag is enbaled (bug #376531)
if ! use pam ; then
elog "Disabling PAM removes the possibility to use the VRDP features."
sed -i 's@^.*VBOX_WITH_PAM@#VBOX_WITH_PAM@' Config.kmk || die
sed -i 's@\(.*/auth/Makefile.kmk.*\)@#\1@' \
src/VBox/HostServices/Makefile.kmk || die
fi
# add correct java path
if use java ; then
sed "s@/usr/lib/jvm/java-6-sun@$(java-config -O)@" \
-i "${S}"/Config.kmk || die
java-pkg-opt-2_src_prepare
fi
if ! gcc-specs-pie ; then
EPATCH_EXCLUDE="050_${PN}-4.2.0-nopie.patch"
fi
EPATCH_SUFFIX="patch" \
EPATCH_FORCE="yes" \
epatch "${WORKDIR}/patches"
# missing files in 4.2.2 tarball
cp ${DISTDIR}/{qt_fa_IR.ts,VirtualBox_fa_IR.ts} ${S}/src/VBox/Frontends/VirtualBox/nls/ || die "Failed to add missing files"
}
src_configure() {
local myconf
use alsa || myconf+=" --disable-alsa"
use opengl || myconf+=" --disable-opengl"
use pulseaudio || myconf+=" --disable-pulse"
use python || myconf+=" --disable-python"
use java || myconf+=" --disable-java"
use vboxwebsrv && myconf+=" --enable-webservice"
use vnc && myconf+=" --enable-vnc"
use doc || myconf+=" --disable-docs"
if ! use headless ; then
use qt4 || myconf+=" --disable-qt4"
else
myconf+=" --build-headless --disable-opengl"
fi
# not an autoconf script
./configure \
--with-gcc="$(tc-getCC)" \
--with-g++="$(tc-getCXX)" \
--disable-kmods \
--disable-dbus \
${myconf} \
|| die "configure failed"
}
src_compile() {
source ./env.sh
# Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529)
# and strip all flags
# strip-flags
MAKE="kmk" emake \
VBOX_VERSION_STRING='$(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)'_Gentoo_ \
TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \
TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \
TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \
TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \
VBOX_GCC_OPT="${CXXFLAGS}" \
TOOL_YASM_AS=yasm KBUILD_PATH="${S}/kBuild" \
all || die "kmk failed"
}
src_install() {
cd "${S}"/out/linux.${ARCH}/release/bin || die
# Create configuration files
insinto /etc/vbox
newins "${FILESDIR}/${PN}-4-config" vbox.cfg
# Set the right libdir
sed -i \
-e "s@MY_LIBDIR@$(get_libdir)@" \
"${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
# Symlink binaries to the shipped wrapper
exeinto /usr/$(get_libdir)/${PN}
newexe "${FILESDIR}/${PN}-ose-3-wrapper" "VBox" || die
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBox
fperms 0750 /usr/$(get_libdir)/${PN}/VBox
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxManage
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxVRDP
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxHeadless
dosym /usr/$(get_libdir)/${PN}/VBoxTunctl /usr/bin/VBoxTunctl
# Install binaries and libraries
insinto /usr/$(get_libdir)/${PN}
doins -r components || die
if use sdk ; then
doins -r sdk || die
fi
if use vboxwebsrv ; then
doins vboxwebsrv || die
fowners root:vboxusers /usr/$(get_libdir)/${PN}/vboxwebsrv
fperms 0750 /usr/$(get_libdir)/${PN}/vboxwebsrv
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/vboxwebsrv
newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
fi
for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,NetAdpCtl,NetDHCP,ExtPackHelperApp} *so *r0 *gc ; do
doins $each || die
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each}
fperms 0750 /usr/$(get_libdir)/${PN}/${each}
done
# VBoxNetAdpCtl and VBoxNetDHCP binaries need to be suid root in any case..
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxNetAdpCtl
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxNetDHCP
# VBoxSVC needs to be pax-marked (bug #403453)
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxSVC || die
if ! use headless ; then
for each in VBox{SDL,Headless} ; do
doins $each || die
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each}
fperms 4750 /usr/$(get_libdir)/${PN}/${each}
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/${each}
done
if use opengl && use qt4 ; then
doins VBoxTestOGL || die
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxTestOGL
fperms 0750 /usr/$(get_libdir)/${PN}/VBoxTestOGL
fi
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxSDL
if use qt4 ; then
doins VirtualBox || die
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VirtualBox
fperms 4750 /usr/$(get_libdir)/${PN}/VirtualBox
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VirtualBox
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VirtualBox
newmenu "${FILESDIR}"/${PN}-ose.desktop-2 ${PN}.desktop
fi
pushd "${S}"/src/VBox/Resources/OSE &>/dev/null || die
for size in 16 32 48 64 128 ; do
newicon -s ${size} ${PN}-${size}px.png ${PN}.png
done
newicon ${PN}-48px.png ${PN}.png
popd &>/dev/null || die
else
doins VBoxHeadless || die
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxHeadless
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxHeadless
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxHeadless
fi
insinto /usr/$(get_libdir)/${PN}
# Install EFI Firmware files (bug #320757)
pushd "${S}"/src/VBox/Devices/EFI/FirmwareBin &>/dev/null || die
for fwfile in VBoxEFI{32,64}.fd ; do
doins ${fwfile} || die
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${fwfile} || die
done
popd &>/dev/null || die
# New way of handling USB device nodes for VBox (bug #356215)
insinto /lib/udev
doins VBoxCreateUSBNode.sh
fowners root:vboxusers /lib/udev/VBoxCreateUSBNode.sh
fperms 0750 /lib/udev/VBoxCreateUSBNode.sh
insinto /lib/udev/rules.d
doins "${FILESDIR}"/10-virtualbox.rules
insinto /usr/share/${PN}
if ! use headless && use qt4 ; then
doins -r nls
fi
# VRDPAuth only works with this (bug #351949)
dosym VBoxAuth.so /usr/$(get_libdir)/${PN}/VRDPAuth.so
# set an env-variable for 3rd party tools
echo -n "VBOX_APP_HOME=/usr/$(get_libdir)/${PN}" > "${T}/90virtualbox"
doenvd "${T}/90virtualbox"
if use java ; then
java-pkg_regjar "${D}/usr/$(get_libdir)/${PN}/sdk/bindings/xpcom/java/vboxjxpcom.jar"
java-pkg_regso "${D}/usr/$(get_libdir)/${PN}/libvboxjxpcom.so"
fi
}
pkg_postinst() {
fdo-mime_desktop_database_update
udevadm control --reload-rules && udevadm trigger --subsystem-match=usb
if ! use headless && use qt4 ; then
elog "To launch VirtualBox just type: \"VirtualBox\"."
fi
elog "You must be in the vboxusers group to use VirtualBox."
elog ""
elog "The latest user manual is available for download at:"
elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf"
elog ""
elog "For advanced networking setups you should emerge:"
elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
elog ""
elog "IMPORTANT!"
elog "If you upgrade from app-emulation/virtualbox-ose make sure to run"
elog "\"env-update\" as root and logout and relogin as the user you wish"
elog "to run ${PN} as."
elog ""
elog "Starting with version 4.0.0, ${PN} has USB-1 support."
elog "For USB-2 support, PXE-boot ability and VRDP support please emerge"
elog " app-emulation/virtualbox-extpack-oracle"
elog "package."
if [ -e "${ROOT}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
elog ""
elog "Please remove \"${ROOT}/etc/udev/rules.d/10-virtualbox.rules\""
elog "or else USB in ${PN} won't work."
fi
}
pkg_postrm() {
fdo-mime_desktop_database_update
}

@ -1 +1,2 @@
DIST anki-1.2.11.tgz 1886062 SHA256 ca075fd0c0d6851d22046de8f6fa90d7c442cdd4a6783f7c6ffad7fbc46f5089 SHA512 f04ba85afb146c912c77fa047a74dfae34b2900bc4a0c5ab86d2c0787fa69339bd354d1def7083e74ac16da3e8e03efcf49808d817bc502ebb69944cd2ad4d9c WHIRLPOOL dbd445cc4439b6b582a11ae62b813f1773c15b90412d12aa3f06db07a778137d9c0aa06710354a2ab88055887f6d2e44db0f260ebaa4e6042012012a7ee3ee55
DIST anki-2.0.0.tgz 2727060 SHA256 2166857447d573fd7a99881de5f92898b24b3341f8271fbab9ec951167e5dc0f SHA512 56b42f6be6adc3f6ca0ae42eccbcbc28199548103560ba8c3c97aab8b58d4b69ae42d965debc26feab894e67fd6d997b6d03adc4782317a43cabf9d0a3a89ce5 WHIRLPOOL ce2d8a228230d993a46dfde171d203d7a6f923427bbe2702a2e27fcdeeac96e0d73222bb072ae72148601fd18e59394971955d016bd324d5c50c74682be0c2fa

@ -0,0 +1,76 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/anki/anki-2.0.0.ebuild,v 1.1 2012/10/23 17:02:25 tomka Exp $
EAPI=4
PYTHON_DEPEND="2:2.6"
inherit eutils python
DESCRIPTION="A spaced-repetition memory training program (flash cards)"
HOMEPAGE="http://ichi2.net/anki/"
SRC_URI="http://ankisrs.net/download/mirror/${P}.tgz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="latex +recording +sound"
RDEPEND="dev-python/PyQt4[X,svg,webkit]
>=dev-python/httplib2-0.7.4
dev-python/beautifulsoup:python-2
recording? ( media-sound/lame
>=dev-python/pyaudio-0.2.4 )
sound? ( media-video/mplayer )
latex? ( app-text/texlive
app-text/dvipng )"
DEPEND=""
S=${WORKDIR}/anki-2.0
pkg_setup(){
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
rm -r libanki/thirdparty || die
python_convert_shebangs -r 2 .
}
# Nothing to configure or compile
src_configure() {
true;
}
src_compile() {
true;
}
src_install() {
exeinto /usr/bin/
doexe anki
doicon ${PN}.png
domenu anki.desktop
doman anki.1
dodoc README README.development README.translating
insinto "$(python_get_sitedir)"
doins -r aqt libanki/anki
make_desktop_entry ${PN} ${PN} ${PN} "Education"
}
pkg_preinst() {
if has_version "<app-misc/anki-2" ; then
elog "Anki 2 is a rewrite of Anki with many new features and"
elog "a new database format. On the first run your decks are"
elog "converted to the new format and a backup of your Anki-1"
elog "decks is created. Please read the following:"
elog "http://ankisrs.net/anki2.html"
elog "The mobile clients for Anki 2 are still under development."
fi
}

@ -0,0 +1 @@
DIST jq-1.1.tar.gz 432144 SHA256 0e53d2753e40705a684f499789920f2cebfa7adfbec03a270519c25a5fc03f60 SHA512 378eb091fc1a840ba30b496f6f470438133b047a7eb02a4dd6e4563273c152f2f2893ee91a4c87e0267fda2c6ed05e872dac45b6db262c9daedda1bc232d3b2e WHIRLPOOL 4cd56c62de186245231dec021e45c378d67d6e7919dce1e2c894b893cb7ade0d89c8e95a964eafa999436d54cc772c5914b5a480a6fef31b96910eeec1d2bb2e

@ -0,0 +1,22 @@
--- stedolan-jq-bf61e95/Makefile
+++ stedolan-jq-bf61e95/Makefile
@@ -1,4 +1,5 @@
-CC=gcc -Wextra -Wall -Wno-missing-field-initializers -Wno-unused-parameter -std=gnu99 -ggdb -Wno-unused-function
+CC?=gcc
+CFLAGS+=-Wextra -Wall -Wno-missing-field-initializers -Wno-unused-parameter -std=gnu99 -Wno-unused-function
prefix=/usr/local
.PHONY: all clean releasedep tarball install uninstall test releasetag
@@ -30,10 +31,10 @@
jq_test: $(JQ_SRC) jq_test.c
- $(CC) -DJQ_DEBUG=1 -o $@ $^
+ $(CC) $(CFLAGS) $(LDFLAGS) -DJQ_DEBUG=1 -o $@ $^
jq: $(JQ_SRC) main.c
- $(CC) -O -DJQ_DEBUG=0 -o $@ $^
+ $(CC) $(CFLAGS) $(LDFLAGS) -DJQ_DEBUG=0 -o $@ $^
test: jq_test
valgrind --error-exitcode=1 -q --leak-check=full ./jq_test >/dev/null

@ -0,0 +1,28 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/jq/jq-1.1.ebuild,v 1.1 2012/10/23 20:33:52 radhermit Exp $
EAPI=5
inherit vcs-snapshot toolchain-funcs eutils
DESCRIPTION="A lightweight and flexible command-line JSON processor"
HOMEPAGE="http://stedolan.github.com/jq/"
SRC_URI="https://github.com/stedolan/jq/tarball/${P} -> ${P}.tar.gz"
LICENSE="MIT CCPL-Attribution-3.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
DEPEND="test? ( dev-util/valgrind )"
src_prepare() {
epatch "${FILESDIR}"/${P}-makefile.patch
tc-export CC
}
src_install() {
dobin jq
dodoc README.md
}

@ -0,0 +1,8 @@
<?xml version = '1.0' encoding = 'UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>radhermit@gentoo.org</email>
<name>Tim Harder</name>
</maintainer>
</pkgmetadata>

@ -0,0 +1 @@
DIST physlock-0.4.3.tar.gz 12834 SHA256 16c0cff09c06a0c701e6ff6f074690280ff3d14cc02980a007eb66bd93fff1f2 SHA512 bdaa335b9fbc15cc5206f195075c2d2425933012d0fe1a52244bf1137e2af11faa9d0194b3ea46158230991a56c398a9d5dc8f56eee9716306c88adbd28ddd47 WHIRLPOOL 418be6340b98630e5d0d2dd22f2972b7ca3edd241b0fd025349adb5d6af01abffae1e628556bc88793174c25769ed2ecf4a77032928a6afed860e58663444e3a

@ -0,0 +1,18 @@
<?xml version = '1.0' encoding = 'UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>radhermit@gentoo.org</email>
<name>Tim Harder</name>
</maintainer>
<longdescription lang="en">
Control physical access to a linux computer by locking all of its virtual
terminals / consoles.
physlock is an alternative to vlock, it is equivalent to `vlock -an'. It is
written because vlock blocks some linux kernel mechanisms like hibernate and
suspend and can therefore only be used with some limitations. physlock is
designed to be more lightweight, it does not have a plugin interface and it is
not started using a shell script wrapper.
</longdescription>
</pkgmetadata>

@ -0,0 +1,24 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/physlock/physlock-0.4.3.ebuild,v 1.1 2012/10/24 03:51:45 radhermit Exp $
EAPI=5
inherit toolchain-funcs
DESCRIPTION="lightweight Linux console locking tool"
HOMEPAGE="https://github.com/muennich/physlock"
SRC_URI="mirror://github/muennich/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
src_prepare() {
tc-export CC
}
src_install() {
emake DESTDIR="${D}" PREFIX=/usr install
}

@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/sl/sl-3.03-r3.ebuild,v 1.1 2012/10/18 12:04:52 kensington Exp $
# $Header: /var/cvsroot/gentoo-x86/app-misc/sl/sl-3.03-r3.ebuild,v 1.2 2012/10/23 17:18:03 mr_bones_ Exp $
EAPI=4
@ -11,9 +11,9 @@ SL_PATCH="sl5-1.patch"
DESCRIPTION="sophisticated graphical program which corrects your miss typing"
HOMEPAGE="http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/index_e.html http://www.izumix.org.uk/sl/"
SRC_URI="http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/sl/${PN}.tar
!vanilla? (
!vanilla? (
http://www.linet.gr.jp/~izumi/sl/${SL_PATCH}
http://www.sodan.ecc.u-tokyo.ac.jp/~okayama/sl/${PN}.en.1.gz
http://www.sodan.ecc.u-tokyo.ac.jp/~okayama/sl/${PN}.en.1.gz
)"
LICENSE="freedist"

@ -1,3 +1,4 @@
DIST anyremote-5.5.tar.gz 1737718 SHA256 0dab10f1569fbfc2d6f316dfde0590450eee6422b977fda1861d92c327fc9d04 SHA512 8ae1d7ccc7eed1e32d5362891a8362825e4811d3ecc5b6503dda10d3b7a536c68d0562ba9b13b297eafd338587e122305d4771fc94d9d0002cb60b5a2f6c6b94 WHIRLPOOL ca4b70a9fb3671211a07768e393cb913a11c4faeb1163fe60d41c5c5c72418e11c32afcb680c734a391be52db3229f564316aeaba01c427eecf805c2f692c0d6
DIST anyremote-6.0.tar.gz 2144431 SHA256 4bfbda7dcd8c9ef3c0372f276e4b083e5a3d6fead61980cc1998057fb762a808 SHA512 b1e1743eb4f09643cdbf0742b62335480203e29276eacd7645205af607853417e5d315f4c1133a7554cf5594fa7d34749903074f9ba83aa38922eadcbab1bbc7 WHIRLPOOL 5345caa51becdf49b5aecbc002791e3dc14c69ab8f22ec3d3acf0dcb28ca9da2c0c48c6a558b90baa61c86b82fa06e3cfb32c376bf58c5d1022d54bcea02aff2
DIST anyremote-6.1.1.tar.gz 2281355 SHA256 411760b74d9888378bb269a8e0172f5a1b8249b5e6834fdf06af5cd20eff1abd SHA512 f78857397791dbe714235f1da761519a186aec55313c0299b717cec76bb01f6f11069e6e629283b1272d3c86fe1f5dfaa0c51eebd12a78ad039caf688debdac5 WHIRLPOOL 44345ecb3728b4dac3334602bcde81085c9663481492e9080d5490a3dc4a6ad85b54ddb84a72c2fb9bfeb62b1b6ec13f558683f7257ee84cd5a2bae1c127094a
DIST anyremote-6.1.tar.gz 2281261 SHA256 43b26032ea774ce59ef43a95424a262d09253821c2db70978a08a54f0da935c8 SHA512 88fb0bad301605381b5c9747bfeb1cb31a6136f05e8fe448ce964bdcba6bdfe3fa3dd7bf364d1b0040cf60458aab56ad5ffc8ad3d4c9e84f1b4155b6bbf14b00 WHIRLPOOL 36f1fb5954e5745ec31ed40855cb9ed719c9184f5b39331e1fd55682525fe008b33ce54c6c0f1c5de7d60598a5ef38de3d42f177695ead74aa5a6bac5badda29

@ -0,0 +1,26 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/anyremote/anyremote-6.1.1.ebuild,v 1.1 2012/10/23 20:37:41 hwoarang Exp $
EAPI="4"
DESCRIPTION="Anyremote provides wireless bluetooth, infrared or cable remote control service"
HOMEPAGE="http://anyremote.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="bluetooth dbus"
RDEPEND="bluetooth? ( net-wireless/bluez )
dbus? ( sys-apps/dbus )
x11-libs/libXtst"
DEPEND="${RDEPEND}
virtual/pkgconfig"
DOCS=(AUTHORS ChangeLog NEWS README)
src_configure() {
econf --docdir="/usr/share/doc/${PF}/" $(use_enable bluetooth) $(use_enable dbus)
}

@ -1 +1,2 @@
DIST gentoo-bashcomp-20101217.tar.bz2 23095 SHA256 834e62a9189294f30771fce3fcdeca5fae6fd706c7fd35047f246fb2c0e8cd5a SHA512 29c4802b8f71585b7146e454f44700954de8655aa46dda7046338ed46e1e9835f4ea4141cfd5a813a5f75b6586b030e0e0cbde4c8030ec303f98110fa7a5e316 WHIRLPOOL 1d2c0ea0cd9a4888cc86b05bc9f9c9e9810a7af3c601c000cfc03d1f648cf958308d0d0c09615aec9b1d5b1f550398fca08b6a5b60cbc86d189650d13d2d0987
DIST gentoo-bashcomp-20121024.tar.bz2 28025 SHA256 e7c23a671fa5fee6647729bfb0f93984fda3a33256cf5a29af6f525f2068c42a SHA512 ca755de801b8ecba6267395930024cbd6eb7f3f78c08de5caff6621bcf99554b68f8d3bb93f517f6a7fe27b08c42c8896910b0b93f8917db6e0172bfd614bacd WHIRLPOOL f4a08409874d9481618392810aa942c489337075d01050da24ee88b0dd41e303fc0b44a7f919034d1ddf543cc2a06c3d1cb46430e356a7f6f910a9874d0144bf

@ -0,0 +1,45 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-shells/gentoo-bashcomp/gentoo-bashcomp-20121024.ebuild,v 1.1 2012/10/24 04:34:01 dirtyepic Exp $
EAPI=4
inherit eutils prefix
DESCRIPTION="Gentoo-specific bash command-line completions (emerge, ebuild, equery, repoman, layman, etc)"
HOMEPAGE="http://www.gentoo.org/"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris"
IUSE=""
RDEPEND="app-shells/bash-completion"
src_prepare() {
eprefixify gentoo
}
src_compile() { :; } # There is a useless Makefile in the distfile
src_install() {
insinto /usr/share/bash-completion
doins gentoo || die "failed to install gentoo module"
doins repoman || die "failed to install repoman module"
doins layman || die "failed to install layman module"
dodoc AUTHORS ChangeLog TODO
}
pkg_postinst() {
# can't use bash-completion.eclass.
elog "To enable command-line completion for ${PN}, run:"
elog
elog " eselect bashcomp enable gentoo"
elog
elog "to install locally, or"
elog
elog " eselect bashcomp enable --global gentoo"
elog
elog "to install system-wide. (and/or repoman instead of gentoo if you use"
elog "repoman frequently)"
}

@ -0,0 +1,97 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/gcj-jdk/gcj-jdk-4.5.4.ebuild,v 1.1 2012/10/23 19:28:58 sera Exp $
EAPI="4"
inherit java-vm-2 multilib
DESCRIPTION="Java wrappers around GCJ"
HOMEPAGE="http://www.gentoo.org/"
SRC_URI=""
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86"
SLOT="0"
IUSE=""
ECJ_GCJ_SLOT="3.5"
RDEPEND="
~sys-devel/gcc-${PV}[gcj,gtk]
dev-java/ecj-gcj:${ECJ_GCJ_SLOT}"
DEPEND="${RDEPEND}"
S="${WORKDIR}"
src_install() {
# jre lib paths ...
local libarch="$(get_system_arch)"
local gcc_version=${PV}
local gccbin=$(gcc-config -B ${gcc_version})
gccbin=${gccbin#"${EPREFIX}"}
local gcclib=$(gcc-config -L ${gcc_version} | cut -d':' -f1)
gcclib=${gcclib#"${EPREFIX}"}
local gcjhome="/usr/$(get_libdir)/${P}"
local gccchost="${CHOST}"
local gcjlibdir=$(echo "${EPREFIX}"/usr/$(get_libdir)/gcj-${gcc_version}-*)
gcjlibdir=${gcjlibdir#"${EPREFIX}"}
# links
dodir ${gcjhome}/bin
dodir ${gcjhome}/jre/bin
dosym ${gccbin}/gij ${gcjhome}/bin/java
dosym ${gccbin}/gij ${gcjhome}/jre/bin/java
dosym ${gccbin}/gjar ${gcjhome}/bin/jar
dosym ${gccbin}/gjdoc ${gcjhome}/bin/javadoc
dosym ${gccbin}/grmic ${gcjhome}/bin/rmic
dosym ${gccbin}/gjavah ${gcjhome}/bin/javah
dosym ${gccbin}/jcf-dump ${gcjhome}/bin/javap
dosym ${gccbin}/gappletviewer ${gcjhome}/bin/appletviewer
dosym ${gccbin}/gjarsigner ${gcjhome}/bin/jarsigner
dosym ${gccbin}/grmiregistry ${gcjhome}/bin/rmiregistry
dosym ${gccbin}/grmiregistry ${gcjhome}/jre/bin/rmiregistry
dosym ${gccbin}/gkeytool ${gcjhome}/bin/keytool
dosym ${gccbin}/gkeytool ${gcjhome}/jre/bin/keytool
dosym ${gccbin}/gnative2ascii ${gcjhome}/bin/native2ascii
dosym ${gccbin}/gorbd ${gcjhome}/bin/orbd
dosym ${gccbin}/gorbd ${gcjhome}/jre/bin/orbd
dosym ${gccbin}/grmid ${gcjhome}/bin/rmid
dosym ${gccbin}/grmid ${gcjhome}/jre/bin/rmid
dosym ${gccbin}/gserialver ${gcjhome}/bin/serialver
dosym ${gccbin}/gtnameserv ${gcjhome}/bin/tnameserv
dosym ${gccbin}/gtnameserv ${gcjhome}/jre/bin/tnameserv
dodir ${gcjhome}/jre/lib/${libarch}/client
dodir ${gcjhome}/jre/lib/${libarch}/server
dosym ${gcjlibdir}/libjvm.so ${gcjhome}/jre/lib/${libarch}/client/libjvm.so
dosym ${gcjlibdir}/libjvm.so ${gcjhome}/jre/lib/${libarch}/server/libjvm.so
dosym ${gcjlibdir}/libjawt.so ${gcjhome}/jre/lib/${libarch}/libjawt.so
dosym /usr/share/gcc-data/${gccchost}/${gcc_version}/java/libgcj-${gcc_version/_/-}.jar \
${gcjhome}/jre/lib/rt.jar
dodir ${gcjhome}/lib
dosym /usr/share/gcc-data/${gccchost}/${gcc_version}/java/libgcj-tools-${gcc_version/_/-}.jar \
${gcjhome}/lib/tools.jar
dosym ${gcclib}/include ${gcjhome}
dosym /usr/bin/ecj-gcj-${ECJ_GCJ_SLOT} ${gcjhome}/bin/javac
set_java_env
}
pkg_postinst() {
# Do not set as system VM (see below)
# java-vm-2_pkg_postinst
ewarn "gcj does not currently provide all the 1.5 APIs."
ewarn "See http://builder.classpath.org/japi/libgcj-jdk15.html"
ewarn "Check for existing bugs relating to missing APIs and file"
ewarn "new ones at http://gcc.gnu.org/bugzilla/"
ewarn
ewarn "Due to this and limited manpower, we currently cannot support"
ewarn "using gcj-jdk as a system VM. Its main purpose is to bootstrap"
ewarn "IcedTea without prior binary VM installation. To do that, execute:"
ewarn
ewarn "emerge -o icedtea && emerge icedtea"
}

@ -0,0 +1,97 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/gcj-jdk/gcj-jdk-4.6.3-r2.ebuild,v 1.1 2012/10/23 19:28:58 sera Exp $
EAPI="4"
inherit java-vm-2 multilib
DESCRIPTION="Java wrappers around GCJ"
HOMEPAGE="http://www.gentoo.org/"
SRC_URI=""
LICENSE="GPL-2"
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86 ~x86-linux"
SLOT="0"
IUSE=""
ECJ_GCJ_SLOT="3.6"
RDEPEND="
~sys-devel/gcc-${PV}[gcj,gtk]
dev-java/ecj-gcj:${ECJ_GCJ_SLOT}"
DEPEND="${RDEPEND}"
S="${WORKDIR}"
src_install() {
# jre lib paths ...
local libarch="$(get_system_arch)"
local gcc_version=${PV}
local gccbin=$(gcc-config -B ${gcc_version})
gccbin=${gccbin#"${EPREFIX}"}
local gcclib=$(gcc-config -L ${gcc_version} | cut -d':' -f1)
gcclib=${gcclib#"${EPREFIX}"}
local gcjhome="/usr/$(get_libdir)/${P}"
local gccchost="${CHOST}"
local gcjlibdir=$(echo "${EPREFIX}"/usr/$(get_libdir)/gcj-${gcc_version}-*)
gcjlibdir=${gcjlibdir#"${EPREFIX}"}
# links
dodir ${gcjhome}/bin
dodir ${gcjhome}/jre/bin
dosym ${gccbin}/gij ${gcjhome}/bin/java
dosym ${gccbin}/gij ${gcjhome}/jre/bin/java
dosym ${gccbin}/gjar ${gcjhome}/bin/jar
dosym ${gccbin}/gjdoc ${gcjhome}/bin/javadoc
dosym ${gccbin}/grmic ${gcjhome}/bin/rmic
dosym ${gccbin}/gjavah ${gcjhome}/bin/javah
dosym ${gccbin}/jcf-dump ${gcjhome}/bin/javap
dosym ${gccbin}/gappletviewer ${gcjhome}/bin/appletviewer
dosym ${gccbin}/gjarsigner ${gcjhome}/bin/jarsigner
dosym ${gccbin}/grmiregistry ${gcjhome}/bin/rmiregistry
dosym ${gccbin}/grmiregistry ${gcjhome}/jre/bin/rmiregistry
dosym ${gccbin}/gkeytool ${gcjhome}/bin/keytool
dosym ${gccbin}/gkeytool ${gcjhome}/jre/bin/keytool
dosym ${gccbin}/gnative2ascii ${gcjhome}/bin/native2ascii
dosym ${gccbin}/gorbd ${gcjhome}/bin/orbd
dosym ${gccbin}/gorbd ${gcjhome}/jre/bin/orbd
dosym ${gccbin}/grmid ${gcjhome}/bin/rmid
dosym ${gccbin}/grmid ${gcjhome}/jre/bin/rmid
dosym ${gccbin}/gserialver ${gcjhome}/bin/serialver
dosym ${gccbin}/gtnameserv ${gcjhome}/bin/tnameserv
dosym ${gccbin}/gtnameserv ${gcjhome}/jre/bin/tnameserv
dodir ${gcjhome}/jre/lib/${libarch}/client
dodir ${gcjhome}/jre/lib/${libarch}/server
dosym ${gcjlibdir}/libjvm.so ${gcjhome}/jre/lib/${libarch}/client/libjvm.so
dosym ${gcjlibdir}/libjvm.so ${gcjhome}/jre/lib/${libarch}/server/libjvm.so
dosym ${gcjlibdir}/libjawt.so ${gcjhome}/jre/lib/${libarch}/libjawt.so
dosym /usr/share/gcc-data/${gccchost}/${gcc_version}/java/libgcj-${gcc_version/_/-}.jar \
${gcjhome}/jre/lib/rt.jar
dodir ${gcjhome}/lib
dosym /usr/share/gcc-data/${gccchost}/${gcc_version}/java/libgcj-tools-${gcc_version/_/-}.jar \
${gcjhome}/lib/tools.jar
dosym ${gcclib}/include ${gcjhome}
dosym /usr/bin/ecj-gcj-${ECJ_GCJ_SLOT} ${gcjhome}/bin/javac
set_java_env
}
pkg_postinst() {
# Do not set as system VM (see below)
# java-vm-2_pkg_postinst
ewarn "gcj does not currently provide all the 1.5 APIs."
ewarn "See http://builder.classpath.org/japi/libgcj-jdk15.html"
ewarn "Check for existing bugs relating to missing APIs and file"
ewarn "new ones at http://gcc.gnu.org/bugzilla/"
ewarn
ewarn "Due to this and limited manpower, we currently cannot support"
ewarn "using gcj-jdk as a system VM. Its main purpose is to bootstrap"
ewarn "IcedTea without prior binary VM installation. To do that, execute:"
ewarn
ewarn "emerge -o icedtea && emerge icedtea"
}

@ -1,11 +1,14 @@
DIST php-5.3.15.tar.bz2 11307865 SHA256 f9b725659e64228a60883bd134afe1f638900b6b8fa93ba98053095b0892f1ef SHA512 40334a3c7957637506d265fc9c534a8e35dabd83683d30094f1b48b69e4b20a40715d0b4ad98fb8467e91f74f878fb148b910e7d0a5df22ee3e601b4228c8180 WHIRLPOOL 7b8fee9c90a9af88d95b5ee7877081b0030cee0ccc2d431ddb97c3bd857624c1124aa2109b709334387e4b073ce3bbf3297bd13c1d805791fb41cb226faac0df
DIST php-5.3.16.tar.bz2 11314384 SHA256 851a27f0407e30d310f4e9d276a03c95e909b5493dc2e33c6a889d0af43d69f7 SHA512 719667d7f6a6b6894c234aac9d2d609583032b422dbd5de0d87c4cf3ff7736885a08c5bfad212db9839622e75b8a2cf2d078731208318475c74469ef837e7cbf WHIRLPOOL 3ffc75799ef45cf4ae3abef3d44a05bc153f677a0b9efae78ae2e1fa49c794b9637c1070561de644a8ea8c7e4334b9058d6b0b683d546a33ab152c9119cc575d
DIST php-5.3.17.tar.bz2 11326372 SHA256 ad85e857d404b9e74f1e003deb574e94e3bb939f686e4e9a871d3a6b3f957509 SHA512 70f5dca6c5e19c38b0586cd2f3854459ca56cac929b6c0cf8fda606b21031576c08214e817411c1c76158b14d09c175b9ef6ff35e17536b9dc80bdfb7d9b8937 WHIRLPOOL b3272d3f3685ecbb4a8c9640249b5501dfda6cd077f9160b0a566072d8c1edddeeca366673b73ec0693efa10b8c3e66ddbe87ed26b408ce65aa4f24d53cc3cda
DIST php-5.3.18.tar.bz2 11335289 SHA256 f065deecb78abb8ef101e1098866024af4ca10cb30139608c9a18e40236f1a2f SHA512 39b9532b65b86737ad825c76c42551840707c7eee311af7307bfbb1a41f7533ff6afec07fc9c3d42c8684aa08d814118ae3ff020b25fab1faaf1229e0ab9568d WHIRLPOOL 480916325f4e05ed4f7d4b40a62c6c8966111abdab687a74772749f9291991797106b39d74b9a00984eeb70b28096059032c77439d38a2e1467f2362e46ebd79
DIST php-5.4.5.tar.bz2 11011780 SHA256 7af9a1b6b1653f15d679c8e505b24c4dc2dc2a8d55521a142a7f523d06ae6ad9 SHA512 568144b57ecf8ceadbeb33a2071bae68a58e60624084fec4e6b11f96c94ad2bc136a0db9a8d8a1b1663a7baf8a0a97dacf35578cfde0642ee0cc8b047c177866 WHIRLPOOL ecb8c8c35cf896db94c5f5c9a673fbabd40ba71511fd651ac52f2b6dd25070dc5236854149f51e550f58aa26214693d0875cad4bd6bbbb820062143eac27d71d
DIST php-5.4.6.tar.bz2 11026249 SHA256 031181ef9167b31ce1dad9146b7a1a6151da44b3bafc0756fb7c5794b24ac0f5 SHA512 bf6c377999538c815ddc149ed7f8ba5feb08e3ae4e2f1abe559a6ad2a9ce6a7205ec62345640c1f8498d3ddea62bc997f31f8f77caca6a483b123551f1695cf1 WHIRLPOOL e7d0924b0a9c0d85e257be0cf0c314cda19d6da02f02111562a47873ab72b0ea20419e4c25b29c46cfc3df0aa1a30f767d88f5131456c36af60f71b47bcf76fe
DIST php-5.4.7.tar.bz2 11040787 SHA256 6a456a572e9e3572768a5abf3ec94fa7dd957e1e4fb3410524d120ffd4cc3f92 SHA512 0375ebdac5454b82e6cdfc9f3f0f0def5764c30b632496b8697241c6555e3d448ec2098ebf63de637e189a74c4f45edc4d032301690df5a96ea04c1c6e2b4cf0 WHIRLPOOL 47efc1a658f0fcd47fe0261eeed0cf19d9cf914f86ab67ff3ccde89b52b4a1e7635c0b15e457268f4fdfb36b0964495f58bd453823462d37d18a52808a3bdf32
DIST php-5.4.8.tar.bz2 11056057 SHA256 d02810b7949938ee7190116e7483e1a06b3fa8373d3bbc0ea65a41265afce79f SHA512 e04ee08e7d1b6f80183846206d02576ad22ea3f41e956bab970344b195f1d2267f1ff69439988cea7084c18576d7855383e48094bdb7684d43cb0f78e4a5e7b8 WHIRLPOOL 963153d85236bd105cbf11a89dd0db11e590cc292bb499abaa9271dbb47eeb124ef011af9561cb5569840d32130934c70cd8ebb4d619147892044ab8c3be09bd
DIST php-patchset-5.3.15-r0.tar.bz2 7357 SHA256 df239b883d40386cf98e44bd107a36ebcb34554058c0857748c5715ba2dcb1e8 SHA512 c1bd1933a2119037c38fbb46fc0799dd0a9c5acaf11fc4d8d885f644a429350ddcf170bb74e91bfa11139e35b52c73c5db60a2783ab0b5113c675373699c11d1 WHIRLPOOL 87a2993c0c9573241f73e1fa3f0e6bcaee39df6f4ce5501299ea84731ef15eeca05e3d04948c92cf278df6c45edc3f580c28a99667f22d377b1566662c67ff9f
DIST php-patchset-5.3.16-r0.tar.bz2 7357 SHA256 7eb09b8021877264b6811434e23546bd1e1e819dacd7f3a06636eeeb77b5dae6 SHA512 2775dfd9b9e4267cb08fc15e758af6d5835e2b15f0ba282e8fa123c30d863bc7edef3ae9fbfc5aaafae9fa038113b72b9697f530f71768bee7b6a26d38a4a332 WHIRLPOOL 14d47d9e28b6ace0531e6b204212a0e23ef6c55a94c68fdabe02de91f74cf8f15d56a0f01800500eb2a3c0f7cfc297149d0f2d42022c3a4228654d818482542e
DIST php-patchset-5.3.17-r0.tar.bz2 7364 SHA256 79aa08748dad5460199a24e3d3ff628f5ef2b155a397b583593f8d08f5ed74f1 SHA512 45c31b7692b1691853944efb2faee75465f4141e4c14b137cf41cc0363ee8d7a84c3c5ae9b30c1972fbb70f463ddbd163e2a1df8cb7b183be1310a0fd3737a0f WHIRLPOOL c2e4737f92650f6799f8b0bb5eda754e4daa71c1af38d432ba175ae0b232bb3df084a6f43f2756740314e2a03ca9284d7646019454bd2168e6f759019183eea6
DIST php-patchset-5.3.18-r0.tar.bz2 7360 SHA256 8e7d449a4ab50dd8da241f2992fdaee012eafe4da6c66609231cff68d84c5c9f SHA512 625f456649964a959c7aa399c6c4fbeff8dd0b45372153819d42b447069e78cce99b4b6c30d89a64b211d230e17ef28e99d5e3b9055dd59e19b8103337de8d09 WHIRLPOOL cb1ae11173fa6d0a0f26a313d036f6f2109bc704531c5db76a584cc243b5f16ccff3c5e0c943196b5f13a7603e222c2f2c0eb393d754faf66fa5d54e5f627fde
DIST php-patchset-5.4-2.tar.bz2 5824 SHA256 4a47f4d31f50a244f85349486cdb3474cf315562e097ed4c116c2b9b5730ecef SHA512 3c2523458a627373da7acb93fb2cd621f50b19fe2ba1d30beb62eeaaa39045262b917cfd0b631046fec9c8027cfa99bd0426a079ab45eb172b21d25d6e085dde WHIRLPOOL fe4f015e2f0dc66cc23ef16fb5bb33117952593ae0770d4bcd37ecc1c431cbcc7874189d265696305c60b4e395e7ce902667e38203db46867304868271affdea
DIST suhosin-patch-5.3.9-0.9.10.patch.gz 40967 SHA256 4438caeab0a10c6c94aee9f7eaa703f5799f97d4e0579f43a947bb7314e38317 SHA512 98c56d41fac123626cbd1bcf4ca8afba5a9a960fd58a60e08c91a68cab7589162c4f9e1b0c39abaf173775cb63091a04c4224ee278410ec0afdbe9f3cf05f322 WHIRLPOOL f551823324919cc14cc5f0b4dc2ed75e292fcb2dbe3a34b2c954d4f3cd8ff27937b7a8a0e5665ddc4e737908d2530abf3c61397b040dd6aadcc31163d762b42e

@ -0,0 +1,924 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.3.18.ebuild,v 1.1 2012/10/23 19:43:44 olemarkus Exp $
EAPI=4
inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
SUHOSIN_VERSION="5.3.9-0.9.10"
FPM_VERSION="builtin"
EXPECTED_TEST_FAILURES=""
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd"
function php_get_uri ()
{
case "${1}" in
"php-pre")
echo "http://downloads.php.net/johannes/${2}"
;;
"php")
echo "http://www.php.net/distributions/${2}"
;;
"suhosin")
echo "http://download.suhosin.org/${2}"
;;
"olemarkus")
echo "http://dev.gentoo.org/~olemarkus/php/${2}"
;;
"gentoo")
echo "mirror://gentoo/${2}"
;;
*)
die "unhandled case in php_get_uri"
;;
esac
}
PHP_MV="$(get_major_version)"
SLOT="$(get_version_component_range 1-2)"
# alias, so we can handle different types of releases (finals, rcs, alphas,
# betas, ...) w/o changing the whole ebuild
PHP_PV="${PV/_rc/RC}"
PHP_PV="${PHP_PV/_alpha/alpha}"
PHP_PV="${PHP_PV/_beta/beta}"
PHP_RELEASE="php"
[[ ${PV} == ${PV/_rc/} ]] || PHP_RELEASE="php-pre"
PHP_P="${PN}-${PHP_PV}"
PHP_PATCHSET_LOC="olemarkus"
PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
PHP_PATCHSET="0"
PHP_PATCHSET_URI="
$(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
PHP_FPM_INIT_VER="4"
PHP_FPM_CONF_VER="1"
if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then
# in some cases we use our own suhosin patch (very recent version,
# patch conflicts, etc.)
SUHOSIN_TYPE="olemarkus"
else
SUHOSIN_TYPE="suhosin"
fi
if [[ -n ${SUHOSIN_VERSION} ]]; then
SUHOSIN_PATCH="suhosin-patch-${SUHOSIN_VERSION}.patch";
SUHOSIN_URI="$(php_get_uri ${SUHOSIN_TYPE} ${SUHOSIN_PATCH}.gz )"
fi
SRC_URI="
${PHP_SRC_URI}
${PHP_PATCHSET_URI}"
if [[ -n ${SUHOSIN_VERSION} ]]; then
SRC_URI="${SRC_URI}
suhosin? ( ${SUHOSIN_URI} )"
fi
DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
HOMEPAGE="http://php.net/"
LICENSE="PHP-3"
S="${WORKDIR}/${PHP_P}"
# We can build the following SAPIs in the given order
SAPIS="embed cli cgi fpm apache2"
# Gentoo-specific, common features
IUSE="kolab"
# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
IUSE="${IUSE}
${SAPIS/cli/+cli}
threads"
IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
crypt +ctype curl curlwrappers debug doc
enchant exif frontbase +fileinfo +filter firebird
flatfile ftp gd gdbm gmp +hash +iconv imap inifile
intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
mssql mysql mysqlnd mysqli nls
oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
readline recode selinux +session sharedmem
+simplexml snmp soap sockets spell sqlite2 sqlite3 ssl
sybase-ct sysvipc tidy +tokenizer truetype unicode wddx
+xml xmlreader xmlwriter xmlrpc xpm xsl zip zlib"
# Enable suhosin if available
[[ -n $SUHOSIN_VERSION ]] && IUSE="${IUSE} suhosin"
DEPEND="!dev-lang/php:5
>=app-admin/eselect-php-0.6.2
>=dev-libs/libpcre-8.12[unicode]
apache2? ( www-servers/apache[threads=] )
berkdb? ( =sys-libs/db-4* )
bzip2? ( app-arch/bzip2 )
cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
cjk? ( !gd? (
virtual/jpeg
media-libs/libpng
sys-libs/zlib
) )
crypt? ( >=dev-libs/libmcrypt-2.4 )
curl? ( >=net-misc/curl-7.10.5 )
enchant? ( app-text/enchant )
exif? ( !gd? (
virtual/jpeg
media-libs/libpng
sys-libs/zlib
) )
firebird? ( dev-db/firebird )
gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
gdbm? ( >=sys-libs/gdbm-1.8.0 )
gmp? ( >=dev-libs/gmp-4.1.2 )
iconv? ( virtual/libiconv )
imap? ( virtual/imap-c-client[ssl=] )
intl? ( dev-libs/icu )
iodbc? ( dev-db/libiodbc )
kerberos? ( virtual/krb5 )
kolab? ( >=net-libs/c-client-2004g-r1 )
ldap? ( >=net-nds/openldap-1.2.11 )
ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
mssql? ( dev-db/freetds[mssql] )
!mysqlnd? (
mysql? ( virtual/mysql )
mysqli? ( >=virtual/mysql-4.1 )
)
nls? ( sys-devel/gettext )
oci8-instant-client? ( dev-db/oracle-instantclient-basic )
odbc? ( >=dev-db/unixODBC-1.8.13 )
postgres? ( dev-db/postgresql-base )
qdbm? ( dev-db/qdbm )
readline? ( sys-libs/readline )
recode? ( app-text/recode )
sharedmem? ( dev-libs/mm )
simplexml? ( >=dev-libs/libxml2-2.6.8 )
snmp? ( >=net-analyzer/net-snmp-5.2 )
soap? ( >=dev-libs/libxml2-2.6.8 )
spell? ( >=app-text/aspell-0.50 )
sqlite2? ( =dev-db/sqlite-2* )
sqlite3? ( >=dev-db/sqlite-3.7.7.1 )
ssl? ( >=dev-libs/openssl-0.9.7 )
sybase-ct? ( dev-db/freetds )
tidy? ( app-text/htmltidy )
truetype? (
=media-libs/freetype-2*
>=media-libs/t1lib-5.0.0
!gd? (
virtual/jpeg media-libs/libpng sys-libs/zlib )
)
unicode? ( dev-libs/oniguruma )
wddx? ( >=dev-libs/libxml2-2.6.8 )
xml? ( >=dev-libs/libxml2-2.6.8 )
xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
xmlreader? ( >=dev-libs/libxml2-2.6.8 )
xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
xpm? (
x11-libs/libXpm
virtual/jpeg
media-libs/libpng sys-libs/zlib
)
xsl? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
zip? ( sys-libs/zlib )
zlib? ( sys-libs/zlib )
virtual/mta
"
php="=${CATEGORY}/${PF}"
REQUIRED_USE="
truetype? ( gd )
cjk? ( gd )
exif? ( gd )
xpm? ( gd )
gd? ( zlib )
simplexml? ( xml )
soap? ( xml )
wddx? ( xml )
xmlrpc? ( || ( xml iconv ) )
xmlreader? ( xml )
xsl? ( xml )
ldap-sasl? ( ldap )
kolab? ( imap )
mhash? ( hash )
phar? ( hash )
mysqlnd? ( || (
mysql
mysqli
pdo
) )
qdbm? ( !gdbm )
readline? ( !libedit )
recode? ( !imap !mysql !mysqli )
sharedmem? ( !threads )
!cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
RDEPEND="${DEPEND}"
[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? ( =${CATEGORY}/${PN}-${SLOT}*[unicode] )"
RDEPEND="${RDEPEND} fpm? ( selinux? ( sec-policy/selinux-phpfpm ) )"
DEPEND="${DEPEND}
sys-devel/flex
>=sys-devel/m4-1.4.3
>=sys-devel/libtool-1.5.18"
# They are in PDEPEND because we need PHP installed first!
PDEPEND="doc? ( app-doc/php-docs )"
# No longer depend on the extension. The suhosin USE flag only installs the
# patch
#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
# Allow users to install production version if they want to
case "${PHP_INI_VERSION}" in
production|development)
;;
*)
PHP_INI_VERSION="development"
;;
esac
PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
PHP_INI_FILE="php.ini"
want_apache
pkg_setup() {
depend.apache_pkg_setup
}
src_prepare() {
# USE=sharedmem (session/mod_mm to be exact) tries to mmap() this path
# ([empty session.save_path]/session_mm_[sapi][gid].sem)
# there is no easy way to circumvent that, all php calls during
# install use -n, so no php.ini file will be used.
# As such, this is the easiest way to get around
addpredict /session_mm_cli250.sem
addpredict /session_mm_cli0.sem
# kolab support (support for imap annotations)
use kolab && epatch "${WORKDIR}/${PV}/opt/imap-kolab-annotations.patch"
# Change PHP branding
sed -re "s|^(PHP_EXTRA_VERSION=\").*(\")|\1${PHP_EXTRA_BRANDING}-pl${PR/r/}-gentoo\2|g" \
-i configure.in || die "Unable to change PHP branding"
# Apply generic PHP patches
EPATCH_SOURCE="${WORKDIR}/${PV}/generic" EPATCH_SUFFIX="patch" \
EPATCH_FORCE="yes" \
EPATCH_MULTI_MSG="Applying generic patches and fixes from upstream..." epatch
# Patch PHP to show Gentoo as the server platform
sed -e 's/PHP_UNAME=`uname -a | xargs`/PHP_UNAME=`uname -s -n -r -v | xargs`/g' \
-i configure.in || die "Failed to fix server platform name"
# Prevent PHP from activating the Apache config,
# as we will do that ourselves
sed -i \
-e "s,-i -a -n php${PHP_MV},-i -n php${PHP_MV},g" \
-e "s,-i -A -n php${PHP_MV},-i -n php${PHP_MV},g" \
configure sapi/apache2filter/config.m4 sapi/apache2handler/config.m4
# Patch PHP to support heimdal instead of mit-krb5
if has_version "app-crypt/heimdal" ; then
sed -e 's|gssapi_krb5|gssapi|g' -i acinclude.m4 \
|| die "Failed to fix heimdal libname"
sed -e 's|PHP_ADD_LIBRARY(k5crypto, 1, $1)||g' -i acinclude.m4 \
|| die "Failed to fix heimdal crypt library reference"
fi
# Suhosin support
if [[ -n $SUHOSIN_VERSION ]] ; then
if use suhosin ; then
epatch "${WORKDIR}/${SUHOSIN_PATCH}"
fi
else
ewarn "Please note that this version of PHP does not yet come with a suhosin patch"
fi
#Add user patches #357637
epatch_user
# rebuild the whole autotools stuff as we are heavily patching it
# (suhosin, fastbuild, ...)
# eaclocal doesn't accept --force, so we try to force re-generation
# this way
rm aclocal.m4
# work around divert() issues with newer autoconf, bug #281697
if has_version '>=sys-devel/autoconf-2.64' ; then
sed -i -r \
-e 's:^((m4_)?divert)[(]([0-9]*)[)]:\1(600\3):' \
$(grep -l divert $(find . -name '*.m4') configure.in) || die
fi
eautoreconf --force -W no-cross
}
src_configure() {
addpredict /usr/share/snmp/mibs/.index
addpredict /var/lib/net-snmp/mib_indexes
PHP_DESTDIR="/usr/$(get_libdir)/php${SLOT}"
# This is a global variable and should be in caps. It isn't because the
# phpconfutils eclass relies on exactly this name...
# for --with-libdir see bug #327025
my_conf="--prefix=${PHP_DESTDIR}
--mandir=${PHP_DESTDIR}/man
--infodir=${PHP_DESTDIR}/info
--libdir=${PHP_DESTDIR}/lib
--with-libdir=$(get_libdir)
--without-pear
$(use_enable threads maintainer-zts)"
# extension USE flag shared
my_conf+="
$(use_enable bcmath bcmath )
$(use_with bzip2 bz2 )
$(use_enable calendar calendar )
$(use_enable ctype ctype )
$(use_with curl curl )
$(use_with curlwrappers curlwrappers )
$(use_enable xml dom )
$(use_with enchant enchant /usr)
$(use_enable exif exif )
$(use_enable fileinfo fileinfo )
$(use_enable filter filter )
$(use_enable ftp ftp )
$(use_with nls gettext )
$(use_with gmp gmp )
$(use_enable hash hash )
$(use_with mhash mhash )
$(use_with iconv iconv )
$(use_enable intl intl )
$(use_enable ipv6 ipv6 )
$(use_enable json json )
$(use_with kerberos kerberos /usr)
$(use_enable xml libxml )
$(use_enable unicode mbstring )
$(use_with crypt mcrypt )
$(use_with mssql mssql )
$(use_with unicode onig /usr)
$(use_with ssl openssl )
$(use_with ssl openssl-dir /usr)
$(use_enable pcntl pcntl )
$(use_enable phar phar )
$(use_enable pdo pdo )
$(use_with postgres pgsql )
$(use_enable posix posix )
$(use_with spell pspell )
$(use_with recode recode )
$(use_enable simplexml simplexml )
$(use_enable sharedmem shmop )
$(use_with snmp snmp )
$(use_enable soap soap )
$(use_enable sockets sockets )"
if version_is_at_least 5.3.16-r2; then
my_conf+=" $(use_with sqlite2 sqlite /usr) "
use sqlite2 && my_conf+=" $(use_enable unicode sqlite-utf8)"
else
my_conf+=" $(use_with sqlite sqlite /usr) "
use sqlite && my_conf+=" $(use_enable unicode sqlite-utf8)"
fi
my_conf+="
$(use_with sqlite3 sqlite3 /usr)
$(use_with sybase-ct sybase-ct /usr)
$(use_enable sysvipc sysvmsg )
$(use_enable sysvipc sysvsem )
$(use_enable sysvipc sysvshm )
$(use_with tidy tidy )
$(use_enable tokenizer tokenizer )
$(use_enable wddx wddx )
$(use_enable xml xml )
$(use_enable xmlreader xmlreader )
$(use_enable xmlwriter xmlwriter )
$(use_with xmlrpc xmlrpc )
$(use_with xsl xsl )
$(use_enable zip zip )
$(use_with zlib zlib )
$(use_enable debug debug )"
# DBA support
if use cdb || use berkdb || use flatfile || use gdbm || use inifile \
|| use qdbm ; then
my_conf="${my_conf} --enable-dba${shared}"
fi
# DBA drivers support
my_conf+="
$(use_with cdb cdb )
$(use_with berkdb db4 )
$(use_enable flatfile flatfile )
$(use_with gdbm gdbm )
$(use_enable inifile inifile )
$(use_with qdbm qdbm )"
# Support for the GD graphics library
my_conf+="
$(use_with truetype freetype-dir /usr)
$(use_with truetype t1lib /usr)
$(use_enable cjk gd-jis-conv )
$(use_with gd jpeg-dir /usr)
$(use_with gd png-dir /usr)
$(use_with xpm xpm-dir /usr)"
# enable gd last, so configure can pick up the previous settings
my_conf+="
$(use_with gd gd )"
# IMAP support
if use imap ; then
my_conf+="
$(use_with imap imap )
$(use_with ssl imap-ssl )"
fi
# Interbase/firebird support
if use firebird ; then
my_conf+="
$(use_with firebird interbase /usr)"
fi
# LDAP support
if use ldap ; then
my_conf+="
$(use_with ldap ldap )
$(use_with ldap-sasl ldap-sasl )"
fi
# MySQL support
if use mysql ; then
if use mysqlnd ; then
my_conf+="
$(use_with mysql mysql mysqlnd)"
else
my_conf+="
$(use_with mysql mysql /usr)"
fi
my_conf+="
$(use_with mysql mysql-sock /var/run/mysqld/mysqld.sock)"
fi
# MySQLi support
if use mysqlnd ; then
my_conf+="
$(use_with mysqli mysqli mysqlnd)"
else
my_conf+="
$(use_with mysqli mysqli /usr/bin/mysql_config)"
fi
# ODBC support
if use odbc ; then
my_conf+="
$(use_with odbc unixODBC /usr)"
fi
if use iodbc ; then
my_conf+="
$(use_with iodbc iodbc /usr)"
fi
# Oracle support
if use oci8-instant-client ; then
my_conf+="
$(use_with oci8-instant-client oci8)"
fi
# PDO support
if use pdo ; then
my_conf+="
$(use_with mssql pdo-dblib )"
if use mysqlnd ; then
my_conf+="
$(use_with mysql pdo-mysql mysqlnd)"
else
my_conf+="
$(use_with mysql pdo-mysql /usr)"
fi
my_conf+="
$(use_with postgres pdo-pgsql )
$(use_with sqlite3 pdo-sqlite /usr)
$(use_with odbc pdo-odbc unixODBC,/usr)"
if use oci8-instant-client ; then
my_conf+="
$(use_with oci8-instant-client pdo-oci)"
fi
fi
# readline/libedit support
my_conf+="
$(use_with readline readline )
$(use_with libedit libedit )"
# Session support
if use session ; then
my_conf+="
$(use_with sharedmem mm )"
else
my_conf+="
$(use_enable session session )"
fi
if use pic ; then
my_conf="${my_conf} --with-pic"
fi
# we use the system copy of pcre
# --with-pcre-regex affects ext/pcre
# --with-pcre-dir affects ext/filter and ext/zip
my_conf="${my_conf} --with-pcre-regex=/usr --with-pcre-dir=/usr"
# Catch CFLAGS problems
# Fixes bug #14067.
# Changed order to run it in reverse for bug #32022 and #12021.
replace-cpu-flags "k6*" "i586"
# Support user-passed configuration parameters
my_conf="${my_conf} ${EXTRA_ECONF:-}"
# Support the Apache2 extras, they must be set globally for all
# SAPIs to work correctly, especially for external PHP extensions
mkdir -p "${WORKDIR}/sapis-build"
for one_sapi in $SAPIS ; do
use "${one_sapi}" || continue
php_set_ini_dir "${one_sapi}"
cp -r "${S}" "${WORKDIR}/sapis-build/${one_sapi}"
cd "${WORKDIR}/sapis-build/${one_sapi}"
sapi_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR}
--with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE}"
for sapi in $SAPIS ; do
case "$sapi" in
cli|cgi|embed|fpm)
if [[ "${one_sapi}" == "${sapi}" ]] ; then
sapi_conf="${sapi_conf} --enable-${sapi}"
else
sapi_conf="${sapi_conf} --disable-${sapi}"
fi
;;
apache2)
if [[ "${one_sapi}" == "${sapi}" ]] ; then
sapi_conf="${sapi_conf} --with-apxs2=/usr/sbin/apxs"
else
sapi_conf="${sapi_conf} --without-apxs2"
fi
;;
esac
done
econf ${sapi_conf}
done
}
src_compile() {
# snmp seems to run during src_compile, too (bug #324739)
addpredict /usr/share/snmp/mibs/.index
addpredict /var/lib/net-snmp/mibs/.index
SAPI_DIR="${WORKDIR}/sapis"
for sapi in ${SAPIS} ; do
use "${sapi}" || continue
php_sapi_build "${sapi}"
php_sapi_copy "${sapi}"
done
}
php_sapi_build() {
mkdir -p "${SAPI_DIR}/$1"
cd "${WORKDIR}/sapis-build/$1"
emake || die "emake failed"
}
php_sapi_copy() {
local sapi="$1"
local source=""
case "$sapi" in
cli)
source="sapi/cli/php"
;;
cgi)
source="sapi/cgi/php-cgi"
;;
fpm)
source="sapi/fpm/php-fpm"
;;
embed)
source="libs/libphp${PHP_MV}.so"
;;
apache2)
# apache2 is a special case; the necessary files
# (yes, multiple) are copied by make install, not
# by the ebuild; that's the reason, why apache2 has
# to be the last sapi
emake INSTALL_ROOT="${SAPI_DIR}/${sapi}/" install-sapi
;;
*)
die "unhandled sapi in php_sapi_copy"
;;
esac
if [[ "${source}" ]] ; then
cp "$source" "${SAPI_DIR}/$sapi" || die "Unable to copy ${sapi} SAPI"
fi
}
src_install() {
# see bug #324739 for what happens when we don't have that
addpredict /usr/share/snmp/mibs/.index
# grab the first SAPI that got built and install common files from there
local first_sapi=""
for sapi in $SAPIS ; do
if use $sapi ; then
first_sapi=$sapi
break
fi
done
# Makefile forgets to create this before trying to write to it...
dodir "${PHP_DESTDIR#${EPREFIX}}/bin"
# Install php environment (without any sapis)
cd "${WORKDIR}/sapis-build/$first_sapi"
emake INSTALL_ROOT="${D}" \
install-build install-headers install-programs \
|| die "emake install failed"
local extension_dir="$("${ED}/${PHP_DESTDIR#${EPREFIX}}/bin/php-config" --extension-dir)"
# Create the directory where we'll put version-specific php scripts
keepdir /usr/share/php${PHP_MV}
local sapi="", file=""
local sapi_list=""
for sapi in ${SAPIS}; do
if use "${sapi}" ; then
einfo "Installing SAPI: ${sapi}"
cd "${WORKDIR}/sapis-build/${sapi}"
if [[ "${sapi}" == "apache2" ]] ; then
# We're specifically not using emake install-sapi as libtool
# may cause unnecessary relink failures (see bug #351266)
insinto "${PHP_DESTDIR#${EPREFIX}}/apache2/"
newins ".libs/libphp5$(get_libname)" "libphp${PHP_MV}$(get_libname)"
keepdir "/usr/$(get_libdir)/apache2/modules"
else
# needed each time, php_install_ini would reset it
into "${PHP_DESTDIR#${EPREFIX}}"
case "$sapi" in
cli)
source="sapi/cli/php"
;;
cgi)
source="sapi/cgi/php-cgi"
;;
fpm)
source="sapi/fpm/php-fpm"
;;
embed)
source="libs/libphp${PHP_MV}$(get_libname)"
;;
*)
die "unhandled sapi in src_install"
;;
esac
if [[ "${source}" == *"$(get_libname)" ]]; then
dolib.so "${source}" || die "Unable to install ${sapi} sapi"
else
dobin "${source}" || die "Unable to install ${sapi} sapi"
fi
fi
php_install_ini "${sapi}"
# construct correct SAPI string for php-config
# thanks to ferringb for the bash voodoo
if [[ "${sapi}" == "apache2" ]]; then
sapi_list="${sapi_list:+${sapi_list} }apache2handler"
else
sapi_list="${sapi_list:+${sapi_list} }${sapi}"
fi
fi
done
# Install env.d files
newenvd "${FILESDIR}/20php5-envd" \
"20php${SLOT}"
sed -e "s|/lib/|/$(get_libdir)/|g" -i \
"${ED}/etc/env.d/20php${SLOT}"
sed -e "s|php5|php${SLOT}|g" -i \
"${ED}/etc/env.d/20php${SLOT}"
# set php-config variable correctly (bug #278439)
sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \
"${ED}/usr/$(get_libdir)/php${SLOT}/bin/php-config"
}
php_set_ini_dir() {
PHP_INI_DIR="${EPREFIX}/etc/php/${1}-php${SLOT}"
PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext"
PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active"
}
php_install_ini() {
local phpsapi="${1}"
# work out where we are installing the ini file
php_set_ini_dir "${phpsapi}"
local phpinisrc="${PHP_INI_UPSTREAM}-${phpsapi}"
cp "${PHP_INI_UPSTREAM}" "${phpinisrc}"
# default to /tmp for save_path, bug #282768
sed -e 's|^;session.save_path .*$|session.save_path = "'"${EPREFIX}"'/tmp"|g' -i "${phpinisrc}"
# Set the extension dir
sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" -i "${phpinisrc}"
# Set the include path to point to where we want to find PEAR packages
sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:'"${EPREFIX}"'/usr/share/php'${PHP_MV}':'"${EPREFIX}"'/usr/share/php"|' -i "${phpinisrc}"
dodir "${PHP_INI_DIR#${EPREFIX}}"
insinto "${PHP_INI_DIR#${EPREFIX}}"
newins "${phpinisrc}" "${PHP_INI_FILE}"
elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR#${EPREFIX}}"
elog
dodir "${PHP_EXT_INI_DIR#${EPREFIX}}"
dodir "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}"
# SAPI-specific handling
if [[ "${sapi}" == "apache2" ]] ; then
insinto "${APACHE_MODULES_CONFDIR#${EPREFIX}}"
newins "${FILESDIR}/70_mod_php${PHP_MV}.conf-apache2" \
"70_mod_php${PHP_MV}.conf"
fi
if [[ "${sapi}" == "fpm" ]] ; then
[[ -z ${PHP_FPM_INIT_VER} ]] && PHP_FPM_INIT_VER=3
[[ -z ${PHP_FPM_CONF_VER} ]] && PHP_FPM_CONF_VER=0
einfo "Installing FPM CGI config file php-fpm.conf"
insinto "${PHP_INI_DIR#${EPREFIX}}"
newins "${FILESDIR}/php-fpm-r${PHP_FPM_CONF_VER}.conf" php-fpm.conf
dodir "/etc/init.d"
insinto "/etc/init.d"
newinitd "${FILESDIR}/php-fpm-r${PHP_FPM_INIT_VER}.init" "php-fpm"
# dosym "${PHP_DESTDIR#${EPREFIX}}/bin/php-fpm" "/usr/bin/php-fpm"
# Remove bogus /etc/php-fpm.conf.default (bug 359906)
[[ -f "${ED}/etc/php-fpm.conf.default" ]] && rm "${ED}/etc/php-fpm.conf.default"
fi
# Install PHP ini files into /usr/share/php
if [[ ${SLOT} == '5.2' ]]; then
newdoc php.ini-dist php.ini-development
newdoc php.ini-recommended php.ini-production
fi
if [[ ${SLOT} == '5.3' ]]; then
dodoc php.ini-development
dodoc php.ini-production
fi
if [[ ${SLOT} == '5.4' ]]; then
dodoc php.ini-development
dodoc php.ini-production
fi
}
src_test() {
vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
PHP_BIN="${WORKDIR}/sapis-build/cli/sapi/cli/php"
if [[ ! -x "${PHP_BIN}" ]] ; then
ewarn "Test phase requires USE=cli, skipping"
return
else
export TEST_PHP_EXECUTABLE="${PHP_BIN}"
fi
if [[ -x "${WORKDIR}/sapis/cgi/php-cgi" ]] ; then
export TEST_PHP_CGI_EXECUTABLE="${WORKDIR}/sapis/cgi/php-cgi"
fi
REPORT_EXIT_STATUS=1 "${TEST_PHP_EXECUTABLE}" -n -d "session.save_path=${T}" \
"${WORKDIR}/sapis-build/cli/run-tests.php" -n -q -d "session.save_path=${T}"
for name in ${EXPECTED_TEST_FAILURES}; do
mv "${name}.out" "${name}.out.orig" 2>/dev/null
done
local failed="$(find -name '*.out')"
if [[ ${failed} != "" ]] ; then
ewarn "The following test cases failed unexpectedly:"
for name in ${failed}; do
ewarn " ${name/.out/}"
done
else
einfo "No unexpected test failures, all fine"
fi
if [[ ${PHP_SHOW_UNEXPECTED_TEST_PASS} == "1" ]] ; then
local passed=""
for name in ${EXPECTED_TEST_FAILURES}; do
[[ -f "${name}.diff" ]] && continue
passed="${passed} ${name}"
done
if [[ ${passed} != "" ]] ; then
einfo "The following test cases passed unexpectedly:"
for name in ${passed}; do
ewarn " ${passed}"
done
else
einfo "None of the known-to-fail tests passed, all fine"
fi
fi
}
#Do not use eblit for this because it will not get sourced when installing from
#binary package (bug #380845)
pkg_postinst() {
# Output some general info to the user
if use apache2 ; then
APACHE2_MOD_DEFINE="PHP5"
APACHE2_MOD_CONF="70_mod_php5"
apache-module_pkg_postinst
fi
# Create the symlinks for php
for m in ${SAPIS}; do
[[ ${m} == 'embed' ]] && continue;
if use $m ; then
local ci=$(eselect php show $m)
if [[ -z $ci ]]; then
eselect php set $m php${SLOT}
einfo "Switched ${m} to use php:${SLOT}"
einfo
elif [[ $ci != "php${SLOT}" ]] ; then
elog "To switch $m to use php:${SLOT}, run"
elog " eselect php set $m php${SLOT}"
elog
fi
fi
done
elog "Make sure that PHP_TARGETS in /etc/make.conf includes php${SLOT/./-} in order"
elog "to compile extensions for the ${SLOT} ABI"
elog
if ! use readline && use cli ; then
ewarn "Note that in order to use php interactivly, you need to enable"
ewarn "the readline USE flag or php -a will hang"
fi
elog
elog "This ebuild installed a version of php.ini based on php.ini-${PHP_INI_VERSION} version."
elog "You can chose which version of php.ini to install by default by setting PHP_INI_VERSION to either"
elog "'production' or 'development' in /etc/make.conf"
ewarn "Both versions of php.ini can be found in /usr/share/doc/${PF}"
# check for not yet migrated old style config dirs
ls "${ROOT}"/etc/php/*-php5 &>/dev/null
if [[ $? -eq 0 ]]; then
ewarn "Make sure to migrate your config files, starting with php-5.3.4 and php-5.2.16 config"
ewarn "files are now kept at ${ROOT}etc/php/{apache2,cli,cgi,fpm}-php5.x"
fi
elog
elog "For more details on how minor version slotting works (PHP_TARGETS) please read the upgrade guide:"
elog "http://www.gentoo.org/proj/en/php/php-upgrading.xml"
elog
if ( [[ -z SUHOSIN_VERSION ]] && use suhosin && version_is_at_least 5.3.6_rc1 ) ; then
ewarn "The suhosin USE flag now only installs the suhosin patch!"
ewarn "If you want the suhosin extension, make sure you install"
ewarn " dev-php5/suhosin"
ewarn
fi
}

@ -0,0 +1,879 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.4.8.ebuild,v 1.1 2012/10/23 19:43:44 olemarkus Exp $
EAPI=4
inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
SUHOSIN_VERSION=""
FPM_VERSION="builtin"
EXPECTED_TEST_FAILURES=""
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
function php_get_uri ()
{
case "${1}" in
"php-pre")
echo "http://downloads.php.net/stas/${2}"
;;
"php")
echo "http://www.php.net/distributions/${2}"
;;
"suhosin")
echo "http://download.suhosin.org/${2}"
;;
"olemarkus")
echo "http://dev.gentoo.org/~olemarkus/php/${2}"
;;
"gentoo")
echo "mirror://gentoo/${2}"
;;
*)
die "unhandled case in php_get_uri"
;;
esac
}
PHP_MV="$(get_major_version)"
SLOT="$(get_version_component_range 1-2)"
# alias, so we can handle different types of releases (finals, rcs, alphas,
# betas, ...) w/o changing the whole ebuild
PHP_PV="${PV/_rc/RC}"
PHP_PV="${PHP_PV/_alpha/alpha}"
PHP_PV="${PHP_PV/_beta/beta}"
PHP_RELEASE="php"
[[ ${PV} == ${PV/_rc/} ]] || PHP_RELEASE="php-pre"
PHP_P="${PN}-${PHP_PV}"
PHP_PATCHSET_LOC="olemarkus"
PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
PHP_PATCHSET="2"
PHP_PATCHSET_URI="
$(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-$SLOT-${PHP_PATCHSET}.tar.bz2")"
PHP_FPM_INIT_VER="4"
PHP_FPM_CONF_VER="1"
if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then
# in some cases we use our own suhosin patch (very recent version,
# patch conflicts, etc.)
SUHOSIN_TYPE="olemarkus"
else
SUHOSIN_TYPE="suhosin"
fi
if [[ -n ${SUHOSIN_VERSION} ]]; then
SUHOSIN_PATCH="suhosin-patch-${SUHOSIN_VERSION}.patch";
SUHOSIN_URI="$(php_get_uri ${SUHOSIN_TYPE} ${SUHOSIN_PATCH}.gz )"
fi
SRC_URI="
${PHP_SRC_URI}
${PHP_PATCHSET_URI}"
if [[ -n ${SUHOSIN_VERSION} ]]; then
SRC_URI="${SRC_URI}
suhosin? ( ${SUHOSIN_URI} )"
fi
DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
HOMEPAGE="http://php.net/"
LICENSE="PHP-3"
S="${WORKDIR}/${PHP_P}"
# We can build the following SAPIs in the given order
SAPIS="embed cli cgi fpm apache2"
# Gentoo-specific, common features
IUSE="kolab"
# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
IUSE="${IUSE}
${SAPIS/cli/+cli}
threads"
IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
crypt +ctype curl curlwrappers debug doc
enchant exif frontbase +fileinfo +filter firebird
flatfile ftp gd gdbm gmp +hash +iconv imap inifile
intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
mssql mysql mysqlnd mysqli nls
oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
readline recode selinux +session sharedmem
+simplexml snmp soap sockets spell sqlite3 ssl
sybase-ct sysvipc tidy +tokenizer truetype unicode wddx
+xml xmlreader xmlwriter xmlrpc xpm xsl zip zlib"
# Enable suhosin if available
[[ -n $SUHOSIN_VERSION ]] && IUSE="${IUSE} suhosin"
DEPEND="
>=app-admin/eselect-php-0.6.2
>=dev-libs/libpcre-8.12[unicode]
apache2? ( www-servers/apache[threads=] )
berkdb? ( =sys-libs/db-4* )
bzip2? ( app-arch/bzip2 )
cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
cjk? ( !gd? (
virtual/jpeg
media-libs/libpng
sys-libs/zlib
) )
crypt? ( >=dev-libs/libmcrypt-2.4 )
curl? ( >=net-misc/curl-7.10.5 )
enchant? ( app-text/enchant )
exif? ( !gd? (
virtual/jpeg
media-libs/libpng
sys-libs/zlib
) )
firebird? ( dev-db/firebird )
gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
gdbm? ( >=sys-libs/gdbm-1.8.0 )
gmp? ( >=dev-libs/gmp-4.1.2 )
iconv? ( virtual/libiconv )
imap? ( virtual/imap-c-client[ssl=] )
intl? ( dev-libs/icu )
iodbc? ( dev-db/libiodbc )
kerberos? ( virtual/krb5 )
kolab? ( >=net-libs/c-client-2004g-r1 )
ldap? ( >=net-nds/openldap-1.2.11 )
ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
mssql? ( dev-db/freetds[mssql] )
!mysqlnd? (
mysql? ( virtual/mysql )
mysqli? ( >=virtual/mysql-4.1 )
)
nls? ( sys-devel/gettext )
oci8-instant-client? ( dev-db/oracle-instantclient-basic )
odbc? ( >=dev-db/unixODBC-1.8.13 )
postgres? ( dev-db/postgresql-base )
qdbm? ( dev-db/qdbm )
readline? ( sys-libs/readline )
recode? ( app-text/recode )
sharedmem? ( dev-libs/mm )
simplexml? ( >=dev-libs/libxml2-2.6.8 )
snmp? ( >=net-analyzer/net-snmp-5.2 )
soap? ( >=dev-libs/libxml2-2.6.8 )
spell? ( >=app-text/aspell-0.50 )
sqlite3? ( >=dev-db/sqlite-3.7.6.3 )
ssl? ( >=dev-libs/openssl-0.9.7 )
sybase-ct? ( dev-db/freetds )
tidy? ( app-text/htmltidy )
truetype? (
=media-libs/freetype-2*
>=media-libs/t1lib-5.0.0
!gd? (
virtual/jpeg media-libs/libpng sys-libs/zlib )
)
unicode? ( dev-libs/oniguruma )
wddx? ( >=dev-libs/libxml2-2.6.8 )
xml? ( >=dev-libs/libxml2-2.6.8 )
xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
xmlreader? ( >=dev-libs/libxml2-2.6.8 )
xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
xpm? (
x11-libs/libXpm
virtual/jpeg
media-libs/libpng sys-libs/zlib
)
xsl? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
zip? ( sys-libs/zlib )
zlib? ( sys-libs/zlib )
virtual/mta
"
php="=${CATEGORY}/${PF}"
REQUIRED_USE="
truetype? ( gd )
cjk? ( gd )
exif? ( gd )
xpm? ( gd )
gd? ( zlib )
simplexml? ( xml )
soap? ( xml )
wddx? ( xml )
xmlrpc? ( || ( xml iconv ) )
xmlreader? ( xml )
xsl? ( xml )
ldap-sasl? ( ldap )
kolab? ( imap )
mhash? ( hash )
phar? ( hash )
mysqlnd? ( || (
mysql
mysqli
pdo
) )
qdbm? ( !gdbm )
readline? ( !libedit )
recode? ( !imap !mysql !mysqli )
sharedmem? ( !threads )
!cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
RDEPEND="${DEPEND}"
[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
=${CATEGORY}/${PN}-${SLOT}*[unicode] )"
RDEPEND="${RDEPEND} fpm? ( selinux? ( sec-policy/selinux-phpfpm ) )"
DEPEND="${DEPEND}
sys-devel/flex
>=sys-devel/m4-1.4.3
>=sys-devel/libtool-1.5.18"
# They are in PDEPEND because we need PHP installed first!
PDEPEND="doc? ( app-doc/php-docs )"
# No longer depend on the extension. The suhosin USE flag only installs the
# patch
#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
# Allow users to install production version if they want to
case "${PHP_INI_VERSION}" in
production|development)
;;
*)
PHP_INI_VERSION="development"
;;
esac
PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
PHP_INI_FILE="php.ini"
want_apache
pkg_setup() {
depend.apache_pkg_setup
}
php_install_ini() {
local phpsapi="${1}"
# work out where we are installing the ini file
php_set_ini_dir "${phpsapi}"
local phpinisrc="${PHP_INI_UPSTREAM}-${phpsapi}"
cp "${PHP_INI_UPSTREAM}" "${phpinisrc}"
# default to /tmp for save_path, bug #282768
sed -e 's|^;session.save_path .*$|session.save_path = "'"${EPREFIX}"'/tmp"|g' -i "${phpinisrc}"
# Set the extension dir
sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" -i "${phpinisrc}"
# Set the include path to point to where we want to find PEAR packages
sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:'"${EPREFIX}"'/usr/share/php'${PHP_MV}':'"${EPREFIX}"'/usr/share/php"|' -i "${phpinisrc}"
dodir "${PHP_INI_DIR#${EPREFIX}}"
insinto "${PHP_INI_DIR#${EPREFIX}}"
newins "${phpinisrc}" "${PHP_INI_FILE}"
elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR#${EPREFIX}}"
elog
dodir "${PHP_EXT_INI_DIR#${EPREFIX}}"
dodir "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}"
# SAPI-specific handling
if [[ "${sapi}" == "apache2" ]] ; then
insinto "${APACHE_MODULES_CONFDIR#${EPREFIX}}"
newins "${FILESDIR}/70_mod_php${PHP_MV}.conf-apache2" \
"70_mod_php${PHP_MV}.conf"
fi
if [[ "${sapi}" == "fpm" ]] ; then
[[ -z ${PHP_FPM_INIT_VER} ]] && PHP_FPM_INIT_VER=3
[[ -z ${PHP_FPM_CONF_VER} ]] && PHP_FPM_CONF_VER=0
einfo "Installing FPM CGI config file php-fpm.conf"
insinto "${PHP_INI_DIR#${EPREFIX}}"
newins "${FILESDIR}/php-fpm-r${PHP_FPM_CONF_VER}.conf" php-fpm.conf
dodir "/etc/init.d"
insinto "/etc/init.d"
newinitd "${FILESDIR}/php-fpm-r${PHP_FPM_INIT_VER}.init" "php-fpm"
# dosym "${PHP_DESTDIR#${EPREFIX}}/bin/php-fpm" "/usr/bin/php-fpm"
# Remove bogus /etc/php-fpm.conf.default (bug 359906)
[[ -f "${ED}/etc/php-fpm.conf.default" ]] && rm "${ED}/etc/php-fpm.conf.default"
fi
# Install PHP ini files into /usr/share/php
if [[ ${SLOT} == '5.2' ]]; then
newdoc php.ini-dist php.ini-development
newdoc php.ini-recommended php.ini-production
fi
if [[ ${SLOT} == '5.3' ]]; then
dodoc php.ini-development
dodoc php.ini-production
fi
if [[ ${SLOT} == '5.4' ]]; then
dodoc php.ini-development
dodoc php.ini-production
fi
}
php_set_ini_dir() {
PHP_INI_DIR="${EPREFIX}/etc/php/${1}-php${SLOT}"
PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext"
PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active"
}
src_prepare() {
# USE=sharedmem (session/mod_mm to be exact) tries to mmap() this path
# ([empty session.save_path]/session_mm_[sapi][gid].sem)
# there is no easy way to circumvent that, all php calls during
# install use -n, so no php.ini file will be used.
# As such, this is the easiest way to get around
addpredict /session_mm_cli250.sem
addpredict /session_mm_cli0.sem
# kolab support (support for imap annotations)
use kolab && epatch "${WORKDIR}/patches/opt/imap-kolab-annotations.patch"
# Change PHP branding
# Get the alpha/beta/rc version
local ver=$(get_version_component_range 4)
sed -re "s|^(PHP_EXTRA_VERSION=\").*(\")|\1${PHP_EXTRA_BRANDING}-${ver}-pl${PR/r/}-gentoo\2|g" \
-i configure.in || die "Unable to change PHP branding"
# Apply generic PHP patches
EPATCH_SOURCE="${WORKDIR}/patches/generic" EPATCH_SUFFIX="patch" \
EPATCH_FORCE="yes" \
EPATCH_MULTI_MSG="Applying generic patches and fixes from upstream..." epatch
# Patch PHP to show Gentoo as the server platform
sed -e 's/PHP_UNAME=`uname -a | xargs`/PHP_UNAME=`uname -s -n -r -v | xargs`/g' \
-i configure.in || die "Failed to fix server platform name"
# Prevent PHP from activating the Apache config,
# as we will do that ourselves
sed -i \
-e "s,-i -a -n php${PHP_MV},-i -n php${PHP_MV},g" \
-e "s,-i -A -n php${PHP_MV},-i -n php${PHP_MV},g" \
configure sapi/apache2filter/config.m4 sapi/apache2handler/config.m4
# Patch PHP to support heimdal instead of mit-krb5
if has_version "app-crypt/heimdal" ; then
sed -e 's|gssapi_krb5|gssapi|g' -i acinclude.m4 \
|| die "Failed to fix heimdal libname"
sed -e 's|PHP_ADD_LIBRARY(k5crypto, 1, $1)||g' -i acinclude.m4 \
|| die "Failed to fix heimdal crypt library reference"
fi
# Suhosin support
if [[ -n $SUHOSIN_VERSION ]] ; then
if use suhosin ; then
epatch "${WORKDIR}/${SUHOSIN_PATCH}"
fi
else
ewarn "Please note that this version of PHP does not yet come with a suhosin patch"
fi
#Add user patches #357637
epatch_user
#force rebuilding aclocal.m4
rm aclocal.m4
eautoreconf
if [[ ${CHOST} == *-darwin* ]] ; then
# http://bugs.php.net/bug.php?id=48795, bug #343481
sed -i -e '/BUILD_CGI="\\$(CC)/s/CC/CXX/' configure || die
fi
}
src_configure() {
addpredict /usr/share/snmp/mibs/.index
addpredict /var/lib/net-snmp/mib_indexes
PHP_DESTDIR="${EPREFIX}/usr/$(get_libdir)/php${SLOT}"
# This is a global variable and should be in caps. It isn't because the
# phpconfutils eclass relies on exactly this name...
# for --with-libdir see bug #327025
my_conf="
--prefix="${PHP_DESTDIR}"
--mandir="${PHP_DESTDIR}"/man
--infodir="${PHP_DESTDIR}"/info
--libdir="${PHP_DESTDIR}"/lib
--with-libdir=$(get_libdir)
--without-pear
$(use_enable threads maintainer-zts)"
# extension USE flag shared
my_conf+="
$(use_enable bcmath bcmath )
$(use_with bzip2 bz2 "${EPREFIX}"/usr)
$(use_enable calendar calendar )
$(use_enable ctype ctype )
$(use_with curl curl "${EPREFIX}"/usr)
$(use_with curlwrappers curlwrappers "${EPREFIX}"/usr)
$(use_enable xml dom )
$(use_with enchant enchant "${EPREFIX}"/usr)
$(use_enable exif exif )
$(use_enable fileinfo fileinfo )
$(use_enable filter filter )
$(use_enable ftp ftp )
$(use_with nls gettext "${EPREFIX}"/usr)
$(use_with gmp gmp "${EPREFIX}"/usr)
$(use_enable hash hash )
$(use_with mhash mhash "${EPREFIX}"/usr)
$(use_with iconv iconv )
$(use_enable intl intl )
$(use_enable ipv6 ipv6 )
$(use_enable json json )
$(use_with kerberos kerberos "${EPREFIX}"/usr)
$(use_enable xml libxml )
$(use_with xml libxml-dir "${EPREFIX}"/usr)
$(use_enable unicode mbstring )
$(use_with crypt mcrypt "${EPREFIX}"/usr)
$(use_with mssql mssql "${EPREFIX}"/usr)
$(use_with unicode onig "${EPREFIX}"/usr)
$(use_with ssl openssl "${EPREFIX}"/usr)
$(use_with ssl openssl-dir "${EPREFIX}"/usr)
$(use_enable pcntl pcntl )
$(use_enable phar phar )
$(use_enable pdo pdo )
$(use_with postgres pgsql "${EPREFIX}"/usr)
$(use_enable posix posix )
$(use_with spell pspell "${EPREFIX}"/usr)
$(use_with recode recode "${EPREFIX}"/usr)
$(use_enable simplexml simplexml )
$(use_enable sharedmem shmop )
$(use_with snmp snmp "${EPREFIX}"/usr)
$(use_enable soap soap )
$(use_enable sockets sockets )
$(use_with sqlite3 sqlite3 "${EPREFIX}"/usr)
$(use_with sybase-ct sybase-ct "${EPREFIX}"/usr)
$(use_enable sysvipc sysvmsg )
$(use_enable sysvipc sysvsem )
$(use_enable sysvipc sysvshm )
$(use_with tidy tidy "${EPREFIX}"/usr)
$(use_enable tokenizer tokenizer )
$(use_enable wddx wddx )
$(use_enable xml xml )
$(use_enable xmlreader xmlreader )
$(use_enable xmlwriter xmlwriter )
$(use_with xmlrpc xmlrpc)
$(use_with xsl xsl "${EPREFIX}"/usr)
$(use_enable zip zip )
$(use_with zlib zlib "${EPREFIX}"/usr)
$(use_enable debug debug )"
# DBA support
if use cdb || use berkdb || use flatfile || use gdbm || use inifile \
|| use qdbm ; then
my_conf="${my_conf} --enable-dba${shared}"
fi
# DBA drivers support
my_conf+="
$(use_with cdb cdb)
$(use_with berkdb db4 ${EPREFIX}/usr)
$(use_enable flatfile flatfile )
$(use_with gdbm gdbm ${EPREFIX}/usr)
$(use_enable inifile inifile )
$(use_with qdbm qdbm ${EPREFIX}/usr)"
# Support for the GD graphics library
my_conf+="
$(use_with truetype freetype-dir ${EPREFIX}/usr)
$(use_with truetype t1lib ${EPREFIX}/usr)
$(use_enable cjk gd-jis-conv )
$(use_with gd jpeg-dir ${EPREFIX}/usr)
$(use_with gd png-dir ${EPREFIX}/usr)
$(use_with xpm xpm-dir ${EPREFIX}/usr)"
# enable gd last, so configure can pick up the previous settings
my_conf+="
$(use_with gd gd)"
# IMAP support
if use imap ; then
my_conf+="
$(use_with imap imap ${EPREFIX}/usr)
$(use_with ssl imap-ssl ${EPREFIX}/usr)"
fi
# Interbase/firebird support
if use firebird ; then
my_conf+="
$(use_with firebird interbase ${EPREFIX}/usr)"
fi
# LDAP support
if use ldap ; then
my_conf+="
$(use_with ldap ldap ${EPREFIX}/usr)
$(use_with ldap-sasl ldap-sasl ${EPREFIX}/usr)"
fi
# MySQL support
if use mysql ; then
if use mysqlnd ; then
my_conf+="
$(use_with mysql mysql mysqlnd)"
else
my_conf+="
$(use_with mysql mysql ${EPREFIX}/usr)"
fi
my_conf+="
$(use_with mysql mysql-sock ${EPREFIX}/var/run/mysqld/mysqld.sock)"
fi
# MySQLi support
if use mysqlnd ; then
my_conf+="
$(use_with mysqli mysqli mysqlnd)"
else
my_conf+="
$(use_with mysqli mysqli ${EPREFIX}/usr/bin/mysql_config)"
fi
# ODBC support
if use odbc ; then
my_conf+="
$(use_with odbc unixODBC ${EPREFIX}/usr)"
fi
if use iodbc ; then
my_conf+="
$(use_with iodbc iodbc ${EPREFIX}/usr)"
fi
# Oracle support
if use oci8-instant-client ; then
my_conf+="
$(use_with oci8-instant-client oci8)"
fi
# PDO support
if use pdo ; then
my_conf+="
$(use_with mssql pdo-dblib )"
if use mysqlnd ; then
my_conf+="
$(use_with mysql pdo-mysql mysqlnd)"
else
my_conf+="
$(use_with mysql pdo-mysql ${EPREFIX}/usr)"
fi
my_conf+="
$(use_with postgres pdo-pgsql )
$(use_with sqlite3 pdo-sqlite ${EPREFIX}/usr)
$(use_with odbc pdo-odbc unixODBC,${EPREFIX}/usr)"
if use oci8-instant-client ; then
my_conf+="
$(use_with oci8-instant-client pdo-oci)"
fi
fi
# readline/libedit support
my_conf+="
$(use_with readline readline ${EPREFIX}/usr)
$(use_with libedit libedit ${EPREFIX}/usr)"
# Session support
if use session ; then
my_conf+="
$(use_with sharedmem mm ${EPREFIX}/usr)"
else
my_conf+="
$(use_enable session session )"
fi
if use pic ; then
my_conf="${my_conf} --with-pic"
fi
# we use the system copy of pcre
# --with-pcre-regex affects ext/pcre
# --with-pcre-dir affects ext/filter and ext/zip
my_conf="${my_conf} --with-pcre-regex=${EPREFIX}/usr --with-pcre-dir=${EPREFIX}/usr"
# Catch CFLAGS problems
# Fixes bug #14067.
# Changed order to run it in reverse for bug #32022 and #12021.
replace-cpu-flags "k6*" "i586"
# Support user-passed configuration parameters
my_conf="${my_conf} ${EXTRA_ECONF:-}"
# Support the Apache2 extras, they must be set globally for all
# SAPIs to work correctly, especially for external PHP extensions
mkdir -p "${WORKDIR}/sapis-build"
for one_sapi in $SAPIS ; do
use "${one_sapi}" || continue
php_set_ini_dir "${one_sapi}"
cp -r "${S}" "${WORKDIR}/sapis-build/${one_sapi}"
cd "${WORKDIR}/sapis-build/${one_sapi}"
sapi_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR}
--with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE}"
for sapi in $SAPIS ; do
case "$sapi" in
cli|cgi|embed|fpm)
if [[ "${one_sapi}" == "${sapi}" ]] ; then
sapi_conf="${sapi_conf} --enable-${sapi}"
else
sapi_conf="${sapi_conf} --disable-${sapi}"
fi
;;
apache2)
if [[ "${one_sapi}" == "${sapi}" ]] ; then
sapi_conf="${sapi_conf} --with-apxs2=${EPREFIX}/usr/sbin/apxs"
else
sapi_conf="${sapi_conf} --without-apxs2"
fi
;;
esac
done
econf ${sapi_conf}
done
}
src_compile() {
# snmp seems to run during src_compile, too (bug #324739)
addpredict /usr/share/snmp/mibs/.index
addpredict /var/lib/net-snmp/mib_indexes
for sapi in ${SAPIS} ; do
if use "${sapi}"; then
cd "${WORKDIR}/sapis-build/$sapi" || "Failed to change dir to ${WORKDIR}/sapis-build/$1"
emake || die "emake failed"
fi
done
}
src_install() {
# see bug #324739 for what happens when we don't have that
addpredict /usr/share/snmp/mibs/.index
# grab the first SAPI that got built and install common files from there
local first_sapi=""
for sapi in $SAPIS ; do
if use $sapi ; then
first_sapi=$sapi
break
fi
done
# Makefile forgets to create this before trying to write to it...
dodir "${PHP_DESTDIR#${EPREFIX}}/bin"
# Install php environment (without any sapis)
cd "${WORKDIR}/sapis-build/$first_sapi"
emake INSTALL_ROOT="${D}" \
install-build install-headers install-programs \
|| die "emake install failed"
local extension_dir="$("${ED}/${PHP_DESTDIR#${EPREFIX}}/bin/php-config" --extension-dir)"
# Create the directory where we'll put version-specific php scripts
keepdir /usr/share/php${PHP_MV}
local sapi="", file=""
local sapi_list=""
for sapi in ${SAPIS}; do
if use "${sapi}" ; then
einfo "Installing SAPI: ${sapi}"
cd "${WORKDIR}/sapis-build/${sapi}"
if [[ "${sapi}" == "apache2" ]] ; then
# We're specifically not using emake install-sapi as libtool
# may cause unnecessary relink failures (see bug #351266)
insinto "${PHP_DESTDIR#${EPREFIX}}/apache2/"
newins ".libs/libphp5$(get_libname)" "libphp${PHP_MV}$(get_libname)"
keepdir "/usr/$(get_libdir)/apache2/modules"
else
# needed each time, php_install_ini would reset it
into "${PHP_DESTDIR#${EPREFIX}}"
case "$sapi" in
cli)
source="sapi/cli/php"
;;
cgi)
source="sapi/cgi/php-cgi"
;;
fpm)
source="sapi/fpm/php-fpm"
;;
embed)
source="libs/libphp${PHP_MV}$(get_libname)"
;;
*)
die "unhandled sapi in src_install"
;;
esac
if [[ "${source}" == *"$(get_libname)" ]]; then
dolib.so "${source}" || die "Unable to install ${sapi} sapi"
else
dobin "${source}" || die "Unable to install ${sapi} sapi"
fi
fi
php_install_ini "${sapi}"
# construct correct SAPI string for php-config
# thanks to ferringb for the bash voodoo
if [[ "${sapi}" == "apache2" ]]; then
sapi_list="${sapi_list:+${sapi_list} }apache2handler"
else
sapi_list="${sapi_list:+${sapi_list} }${sapi}"
fi
fi
done
# Install env.d files
newenvd "${FILESDIR}/20php5-envd" \
"20php${SLOT}"
sed -e "s|/lib/|/$(get_libdir)/|g" -i \
"${ED}/etc/env.d/20php${SLOT}"
sed -e "s|php5|php${SLOT}|g" -i \
"${ED}/etc/env.d/20php${SLOT}"
# set php-config variable correctly (bug #278439)
sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \
"${ED}/usr/$(get_libdir)/php${SLOT}/bin/php-config"
}
src_test() {
vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
PHP_BIN="${WORKDIR}/sapis-build/cli/sapi/cli/php"
if [[ ! -x "${PHP_BIN}" ]] ; then
ewarn "Test phase requires USE=cli, skipping"
return
else
export TEST_PHP_EXECUTABLE="${PHP_BIN}"
fi
if [[ -x "${WORKDIR}/sapis/cgi/php-cgi" ]] ; then
export TEST_PHP_CGI_EXECUTABLE="${WORKDIR}/sapis/cgi/php-cgi"
fi
REPORT_EXIT_STATUS=1 "${TEST_PHP_EXECUTABLE}" -n -d "session.save_path=${T}" \
"${WORKDIR}/sapis-build/cli/run-tests.php" -n -q -d "session.save_path=${T}"
for name in ${EXPECTED_TEST_FAILURES}; do
mv "${name}.out" "${name}.out.orig" 2>/dev/null
done
local failed="$(find -name '*.out')"
if [[ ${failed} != "" ]] ; then
ewarn "The following test cases failed unexpectedly:"
for name in ${failed}; do
ewarn " ${name/.out/}"
done
else
einfo "No unexpected test failures, all fine"
fi
if [[ ${PHP_SHOW_UNEXPECTED_TEST_PASS} == "1" ]] ; then
local passed=""
for name in ${EXPECTED_TEST_FAILURES}; do
[[ -f "${name}.diff" ]] && continue
passed="${passed} ${name}"
done
if [[ ${passed} != "" ]] ; then
einfo "The following test cases passed unexpectedly:"
for name in ${passed}; do
ewarn " ${passed}"
done
else
einfo "None of the known-to-fail tests passed, all fine"
fi
fi
}
pkg_postinst() {
# Output some general info to the user
if use apache2 ; then
APACHE2_MOD_DEFINE="PHP5"
APACHE2_MOD_CONF="70_mod_php5"
apache-module_pkg_postinst
fi
# Create the symlinks for php
for m in ${SAPIS}; do
[[ ${m} == 'embed' ]] && continue;
if use $m ; then
local ci=$(eselect php show $m)
if [[ -z $ci ]]; then
eselect php set $m php${SLOT}
einfo "Switched ${m} to use php:${SLOT}"
einfo
elif [[ $ci != "php${SLOT}" ]] ; then
elog "To switch $m to use php:${SLOT}, run"
elog " eselect php set $m php${SLOT}"
elog
fi
fi
done
elog "Make sure that PHP_TARGETS in ${EPREFIX}/etc/make.conf includes php${SLOT/./-} in order"
elog "to compile extensions for the ${SLOT} ABI"
elog
if ! use readline && use cli ; then
ewarn "Note that in order to use php interactivly, you need to enable"
ewarn "the readline USE flag or php -a will hang"
fi
elog
elog "This ebuild installed a version of php.ini based on php.ini-${PHP_INI_VERSION} version."
elog "You can chose which version of php.ini to install by default by setting PHP_INI_VERSION to either"
elog "'production' or 'development' in ${EPREFIX}/etc/make.conf"
elog "Both versions of php.ini can be found in ${EPREFIX}/usr/share/doc/${PF}"
elog
elog "For more details on how minor version slotting works (PHP_TARGETS) please read the upgrade guide:"
elog "http://www.gentoo.org/proj/en/php/php-upgrading.xml"
elog
if ( [[ -z SUHOSIN_VERSION ]] && use suhosin && version_is_at_least 5.3.6_rc1 ) ; then
ewarn
ewarn "The suhosin USE flag now only installs the suhosin patch!"
ewarn "If you want the suhosin extension, make sure you install"
ewarn " dev-php/suhosin"
ewarn
fi
}
pkg_prerm() {
local sapi
local slot
for sapi in ${SAPIS}; do
slot=$(eselect php show $sapi 2> /dev/null)
slot=${slot/php/}
if [[ $slot == $SLOT ]]; then
ewarn "You have removed the active version of the $sapi SAPI"
ewarn "Fix the issue using \`eselect php\`"
fi
done
}

@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.9.3_p194-r1.ebuild,v 1.8 2012/10/21 19:00:43 armin76 Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.9.3_p194-r1.ebuild,v 1.9 2012/10/23 20:57:31 jer Exp $
EAPI=4
@ -119,9 +119,6 @@ src_configure() {
# fi
myconf="${myconf} $(use_with readline)"
# Set a faux target (bug #342819)
use hppa && myconf="${myconf} --target=parisc"
econf \
--program-suffix=${MY_SUFFIX} \
--with-soname=ruby${MY_SUFFIX} \

@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.9.3_p286.ebuild,v 1.1 2012/10/15 12:18:47 graaff Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.9.3_p286.ebuild,v 1.2 2012/10/23 20:57:31 jer Exp $
EAPI=4
@ -119,9 +119,6 @@ src_configure() {
# fi
myconf="${myconf} $(use_with readline)"
# Set a faux target (bug #342819)
use hppa && myconf="${myconf} --target=parisc"
econf \
--program-suffix=${MY_SUFFIX} \
--with-soname=ruby${MY_SUFFIX} \

@ -0,0 +1,52 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/spidermonkey-1.7.0-r3.ebuild,v 1.1 2012/10/23 19:07:07 axs Exp $
EAPI="5"
inherit eutils toolchain-funcs multilib flag-o-matic
MY_P="js-${PV}"
DESCRIPTION="Stand-alone JavaScript C library"
HOMEPAGE="http://www.mozilla.org/js/spidermonkey/"
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/js/${MY_P}.tar.gz"
LICENSE="NPL-1.1"
SLOT="0/js"
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE="threadsafe unicode"
S="${WORKDIR}/js/src"
RDEPEND="threadsafe? ( dev-libs/nspr )"
DEPEND="${RDEPEND}"
src_prepare() {
epatch "${FILESDIR}/${PN}-1.5-build.patch"
epatch "${FILESDIR}/${PN}-1.6-header.patch"
epatch "${FILESDIR}/${P}-threadsafe.diff" \
"${FILESDIR}"/${P}-ldflags.patch
# don't force owner for Prefix
sed -i -e '/^INSTALL :=/s/-g 0 -o root//' Makefile.ref || die
if [[ ${CHOST} == *-freebsd* ]]; then
# Don't try to be smart, this does not work in cross-compile anyway
ln -s "${S}/config/Linux_All.mk" "${S}/config/$(uname -s)$(uname -r).mk"
fi
}
src_compile() {
use unicode && append-flags "-DJS_C_STRINGS_ARE_UTF8"
tc-export CC LD AR RANLIB
local threadsafe=""
use threadsafe && threadsafe="JS_THREADSAFE=1"
emake -j1 -f Makefile.ref LIBDIR="$(get_libdir)" ${threadsafe} \
XLDFLAGS="$(raw-ldflags)" HOST_LDFLAGS="${LDFLAGS}"
}
src_install() {
emake -f Makefile.ref install DESTDIR="${ED}" LIBDIR="$(get_libdir)"
dodoc ../jsd/README
dohtml README.html
}

@ -0,0 +1,80 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/spidermonkey-1.8.2.15-r2.ebuild,v 1.1 2012/10/23 19:07:07 axs Exp $
EAPI="5"
inherit eutils toolchain-funcs multilib python
MY_PV="${PV}"
MY_PV="${MY_PV/1.8.2/3.6}"
DESCRIPTION="Stand-alone JavaScript C library"
HOMEPAGE="http://www.mozilla.org/js/spidermonkey/"
REL_URI="http://releases.mozilla.org/pub/mozilla.org/firefox/releases"
SRC_URI="${REL_URI}/${MY_PV}/source/firefox-${MY_PV}.source.tar.bz2"
LICENSE="NPL-1.1"
SLOT="0/mozjs"
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x64-macos ~x86-macos"
IUSE="threadsafe"
S="${WORKDIR}/mozilla-1.9.2"
BUILDDIR="${S}/js/src"
RDEPEND="threadsafe? ( >=dev-libs/nspr-4.8.6 )"
DEPEND="${RDEPEND}
app-arch/zip
=dev-lang/python-2*[threads]
virtual/pkgconfig"
pkg_setup(){
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
epatch "${FILESDIR}/${PN}-1.9.2.13-as-needed.patch"
epatch_user
if [[ ${CHOST} == *-freebsd* ]]; then
# Don't try to be smart, this does not work in cross-compile anyway
ln -s "${BUILDDIR}/config/Linux_All.mk" "${S}/config/$(uname -s)$(uname -r).mk"
fi
}
src_configure() {
cd "${BUILDDIR}" || die
local myconf
use threadsafe && myconf="${myconf} \
--with-system-nspr --enable-threadsafe"
# Disable no-print-directory
MAKEOPTS=${MAKEOPTS/--no-print-directory/}
CC="$(tc-getCC)" CXX="$(tc-getCXX)" \
AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" \
LD="$(tc-getLD)" PYTHON="$(PYTHON)" econf \
${myconf}
}
src_compile() {
cd "${BUILDDIR}" || die
emake -j1
}
src_install() {
cd "${BUILDDIR}" || die
emake install DESTDIR="${D}"
dobin shell/js
dodoc ../jsd/README
dohtml README.html
if [[ ${CHOST} == *-darwin* ]] ; then
# fixup install_name
install_name_tool -id "${EPREFIX}"/usr/$(get_libdir)/libmozjs.dylib \
"${ED}"/usr/$(get_libdir)/libmozjs.dylib || die
fi
}

@ -0,0 +1,124 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/spidermonkey-1.8.5-r2.ebuild,v 1.1 2012/10/23 19:07:07 axs Exp $
EAPI="5"
WANT_AUTOCONF="2.1"
inherit autotools eutils toolchain-funcs multilib python versionator pax-utils
MY_PN="js"
TARBALL_PV="$(replace_all_version_separators '' $(get_version_component_range 1-3))"
MY_P="${MY_PN}-${PV}"
TARBALL_P="${MY_PN}${TARBALL_PV}-1.0.0"
DESCRIPTION="Stand-alone JavaScript C library"
HOMEPAGE="http://www.mozilla.org/js/spidermonkey/"
SRC_URI="https://ftp.mozilla.org/pub/mozilla.org/js/${TARBALL_P}.tar.gz"
LICENSE="NPL-1.1"
SLOT="0/mozjs185"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE="debug minimal static-libs test"
S="${WORKDIR}/${MY_P}"
BUILDDIR="${S}/js/src"
RDEPEND=">=dev-libs/nspr-4.7.0"
DEPEND="${RDEPEND}
app-arch/zip
=dev-lang/python-2*[threads]
virtual/pkgconfig"
pkg_setup(){
python_set_active_version 2
python_pkg_setup
export LC_ALL="C"
}
src_prepare() {
# https://bugzilla.mozilla.org/show_bug.cgi?id=628723#c43
epatch "${FILESDIR}/${P}-fix-install-symlinks.patch"
# https://bugzilla.mozilla.org/show_bug.cgi?id=638056#c9
epatch "${FILESDIR}/${P}-fix-ppc64.patch"
# https://bugs.gentoo.org/show_bug.cgi?id=400727
epatch "${FILESDIR}/${P}-arm_resprect_cflags-1.patch"
# https://bugs.gentoo.org/show_bug.cgi?id=438746
epatch "${FILESDIR}"/${PN}-1.8.7-freebsd-pthreads.patch
epatch_user
if [[ ${CHOST} == *-freebsd* ]]; then
# Don't try to be smart, this does not work in cross-compile anyway
ln -sfn "${BUILDDIR}/config/Linux_All.mk" "${S}/config/$(uname -s)$(uname -r).mk" || die
fi
cd "${BUILDDIR}" || die
eautoconf
}
src_configure() {
cd "${BUILDDIR}" || die
CC="$(tc-getCC)" CXX="$(tc-getCXX)" \
AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" \
LD="$(tc-getLD)" PYTHON="$(PYTHON)" \
econf \
${myopts} \
--enable-jemalloc \
--enable-readline \
--enable-threadsafe \
--with-system-nspr \
$(use_enable debug) \
$(use_enable static-libs static) \
$(use_enable test tests)
}
src_compile() {
cd "${BUILDDIR}" || die
if tc-is-cross-compiler; then
make CFLAGS="" CXXFLAGS="" \
CC=$(tc-getBUILD_CC) CXX=$(tc-getBUILD_CXX) \
AR=$(tc-getBUILD_AR) RANLIB=$(tc-getBUILD_RANLIB) \
jscpucfg host_jsoplengen host_jskwgen || die
make CFLAGS="" CXXFLAGS="" \
CC=$(tc-getBUILD_CC) CXX=$(tc-getBUILD_CXX) \
AR=$(tc-getBUILD_AR) RANLIB=$(tc-getBUILD_RANLIB) \
-C config nsinstall || die
mv {,native-}jscpucfg || die
mv {,native-}host_jskwgen || die
mv {,native-}host_jsoplengen || die
mv config/{,native-}nsinstall || die
sed -e 's@./jscpucfg@./native-jscpucfg@' \
-e 's@./host_jskwgen@./native-host_jskwgen@' \
-e 's@./host_jsoplengen@./native-host_jsoplengen@' \
-i Makefile || die
sed -e 's@/nsinstall@/native-nsinstall@' -i config/config.mk || die
rm -f config/host_nsinstall.o \
config/host_pathsub.o \
host_jskwgen.o \
host_jsoplengen.o || die
fi
emake
}
src_test() {
cd "${BUILDDIR}/jsapi-tests" || die
emake check
}
src_install() {
cd "${BUILDDIR}" || die
emake DESTDIR="${D}" install
# bug 437520 , exclude js shell for small systems
if ! use minimal ; then
dobin shell/js
pax-mark m "${ED}/usr/bin/js"
fi
dodoc ../../README
dohtml README.html
if ! use static-libs; then
# We can't actually disable building of static libraries
# They're used by the tests and in a few other places
find "${D}" -iname '*.a' -delete || die
fi
}

@ -0,0 +1,138 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/spidermonkey-1.8.7-r1.ebuild,v 1.1 2012/10/23 19:07:07 axs Exp $
EAPI="5"
WANT_AUTOCONF="2.1"
inherit autotools eutils toolchain-funcs multilib python versionator pax-utils
MY_PN="js"
TARBALL_PV="$(replace_all_version_separators '' $(get_version_component_range 1-3))"
MY_P="${MY_PN}-${PV}"
TARBALL_P="${MY_PN}${TARBALL_PV}-1.0.0"
SPIDERPV="${PV}-patches-0.1"
DESCRIPTION="Stand-alone JavaScript C library"
HOMEPAGE="http://www.mozilla.org/js/spidermonkey/"
SRC_URI="http://people.mozilla.com/~dmandelin/${TARBALL_P}.tar.gz
http://dev.gentoo.org/~anarchy/mozilla/patchsets/spidermonkey-${SPIDERPV}.tar.xz"
LICENSE="NPL-1.1"
SLOT="0/mozjs187"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE="debug jit minimal static-libs test"
S="${WORKDIR}/${MY_P}"
BUILDDIR="${S}/js/src"
RDEPEND=">=dev-libs/nspr-4.7.0
virtual/libffi"
DEPEND="${RDEPEND}
app-arch/zip
=dev-lang/python-2*[threads]
virtual/pkgconfig"
pkg_setup(){
python_set_active_version 2
python_pkg_setup
export LC_ALL="C"
}
src_prepare() {
# Apply patches that are required for misc archs
EPATCH_SUFFIX="patch" \
EPATCH_FORCE="yes" \
epatch "${WORKDIR}/spidermonkey"
epatch "${FILESDIR}"/${PN}-1.8.5-fix-install-symlinks.patch
epatch "${FILESDIR}"/${PN}-1.8.7-filter_desc.patch
epatch "${FILESDIR}"/${PN}-1.8.7-freebsd-pthreads.patch
epatch "${FILESDIR}"/${PN}-1.8.7-x32.patch
epatch_user
if [[ ${CHOST} == *-freebsd* ]]; then
# Don't try to be smart, this does not work in cross-compile anyway
ln -sfn "${BUILDDIR}/config/Linux_All.mk" "${S}/config/$(uname -s)$(uname -r).mk" || die
fi
cd "${BUILDDIR}" || die
eautoconf
}
src_configure() {
cd "${BUILDDIR}" || die
CC="$(tc-getCC)" CXX="$(tc-getCXX)" \
AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" \
LD="$(tc-getLD)" PYTHON="$(PYTHON)" \
econf \
${myopts} \
--enable-jemalloc \
--enable-readline \
--enable-threadsafe \
--with-system-nspr \
--enable-system-ffi \
--enable-jemalloc \
$(use_enable debug) \
$(use_enable jit tracejit) \
$(use_enable jit methodjit) \
$(use_enable static-libs static) \
$(use_enable test tests)
}
src_compile() {
cd "${BUILDDIR}" || die
if tc-is-cross-compiler; then
make CFLAGS="" CXXFLAGS="" \
CC=$(tc-getBUILD_CC) CXX=$(tc-getBUILD_CXX) \
AR=$(tc-getBUILD_AR) RANLIB=$(tc-getBUILD_RANLIB) \
jscpucfg host_jsoplengen host_jskwgen || die
make CFLAGS="" CXXFLAGS="" \
CC=$(tc-getBUILD_CC) CXX=$(tc-getBUILD_CXX) \
AR=$(tc-getBUILD_AR) RANLIB=$(tc-getBUILD_RANLIB) \
-C config nsinstall || die
mv {,native-}jscpucfg || die
mv {,native-}host_jskwgen || die
mv {,native-}host_jsoplengen || die
mv config/{,native-}nsinstall || die
sed -e 's@./jscpucfg@./native-jscpucfg@' \
-e 's@./host_jskwgen@./native-host_jskwgen@' \
-e 's@./host_jsoplengen@./native-host_jsoplengen@' \
-i Makefile || die
sed -e 's@/nsinstall@/native-nsinstall@' -i config/config.mk || die
rm -f config/host_nsinstall.o \
config/host_pathsub.o \
host_jskwgen.o \
host_jsoplengen.o || die
fi
emake
}
src_test() {
cd "${BUILDDIR}/jsapi-tests" || die
emake check
}
src_install() {
cd "${BUILDDIR}" || die
emake DESTDIR="${D}" install
if ! use minimal; then
dobin shell/js
if use jit; then
pax-mark m "${ED}/usr/bin/js"
fi
fi
dodoc ../../README
dohtml README.html
# install header files needed but not part of build system
insinto /usr/include/js
doins ../public/*.h
insinto /usr/include/js/mozilla
doins "${S}"/mfbt/*.h
if ! use static-libs; then
# We can't actually disable building of static libraries
# They're used by the tests and in a few other places
find "${D}" -iname '*.a' -delete || die
fi
}

@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/mps/mps-1.110.0.ebuild,v 1.1 2012/10/22 05:20:59 patrick Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-libs/mps/mps-1.110.0.ebuild,v 1.2 2012/10/23 17:18:28 mr_bones_ Exp $
EAPI=4
inherit eutils
@ -25,4 +25,3 @@ src_prepare() {
# need to fix CFLAGS, it's still being silly
sed -i -e 's/-Werror//' code/g{c,p}.gmk || die "Failed to fix CFLAGS"
}

@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/rote/rote-0.2.8.ebuild,v 1.3 2012/10/18 19:10:13 xmw Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-libs/rote/rote-0.2.8.ebuild,v 1.4 2012/10/23 17:18:52 mr_bones_ Exp $
EAPI=4
@ -15,4 +15,3 @@ IUSE=""
RDEPEND="sys-libs/ncurses"
DEPEND="${RDEPEND}"

@ -0,0 +1 @@
DIST tvdb_api-1.8.1.tar.gz 32108 SHA256 2a291394eae5953b6bcb7cca57474deaf8147bc0ca31583a976299d5ab07d312 SHA512 4cfb511784267cb430bdaf972676a27850a8d299d86cea49a43745aa25c4c1d2b404c48fa8ee5def3b6e9092e19e6b996d84809e769785cdc6216f9e30cae612 WHIRLPOOL 2a93f15e98d05cc7b8780f1a92670c42bcf2614411ed8cceae58988ab46c96fab8f77396814f0157b589b50f457f42471d77d6a6f5b9d9b0da11526986f6029a

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>thev00d00@gentoo.org</email>
<name>Ian Whyman</name>
</maintainer>
</pkgmetadata>

@ -0,0 +1,17 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/tvdb_api/tvdb_api-1.8.1.ebuild,v 1.1 2012/10/23 19:42:53 thev00d00 Exp $
EAPI=4
inherit distutils vcs-snapshot
SRC_URI="https://github.com/dbr/${PN}/tarball/${PV} -> ${P}.tar.gz"
DESCRIPTION="Python interface to thetvdb.com API"
HOMEPAGE="http://github.com/dbr/tvdb_api"
SLOT="0"
KEYWORDS="~amd64 ~x86"
LICENSE="public-domain"
IUSE=""
DEPEND="dev-python/setuptools"
RDEPEND=""

@ -1,2 +1,3 @@
DIST urwid-0.9.9.1.tar.gz 238005 SHA256 81c95440f84a90872d5bd8f01bc507cd0e5e1ce67a878a62cb435a662e43d5a5 SHA512 04c1f491c6be60bcc0ab7e28022b81509bd9322cbdbba80585f38a10065eb8a86747f822ce9e4652a1f50e01588987fbbb13f24351047dfd50c2cf0f0377c070 WHIRLPOOL e1dbad9d8dc606a7d8ef673b3ae9562e85057ce3e8ce3eecfdc4c5eefbd38845dfe6f621b7ac3b231835d1109090ad980915eff484bb46c87bf342e2de0e7822
DIST urwid-1.0.2.tar.gz 285489 SHA256 2e13bd98dc8162caeb768263b6805f98a468ccb3bc28f6eed54770c80a514b37 SHA512 24061a0075775f7687d984ce4845db17c1acddcd7adad5a72f04ad8ff4cacddeb121397828f38d4fb0cbe0e64415e7c94aa54660e6eef0007edefcf4b5d2f1e8 WHIRLPOOL 4d1312ffeaebd9307f408279e588cfc69140bf52f668381799b6cdc686ac51aa482f5b59b88ac1b39e7e922e916bc169022b37e657dc1d6762cd9badc9dcfe11
DIST urwid-1.1.0.tar.gz 482310 SHA256 6d0807da40f6e943e89c2e1512e1631b6521574ded7957a7f1aabea4a0ad255a SHA512 8c84da8d497634ea484f0ac5e20277ae9a74777e00d46a058dcd44c566df073122800042a37ed3688c9b41be42ffefcf90b611b21b596491ca5aa074f4beafba WHIRLPOOL c7f819f19459e3b82b0bd6ae5d74bb892eb093dc7a3d89f028d0bb768b4c9f3d3f588e4e68fb3c6d9271b1cb318ecbc2310df1dda5abe580993d9280bd700505

@ -0,0 +1,11 @@
--- urwid-1.1.0/docs/conf.py
+++ urwid-1.1.0/docs/conf.py
@@ -46,7 +46,7 @@
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
-FILE_PATH = os.path.dirname(__file__).decode('utf-8')
+FILE_PATH = os.path.dirname(__file__)
VERSION_MODULE = os.path.abspath(os.path.join(FILE_PATH,
'../urwid/version.py'))
VERSION_VARS = {}

@ -0,0 +1,52 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/urwid/urwid-1.1.0.ebuild,v 1.1 2012/10/24 04:59:15 radhermit Exp $
EAPI="4"
PYTHON_USE_WITH="ncurses"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="*-jython"
PYTHON_TESTS_FAILURES_TOLERANT_ABIS="3.1"
DISTUTILS_SRC_TEST="setup.py"
inherit distutils eutils
DESCRIPTION="Urwid is a curses-based user interface library for Python"
HOMEPAGE="http://excess.org/urwid/ http://pypi.python.org/pypi/urwid"
SRC_URI="http://excess.org/urwid/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux"
IUSE="doc examples"
DEPEND="dev-python/setuptools
doc? ( dev-python/sphinx )"
PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
src_prepare() {
distutils_src_prepare
epatch "${FILESDIR}"/${P}-sphinx.patch
}
src_compile() {
distutils_src_compile
if use doc ; then
cd docs
sphinx-build . _build || die
fi
}
src_install() {
distutils_src_install
use doc && dohtml -r docs/_build/*
if use examples ; then
dodoc -r examples
docompress -x /usr/share/doc/${PF}/examples
fi
}

@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-progressbar/ruby-progressbar-1.0.2.ebuild,v 1.3 2012/10/11 07:49:27 blueness Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-progressbar/ruby-progressbar-1.0.2.ebuild,v 1.4 2012/10/23 21:34:05 jer Exp $
EAPI=4
@ -18,7 +18,7 @@ HOMEPAGE="https://github.com/jfelchner/ruby-progressbar"
LICENSE="|| ( Ruby GPL-2 )"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86-fbsd"
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86-fbsd"
IUSE="test"

@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/timecop/timecop-0.5.2.ebuild,v 1.3 2012/10/11 07:48:44 blueness Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/timecop/timecop-0.5.2.ebuild,v 1.4 2012/10/23 21:33:15 jer Exp $
EAPI="4"
@ -19,7 +19,7 @@ HOMEPAGE="http://github.com/jtrupiano/timecop"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86-fbsd"
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86-fbsd"
IUSE=""
all_ruby_prepare() {

@ -1,2 +1 @@
DIST ninja-120508.tar.gz 109976 SHA256 9a3ec8e439386135a8a9b76938fac2550d7400d079c807210410b6313311c106 SHA512 386d5f601ed760109b709fec34b8d54e871f440c23e54dfac2750648182c6fc0f51c9864a2fb4510da66415eb5534a5c5dad2c805df86b75574421e3905bda72 WHIRLPOOL ce116e9cc99101620aec41681de79d4c6cc0de075e6d35c064324778e03b2bc9dc1535e7e8b0dbb23b3945fdf8381f230ca6888c539ab621609bbf4e93537313
DIST ninja-120715.tar.gz 114853 SHA256 d0579a0181d76883b408f6487af52a18e548e3981df2c8d475d2d08e031a4b02 SHA512 905c148cd98433f484b4d8d17dd52f141069c3afc235243784e655bb73950cbd093f5004cb4031b9c4f0f79b62bdfb3090d962cf42c8875aa6aab4d42f05054a WHIRLPOOL e78967434d3b0880b2e50d999044a0dc24e1bcf07c5ebcb22f51a0e96b48f14a329b3595e879883458e5c6208144d9c023207f83d5e0716b8057ec692fc72864
DIST ninja-1.0.0.tar.gz 127934 SHA256 43a25892fe4d2da8eb5075490a900bbb48d6ff63308f1327260f51cb6b84657a SHA512 331807e24d14cc01c985a008841e77885abd515abf784ac9efa233bbbcf4a6461cc7a27058b885e3260ed932052b85c5c90d0d19fb2fb00327ec607a081726ec WHIRLPOOL 561e3e5ebf4df34e004399dfe13d131065b5e74337bc6bc02721be1953ac59109bf4ce5bb7da4cb7e1125ef38aca5144d5aafd5f26b4ce16c7bf0351c36bd391

@ -5,4 +5,7 @@
<email>ottxor@gentoo.org</email>
<name>Christoph Junghans</name>
</maintainer>
<upstream>
<remote-id type="github">martine/ninja</remote-id>
</upstream>
</pkgmetadata>

@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/ninja/ninja-120715.ebuild,v 1.2 2012/08/25 14:17:27 ottxor Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-util/ninja/ninja-1.0.0.ebuild,v 1.1 2012/10/23 15:50:41 ottxor Exp $
EAPI=4
@ -14,7 +14,7 @@ if [ "${PV}" = "999999" ]; then
KEYWORDS=""
else
inherit vcs-snapshot
SRC_URI="https://github.com/martine/ninja/tarball/release-${PV} -> ${P}.tar.gz"
SRC_URI="https://github.com/martine/ninja/tarball/v${PV} -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86 ~ppc-macos"
fi
@ -26,15 +26,20 @@ SLOT="0"
IUSE="doc emacs vim-syntax zsh-completion"
DEPEND="doc? ( app-text/asciidoc app-doc/doxygen )"
RDEPEND="zsh-completion? ( app-shells/zsh )
DEPEND="
dev-util/re2c
doc? ( app-text/asciidoc app-doc/doxygen )
"
RDEPEND="
emacs? ( virtual/emacs )
vim-syntax? (
|| (
app-editors/vim
app-editors/gvim
)
)"
)
zsh-completion? ( app-shells/zsh )
"
pkg_setup() {
python_set_active_version 2
@ -53,7 +58,7 @@ src_compile() {
}
src_install() {
dodoc README HACKING
dodoc README HACKING.md
use doc && dohtml -r doc/doxygen/html/*
dobin ninja

@ -1,88 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/ninja/ninja-120508.ebuild,v 1.1 2012/08/08 03:02:16 ottxor Exp $
EAPI=4
PYTHON_DEPEND="2"
inherit bash-completion-r1 elisp-common python toolchain-funcs
if [ "${PV}" = "999999" ]; then
EGIT_REPO_URI="git://github.com/martine/ninja.git http://github.com/martine/ninja.git"
inherit git-2
KEYWORDS=""
else
inherit vcs-snapshot
SRC_URI="https://github.com/martine/ninja/tarball/release-${PV} -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
DESCRIPTION="A small build system similar to make."
HOMEPAGE="http://github.com/martine/ninja"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="doc emacs vim-syntax zsh-completion"
DEPEND="doc? ( app-text/asciidoc app-doc/doxygen )"
RDEPEND="zsh-completion? ( app-shells/zsh )
emacs? ( virtual/emacs )
vim-syntax? (
|| (
app-editors/vim
app-editors/gvim
)
)"
pkg_setup() {
python_set_active_version 2
}
src_compile() {
tc-export BUILD_CXX
./bootstrap.py || die
if use doc; then
./ninja doxygen || die
fi
if use emacs; then
elisp-compile misc/ninja-mode.el || die
fi
}
src_install() {
dodoc README HACKING
use doc && dohtml -r doc/doxygen/html/*
dobin ninja
newbashcomp misc/bash-completion "${PN}"
if use vim-syntax; then
insinto /usr/share/vim/vimfiles/syntax/
doins misc/"${PN}".vim
echo 'au BufNewFile,BufRead *.ninja set ft=ninja' > "${T}/${PN}.vim"
insinto /usr/share/vim/vimfiles/ftdetect
doins "${T}/${PN}.vim"
fi
if use zsh-completion; then
insinto /usr/share/zsh/site-functions
newins misc/zsh-completion _ninja
fi
if use emacs; then
cd misc || die
elisp-install ${PN} ninja-mode.el* || die
fi
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}

@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.4 2012/10/19 19:55:46 mgorny Exp $
# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.5 2012/10/23 20:58:05 mgorny Exp $
# @ECLASS: distutils-r1
# @MAINTAINER:
@ -34,7 +34,12 @@
# functions, you should consider calling the defaults (and especially
# distutils-r1_python_prepare_all).
#
# Please note that distutils-r1 sets RDEPEND and DEPEND for you.
# Please note that distutils-r1 sets RDEPEND and DEPEND unconditionally
# for you.
#
# Also, please note that distutils-r1 will always inherit python-r1
# as well. Thus, all the variables defined and documented there are
# relevant to the packages using distutils-r1.
case "${EAPI}" in
0|1|2|3)
@ -55,12 +60,32 @@ RDEPEND="${PYTHON_DEPS}
dev-python/python-exec"
DEPEND=${PYTHON_DEPS}
# @ECLASS-VARIABLE: PATCHES
# @DEFAULT_UNSET
# @DESCRIPTION:
# An array containing patches to be applied to the sources before
# copying them.
#
# If unset, no custom patches will be applied.
#
# Please note, however, that at some point the eclass may apply
# additional distutils patches/quirks independently of this variable.
#
# Example:
# @CODE
# PATCHES=( "${FILESDIR}"/${P}-make-gentoo-happy.patch )
# @CODE
# @ECLASS-VARIABLE: DOCS
# @DEFAULT_UNSET
# @DESCRIPTION:
# Array containing documents installed using dodoc.
# An array containing documents installed using dodoc. The files listed
# there must exist in the directory from which
# distutils-r1_python_install_all() is run (${S} by default).
#
# If unset, the default filename list (from PMS) will be used.
# If unset, the function will instead look up files matching default
# filename pattern list (from the Package Manager Specification),
# and install those found.
#
# Example:
# @CODE
@ -70,7 +95,11 @@ DEPEND=${PYTHON_DEPS}
# @ECLASS-VARIABLE: HTML_DOCS
# @DEFAULT_UNSET
# @DESCRIPTION:
# Array containing documents installed using dohtml.
# An array containing documents installed using dohtml. The files
# and directories listed there must exist in the directory from which
# distutils-r1_python_install_all() is run (${S} by default).
#
# If unset, no HTML docs will be installed.
#
# Example:
# @CODE
@ -82,6 +111,9 @@ DEPEND=${PYTHON_DEPS}
# The default python_prepare_all(). It applies the patches from PATCHES
# array, then user patches and finally calls python_copy_sources to
# create copies of resulting sources for each Python implementation.
#
# At some point in the future, it may also apply eclass-specific
# distutils patches and/or quirks.
distutils-r1_python_prepare_all() {
debug-print-function ${FUNCNAME} "${@}"

@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.408 2012/10/11 16:52:05 mgorny Exp $
# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.409 2012/10/23 21:09:39 mgorny Exp $
# @ECLASS: eutils.eclass
# @MAINTAINER:
@ -1462,14 +1462,14 @@ prune_libtool_files() {
# Create a list of all .pc-covered libs.
local pc_libs=()
if [[ ! ${removing_all} ]]; then
local f
local pc
local tf=${T}/prune-lt-files.pc
local pkgconf=$(tc-getPKG_CONFIG)
while IFS= read -r -d '' f; do # for all .pc files
while IFS= read -r -d '' pc; do # for all .pc files
local arg
sed -e '/^Requires:/d' "${f}" > "${tf}"
sed -e '/^Requires:/d' "${pc}" > "${tf}"
for arg in $("${pkgconf}" --libs "${tf}"); do
[[ ${arg} == -l* ]] && pc_libs+=( lib${arg#-l}.la )
done

@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2-utils.eclass,v 1.29 2012/09/27 16:35:41 axs Exp $
# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2-utils.eclass,v 1.30 2012/10/23 20:32:51 eva Exp $
# @ECLASS: gnome2-utils.eclass
# @MAINTAINER:
@ -424,3 +424,41 @@ gnome2_query_immodules_gtk2() {
gnome2_query_immodules_gtk3() {
"${EPREFIX}/usr/bin/gtk-query-immodules-3.0" --update-cache
}
# @FUNCTION: gnome2_disable_deprecation_warning
# @DESCRIPTION:
# Disable deprecation warnings commonly found in glib based packages.
# Should be called from src_prepare.
gnome2_disable_deprecation_warning() {
local retval=0
local fails=( )
local makefile
ebegin "Disabling deprecation warnings"
# The sort is important to ensure .am is listed before the respective .in for
# maintainer mode regeneration not kicking in due to .am being newer than .in
while read makefile ; do
if ! grep -qE "(DISABLE_DEPRECATED|GSEAL_ENABLE)" "${makefile}"; then
continue
fi
LC_ALL=C sed -r -i \
-e 's:-D[A-Z_]+_DISABLE_DEPRECATED:$(NULL):g' \
-e 's:-DGSEAL_ENABLE:$(NULL):g' \
-i "${makefile}"
if [[ $? -ne 0 ]]; then
# Add to the list of failures
fails+=( "${makefile}" )
retval=2
fi
done < <(find "${S}" -name "Makefile.in" \
-o -name "Makefile.am" -o -name "Makefile.decl" \
-o -name "configure.ac" -o -name "configure.in" \
| sort; echo configure)
eend ${retval}
for makefile in "${fails[@]}" ; do
ewarn "Failed to disable deprecation warnings in ${makefile}"
done
}

@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.107 2012/09/27 16:35:41 axs Exp $
# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.108 2012/10/23 20:32:51 eva Exp $
# @ECLASS: gnome2.eclass
# @MAINTAINER:
@ -94,6 +94,9 @@ gnome2_src_prepare() {
# Prevent scrollkeeper access violations
gnome2_omf_fix
# Disable all deprecation warnings
gnome2_disable_deprecation_warning
# Run libtoolize
if has ${EAPI:-0} 0 1 2 3; then
elibtoolize ${ELTCONF}

@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/python-r1.eclass,v 1.2 2012/10/15 15:01:18 mgorny Exp $
# $Header: /var/cvsroot/gentoo-x86/eclass/python-r1.eclass,v 1.3 2012/10/23 20:58:05 mgorny Exp $
# @ECLASS: python-r1
# @MAINTAINER:
@ -19,6 +19,10 @@
# and PYTHON_USEDEP so you can create correct dependencies for your
# package easily. It also provides methods to easily run a command for
# each enabled Python implementation and duplicate the sources for them.
#
# Please note that this eclass is mostly intended to be extended
# on-request. If you find something you used in other eclasses missing,
# please don't hack it around and request an enhancement instead.
case "${EAPI}" in
0|1|2|3)
@ -46,8 +50,17 @@ _PYTHON_ALL_IMPLS=(
# @ECLASS-VARIABLE: PYTHON_COMPAT
# @DESCRIPTION:
# This variable contains a list of Python implementations the package
# supports. It must be set before the `inherit' call. The default is to
# enable all implementations. It has to be an array.
# supports. It must be set before the `inherit' call. It has to be
# an array.
#
# The default is to enable all supported implementations. However, it is
# discouraged to use that default unless in very special cases and test
# the package with each added implementation instead.
#
# Example:
# @CODE
# PYTHON_COMPAT=( python2_5 python2_6 python2_7 )
# @CODE
if ! declare -p PYTHON_COMPAT &>/dev/null; then
PYTHON_COMPAT=( "${_PYTHON_ALL_IMPLS[@]}" )
fi
@ -65,7 +78,7 @@ fi
# PYTHON_REQ_USE="gdbm,ncurses(-)?"
# @CODE
#
# Will cause the Python dependencies to look like:
# It will cause the Python dependencies to look like:
# @CODE
# python_targets_pythonX_Y? (
# dev-lang/python:X_Y[gdbm,ncurses(-)?] )
@ -74,24 +87,40 @@ fi
# @ECLASS-VARIABLE: PYTHON_DEPS
# @DESCRIPTION:
# This is an eclass-generated Python dependency string for all
# implementations listed in PYTHON_COMPAT. It should be used
# in RDEPEND and/or DEPEND like:
# implementations listed in PYTHON_COMPAT.
#
# Example use:
# @CODE
# RDEPEND="${PYTHON_DEPS}
# dev-foo/mydep"
# DEPEND="${RDEPEND}"
# @CODE
#
# Example value:
# @CODE
# python_targets2_6? ( dev-lang/python:2.6[gdbm] )
# python_targets2_7? ( dev-lang/python:2.7[gdbm] )
# @CODE
# @ECLASS-VARIABLE: PYTHON_USEDEP
# @DESCRIPTION:
# This is an eclass-generated USE-dependency string which can be used to
# depend on another Python package being built for the same Python
# implementations. It should be used like:
# implementations.
#
# The generate USE-flag list is compatible with packages using python-r1
# and python-distutils-ng eclasses. It must not be used on packages
# using python.eclass.
#
# Example use:
# @CODE
# RDEPEND="dev-python/foo[${PYTHON_USEDEP}]"
# @CODE
#
# Example value:
# @CODE
# python_targets_python2_6?,python_targets_python2_7?
# @CODE
_python_set_globals() {
local flags=( "${PYTHON_COMPAT[@]/#/python_targets_}" )
@ -153,10 +182,52 @@ _python_set_PYTHON() {
debug-print "${FUNCNAME}: ${impl} -> ${PYTHON}"
}
# @ECLASS-VARIABLE: BUILD_DIR
# @DESCRIPTION:
# The current build directory. In global scope, it is supposed to
# contain an initial build directory; if unset, it defaults to ${S}.
#
# In functions run by python_foreach_impl(), the BUILD_DIR is locally
# set to an implementation-specific build directory. That path is
# created through appending a hyphen and the implementation name
# to the final component of the initial BUILD_DIR.
#
# Example value:
# @CODE
# ${WORKDIR}/foo-1.3-python2_6
# @CODE
# @ECLASS-VARIABLE: PYTHON
# @DESCRIPTION:
# The absolute path to the current Python interpreter.
#
# Set and exported only in commands run by python_foreach_impl().
#
# Example value:
# @CODE
# /usr/bin/python2.6
# @CODE
# @ECLASS-VARIABLE: EPYTHON
# @DESCRIPTION:
# The executable name of the current Python interpreter.
#
# This variable is used consistently with python.eclass.
#
# Set and exported only in commands run by python_foreach_impl().
#
# Example value:
# @CODE
# python2.6
# @CODE
# @FUNCTION: python_copy_sources
# @DESCRIPTION:
# Create a single copy of the package sources (${S}) for each enabled
# Python implementation.
#
# The sources are always copied from S to implementation-specific build
# directories respecting BUILD_DIR.
python_copy_sources() {
debug-print-function ${FUNCNAME} "${@}"
@ -186,10 +257,8 @@ python_copy_sources() {
# to the command. If the command fails, python_foreach_impl dies.
# If necessary, use ':' to force a successful return.
#
# Before the command is run, EPYTHON is set to the name of the current
# Python implementation, PYTHON is set to the correct Python executable
# name and exported, and BUILD_DIR is set to a 'default' build directory
# for given implementation (e.g. ${BUILD_DIR:-${S}}-python2_7).
# For each command being run, EPYTHON, PYTHON and BUILD_DIR are set
# locally, and the former two are exported to the command environment.
#
# The command is run inside the build directory. If it doesn't exist
# yet, it is created (as an empty directory!). If your build system does
@ -208,7 +277,7 @@ python_foreach_impl() {
local EPYTHON PYTHON
_python_set_PYTHON "${impl}"
local BUILD_DIR=${bdir%%/}-${impl}
export PYTHON
export EPYTHON PYTHON
debug-print "${FUNCNAME}: [${impl}] build_dir = ${BUILD_DIR}"

@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.119 2012/10/17 19:14:58 vapier Exp $
# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.120 2012/10/24 03:24:45 vapier Exp $
#
# Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
#
@ -357,7 +357,17 @@ toolchain-binutils_src_install() {
fi
fi
insinto ${INCPATH}
doins "${S}/include/libiberty.h"
local libiberty_headers=(
# Not all the libiberty headers. See libiberty/Makefile.in:install_to_libdir.
demangle.h
dyn-string.h
fibheap.h
hashtab.h
libiberty.h
objalloc.h
splay-tree.h
)
doins "${libiberty_headers[@]/#/${S}/include/}" || die
if [[ -d ${D}/${LIBPATH}/lib ]] ; then
mv "${D}"/${LIBPATH}/lib/* "${D}"/${LIBPATH}/
rm -r "${D}"/${LIBPATH}/lib

@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/atanks/atanks-5.6.ebuild,v 1.1 2012/10/22 05:31:13 mr_bones_ Exp $
# $Header: /var/cvsroot/gentoo-x86/games-action/atanks/atanks-5.6.ebuild,v 1.2 2012/10/23 17:36:40 mr_bones_ Exp $
EAPI=2
inherit eutils gnome2-utils games
@ -51,4 +51,3 @@ pkg_postinst() {
pkg_postrm() {
gnome2_icon_cache_update
}

@ -1 +1,2 @@
DIST kanyremote-6.0.1.tar.gz 283663 SHA256 bc1688471cfd34125f4db357d51bc6b55bac43d18f12ba83db632e27c1f66321 SHA512 94d45ceaf7098f9b8a0e2bc959ba40d224067d341a78749d3b28d4583bf934246fe7f13c4627e2393dbdfc20c51dfedfb1f5f465e3ee38e05218397cf07375f3 WHIRLPOOL 9145820c024253debf7db0e197766c628c176a9a8dda0c3ce3b92541a141e790eec699cb9530a75212b2736745e1ba2090f724990e698cd734f6f9c50d4a6dc1
DIST kanyremote-6.1.tar.gz 285638 SHA256 e35dc0a8d2b83d8011e850195c491b1e32bae5d8519784e62fd4320f052c9fe9 SHA512 e71b5dc33ee74c88b9cbf6663bda9162850e21f85a600d523a60cce99dd0b531cca5fee928eb654eac6f3adc3702b5b6a85f2a04b53cb969bfa8f980622a9240 WHIRLPOOL 42d7a83a4d62fbc89407c3b80a00bb9e2fe0b30afc08347b6e232a8fbc30f2c60b29dcd0caf26c98ba8c1101d0f50a7878229b0ef9e5c791e07f993bfaf07582

@ -0,0 +1,44 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-misc/kanyremote/kanyremote-6.1.ebuild,v 1.1 2012/10/23 20:39:33 hwoarang Exp $
EAPI=4
PYTHON_DEPEND="2"
inherit autotools python base
DESCRIPTION="KDE frontend to Anyremote"
HOMEPAGE="http://anyremote.sourceforge.net/"
SRC_URI="mirror://sourceforge/anyremote/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="4"
KEYWORDS="~amd64 ~x86"
IUSE="bluetooth"
RDEPEND="
>=app-mobilephone/anyremote-6.0[bluetooth?]
dev-python/PyQt4[X]
kde-base/pykde4
bluetooth? ( dev-python/pybluez )
"
DEPEND="${RDEPEND}
sys-devel/gettext"
pkg_setup() {
python_set_active_version 2
}
src_prepare() {
# using gettextize no-interactive example from dev-util/bless package
cp $(type -p gettextize) "${T}"/
sed -i -e 's:read dummy < /dev/tty::' "${T}/gettextize"
sed -e "/Encoding=UTF-8/d" \
-i kanyremote.desktop || die "fixing .desktop file failed"
"${T}"/gettextize -f --no-changelog > /dev/null
#fix documentation directory wrt bug #316087
sed -i "s/doc\/${PN}/doc\/${PF}/g" Makefile.am
eautoreconf
# workaround to bluetooth check when bluetooth use flag is disabled
! use bluetooth && epatch "${FILESDIR}/disable_bluetooth.patch"
}

@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-10.0.9.ebuild,v 1.1 2012/10/20 14:59:24 jdhore Exp $
# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-10.0.9.ebuild,v 1.2 2012/10/23 15:57:38 ago Exp $
EAPI="4"
MOZ_ESR="1"
@ -35,7 +35,7 @@ SRC_URI="${SRC_URI}
HOMEPAGE="http://www.mozilla.com/thunderbird"
RESTRICT="strip mirror binchecks"
KEYWORDS="-* ~amd64 ~x86"
KEYWORDS="-* amd64 ~x86"
SLOT="0"
LICENSE="MPL-1.1 GPL-2 LGPL-2.1"
IUSE="+crashreporter"

@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/thunderbird-10.0.9.ebuild,v 1.1 2012/10/21 16:55:21 anarchy Exp $
# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/thunderbird-10.0.9.ebuild,v 1.2 2012/10/23 15:57:21 ago Exp $
EAPI="3"
WANT_AUTOCONF="2.1"
@ -30,7 +30,7 @@ inherit flag-o-matic toolchain-funcs mozconfig-3 makeedit multilib autotools pax
DESCRIPTION="Thunderbird Mail Client"
HOMEPAGE="http://www.mozilla.com/en-US/thunderbird/"
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
KEYWORDS="amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
SLOT="0"
LICENSE="MPL-1.1 GPL-2 LGPL-2.1"
IUSE="bindist gconf +crypt +ipc +lightning +minimal mozdom +webm selinux"

@ -1 +1,2 @@
DIST optipng-0.7.3.tar.gz 1613868 RMD160 2329a8cc310e191adaf9c944ca92b9890e93b505 SHA1 c5dd2c688820f34fb6973d109ca880a77141cd31 SHA256 e07079fbf4cd7f11e756ca042f5285dd7a1f1784bb398fe6bbb63e5324368491
DIST optipng-0.7.4.tar.gz 1613916 RMD160 9541cb721fd9d914679df1ca5af1be465204dc78 SHA1 dcde17501cfb7a425b6cc23cfed482bbfd4867bb SHA256 520b5d5a9405dbdc5c905dd0cff87211e69c4ed2059744037510e613fe8237ff

@ -0,0 +1,56 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/optipng-0.7.4.ebuild,v 1.1 2012/10/23 21:10:47 sping Exp $
EAPI=4
inherit eutils toolchain-funcs
DESCRIPTION="Compress PNG files without affecting image quality"
HOMEPAGE="http://optipng.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="ZLIB"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
IUSE=""
RDEPEND="sys-libs/zlib
media-libs/libpng:0"
DEPEND="${RDEPEND}
sys-apps/findutils"
src_prepare() {
rm -R src/{libpng,zlib} || die
find . -type d -name build -exec rm -R {} + || die
# next release is almost a complete rewrite, so plug this compilation
# problem in anticipation of the much (c)leaner(?) rewrite
sed -i \
-e 's/^#ifdef AT_FDCWD/#if defined(AT_FDCWD) \&\& !(defined (__SVR4) \&\& defined (__sun))/' \
src/optipng/osys.c || die
tc-export CC AR RANLIB
}
src_configure() {
./configure \
-with-system-libpng \
-with-system-zlib \
|| die "configure failed"
}
src_compile() {
emake \
-C src/optipng \
GENTOO_CFLAGS="${CFLAGS}" \
GENTOO_LDFLAGS="${LDFLAGS}"
}
src_install() {
dodoc README.txt doc/*.txt
dohtml doc/*.html
doman src/${PN}/man/${PN}.1
dobin src/${PN}/${PN}
}

@ -1 +1 @@
DIST sxiv-1.0.tar.gz 33568 RMD160 d2bef62119b691cbb5ec8e81de5d53e09e573e64 SHA1 e29e33c38fd2a6c8a2cb3b270776859328aa8e0e SHA256 fa49189d7bc139bd3dc50aa4e939fe4480c524117ed89dba7a3f54da5013885f
DIST sxiv-1.0.tar.gz 33568 SHA256 fa49189d7bc139bd3dc50aa4e939fe4480c524117ed89dba7a3f54da5013885f SHA512 c826f7612aacae277c819976f2888b7248788b5262b267797fb2c18bcc6d8216324bb3ecad7f9badc5afcfaf4ee44e2d0dc3e8bf8932758aaebcdd824243c0a3 WHIRLPOOL dc08076afa91fd38bb621f60df2fbf13e465b51be03bfde2398999b77f2b1acafcf22ae431377676b622bbc6406dc2eddc6634769f46715fa767c26ea23c59e8

@ -0,0 +1,40 @@
--- sxiv-1.0/Makefile
+++ sxiv-1.0/Makefile
@@ -1,8 +1,8 @@
VERSION = 1.0
-CC = gcc
-CFLAGS = -ansi -Wall -pedantic -O2
-LDFLAGS =
+CC ?= gcc
+CFLAGS += -ansi -Wall -pedantic
+LDFLAGS +=
LIBS = -lX11 -lImlib2
PREFIX = /usr/local
@@ -21,21 +21,18 @@
@echo "PREFIX = $(PREFIX)"
.c.o:
- @echo "CC $<"
- @$(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" -c -o $@ $<
+ $(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" -c -o $@ $<
$(OBJ) config: Makefile config.h
config: config.c
- @$(CC) $(CFLAGS) -o $@ $@.c
+ $(CC) $(CFLAGS) -o $@ $@.c
config.h:
- @echo "creating $@ from config.def.h"
- @cp config.def.h $@
+ cp config.def.h $@
sxiv: $(OBJ) config
- @echo "CC -o $@"
- @$(CC) $(LDFLAGS) -o $@ $(OBJ) $(LIBS) $$(./config -l)
+ $(CC) $(LDFLAGS) -o $@ $(OBJ) $(LIBS) $$(./config -l)
clean:
@echo "cleaning"

@ -0,0 +1,34 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/sxiv/sxiv-1.0-r1.ebuild,v 1.1 2012/10/24 03:30:29 radhermit Exp $
EAPI=4
inherit eutils savedconfig toolchain-funcs
DESCRIPTION="Simple (or small or suckless) X Image Viewer"
HOMEPAGE="https://github.com/muennich/sxiv/"
SRC_URI="mirror://github/muennich/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="media-libs/imlib2[X]
x11-libs/libX11"
DEPEND="${RDEPEND}"
src_prepare() {
epatch "${FILESDIR}"/${P}-makefile.patch
tc-export CC
restore_config config.h
}
src_install() {
emake DESTDIR="${ED}" PREFIX=/usr install
dodoc README.md
save_config config.h
}

@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/gstreamer/gstreamer-0.10.36.ebuild,v 1.1 2012/10/21 07:49:51 tetromino Exp $
# $Header: /var/cvsroot/gentoo-x86/media-libs/gstreamer/gstreamer-0.10.36.ebuild,v 1.2 2012/10/24 04:42:50 tetromino Exp $
EAPI=4
@ -16,7 +16,7 @@ SRC_URI="http://${PN}.freedesktop.org/src/${PN}/${P}.tar.xz"
LICENSE="LGPL-2+"
SLOT=${PV_MAJ_MIN}
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
IUSE="+introspection nls test"
IUSE="+introspection nls +orc test"
RDEPEND=">=dev-libs/glib-2.24:2
dev-libs/libxml2
@ -80,6 +80,7 @@ src_install() {
# Punt useless .la files
prune_libtool_files --modules
# Needed for certain gst plugins on hardened/PaX systems, bug #421579
pax-mark -m "${ED}usr/libexec/gstreamer-0.10/gst-plugin-scanner"
# Needed for orc-using gst plugins on hardened/PaX systems, bug #421579
use orc && pax-mark -m "${ED}usr/bin/gst-launch-0.10" \
"${ED}usr/libexec/gstreamer-0.10/gst-plugin-scanner"
}

@ -5,5 +5,8 @@
<use>
<flag name="introspection">Use <pkg>dev-libs/gobject-introspection</pkg>
for introspection</flag>
<flag name="orc">Disable some PaX memory protections to allow plugins
that use <pkg>dev-lang/orc</pkg> for runtime optimization to be
used on hardened PaX systems</flag>
</use>
</pkgmetadata>

@ -1,8 +1,10 @@
# Copyright 1999-2011 Gentoo Foundation
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/gst-plugins-v4l2/gst-plugins-v4l2-0.10.30.ebuild,v 1.8 2011/10/15 18:35:18 xarthisius Exp $
# $Header: /var/cvsroot/gentoo-x86/media-plugins/gst-plugins-v4l2/gst-plugins-v4l2-0.10.30.ebuild,v 1.9 2012/10/23 17:11:47 tetromino Exp $
inherit gst-plugins-good
EAPI=3
inherit eutils gst-plugins-good
DESCRIPION="plugin to allow capture from video4linux2 devices"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86"
@ -15,6 +17,10 @@ DEPEND="${RDEPEND}
GST_PLUGINS_BUILD="gst_v4l2"
src_prepare() {
epatch "${FILESDIR}/${PN}-0.10.31-linux-headers-3.6.patch"
}
src_configure() {
gst-plugins-good_src_configure --with-libv4l2
}

@ -1,2 +1,3 @@
DIST musique-1.0.tar.gz 766324 SHA256 a3bbc377f4d73080a5fe0d4a348e03c56d6e5fb559a8e541af7407098cb94de3
DIST musique-1.1.tar.gz 358081 SHA256 26bd8a65aa649a83fe772dc1f5c31c4f31bf32568c66f1b2c6ae1b5ff50b67c6 SHA512 f8958eafb4840e366b97d4dfd03ca49f766c41c193f8575ec7950f6b30dcb792ca5c22b48ca3366b930a54914f3f465d15e7127a8b4db4c1d1bf5a7e7c6264ac WHIRLPOOL 521118aa07deee618ab0f8b50c0c2adcb793059730b0650d554ebdcf7cd2e986003299b4aafa2b639d20b6df99c8e789becd1c437e48eb0462c992aa46fbde23
DIST musique-1.2.tar.gz 370654 SHA256 fb66b65e35b1c1a604df2556e86c9836ccb54552ba3ef8cb1950b7b1ce1fe130 SHA512 5bec10d10e8b9027f7b91f1ae13f9654312c503e81157510c744383031bbeb4200c284c7a5a69301ddfbee4b20727f6bd1e25567f24a6e62c10edecbc7efab04 WHIRLPOOL 4e5b7352b8a1b9347a374fe0c34e23f237f6ab1ad93e42ad886e63a62b22f7983ac6af2755c498e7bf38e48ecd3ae9144ed7eec4a2346d00c4f69744bcd17924

@ -0,0 +1,44 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/musique/musique-1.2.ebuild,v 1.1 2012/10/23 19:27:28 hwoarang Exp $
EAPI="4"
inherit eutils qt4-r2
DESCRIPTION="Qt4 music player."
HOMEPAGE="http://flavio.tordini.org/musique"
# Same tarball for every release. We repackage it
SRC_URI="http://dev.gentoo.org/~hwoarang/distfiles/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="
x11-libs/qt-gui:4[dbus]
x11-libs/qt-sql:4[sqlite]
|| ( x11-libs/qt-phonon:4 media-libs/phonon )
media-libs/taglib
"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${PN}"
DOCS="CHANGES TODO"
src_prepare () {
# bug 422665
epatch "${FILESDIR}"/${PN}-1.1-gcc47.patch
qt4-r2_src_prepare
}
src_configure() {
eqmake4 ${PN}.pro PREFIX="/usr"
}
src_install() {
qt4-r2_src_install
doicon data/${PN}.svg
}

@ -0,0 +1 @@
DIST tvnamer-2.2.1.tar.gz 40352 SHA256 601f9cc54bb40ffd05df0c1768879a98ba88bb56e9be62fb7d4008a3d0d11d25 SHA512 425750a5ee4e6fa11c9ce732a36616b041e593db08740296e9c4f5274ee09522c92965811916d00b10461645eed67e846515a9b1ac94a6c97dc20d5424f4d8e9 WHIRLPOOL 5ec0cb75545623d1c91fb6a1148eec11815398f105b111351dd8689d29d4aa4b3fb456340c6529502ab273b6d1e76213a89accdd0b37e35b892a65d6a468100e

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>thev00d00@gentoo.org</email>
<name>Ian Whyman</name>
</maintainer>
</pkgmetadata>

@ -0,0 +1,19 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-tv/tvnamer/tvnamer-2.2.1.ebuild,v 1.1 2012/10/23 19:57:58 thev00d00 Exp $
EAPI=4
inherit distutils
SRC_URI="mirror://pypi/t/${PN}/${P}.tar.gz"
DESCRIPTION="Automatic TV episode file renamer, data from thetvdb.com"
HOMEPAGE="http://github.com/dbr/tvnamer"
SLOT="0"
KEYWORDS="~amd64 ~x86"
LICENSE="public-domain"
IUSE=""
RDEPEND="dev-python/tvdb_api"
DEPEND="${DEPEND}
dev-python/setuptools
"

@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/bino/bino-1.3.0.ebuild,v 1.1 2012/10/20 13:36:13 robbat2 Exp $
# $Header: /var/cvsroot/gentoo-x86/media-video/bino/bino-1.3.0.ebuild,v 1.2 2012/10/23 17:19:16 mr_bones_ Exp $
EAPI=3
inherit eutils
@ -33,7 +33,6 @@ src_configure() {
default
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"

@ -0,0 +1 @@
DIST ffdiaporama_1.4.tar.gz 14541141 SHA256 e9c61e32703e2d0b5f9e2a299782c5e437b6d8db2faa530271612195df8166ed SHA512 3d94754a72c03f27c392f989f99176d143861202731090ce716e341afb5e7d54bde66d5ae33e0f1a2b4974d8f60b09eb92c9512ff5b740e1f5be26c6c29f946f WHIRLPOOL eeb15e4ac624db9c843959dfc0cdd30615777d8f4526fd30376b6e2b51a58410a245d7fda70adec71349470f188b5db7c82c518f286e6a708a44e3656119e064

@ -0,0 +1,56 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/ffdiaporama/ffdiaporama-1.4.ebuild,v 1.1 2012/10/23 20:00:04 hasufell Exp $
EAPI=5
inherit eutils fdo-mime gnome2-utils qt4-r2
DESCRIPTION="Movie creator from photos and video clips"
HOMEPAGE="http://ffdiaporama.tuxfamily.org"
SRC_URI="http://download.tuxfamily.org/${PN}/Archives/${PN}_${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="media-gfx/exiv2
media-libs/libsdl[audio]
media-libs/taglib
virtual/ffmpeg[encode]
>=x11-libs/qt-core-4.8:4
>=x11-libs/qt-gui-4.8:4"
DEPEND="${RDEPEND}"
DOCS=( authors.txt )
PATCHES=( "${FILESDIR}"/${P}-desktopfile.patch )
src_unpack() {
# S=${WORKDIR} would result in unremoved files in
# ${WORKDIR}/../build
mkdir ${P} || die
cd ${P} || die
unpack ${A}
}
src_install() {
qt4-r2_src_install
doicon -s 32 application-ffDiaporama.png
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
gnome2_icon_cache_update
}
pkg_postrm() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
gnome2_icon_cache_update
}

@ -0,0 +1,27 @@
From: Julian Ospald <hasufell@gentoo.org>
Date: Tue Oct 23 15:26:08 UTC 2012
Subject: fix desktop file
--- ffDiaporama.desktop
+++ ffDiaporama.desktop
@@ -1,6 +1,5 @@
[Desktop Entry]
Version=1.0
-Encoding=UTF-8
Name=Movie creator ffDiaporama
Name[fr]=Créateur de film ffDiaporama
Name[it]=Movie creator ffDiaporama
@@ -16,10 +15,9 @@
Comment[it]=Creatore di pellicole cinematografiche da foto e filmati video
Comment[es]=Creador de películas a partir de fotos y clips de vídeo
Comment[el]=Δημιουργός ταινιών από φωτογραφίες και βίντεο κλιπ
-Icon=/usr/share/ffDiaporama/application-ffDiaporama.png
+Icon=application-ffDiaporama
Terminal=false
Type=Application
-Path=/usr/share/ffDiaporama
-Exec=/usr/bin/ffDiaporama %F
+Exec=ffDiaporama %F
MimeType=application/ffDiaporama;
-Categories=GNOME;AudioVideo;Qt;KDE;AudioVideo;
+Categories=GTK;GNOME;Qt;KDE;AudioVideo;

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>hasufell@gentoo.org</email>
<name>Julian Ospald</name>
</maintainer>
<upstream>
<changelog>http://ffdiaporama.tuxfamily.org/?page_id=7266&amp;lang=en</changelog>
<doc lang="en">http://ffdiaporama.tuxfamily.org/?page_id=6268</doc>
<bugs-to>http://ffdiaporama.tuxfamily.org/Forum/viewforum.php?id=4</bugs-to>
</upstream>
<longdescription lang="en">
ffDiaporama is an application for creating video sequences consisting of
- titles, fixed or animated.
- images or photos, fixed or animated.
- movie clips
- music
These sequences are assembled into a slide show by means of transitions to produce complete videos
The following options are available:
- Reframing of images and photos
- Cutting of video clips
- Adding text, notes to images, photos, sequences and animations
- Graphical filters on the images and the videos (conversion into black and white, dust removal, equalization of colors, etc.)
- Creation of animation by zoom, rotation or Ken Burns Effect on images or photos
- Correction of the images and the videos during animations (luminosity, contrast, gamma, colors, etc.)
- Transitions between sequences with definition of the transition type, sequence by sequence.
- Addition of a background sound (wav, mp3 or ogg) with customizable effects for volume, fade in/out and passage in pause, sequence by sequence.
- Generation of videos usable on most current video equipment (DVD player/smartphone, multimedia box, hard drive, etc.) but also publishable on the main video-sharing Websites (YouTube, Dailymotion, etc.)
- Video formats from QVGA (320×240) to Full HD (1920×1080) by way of the DVD and HD 720 formats.
- Image geometry (aspect ratio) : 4:3, 16:9 or 2.35:1 (cinema)
- Possible formats for rendering : avi, mpg, mp4, mkv
</longdescription>
</pkgmetadata>

@ -1,2 +1 @@
DIST kmplayer-0.11.3c.tar.bz2 575399 SHA256 e6492a49f4cb765e268cc0b8aa59007b60dc6e397d4d28f2093b8ae497968382 SHA512 b10e9e569d171b40bfdc38b478840e84fd760c6c0a36c0b5b79d1d2770b660a890ad4a95151732dfc9ef15b46e6a599865a973115cff5f2650386a3ab7deb1c0 WHIRLPOOL 712c27513b0587c5adc98599f5b14202596ca4cea559bbf109ababe93fd678d0264e991c33b7f9735a28c250a929c6eb8921659d6a562617b0823aa3a2995310
DIST kmplayer-0.11.3d.tar.bz2 573173 SHA256 7ebecbc906edcc13e1ae94f4791da80ed4ef73164ef6b81d76c71708c39a6bfb SHA512 c2f0fa1864eecd9a0bf3039639aad41bc36bc6ff8742a8e9714c6df72dd4ee63f80c36036a0582ee8464b48ce22eb96814600ddb199c61fda0b87cfd4c457797 WHIRLPOOL 1a651d1dee10b0ee3609055d645835b4b19e5acf47df39a7773d297749407ea49c893e154f77013469ee4c23724c55ae8c2032b5ca00ddf8f560eb5feb8d1f12

@ -1,57 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/kmplayer/kmplayer-0.11.3c.ebuild,v 1.5 2012/05/21 09:16:19 phajdan.jr Exp $
EAPI=4
KDE_LINGUAS="bg bs ca ca@valencia cs da de el en_GB eo es et fr ga gl hr hu it
ja km ku lt lv mai nb nds nl nn pl pt pt_BR ro ru sk sr sr@latin sv th tr ug uk
zh_CN zh_TW"
KDE_HANDBOOK="optional"
inherit kde4-base
DESCRIPTION="KMPlayer is a Video player plugin for Konqueror and basic MPlayer/Xine/ffmpeg/ffserver/VDR frontend."
HOMEPAGE="http://kmplayer.kde.org/"
SRC_URI="http://kmplayer.kde.org/pkgs/${P}.tar.bz2"
LICENSE="GPL-2 FDL-1.2 LGPL-2.1"
SLOT="4"
KEYWORDS="amd64 x86"
IUSE="cairo debug expat handbook npp"
DEPEND="media-libs/phonon
expat? ( >=dev-libs/expat-2.0.1 )
cairo? (
x11-libs/cairo
x11-libs/pango
)
npp? (
dev-libs/dbus-glib
>=x11-libs/gtk+-2.10.14:2
)"
RDEPEND="${DEPEND}
media-video/mplayer"
DOCS=( AUTHORS ChangeLog README TODO )
src_prepare() {
sed -i \
-e '/add_subdirectory(icons)/d' \
CMakeLists.txt || die
# upstream comments doc and po folders...
sed -i \
-e 's:^#::g' \
CMakeLists.txt || die
kde4-base_src_prepare
}
src_configure() {
local mycmakeargs=(
$(cmake-utils_use cairo KMPLAYER_BUILT_WITH_CAIRO)
$(cmake-utils_use expat KMPLAYER_BUILT_WITH_EXPAT)
$(cmake-utils_use npp KMPLAYER_BUILT_WITH_NPP)
)
kde4-base_src_configure
}

@ -1,3 +1,4 @@
DIST fate-0.8.2.tar.xz 443503168 SHA256 4c16212e4d99194e670227ccf93d54c9bb4b6f27c515626a536b87deb610d850 SHA512 eca7783af7afc567ed226942b1318b1874b2487c7dc65406fe2097cf2318d722bb4c45ed14363bc3653f948f7cdac5967162e1f4fbd5cbec1adc244886800bb1 WHIRLPOOL abe5faa67444c3edaf5ae9a57a701ba0fccd3e313941d0f7662b8dc2b3a8886578d7bcbd6ed4abfc62abe3b7a36ea216529710e28d1c9cff8f3bb2b9804707bf
DIST libav-0.8.2.tar.xz 3807340 SHA256 96df20327396937add9df2693bba8ec109ef3eda7251065ddcaa86a8d9f3a7df
DIST libav-0.8.3.tar.xz 3798260 SHA256 37a9fc8bb5e56dcb0487afbb013f745a14addff61cea08a6009e2fd01251f080 SHA512 92c6106af54be32d73576f8a22a1d48dea0ff0ba0f5ccc9895cbe29de372c89d9d41ea43d52b3a0453af6214def02f96ef30bb483cd8a94b9ea400e7dd863e9a WHIRLPOOL 384935d937e85163224b69c5b4f98155650a3a79993783c098b88ca20d56bf1927280031bdcd4a7babc272f26c6f38056de80b303316b206541dfdeb34e9a34e
DIST libav-0.8.4.tar.xz 3797112 SHA256 a4a53410ed864848063628277eb94f1921a7edfef7cf2e8bc9ab69f4f659c754 SHA512 67f0a78c2cfa88c98a5d9b3a528a6190eb3b2e0c1885010fced6d46bcf1337bddc7473e2b078ebe656c32897603fd908cbb938e663cb1f2a4fa8d7b1db129bb8 WHIRLPOOL e4252c391454f8e70fed7aa5ba10a4ff8d92297d2966c9921f6360760e9749ded4f5f7fe71a9acbec47b557d1290314ca4aba7b62a75ac33a816132ba8043724

@ -0,0 +1,71 @@
From 366b72f149a7b6a024ff5edd09ed5ae160755753 Mon Sep 17 00:00:00 2001
From: Mans Rullgard <mans@mansr.com>
Date: Thu, 11 Oct 2012 16:08:22 +0100
Subject: [PATCH] svq3: replace unsafe pointer casting with intreadwrite
macros
Signed-off-by: Mans Rullgard <mans@mansr.com>
---
libavcodec/svq3.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index c4d5a1b..6099e77 100644
--- a/libavcodec/svq3.c
+++ b/libavcodec/svq3.c
@@ -409,17 +409,17 @@ static inline int svq3_mc_dir(H264Context *h, int size, int mode, int dir,
int32_t mv = pack16to32(mx,my);
if (part_height == 8 && i < 8) {
- *(int32_t *) h->mv_cache[dir][scan8[k] + 1*8] = mv;
+ AV_WN32A(h->mv_cache[dir][scan8[k] + 1*8], mv);
if (part_width == 8 && j < 8) {
- *(int32_t *) h->mv_cache[dir][scan8[k] + 1 + 1*8] = mv;
+ AV_WN32A(h->mv_cache[dir][scan8[k] + 1 + 1*8], mv);
}
}
if (part_width == 8 && j < 8) {
- *(int32_t *) h->mv_cache[dir][scan8[k] + 1] = mv;
+ AV_WN32A(h->mv_cache[dir][scan8[k] + 1], mv);
}
if (part_width == 4 || part_height == 4) {
- *(int32_t *) h->mv_cache[dir][scan8[k]] = mv;
+ AV_WN32A(h->mv_cache[dir][scan8[k]], mv);
}
}
@@ -487,11 +487,11 @@ static int svq3_decode_mb(SVQ3Context *svq3, unsigned int mb_type)
for (m = 0; m < 2; m++) {
if (s->mb_x > 0 && h->intra4x4_pred_mode[h->mb2br_xy[mb_xy - 1]+6] != -1) {
for (i = 0; i < 4; i++) {
- *(uint32_t *) h->mv_cache[m][scan8[0] - 1 + i*8] = *(uint32_t *) s->current_picture.f.motion_val[m][b_xy - 1 + i*h->b_stride];
+ AV_COPY32(h->mv_cache[m][scan8[0] - 1 + i*8], s->current_picture.f.motion_val[m][b_xy - 1 + i*h->b_stride]);
}
} else {
for (i = 0; i < 4; i++) {
- *(uint32_t *) h->mv_cache[m][scan8[0] - 1 + i*8] = 0;
+ AV_ZERO32(h->mv_cache[m][scan8[0] - 1 + i*8]);
}
}
if (s->mb_y > 0) {
@@ -499,14 +499,14 @@ static int svq3_decode_mb(SVQ3Context *svq3, unsigned int mb_type)
memset(&h->ref_cache[m][scan8[0] - 1*8], (h->intra4x4_pred_mode[h->mb2br_xy[mb_xy - s->mb_stride]] == -1) ? PART_NOT_AVAILABLE : 1, 4);
if (s->mb_x < (s->mb_width - 1)) {
- *(uint32_t *) h->mv_cache[m][scan8[0] + 4 - 1*8] = *(uint32_t *) s->current_picture.f.motion_val[m][b_xy - h->b_stride + 4];
+ AV_COPY32(h->mv_cache[m][scan8[0] + 4 - 1*8], s->current_picture.f.motion_val[m][b_xy - h->b_stride + 4]);
h->ref_cache[m][scan8[0] + 4 - 1*8] =
(h->intra4x4_pred_mode[h->mb2br_xy[mb_xy - s->mb_stride + 1]+6] == -1 ||
h->intra4x4_pred_mode[h->mb2br_xy[mb_xy - s->mb_stride ] ] == -1) ? PART_NOT_AVAILABLE : 1;
}else
h->ref_cache[m][scan8[0] + 4 - 1*8] = PART_NOT_AVAILABLE;
if (s->mb_x > 0) {
- *(uint32_t *) h->mv_cache[m][scan8[0] - 1 - 1*8] = *(uint32_t *) s->current_picture.f.motion_val[m][b_xy - h->b_stride - 1];
+ AV_COPY32(h->mv_cache[m][scan8[0] - 1 - 1*8], s->current_picture.f.motion_val[m][b_xy - h->b_stride - 1]);
h->ref_cache[m][scan8[0] - 1 - 1*8] = (h->intra4x4_pred_mode[h->mb2br_xy[mb_xy - s->mb_stride - 1]+3] == -1) ? PART_NOT_AVAILABLE : 1;
}else
h->ref_cache[m][scan8[0] - 1 - 1*8] = PART_NOT_AVAILABLE;
--
1.7.12

@ -0,0 +1,306 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/libav/libav-0.8.4.ebuild,v 1.2 2012/10/23 17:36:10 lu_zero Exp $
EAPI=4
if [[ ${PV} == *9999 ]] ; then
SCM="git-2"
EGIT_REPO_URI="git://git.libav.org/libav.git"
[[ ${PV%9999} != "" ]] && EGIT_BRANCH="release/${PV%.9999}"
fi
inherit eutils flag-o-matic multilib toolchain-funcs ${SCM}
DESCRIPTION="Complete solution to record, convert and stream audio and video."
HOMEPAGE="http://libav.org/"
if [[ ${PV} == *9999 ]] ; then
SRC_URI=""
elif [[ ${PV%_p*} != ${PV} ]] ; then # Gentoo snapshot
SRC_URI="http://dev.gentoo.org/~lu_zero/libav/${P}.tar.xz"
else # Official release
SRC_URI="http://${PN}.org/releases/${P}.tar.xz"
fi
SRC_URI+=" test? ( http://dev.gentoo.org/~lu_zero/libav/fate-0.8.2.tar.xz )"
LICENSE="LGPL-2.1 gpl? ( GPL-3 )"
SLOT="0"
[[ ${PV} == *9999 ]] || \
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
IUSE="+3dnow +3dnowext aac alsa altivec amr bindist +bzip2 cdio cpudetection
custom-cflags debug dirac doc +encode faac truetype frei0r +gpl gsm
+hardcoded-tables ieee1394 jack jpeg2k +mmx +mmxext mp3 network openssl
oss pic pulseaudio +qt-faststart rtmp schroedinger sdl speex ssl +ssse3
static-libs test theora threads v4l vaapi vdpau vorbis vpx X x264 xvid
+zlib"
CPU_FEATURES="3dnow:amd3dnow 3dnowext:amd3dnowext altivec avx mmx mmxext:mmx2
neon ssse3 vis"
for i in ${CPU_FEATURES}; do
IUSE+=" ${i%:*}"
done
RDEPEND="
!media-video/ffmpeg
alsa? ( media-libs/alsa-lib )
amr? ( media-libs/opencore-amr )
bzip2? ( app-arch/bzip2 )
cdio? ( dev-libs/libcdio )
dirac? ( media-video/dirac )
encode? (
aac? ( media-libs/vo-aacenc )
amr? ( media-libs/vo-amrwbenc )
faac? ( media-libs/faac )
mp3? ( >=media-sound/lame-3.98.3 )
theora? ( >=media-libs/libtheora-1.1.1[encode] media-libs/libogg )
vorbis? ( media-libs/libvorbis media-libs/libogg )
x264? ( >=media-libs/x264-0.0.20111017 )
xvid? ( >=media-libs/xvid-1.1.0 )
)
truetype? ( media-libs/freetype:2 )
frei0r? ( media-plugins/frei0r-plugins )
gsm? ( >=media-sound/gsm-1.0.12-r1 )
ieee1394? ( media-libs/libdc1394 sys-libs/libraw1394 )
jack? ( media-sound/jack-audio-connection-kit )
jpeg2k? ( >=media-libs/openjpeg-1.3-r2 )
pulseaudio? ( media-sound/pulseaudio )
rtmp? ( >=media-video/rtmpdump-2.2f )
ssl? ( openssl? ( dev-libs/openssl )
!openssl? ( net-libs/gnutls ) )
sdl? ( >=media-libs/libsdl-1.2.13-r1[audio,video] )
schroedinger? ( media-libs/schroedinger )
speex? ( >=media-libs/speex-1.2_beta3 )
vaapi? ( x11-libs/libva )
vdpau? ( x11-libs/libvdpau )
vpx? ( >=media-libs/libvpx-0.9.6 )
X? ( x11-libs/libX11 x11-libs/libXext x11-libs/libXfixes )
zlib? ( sys-libs/zlib )
"
DEPEND="${RDEPEND}
>=sys-devel/make-3.81
dirac? ( virtual/pkgconfig )
doc? ( app-text/texi2html )
mmx? ( dev-lang/yasm )
rtmp? ( virtual/pkgconfig )
schroedinger? ( virtual/pkgconfig )
truetype? ( virtual/pkgconfig )
test? ( net-misc/wget )
v4l? ( sys-kernel/linux-headers )
"
# faac can't be binary distributed
# openssl support marked as nonfree
# faac and aac are concurent implementations
# amr and aac require at least lgpl3
# x264 requires gpl2
REQUIRED_USE="bindist? ( !faac !openssl )
rtmp? ( network )
amr? ( gpl ) aac? ( gpl ) x264? ( gpl ) X? ( gpl ) cdio? ( gpl )
test? ( encode )"
src_prepare() {
# if we have snapshot then we need to hardcode the version
if [[ ${PV%_p*} != ${PV} ]]; then
sed -i -e "s/UNKNOWN/DATE-${PV#*_pre}/" "${S}/version.sh" || die
fi
epatch ${FILESDIR}/0001-svq3-replace-unsafe-pointer-casting-with-intreadwrit.patch
}
src_configure() {
local myconf="${EXTRA_LIBAV_CONF}"
local uses i
myconf+="
$(use_enable gpl)
$(use_enable gpl version3)
--enable-avfilter
"
# enabled by default
uses="debug doc network zlib"
for i in ${uses}; do
use ${i} || myconf+=" --disable-${i}"
done
use bzip2 || myconf+=" --disable-bzlib"
use sdl || myconf+=" --disable-avplay"
if use ssl; then
use openssl && myconf+=" --enable-openssl --enable-nonfree" \
|| myconf+=" --enable-gnutls"
fi
use custom-cflags && myconf+=" --disable-optimizations"
use cpudetection && myconf+=" --enable-runtime-cpudetect"
#for i in h264_vdpau mpeg1_vdpau mpeg_vdpau vc1_vdpau wmv3_vdpau; do
# use video_cards_nvidia || myconf="${myconf} --disable-decoder=${i}"
# use vdpau || myconf="${myconf} --disable-decoder=${i}"
#done
use vdpau || myconf+=" --disable-vdpau"
use vaapi && myconf+=" --enable-vaapi"
# Encoders
if use encode; then
use mp3 && myconf+=" --enable-libmp3lame"
use amr && myconf+=" --enable-libvo-amrwbenc"
use faac && myconf+=" --enable-libfaac --enable-nonfree"
use aac && myconf+=" --enable-libvo-aacenc"
uses="theora vorbis x264 xvid"
for i in ${uses}; do
use ${i} && myconf+=" --enable-lib${i}"
done
else
myconf+=" --disable-encoders"
fi
# libavdevice options
use cdio && myconf+=" --enable-libcdio"
use ieee1394 && myconf+=" --enable-libdc1394"
use pulseaudio && myconf+=" --enable-libpulse"
# Indevs
# v4l1 is gone since linux-headers-2.6.38
myconf+=" --disable-indev=v4l"
use v4l || myconf+=" --disable-indev=v4l2"
for i in alsa oss jack; do
use ${i} || myconf+=" --disable-indev=${i}"
done
use X && myconf+=" --enable-x11grab"
# Outdevs
for i in alsa oss ; do
use ${i} || myconf+=" --disable-outdev=${i}"
done
# libavfilter options
use frei0r && myconf+=" --enable-frei0r"
use truetype && myconf+=" --enable-libfreetype"
# Threads; we only support pthread for now but ffmpeg supports more
use threads && myconf+=" --enable-pthreads"
# Decoders
use amr && myconf+=" --enable-libopencore-amrwb --enable-libopencore-amrnb"
uses="gsm dirac rtmp schroedinger speex vpx"
for i in ${uses}; do
use ${i} && myconf+=" --enable-lib${i}"
done
use jpeg2k && myconf+=" --enable-libopenjpeg"
# CPU features
for i in ${CPU_FEATURES}; do
use ${i%:*} || myconf+=" --disable-${i#*:}"
done
# pass the right -mfpu as extra
use neon && myconf+=" --extra-cflags=-mfpu=neon"
# disable mmx accelerated code if PIC is required
# as the provided asm decidedly is not PIC for x86.
if use pic && use x86 ; then
myconf+=" --disable-mmx --disable-mmx2"
fi
# Option to force building pic
use pic && myconf+=" --enable-pic"
# Try to get cpu type based on CFLAGS.
# Bug #172723
# We need to do this so that features of that CPU will be better used
# If they contain an unknown CPU it will not hurt since ffmpeg's configure
# will just ignore it.
for i in $(get-flag march) $(get-flag mcpu) $(get-flag mtune) ; do
[ "${i}" = "native" ] && i="host" # bug #273421
[[ ${i} = *-sse3 ]] && i="${i%-sse3}" # bug 283968
myconf+=" --cpu=${i}"
break
done
# cross compile support
if tc-is-cross-compiler ; then
myconf+=" --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}-"
case ${CHOST} in
*freebsd*)
myconf+=" --target-os=freebsd"
;;
mingw32*)
myconf+=" --target-os=mingw32"
;;
*linux*)
myconf+=" --target-os=linux"
;;
esac
fi
# Misc stuff
use hardcoded-tables && myconf+=" --enable-hardcoded-tables"
# Specific workarounds for too-few-registers arch...
if [[ $(tc-arch) == "x86" ]]; then
filter-flags -fforce-addr -momit-leaf-frame-pointer
append-flags -fomit-frame-pointer
is-flag -O? || append-flags -O2
if use debug; then
# no need to warn about debug if not using debug flag
ewarn ""
ewarn "Debug information will be almost useless as the frame pointer is omitted."
ewarn "This makes debugging harder, so crashes that has no fixed behavior are"
ewarn "difficult to fix. Please have that in mind."
ewarn ""
fi
fi
cd "${S}"
./configure \
--prefix="${EPREFIX}"/usr \
--libdir="${EPREFIX}"/usr/$(get_libdir) \
--shlibdir="${EPREFIX}"/usr/$(get_libdir) \
--mandir="${EPREFIX}"/usr/share/man \
--enable-shared \
--cc="$(tc-getCC)" \
--ar="$(tc-getAR)" \
$(use_enable static-libs static) \
${myconf} || die
MAKEOPTS+=" V=1"
}
src_compile() {
emake
if use qt-faststart; then
tc-export CC
emake tools/qt-faststart
fi
}
src_install() {
emake DESTDIR="${D}" install install-man
dodoc Changelog README INSTALL
dodoc doc/*.txt
use doc && dodoc doc/*.html
if use qt-faststart; then
dobin tools/qt-faststart
fi
for i in $(usex sdl avplay "") $(usex network avserver "") avprobe; do
dosym ${i} /usr/bin/${i/av/ff}
done
}
pkg_postinst() {
elog "Please note that the programs formerly known as ffplay, ffserver"
elog "and ffprobe are now called avplay, avserver and avprobe."
elog
elog "ffmpeg had been replaced by the feature incompatible avconv thus"
elog "the legacy ffmpeg is provided for compatibility with older scripts"
elog "but will be removed in the next version"
}
src_test() {
LD_LIBRARY_PATH="${S}/libavcore:${S}/libswscale:${S}/libavcodec:${S}/libavdevice:${S}/libavfilter:${S}/libavformat:${S}/libavutil" \
emake fate SAMPLES="${WORKDIR}/fate"
}

@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/libav/libav-9999.ebuild,v 1.52 2012/09/13 19:25:33 lu_zero Exp $
# $Header: /var/cvsroot/gentoo-x86/media-video/libav/libav-9999.ebuild,v 1.54 2012/10/23 17:36:10 lu_zero Exp $
EAPI=4
@ -111,7 +111,7 @@ DEPEND="${RDEPEND}
# x264 requires gpl2
REQUIRED_USE="bindist? ( !faac !openssl !fdk )
rtmp? ( network )
amr? ( gpl ) aac? ( gpl ) x264? ( gpl ) X? ( gpl )
amr? ( gpl ) aac? ( gpl ) x264? ( gpl ) X? ( gpl ) cdio? ( gpl )
test? ( encode zlib )
"
@ -279,6 +279,8 @@ src_configure() {
--extra-cflags="${CFLAGS}" \
$(use_enable static-libs static) \
${myconf} || die
MAKEOPTS+=" V=1"
}
src_compile() {
@ -324,5 +326,5 @@ pkg_postinst() {
src_test() {
LD_LIBRARY_PATH="${S}/libavcore:${S}/libswscale:${S}/libavcodec:${S}/libavdevice:${S}/libavfilter:${S}/libavformat:${S}/libavutil" \
emake V=1 -j1 fate
emake -j1 fate
}

@ -1 +1 @@
Tue, 23 Oct 2012 12:37:00 +0000
Wed, 24 Oct 2012 05:07:01 +0000

@ -1 +1 @@
Tue, 23 Oct 2012 12:37:00 +0000
Wed, 24 Oct 2012 05:07:01 +0000

@ -8,5 +8,5 @@ LICENSE=BSD as-is
RDEPEND=app-accessibility/sphinx2 app-accessibility/festival
SLOT=0
SRC_URI=http://www.speech.cs.cmu.edu/SphinxTrain/SphinxTrain-0.9.1-beta.tar.gz
_eclasses_=eutils 5a98daf52f7430a4a6f46cee24cfe3e2 multilib 9aa8a023e062fca0ba79362d9d0cc488 toolchain-funcs 134429b842a6c67254bfd76a8753e4d4 user d0a4d0735a6c0183d707ca919bd72f28
_eclasses_=eutils d40dc948067bd3db1c8ebf7d51897313 multilib 9aa8a023e062fca0ba79362d9d0cc488 toolchain-funcs 134429b842a6c67254bfd76a8753e4d4 user d0a4d0735a6c0183d707ca919bd72f28
_md5_=852dc0c6302a6621064b94f61c674419

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save