parent
05df3becdb
commit
43f2f90dd7
@ -1,3 +1,4 @@
|
||||
DIST at-spi2-core-2.2.3.tar.xz 429444 SHA256 fb97f0a02fa378795e50857e22e640e099be1768081e28ca2dbdb3835f5b6af1 SHA512 4ff634339c7aecd90d1ec8b16478aae4da0db319ae1ee1ac5bcecc93098f797dc58359b718b9800bffa6da81afc41fed21eff71456a165aa6428f7a64179d631 WHIRLPOOL a698a217f99af089a9041b7162ebcff66d5d8a38050dd74750c77792380e368f57d91d2b1494a080674fb57560e566cd924cf930a5e7785f9ccdeb12a34504ab
|
||||
DIST at-spi2-core-2.4.2.tar.xz 441204 SHA256 61d926ffc49c7f9236580468c5c9dabda16cec37ef3aee78ca6f2751595518fd SHA512 38968eb9a135b3f7badae2a87e7ba6b3323bfd43f8494ac81fb6696f7056d0e0ab04679173f9f8f595284611327da83fcf5ada3a406080c3faf5ada98a5d6599 WHIRLPOOL aa0902f6992dc38610599d2ccabb7796699ee4ebe0ded3b5123a4c85e290565d0a8812dec82851be69bad4afcf29f2eda120265f1707792c06f36f96cba95e95
|
||||
DIST at-spi2-core-2.6.2.tar.xz 443900 SHA256 0d5321ce9fdd7d036b072ef28cba14088394606e1687183ec5d0ae6adea8c87e SHA512 946e46bcba025d298051d99e229dfc5a3ff0b477b9c4e1a97c1ea3cee8a86832e2ee7fe34a986a9fb8e1138389e8f9ad3e27c2638769f1251e12ce4df6ccda9d WHIRLPOOL b01abdaa0f749f113e10a19ce1eab9d7bd120975a738acdf96fa25776258c51749af77f44375800724067b5b9ced253e49cd0c87225e7baee4e522b628657a1c
|
||||
DIST at-spi2-core-2.6.3.tar.xz 445084 SHA256 fc4487ae46e847cfd057b329b852cf99923772ecd2ddc29f29670c9f2b15d0ea SHA512 8b72a7587506ab2f9891518c99c7393ae427bf0da74ea3c0c3fd83ec64217dd171e739fd00bc946a600fd50de2f234c7ee51642d9a6e51ca7825d3a4fcb0beed WHIRLPOOL c1d9eafe5c4a1b1f133ba7ee0db71c7d2e22efd7f0537e055c6d7ba479fddc807ff6446c46c9b7c50963bf232da2b746c4b69903117610072c31a1e847c069b5
|
||||
|
@ -1,2 +1,2 @@
|
||||
DIST Editra-0.7.08.tar.gz 4066555 SHA256 d5ed31ab6dcb014c19584ce96d931f5e6aa9a78fdbac36e63132b15929559f63 SHA512 ecacdb021aa86e68bbb51b18b34dc1113246008f7f216f660e6fd75aa98f6ee25d747822a09a1fdb88639dda05293532de546475c4a3e1070a5e1368d5999978 WHIRLPOOL 4432da9b97b014695efcce295cbc56017f4e2421bca0c046850f9b276b423ac4ea1e3de909df2ad5e28b3f144b7141ec1a17f39ce811ddf214b8769969c3df20
|
||||
DIST Editra-0.7.12.tar.gz 4067488 SHA256 02312394e41b5d4c3ca8ce75a7ea4bac57ef9f8caabcb587ef6414e4bb21be61 SHA512 412ae4ed1880f11ba590f2c7e6d77a9325a758c55d494f7897223bb001373e64e310084ba55aceefb20135ffb800cd2774fb98d792ac3f6288cef25f8bf767d5 WHIRLPOOL 60f3014efe19fd3486517c115765b4b67d5df1b3607c6ae44f2cc365b50abb8f3452443f872973008981ea202dc5834927a4d80ca009eff74319a9094fb497a4
|
||||
DIST Editra-0.7.20.tar.gz 4072243 SHA256 ed515bca58d87d9a2b3085f322a9fe7c6d1407a3b05db1434f80ea8f7e42ccc0 SHA512 e568ce2a5f04300c33223bf7a0e6fbc52d0a51c3472afb9b613fe21cfbeba0b9b453d87837e52c7c48050fc266ff5ff194a42f797053f21f0a25cd5c4579febe WHIRLPOOL ecfbc9610ba707aaad4995f9832e0f2bf2d79e56a5fadb27ae6c5b671c0f69a166c3d2d37163141789629a30fe56fbeb59c05c0203ae9201e2447ea479f52c55
|
||||
|
@ -1,11 +1,11 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-editors/editra/editra-0.7.08.ebuild,v 1.3 2012/09/05 08:40:44 jlec Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-editors/editra/editra-0.7.20.ebuild,v 1.1 2013/01/08 04:31:28 dirtyepic Exp $
|
||||
|
||||
EAPI=2
|
||||
EAPI=5
|
||||
SUPPORT_PYTHON_ABIS=1
|
||||
PYTHON_DEPEND="2:2.5"
|
||||
RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
RESTRICT_PYTHON_ABIS="2.5 3.* *-jython 2.7-pypy-*"
|
||||
|
||||
inherit distutils eutils fdo-mime python
|
||||
|
@ -0,0 +1,13 @@
|
||||
diff --git a/vmblock-only/linux/control.c b/vmblock-only/linux/control.c
|
||||
index 79716bd..2dd83fe 100644
|
||||
--- a/vmblock-only/linux/control.c
|
||||
+++ b/vmblock-only/linux/control.c
|
||||
@@ -293,7 +293,7 @@ ExecuteBlockOp(const char __user *buf, // IN: buffer with name
|
||||
|
||||
retval = i < 0 ? -EINVAL : blockOp(name, blocker);
|
||||
|
||||
- putname(name);
|
||||
+ __putname(name);
|
||||
|
||||
return retval;
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-modules/vmware-modules-264.5.ebuild,v 1.1 2013/01/07 20:51:20 vadimk Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils flag-o-matic linux-info linux-mod user versionator udev
|
||||
|
||||
PV_MAJOR=$(get_major_version)
|
||||
PV_MINOR=$(get_version_component_range 2)
|
||||
|
||||
DESCRIPTION="VMware kernel modules"
|
||||
HOMEPAGE="http://www.vmware.com/"
|
||||
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="pax_kernel"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}
|
||||
|| ( =app-emulation/vmware-player-4.0.${PV_MINOR}*
|
||||
=app-emulation/vmware-workstation-8.0.${PV_MINOR}* )"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
pkg_setup() {
|
||||
CONFIG_CHECK="~HIGH_RES_TIMERS"
|
||||
if kernel_is ge 2 6 37 && kernel_is lt 2 6 39; then
|
||||
CONFIG_CHECK="${CONFIG_CHECK} BKL"
|
||||
fi
|
||||
|
||||
linux-info_pkg_setup
|
||||
|
||||
linux-mod_pkg_setup
|
||||
|
||||
VMWARE_GROUP=${VMWARE_GROUP:-vmware}
|
||||
|
||||
VMWARE_MODULE_LIST="vmblock vmci vmmon vmnet vsock"
|
||||
VMWARE_MOD_DIR="${PN}-${PVR}"
|
||||
|
||||
BUILD_TARGETS="auto-build KERNEL_DIR=${KERNEL_DIR} KBUILD_OUTPUT=${KV_OUT_DIR}"
|
||||
|
||||
enewgroup "${VMWARE_GROUP}"
|
||||
filter-flags -mfpmath=sse
|
||||
|
||||
for mod in ${VMWARE_MODULE_LIST}; do
|
||||
MODULE_NAMES="${MODULE_NAMES} ${mod}(misc:${S}/${mod}-only)"
|
||||
done
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
cd "${S}"
|
||||
for mod in ${VMWARE_MODULE_LIST}; do
|
||||
tar -xf /opt/vmware/lib/vmware/modules/source/${mod}.tar
|
||||
done
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PV_MAJOR}-makefile-kernel-dir.patch"
|
||||
epatch "${FILESDIR}/${PV_MAJOR}-makefile-include.patch"
|
||||
epatch "${FILESDIR}/${PV_MAJOR}-jobserver.patch"
|
||||
epatch "${FILESDIR}/${PV_MAJOR}-netdevice.patch"
|
||||
use pax_kernel && epatch "${FILESDIR}/hardened.patch"
|
||||
epatch "${FILESDIR}/${PV_MAJOR}-apic.patch"
|
||||
kernel_is ge 3 7 0 && epatch "${FILESDIR}/${PV_MAJOR}-putname.patch"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
linux-mod_src_install
|
||||
local udevrules="${T}/60-vmware.rules"
|
||||
cat > "${udevrules}" <<-EOF
|
||||
KERNEL=="vmci", GROUP="vmware", MODE=660
|
||||
KERNEL=="vmmon", GROUP="vmware", MODE=660
|
||||
KERNEL=="vsock", GROUP="vmware", MODE=660
|
||||
EOF
|
||||
udev_dorules "${udevrules}"
|
||||
}
|
@ -0,0 +1,244 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-player/vmware-player-4.0.5.893925.ebuild,v 1.1 2013/01/07 20:52:10 vadimk Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils versionator fdo-mime gnome2-utils pax-utils vmware-bundle
|
||||
|
||||
MY_PN="VMware-Player"
|
||||
MY_PV=$(get_version_component_range 1-3)
|
||||
PV_MINOR=$(get_version_component_range 3)
|
||||
PV_BUILD=$(get_version_component_range 4)
|
||||
MY_P="${MY_PN}-${MY_PV}-${PV_BUILD}"
|
||||
|
||||
DESCRIPTION="Emulate a complete PC on your PC without the usual performance overhead of most emulators"
|
||||
HOMEPAGE="http://www.vmware.com/products/player/"
|
||||
BASE_URI="https://softwareupdate.vmware.com/cds/vmw-desktop/player/${MY_PV}/${PV_BUILD}/linux/core/"
|
||||
SRC_URI="
|
||||
x86? ( ${BASE_URI}${MY_P}.i386.bundle.tar )
|
||||
amd64? ( ${BASE_URI}${MY_P}.x86_64.bundle.tar )
|
||||
"
|
||||
|
||||
LICENSE="vmware"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
IUSE="cups doc +vmware-tools"
|
||||
RESTRICT="strip"
|
||||
|
||||
# vmware-workstation should not use virtual/libc as this is a
|
||||
# precompiled binary package thats linked to glibc.
|
||||
RDEPEND="dev-cpp/cairomm
|
||||
dev-cpp/glibmm:2
|
||||
dev-cpp/gtkmm:2.4
|
||||
dev-cpp/libgnomecanvasmm:2.6
|
||||
dev-cpp/libsexymm
|
||||
dev-cpp/pangomm:1.4
|
||||
dev-libs/atk
|
||||
dev-libs/glib:2
|
||||
dev-libs/libaio
|
||||
dev-libs/libsigc++
|
||||
dev-libs/libxml2
|
||||
=dev-libs/openssl-0.9.8*
|
||||
dev-libs/xmlrpc-c
|
||||
gnome-base/libgnomecanvas
|
||||
gnome-base/libgtop:2
|
||||
gnome-base/librsvg:2
|
||||
gnome-base/orbit
|
||||
media-libs/fontconfig
|
||||
media-libs/freetype
|
||||
media-libs/libart_lgpl
|
||||
=media-libs/libpng-1.2*
|
||||
net-misc/curl
|
||||
cups? ( net-print/cups )
|
||||
sys-devel/gcc
|
||||
sys-fs/fuse
|
||||
sys-libs/glibc
|
||||
sys-libs/zlib
|
||||
x11-libs/cairo
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/libgksu
|
||||
x11-libs/libICE
|
||||
x11-libs/libsexy
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
x11-libs/libXau
|
||||
x11-libs/libxcb
|
||||
x11-libs/libXcomposite
|
||||
x11-libs/libXcursor
|
||||
x11-libs/libXdamage
|
||||
x11-libs/libXdmcp
|
||||
x11-libs/libXext
|
||||
x11-libs/libXfixes
|
||||
x11-libs/libXft
|
||||
x11-libs/libXi
|
||||
x11-libs/libXinerama
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXtst
|
||||
x11-libs/pango
|
||||
x11-libs/startup-notification
|
||||
!app-emulation/vmware-workstation"
|
||||
PDEPEND="~app-emulation/vmware-modules-264.${PV_MINOR}
|
||||
vmware-tools? ( app-emulation/vmware-tools )"
|
||||
|
||||
S=${WORKDIR}
|
||||
VM_INSTALL_DIR="/opt/vmware"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
local bundle=${A%.tar}
|
||||
|
||||
local component ; for component in \
|
||||
vmware-player \
|
||||
vmware-player-app \
|
||||
vmware-vmx \
|
||||
vmware-usbarbitrator \
|
||||
vmware-network-editor \
|
||||
vmware-player-setup
|
||||
#vmware-ovftool
|
||||
do
|
||||
vmware-bundle_extract-bundle-component "${bundle}" "${component}" "${S}"
|
||||
done
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
rm -f bin/vmware-modconfig
|
||||
rm -rf lib/modules/binary
|
||||
}
|
||||
|
||||
clean_bundled_libs() {
|
||||
ebegin 'Removing superfluous libraries'
|
||||
# exclude OpenSSL from unbundling until the AES-NI patch gets into the tree
|
||||
# see http://forums.gentoo.org/viewtopic-t-835867.html
|
||||
# must use shipped libgcr.so.0 or else "undefined symbol: gcr_certificate_widget_new"
|
||||
ldconfig -p | sed 's:^\s\+\([^(]*[^( ]\).*=> \(/.*\)$:\1 \2:g;t;d' | fgrep -v 'libcrypto.so.0.9.8
|
||||
libssl.so.0.9.8
|
||||
libgcr.so.0' | while read -r libname libpath ; do
|
||||
dosym "${libpath}" "${VM_INSTALL_DIR}/lib/vmware/lib/${libname}/${libname}"
|
||||
done
|
||||
eend
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# install the binaries
|
||||
into "${VM_INSTALL_DIR}"
|
||||
dobin bin/* || die "failed to install bin"
|
||||
|
||||
# install the libraries
|
||||
insinto "${VM_INSTALL_DIR}"/lib/vmware
|
||||
doins -r lib/*
|
||||
|
||||
# Bug 432918
|
||||
dosym "${VM_INSTALL_DIR}"/lib/vmware/lib/libcrypto.so.0.9.8/libcrypto.so.0.9.8 \
|
||||
"${VM_INSTALL_DIR}"/lib/vmware/lib/libvmwarebase.so.0/libcrypto.so.0.9.8
|
||||
dosym "${VM_INSTALL_DIR}"/lib/vmware/lib/libssl.so.0.9.8/libssl.so.0.9.8 \
|
||||
"${VM_INSTALL_DIR}"/lib/vmware/lib/libvmwarebase.so.0/libssl.so.0.9.8
|
||||
|
||||
# install the ancillaries
|
||||
insinto /usr
|
||||
doins -r share
|
||||
|
||||
if use cups; then
|
||||
exeinto $(cups-config --serverbin)/filter
|
||||
doexe extras/thnucups
|
||||
|
||||
insinto /etc/cups
|
||||
doins -r etc/cups/*
|
||||
fi
|
||||
|
||||
# install documentation
|
||||
if use doc; then
|
||||
dodoc doc/*
|
||||
fi
|
||||
|
||||
exeinto "${VM_INSTALL_DIR}"/lib/vmware/setup
|
||||
doexe vmware-config
|
||||
|
||||
# create symlinks for the various tools
|
||||
local tool ; for tool in thnuclnt vmplayer{,-daemon} \
|
||||
vmware-{acetool,unity-helper,modconfig{,-console},gksu,fuseUI} ; do
|
||||
dosym appLoader "${VM_INSTALL_DIR}"/lib/vmware/bin/"${tool}"
|
||||
done
|
||||
dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmplayer "${VM_INSTALL_DIR}"/bin/vmplayer
|
||||
dosym "${VM_INSTALL_DIR}"/lib/vmware/icu /etc/vmware/icu
|
||||
|
||||
# fix permissions
|
||||
fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/bin/{appLoader,fusermount,launcher.sh,mkisofs,vmware-remotemks}
|
||||
fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/lib/{wrapper-gtk24.sh,libgksu2.so.0/gksu-run-helper}
|
||||
fperms 4711 "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-vmx{,-debug,-stats}
|
||||
|
||||
pax-mark -m "${D}${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-vmx
|
||||
|
||||
# create the environment
|
||||
local envd="${T}/90vmware"
|
||||
cat > "${envd}" <<-EOF
|
||||
PATH='${VM_INSTALL_DIR}/bin'
|
||||
ROOTPATH='${VM_INSTALL_DIR}/bin'
|
||||
EOF
|
||||
doenvd "${envd}" || die
|
||||
|
||||
# create the configuration
|
||||
dodir /etc/vmware || die
|
||||
|
||||
cat > "${D}"/etc/vmware/bootstrap <<-EOF
|
||||
BINDIR='${VM_INSTALL_DIR}/bin'
|
||||
LIBDIR='${VM_INSTALL_DIR}/lib'
|
||||
EOF
|
||||
|
||||
cat > "${D}"/etc/vmware/config <<-EOF
|
||||
bindir = "${VM_INSTALL_DIR}/bin"
|
||||
libdir = "${VM_INSTALL_DIR}/lib/vmware"
|
||||
initscriptdir = "/etc/init.d"
|
||||
authd.fullpath = "${VM_INSTALL_DIR}/sbin/vmware-authd"
|
||||
gksu.rootMethod = "su"
|
||||
VMCI_CONFED = "yes"
|
||||
VMBLOCK_CONFED = "yes"
|
||||
VSOCK_CONFED = "yes"
|
||||
NETWORKING = "yes"
|
||||
player.product.version = "${MY_PV}"
|
||||
product.buildNumber = "${PV_BUILD}"
|
||||
EOF
|
||||
|
||||
# install the init.d script
|
||||
local initscript="${T}/vmware.rc"
|
||||
|
||||
sed -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \
|
||||
"${FILESDIR}/vmware-3.0.rc" > "${initscript}" || die
|
||||
newinitd "${initscript}" vmware || die
|
||||
|
||||
# fill in variable placeholders
|
||||
sed -e "s:@@LIBCONF_DIR@@:${VM_INSTALL_DIR}/lib/vmware/libconf:g" \
|
||||
-i "${D}${VM_INSTALL_DIR}"/lib/vmware/libconf/etc/{gtk-2.0/{gdk-pixbuf.loaders,gtk.immodules},pango/pango{.modules,rc}} || die
|
||||
sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmplayer:g" \
|
||||
-i "${D}/usr/share/applications/${PN}.desktop" || die
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
"${VM_INSTALL_DIR}"/bin/vmware-networks --postinstall ${PN},old,new
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
gnome2_icon_cache_update
|
||||
|
||||
ewarn "/etc/env.d was updated. Please run:"
|
||||
ewarn "env-update && source /etc/profile"
|
||||
ewarn ""
|
||||
ewarn "Before you can use vmware-player, you must configure a default network setup."
|
||||
ewarn "You can do this by running 'emerge --config ${PN}'."
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
einfo "Stopping ${PN} for safe unmerge"
|
||||
/etc/init.d/vmware stop
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
fdo-mime_desktop_database_update
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-tools/vmware-tools-8.8.5.893925.ebuild,v 1.1 2013/01/07 20:54:11 vadimk Exp $
|
||||
|
||||
inherit versionator vmware-bundle
|
||||
|
||||
MY_PV="$(replace_version_separator 3 - $PV)"
|
||||
BASE_URI="http://softwareupdate.vmware.com/cds/vmw-desktop/player/4.0.$(get_version_component_range 3)/$(get_version_component_range 4)/linux/packages/"
|
||||
|
||||
DESCRIPTION="VMware Tools for guest operating systems"
|
||||
HOMEPAGE="http://www.vmware.com/products/player/"
|
||||
|
||||
LICENSE="vmware"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
RESTRICT="mirror"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
IUSE_VMWARE_GUEST="freebsd linux netware solaris windows winPre2k"
|
||||
|
||||
VM_INSTALL_DIR="/opt/vmware"
|
||||
|
||||
for guest in ${IUSE_VMWARE_GUEST} ; do
|
||||
SRC_URI+=" vmware_guest_${guest}? (
|
||||
amd64? ( ${BASE_URI}vmware-tools-${guest}-${MY_PV}.x86_64.component.tar )
|
||||
x86? ( ${BASE_URI}vmware-tools-${guest}-${MY_PV}.i386.component.tar )
|
||||
)"
|
||||
IUSE+=" vmware_guest_${guest}"
|
||||
done ; unset guest
|
||||
|
||||
src_unpack() {
|
||||
local arch
|
||||
if use x86 ; then arch='i386'
|
||||
elif use amd64 ; then arch='x86_64'
|
||||
fi
|
||||
local guest ; for guest in ${IUSE_VMWARE_GUEST} ; do
|
||||
if use "vmware_guest_${guest}" ; then
|
||||
local component="vmware-tools-${guest}-${MY_PV}.${arch}.component"
|
||||
unpack "${component}.tar"
|
||||
vmware-bundle_extract-component "${component}"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "${VM_INSTALL_DIR}"/lib/vmware/isoimages
|
||||
local guest ; for guest in ${IUSE_VMWARE_GUEST} ; do
|
||||
if use "vmware_guest_${guest}" ; then
|
||||
doins "${guest}".iso{,.sig}
|
||||
fi
|
||||
done
|
||||
}
|
@ -0,0 +1,472 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-8.0.5.893925.ebuild,v 1.1 2013/01/07 20:52:58 vadimk Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils versionator fdo-mime gnome2-utils pam vmware-bundle
|
||||
|
||||
MY_PN="VMware-Workstation"
|
||||
MY_PV=$(get_version_component_range 1-3)
|
||||
PV_MINOR=$(get_version_component_range 3)
|
||||
PV_BUILD=$(get_version_component_range 4)
|
||||
MY_P="${MY_PN}-${MY_PV}-${PV_BUILD}"
|
||||
|
||||
DESCRIPTION="Emulate a complete PC on your PC without the usual performance overhead of most emulators"
|
||||
HOMEPAGE="http://www.vmware.com/products/workstation/"
|
||||
BASE_URI="https://softwareupdate.vmware.com/cds/vmw-desktop/ws/${MY_PV}/${PV_BUILD}/linux/core/"
|
||||
SRC_URI="
|
||||
x86? ( ${BASE_URI}${MY_P}.i386.bundle.tar )
|
||||
amd64? ( ${BASE_URI}${MY_P}.x86_64.bundle.tar )
|
||||
"
|
||||
LICENSE="vmware"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
IUSE="cups doc ovftool server vix vmware-tools"
|
||||
RESTRICT="mirror strip"
|
||||
|
||||
# vmware-workstation should not use virtual/libc as this is a
|
||||
# precompiled binary package thats linked to glibc.
|
||||
RDEPEND="dev-cpp/cairomm
|
||||
dev-cpp/glibmm:2
|
||||
dev-cpp/gtkmm:2.4
|
||||
dev-cpp/libgnomecanvasmm
|
||||
dev-cpp/libsexymm
|
||||
dev-cpp/pangomm
|
||||
dev-libs/atk
|
||||
dev-libs/glib:2
|
||||
dev-libs/icu
|
||||
dev-libs/expat
|
||||
dev-libs/libaio
|
||||
dev-libs/libsigc++
|
||||
dev-libs/libxml2
|
||||
=dev-libs/openssl-0.9.8*
|
||||
dev-libs/xmlrpc-c
|
||||
gnome-base/libgnomecanvas
|
||||
gnome-base/libgtop:2
|
||||
gnome-base/librsvg:2
|
||||
gnome-base/orbit
|
||||
media-libs/fontconfig
|
||||
media-libs/freetype
|
||||
media-libs/libart_lgpl
|
||||
=media-libs/libpng-1.2*
|
||||
media-libs/libpng
|
||||
net-misc/curl
|
||||
cups? ( net-print/cups )
|
||||
sys-devel/gcc
|
||||
sys-fs/fuse
|
||||
sys-libs/glibc
|
||||
sys-libs/zlib
|
||||
x11-libs/cairo
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/libgksu
|
||||
x11-libs/libICE
|
||||
x11-libs/libsexy
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
x11-libs/libXau
|
||||
x11-libs/libxcb
|
||||
x11-libs/libXcomposite
|
||||
x11-libs/libXcursor
|
||||
x11-libs/libXdamage
|
||||
x11-libs/libXdmcp
|
||||
x11-libs/libXext
|
||||
x11-libs/libXfixes
|
||||
x11-libs/libXft
|
||||
x11-libs/libXi
|
||||
x11-libs/libXinerama
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXtst
|
||||
x11-libs/pango
|
||||
x11-libs/startup-notification
|
||||
x11-themes/hicolor-icon-theme
|
||||
!app-emulation/vmware-player"
|
||||
PDEPEND="~app-emulation/vmware-modules-264.${PV_MINOR}
|
||||
vmware-tools? ( app-emulation/vmware-tools )"
|
||||
|
||||
S=${WORKDIR}
|
||||
VM_INSTALL_DIR="/opt/vmware"
|
||||
VM_DATA_STORE_DIR="/var/lib/vmware/Shared VMs"
|
||||
VM_HOSTD_USER="root"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
local bundle=${A%.tar}
|
||||
local component; for component in \
|
||||
vmware-vmx \
|
||||
vmware-player-app \
|
||||
vmware-player-setup \
|
||||
vmware-workstation \
|
||||
vmware-network-editor \
|
||||
vmware-network-editor-ui \
|
||||
vmware-usbarbitrator
|
||||
do
|
||||
vmware-bundle_extract-bundle-component "${bundle}" "${component}" "${S}"
|
||||
done
|
||||
|
||||
if use server; then
|
||||
vmware-bundle_extract-bundle-component "${bundle}" vmware-workstation-server #"${S}"
|
||||
fi
|
||||
|
||||
if use vix; then
|
||||
vmware-bundle_extract-bundle-component "${bundle}" vmware-vix-core vmware-vix
|
||||
vmware-bundle_extract-bundle-component "${bundle}" vmware-vix-lib-Workstation800andvSphere500 vmware-vix
|
||||
fi
|
||||
if use ovftool; then
|
||||
vmware-bundle_extract-bundle-component "${bundle}" vmware-ovftool
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
rm -f bin/vmware-modconfig
|
||||
rm -rf lib/modules/binary
|
||||
if use server; then
|
||||
rm -f vmware-workstation-server/bin/{openssl,configure-hostd.sh}
|
||||
fi
|
||||
|
||||
find "${S}" -name '*.a' -delete
|
||||
|
||||
# clean_bundled_libs
|
||||
}
|
||||
|
||||
clean_bundled_libs() {
|
||||
ebegin 'Removing superfluous libraries'
|
||||
cd lib/lib || die
|
||||
ldconfig -p | \
|
||||
sed 's:^\s\+\([^(]*[^( ]\).*=> /.*$:\1:g;t;d' | \
|
||||
fgrep -vx 'libcrypto.so.0.9.8
|
||||
libssl.so.0.9.8i
|
||||
libgcr.so.0
|
||||
libglib-2.0.so.0' |
|
||||
xargs -d'\n' -r rm -rf
|
||||
eend
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local major_minor=$(get_version_component_range 1-2 "${PV}")
|
||||
local major_minor_revision=$(get_version_component_range 1-3 "${PV}")
|
||||
local build=$(get_version_component_range 4 "${PV}")
|
||||
|
||||
# install the binaries
|
||||
into "${VM_INSTALL_DIR}"
|
||||
dobin bin/*
|
||||
|
||||
# install the libraries
|
||||
insinto "${VM_INSTALL_DIR}"/lib/vmware
|
||||
doins -r lib/*
|
||||
|
||||
# install the ancillaries
|
||||
insinto /usr
|
||||
doins -r share
|
||||
|
||||
if use cups; then
|
||||
exeinto $(cups-config --serverbin)/filter
|
||||
doexe extras/thnucups
|
||||
|
||||
insinto /etc/cups
|
||||
doins -r etc/cups/*
|
||||
fi
|
||||
|
||||
insinto /etc/xdg
|
||||
doins -r etc/xdg/*
|
||||
|
||||
# install documentation
|
||||
doman man/man1/vmware.1.gz
|
||||
|
||||
if use doc; then
|
||||
dodoc doc/*
|
||||
fi
|
||||
|
||||
insinto "${VM_INSTALL_DIR}"/lib/vmware/setup
|
||||
doins vmware-config
|
||||
|
||||
# install vmware workstation server
|
||||
if use server; then
|
||||
dosbin sbin/*
|
||||
|
||||
cd "${S}"/vmware-workstation-server
|
||||
|
||||
# install binaries
|
||||
into "${VM_INSTALL_DIR}"/lib/vmware
|
||||
dobin bin/*
|
||||
|
||||
dobin "${FILESDIR}"/configure-hostd.sh
|
||||
|
||||
dobin "${FILESDIR}"/configure-hostd.sh
|
||||
|
||||
# install the libraries
|
||||
insinto "${VM_INSTALL_DIR}"/lib/vmware/lib
|
||||
doins -r lib/*
|
||||
|
||||
into "${VM_INSTALL_DIR}"
|
||||
for tool in vmware-{hostd,vim-cmd,wssc-adminTool} ; do
|
||||
cat > "${T}/${tool}" <<-EOF
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
. /etc/vmware/bootstrap
|
||||
|
||||
exec "${VM_INSTALL_DIR}/lib/vmware/lib/wrapper-gtk24.sh" \\
|
||||
"${VM_INSTALL_DIR}/lib/vmware/lib" \\
|
||||
"${VM_INSTALL_DIR}/lib/vmware/bin/${tool}" \\
|
||||
"${VM_INSTALL_DIR}/lib/vmware/libconf" "\$@"
|
||||
EOF
|
||||
dobin "${T}/${tool}"
|
||||
done
|
||||
|
||||
insinto "${VM_INSTALL_DIR}"/lib/vmware
|
||||
doins -r hostd
|
||||
|
||||
# create the configuration
|
||||
insinto /etc/vmware/hostd
|
||||
doins -r config/etc/vmware/hostd/*
|
||||
doins -r etc/vmware/hostd/*
|
||||
|
||||
insinto /etc/vmware/ssl
|
||||
doins etc/vmware/ssl/*
|
||||
|
||||
# pam
|
||||
pamd_mimic_system vmware-authd auth account
|
||||
|
||||
# create directory for shared virtual machines.
|
||||
keepdir "${VM_DATA_STORE_DIR}"
|
||||
keepdir /var/log/vmware
|
||||
fi
|
||||
|
||||
# install vmware-vix
|
||||
if use vix; then
|
||||
cd "${S}"/vmware-vix
|
||||
|
||||
# install the binary
|
||||
into "${VM_INSTALL_DIR}"
|
||||
dobin bin/*
|
||||
|
||||
# install the libraries
|
||||
insinto "${VM_INSTALL_DIR}"/lib/vmware-vix
|
||||
doins -r lib/*
|
||||
|
||||
dosym vmware-vix/libvixAllProducts.so "${VM_INSTALL_DIR}"/lib/libbvixAllProducts.so
|
||||
|
||||
# install headers
|
||||
insinto /usr/include/vmware-vix
|
||||
doins include/*
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/*
|
||||
fi
|
||||
fi
|
||||
|
||||
# install ovftool
|
||||
if use ovftool; then
|
||||
cd "${S}"
|
||||
|
||||
insinto "${VM_INSTALL_DIR}"/lib/vmware-ovftool
|
||||
doins -r vmware-ovftool/*
|
||||
|
||||
chmod 0755 "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/{ovftool,ovftool.bin}
|
||||
dosym "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/ovftool "${VM_INSTALL_DIR}"/bin/ovftool
|
||||
fi
|
||||
|
||||
# create symlinks for the various tools
|
||||
local tool ; for tool in thnuclnt vmware vmplayer{,-daemon} \
|
||||
vmware-{acetool,enter-serial,gksu,fuseUI,modconfig{,-console},netcfg,tray,unity-helper} ; do
|
||||
dosym appLoader "${VM_INSTALL_DIR}"/lib/vmware/bin/"${tool}"
|
||||
done
|
||||
dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmplayer "${VM_INSTALL_DIR}"/bin/vmplayer
|
||||
dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware "${VM_INSTALL_DIR}"/bin/vmware
|
||||
dosym "${VM_INSTALL_DIR}"/lib/vmware/icu /etc/vmware/icu
|
||||
|
||||
# fix permissions
|
||||
fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/bin/{appLoader,fusermount,launcher.sh,mkisofs,vmware-remotemks}
|
||||
fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/lib/{wrapper-gtk24.sh,libgksu2.so.0/gksu-run-helper}
|
||||
fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/setup/vmware-config
|
||||
fperms 4711 "${VM_INSTALL_DIR}"/bin/vmware-mount
|
||||
fperms 4711 "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-vmx{,-debug,-stats}
|
||||
if use server; then
|
||||
fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-{hostd,vim-cmd,wssc-adminTool}
|
||||
fperms 4711 "${VM_INSTALL_DIR}"/sbin/vmware-authd
|
||||
fperms 1777 "${VM_DATA_STORE_DIR}"
|
||||
fi
|
||||
if use vix; then
|
||||
fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware-vix/setup/vmware-config
|
||||
fi
|
||||
|
||||
# create the environment
|
||||
local envd="${T}/90vmware"
|
||||
cat > "${envd}" <<-EOF
|
||||
PATH='${VM_INSTALL_DIR}/bin'
|
||||
ROOTPATH='${VM_INSTALL_DIR}/bin'
|
||||
EOF
|
||||
doenvd "${envd}"
|
||||
|
||||
# create the configuration
|
||||
dodir /etc/vmware
|
||||
|
||||
cat > "${D}"/etc/vmware/bootstrap <<-EOF
|
||||
BINDIR='${VM_INSTALL_DIR}/bin'
|
||||
LIBDIR='${VM_INSTALL_DIR}/lib'
|
||||
EOF
|
||||
|
||||
cat > "${D}"/etc/vmware/config <<-EOF
|
||||
bindir = "${VM_INSTALL_DIR}/bin"
|
||||
libdir = "${VM_INSTALL_DIR}/lib/vmware"
|
||||
initscriptdir = "/etc/init.d"
|
||||
authd.fullpath = "${VM_INSTALL_DIR}/sbin/vmware-authd"
|
||||
gksu.rootMethod = "su"
|
||||
VMCI_CONFED = "yes"
|
||||
VMBLOCK_CONFED = "yes"
|
||||
VSOCK_CONFED = "yes"
|
||||
NETWORKING = "yes"
|
||||
player.product.version = "${major_minor_revision}"
|
||||
product.version = "${major_minor_revision}"
|
||||
product.buildNumber = "${build}"
|
||||
product.name = "VMware Workstation"
|
||||
workstation.product.version = "${major_minor_revision}"
|
||||
EOF
|
||||
|
||||
if use vix; then
|
||||
cat >> "${D}"/etc/vmware/config <<-EOF
|
||||
vmware.fullpath = "${VM_INSTALL_DIR}/bin/vmware"
|
||||
vix.libdir = "${VM_INSTALL_DIR}/lib/vmware-vix"
|
||||
vix.config.version = "1"
|
||||
EOF
|
||||
fi
|
||||
|
||||
if use server; then
|
||||
cat >> "${D}"/etc/vmware/config <<-EOF
|
||||
authd.client.port = "902"
|
||||
authd.proxy.nfc = "vmware-hostd:ha-nfc"
|
||||
authd.soapserver = "TRUE"
|
||||
EOF
|
||||
fi
|
||||
|
||||
# install the init.d script
|
||||
local initscript="${T}/vmware.rc"
|
||||
sed -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \
|
||||
"${FILESDIR}/vmware-${major_minor}.rc" > ${initscript}
|
||||
newinitd "${initscript}" vmware
|
||||
|
||||
if use server; then
|
||||
# install the init.d script
|
||||
local initscript="${T}/vmware-workstation-server.rc"
|
||||
sed -e "s:@@ETCDIR@@:/etc/vmware:g" \
|
||||
-e "s:@@PREFIX@@:${VM_INSTALL_DIR}:g" \
|
||||
-e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \
|
||||
-e "s:@@LIBDIR@@:${VM_INSTALL_DIR}/lib/vmware:g" \
|
||||
"${FILESDIR}/vmware-server-8.0.rc" > ${initscript}
|
||||
newinitd "${initscript}" vmware-workstation-server
|
||||
fi
|
||||
|
||||
# fill in variable placeholders
|
||||
sed -e "s:@@LIBCONF_DIR@@:${VM_INSTALL_DIR}/lib/vmware/libconf:g" \
|
||||
-i "${D}${VM_INSTALL_DIR}"/lib/vmware/libconf/etc/{gtk-2.0/{gdk-pixbuf.loaders,gtk.immodules},pango/pango{.modules,rc}}
|
||||
sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmware:g" \
|
||||
-i "${D}/usr/share/applications/${PN}.desktop"
|
||||
sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmplayer:g" \
|
||||
-i "${D}/usr/share/applications/vmware-player.desktop"
|
||||
sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmware-netcfg:g" \
|
||||
-i "${D}/usr/share/applications/vmware-netcfg.desktop"
|
||||
|
||||
if use server; then
|
||||
# Configuration for vmware-workstation-server
|
||||
local hostdUser="${VM_HOSTD_USER:-root}"
|
||||
sed -e "/ACEDataUser/s:root:${hostdUser}:g" \
|
||||
-i "${D}/etc/vmware/hostd/authorization.xml" || die
|
||||
|
||||
# Shared VMs Path: [standard].
|
||||
sed -e "s:##{DS_NAME}##:standard:g" \
|
||||
-e "s:##{DS_PATH}##:${VM_DATA_STORE_DIR}:g" \
|
||||
-i "${D}/etc/vmware/hostd/datastores.xml" || die
|
||||
|
||||
sed -e "s:##{HTTP_PORT}##:-1:g" \
|
||||
-e "s:##{HTTPS_PORT}##:443:g" \
|
||||
-e "s:##{PIPE_PREFIX}##:/var/run/vmware/:g" \
|
||||
-i "${D}/etc/vmware/hostd/proxy.xml" || die
|
||||
|
||||
# See vmware-workstation-server.py for more details.
|
||||
sed -e "s:##{BUILD_CFGDIR}##:/etc/vmware/hostd/:g" \
|
||||
-e "s:##{CFGALTDIR}##:/etc/vmware/hostd/:g" \
|
||||
-e "s:##{CFGDIR}##:/etc/vmware/:g" \
|
||||
-e "s:##{ENABLE_AUTH}##:true:g" \
|
||||
-e "s:##{HOSTDMODE}##:ws:g" \
|
||||
-e "s:##{HOSTD_CFGDIR}##:/etc/vmware/hostd/:g" \
|
||||
-e "s:##{HOSTD_MOCKUP}##:false:g" \
|
||||
-e "s:##{LIBDIR}##:${VM_INSTALL_DIR}/lib/vmware:g" \
|
||||
-e "s:##{LIBDIR_INSTALLED}##:${VM_INSTALL_DIR}/lib/vmware/:g" \
|
||||
-e "s:##{LOGDIR}##:/var/log/vmware/:g" \
|
||||
-e "s:##{LOGLEVEL}##:verbose:g" \
|
||||
-e "s:##{MOCKUP}##:mockup-host-config.xml:g" \
|
||||
-e "s:##{PLUGINDIR}##:./:g" \
|
||||
-e "s:##{SHLIB_PREFIX}##:lib:g" \
|
||||
-e "s:##{SHLIB_SUFFIX}##:.so:g" \
|
||||
-e "s:##{USE_BLKLISTSVC}##:false:g" \
|
||||
-e "s:##{USE_CBRCSVC}##:false:g" \
|
||||
-e "s:##{USE_CIMSVC}##:false:g" \
|
||||
-e "s:##{USE_DIRECTORYSVC}##:false:g" \
|
||||
-e "s:##{USE_DIRECTORYSVC_MOCKUP}##:false:g" \
|
||||
-e "s:##{USE_DYNAMIC_PLUGIN_LOADING}##:false:g" \
|
||||
-e "s:##{USE_DYNAMO}##:false:g" \
|
||||
-e "s:##{USE_DYNSVC}##:false:g" \
|
||||
-e "s:##{USE_GUESTSVC}##:false:g" \
|
||||
-e "s:##{USE_HBRSVC}##:false:g" \
|
||||
-e "s:##{USE_HBRSVC_MOCKUP}##:false:g" \
|
||||
-e "s:##{USE_HOSTSVC_MOCKUP}##:false:g" \
|
||||
-e "s:##{USE_HTTPNFCSVC}##:false:g" \
|
||||
-e "s:##{USE_HTTPNFCSVC_MOCKUP}##:false:g" \
|
||||
-e "s:##{USE_LICENSESVC_MOCKUP}##:false:g" \
|
||||
-e "s:##{USE_NFCSVC}##:true:g" \
|
||||
-e "s:##{USE_NFCSVC_MOCKUP}##:false:g" \
|
||||
-e "s:##{USE_OVFMGRSVC}##:true:g" \
|
||||
-e "s:##{USE_PARTITIONSVC}##:false:g" \
|
||||
-e "s:##{USE_SECURESOAP}##:false:g" \
|
||||
-e "s:##{USE_SNMPSVC}##:false:g" \
|
||||
-e "s:##{USE_SOLO_MOCKUP}##:false:g" \
|
||||
-e "s:##{USE_STATSSVC_MOCKUP}##:false:g" \
|
||||
-e "s:##{USE_VCSVC_MOCKUP}##:false:g" \
|
||||
-e "s:##{USE_VDISKSVC}##:false:g" \
|
||||
-e "s:##{USE_VDISKSVC_MOCKUP}##:false:g" \
|
||||
-e "s:##{USE_VMSVC_MOCKUP}##:false:g" \
|
||||
-e "s:##{VM_INVENTORY}##:vmInventory.xml:g" \
|
||||
-e "s:##{VM_RESOURCES}##:vmResources.xml:g" \
|
||||
-e "s:##{WEBSERVER_PORT_ENTRY}##::g" \
|
||||
-e "s:##{WORKINGDIR}##:./:g" \
|
||||
-i "${D}/etc/vmware/hostd/config.xml" || die
|
||||
|
||||
sed -e "s:##{ENV_LOCATION}##:/etc/vmware/hostd/env/:g" \
|
||||
-i "${D}/etc/vmware/hostd/environments.xml" || die
|
||||
|
||||
# @@VICLIENT_URL@@=XXX
|
||||
sed -e "s:@@AUTHD_PORT@@:902:g" \
|
||||
-i "${D}${VM_INSTALL_DIR}/lib/vmware/hostd/docroot/client/clients.xml" || die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
"${VM_INSTALL_DIR}"/bin/vmware-networks --postinstall ${PN},old,new
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
gnome2_icon_cache_update
|
||||
|
||||
ewarn "/etc/env.d was updated. Please run:"
|
||||
ewarn "env-update && source /etc/profile"
|
||||
ewarn ""
|
||||
ewarn "Before you can use vmware workstation, you must configure a default network setup."
|
||||
ewarn "You can do this by running 'emerge --config ${PN}'."
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
einfo "Stopping ${PN} for safe unmerge"
|
||||
/etc/init.d/vmware stop
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
fdo-mime_desktop_database_update
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
conf.netstat | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/conf.netstat b/conf.netstat
|
||||
index 2dd96e3..ec2779b 100644
|
||||
--- a/conf.netstat
|
||||
+++ b/conf.netstat
|
||||
@@ -19,7 +19,7 @@ regexp=^IPX.*[\dABCDEF]+:[\dABCDEF]+
|
||||
colours=green
|
||||
=======
|
||||
# protocols
|
||||
-regexp=(^tcp|^udp|^unix|^IPX|STREAM|DGRAM)
|
||||
+regexp=(^tcp6|^tcp|^udp6|^udp|^unix|^IPX|STREAM|DGRAM)
|
||||
colours=bold blue
|
||||
=======
|
||||
# status
|
@ -0,0 +1,40 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/grc/grc-1.4-r1.ebuild,v 1.1 2013/01/08 14:54:46 jlec Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7} pypy{1_8,1_9} )
|
||||
|
||||
inherit eutils python-r1
|
||||
|
||||
DESCRIPTION="Generic Colouriser beautifies your logfiles or output of commands"
|
||||
HOMEPAGE="http://kassiopeia.juls.savba.sk/~garabik/software/grc.html"
|
||||
SRC_URI="http://kassiopeia.juls.savba.sk/~garabik/software/${PN}/${P/-/_}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}"
|
||||
DEPEND=""
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${FILESDIR}"/${P}-support-more-files.patch \
|
||||
"${FILESDIR}"/${P}-ipv6.patch
|
||||
}
|
||||
|
||||
src_install() {
|
||||
python_foreach_impl python_doscript grc grcat
|
||||
|
||||
insinto /usr/share/grc
|
||||
doins conf.* "${FILESDIR}"/conf.*
|
||||
|
||||
insinto /etc
|
||||
doins grc.conf
|
||||
|
||||
dodoc README INSTALL TODO CHANGES CREDITS
|
||||
doman grc.1 grcat.1
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>shell-tools</herd>
|
||||
<herd>shell-tools</herd>
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1,66 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/tmux/tmux-1.7-r1.ebuild,v 1.1 2013/01/08 15:12:29 jlec Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit bash-completion-r1
|
||||
|
||||
DESCRIPTION="Terminal multiplexer"
|
||||
HOMEPAGE="http://tmux.sourceforge.net"
|
||||
SRC_URI="mirror://sourceforge/tmux/${P}.tar.gz"
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="vim-syntax"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=dev-libs/libevent-2.0.10
|
||||
sys-libs/ncurses"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
virtual/pkgconfig"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
vim-syntax? ( || (
|
||||
app-editors/vim
|
||||
app-editors/gvim ) )"
|
||||
|
||||
DOCS=( CHANGES FAQ NOTES TODO )
|
||||
|
||||
pkg_setup() {
|
||||
if has_version "<app-misc/tmux-1.7"; then
|
||||
echo
|
||||
ewarn "Some configuration options changed in this release."
|
||||
ewarn "Please read the CHANGES file in /usr/share/doc/${PF}/"
|
||||
ewarn
|
||||
ewarn "WARNING: after updating to ${P} you will _not_ be able to connect to any"
|
||||
ewarn "running 1.6 tmux server instances. You'll have to use an existing client to"
|
||||
ewarn "end your old sessions or kill the old server instances. Otherwise you'll have"
|
||||
ewarn "to temporarily downgrade to tmux 1.6 to access them."
|
||||
echo
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# look for config file in the prefix
|
||||
sed -i -e '/SYSTEM_CFG/s:"/etc:"'"${EPREFIX}"'/etc:' tmux.h || die
|
||||
# and don't just add some includes
|
||||
sed -i -e 's:-I/usr/local/include::' Makefile.in || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
newbashcomp examples/bash_completion_tmux.sh ${PN}
|
||||
|
||||
docinto examples
|
||||
dodoc examples/*.conf
|
||||
|
||||
if use vim-syntax; then
|
||||
insinto /usr/share/vim/vimfiles/syntax
|
||||
doins examples/tmux.vim
|
||||
|
||||
insinto /usr/share/vim/vimfiles/ftdetect
|
||||
doins "${FILESDIR}"/tmux.vim
|
||||
fi
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST calcurse-2.9.2.tar.gz 517071 SHA256 e116c52fb82a051b38950bdbdb3f9df99fce2713c64d3eda1de236bacba28a55 SHA512 1b8136535ca72dc4f42f60d16a9f11f51aa899659feb01aef621bc0ec9997a81444ce9465c269b4e8da848c89a54dac8f6a3e59982e74e3223950b666576c5bf WHIRLPOOL ce351c6fa54f0f6e824154ef4dec512b34f45ba2a8282ca2e1de3867dc2806357468cbeb41c75de92ef684eb8cc1a2762bb84cd66a2a720c8b4046d9eb1337d3
|
||||
DIST calcurse-3.0.0.tar.gz 682545 SHA256 8a633120a8da250bce11d746a98c9aac3309235a3acdf19d001ab36e62cacdfa SHA512 cd4defff719635469216d9edb592cbd22b845be74eeb060ca51a93f1c0fb3fb297857ef29464c77f2aa6571eac24249901dbab77845332d82217986e4fb8d7ff WHIRLPOOL fec1147e9e7883ef909168cbb52b94da00f36251fd13dfc1cb0626e33886ce0ee754a52c9526bccec4149d014466ffa950bca906b31c01084bd2ee809b421855
|
||||
DIST calcurse-3.1.1.tar.gz 678208 SHA256 0bc2cbe1eb33d61589b04e9d991572e4934f843660a14c64bd3be06f865d006d SHA512 c90973ddc3ef2707b43800d3b272ee652bc8289d8b68d9e516df92d4a2c70b9035fda8ced558c245da923670bf064217ad2b95edeb202229ee2350a11af8d24e WHIRLPOOL e7b02b721312c6173dd8f510eb71cdf35e183c915fee1b0de2c5af82119bf77c91e8ead0a1e53803a2abe7960865279077e8e6783c64e7bc9cc7db6be4f8e2c6
|
||||
DIST calcurse-3.1.2.tar.gz 678379 SHA256 47da7fc65ab122c6f989188f62eda473c7367b13b99693dc6de5fa5ea6f2a76e SHA512 5a1630e59ff62affd43ecc030a4753cda0977c209c2686bd2f7776c7956848f3709eb14ce0b2af56200dbca9631d263a39730f528d06b9cd160a2270ea6d031c WHIRLPOOL 3ea777870ecb7c44f698bb427486d48e241bc79a6dac2ab52498e07a4c1bd08ba694b3f665245181d00bc3caa9cd6ff9e9a84671c480f445366bfc92ac6e65f8
|
||||
|
@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-office/calcurse/calcurse-3.1.2.ebuild,v 1.1 2013/01/08 15:46:15 jer Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="a text-based personal organizer"
|
||||
HOMEPAGE="http://calcurse.org"
|
||||
SRC_URI="http://calcurse.org/files/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
CC_LINGUAS="de en es fr nl pt_BR ru"
|
||||
for lingua in ${CC_LINGUAS}; do
|
||||
IUSE+=" linguas_${lingua}"
|
||||
done
|
||||
|
||||
RDEPEND="sys-libs/ncurses"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( sys-libs/libfaketime )"
|
||||
|
||||
DOCS=( AUTHORS NEWS README TODO )
|
@ -1,2 +1,3 @@
|
||||
DIST squirrelsh-1.2.3-src.tar.bz2 613935 SHA256 9fda1b90e157655839690383cf8856b69526df1a6e2345c4339f7b31dfe3efc6 SHA512 94de35e982736d5cc20fa1811a2d3dc89317e1850d862c4539030d152bd83028046256173c207efb9a52f195a75cae2ff1de33b0ab749dffd085f874c60779f4 WHIRLPOOL 1b83e2fc8948b9c799849c7f070cd97fa30a1954eda16ade32e5cba8c3b7824660faed515c4febd0c8c2240570a350e68f376cd8419279a3136946d00a03b729
|
||||
DIST squirrelsh-1.2.6-src.tar.bz2 651733 SHA256 ba8ce82853b3bf1610408242ed47f52e36471b95e42cbf75474c37478439ca3a SHA512 428f9640ab22b47245de9806950bd681cac6e5798df47f4820fe6c3897a0615203879dafc3a1feee86a83ba9249a85378f5074f7d6fc28533e418867dddfb492 WHIRLPOOL f5e07feb6b412ab69cbf543df7df1ec5e03cdc14b996e89d003bd4e8d6dcfd93a771893c886b09fc6c2fd5085fb4e92b4db4d9616cc73dc8414e862442966388
|
||||
DIST squirrelsh-1.2.7-src.tar.bz2 673462 SHA256 8c4745caf052b754d447dceee5a0bb529b13e9b02a6c48d004636f192a835b60 SHA512 7db82cad969ba209cae6b2d1c4cf76ba10acbf79c051f4340556ae81dc98d36dfb6f1f6993e9198e5a5254eaaab3fbaca3d01fc547c2f303572060b2093af78a WHIRLPOOL 148e324de890cfa82835f0c44ad286c5b3814a0b778816ee24b24d4ceae5e1ab5724d6c9d6205c602a63445f723ee452e0190d092b21a0bc5673911f1e52c274
|
||||
|
@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-shells/squirrelsh/squirrelsh-1.2.7.ebuild,v 1.1 2013/01/08 03:52:04 blueness Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="An advanced, cross-platform object oriented scripting shell based
|
||||
on the squirrel scripting language"
|
||||
HOMEPAGE="http://squirrelsh.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
RDEPEND="dev-libs/libpcre"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-rename-LDFLAGS.patch
|
||||
epatch "${FILESDIR}"/${PN}-no-strip.patch
|
||||
epatch "${FILESDIR}"/${PN}-fix-in_LDFLAGS.patch
|
||||
epatch "${FILESDIR}"/${PN}-remove-forced-abi.patch
|
||||
epatch "${FILESDIR}"/${PN}-no-docs.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
#This package uses a custom written configure script
|
||||
./configure --prefix="${D}"/usr \
|
||||
--with-cc="$(tc-getCC)" \
|
||||
--with-cpp="$(tc-getCXX)" \
|
||||
--with-linker="$(tc-getCXX)" \
|
||||
--libdir=/usr/"$(get_libdir)" \
|
||||
--with-pcre="system" \
|
||||
--with-squirrel="local" \
|
||||
--with-mime=no || die "configure failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
doman doc/${PN}.1
|
||||
dodoc HISTORY INSTALL README
|
||||
use doc && dodoc doc/*.pdf
|
||||
}
|
@ -1 +1 @@
|
||||
DIST arduino-1.0.1-src.tar.gz 10049328 SHA256 353e59835820695d853d309cfa426f1445cfae5cc4bf4e082acd1917b9077e01 SHA512 876a040210a51455b741b92defb8cac8bc75b099dcbaa0181726d3ef61ad2ed0a35b2cfda8980fef04d37ce62c7f5f28a42a253d10c2dec0027bf6ac66832ab1 WHIRLPOOL 189c30b3a62c34e9bbed323dbb4ebed5f35030d5d029efbe3b0d87f21a20fcd00f3678fb2e226168e17522a9816eff8b4852c2cbd0aef281efc075b9cabfe922
|
||||
DIST arduino-1.0.3-src.tar.gz 13454594 SHA256 b273aa72354cc9cdfee0bee48fe52d80c2454bb4537d329bd30e984d917c42ae SHA512 bc1f3ad4ca2385724c2e6845237176900d0c4e7cf65837b5380faf83d7fc2d0b20de43b0b83fd080bcdaf83dc0f2597723cb344960ced16d43c4b9ac2ab2f2a7 WHIRLPOOL 45fd0a0af4202bb77444ddfd2754d07f9960d7f5680966cb69da58aaf6ed87ea16f00323ec75e67c74dc959a7e99b0a93175e3177f7ddb1b566665698edd3fcc
|
||||
|
@ -1,159 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-games/cegui/cegui-0.7.7.ebuild,v 1.3 2012/12/07 23:38:23 hasufell Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit eutils
|
||||
|
||||
MY_P=CEGUI-${PV}
|
||||
MY_D=CEGUI-DOCS-${PV}
|
||||
DESCRIPTION="Crazy Eddie's GUI System"
|
||||
HOMEPAGE="http://www.cegui.org.uk/"
|
||||
SRC_URI="mirror://sourceforge/crayzedsgui/${MY_P}.tar.gz
|
||||
doc? ( mirror://sourceforge/crayzedsgui/${MY_D}.tar.gz )"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 -ppc ~x86"
|
||||
IUSE="bidi debug devil doc examples expat gtk irrlicht lua ogre opengl pcre static-libs tinyxml truetype xerces-c +xml zip"
|
||||
REQUIRED_USE="|| ( expat tinyxml xerces-c xml )" # bug 362223
|
||||
|
||||
RDEPEND="bidi? ( dev-libs/fribidi )
|
||||
devil? ( media-libs/devil )
|
||||
expat? ( dev-libs/expat )
|
||||
truetype? ( media-libs/freetype:2 )
|
||||
irrlicht? ( <dev-games/irrlicht-1.8 )
|
||||
lua? (
|
||||
dev-lang/lua
|
||||
dev-lua/toluapp
|
||||
)
|
||||
ogre? ( >=dev-games/ogre-1.7 )
|
||||
opengl? (
|
||||
virtual/opengl
|
||||
virtual/glu
|
||||
media-libs/freeglut
|
||||
media-libs/glew
|
||||
)
|
||||
pcre? ( dev-libs/libpcre )
|
||||
tinyxml? ( dev-libs/tinyxml )
|
||||
xerces-c? ( dev-libs/xerces-c )
|
||||
xml? ( dev-libs/libxml2 )
|
||||
zip? ( sys-libs/zlib[minizip] )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
doc? ( app-doc/doxygen )"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
S2=${WORKDIR}/${MY_P}_static
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
cp -a "${S}" "${S2}" || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# use minizip from zlib rather than local code
|
||||
if use zip ; then
|
||||
sed -i \
|
||||
-e '/CEGUI_BUILD_MINIZIP_RESOURCE_PROVIDER_TRUE/{
|
||||
s:minizip/ioapi.cpp minizip/unzip.cpp::;
|
||||
s:libCEGUIBase@cegui_bsfx@_la-ioapi.lo::;
|
||||
s:libCEGUIBase@cegui_bsfx@_la-unzip.lo::
|
||||
}' \
|
||||
-e '/^ZLIB_LIBS/s:=.*:= -lminizip:' \
|
||||
cegui/src/Makefile.in || die
|
||||
fi
|
||||
rm -rf cegui/src/minizip
|
||||
|
||||
if use examples ; then
|
||||
cp -r Samples Samples.clean
|
||||
rm -f $(find Samples.clean -name 'Makefile*')
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
$(use_enable bidi bidirectional-text)
|
||||
$(use_enable debug)
|
||||
$(use_enable devil)
|
||||
$(use_enable examples samples)
|
||||
$(use_enable expat)
|
||||
$(use_enable truetype freetype)
|
||||
$(use_enable irrlicht irrlicht-renderer)
|
||||
$(use_enable lua lua-module)
|
||||
$(use_enable lua toluacegui)
|
||||
--enable-external-toluapp
|
||||
$(use_enable ogre ogre-renderer)
|
||||
$(use_enable opengl opengl-renderer)
|
||||
--enable-external-glew
|
||||
$(use_enable pcre)
|
||||
$(use_enable tinyxml)
|
||||
--enable-external-tinyxml
|
||||
$(use_enable xerces-c)
|
||||
$(use_enable xml libxml)
|
||||
$(use_enable zip minizip-resource-provider)
|
||||
--enable-null-renderer
|
||||
--enable-stb
|
||||
--enable-tga
|
||||
--disable-corona
|
||||
--disable-dependency-tracking
|
||||
--disable-freeimage
|
||||
--disable-rapidxml
|
||||
--disable-samples
|
||||
--disable-silly
|
||||
$(use_with gtk gtk2)
|
||||
)
|
||||
|
||||
econf \
|
||||
"${myconf[@]}" \
|
||||
--disable-static \
|
||||
--enable-shared
|
||||
|
||||
if use static-libs ; then
|
||||
cd "${S2}" || die
|
||||
econf \
|
||||
"${myconf[@]}" \
|
||||
--enable-static \
|
||||
--disable-shared
|
||||
fi
|
||||
|
||||
# we are doing a double build here cause
|
||||
# the build system does not permit
|
||||
# "--enable-static --enable-shared"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
if use static-libs ; then
|
||||
emake -C "${S2}"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local i
|
||||
default
|
||||
|
||||
if use doc ; then
|
||||
emake html || die
|
||||
dohtml -r doc/doxygen/html/* || die
|
||||
fi
|
||||
if use examples ; then
|
||||
insinto /usr/share/doc/${PF}/Samples
|
||||
doins -r Samples.clean/* || die
|
||||
fi
|
||||
|
||||
if use static-libs ; then
|
||||
find "${S2}" -name "*CEGUI*.a" -exec dolib.a '{}' \;
|
||||
|
||||
# fix/merge .la files
|
||||
for i in `find "${D}" -name "*.la"` ; do
|
||||
sed \
|
||||
-e "s/old_library=''/old_library='$(basename ${i%.la}).a'/" \
|
||||
-i ${i} || die "fixing .la files failed"
|
||||
done
|
||||
else
|
||||
# remove .la files
|
||||
prune_libtool_files --all
|
||||
fi
|
||||
}
|
@ -1,44 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ispc/ispc-1.2.2.ebuild,v 1.3 2012/06/19 12:22:33 ago Exp $
|
||||
|
||||
EAPI=4
|
||||
GITHUB_ID="2c75ac1"
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Intel SPMD Program Compiler"
|
||||
HOMEPAGE="http://ispc.github.com/"
|
||||
SRC_URI="https://github.com/ispc/ispc/tarball/v${PV} -> ${PN}-git-${PV}.tgz"
|
||||
S="${WORKDIR}/${PN}-${PN}-${GITHUB_ID}"
|
||||
|
||||
LICENSE="BSD BSD-2 UoI-NCSA"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="examples"
|
||||
|
||||
RDEPEND="
|
||||
=sys-devel/clang-3.0*
|
||||
=sys-devel/llvm-3.0*
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
"
|
||||
|
||||
DOCS=( README.rst )
|
||||
|
||||
src_compile() {
|
||||
emake LDFLAGS="${LDFLAGS}" OPT="${CXXFLAGS}" CXX="$(tc-getCXX)" CPP="$(tc-getCPP)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ispc
|
||||
|
||||
if use examples; then
|
||||
insinto "/usr/share/doc/${PF}/examples"
|
||||
docompress -x "/usr/share/doc/${PF}/examples"
|
||||
doins -r examples/*
|
||||
fi
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
DIST libnl-1.1.tar.gz 288932 SHA256 35cea4cfb6cd8af0cafa0f34fff81def5a1f193b8b8384299b4b21883e22edc3 SHA512 add02849845bd0029968a9fb9a642133051196da17cf7b45eef192de1c09ad0b0ad7cc8424fa325f1c63262779d0abfd74e4ecb634abe66a4d2f394b3ad3e3de WHIRLPOOL 1fa96e4206acf5e9091a2aeed9a0694b6f4cce3aaae9a2074cd8713e4f1f526b5af138b69d03e7f233cc52d1acd3b67237455261ee42c56bf69c4b17caef0b84
|
||||
DIST libnl-3.2.14.tar.gz 687883 SHA256 6bb043eea08765bada37a053d932f073db9d51e7a8cd419e237c785ba6369e2c SHA512 14e9b733beb985d83bb4672087c91734954a6e90fe71a825dc089ab797ddf6a9e9ee39a046c5b996a3a0184588160a47830a368540831443615793a1eef647f5 WHIRLPOOL 34f6e4cb8b07b67a5b5abfaa59a0a45f114921b894959ede2e7b44640d6aa012a4bc1e08752b31b11035b745001a43716c3e093b4ccfecfa99a0f6a0b65a7539
|
||||
DIST libnl-3.2.16.tar.gz 712043 SHA256 c43a42336c6a3cf559f390e202f8f029d165bd767da7cf7a32a815c570b31826 SHA512 7aaeac4b13a374bc89bebd932da522223776c7c3462002bd9c6b9c1fde1ff3620518b335e117ee78f5da0007a19b85c82078c21348db6ad9aa684da7c2083aa9 WHIRLPOOL dd43f8f4a2eb787a84a77ea0e54bcd4401822d333d57fca427fb4ba760ae81be58a8ac916e42decde2fc8f6ee2d7dc8fe570e046d8bff3c82317fb280199542f
|
||||
DIST libnl-3.2.17.tar.gz 737314 SHA256 000a721b6fbfd22190d668a487dfe5945cd1a903b326ac8570a6f20f2466d002 SHA512 c1c0f7cd8c889b4adc15780ae05a18a8f117718dd16effff705b90c3c23de153b6d5db6fc8ddc5ab5b56a08095cef64a25d68ae0ecaa0f3c76fe9b1a36c1587a WHIRLPOOL 3d009869464954b516d088921ed15735ef05721fcefbe24ab5da205f5d13c7bc037ff1f16983de1e4e740f877744abcd3956797840db4b7fc4d967ba3612e609
|
||||
DIST libnl-3.2.18.tar.gz 739175 SHA256 6563e4e72a35f9f96380086f6bd17307552977af98e98bd3dd0fdde8013d53a9 SHA512 448968a698f22427e3eb7846cd0ad71a227e1ac998d9eab0c338a0d0811cd82953c676282d62e82441f2362493b3b9597330a8f916eb785ffd9f8854af2a509e WHIRLPOOL b88a3a425a82acea69f2bee74b171d9a0f51509bc1752877a8c6eb56d69b4dea176d289d524401c9ec392243887760ae76497fb29c0b83afd2f9956d07a92997
|
||||
DIST libnl-doc-3.2.14.tar.gz 8766064 SHA256 1db05aaa61c14ee578fa432cc1973a73379abe175859ef9e92ea033eae005e43 SHA512 2692f6d4c3e3a9d4fe9cc210fdb03751356daaebe19f8d9041804252a6c220dfc7ad4e72da428b56ade30afa2ef3ec3b6c86416f07b12013403dad8f735b0c0b WHIRLPOOL f55436bc28750f4d4d1bf716fc73e36a01b27d8799c0b2d8fee785db3da935fae4c4ab05a03dd4c65b9ef0cc32d2c112182b4e343e97b116a28da90e3035d96c
|
||||
DIST libnl-doc-3.2.16.tar.gz 11792430 SHA256 71c9aef7bf1495b5c2a488abf247ab5a4744783e8b4c6641b0bbb8e28d92605f SHA512 9224f308e3f01fd7a2d98f0cca0bf6f6d6535cfdc905c61bbb242c788a7c6121dee80c135552fd87a6e0dce31be4dea89e981066982f9d4f96b29f35ce92458c WHIRLPOOL 58902aff10580f1374dca9885060a20d32aedf1264c628c0105a860c8870d1ff9f4491a5b16389fb677815ae19aa98b9218ca3ce46385510d4bc88d0f5e574f9
|
||||
DIST libnl-doc-3.2.17.tar.gz 11796556 SHA256 a1c054cf49e03ae0bfba69ec066f10f9bf7a699e0d3fd286364f51b7222d829d SHA512 162c95528d9d0bda48bbd34238f9c5598dd2719b2e54d70ac5e89fa2b8a07f739c3e45b9ca6e79acc1ed9c664030c26d289a45db85ab0a2dfd32c911da0d0eac WHIRLPOOL 1ff38608b03de2dfb545b9a9527bb639c9677ec8bb2f684358e17da8f03bffc26af07bb678df016989766e1fcc15d0a86a8c8af94bf21a51977129fedf90bb7b
|
||||
DIST libnl-doc-3.2.18.tar.gz 11717270 SHA256 60c8a4893138f655f34019bacec022dd3b5930fced839e9aa6405b69e903099e SHA512 c1036ee0005e71fc604125ad505e01ba248124f0cf0efdf741f7bb844296fb462f10b0735dcc42f3cabc9f52b022352cd681306432189df98bc36c1c1af6c3dd WHIRLPOOL 4af9a7b5edc27c82102e32c59d35815078830a67c0566690e60d3ab9cbeef786417abe538bc897fdbfda771e0004c0ed7b58f0ac271ed7e5dbdb68d9554e5596
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libnl/libnl-3.2.17.ebuild,v 1.1 2013/01/05 17:36:21 jer Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libnl/libnl-3.2.18.ebuild,v 1.1 2013/01/08 14:33:28 jer Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit eutils libtool multilib
|
@ -0,0 +1,41 @@
|
||||
--- src/p_std_bits.cc.org 2012-12-30 00:37:03.033948083 +0100
|
||||
+++ src/mp_std_bits.cc 2012-12-30 00:44:12.893019313 +0100
|
||||
@@ -25,6 +25,9 @@
|
||||
#include "ppl-config.h"
|
||||
#include "mp_std_bits.defs.hh"
|
||||
|
||||
+#if __GNU_MP_VERSION < 5 \
|
||||
+ || (__GNU_MP_VERSION == 5 && __GNU_MP_VERSION_MINOR < 1)
|
||||
+
|
||||
const bool std::numeric_limits<mpz_class>::is_specialized;
|
||||
const int std::numeric_limits<mpz_class>::digits;
|
||||
const int std::numeric_limits<mpz_class>::digits10;
|
||||
@@ -70,3 +73,6 @@
|
||||
const bool std::numeric_limits<mpq_class>::traps;
|
||||
const bool std::numeric_limits<mpq_class>::tininess_before;
|
||||
const std::float_round_style std::numeric_limits<mpq_class>::round_style;
|
||||
+
|
||||
+#endif // __GNU_MP_VERSION < 5
|
||||
+ // || (__GNU_MP_VERSION == 5 && __GNU_MP_VERSION_MINOR < 1)
|
||||
--- src/mp_std_bits.defs.hh.org 2012-12-30 00:37:03.037948187 +0100
|
||||
+++ src/mp_std_bits.defs.hh 2012-12-30 00:42:32.002424189 +0100
|
||||
@@ -38,6 +38,9 @@
|
||||
#endif // defined(PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS)
|
||||
void swap(mpq_class& x, mpq_class& y);
|
||||
|
||||
+#if __GNU_MP_VERSION < 5 \
|
||||
+ || (__GNU_MP_VERSION == 5 && __GNU_MP_VERSION_MINOR < 1)
|
||||
+
|
||||
namespace std {
|
||||
|
||||
#ifdef PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS
|
||||
@@ -164,6 +167,9 @@
|
||||
|
||||
} // namespace std
|
||||
|
||||
+#endif // __GNU_MP_VERSION < 5
|
||||
+ // || (__GNU_MP_VERSION == 5 && __GNU_MP_VERSION_MINOR < 1)
|
||||
+
|
||||
#include "mp_std_bits.inlines.hh"
|
||||
|
||||
#endif // !defined(PPL_mp_std_bits_defs_hh)
|
@ -0,0 +1,85 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/ppl/ppl-0.12.1-r1.ebuild,v 1.2 2013/01/08 14:00:08 jer Exp $
|
||||
|
||||
EAPI="3"
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="The Parma Polyhedra Library provides numerical abstractions for analysis of complex systems"
|
||||
HOMEPAGE="http://bugseng.com/products/ppl"
|
||||
SRC_URI="http://bugseng.com/products/ppl/download/ftp/releases/${PV}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~sparc-solaris"
|
||||
IUSE="doc lpsol pch static-libs test"
|
||||
|
||||
RDEPEND=">=dev-libs/gmp-4.1.3[cxx]
|
||||
lpsol? ( sci-mathematics/glpk )
|
||||
!<dev-libs/cloog-ppl-0.15.10"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/m4"
|
||||
|
||||
pkg_setup() {
|
||||
if use test; then
|
||||
ewarn "The PPL testsuite will be run."
|
||||
ewarn "Note that this can take several hours to complete on a fast machine."
|
||||
epause 3
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/ppl-fix-gmp-5.1.0.patch" || die "Failed to patch"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--docdir="${EPREFIX}"/usr/share/doc/${PF} \
|
||||
--disable-debugging \
|
||||
--disable-optimization \
|
||||
$(use_enable doc documentation) \
|
||||
$(use_enable lpsol ppl_lpsol) \
|
||||
$(use_enable pch) \
|
||||
$(use_enable static-libs static) \
|
||||
--enable-interfaces="c cxx" \
|
||||
$(use test && echo --enable-check=quick)
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# default src_test runs with -j1, overriding it here saves about
|
||||
# 30 minutes and is recommended by upstream
|
||||
if emake -j1 check -n &> /dev/null; then
|
||||
emake check || die "tests failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die
|
||||
use static-libs || rm -f "${D}"/usr/lib*/libppl*.la
|
||||
|
||||
local docsdir="${ED}/usr/share/doc/${PF}"
|
||||
rm "${docsdir}"/gpl* "${docsdir}"/fdl* || die
|
||||
|
||||
if ! use doc; then
|
||||
rm -r "${docsdir}"/*-html/ || die
|
||||
fi
|
||||
|
||||
dodoc NEWS README* STANDARDS TODO
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
echo
|
||||
ewarn "After an upgrade of PPL it is important that you rebuild"
|
||||
ewarn "dev-libs/cloog-ppl."
|
||||
ewarn
|
||||
ewarn "If you use gcc-config to switch to an older compiler version than"
|
||||
ewarn "the one PPL was built with, PPL must be rebuilt with that version."
|
||||
ewarn
|
||||
ewarn "In both cases failure to do this will get you this error when"
|
||||
ewarn "graphite flags are used:"
|
||||
ewarn
|
||||
ewarn " sorry, unimplemented: Graphite loop optimizations cannot be used"
|
||||
ewarn
|
||||
echo
|
||||
}
|
@ -0,0 +1,196 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/sbcl-1.1.3.ebuild,v 1.1 2013/01/08 10:29:40 grozin Exp $
|
||||
|
||||
EAPI=3
|
||||
inherit multilib eutils flag-o-matic pax-utils
|
||||
|
||||
#same order as http://www.sbcl.org/platform-table.html
|
||||
BV_X86=1.0.58
|
||||
BV_AMD64=1.1.3
|
||||
BV_PPC=1.0.28
|
||||
BV_SPARC=1.0.28
|
||||
BV_ALPHA=1.0.28
|
||||
BV_MIPS=1.0.23
|
||||
BV_MIPSEL=1.0.28
|
||||
|
||||
DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp."
|
||||
HOMEPAGE="http://sbcl.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
|
||||
x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
|
||||
amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
|
||||
ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
|
||||
sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
|
||||
alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )
|
||||
mips? ( !cobalt? ( mirror://sourceforge/sbcl/${PN}-${BV_MIPS}-mips-linux-binary.tar.bz2 ) )
|
||||
mips? ( cobalt? ( mirror://sourceforge/sbcl/${PN}-${BV_MIPSEL}-mipsel-linux-binary.tar.bz2 ) )"
|
||||
RESTRICT="mirror"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
|
||||
IUSE="+asdf ldb source +threads +unicode debug doc cobalt"
|
||||
|
||||
DEPEND="doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )"
|
||||
RDEPEND="elibc_glibc? ( >=sys-libs/glibc-2.3 || ( <sys-libs/glibc-2.6[nptl] >=sys-libs/glibc-2.6 ) )
|
||||
asdf? ( >=dev-lisp/gentoo-init-1.0 )"
|
||||
|
||||
# Disable warnings about executable stacks, as this won't be fixed soon by upstream
|
||||
QA_EXECSTACK="usr/bin/sbcl"
|
||||
|
||||
CONFIG="${S}/customize-target-features.lisp"
|
||||
ENVD="${T}/50sbcl"
|
||||
|
||||
usep() {
|
||||
use ${1} && echo "true" || echo "false"
|
||||
}
|
||||
|
||||
sbcl_feature() {
|
||||
echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
|
||||
}
|
||||
|
||||
sbcl_apply_features() {
|
||||
cat > "${CONFIG}" <<'EOF'
|
||||
(lambda (list)
|
||||
(flet ((enable (x) (pushnew x list))
|
||||
(disable (x) (setf list (remove x list))))
|
||||
EOF
|
||||
if use x86 || use amd64; then
|
||||
sbcl_feature "$(usep threads)" ":sb-thread"
|
||||
fi
|
||||
sbcl_feature "$(usep ldb)" ":sb-ldb"
|
||||
sbcl_feature "false" ":sb-test"
|
||||
sbcl_feature "$(usep unicode)" ":sb-unicode"
|
||||
sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
|
||||
cat >> "${CONFIG}" <<'EOF'
|
||||
)
|
||||
list)
|
||||
EOF
|
||||
cat "${CONFIG}"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
mv sbcl-*-linux sbcl-binary
|
||||
cd "${S}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/gentoo-fix_install_man.patch
|
||||
epatch "${FILESDIR}"/gentoo-fix_linux-os-c.patch
|
||||
|
||||
# To make the hardened compiler NOT compile with -fPIE -pie
|
||||
if gcc-specs-pie ; then
|
||||
einfo "Disabling PIE..."
|
||||
epatch "${FILESDIR}"/gentoo-fix_nopie_for_hardened_toolchain.patch
|
||||
fi
|
||||
|
||||
use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
|
||||
|
||||
# Some shells(such as dash) don't have "time" as builtin
|
||||
# and we don't want to DEPEND on sys-process/time
|
||||
sed "s,^time ,," -i make.sh
|
||||
sed "s,/lib,/$(get_libdir),g" -i install.sh
|
||||
sed "s,/usr/local/lib,/usr/$(get_libdir),g" -i src/runtime/runtime.c # #define SBCL_HOME ...
|
||||
|
||||
find . -type f -name .cvsignore -delete
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# customizing SBCL version as per
|
||||
# http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
|
||||
echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
|
||||
|
||||
# applying customizations
|
||||
sbcl_apply_features
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local bindir="${WORKDIR}"/sbcl-binary
|
||||
|
||||
strip-unsupported-flags ; filter-flags -fomit-frame-pointer
|
||||
|
||||
if host-is-pax ; then
|
||||
# To disable PaX on hardened systems
|
||||
pax-mark -C "${bindir}"/src/runtime/sbcl
|
||||
pax-mark -mr "${bindir}"/src/runtime/sbcl
|
||||
|
||||
# Hack to disable PaX on second GENESIS stage
|
||||
sed -i -e '/load/!s/^echo \/\/doing warm.*$/&\npaxctl -C \.\/src\/runtime\/sbcl\npaxctl -mprexs \.\/src\/runtime\/sbcl/' \
|
||||
"${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
|
||||
fi
|
||||
|
||||
# clear the environment to get rid of non-ASCII strings, see bug 174702
|
||||
# set HOME for paludis
|
||||
env - HOME="${T}" \
|
||||
CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
|
||||
CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
|
||||
GNUMAKE=make ./make.sh \
|
||||
"sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
|
||||
|| die "make failed"
|
||||
|
||||
# need to set HOME because libpango(used by graphviz) complains about it
|
||||
if use doc; then
|
||||
env - HOME="${T}" make -C doc/manual info html || die "Cannot build manual"
|
||||
env - HOME="${T}" make -C doc/internals info html || die "Cannot build internal docs"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ewarn "Unfortunately, it is known that some tests fail eg."
|
||||
ewarn "run-program.impure.lisp. This is an issue of the upstream's"
|
||||
ewarn "development and not of Gentoo's side. Please, before filing"
|
||||
ewarn "any bug(s) search for older submissions. Thank you."
|
||||
time ( cd tests && sh run-tests.sh )
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# install system-wide initfile
|
||||
dodir /etc/
|
||||
cat > "${D}"/etc/sbclrc <<EOF
|
||||
;;; The following is required if you want source location functions to
|
||||
;;; work in SLIME, for example.
|
||||
|
||||
(setf (logical-pathname-translations "SYS")
|
||||
'(("SYS:SRC;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/src/**/*.*")
|
||||
("SYS:CONTRIB;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/**/*.*")))
|
||||
EOF
|
||||
if use asdf; then
|
||||
cat >> "${D}"/etc/sbclrc <<EOF
|
||||
|
||||
;;; Setup ASDF2
|
||||
(load "/etc/common-lisp/gentoo-init.lisp")
|
||||
EOF
|
||||
fi
|
||||
|
||||
# Install documentation
|
||||
unset SBCL_HOME
|
||||
INSTALL_ROOT="${D}/usr" LIB_DIR="/usr/$(get_libdir)" DOC_DIR="${D}/usr/share/doc/${PF}" \
|
||||
sh install.sh || die "install.sh failed"
|
||||
|
||||
# rm empty directories lest paludis complain about this
|
||||
find "${D}" -empty -type d -exec rmdir -v {} +
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/manual/
|
||||
doinfo doc/manual/*.info*
|
||||
dohtml -r doc/internals/sbcl-internals
|
||||
doinfo doc/internals/sbcl-internals.info
|
||||
docinto internals-notes && dodoc doc/internals-notes/*
|
||||
else
|
||||
rm -Rv "${D}/usr/share/doc/${PF}"
|
||||
fi
|
||||
|
||||
dodoc BUGS CREDITS INSTALL NEWS OPTIMIZATIONS PRINCIPLES README STYLE TLA TODO
|
||||
|
||||
# install the SBCL source
|
||||
if use source; then
|
||||
./clean.sh
|
||||
cp -av src "${D}/usr/$(get_libdir)/sbcl/"
|
||||
fi
|
||||
|
||||
# necessary for running newly-saved images
|
||||
echo "SBCL_HOME=/usr/$(get_libdir)/${PN}" > "${ENVD}"
|
||||
echo "SBCL_SOURCE_ROOT=/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
|
||||
doenvd "${ENVD}"
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyasn1/pyasn1-0.1.6.ebuild,v 1.1 2013/01/08 15:56:20 idella4 Exp $
|
||||
|
||||
EAPI="4"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="*-jython"
|
||||
|
||||
inherit distutils
|
||||
|
||||
DESCRIPTION="ASN.1 library for Python"
|
||||
HOMEPAGE="http://pyasn1.sourceforge.net/ http://pypi.python.org/pypi/pyasn1"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE="doc"
|
||||
|
||||
DEPEND="dev-python/setuptools"
|
||||
RDEPEND=""
|
||||
|
||||
src_test() {
|
||||
testing() {
|
||||
PYTHONPATH="build-${PYTHON_ABI}/lib:." "$(PYTHON)" test/suite.py
|
||||
}
|
||||
python_execute_function testing
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
|
||||
if use doc; then
|
||||
dohtml doc/*
|
||||
else
|
||||
dohtml doc/pyasn1-tutorial.html
|
||||
fi
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST pycparser-2.07.tar.gz 162408 SHA256 ab1d0422a58c95d6511e33c1f8d3f36169c70a3158f0867342dc7e359e1889e1 SHA512 656a1423832795cb7241ffe1e77030886512a0be47d62a280007e365e0ff7b6738a42c8cfa0a0c949d900111d03afcb643843d3cdfeb532b00c51dd515028da3 WHIRLPOOL 4f822572fbdd0deaacfad32284a0b43e5a1e5de18f6e0d53e26b6eee8d3876bfcd6c86fb5991852ccd99625f4729a413a298bcd0f5e3050068125d9ad1c140de
|
||||
DIST pycparser-2.08.tar.gz 164243 SHA256 48165dbc4738973cff67d2986e22013d78634df2dcdf58b57a1e341cc34ef028 SHA512 3cafe0c01962fc08b0338b20e47501c10c751e7fde6d68902e541bd9baff6b89404ba659d46c48faf54800b0f05863cde06f8917809848ae5ff1ff4b629cde08 WHIRLPOOL 2d05668a54b85f913f7745ce051269a10a47ee3e14bf2e37228a73a357c84b6637dc1dee68bf764b9bef0534dea1e3efd3d04f29002dada6edc4f13f4638c1a2
|
||||
DIST pycparser-2.09.1.tar.bz2 170700 SHA256 e36f20fc0042ec86c8a2cc3a48521e41614ba109d77199554fa189bfb19bdb1d SHA512 32fd53506b533eedc90d09b0b3b39c7a53fa18d52ad234d7f055ca5368a809faaa830c274a585bac17be90a8c25c7fae0b2dd221c935a8b2e55f914a50f2baea WHIRLPOOL 2ab907cd4d120035f4ac739d690e9b3ee648dc5995b6507aea746bc21da94ff14518b212d3f6bbd141f5e2eaf6d833d06aea130d1d99d42164346c57ab5c7842
|
||||
|
@ -0,0 +1,26 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/pycparser/pycparser-2.09.1.ebuild,v 1.1 2013/01/08 02:51:30 radhermit Exp $
|
||||
|
||||
EAPI="5"
|
||||
# 3.3 not supported due to nose lacking support
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_2} )
|
||||
|
||||
inherit distutils-r1 vcs-snapshot
|
||||
|
||||
DESCRIPTION="C parser and AST generator written in Python"
|
||||
HOMEPAGE="https://bitbucket.org/eliben/pycparser/"
|
||||
SRC_URI="https://bitbucket.org/eliben/${PN}/get/release_v${PV}.tar.bz2 -> ${P}.tar.bz2"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="dev-python/ply"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-python/nose[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_test() {
|
||||
nosetests || die
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/unittest2/unittest2-0.5.1-r1.ebuild,v 1.1 2013/01/07 21:59:41 mgorny Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} pypy{1_9,2_0} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
PY3_P=${PN}py3k-${PV}
|
||||
|
||||
DESCRIPTION="The new features in unittest for Python 2.7 backported to Python 2.4+"
|
||||
HOMEPAGE="http://pypi.python.org/pypi/unittest2
|
||||
http://pypi.python.org/pypi/unittest2py3k http://code.google.com/p/unittest-ext/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
|
||||
mirror://pypi/${PN:0:1}/${PN}/${PY3_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
python_prepare_all() {
|
||||
# Disable versioning of unit2 script to avoid collision with versioning performed by distutils_src_install().
|
||||
sed -i -e "/'%s = unittest2:main_' % SCRIPT2,/d" setup.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
select_source() {
|
||||
if [[ ${EPYTHON} == python3* ]]; then
|
||||
cd "${WORKDIR}"/${PY3_P} || die
|
||||
else
|
||||
cd "${S}" || die
|
||||
fi
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
select_source
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# multiprocessing causes test failure with signals
|
||||
local DISTUTILS_NO_PARALLEL_BUILD=1
|
||||
|
||||
distutils-r1_src_test
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cd "${BUILD_DIR}" || die
|
||||
scripts/unit2 discover -s lib || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install() {
|
||||
select_source
|
||||
distutils-r1_python_install
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-rails/rspec-rails-2.12.1.ebuild,v 1.1 2013/01/08 06:36:42 graaff Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
USE_RUBY="ruby18 ruby19 ree18"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
|
||||
|
||||
inherit ruby-fakegem versionator
|
||||
|
||||
DESCRIPTION="RSpec's official Ruby on Rails plugin"
|
||||
HOMEPAGE="http://rspec.info/"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="2"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
SUBVERSION="$(get_version_component_range 1-2)"
|
||||
|
||||
ruby_add_rdepend "=dev-ruby/activesupport-3*
|
||||
=dev-ruby/actionpack-3*
|
||||
=dev-ruby/railties-3*
|
||||
=dev-ruby/rspec-${SUBVERSION}*"
|
||||
|
||||
# Depend on the package being already installed for tests, because
|
||||
# requiring ammeter will load it, and we need a consistent set of rspec
|
||||
# and rspec-rails for that to work.
|
||||
ruby_add_bdepend "test? ( >=dev-ruby/ammeter-0.2.5 ~dev-ruby/rspec-rails-${PV} )"
|
@ -1,102 +0,0 @@
|
||||
--- game/filemagic.hh.old 2012-11-05 12:05:34.723680403 +0100
|
||||
+++ game/filemagic.hh 2012-11-05 12:06:06.605860472 +0100
|
||||
@@ -71,7 +71,7 @@
|
||||
// For now, just check the extension an assume it's not lying.
|
||||
|
||||
// Get file extension in lower case
|
||||
- std::string ext = filename.extension();
|
||||
+ std::string ext = filename.extension().string();
|
||||
// somehow this does not convert the extension to lower case:
|
||||
//std::for_each(ext.begin(), ext.end(), static_cast<int(*)(int)>(std::tolower));
|
||||
std::transform(ext.begin(), ext.end(), ext.begin(), ::tolower );
|
||||
--- game/songparser-ini.cc.old 2012-11-05 11:58:15.792411732 +0100
|
||||
+++ game/songparser-ini.cc 2012-11-05 11:58:59.539974896 +0100
|
||||
@@ -94,7 +94,7 @@
|
||||
// Search the dir for the music files
|
||||
for (boost::filesystem::directory_iterator dirIt(s.path), dirEnd; dirIt != dirEnd; ++dirIt) {
|
||||
boost::filesystem::path p = dirIt->path();
|
||||
- std::string name = p.leaf(); // File basename (notes.txt)
|
||||
+ std::string name = p.filename().string(); // File basename (notes.txt)
|
||||
if (regex_match(name.c_str(), match, midifile)) {
|
||||
s.midifilename = name;
|
||||
} else if (regex_match(name.c_str(), match, audiofile_background)) {
|
||||
--- game/backgrounds.cc.old 2012-11-05 11:48:05.279711751 +0100
|
||||
+++ game/backgrounds.cc 2012-11-05 11:48:42.220736233 +0100
|
||||
@@ -55,8 +55,8 @@
|
||||
for (fs::directory_iterator dirIt(parent), dirEnd; m_loading && dirIt != dirEnd; ++dirIt) {
|
||||
fs::path p = dirIt->path();
|
||||
if (fs::is_directory(p)) { reload_internal(p); continue; }
|
||||
- std::string name = p.leaf(); // File basename
|
||||
- std::string path = p.directory_string(); // Path without filename
|
||||
+ std::string name = p.filename().string(); // File basename
|
||||
+ std::string path = p.string(); // Path without filename
|
||||
path.erase(path.size() - name.size());
|
||||
if (!regex_match(name.c_str(), match, expression)) continue;
|
||||
{
|
||||
--- game/xtime.hh.old 2012-11-05 11:04:23.511731845 +0100
|
||||
+++ game/xtime.hh 2012-11-05 11:19:13.960930800 +0100
|
||||
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
+#include <boost/version.hpp>
|
||||
#include <boost/thread/xtime.hpp>
|
||||
#include <cmath>
|
||||
|
||||
@@ -20,7 +21,11 @@
|
||||
}
|
||||
boost::xtime now() {
|
||||
boost::xtime time;
|
||||
+#if BOOST_VERSION >= 105000
|
||||
+ boost::xtime_get(&time, boost::TIME_UTC_);
|
||||
+#else
|
||||
boost::xtime_get(&time, boost::TIME_UTC);
|
||||
+#endif
|
||||
return time;
|
||||
}
|
||||
double seconds(boost::xtime const& time) {
|
||||
--- game/fs.cc.old 2012-11-05 11:23:41.147282412 +0100
|
||||
+++ game/fs.cc 2012-11-05 11:24:55.219383768 +0100
|
||||
@@ -127,7 +127,7 @@
|
||||
|
||||
bool isThemeResource(fs::path filename){
|
||||
try {
|
||||
- std::string themefile = getThemePath(filename.filename());
|
||||
+ std::string themefile = getThemePath(filename.filename().string());
|
||||
return themefile == filename;
|
||||
} catch (...) { return false; }
|
||||
}
|
||||
--- game/cache.cc.old 2012-11-05 10:51:36.981446602 +0100
|
||||
+++ game/cache.cc 2012-11-05 10:51:53.491277792 +0100
|
||||
@@ -9,7 +9,7 @@
|
||||
fs::path constructSVGCacheFileName(fs::path const& svgfilename, double factor){
|
||||
fs::path cache_filename;
|
||||
std::string const lod = (boost::format("%.2f") % factor).str();
|
||||
- std::string const cache_basename = svgfilename.filename() + ".cache_" + lod + ".png";
|
||||
+ std::string const cache_basename = svgfilename.filename().string() + ".cache_" + lod + ".png";
|
||||
|
||||
if (isThemeResource(svgfilename)) {
|
||||
std::string const theme_name = (config["game/theme"].s().empty() ? "default" : config["game/theme"].s());
|
||||
--- game/songs.cc.old 2012-11-05 11:35:51.876756665 +0100
|
||||
+++ game/songs.cc 2012-11-05 11:36:55.805536727 +0100
|
||||
@@ -67,8 +67,8 @@
|
||||
for (fs::directory_iterator dirIt(parent), dirEnd; m_loading && dirIt != dirEnd; ++dirIt) {
|
||||
fs::path p = dirIt->path();
|
||||
if (fs::is_directory(p)) { reload_internal(p); continue; }
|
||||
- std::string name = p.leaf(); // File basename (notes.txt)
|
||||
- std::string path = p.directory_string(); // Path without filename
|
||||
+ std::string name = p.filename().string(); // File basename (notes.txt)
|
||||
+ std::string path = p.string(); // Path without filename
|
||||
path.erase(path.size() - name.size());
|
||||
if (!regex_match(name.c_str(), match, expression)) continue;
|
||||
try {
|
||||
--- game/songparser.cc.old 2012-11-05 11:26:13.314214039 +0100
|
||||
+++ game/songparser.cc 2012-11-05 11:27:58.917214975 +0100
|
||||
@@ -101,7 +101,7 @@
|
||||
|
||||
for (boost::filesystem::directory_iterator dirIt(s.path), dirEnd; dirIt != dirEnd; ++dirIt) {
|
||||
boost::filesystem::path p = dirIt->path();
|
||||
- std::string name = p.leaf(); // File basename
|
||||
+ std::string name = p.filename().string(); // File basename
|
||||
if (m_song.cover.empty() && regex_match(name.c_str(), match, coverfile)) {
|
||||
m_song.cover = name;
|
||||
} else if (m_song.background.empty() && regex_match(name.c_str(), match, backgroundfile)) {
|
@ -1,13 +0,0 @@
|
||||
--- game/ffmpeg.cc.old 2012-02-19 09:01:01.086108323 +0100
|
||||
+++ game/ffmpeg.cc 2012-02-19 09:02:27.157984673 +0100
|
||||
@@ -60,8 +60,8 @@
|
||||
for (unsigned int i=0; i<pFormatCtx->nb_streams; i++) {
|
||||
AVCodecContext* cc = pFormatCtx->streams[i]->codec;
|
||||
cc->workaround_bugs = FF_BUG_AUTODETECT;
|
||||
- if (videoStream == -1 && cc->codec_type==CODEC_TYPE_VIDEO) videoStream = i;
|
||||
- if (audioStream == -1 && cc->codec_type==CODEC_TYPE_AUDIO) audioStream = i;
|
||||
+ if (videoStream == -1 && cc->codec_type==AVMEDIA_TYPE_VIDEO) videoStream = i;
|
||||
+ if (audioStream == -1 && cc->codec_type==AVMEDIA_TYPE_AUDIO) audioStream = i;
|
||||
}
|
||||
if (videoStream == -1 && decodeVideo) throw std::runtime_error("No video stream found");
|
||||
if (audioStream == -1 && decodeAudio) throw std::runtime_error("No audio stream found");
|
@ -1,29 +0,0 @@
|
||||
--- game/CMakeLists.txt.old 2012-02-20 13:19:35.219635192 +0100
|
||||
+++ game/CMakeLists.txt 2012-02-20 13:20:06.025469808 +0100
|
||||
@@ -149,5 +149,5 @@
|
||||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/config.cmake.hh" "${CMAKE_CURRENT_BINARY_DIR}/config.hh" @ONLY)
|
||||
include_directories("${CMAKE_CURRENT_BINARY_DIR}")
|
||||
|
||||
-install(TARGETS performous DESTINATION bin)
|
||||
+install(TARGETS performous DESTINATION @GENTOO_BINDIR@)
|
||||
|
||||
--- game/fs.cc.old 2012-02-20 20:09:48.171892171 +0100
|
||||
+++ game/fs.cc 2012-02-20 20:16:14.197400202 +0100
|
||||
@@ -195,6 +195,7 @@
|
||||
if (root) config_list.push_back(std::string(root) + "/" SHARED_DATA_DIR + configFile.string());
|
||||
fs::path exec = plugin::execname();
|
||||
if (!exec.empty()) config_list.push_back(exec.parent_path().string() + "/../" SHARED_DATA_DIR + configFile.string());
|
||||
+ config_list.push_back(SHARED_DATA_DIR + configFile.string());
|
||||
ConfigList::const_iterator it = std::find_if(config_list.begin(), config_list.end(), static_cast<bool(&)(fs::path const&)>(fs::exists));
|
||||
if (it == config_list.end()) {
|
||||
throw std::runtime_error("Could not find default config file " + configFile.string());
|
||||
--- game/fs.cc.old 2012-02-20 20:49:35.610728056 +0100
|
||||
+++ game/fs.cc 2012-02-20 20:57:03.117084432 +0100
|
||||
@@ -167,6 +167,7 @@
|
||||
|
||||
// Adding relative path from executable
|
||||
dirs.push_back(plugin::execname().parent_path().parent_path() / shareDir);
|
||||
+ dirs.push_back(shareDir);
|
||||
#ifndef _WIN32
|
||||
// Adding XDG_DATA_DIRS
|
||||
{
|
@ -1,10 +0,0 @@
|
||||
--- game/unicode.cc.old 2012-06-27 13:34:43.485706157 +0200
|
||||
+++ game/unicode.cc 2012-06-27 13:34:56.825769500 +0200
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
#include <glibmm/ustring.h>
|
||||
-#include <glib/gconvert.h>
|
||||
#include <sstream>
|
||||
#include <stdexcept>
|
||||
|
@ -1,41 +0,0 @@
|
||||
diff -urN Performous-0.6.1-Source.old/cmake/Modules/FindAVUtil.cmake Performous-0.6.1-Source/cmake/Modules/FindAVUtil.cmake
|
||||
--- Performous-0.6.1-Source.old/cmake/Modules/FindAVUtil.cmake 2012-05-16 13:44:26.112930173 +0200
|
||||
+++ Performous-0.6.1-Source/cmake/Modules/FindAVUtil.cmake 2012-05-16 13:56:10.229914635 +0200
|
||||
@@ -25,9 +25,15 @@
|
||||
if(EXISTS "${AVUtil_INCLUDE_DIR}/${suffix}avutil.h")
|
||||
set(AVUtil_INCLUDE "${suffix}avutil.h")
|
||||
endif(EXISTS "${AVUtil_INCLUDE_DIR}/${suffix}avutil.h")
|
||||
+ if(EXISTS "${AVUtil_INCLUDE_DIR}/${suffix}mathematics.h")
|
||||
+ set(AVUtilMath_INCLUDE "${suffix}mathematics.h")
|
||||
+ endif(EXISTS "${AVUtil_INCLUDE_DIR}/${suffix}mathematics.h")
|
||||
endif(NOT AVUtil_INCLUDE)
|
||||
endforeach(suffix)
|
||||
|
||||
+ if(NOT AVUtilMath_INCLUDE)
|
||||
+ message(FATAL_ERROR "Found mathematics.h include dir, but not the header file. Perhaps you need to clear CMake cache?")
|
||||
+ endif(NOT AVUtilMath_INCLUDE)
|
||||
if(NOT AVUtil_INCLUDE)
|
||||
message(FATAL_ERROR "Found avutil.h include dir, but not the header file. Perhaps you need to clear CMake cache?")
|
||||
endif(NOT AVUtil_INCLUDE)
|
||||
diff -urN Performous-0.6.1-Source.old/game/config.cmake.hh Performous-0.6.1-Source/game/config.cmake.hh
|
||||
--- Performous-0.6.1-Source.old/game/config.cmake.hh 2012-05-16 13:44:26.103930173 +0200
|
||||
+++ Performous-0.6.1-Source/game/config.cmake.hh 2012-05-16 13:59:24.552910345 +0200
|
||||
@@ -15,6 +15,7 @@
|
||||
#define AVCODEC_INCLUDE <@AVCodec_INCLUDE@>
|
||||
#define AVFORMAT_INCLUDE <@AVFormat_INCLUDE@>
|
||||
#define SWSCALE_INCLUDE <@SWScale_INCLUDE@>
|
||||
+#define AVUTILMATH_INCLUDE <@AVUtilMath_INCLUDE@>
|
||||
|
||||
#endif
|
||||
|
||||
diff -urN Performous-0.6.1-Source.old/game/ffmpeg.cc Performous-0.6.1-Source/game/ffmpeg.cc
|
||||
--- Performous-0.6.1-Source.old/game/ffmpeg.cc 2012-05-16 13:44:26.101930173 +0200
|
||||
+++ Performous-0.6.1-Source/game/ffmpeg.cc 2012-05-16 14:00:38.278908717 +0200
|
||||
@@ -10,6 +10,7 @@
|
||||
#include AVCODEC_INCLUDE
|
||||
#include AVFORMAT_INCLUDE
|
||||
#include SWSCALE_INCLUDE
|
||||
+#include AVUTILMATH_INCLUDE
|
||||
}
|
||||
|
||||
// #define USE_FFMPEG_CRASH_RECOVERY
|
@ -1,11 +0,0 @@
|
||||
--- game/image.hh.old 2012-02-19 09:20:09.215987761 +0100
|
||||
+++ game/image.hh 2012-02-19 09:20:50.418077218 +0100
|
||||
@@ -26,7 +26,7 @@
|
||||
}
|
||||
void loadPNG_internal(png_structp pngPtr, png_infop infoPtr, std::ifstream& file, std::vector<unsigned char>& image, std::vector<png_bytep>& rows, unsigned& w, unsigned& h) {
|
||||
if (setjmp(png_jmpbuf(pngPtr))) throw std::runtime_error("Reading PNG failed");
|
||||
- png_set_read_fn(pngPtr,(voidp)&file, readPngHelper);
|
||||
+ png_set_read_fn(pngPtr,(png_voidp)&file, readPngHelper);
|
||||
png_read_info(pngPtr, infoPtr);
|
||||
png_set_expand(pngPtr); // Expand everything to RGB(A)
|
||||
png_set_strip_16(pngPtr); // Strip everything down to 8 bit/component
|
@ -1,15 +0,0 @@
|
||||
--- lang/CMakeLists.txt
|
||||
+++ lang/CMakeLists.txt
|
||||
@@ -7,5 +7,11 @@
|
||||
set(mofile ${CMAKE_CURRENT_BINARY_DIR}/${language}.mo)
|
||||
add_custom_command(OUTPUT ${mofile} COMMAND ${Msgfmt_BIN} -v "${pofile}" -o ${mofile} MAIN_DEPENDENCY ${pofile} COMMENT "Building ${language} locale" VERBATIM)
|
||||
add_custom_target(locale_${language} ALL DEPENDS ${mofile}) # Make sure the mofiles are always built
|
||||
- install(FILES ${mofile} DESTINATION ${LOCALE_DIR}/${language}/LC_MESSAGES RENAME ${CMAKE_PROJECT_NAME}.mo)
|
||||
endforeach(language)
|
||||
+foreach(language $ENV{LINGUAS})
|
||||
+ set(pofile ${CMAKE_CURRENT_SOURCE_DIR}/${language}.po)
|
||||
+ if (EXISTS ${pofile})
|
||||
+ set(mofile ${CMAKE_CURRENT_BINARY_DIR}/${language}.mo)
|
||||
+ install(FILES ${mofile} DESTINATION ${LOCALE_DIR}/${language}/LC_MESSAGES RENAME ${CMAKE_PROJECT_NAME}.mo)
|
||||
+ endif()
|
||||
+endforeach(language)
|
@ -1,112 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/games-arcade/performous/performous-0.6.1.ebuild,v 1.10 2012/11/05 11:44:38 tupone Exp $
|
||||
|
||||
EAPI="3"
|
||||
|
||||
inherit flag-o-matic base cmake-utils games
|
||||
|
||||
MY_PN=Performous
|
||||
MY_P=${MY_PN}-${PV}
|
||||
SONGS_PN=ultrastar-songs
|
||||
|
||||
DESCRIPTION="SingStar GPL clone"
|
||||
HOMEPAGE="http://sourceforge.net/projects/performous/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MY_P}-Source.tar.bz2
|
||||
songs? (
|
||||
mirror://sourceforge/${PN}/${SONGS_PN}-restricted-3.zip
|
||||
mirror://sourceforge/${PN}/${SONGS_PN}-jc-1.zip
|
||||
mirror://sourceforge/${PN}/${SONGS_PN}-libre-3.zip
|
||||
mirror://sourceforge/${PN}/${SONGS_PN}-shearer-1.zip
|
||||
)"
|
||||
|
||||
LICENSE="GPL-2
|
||||
songs? (
|
||||
CCPL-Attribution-ShareAlike-NonCommercial-2.5
|
||||
CCPL-Attribution-NonCommercial-NoDerivs-2.5
|
||||
)"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="songs tools"
|
||||
|
||||
RDEPEND="dev-cpp/glibmm
|
||||
dev-cpp/libxmlpp
|
||||
media-libs/portaudio
|
||||
>=dev-libs/boost-1.36
|
||||
dev-libs/glib
|
||||
dev-libs/libxml2
|
||||
gnome-base/librsvg
|
||||
media-gfx/imagemagick
|
||||
virtual/jpeg
|
||||
media-libs/libpng
|
||||
media-libs/libsdl
|
||||
virtual/ffmpeg
|
||||
virtual/opengl
|
||||
virtual/glu
|
||||
sys-libs/zlib
|
||||
x11-libs/cairo
|
||||
x11-libs/gdk-pixbuf
|
||||
x11-libs/pango"
|
||||
DEPEND="${RDEPEND}
|
||||
media-libs/glew
|
||||
sys-apps/help2man"
|
||||
|
||||
S=${WORKDIR}/${MY_P}-Source
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-ffmpeg.patch
|
||||
"${FILESDIR}"/${P}-libav.patch
|
||||
"${FILESDIR}"/${P}-libpng.patch
|
||||
"${FILESDIR}"/${P}-gentoo.patch
|
||||
"${FILESDIR}"/${P}-linguas.patch
|
||||
"${FILESDIR}"/${P}-glib232.patch
|
||||
"${FILESDIR}"/${P}-boost150.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
base_src_prepare
|
||||
sed -i \
|
||||
-e "s:@GENTOO_BINDIR@:${GAMES_BINDIR}:" \
|
||||
game/CMakeLists.txt \
|
||||
|| die
|
||||
|
||||
strip-linguas -u lang
|
||||
|
||||
# how do I hate boost? Let me count the ways...
|
||||
local boost_ver=$(best_version ">=dev-libs/boost-1.36")
|
||||
|
||||
boost_ver=${boost_ver/*boost-/}
|
||||
boost_ver=${boost_ver%.*}
|
||||
boost_ver=${boost_ver/./_}
|
||||
|
||||
einfo "Using boost version ${boost_ver}"
|
||||
append-cxxflags \
|
||||
-I/usr/include/boost-${boost_ver}
|
||||
append-ldflags \
|
||||
-L/usr/$(get_libdir)/boost-${boost_ver}
|
||||
export BOOST_INCLUDEDIR="/usr/include/boost-${boost_ver}"
|
||||
export BOOST_LIBRARYDIR="/usr/$(get_libdir)/boost-${boost_ver}"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
$(cmake-utils_use_enable tools TOOLS)
|
||||
-DCMAKE_VERBOSE_MAKEFILE=TRUE
|
||||
-DSHARE_INSTALL="${GAMES_DATADIR}"/${PN}
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
if use songs ; then
|
||||
insinto "${GAMES_DATADIR}"/${PN}
|
||||
doins -r "${WORKDIR}/songs" || die
|
||||
fi
|
||||
dodoc docs/{Authors,DeveloperReadme,instruments,TODO}.txt
|
||||
prepgamesdirs
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST cyphesis-0.5.26.tar.bz2 755060 SHA256 eff10beeafeea72a045a60caf1793270ee5406864ab22d086dc5fc902ad9b394 SHA512 04b90948fa70fa313761cbed08f10423ff3f8578e2837c0791f1e0e2a2ed85eb883380d80b6cd71efdb6043fab0c233ba8df81e9b5a26b6082302ccb0a9793e2 WHIRLPOOL af52e1131bc80b96d7852c7cd354fd06d542d2324bbf0885e4eb7bac43e73bf1755af57c8d3226fae9fc39caa0f3bf52a722dc7cfe0ab111950d811866ec23d6
|
||||
DIST cyphesis-0.6.0.tar.bz2 840777 SHA256 b6988e6dbdf7b601bf6d9fc7456fa7ad376f96ad350b3da3d9c4714fa43a52ad SHA512 5aae35ac7c15f0ebde4eb830523cd6bad22b5e5800e3b63fbbcecfa54970bfc4848787730a4437a5db2489fa69e14dde73ca0953a0b96805272fd5250f43d120 WHIRLPOOL 315e76c35a3ef2e79a9780cbff52b800506f7b99f76704b750041160fed86d470fe1fbd681b9d77f5f5b9383fdb7284d5871e4823245b382b2244bdbd3984592
|
||||
|
@ -1,52 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/games-server/cyphesis/cyphesis-0.5.26.ebuild,v 1.5 2012/08/04 10:51:53 ago Exp $
|
||||
|
||||
EAPI=2
|
||||
PYTHON_DEPEND=2
|
||||
inherit autotools python eutils games
|
||||
|
||||
DESCRIPTION="WorldForge server running small games"
|
||||
HOMEPAGE="http://worldforge.org/dev/eng/servers/cyphesis"
|
||||
SRC_URI="mirror://sourceforge/worldforge/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=media-libs/skstream-0.3.8
|
||||
>=dev-games/wfmath-0.3.11
|
||||
>=dev-games/mercator-0.3.0
|
||||
dev-libs/libgcrypt
|
||||
dev-libs/libsigc++:2
|
||||
sys-libs/ncurses
|
||||
sys-libs/readline
|
||||
=media-libs/atlas-c++-0.6*
|
||||
>=media-libs/varconf-0.6.4
|
||||
dev-db/postgresql-base"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-libs/libxml2
|
||||
virtual/pkgconfig"
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
games_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-gentoo.patch
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
egamesconf \
|
||||
--localstatedir=/var
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" confbackupdir="/usr/share/doc/${PF}/conf" \
|
||||
install || die "emake install failed"
|
||||
dodoc AUTHORS ChangeLog FIXME NEWS README THANKS TODO
|
||||
prepgamesdirs
|
||||
}
|
@ -1,41 +0,0 @@
|
||||
diff -ur cyphesis-0.5.20.orig/configure.ac cyphesis-0.5.20/configure.ac
|
||||
--- cyphesis-0.5.20.orig/configure.ac 2009-05-11 15:23:20.000000000 +0300
|
||||
+++ cyphesis-0.5.20/configure.ac 2009-08-15 12:33:01.000000000 +0300
|
||||
@@ -342,26 +342,6 @@
|
||||
libraries required and where to obtain them.])
|
||||
])
|
||||
|
||||
-PKG_CHECK_MODULES(AVAHI, avahi-client,
|
||||
- [
|
||||
- CPPFLAGS="$CPPFLAGS $AVAHI_CFLAGS"
|
||||
- MDNS_LIBS="$MDNS_LIBS $AVAHI_LIBS"
|
||||
- AC_DEFINE(HAVE_AVAHI, 1, [Define to 1 if you have avahi libs.])
|
||||
- ],
|
||||
- [
|
||||
- AC_MSG_RESULT([no])
|
||||
- PKG_CHECK_MODULES(HOWL, howl,
|
||||
- [
|
||||
- CPPFLAGS="$CPPFLAGS $HOWL_CFLAGS"
|
||||
- MDNS_LIBS="$MDNS_LIBS $HOWL_LIBS"
|
||||
- AC_DEFINE(HAVE_LIBHOWL, 1, [Define to 1 if you have howl libs.])
|
||||
- ],
|
||||
- [
|
||||
- AC_MSG_RESULT([no])
|
||||
- AC_MSG_NOTICE([Ommiting DNS-SD functionality.])
|
||||
- ])
|
||||
- ])
|
||||
-
|
||||
AM_PATH_PSQL(7.1.0,
|
||||
[
|
||||
if test "$PG_CFLAGS" != "-I/usr/include"; then
|
||||
diff -ur cyphesis-0.5.20.orig/Makefile.am cyphesis-0.5.20/Makefile.am
|
||||
--- cyphesis-0.5.20.orig/Makefile.am 2009-05-11 15:23:20.000000000 +0300
|
||||
+++ cyphesis-0.5.20/Makefile.am 2009-08-15 12:33:45.000000000 +0300
|
||||
@@ -3,7 +3,6 @@
|
||||
tools tests man dox
|
||||
|
||||
docdir = $(datadir)/doc/cyphesis-$(VERSION)
|
||||
-dist_doc_DATA = README COPYING AUTHORS THANKS NEWS FIXME
|
||||
|
||||
rulesetdir = $(datadir)/cyphesis/rulesets
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST 7kaa-source-2.14.3.tar.bz2 1181479 SHA256 9d3ba6e4d72495cf83eec922714f818c68974e9ad62e934608676d93a4b48aef SHA512 68ac040f8c9a717337a68e066ea54ce5448df04ecae7721e3b5f94a35871ab973a609e851b44cc73d212ff487e4eca4a2e1980eab7fd0ca92ad08c481ec808cc WHIRLPOOL f01a0bc3c7524d6532bdc4167c7ce3babe15b0092d0721a0b5d5793cb93c473ae2fe8e2f2adb663847f0060ebe27d2568928e72ce4f5bd9e3d0ad0a3b4803fd9
|
||||
DIST 7kaa-source-2.14.4.tar.bz2 27366752 SHA256 60b61f321db6c295330fb3fb21894bc41cb6e0bd797aff9abe45cf2392b49fa1 SHA512 7ee39aba89993d9f0041ab991e053069e0c3ab4298f74c0ec95e3f30f49a71731ef37d8870b1ab9afd97b1c4618a879492976006b8a513bfc4bc44dfac591bf0 WHIRLPOOL 4568d36278d4a286e0395b79ec06c03905b5e69be827faa80f4808c8b8fa097a65ac69ee5c58020dfcf21aa00649eaab2a3ac87a636b680167b4c83b3d3e5f73
|
||||
DIST 7kaa.png 559 SHA256 354f64479b55df2021ca67366abb4724218ca3676fde9e735bfb2218bc1559f4 SHA512 0ec1ba67107a7823943704879efaf12297c5441c43b54f49684550927b10dc40c657fe93eb7c4cc85208d08194f179c9602fd8df6545776f3e1b4481803b16e6 WHIRLPOOL cb896939453d8ed6fc425931bb1f5b74c62aeea67e71e4645fe79fc69fb13fae89d4959651fd95dcbb416c378b4ef44873dc6ebdabc1f2bb1fed3753332209da
|
||||
|
@ -0,0 +1,60 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/games-strategy/seven-kingdoms/seven-kingdoms-2.14.4.ebuild,v 1.2 2013/01/08 00:17:20 pinkbyte Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
AUTOTOOLS_AUTORECONF=1
|
||||
AUTOTOOLS_IN_SOURCE_BUILD=1
|
||||
|
||||
inherit autotools-utils games
|
||||
|
||||
MY_PN="7kaa"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Seven Kingdoms: Ancient Adversaries"
|
||||
HOMEPAGE="http://7kfans.com/"
|
||||
SRC_URI="mirror://sourceforge/skfans/${MY_PN}-source-${PV}.tar.bz2
|
||||
http://dev.gentoo.org/~pinkbyte/distfiles/${MY_PN}.png"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="network"
|
||||
|
||||
DEPEND="media-libs/libsdl[X,video]
|
||||
media-libs/openal
|
||||
network? ( media-libs/sdl-net )"
|
||||
RDEPEND="${DEPEND}"
|
||||
PDEPEND="games-strategy/seven-kingdoms-data"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
DOCS=( README )
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e '/#include <player_desc.h>/a\#include <string.h>' src/multiplayer/common/player_desc.cpp || die 'sed failed'
|
||||
|
||||
autotools-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# In current state debugging works only on Windows :-/
|
||||
egamesconf \
|
||||
$(use_enable network)
|
||||
--disable-debug \
|
||||
--without-directx \
|
||||
--without-wine \
|
||||
--program-suffix=".bin" \
|
||||
--datadir="${GAMES_DATADIR}/${MY_PN}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
|
||||
doicon "${DISTDIR}/${MY_PN}.png"
|
||||
games_make_wrapper "${MY_PN}" "${GAMES_BINDIR}/${MY_PN}.bin" "${GAMES_DATADIR}/${MY_PN}"
|
||||
make_desktop_entry "${MY_PN}" "Seven Kingdoms: Ancient Adversaries" "${MY_PN}" "Game;StrategyGame"
|
||||
|
||||
prepgamesdirs
|
||||
}
|
@ -1 +1 @@
|
||||
DIST zeitgeist-extensions-0.0.13.tar.gz 30700 SHA256 c8a93b419c7f81fad2dcda2aa40ae4a610432b971d7deca20bcd1451bd841d65
|
||||
DIST zeitgeist-extensions-0.0.13.tar.gz 30700 SHA256 c8a93b419c7f81fad2dcda2aa40ae4a610432b971d7deca20bcd1451bd841d65 SHA512 3ff54cca7d98b0805df038a4d04616e1eb2dd2bc3895f8e9ffaf16147f6efd3410e8ca19abe04d0ef94793427374db94fbe18db8d196e2d2d4cd304bd34bd3cd WHIRLPOOL d8dff29e46fd83fc19fa101ad4d14403395a0ea044852e4e1ee1c72a1f1518cb0502c35cd6526ffc89f529a5c4f8ed0623f2a60d00fbb815306e06cf163c7d5b
|
||||
|
@ -1,20 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>gnome</herd>
|
||||
<maintainer>
|
||||
<email>jlec@gentoo.org</email>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
<herd>gnome</herd>
|
||||
<maintainer>
|
||||
<email>jlec@gentoo.org</email>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
The Extensions allow manipulating events before/after insertion as well as
|
||||
before fetching from the engine. They run in the Zeitgeist process. Default
|
||||
Extension are Blacklists and Datasource Registery.
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="fts">Enable the full text search</flag>
|
||||
<flag name="geolocation">Add the physical location of the computer at the moment when events are inserted</flag>
|
||||
<flag name="memprofile">Memory profiling extension</flag>
|
||||
<flag name="sqldebug">debug zeitgeists sql statements</flag>
|
||||
<flag name="tracker">Notify Tracker on events</flag>
|
||||
</use>
|
||||
<use>
|
||||
<flag name="fts">Enable the full text search</flag>
|
||||
<flag name="geolocation">Add the physical location of the computer at the moment when events are inserted</flag>
|
||||
<flag name="memprofile">Memory profiling extension</flag>
|
||||
<flag name="sqldebug">debug zeitgeists sql statements</flag>
|
||||
<flag name="tracker">Notify Tracker on events</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
@ -1,69 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/zeitgeist-extensions/zeitgeist-extensions-0.0.13.ebuild,v 1.2 2012/04/23 20:12:42 jlec Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
PYTHON_DEPEND="2"
|
||||
PYTHON_USE_WITH="sqlite"
|
||||
|
||||
inherit python
|
||||
|
||||
DESCRIPTION="Extensions to the engine such as Teamgeist, Relevancy Providers and Machine Learning Algorithms"
|
||||
HOMEPAGE="https://launchpad.net/zeitgeist-extensions/"
|
||||
SRC_URI="http://launchpad.net/${PN}/trunk/fts-${PV}/+download/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
LICENSE="GPL-3"
|
||||
IUSE="fts geolocation memprofile sqldebug tracker"
|
||||
|
||||
RDEPEND="
|
||||
fts? (
|
||||
dev-libs/xapian-bindings[python]
|
||||
dev-python/dbus-python
|
||||
dev-python/pygobject
|
||||
dev-python/pyxdg
|
||||
)
|
||||
geolocation? (
|
||||
dev-python/dbus-python
|
||||
dev-python/python-geoclue
|
||||
)
|
||||
memprofile? (
|
||||
dev-python/dbus-python
|
||||
)
|
||||
sqldebug? ( dev-python/python-sqlparse )
|
||||
tracker? (
|
||||
app-misc/tracker
|
||||
dev-python/pygobject
|
||||
dev-python/dbus-python
|
||||
)"
|
||||
DEPEND=""
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/zeitgeist/_zeitgeist/engine/extensions
|
||||
use fts && doins ./fts/fts.py
|
||||
if use geolocation; then
|
||||
dodoc ./geolocation/example.py
|
||||
doins ./geolocation/geolocation.py
|
||||
fi
|
||||
if use memprofile; then
|
||||
doins ./memory-profile/profile_memory.py
|
||||
newdoc ./memory-profile/README README-memprofile
|
||||
fi
|
||||
use sqldebug && doins ./debug_sql/debug_sql.py
|
||||
use tracker && doins ./tracker/tracker.py
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
python_mod_optimize /usr/share/zeitgeist/_zeitgeist/engine/extensions
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
python_mod_cleanup /usr/share/zeitgeist/_zeitgeist/engine/extensions
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
--- analiyzagui/graph2d.cpp
|
||||
+++ analitzagui/graph2d.cpp
|
||||
@@ -33,6 +33,18 @@
|
||||
|
||||
#include <analitza/analyzer.h>
|
||||
#include "functionsmodel.h"
|
||||
+
|
||||
+// Stolen from kcalc.
|
||||
+#if defined(Q_OS_SOLARIS)
|
||||
+// Strictly by the standard, ininf() is a c99-ism which
|
||||
+// is unavailable in C++. The IEEE FP headers provide
|
||||
+// a function with similar functionality, so use that instead.
|
||||
+// However, !finite(a) == isinf(a) || isnan(a), so it's
|
||||
+// not 100% correct.
|
||||
+#include <ieeefp.h>
|
||||
+#define isinf(a) !finite(a)
|
||||
+#endif
|
||||
+
|
||||
#include "functionutils.h"
|
||||
#include "functionspainter.h"
|
||||
#include <cmath>
|
@ -1,13 +0,0 @@
|
||||
diff --git a/src/backends/qalculate/plotassistant/qalculateplotassistant.h b/src/backends/qalculate/plotassistant/qalculateplotassistant.h
|
||||
index ac55b51cd67c1c403f28ca99eb72390a2f03a834..22f6c215d5026594d96483741e48c9c7dce97ce5 100644
|
||||
--- a/src/backends/qalculate/plotassistant/qalculateplotassistant.h
|
||||
+++ b/src/backends/qalculate/plotassistant/qalculateplotassistant.h
|
||||
@@ -22,7 +22,7 @@
|
||||
#define QALCULATE_PLOT_ASSISTANT_H
|
||||
|
||||
#include "assistant.h"
|
||||
-#include "../settings.h"
|
||||
+#include "settings.h"
|
||||
#include "ui_qalculateplotdialog.h"
|
||||
#include <kdialog.h>
|
||||
#include <qlist.h>
|
@ -1,32 +0,0 @@
|
||||
Index: ffmpegthumbs-4.8.1/ffmpegthumbs/ffmpegthumbnailer/moviedecoder.cpp
|
||||
===================================================================
|
||||
--- ffmpegthumbs-4.8.1.orig/ffmpegthumbs/ffmpegthumbnailer/moviedecoder.cpp
|
||||
+++ ffmpegthumbs-4.8.1/ffmpegthumbs/ffmpegthumbnailer/moviedecoder.cpp
|
||||
@@ -52,12 +52,14 @@ MovieDecoder::~MovieDecoder()
|
||||
void MovieDecoder::initialize(const QString& filename)
|
||||
{
|
||||
av_register_all();
|
||||
+#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54,0,0)
|
||||
avcodec_init();
|
||||
+#endif
|
||||
avcodec_register_all();
|
||||
|
||||
QFileInfo fileInfo(filename);
|
||||
|
||||
- if ((!m_FormatContextWasGiven) && av_open_input_file(&m_pFormatContext, fileInfo.absoluteFilePath().toUtf8().data(), NULL, 0, NULL) != 0) {
|
||||
+ if ((!m_FormatContextWasGiven) && avformat_open_input(&m_pFormatContext, fileInfo.absoluteFilePath().toUtf8().data(), NULL, NULL) != 0) {
|
||||
kDebug() << "Could not open input file: " << fileInfo.absoluteFilePath();
|
||||
return;
|
||||
}
|
||||
@@ -89,7 +91,11 @@ void MovieDecoder::destroy()
|
||||
}
|
||||
|
||||
if ((!m_FormatContextWasGiven) && m_pFormatContext) {
|
||||
+#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54,0,0)
|
||||
av_close_input_file(m_pFormatContext);
|
||||
+#else
|
||||
+ avformat_close_input(&m_pFormatContext);
|
||||
+#endif
|
||||
m_pFormatContext = NULL;
|
||||
}
|
||||
|
@ -0,0 +1,85 @@
|
||||
From: Martin Sandsmark <martin.sandsmark@kde.org>
|
||||
Date: Thu, 09 Aug 2012 00:53:55 +0000
|
||||
Subject: Fix all warnings.
|
||||
X-Git-Tag: v4.9.80
|
||||
X-Git-Url: http://quickgit.kde.org/?p=ffmpegthumbs.git&a=commitdiff&h=42c7bacb5b98336de07882e0b04b44ea38d081db
|
||||
---
|
||||
Fix all warnings.
|
||||
|
||||
Port away from deprecated ffmpeg API and normalize data types.
|
||||
---
|
||||
|
||||
|
||||
--- a/ffmpegthumbnailer/imagewriter.cpp
|
||||
+++ b/ffmpegthumbnailer/imagewriter.cpp
|
||||
@@ -31,7 +31,7 @@
|
||||
void ImageWriter::writeFrame(VideoFrame& frame, QImage& image)
|
||||
{
|
||||
QImage previewImage(frame.width, frame.height, QImage::Format_RGB888);
|
||||
- for (int y = 0; y < frame.height; y++) {
|
||||
+ for (quint32 y = 0; y < frame.height; y++) {
|
||||
// Copy each line ..
|
||||
memcpy(previewImage.scanLine(y), &frame.frameData[y*frame.lineSize], frame.width*3);
|
||||
}
|
||||
|
||||
--- a/ffmpegthumbnailer/moviedecoder.cpp
|
||||
+++ b/ffmpegthumbnailer/moviedecoder.cpp
|
||||
@@ -61,7 +61,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
- if (av_find_stream_info(m_pFormatContext) < 0) {
|
||||
+ if (avformat_find_stream_info(m_pFormatContext, 0) < 0) {
|
||||
kDebug() << "Could not find stream information";
|
||||
return;
|
||||
}
|
||||
@@ -88,7 +88,7 @@
|
||||
}
|
||||
|
||||
if ((!m_FormatContextWasGiven) && m_pFormatContext) {
|
||||
- av_close_input_file(m_pFormatContext);
|
||||
+ avformat_close_input(&m_pFormatContext);
|
||||
m_pFormatContext = NULL;
|
||||
}
|
||||
|
||||
@@ -145,7 +145,7 @@
|
||||
|
||||
m_pVideoCodecContext->workaround_bugs = 1;
|
||||
|
||||
- if (avcodec_open(m_pVideoCodecContext, m_pVideoCodec) < 0) {
|
||||
+ if (avcodec_open2(m_pVideoCodecContext, m_pVideoCodec, 0) < 0) {
|
||||
kDebug() << "Could not open video codec";
|
||||
}
|
||||
}
|
||||
|
||||
--- a/ffmpegthumbnailer/videoframe.h
|
||||
+++ b/ffmpegthumbnailer/videoframe.h
|
||||
@@ -31,9 +31,9 @@
|
||||
VideoFrame(int width, int height, int lineSize)
|
||||
: width(width), height(height), lineSize(lineSize) {}
|
||||
|
||||
- int width;
|
||||
- int height;
|
||||
- int lineSize;
|
||||
+ quint32 width;
|
||||
+ quint32 height;
|
||||
+ quint32 lineSize;
|
||||
|
||||
std::vector<quint8> frameData;
|
||||
};
|
||||
|
||||
--- a/ffmpegthumbnailer/videothumbnailer.cpp
|
||||
+++ b/ffmpegthumbnailer/videothumbnailer.cpp
|
||||
@@ -175,9 +175,9 @@
|
||||
|
||||
void VideoThumbnailer::generateHistogram(const VideoFrame& videoFrame, Histogram<int>& histogram)
|
||||
{
|
||||
- for (int i = 0; i < videoFrame.height; ++i) {
|
||||
+ for (quint32 i = 0; i < videoFrame.height; ++i) {
|
||||
int pixelIndex = i * videoFrame.lineSize;
|
||||
- for (int j = 0; j < videoFrame.width * 3; j += 3) {
|
||||
+ for (quint32 j = 0; j < videoFrame.width * 3; j += 3) {
|
||||
++histogram.r[videoFrame.frameData[pixelIndex + j]];
|
||||
++histogram.g[videoFrame.frameData[pixelIndex + j + 1]];
|
||||
++histogram.b[videoFrame.frameData[pixelIndex + j + 2]];
|
||||
|
@ -1,22 +0,0 @@
|
||||
Desc: Fix missing isinf() for Solaris (same way as for kcalc).
|
||||
Author: Heiko Przybyl <zuxez@cs.tu-berlin.de>
|
||||
--- kalgebra-4.3.2/kalgebra/analitzagui/graph2d.cpp.orig 2009-10-16 15:31:29.804959916 +0200
|
||||
+++ kalgebra-4.3.2/kalgebra/analitzagui/graph2d.cpp 2009-10-16 15:35:36.879338408 +0200
|
||||
@@ -38,6 +38,17 @@
|
||||
#include "analitza.h"
|
||||
#include "functionsmodel.h"
|
||||
|
||||
+// Stolen from kcalc.
|
||||
+#if defined(Q_OS_SOLARIS)
|
||||
+// Strictly by the standard, ininf() is a c99-ism which
|
||||
+// is unavailable in C++. The IEEE FP headers provide
|
||||
+// a function with similar functionality, so use that instead.
|
||||
+// However, !finite(a) == isinf(a) || isnan(a), so it's
|
||||
+// not 100% correct.
|
||||
+#include <ieeefp.h>
|
||||
+#define isinf(a) !finite(a)
|
||||
+#endif
|
||||
+
|
||||
// #define DEBUG_GRAPH
|
||||
|
||||
using namespace std;
|
@ -1,192 +0,0 @@
|
||||
From d2eb25e1e7a7937b2ff4dcad9a581cd295820747 Mon Sep 17 00:00:00 2001
|
||||
From: Marcus Meissner <marcus@beiboot.suse.de>
|
||||
Date: Mon, 23 Jul 2012 17:19:52 +0200
|
||||
Subject: [PATCH] port to libgphoto2 2.5
|
||||
|
||||
Hi,
|
||||
|
||||
This ports kamera ioslave to be able to use either libgphoto2 2.4 or libgphoto2 2.5.
|
||||
---
|
||||
CMakeLists.txt | 9 +++++++++
|
||||
config-kamera.h.cmake | 3 +++
|
||||
kcontrol/kameradevice.cpp | 11 ++++++++++-
|
||||
kioslave/kamera.cpp | 39 +++++++++++++++++++++++++++++++++++----
|
||||
4 files changed, 57 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 8b317b4..1c343ad 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -10,6 +10,15 @@ include(MacroOptionalAddSubdirectory)
|
||||
find_package(Gphoto2)
|
||||
macro_log_feature(GPHOTO2_FOUND "gphoto2" "Required to build kamera" "http://heanet.dl.sourceforge.net/sourceforge/gphoto" TRUE "" "")
|
||||
|
||||
+check_library_exists(gphoto2_port gp_port_info_get_name "" GPHOTO2_5)
|
||||
+if(GPHOTO2_5)
|
||||
+ message(STATUS "Found libgphoto 2.5")
|
||||
+else(GPHOTO2_5)
|
||||
+ message(STATUS "libgphoto 2.5 not found, assuming libgphoto2 2.4")
|
||||
+endif(GPHOTO2_5)
|
||||
+set(HAVE_GPHOTO2_5 ${GPHOTO2_5})
|
||||
+
|
||||
+
|
||||
|
||||
configure_file(config-kamera.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kamera.h)
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
diff --git a/config-kamera.h.cmake b/config-kamera.h.cmake
|
||||
index e21ea9a..95a6a5d 100644
|
||||
--- a/config-kamera.h.cmake
|
||||
+++ b/config-kamera.h.cmake
|
||||
@@ -3,3 +3,6 @@
|
||||
|
||||
/* Define if we have __va_copy */
|
||||
#cmakedefine HAVE___VA_COPY 1
|
||||
+
|
||||
+/* Define if we have gp_port_info_get_name (trigger for 2.5) */
|
||||
+#cmakedefine HAVE_GPHOTO2_5 1
|
||||
diff --git a/kcontrol/kameradevice.cpp b/kcontrol/kameradevice.cpp
|
||||
index 4abc16f..38f1787 100644
|
||||
--- a/kcontrol/kameradevice.cpp
|
||||
+++ b/kcontrol/kameradevice.cpp
|
||||
@@ -35,6 +35,8 @@
|
||||
#include <KConfig>
|
||||
#include <KMessageBox>
|
||||
|
||||
+#include "config-kamera.h"
|
||||
+
|
||||
extern "C" {
|
||||
#include <gphoto2.h>
|
||||
}
|
||||
@@ -117,9 +119,9 @@ bool KCamera::initCamera()
|
||||
gp_port_info_list_new(&il);
|
||||
gp_port_info_list_load(il);
|
||||
gp_port_info_list_get_info(il, gp_port_info_list_lookup_path(il, m_path.toLocal8Bit().data()), &info);
|
||||
- gp_port_info_list_free(il);
|
||||
gp_camera_set_abilities(m_camera, m_abilities);
|
||||
gp_camera_set_port_info(m_camera, info);
|
||||
+ gp_port_info_list_free(il);
|
||||
|
||||
// this might take some time (esp. for non-existent camera) - better be done asynchronously
|
||||
result = gp_camera_init(m_camera, glob_context);
|
||||
@@ -373,8 +375,15 @@ KameraDeviceSelectDialog::KameraDeviceSelectDialog(QWidget *parent, KCamera *dev
|
||||
}
|
||||
for (int i = 0; i < gphoto_ports; i++) {
|
||||
if (gp_port_info_list_get_info(list, i, &info) >= 0) {
|
||||
+#ifdef HAVE_GPHOTO2_5
|
||||
+ char *xpath;
|
||||
+ gp_port_info_get_path (info, &xpath);
|
||||
+ if (strncmp(xpath, "serial:", 7) == 0)
|
||||
+ m_serialPortCombo->addItem(QString::fromLocal8Bit(xpath).mid(7));
|
||||
+#else
|
||||
if (strncmp(info.path, "serial:", 7) == 0)
|
||||
m_serialPortCombo->addItem(QString::fromLocal8Bit(info.path).mid(7));
|
||||
+#endif
|
||||
}
|
||||
}
|
||||
gp_port_info_list_free(list);
|
||||
diff --git a/kioslave/kamera.cpp b/kioslave/kamera.cpp
|
||||
index 9596b16..8549db0 100644
|
||||
--- a/kioslave/kamera.cpp
|
||||
+++ b/kioslave/kamera.cpp
|
||||
@@ -59,11 +59,19 @@ extern "C"
|
||||
{
|
||||
KDE_EXPORT int kdemain(int argc, char **argv);
|
||||
|
||||
+#ifdef HAVE_GPHOTO2_5
|
||||
+ static void frontendCameraStatus(GPContext *context, const char *status, void *data);
|
||||
+ static unsigned int frontendProgressStart(
|
||||
+ GPContext *context, float totalsize, const char *status,
|
||||
+ void *data
|
||||
+ );
|
||||
+#else
|
||||
static void frontendCameraStatus(GPContext *context, const char *format, va_list args, void *data);
|
||||
static unsigned int frontendProgressStart(
|
||||
GPContext *context, float totalsize, const char *format,
|
||||
va_list args, void *data
|
||||
);
|
||||
+#endif
|
||||
static void frontendProgressUpdate(
|
||||
GPContext *context, unsigned int id, float current, void *data
|
||||
);
|
||||
@@ -816,13 +824,13 @@ void KameraProtocol::setCamera(const QString& camera, const QString& port)
|
||||
return;
|
||||
}
|
||||
gp_port_info_list_get_info(port_info_list, idx, &port_info);
|
||||
- gp_port_info_list_free(port_info_list);
|
||||
|
||||
current_camera = camera;
|
||||
current_port = port;
|
||||
// create a new camera object
|
||||
gpr = gp_camera_new(&m_camera);
|
||||
if(gpr != GP_OK) {
|
||||
+ gp_port_info_list_free(port_info_list);
|
||||
error(KIO::ERR_UNKNOWN, QString::fromLocal8Bit(gp_result_as_string(gpr)));
|
||||
return;
|
||||
}
|
||||
@@ -838,6 +846,8 @@ void KameraProtocol::setCamera(const QString& camera, const QString& port)
|
||||
gp_camera_set_port_speed(m_camera, 0); // TODO: the value needs to be configurable
|
||||
kDebug(7123) << "Opening camera model " << camera << " at " << port;
|
||||
|
||||
+ gp_port_info_list_free(port_info_list);
|
||||
+
|
||||
QString errstr;
|
||||
if (!openCamera(errstr)) {
|
||||
if (m_camera)
|
||||
@@ -972,10 +982,16 @@ void frontendProgressUpdate(
|
||||
}
|
||||
|
||||
unsigned int frontendProgressStart(
|
||||
- GPContext * /*context*/, float totalsize, const char *format, va_list args,
|
||||
+ GPContext * /*context*/, float totalsize,
|
||||
+#ifdef HAVE_GPHOTO2_5
|
||||
+ const char *status,
|
||||
+#else
|
||||
+ const char *format, va_list args,
|
||||
+#endif
|
||||
void *data
|
||||
) {
|
||||
KameraProtocol *object = (KameraProtocol*)data;
|
||||
+#ifndef HAVE_GPHOTO2_5
|
||||
char *status;
|
||||
|
||||
/* We must copy the va_list to walk it twice, or all hell
|
||||
@@ -1009,14 +1025,26 @@ unsigned int frontendProgressStart(
|
||||
|
||||
object->infoMessage(QString::fromLocal8Bit(status));
|
||||
delete [] status;
|
||||
+#else
|
||||
+ /* libgphoto2 2.5 has resolved this already, no need for print */
|
||||
+ object->infoMessage(QString::fromLocal8Bit(status));
|
||||
+#endif
|
||||
object->totalSize((int)totalsize); // hack: call slot directly
|
||||
return GP_OK;
|
||||
}
|
||||
|
||||
// this callback function is activated on every status message from gphoto2
|
||||
-static void frontendCameraStatus(GPContext * /*context*/, const char *format, va_list args, void *data)
|
||||
-{
|
||||
+static void frontendCameraStatus(
|
||||
+ GPContext * /*context*/,
|
||||
+#ifdef HAVE_GPHOTO2_5
|
||||
+ const char *status,
|
||||
+#else
|
||||
+ const char *format, va_list args,
|
||||
+#endif
|
||||
+ void *data
|
||||
+) {
|
||||
KameraProtocol *object = (KameraProtocol*)data;
|
||||
+#ifndef HAVE_GPHOTO2_5
|
||||
char *status;
|
||||
|
||||
/* We must copy the va_list to walk it twice, or all hell
|
||||
@@ -1049,4 +1077,7 @@ static void frontendCameraStatus(GPContext * /*context*/, const char *format, va
|
||||
#endif
|
||||
object->infoMessage(QString::fromLocal8Bit(status));
|
||||
delete [] status;
|
||||
+#else
|
||||
+ object->infoMessage(QString::fromLocal8Bit(status));
|
||||
+#endif
|
||||
}
|
||||
--
|
||||
1.7.11.1
|
||||
|
@ -1,13 +0,0 @@
|
||||
Desc: Fix missing isinf() for Solaris.
|
||||
Author: Heiko Przybyl <zuxez@cs.tu-berlin.de>
|
||||
--- kcalc-4.3.2/kcalc/knumber/knumber_priv.cpp.orig 2009-10-16 13:14:46.107208004 +0200
|
||||
+++ kcalc-4.3.2/kcalc/knumber/knumber_priv.cpp 2009-10-16 13:14:56.639773377 +0200
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
#include <QRegExp>
|
||||
|
||||
-#if defined(Q_OS_SOLARIS) && defined(__SUNPRO_CC)
|
||||
+#if defined(Q_OS_SOLARIS)
|
||||
// Strictly by the standard, ininf() is a c99-ism which
|
||||
// is unavailable in C++. The IEEE FP headers provide
|
||||
// a function with similar functionality, so use that instead.
|
@ -1,29 +0,0 @@
|
||||
diff --git a/kdebase/workspace/cmake/modules/FindPAM.cmake b/kdebase/workspace/cmake/modules/FindPAM.cmake
|
||||
index 3499836..cd1c2bb 100644
|
||||
--- a/kdebase/workspace/cmake/modules/FindPAM.cmake
|
||||
+++ b/kdebase/workspace/cmake/modules/FindPAM.cmake
|
||||
@@ -5,6 +5,8 @@
|
||||
# PAM_INCLUDE_DIR - the pam include directory
|
||||
# PAM_LIBRARIES - libpam library
|
||||
|
||||
+if (WITH_PAM)
|
||||
+
|
||||
if (PAM_INCLUDE_DIR AND PAM_LIBRARY)
|
||||
# Already in cache, be silent
|
||||
set(PAM_FIND_QUIETLY TRUE)
|
||||
@@ -72,3 +74,5 @@ else (PAM_FOUND)
|
||||
endif (PAM_FOUND)
|
||||
|
||||
mark_as_advanced(PAM_INCLUDE_DIR PAM_LIBRARY DL_LIBRARY PAM_MESSAGE_CONST)
|
||||
+
|
||||
+endif (WITH_PAM)
|
||||
diff --git a/kdebase/workspace/cmake/modules/UnixAuth.cmake b/kdebase/workspace/cmake/modules/UnixAuth.cmake
|
||||
index ed8ab9e..ce3bcc2 100644
|
||||
--- a/kdebase/workspace/cmake/modules/UnixAuth.cmake
|
||||
+++ b/kdebase/workspace/cmake/modules/UnixAuth.cmake
|
||||
@@ -1,4 +1,4 @@
|
||||
-find_package(PAM)
|
||||
+macro_optional_find_package(PAM)
|
||||
|
||||
set(UNIXAUTH_LIBRARIES)
|
||||
set(UNIXAUTH_INCLUDE_DIRS)
|
@ -1,40 +0,0 @@
|
||||
Solaris has no d_type element in dir_ent.
|
||||
|
||||
Please refer to
|
||||
https://solaris.bionicmutton.org/hg/kde4-specs-432/rev/be96f7fc958a
|
||||
|
||||
--- kioslave/file/file_unix.cpp.orig 2009-03-10 13:26:04.000000000 +0100
|
||||
+++ kioslave/file/file_unix.cpp 2009-05-04 03:27:15.231305077 +0200
|
||||
@@ -42,7 +42,7 @@
|
||||
#include <grp.h>
|
||||
#include <utime.h>
|
||||
#include <pwd.h>
|
||||
-
|
||||
+#include <sys/stat.h>
|
||||
#if defined(HAVE_LIMITS_H)
|
||||
#include <limits.h> // PATH_MAX
|
||||
#endif
|
||||
@@ -338,15 +338,20 @@
|
||||
// files where QFile::encodeName(QFile::decodeName(a)) != a.
|
||||
QList<QByteArray> entryNames;
|
||||
KDE_struct_dirent *ep;
|
||||
+ KDE_struct_stat hajmaep;
|
||||
if (details == 0) {
|
||||
// Fast path (for recursive deletion, mostly)
|
||||
// Simply emit the name and file type, nothing else.
|
||||
while ( ( ep = KDE_readdir( dp ) ) != 0 ) {
|
||||
entry.clear();
|
||||
entry.insert(KIO::UDSEntry::UDS_NAME, QFile::decodeName(ep->d_name));
|
||||
- entry.insert(KIO::UDSEntry::UDS_FILE_TYPE,
|
||||
- (ep->d_type & DT_DIR) ? S_IFDIR : S_IFREG );
|
||||
- if (ep->d_type & DT_LNK) {
|
||||
+// entry.insert(KIO::UDSEntry::UDS_FILE_TYPE,
|
||||
+// (ep->d_type & DT_DIR) ? S_IFDIR : S_IFREG );
|
||||
+KDE_lstat( ep->d_name, &hajmaep );
|
||||
+entry.insert(KIO::UDSEntry::UDS_FILE_TYPE,
|
||||
+(S_ISDIR(hajmaep.st_mode)) ? S_IFDIR : S_IFREG );
|
||||
+// if (ep->d_type & DT_LNK) {
|
||||
+if (S_ISLNK(hajmaep.st_mode)) {
|
||||
// for symlinks obey the UDSEntry contract and provide UDS_LINK_DEST
|
||||
// even if we don't know the link dest (and DeleteJob doesn't care...)
|
||||
entry.insert(KIO::UDSEntry::UDS_LINK_DEST, QLatin1String("Dummy Link Target"));
|
@ -1,109 +0,0 @@
|
||||
Solaris does not provide getgrouplist().
|
||||
|
||||
Please refer to
|
||||
https://solaris.bionicmutton.org/hg/kde4-specs-432/file/539d9ed6c7b5/specs/patches/kdelibs-getgrouplist.diff
|
||||
|
||||
--- ./kio/kfile/kpropertiesdialog.cpp.orig Tue Apr 14 23:40:16 2009
|
||||
+++ ./kio/kfile/kpropertiesdialog.cpp Tue Apr 14 23:40:29 2009
|
||||
@@ -141,6 +141,101 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
+/*-
|
||||
+ * Copyright (c) 1991, 1993
|
||||
+ * The Regents of the University of California. All rights reserved.
|
||||
+ *
|
||||
+ * Redistribution and use in source and binary forms, with or without
|
||||
+ * modification, are permitted provided that the following conditions
|
||||
+ * are met:
|
||||
+ * 1. Redistributions of source code must retain the above copyright
|
||||
+ * notice, this list of conditions and the following disclaimer.
|
||||
+ * 2. Redistributions in binary form must reproduce the above copyright
|
||||
+ * notice, this list of conditions and the following disclaimer in the
|
||||
+ * documentation and/or other materials provided with the distribution.
|
||||
+ * 3. All advertising materials mentioning features or use of this software
|
||||
+ * must display the following acknowledgement:
|
||||
+ * This product includes software developed by the University of
|
||||
+ * California, Berkeley and its contributors.
|
||||
+ * 4. Neither the name of the University nor the names of its contributors
|
||||
+ * may be used to endorse or promote products derived from this software
|
||||
+ * without specific prior written permission.
|
||||
+ *
|
||||
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
+ * SUCH DAMAGE.
|
||||
+ */
|
||||
+
|
||||
+#if 0
|
||||
+#if defined(LIBC_SCCS) && !defined(lint)
|
||||
+static char sccsid[] = "@(#)getgrouplist.c 8.2 (Berkeley) 12/8/94";
|
||||
+#endif /* LIBC_SCCS and not lint */
|
||||
+#include <sys/cdefs.h>
|
||||
+__FBSDID("$FreeBSD: src/lib/libc/gen/getgrouplist.c,v 1.14 2005/05/03 16:20:03 delphij Exp $");
|
||||
+#endif
|
||||
+
|
||||
+/*
|
||||
+ * get credential
|
||||
+ */
|
||||
+#include <sys/types.h>
|
||||
+
|
||||
+#include <grp.h>
|
||||
+#include <string.h>
|
||||
+#include <unistd.h>
|
||||
+
|
||||
+int
|
||||
+getgrouplist(const char *uname, gid_t agroup, gid_t *groups, int *grpcnt)
|
||||
+{
|
||||
+ const struct group *grp;
|
||||
+ int i, maxgroups, ngroups, ret;
|
||||
+
|
||||
+ ret = 0;
|
||||
+ ngroups = 0;
|
||||
+ maxgroups = *grpcnt;
|
||||
+ /*
|
||||
+ * When installing primary group, duplicate it;
|
||||
+ * the first element of groups is the effective gid
|
||||
+ * and will be overwritten when a setgid file is executed.
|
||||
+ */
|
||||
+ groups ? groups[ngroups++] = agroup : ngroups++;
|
||||
+ if (maxgroups > 1)
|
||||
+ groups ? groups[ngroups++] = agroup : ngroups++;
|
||||
+ /*
|
||||
+ * Scan the group file to find additional groups.
|
||||
+ */
|
||||
+ setgrent();
|
||||
+ while ((grp = getgrent()) != NULL) {
|
||||
+ if (groups) {
|
||||
+ for (i = 0; i < ngroups; i++) {
|
||||
+ if (grp->gr_gid == groups[i])
|
||||
+ goto skip;
|
||||
+ }
|
||||
+ }
|
||||
+ for (i = 0; grp->gr_mem[i]; i++) {
|
||||
+ if (!strcmp(grp->gr_mem[i], uname)) {
|
||||
+ if (ngroups >= maxgroups) {
|
||||
+ ret = -1;
|
||||
+ break;
|
||||
+ }
|
||||
+ groups ? groups[ngroups++] = grp->gr_gid : ngroups++;
|
||||
+ break;
|
||||
+ }
|
||||
+ }
|
||||
+skip:
|
||||
+ ;
|
||||
+ }
|
||||
+ endgrent();
|
||||
+ *grpcnt = ngroups;
|
||||
+ return (ret);
|
||||
+}
|
||||
using namespace KDEPrivate;
|
||||
|
||||
static QString nameFromFileName(QString nameStr)
|
@ -1,16 +0,0 @@
|
||||
Desc: Add needed include for mmap() on Solaris.
|
||||
Author: Daniel Vergien
|
||||
|
||||
--- kdelibs-4.3.2/kdecore/sycoca/ksycoca.cpp.orig 2009-10-14 12:12:45.697358506 +0200
|
||||
+++ kdelibs-4.3.2/kdecore/sycoca/ksycoca.cpp 2009-10-14 12:13:16.082152232 +0200
|
||||
@@ -46,6 +46,10 @@
|
||||
|
||||
#include "ksycocadevices_p.h"
|
||||
|
||||
+/* needed on solaris 10 for mmap */
|
||||
+
|
||||
+#include <sys/mman.h>
|
||||
+
|
||||
// TODO: remove mmap() from kdewin32 and use QFile::mmap() when needed
|
||||
#ifdef Q_WS_WIN
|
||||
#undef HAVE_MMAP
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue