Sync with portage [Thu Jan 31 19:27:54 MSK 2013].

mhiretskiy
root 11 years ago
parent 8dc1e407f7
commit 36f8cc30ad

@ -2,3 +2,4 @@ DIST libvirt-0.10.2.1.tar.gz 21300749 SHA256 449628d798b82cb2f24416ef2e38c2d06f1
DIST libvirt-0.10.2.2.tar.gz 21987939 SHA256 05714ba82d8d8cdcadc96fdd393f02ec4a7e975d181b3a06702b83c0444af084 SHA512 e4dbf8d43cfbd2fe9f3f21f114b40a8f78f60d96acbb09178067191bd6e6ca7942212bf30ba2d61315a5c1dbd8cb6bbfd0873fc7bb3f699ace84dcf6c21ded15 WHIRLPOOL a88eb048d65bd70eb24f3130e51eaa57a80bb48ea7b07f591df34051ebba9f2da32f32a3fb0ae07f97490c0f9185673014c5c307aa53a6634f86a24a3085bd32
DIST libvirt-1.0.0.tar.gz 21868950 SHA256 14c8a30ebfb939c82cab5f759a95d09646b43b4210e45490e92459ae65123076 SHA512 b4c3c34b2813f08653b33de5e1ebf030f2eafe77cb6107724494b83643a4e744b3f2c290a1755bcc586c8c7ebe0d8955540d3455736685484e27b07f677dca2c WHIRLPOOL 398af483a630294d7306f2cef95712613a0391da19bd654f5b24aff54d99df8940f79e560a61b3e978f3a62b89778a1b3e6a171188b9a8c42e31e2029a93f3d0
DIST libvirt-1.0.1.tar.gz 22512698 SHA256 4a16c76c46ebc41a6514082b5d95b5d5a0868e7a8cc00ab2e6cc1a23ec6b5a3b SHA512 7a106998565410197b1cca45c68c84661935c96d1cd28888b977691faf29b10af6742f00f0e8baa76b27af4031e6b8b988c2ae83f3cbb5affe3381401fb6859e WHIRLPOOL 3b98c742141a63b3e6384e6fe09b01cec485bfb59fbefe89f3e64450bf66e2441aea43b754f92253e2c3f33f5b5d56975473cc4aa7313d622e40cd3185608ae6
DIST libvirt-1.0.2.tar.gz 22971729 SHA256 9b8c2752f78658b65ef1c608b3775be0978d60855a9b5e2778f79c113201c179 SHA512 c35b6dc46594a93d4d633ad42df2cf1da7cbbf7327205ba4c608d4f95f0017cb4041518c3dafa3d5ab7dadaafad116779415c843e0d4e67ef1df31bd9a9295e7 WHIRLPOOL cf56954392f263fe686c79e320f238cc657424512bf3b136bd68747777640cd564affc38f7ed077a1e00f2d2511ab607b236a9b6ea4fbc8f089a2a0267b214ce

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

@ -0,0 +1,23 @@
https://bugs.gentoo.org/show_bug.cgi?id=450328
--- src/XCCDF_POLICY/xccdf_policy.c.orig 2012-12-14 18:13:18.000000000 +0800
+++ src/XCCDF_POLICY/xccdf_policy.c 2013-01-07 22:31:10.417704932 +0800
@@ -389,8 +389,8 @@
__attribute__nonnull__(policy);
__attribute__nonnull__(item);
- static bool TRUE = true;
- static bool FALSE = false;
+ static bool TRUE2 = true;
+ static bool FALSE2 = false;
bool result;
oscap_htable_detach(policy->selected_final, xccdf_item_get_id(item));
@@ -408,7 +408,7 @@
xccdf_item_iterator_free(child_it);
}
- assume_ex(oscap_htable_add(policy->selected_final, xccdf_item_get_id(item), result ? &TRUE : &FALSE), NULL);
+ assume_ex(oscap_htable_add(policy->selected_final, xccdf_item_get_id(item), result ? &TRUE2 : &FALSE2), NULL);
}
/**

@ -3,7 +3,7 @@
<pkgmetadata>
<herd>proxy-maintainers</herd>
<maintainer>
<email>corentin.labbe@geomatys.fr</email>
<email>clabbe.montjoie@gmail.com</email>
<name>LABBE Corentin (Montjoie)</name>
<description>Maintainer</description>
</maintainer>

@ -0,0 +1,111 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-forensics/openscap/openscap-0.9.3-r1.ebuild,v 1.1 2013/01/30 18:43:25 hwoarang Exp $
EAPI=3
PYTHON_DEPEND="2"
inherit eutils multilib python bash-completion-r1
DESCRIPTION="Framework which enables integration with the Security Content Automation Protocol (SCAP)"
HOMEPAGE="http://www.open-scap.org/"
SRC_URI="https://fedorahosted.org/releases/o/p/${PN}/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="bash-completion doc nss perl python rpm selinux sql test"
#RESTRICT="test"
RDEPEND="!nss? ( dev-libs/libgcrypt )
nss? ( dev-libs/nss )
rpm? ( >=app-arch/rpm-4.9 )
sql? ( dev-db/opendbx )
dev-libs/libpcre
dev-libs/libxml2
dev-libs/libxslt
net-misc/curl"
DEPEND="${RDEPEND}
perl? ( dev-lang/swig )
python? ( dev-lang/swig )
test? (
app-arch/unzip
dev-perl/XML-XPath
net-misc/ipcalc
sys-apps/grep )"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
sed -i 's/uname -p/uname -m/' tests/probes/uname/test_probes_uname.xml.sh || die
#probe runlevel for non-centos/redhat/fedora is not implemented
sed -i 's,.*runlevel_test.*,echo "runlevel test bypassed",' tests/mitre/test_mitre.sh || die
sed -i 's,probecheck "runlevel,probecheck "runlevellllll,' tests/probes/runlevel/test_probes_runlevel.sh || die
#According to comment of theses tests, we must modify it. For the moment disable it
sed -i 's,.*linux-def_inetlisteningservers_test,#&,' tests/mitre/test_mitre.sh || die
sed -i 's,.*ind-def_environmentvariable_test,#&,' tests/mitre/test_mitre.sh || die
# theses tests are hardcoded for checking hald process...,
# but no good solution for the moment, disabling them with a fake echo
# because encased in a if then
# sed -i 's,ha.d,/sbin/udevd --daemon,g' tests/mitre/unix-def_process_test.xml || die
# sed -i 's,ha.d,/sbin/udevd --daemon,g' tests/mitre/unix-def_process58_test.xml || die
sed -i 's,.*process_test.*,echo "process test bypassed",' tests/mitre/test_mitre.sh || die
sed -i 's,.*process58_test.*,echo "process58 test bypassed",' tests/mitre/test_mitre.sh || die
#This test fail
sed -i 's,.*generate report: xccdf,#&,' tests/API/XCCDF/unittests/all.sh || die
if ! use rpm ; then
sed -i 's,probe_rpminfo_req_deps_ok=yes,probe_rpminfo_req_deps_ok=no,' configure || die
sed -i 's,probe_rpminfo_opt_deps_ok=yes,probe_rpminfo_opt_deps_ok=no,' configure || die
sed -i 's,probe_rpmverify_req_deps_ok=yes,probe_rpmverify_req_deps_ok=no,' configure || die
sed -i 's,probe_rpmverify_opt_deps_ok=yes,probe_rpmverify_opt_deps_ok=no,' configure || die
sed -i 's,^probe_rpm.*_deps_missing=,&disabled by USE flag,' configure || die
sed -i 's,.*rpm.*,#&,' tests/mitre/test_mitre.sh || die
fi
if ! use selinux ; then
sed -i 's,.*selinux.*, echo "SELinux test bypassed",' tests/mitre/test_mitre.sh || die
#process58 need selinux
sed -i 's,.*process58,#&,' tests/mitre/test_mitre.sh || die
fi
#450328
epatch "${FILESDIR}"/${P}-policy.patch
}
src_configure() {
local myconf
if use python ; then
myconf+=" --enable-python"
else
myconf+=" --enable-python=no"
fi
if use perl ; then
myconf+=" --enable-perl"
fi
if use nss ; then
myconf+=" --with-crypto=nss3"
else
myconf+=" --with-crypto=gcrypt"
fi
econf ${myconf}
}
src_install() {
emake install DESTDIR="${D}" || die
find "${D}" -name '*.la' -delete || die
if use doc ; then
dohtml -r docs/html/* || die
dodoc docs/examples/* || die
fi
if use bash-completion ; then
dobashcomp "${D}"/etc/bash_completion.d/oscap
fi
rm -rf "${D}"/etc/bash_completion.d || die
}

@ -1,2 +1,3 @@
DIST ovaldi-5.10.1.2-src.tar.bz2 14859172 SHA256 2d00a1bc730f6635beebd52611ee30c914169626ef5adf68ff313295c483d319 SHA512 77ffc04a8b33a43a9370b795e6af5e79e63ca59ec70c974408fffc163d487c654f153924494b14e1fc8b2ba2f33e96bc85e175fd8044e370a75a88f3f9c37fcb WHIRLPOOL 6c8e8da498c9f0c36be7a88a1293a984975e6fc90993fe6a860969af63cd8b9393e6adb4bf68893c6da468562322adb4b60a4894393bd7916047f900631f8296
DIST ovaldi-5.10.1.4-src.tar.bz2 14868251 SHA256 92a22ad75ecdb02abb155e520cf249cc0f737c52b17380b1d58caf410f8c2560 SHA512 d7926a7416fe90013e203b333390e33d51c3eb0caa6ebba69dd593791a8377ac38f5db72fcff2d1ab2dd39a0f5d1b0d2a0d08f906d3e26740288532a27debb47 WHIRLPOOL b9e9142f3d51818c6fbdd12d036176a435bb7af4a75b39bd6bbaee9c542718f9058401ccdfb053a84bac97dfb9b5ba0acdbcf98c4085f6198ad51e94d6ea9d25
DIST ovaldi-5.9.1-src.tar.bz2 14745625 SHA256 40161ac64fd221543a19f178de283919be2dd7f513a6fb354f1440fe1bfb98e1 SHA512 5ac3fb0b943aa6c650ae31131a41e059d2b338defe608b1a7b65ba776e249d005ccf4c3ff3ab64fb042a775c70467f4ca879de005f6bf78c19a4a0c782204d34 WHIRLPOOL d96fcf29bfbf301dde50e54a6d710db913520d7b0e47be8b17f2a202353f81eef94e2934d0aa84ca6ddd24dce8a0fdd9c4cfe6224f4757717c88317895ad12af

@ -0,0 +1,84 @@
--- src/probes/unix/Process58Probe.cpp.old 2013-01-14 16:05:18.000000000 +0100
+++ src/probes/unix/Process58Probe.cpp 2013-01-14 16:06:16.000000000 +0100
@@ -29,8 +29,8 @@
//****************************************************************************************//
#ifdef LINUX
-# include <selinux/selinux.h>
-# include <selinux/context.h>
+/*# include <selinux/selinux.h>
+# include <selinux/context.h>*/
# include <sys/capability.h>
# include <SecurityContextGuard.h>
#endif
@@ -328,7 +328,7 @@
pid_t sessionId;
uid_t loginuid;
uint64_t effCap, *effCapp=&effCap;
- string selinuxDomainLabel;
+/* string selinuxDomainLabel;*/
Process58Probe::ProcStatus statStatus, statusStatus, ttyStatus, loginuidStatus;
@@ -423,10 +423,10 @@
}
// this one doesn't require reading anything in /proc
- if (!RetrieveSelinuxDomainLabel(pid, &selinuxDomainLabel, &errMsg)) {
+/* if (!RetrieveSelinuxDomainLabel(pid, &selinuxDomainLabel, &errMsg)) {
item->AppendMessage(new OvalMessage(errMsg, OvalEnum::LEVEL_ERROR));
item->SetStatus(OvalEnum::STATUS_ERROR);
- }
+ }*/
// The Linux start time is represented as the number of jiffies (1/100 sec)
// that the application was started after the last system reboot. To get an
@@ -522,10 +522,10 @@
// aren't any.
item->AppendElement(new ItemEntity("posix_capability", "", OvalEnum::DATATYPE_STRING, OvalEnum::STATUS_ERROR));
- if (selinuxDomainLabel.empty())
+/* if (selinuxDomainLabel.empty())
item->AppendElement(new ItemEntity("selinux_domain_label", "", OvalEnum::DATATYPE_STRING, OvalEnum::STATUS_ERROR));
else
- item->AppendElement(new ItemEntity("selinux_domain_label", selinuxDomainLabel));
+ item->AppendElement(new ItemEntity("selinux_domain_label", selinuxDomainLabel));*/
if (statStatus == PROC_OK)
item->AppendElement(new ItemEntity("session_id", Common::ToString(sessionId), OvalEnum::DATATYPE_INTEGER));
@@ -740,7 +740,7 @@
capMap[capEnum]));
}
}
-
+/*
bool Process58Probe::RetrieveSelinuxDomainLabel(pid_t pid, string *label, string *err) {
security_context_t sctx;
int ec = getpidcon(pid, &sctx);
@@ -763,7 +763,7 @@
*label = tmp;
return true;
}
-
+*/
#elif defined SUNOS
void Process58Probe::GetPSInfo(string command, string pidStr, ItemVector* items) {
@@ -830,7 +830,7 @@
item->AppendElement(new ItemEntity("exec_shield", "", OvalEnum::DATATYPE_BOOLEAN, OvalEnum::STATUS_NOT_COLLECTED));
item->AppendElement(new ItemEntity("loginuid", "", OvalEnum::DATATYPE_INTEGER, OvalEnum::STATUS_NOT_COLLECTED));
item->AppendElement(new ItemEntity("posix_capability", "", OvalEnum::DATATYPE_STRING, OvalEnum::STATUS_NOT_COLLECTED));
- item->AppendElement(new ItemEntity("selinux_domain_label", "", OvalEnum::DATATYPE_STRING, OvalEnum::STATUS_NOT_COLLECTED));
+/* item->AppendElement(new ItemEntity("selinux_domain_label", "", OvalEnum::DATATYPE_STRING, OvalEnum::STATUS_NOT_COLLECTED));*/
item->AppendElement(new ItemEntity("session_id", Common::ToString(info.pr_sid), OvalEnum::DATATYPE_INTEGER));
items->push_back(item);
@@ -988,7 +988,7 @@
item->AppendElement(new ItemEntity("exec_shield", "", OvalEnum::DATATYPE_BOOLEAN, OvalEnum::STATUS_NOT_COLLECTED));
item->AppendElement(new ItemEntity("loginuid", "", OvalEnum::DATATYPE_INTEGER, OvalEnum::STATUS_NOT_COLLECTED));
item->AppendElement(new ItemEntity("posix_capability", "", OvalEnum::DATATYPE_STRING, OvalEnum::STATUS_NOT_COLLECTED));
- item->AppendElement(new ItemEntity("selinux_domain_label", "", OvalEnum::DATATYPE_STRING, OvalEnum::STATUS_NOT_COLLECTED));
+/* item->AppendElement(new ItemEntity("selinux_domain_label", "", OvalEnum::DATATYPE_STRING, OvalEnum::STATUS_NOT_COLLECTED));*/
item->AppendElement(new ItemEntity("session_id", "", OvalEnum::DATATYPE_INTEGER, OvalEnum::STATUS_NOT_COLLECTED));
items->push_back(item);

@ -0,0 +1,11 @@
--- src/Main.h.old 2010-10-22 14:59:13.000000000 +0200
+++ src/Main.h 2010-10-22 14:59:38.000000000 +0200
@@ -38,7 +38,7 @@
#endif
#ifdef LINUX
-# define STRNICMP strnicmp
+# define STRNICMP strncasecmp
#elif defined SUNOS
# define STRNICMP strncasecmp
#elif defined DARWIN

@ -0,0 +1,283 @@
--- src/XmlProcessor.h.old 2011-08-18 14:35:41.608703233 +0200
+++ src/XmlProcessor.h 2011-08-18 14:39:21.835597094 +0200
@@ -38,14 +38,17 @@
#include <string>
// required xerces includes
-#include <xercesc/dom/DOMBuilder.hpp>
#include <xercesc/dom/DOMDocument.hpp>
#include <xercesc/dom/DOMErrorHandler.hpp>
#include <xercesc/dom/DOMError.hpp>
// for entity resolver
-#include <xercesc/dom/DOMEntityResolver.hpp>
-#include <xercesc/dom/DOMInputSource.hpp>
+
+#include <xercesc/dom/DOMImplementationRegistry.hpp>
+#include <xercesc/dom/DOMLSParser.hpp>
+#include <xercesc/sax/EntityResolver.hpp>
+#include <xercesc/sax/InputSource.hpp>
+#include <xercesc/sax2/SAX2XMLReader.hpp>
#include "Exception.h"
@@ -53,12 +56,14 @@
This class extends the default DOMEntityResolver and implments the resolve entity method
to support
*/
-class DataDirResolver : public xercesc::DOMEntityResolver {
+class DataDirResolver : public xercesc::EntityResolver {
public:
/**
*
*/
- xercesc::DOMInputSource *resolveEntity (const XMLCh *const publicId, const XMLCh *const systemId, const XMLCh *const baseURI);
+// xercesc::DOMInputSource *resolveEntity (const XMLCh *const publicId, const XMLCh *const systemId, const XMLCh *const baseURI);
+ xercesc::InputSource *resolveEntity (const XMLCh *const publicId, const XMLCh *const systemId);
+ xercesc::DOMLSInput *resolveEntity (const XMLCh *const publicId, const XMLCh *const systemId, const XMLCh *const baseURI);
};
/**
@@ -144,7 +149,7 @@
* owns the documents it builds. Users must manually destroy
* those documents.
*/
- xercesc::DOMBuilder *parserWithCallerAdoption;
+ xercesc::DOMLSParser *parserWithCallerAdoption;
/**
* This parser doesn't have user-adoption switched on, so it
@@ -156,7 +161,7 @@
* appear to ever be switched off. So to make sure this isn't
* leaking memory, I have created separate parsers.
*/
- xercesc::DOMBuilder *parser;
+ xercesc::DOMLSParser *parser;
/** The entity resolver for both parsers. */
DataDirResolver resolver;
--- src/probes/independent/XmlFileContentProbe.cpp.old 2010-10-22 14:49:22.000000000 +0200
+++ src/probes/independent/XmlFileContentProbe.cpp 2010-10-22 14:51:39.000000000 +0200
@@ -419,12 +419,24 @@
return new DummyEntityResolver::DoNothingBinInputStream();
}
+#if XERCES_VERSION_MAJOR < 3
unsigned int DummyEntityResolver::DoNothingBinInputStream::curPos() const
+#else
+const XMLCh* DummyEntityResolver::DoNothingBinInputStream::getContentType() const
+{
+ return NULL;
+}
+XMLFilePos DummyEntityResolver::DoNothingBinInputStream::curPos() const
+#endif
{
return 0;
}
+#if XERCES_VERSION_MAJOR < 3
unsigned int DummyEntityResolver::DoNothingBinInputStream::readBytes(XMLByte *const /*toFill*/, const unsigned int /*maxToRead*/)
+#else
+XMLSize_t DummyEntityResolver::DoNothingBinInputStream::readBytes(XMLByte *const toFill, XMLSize_t maxToRead)
+#endif
{
return 0;
}
--- src/probes/independent/XmlFileContentProbe.h.old 2010-10-22 14:55:47.000000000 +0200
+++ src/probes/independent/XmlFileContentProbe.h 2010-10-22 14:57:00.000000000 +0200
@@ -134,8 +134,14 @@
class DoNothingBinInputStream : public BinInputStream
{
public:
+#if XERCES_VERSION_MAJOR < 3
virtual unsigned int curPos() const;
virtual unsigned int readBytes(XMLByte *const toFill, const unsigned int maxToRead);
+#else
+ virtual XMLFilePos curPos() const;
+ virtual const XMLCh* getContentType() const;
+ virtual XMLSize_t readBytes(XMLByte *const toFill, XMLSize_t maxToRead);
+#endif
};
};
--- src/XmlCommon.cpp.old
+++ src/XmlCommon.cpp
@@ -546,7 +546,11 @@ void XmlCommon::AddSchemaLocation(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *do
string XmlCommon::GetNamespace(DOMElement *element) {
string xmlns = "";
+#if XERCES_VERSION_MAJOR < 3
xmlns = XmlCommon::ToString(element->getTypeInfo()->getNamespace());
+#else
+ xmlns = XmlCommon::ToString(element->getSchemaTypeInfo()->getTypeNamespace());
+#endif
if (xmlns.compare("") == 0) {
xmlns = "";
}
--- src/XmlProcessor.cpp.old 2013-01-14 15:16:14.000000000 +0100
+++ src/XmlProcessor.cpp 2013-01-14 15:19:20.000000000 +0100
@@ -35,7 +35,6 @@
// for dom Writer
#include <xercesc/dom/DOMImplementation.hpp>
#include <xercesc/dom/DOMImplementationLS.hpp>
-#include <xercesc/dom/DOMWriter.hpp>
#include <xercesc/framework/StdOutFormatTarget.hpp>
#include <xercesc/framework/LocalFileFormatTarget.hpp>
#include <xercesc/util/XMLUni.hpp>
@@ -50,11 +49,26 @@
using namespace std;
using namespace xercesc;
+#if XERCES_VERSION_MAJOR < 3
+#define SetParameter(serializer,n,v) if (serializer->canSetFeature(n,v)) serializer->setFeature(n,v)
+#else
+#define SetParameter(serializer,n,v) if (serializer->getDomConfig()->canSetParameter(n,v)) serializer->getDomConfig()->setParameter(n,v)
+#endif
+
//****************************************************************************************//
// DataDirResolver Class //
//****************************************************************************************//
-
+#if XERCES_VERSION_MAJOR < 3
DOMInputSource* DataDirResolver::resolveEntity (const XMLCh *const /*publicId*/, const XMLCh *const systemId, const XMLCh *const /*baseURI*/) {
+#else
+InputSource* DataDirResolver::resolveEntity(const XMLCh* publicId, const XMLCh* systemId)
+{
+ return NULL;
+ //return DataDirResolver::resolveEntity (publicId, systemId, NULL);
+}
+
+DOMLSInput* DataDirResolver::resolveEntity (const XMLCh *const publicId, const XMLCh *const systemId, const XMLCh *const baseURI) {
+#endif
string path = "";
size_t last;
string schemapath = Common::GetSchemaPath();
@@ -127,7 +141,7 @@
parserWithCallerAdoption = makeParser(schemaLocation);
// add one extra feature on this parser to prevent it from
// taking ownership of its documents.
- parserWithCallerAdoption->setFeature(XMLUni::fgXercesUserAdoptsDOMDocument, true);
+ SetParameter(parserWithCallerAdoption, XMLUni::fgXercesUserAdoptsDOMDocument, true);
} catch (const XMLException& toCatch) {
string errMsg = "Error: An error occured durring initialization of the xml utilities:\n";
@@ -156,32 +170,40 @@
XMLPlatformUtils::Terminate();
}
-DOMBuilder *XmlProcessor::makeParser(const string &schemaLocation) {
+DOMLSParser *XmlProcessor::makeParser(const string &schemaLocation) {
// Instantiate the DOM parser.
static const XMLCh gLS[] = { chLatin_L, chLatin_S, chNull };
DOMImplementation *impl = DOMImplementationRegistry::getDOMImplementation(gLS);
- DOMBuilder *parser = ((DOMImplementationLS*)impl)->createDOMBuilder(DOMImplementationLS::MODE_SYNCHRONOUS, 0);
+#if XERCES_VERSION_MAJOR < 3
+ DOMLSParser *parser = ((DOMImplementationLS*)impl)->createDOMLSParser(DOMImplementationLS::MODE_SYNCHRONOUS, 0);
+#else
+ DOMLSParser *parser = ((DOMImplementationLS*)impl)->createLSParser(DOMImplementationLS::MODE_SYNCHRONOUS, 0);
+#endif
///////////////////////////////////////////////////////
// Set features on the builder
///////////////////////////////////////////////////////
- parser->setFeature(XMLUni::fgDOMComments, false); // Discard Comment nodes in the document.
- parser->setFeature(XMLUni::fgDOMDatatypeNormalization, true); // Let the validation process do its datatype normalization that is defined in the used schema language.
- parser->setFeature(XMLUni::fgDOMNamespaces, true); // Perform Namespace processing
- parser->setFeature(XMLUni::fgDOMValidation, true); // Report all validation errors.
- parser->setFeature(XMLUni::fgXercesSchema, true); // Enable the parser's schema support.
- parser->setFeature(XMLUni::fgXercesSchemaFullChecking, true); // Enable full schema constraint checking, including checking which may be time-consuming or memory intensive. Currently, particle unique attribution constraint checking and particle derivation restriction checking are controlled by this option.
- parser->setFeature(XMLUni::fgXercesValidationErrorAsFatal, true); // The parser will treat validation error as fatal and will exit
- parser->setFeature(XMLUni::fgXercesDOMHasPSVIInfo, true); // Enable storing of PSVI information in element and attribute nodes.
+ SetParameter(parser, XMLUni::fgDOMComments, false); // Discard Comment nodes in the document.
+ SetParameter(parser, XMLUni::fgDOMDatatypeNormalization, true); // Let the validation process do its datatype normalization that is defined in the used schema language.
+ SetParameter(parser, XMLUni::fgDOMNamespaces, true); // Perform Namespace processing
+ SetParameter(parser, XMLUni::fgDOMValidate, true); // Report all validation errors.
+ SetParameter(parser, XMLUni::fgXercesSchema, true); // Enable the parser's schema support.
+ SetParameter(parser, XMLUni::fgXercesSchemaFullChecking, true); // Enable full schema constraint checking, including checking which may be time-consuming or memory intensive. Currently, particle unique attribution constraint checking and particle derivation restriction checking are controlled by this option.
+ SetParameter(parser, XMLUni::fgXercesValidationErrorAsFatal, true); // The parser will treat validation error as fatal and will exit
+ SetParameter(parser, XMLUni::fgXercesDOMHasPSVIInfo, true); // Enable storing of PSVI information in element and attribute nodes.
///////////////////////////////////////////////////////
//****************************************************************************************//
// The following code was added to handle air-gap operation //
//****************************************************************************************//
/* Look for XML schemas in local directory instead of Internet */
+#if XERCES_VERSION_MAJOR < 3
parser->setEntityResolver (&resolver);
+#else
+ parser->getDomConfig()->setParameter(XMLUni::fgXercesEntityResolver, &resolver);
+#endif
//****************************************************************************************//
// End of air-gap code //
//****************************************************************************************//
@@ -189,7 +211,11 @@
///////////////////////////////////////////////////////
// Add an Error Handler
///////////////////////////////////////////////////////
+#if XERCES_VERSION_MAJOR < 3
parser->setErrorHandler(&errHandler);
+#else
+ parser->getDomConfig()->setParameter(XMLUni::fgDOMErrorHandler, &errHandler);
+#endif
// Fix a schema location if possible, so instance documents don't
// have to set the schemaLocation attribute. And if they do, this
@@ -197,7 +223,7 @@
// overriding of the value in instance documents.
if (!schemaLocation.empty()) {
XMLCh *schemaLocationCstr = XMLString::transcode(schemaLocation.c_str());
- parser->setProperty(XMLUni::fgXercesSchemaExternalSchemaLocation, schemaLocationCstr);
+ SetParameter(parser, XMLUni::fgXercesSchemaExternalSchemaLocation, schemaLocationCstr);
XMLString::release(&schemaLocationCstr);
}
@@ -279,23 +305,19 @@
XMLCh tempStr[100];
XMLString::transcode("LS", tempStr, 99);
DOMImplementation *impl = DOMImplementationRegistry::getDOMImplementation(tempStr);
+#if XERCES_VERSION_MAJOR < 3
DOMWriter *theSerializer = ((DOMImplementationLS*)impl)->createDOMWriter();
+#else
+ DOMLSSerializer *theSerializer = ((DOMImplementationLS*)impl)->createLSSerializer();
+#endif
- // set feature if the serializer supports the feature/mode
- if (theSerializer->canSetFeature(XMLUni::fgDOMWRTSplitCdataSections, true))
- theSerializer->setFeature(XMLUni::fgDOMWRTSplitCdataSections, true);
- if (theSerializer->canSetFeature(XMLUni::fgDOMWRTDiscardDefaultContent, true))
- theSerializer->setFeature(XMLUni::fgDOMWRTDiscardDefaultContent, true);
-
- if (theSerializer->canSetFeature(XMLUni::fgDOMWRTFormatPrettyPrint, true))
- theSerializer->setFeature(XMLUni::fgDOMWRTFormatPrettyPrint, true);
-
- if (theSerializer->canSetFeature(XMLUni::fgDOMWRTBOM, false))
- theSerializer->setFeature(XMLUni::fgDOMWRTBOM, false);
-
- //if (theSerializer->canSetFeature(XMLUni::fgDOMWRTDiscardDefaultContent, true))
- // theSerializer->setFeature(XMLUni::fgDOMWRTBOM, true);
+ // set feature if the serializer supports the feature/mode
+ SetParameter(theSerializer, XMLUni::fgDOMWRTSplitCdataSections, true);
+ SetParameter(theSerializer, XMLUni::fgDOMWRTDiscardDefaultContent, true);
+ SetParameter(theSerializer, XMLUni::fgDOMWRTFormatPrettyPrint, true);
+ SetParameter(theSerializer, XMLUni::fgDOMWRTBOM, false);
+ //SetParameter(theSerializer, XMLUni::fgDOMWRTBOM, true);
//
// Plug in a format target to receive the resultant
@@ -313,7 +335,13 @@
//
// do the serialization through DOMWriter::writeNode();
//
+#if XERCES_VERSION_MAJOR < 3
theSerializer->writeNode(myFormTarget, *doc);
+#else
+ DOMLSOutput *output = ((DOMImplementationLS*)impl)->createLSOutput();
+ output->setByteStream(myFormTarget);
+ theSerializer->write(doc, output);
+#endif
theSerializer->release();
delete myFormTarget;

@ -3,12 +3,7 @@
<pkgmetadata>
<herd>proxy-maintainers</herd>
<maintainer>
<email>hwoarang@gentoo.org</email>
<name>Markos Chandras</name>
<description>Proxy maintainer. CC him on bugs</description>
</maintainer>
<maintainer>
<email>corentin.labbe@geomatys.fr</email>
<email>clabbe.montjoie@gmail.com</email>
<name>LABBE Corentin</name>
<description>Upstream and Maintainer. Assign bugs to him</description>
</maintainer>

@ -0,0 +1,102 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-forensics/ovaldi/ovaldi-5.10.1.4.ebuild,v 1.1 2013/01/30 18:53:05 hwoarang Exp $
EAPI=5
inherit eutils toolchain-funcs
DESCRIPTION="Free implementation of OVAL"
HOMEPAGE="http://oval.mitre.org/language/interpreter.html"
SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.bz2"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="acl ldap rpm selinux"
RDEPEND="dev-libs/libgcrypt
dev-libs/libpcre
dev-libs/xalan-c
dev-libs/xerces-c
sys-apps/util-linux
sys-libs/libcap
acl? ( sys-apps/acl )
ldap? ( net-nds/openldap )
rpm? ( app-arch/rpm )
selinux? ( sys-libs/libselinux )"
DEPEND="${RDEPEND}
sys-apps/sed"
S="${WORKDIR}/${P}-src"
src_prepare() {
#Ovaldi do not support xerces 3, but portage have only that
epatch "${FILESDIR}"/${P}-xerces3.patch
sed -i 's,xercesc::DOMBuilder,xercesc::DOMLSParser,' src/XmlProcessor.h || die
sed -i 's,DOMBuilder,DOMLSParser,' src/XmlProcessor.cpp || die
epatch "${FILESDIR}"/${P}-strnicmp.patch
if ! use ldap ; then
einfo "Disabling LDAP probes"
sed -i 's,.*ldap,//&,' src/linux/ProbeFactory.cpp || die
sed -i 's,.*LDAP,//&,' src/linux/ProbeFactory.cpp || die
sed -i 's/-lldap//' project/linux/Makefile || die
sed -i 's/-llber//' project/linux/Makefile || die
sed -i 's/.*LDAPProbe.h.*//' src/linux/ProbeFactory.h || die
rm src/probes/independent/LDAPProbe.{cpp,h} || die
fi
if ! use acl ; then
sed -i 's,.*libacl,//&,' src/probes/unix/FileProbe.h || die
epatch "${FILESDIR}"/disable-acl.patch
sed -i 's, -lacl , ,' project/linux/Makefile || die
fi
# rpm probes support is build dependant only on the presence of the rpm binary
if use rpm ; then
#Same problems as bug 274679, so i do a local copy of the header and patch it
cp /usr/include/rpm/rpmdb.h src/probes/linux/ || die
epatch "${FILESDIR}"/use_local_rpmdb.patch
epatch "${FILESDIR}"/rpmdb.patch
else
einfo "Disabling rpm probes"
sed -i 's/^PACKAGE_RPM/#PACKAGE_RPM/' project/linux/Makefile || die
fi
# same thing for dpkg, but package dpkg is not sufficient, needs app-arch/apt-pkg that is not on tree
einfo "Disabling dpkg probes"
sed -i 's/^PACKAGE_DPKG/#PACKAGE_DPKG/' project/linux/Makefile || die
#Disabling SELinux support
if ! use selinux ; then
rm src/probes/linux/SelinuxSecurityContextProbe.cpp || die
rm src/probes/linux/SelinuxBooleanProbe.cpp || die
rm src/probes/linux/SelinuxBooleanProbe.h || die
epatch "${FILESDIR}"/${P}-disable-selinux-probes.patch
sed -i 's,.*selinux.*,//&,' src/linux/ProbeFactory.cpp || die
sed -i 's,.*Selinux.*,//&,' src/linux/ProbeFactory.cpp || die
sed -i 's,.*selinux.*,//&,' src/linux/ProbeFactory.h || die
sed -i 's,.*Selinux.*,//&,' src/linux/ProbeFactory.h || die
sed -i 's,.*SecurityContextGuard.h.*,//&,' src/probes/unix/Process58Probe.cpp || die
rm src/linux/SecurityContextGuard.h || die
sed -i 's, -lselinux,,' project/linux/Makefile || die
fi
# respect CXXFLAGS and CXX
sed -i -e '/^CPPFLAGS/s/$(INCDIRS)/$(CXXFLAGS) \0/' project/linux/Makefile || die
tc-export CXX
}
src_compile () {
emake -C project/linux
}
src_install () {
# no make install in Makefile
dosbin project/linux/Release/ovaldi project/linux/ovaldi.sh
dodir /var/log/${PN}
insinto /usr/share/${PN}
doins xml/*
dodoc docs/{README.txt,version.txt}
doman docs/ovaldi.1
}

@ -3,12 +3,7 @@
<pkgmetadata>
<herd>proxy-maintainers</herd>
<maintainer>
<email>hwoarang@gentoo.org</email>
<name>Markos Chandras</name>
<description>Proxy maintainer. CC him on bugs</description>
</maintainer>
<maintainer>
<email>corentin.labbe@geomatys.fr</email>
<email>clabbe.montjoie@gmail.com</email>
<name>LABBE Corentin</name>
<description>Upstream and Maintainer. Assign bugs to him</description>
</maintainer>

@ -0,0 +1 @@
DIST fcitx-anthy-0.1.1.tar.xz 68604 SHA256 c508068c7c9a56c26ea44b8e6ddb90a2ea75860031f89e171dcda8ec4cd08955 SHA512 e2c4bb20f0b0a370e5f28bff14312c2c14210695418438ebe697b94570fe502be8c96dc8fbf813fd3aa6e352283a7d31808a1f12266d4a8050646a8ae86de9d9 WHIRLPOOL 48f674ef23d62f2dc1286712cbb252d709d9e3890921d1f9296ff89f85c5ae211daa887841fc01f267fe44764275e8b6de4aef859d9f1456cb24f00023b262ce

@ -0,0 +1,29 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/fcitx-anthy/fcitx-anthy-0.1.1.ebuild,v 1.1 2013/01/31 13:43:21 yngwin Exp $
EAPI=5
inherit cmake-utils gnome2-utils
DESCRIPTION="Japanese Anthy module for Fcitx"
HOMEPAGE="http://fcitx-im.org/"
SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=app-i18n/fcitx-4.2.5
app-i18n/anthy"
DEPEND="${RDEPEND}
sys-devel/gettext
virtual/libintl"
pkg_postinst() {
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>sci</herd>
<herd>cjk</herd>
</pkgmetadata>

@ -0,0 +1 @@
DIST fcitx-chewing-0.2.0.tar.xz 13968 SHA256 cf03b84004f1839a6f6e10dadf53edfbf8b6dcbb9d70579cde913b6b5e0a8dec SHA512 af8f2fb6fb5fb017522ac81fa9b14907d9537dace21ef594951f1dd717e276319666480aecaa55d0696c2ba80f74d51f7573aea9799d96a37bfa8305b8e04e54 WHIRLPOOL 6508407069d353c05b3167b413f5ab90f839afa6e77282ce79504ae23d831e150747a1c949e5fa8f0c021ba7b44b95087295336ad17d049bfbd41b87555aca5f

@ -0,0 +1,20 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/fcitx-chewing/fcitx-chewing-0.2.0.ebuild,v 1.1 2013/01/31 13:30:54 yngwin Exp $
EAPI=5
inherit cmake-utils
DESCRIPTION="Chewing module for Fcitx"
HOMEPAGE="http://fcitx-im.org/"
SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=app-i18n/fcitx-4.2.7
dev-libs/libchewing"
DEPEND="${RDEPEND}
virtual/libintl"

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>cjk</herd>
</pkgmetadata>

@ -1,2 +1,3 @@
DIST fcitx-cloudpinyin-0.2.2.tar.xz 18452 SHA256 1516b7f72d4ee6822f3b4e37df5d25343323f2ae0b9aca2c6d225878ff776101 SHA512 974889fc7e0966fc083bf475004df08904874c2d339aec1e5741d3bdde42d67168c620074ad588e40f419a44f2efc0f1cdacbfcce8a6a04f7251d3d67f4dec8c WHIRLPOOL 44a14f7274810ddc923a9457156f606b0e9382e0a51c6e2bc0532450872adb229d9ec0ce611684006fd9b624bfb93c2d5fd5082262040af699618946f34d157c
DIST fcitx-cloudpinyin-0.2.3.tar.xz 18636 SHA256 01a97c975e2485831d47bb9648f724683a89facba53d8d127bff950e61a77dff SHA512 5a804f54cdef75033174dcffc471c5a185b4bc9f14e53d9363fa92ad6223b59f9aecdaa04c98c8b136116a1bc2716726ed762de2f9cb0817f51fb5dc9ec620a6 WHIRLPOOL c4f8f71c20bd83d5143dc436d6f4c62e969934eaaa29e7ac554f795d82891599bf99cd8aba29ac96a5247cc0b38cdef2276dced1106abea1cb5f25dc4fd5297f
DIST fcitx-cloudpinyin-0.3.1.tar.xz 19296 SHA256 2c919bf7979964bef861b432b821fc43fa94824e82372b03c653219b0fc05f6e SHA512 fda8501d8c132b3810f70d984f77652cefad5a052580c6607f893efdfed132a05053c6edf3ea8ba829e33abc237808eac6ca3521c6616ad2cfa5e3c4e0045297 WHIRLPOOL bcd8aae0339ecdc3db58a950c475e81133a90b08f9294dfea224d38ec7b6e2f929fff2d389761f2c90ee1553b9bd02fd8bf93ab9ef7c23101affebfff7b76d33

@ -0,0 +1,23 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/fcitx-cloudpinyin/fcitx-cloudpinyin-0.3.1.ebuild,v 1.1 2013/01/31 09:06:37 yngwin Exp $
EAPI=5
inherit cmake-utils
DESCRIPTION="A fcitx module to look up pinyin candidate words on the internet"
HOMEPAGE="http://fcitx-im.org/"
SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=app-i18n/fcitx-4.2.7
net-misc/curl"
DEPEND="${RDEPEND}
virtual/libiconv
virtual/libintl
virtual/pkgconfig"

@ -1,3 +1,4 @@
DIST fcitx-configtool-0.2.0.tar.gz 37435 SHA256 2c309f2df500cf7c1b0d13b446a69e3513a11588025a2f648b18b684cc2320fe SHA512 5f3de55c05fb554077013fe42aa768e951e4f15883dccc3a16167908b6255930088f1070f8a77a0b39ffeeb99f24030e158742d6f2016b1695459feba40b4036 WHIRLPOOL 68ac721743ea7569124f4ea0aa542dd19ade25377c8006e94867e38625016efba18d9b046f28e5b3f59cca6de9594b73903459bae101a22eb85f4b27556c44e4
DIST fcitx-configtool-0.4.1.tar.xz 33608 SHA256 7135d8ec94589f7c55741908a3292c8cf89c097479061b3a47ce4154d3a305c9 SHA512 559347bd3eb17cd5beaa7945c59ea4b8181edaf2da31681ef3a2d57279491956568e5d8b09f973d4dd368ef3a381c23fd20111bbde2a0558b84be1870b4cf4d5 WHIRLPOOL 84cf74aba0c2576dead0da59467bd9bb35cbe1848126209583c7fa571f77ef6e4ae88a6124007e2a884f1931af2ebca650b9410fafab41b7c568ffd2f5f4b1ef
DIST fcitx-configtool-0.4.4.tar.xz 37764 SHA256 66cae23c1e1555a5e8e8cb8696e562b0b58d28e16d2f0b9c64a0f274a6c06745 SHA512 13e645da728e85d243539870a0f452c436a023300c2552560299d139ddbe4aa4242ef5ad8ba864d2f6a19811572008664df861024d92e48132e1cf140bf0b5e5 WHIRLPOOL 0a810b768e3da830492fd6c59824fbd2a24bb896feb26d2525b38910b2ce71da5613f74cf4c309d9aa1514024d918dd3233c7472c12c5e61015fb861f9dc1305
DIST fcitx-configtool-0.4.6.tar.xz 41992 SHA256 8d64107f9f12b4f2cbd82e40b87a2dc4dc76d0ff854481c1103d5e9a2c2e129d SHA512 946bceb77fc6d14210154d9264c86d3333f910893cf3054f65eab72641421847e8ac003889b742f4c28f74c8ab1cfbcfb82abe35ea83ca2548cfc1decc92fc4c WHIRLPOOL 58f8a420f6c98cb6d710bd05d8ca2a3ca48a115015e6de98b105bf71b59bf3dab34eb63009d763dc7a3554fa6ec0b442e8bb277f890230dd94ec371397a6766c

@ -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/app-i18n/fcitx-configtool/fcitx-configtool-0.4.6.ebuild,v 1.2 2013/01/31 09:04:48 yngwin Exp $
EAPI=5
inherit cmake-utils
DESCRIPTION="A GTK+ GUI configuration tool for fcitx"
HOMEPAGE="http://fcitx-im.org/"
SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gtk +gtk3"
REQUIRED_USE="|| ( gtk gtk3 )"
RDEPEND=">=app-i18n/fcitx-4.2.7
dev-libs/glib:2
gtk? ( x11-libs/gtk+:2 )
gtk3? ( x11-libs/gtk+:3 )"
DEPEND="${RDEPEND}
app-text/iso-codes
dev-libs/libunique:1
dev-util/intltool
virtual/pkgconfig"
src_configure() {
local mycmakeargs="
$(cmake-utils_use_enable gtk GTK2)
$(cmake-utils_use_enable gtk3 GTK3)"
cmake-utils_src_configure
}

@ -0,0 +1 @@
DIST fcitx-hangul-0.2.1.tar.xz 25064 SHA256 a084789d2f5646af9e60b8f95385ee1cbbd2dc402709a8b3a8ea82a16fbbae97 SHA512 da1a0926be129dcf49b5fd199b7a75d4f66d3c58944c7f5ae70219a2903c0277a99e9bd05e0758ae86f24b51f910425d70ea86112d85e852cf6f5f1f7fe78db8 WHIRLPOOL c4dae7a479d385da877ffdea36d439e61fa441090b8f86cecf83239250f1cc1ba19204f378ce39c02fe135dd120a4858819c183b25a79dc1989b0a236b6d37bd

@ -0,0 +1,29 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/fcitx-hangul/fcitx-hangul-0.2.1.ebuild,v 1.1 2013/01/31 13:48:51 yngwin Exp $
EAPI=5
inherit cmake-utils gnome2-utils
DESCRIPTION="Korean Hangul module for Fcitx"
HOMEPAGE="http://fcitx-im.org/"
SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=app-i18n/fcitx-4.2.7
app-i18n/libhangul"
DEPEND="${RDEPEND}
sys-devel/gettext
virtual/libintl"
pkg_postinst() {
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>cjk</herd>
</pkgmetadata>

@ -0,0 +1 @@
DIST fcitx-libpinyin-0.2.1_dict.tar.xz 10007544 SHA256 1ec33b2c56f98079fa5383b5fffcbe095ec64ffaa07eefebbc5d609136a2fab8 SHA512 7e446ac1e07301d6671f3de1059d099237aeeb46fdb9f68fce40a205cdcb17542345334b13f45b19f356743f92601492d178e6e2d578567c2506bed9c808ccbd WHIRLPOOL 598341a001d4cbb544bf3e3fc4449b1a323fc9ae6d3fc5fe8217b9a15bc2db22fb937e61bae32b3420a6b33d235368d6bd31fecfd1a845d1edd3acda320cb6f3

@ -0,0 +1,30 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.2.1.ebuild,v 1.1 2013/01/31 12:54:37 yngwin Exp $
EAPI=5
inherit cmake-utils gnome2-utils
DESCRIPTION="Libpinyin module for Fcitx"
HOMEPAGE="http://fcitx-im.org/"
SRC_URI="http://fcitx.googlecode.com/files/${P}_dict.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=app-i18n/fcitx-4.2.7
app-i18n/libpinyin
dev-libs/glib:2"
DEPEND="${RDEPEND}
virtual/libintl
virtual/pkgconfig"
pkg_postinst() {
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>cjk</herd>
</pkgmetadata>

@ -1 +1,2 @@
DIST fcitx-rime-0.1.2.tar.xz 7356 SHA256 528472c13adb050543ba0402077d2e2b37258cb494f7d7900411cfd8c1ad9048 SHA512 325afed9807f99669d63c67bf1de33354697be924f5317e4020ae078755981c3a64d66d64f245bda6197fc2b0aef1a19b32a24e9a7c1a701d3b6b13653767a6a WHIRLPOOL b99177cecf5cce9e2c098e0d716f35a5add2ad0cd89ad655db81fb9c0e7bc4d111e6de1891d488af5eca29a65542af0c626d8cd0a69be87af5782db7905e3ef4
DIST fcitx-rime-0.2.0.tar.xz 8116 SHA256 e4bc9243abffd1851b4ee19c88d7c2b32ede134aeda60aee930388f9f33ca269 SHA512 3f02d7bf0e47981e7a135ccaa46653be319d1bb716bd939b50419e47b8d3c07b347434e8529522d4266bd5fac6dbc2cdc1bfd4b7ea0607250023f70f97006228 WHIRLPOOL 7dbdcd3ac90f2d901b5b5c06541b9f6f1debf4ad833c2ddacb840dbd80a4443725fc7bdb41ad2261db8f34cb0dc77fe3d5f0c45e69a0a056618518007c1c708e

@ -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/app-i18n/fcitx-rime/fcitx-rime-0.2.0.ebuild,v 1.1 2013/01/31 09:54:50 yngwin Exp $
EAPI=5
inherit cmake-utils
DESCRIPTION="Rime support for Fcitx"
HOMEPAGE="http://fcitx-im.org/"
SRC_URI="https://fcitx.googlecode.com/files/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=app-i18n/fcitx-4.2.7
app-i18n/librime
app-i18n/rime-data
x11-libs/libnotify"
DEPEND="${RDEPEND}"
src_prepare() {
# dont build data resource here, already provided by app-i18n/rime-data
sed -i -e 's|add_subdirectory(data)||' CMakeLists.txt || die
}
src_configure() {
local mycmakeargs=(
-DRIME_DATA_DIR=/usr/share/rime-data
)
cmake-utils_src_configure
}

@ -8,10 +8,6 @@
<name>Lan Yixun (dlan)</name>
</maintainer>
<upstream>
<maintainer>
<email>chen.sst@gmail.com</email>
<name>Gong Chen</name>
</maintainer>
<bugs-to>http://code.google.com/p/rimeime/issues/list</bugs-to>
<remote-id type="google-code">rimeime</remote-id>
</upstream>

@ -1 +1,2 @@
DIST fcitx-sunpinyin-0.2.1.tar.gz 22515 SHA256 a12492729cdcde4e52116752fa3e011c6280e581bcf40b8e24f209094dd8f95d SHA512 22e763d409d67a3d29352f4dabc7a4241b82b9037e4da6352b67f9cd03789ce30da39d3e691a1255a903ecb8124aca2b827c7fd6241e8686150c248313d424e0 WHIRLPOOL 0626cf075c4fab46cc4fbbe8b0319b0f376124305167f9e0c017ccc7855f9f0d8db90ee331b4781f37e7ab7c58425100bacfad3ad2000b3222090089432a045d
DIST fcitx-sunpinyin-0.4.0.tar.xz 40264 SHA256 366af4123455bd85e5af104ca0368057470079937f79eaa70e58951de4743acc SHA512 53def2f36de0d9517da0d154ae8926075c69a5712bf74a3e5ba5ba6266e2d94152dac77e051473828d98ed6a78d3f10557a8ca2081bf1f799405a4f6a4afb83f WHIRLPOOL 2c92a9d0a9d48eb8e4aca895ccddb91f1d1fbaf137bdc4fe32519cd25a8294be39140d117a0d4d20a5a3fa3c21086bd6edbd44d93fafdf8f885aa7d3d36f9843

@ -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/app-i18n/fcitx-sunpinyin/fcitx-sunpinyin-0.4.0.ebuild,v 1.1 2013/01/31 09:21:41 yngwin Exp $
EAPI=5
inherit cmake-utils gnome2-utils
DESCRIPTION="Sunpinyin module for fcitx"
HOMEPAGE="http://fcitx-im.org/"
SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=app-i18n/fcitx-4.2.7
>app-i18n/sunpinyin-2.0.3"
DEPEND="${RDEPEND}
virtual/libintl"
src_prepare() {
epatch "${FILESDIR}/${P}-gcc46-compatible.patch"
epatch_user
}
pkg_postinst() {
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}

@ -0,0 +1,27 @@
From f43108d900a2ce7fa52d1c6741fdf41b6747c94c Mon Sep 17 00:00:00 2001
From: Weng Xuetian <wengxt@gmail.com>
Date: Sat, 26 Jan 2013 19:56:31 -0500
Subject: [PATCH] [sunpinyin] gcc46 compatible.
---
src/eim.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/eim.cpp b/src/eim.cpp
index e09521f..c1c898f 100644
--- a/src/eim.cpp
+++ b/src/eim.cpp
@@ -49,8 +49,8 @@
extern "C" {
#endif
FCITX_DEFINE_PLUGIN(fcitx_sunpinyin, ime, FcitxIMClass) = {
- .Create = FcitxSunpinyinCreate,
- .Destroy = FcitxSunpinyinDestroy
+ FcitxSunpinyinCreate,
+ FcitxSunpinyinDestroy
};
#ifdef __cplusplus
}
--
1.7.10

@ -0,0 +1 @@
DIST fcitx-table-extra-0.3.3.tar.xz 3350592 SHA256 ae2bbf9146dfdeafb6220c9a738ddc1f0437da2c5f2da0d578ba4970bc74767d SHA512 ea100ba7bfc558395b678390bb787b15f674c13140ab22b5a9ef423e5114399633d24ec322904fd61d8f3613058744d08f615d4330ed948aad9dcff09818e36f WHIRLPOOL 10a61ea0aac14e9b55902276557c5b5daba17c14a3101d4e4e1384c8922c89dbfe96b1ac543e9ad3408f0951ecd7869a8c4c0d36d168129b2f78d611a0f70158

@ -0,0 +1,27 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.3.ebuild,v 1.1 2013/01/31 13:10:36 yngwin Exp $
EAPI=5
inherit cmake-utils gnome2-utils
DESCRIPTION="Extra tables for Fcitx, including Boshiamy, Zhengma, Cangjie and Quick"
HOMEPAGE="http://fcitx-im.org/"
SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=app-i18n/fcitx-4.2.7[table]"
DEPEND="${RDEPEND}
virtual/libintl"
pkg_postinst() {
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>cjk</herd>
</pkgmetadata>

@ -0,0 +1 @@
DIST fcitx-unikey-0.2.0.tar.xz 70944 SHA256 152da48ffeb665fc5d88202f6491fa5f4d11284792c2ef079bea4a94c8b125e1 SHA512 10c5c2c5b7e4f40710daccc485b220ed4cdadc6e866636032873a86f9f8489490a42671c9d02aedbbda78a94e40801dd888efc9b692d26ff81fe6d1fe2e10fa7 WHIRLPOOL d6dfd445bd5aa98ec28ab0bd9668f288d67f27874ecdd079f78956172f3d5695fd990ce9e70f190a26edd1eab4f48a8263efc8682fe93679a85fc1db2f6745be

@ -0,0 +1,39 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/fcitx-unikey/fcitx-unikey-0.2.0.ebuild,v 1.1 2013/01/31 14:21:08 yngwin Exp $
EAPI=5
inherit cmake-utils gnome2-utils
DESCRIPTION="Vietnamese Unikey module for Fcitx"
HOMEPAGE="http://fcitx-im.org/"
SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+qt4"
RDEPEND=">=app-i18n/fcitx-4.2.7[qt4?]"
DEPEND="${RDEPEND}
sys-devel/gettext"
src_prepare() {
# Add cmake option to build the qt based macro editor or not
epatch "${FILESDIR}/${P}-cmake-qt-option.patch"
}
src_configure() {
local mycmakeargs=(
$(cmake-utils_use_enable qt4 QT)
)
cmake-utils_src_configure
}
pkg_postinst() {
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}

@ -0,0 +1,56 @@
From f0f0d7c1ee5d83f33ceacaf78f4b7845ec2819de Mon Sep 17 00:00:00 2001
From: Weng Xuetian <wengxt@gmail.com>
Date: Sat, 26 Jan 2013 14:45:29 -0500
Subject: [PATCH] [unikey] option for qt, detect qt 4.8
---
CMakeLists.txt | 7 ++++++-
macro-editor/CMakeLists.txt | 4 ++--
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cef1625..5ccf21c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,6 +4,8 @@ project(fcitx-unikey)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
+option(ENABLE_QT "Enable Qt based macro editor" On)
+
# uninstall target
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
@@ -21,9 +23,12 @@ set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--as-needed ${CMAKE_MODULE_LINKER_FLAGS}")
find_package(Fcitx 4.2.7 REQUIRED)
find_package(Libiconv REQUIRED)
find_package(Gettext REQUIRED)
-find_package(Qt4)
+
+if (ENABLE_QT)
+find_package(Qt4 4.8)
pkg_check_modules(FCITX_QT "fcitx-qt>=4.2.7")
+endif (ENABLE_QT)
configure_file(config.h.in config.h)
diff --git a/macro-editor/CMakeLists.txt b/macro-editor/CMakeLists.txt
index fbb2482..145ee0b 100644
--- a/macro-editor/CMakeLists.txt
+++ b/macro-editor/CMakeLists.txt
@@ -16,9 +16,9 @@ fcitx_translate_add_sources(
${MACRO_EDITOR_SRCS}
${MACRO_EDITOR_HDRS})
-if (NOT QT_FOUND OR NOT FCITX_QT_FOUND)
+if (NOT QT_FOUND OR NOT FCITX_QT_FOUND OR NOT ENABLE_QT)
return()
-endif (NOT QT_FOUND OR NOT FCITX_QT_FOUND)
+endif (NOT QT_FOUND OR NOT FCITX_QT_FOUND OR NOT ENABLE_QT)
include_directories(
${FCITX_QT_INCLUDE_DIRS}
--
1.7.10

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>cjk</herd>
</pkgmetadata>

@ -4,5 +4,6 @@ DIST fcitx-4.0.1_all.tar.gz 6917877 SHA256 5a5ab150b0074988053c11daeb0291ab8fb34
DIST fcitx-4.2.1.tar.xz 569824 SHA256 5f8b1972ae179ca6fb1febe5becd27adb71696fa9ee056839991378e6ed18372 SHA512 464ae65d1b99e0972463e9bbbf872aef46059df0e76f516cd83b452b420cbc19aa9be7bf75c86cd535a5750519477a4ed9724f8391c9f9e715aee5f0b044ea4f WHIRLPOOL 5eef2e88cd4cac1b3931a4e1eade48ab26c2b18cf3ec0ebcf11ddd1b651238b478e175f24bcb8595207de7a8c9ab1eec378460d9dc56c1149f76e1cbc6013303
DIST fcitx-4.2.5.tar.xz 1413724 SHA256 478d311d3427e255729671f3a461762348bf5d83ed694d78021012778047140a SHA512 036e987ac57ca80a34822ef1235538caf232537b6062bb6f749882de031756eef0275ff7a2053a8ffd52c524662efefbf3237051bba362aca9ead3d5fd614725 WHIRLPOOL 06561d9a20b857f07e89130dcf291620e19fe5fadac3e5db9126ea0c0ac0ef2a4e29a559f87e9dc2832dda2bda976f74891ed6211e72294acde1e08a60b3dec2
DIST fcitx-4.2.6.1.tar.xz 1442744 SHA256 b3b1fa548163701ca6009fa71362668eb973bffa8067f039d7cbe643e4769ab1 SHA512 9c5a3db7079e7642b6beb3089f185aa1a41e4084d34a0c913abaf951a767a320cd328a34ffce6d92779f4f55978bdfd2e2f9effdc5b70142c22aa312482c01f8 WHIRLPOOL 27c2d6cde4fd5e1850fa7aab6b1a1c40abda242dbe28bf44e37dd9de28878ca616580ed0a0fba9a5511adecc7f520fa0a30e50755bd9653d4f016797d7c4b241
DIST fcitx-4.2.7_dict.tar.xz 8546416 SHA256 0c902617581f04eb0d337634b0bf2b39956abbcc949512cc79d4ee24cfc9dbb5 SHA512 e5d8eb55f644250197e69315ad02b9f6bc84e697b23c20c01a731f98ce8b1a16d764a58b1e1047d45b8decb6be33144707c2a52fc427e6338d8b8186cd4da074 WHIRLPOOL e344bc92a84940d3c885d1ae87a2fc83c95d6cb0f0e95eed76078e996c4a00df82a0c09c4540771f628928db1716f90d50d04469f2c0f2d5c17b5048fbf2d482
DIST pinyin.tar.gz 1608886 SHA256 583829b24a758c087c08de4a69480d0bf5946354fe77db360d6d7f467c2bd8e1 SHA512 1ee19eed3ee58be6cd6562ec363fe3bf630fff5e8820b3bfdd6d4618fceb082695e888dec5366a3685d58706f720e19319d891c223227237aed12674ea982131 WHIRLPOOL c5584213cab5b3729c159759909819bef42d4dba899e58df331aa12b47f5544545d9ba3f8ac7291835cb80c5e180a3a8b31360e9b9e43e4f38387b0eeee74b46
DIST table.tar.gz 4144686 SHA256 6196053c724125e3ae3d8bd6b2f9172d0c83b65b0d410d3cde63b7a8d6ab87b7 SHA512 99e1d69c679355fcf3e117a1ef39b131cbd3af841387d2335757247d840b90ff6b7323e16fca98cf7a043033faf250d2e9c6d47b96845d18c278a0cf6f30fec9 WHIRLPOOL 465997dc17e88fb3130abb60e0c73564fbdb50a10de1587f5efaac4859a001b7b4aea1f0f4f6efe01ada5e8751351b7b6106a130f46d550e5dd0081dfaa780e5

@ -0,0 +1,125 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/fcitx/fcitx-4.2.7.ebuild,v 1.2 2013/01/31 09:02:45 yngwin Exp $
EAPI=5
inherit cmake-utils eutils gnome2-utils fdo-mime multilib readme.gentoo
DESCRIPTION="Flexible Contect-aware Input Tool with eXtension support"
HOMEPAGE="http://fcitx-im.org/"
SRC_URI="http://fcitx.googlecode.com/files/${P}_dict.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE="+X +autostart +cairo +dbus debug +enchant gtk gtk3 icu introspection lua
nls opencc +pango qt4 snooper static-libs +table test +xml"
RDEPEND="
X? (
x11-libs/libX11
x11-libs/libXinerama
)
cairo? (
x11-libs/cairo[X]
pango? ( x11-libs/pango[X] )
!pango? ( media-libs/fontconfig )
)
dbus? ( sys-apps/dbus )
enchant? ( app-text/enchant )
gtk? (
x11-libs/gtk+:2
dev-libs/glib:2
dev-libs/dbus-glib
)
gtk3? (
x11-libs/gtk+:3
dev-libs/glib:2
dev-libs/dbus-glib
)
icu? ( dev-libs/icu )
introspection? ( dev-libs/gobject-introspection )
lua? ( dev-lang/lua )
opencc? ( app-i18n/opencc )
qt4? (
x11-libs/qt-gui:4[dbus,glib]
x11-libs/qt-dbus:4
)
xml? (
app-text/iso-codes
dev-libs/libxml2
x11-libs/libxkbfile
)"
DEPEND="${RDEPEND}
virtual/libintl
virtual/pkgconfig
nls? ( sys-devel/gettext )"
DOCS=( AUTHORS ChangeLog README THANKS TODO
doc/pinyin.txt doc/cjkvinput.txt doc/API.txt doc/Develop_Readme )
HTML_DOCS=( doc/wb_fh.htm )
src_prepare() {
use autostart && DOC_CONTENTS="You have enabled the autostart USE flag,
which will let fcitx start automatically on XDG compatible desktop
environments, such as Gnome, KDE, LXDE, Razor-qt and Xfce. If you use
~/.xinitrc to configure your desktop, make sure to include the fcitx
command to start it."
epatch "${FILESDIR}/${P}-gcc46-compatible.patch"
epatch_user
}
src_configure() {
local mycmakeargs="
-DLIB_INSTALL_DIR=/usr/$(get_libdir)
$(cmake-utils_use_enable X X11)
$(cmake-utils_use_enable autostart XDGAUTOSTART)
$(cmake-utils_use_enable cairo CAIRO)
$(cmake-utils_use_enable dbus DBUS)
$(cmake-utils_use_enable debug DEBUG)
$(cmake-utils_use_enable enchant ENCHANT)
$(cmake-utils_use_enable gtk GTK2_IM_MODULE)
$(cmake-utils_use_enable gtk3 GTK3_IM_MODULE)
$(cmake-utils_use_enable icu ICU)
$(cmake-utils_use_enable introspection GIR)
$(cmake-utils_use_enable lua LUA)
$(cmake-utils_use_enable nls GETTEXT)
$(cmake-utils_use_enable opencc OPENCC)
$(cmake-utils_use_enable pango PANGO)
$(cmake-utils_use_enable qt4 QT)
$(cmake-utils_use_enable qt4 QT_IM_MODULE)
$(cmake-utils_use_enable qt4 QT_GUI)
$(cmake-utils_use_enable snooper SNOOPER)
$(cmake-utils_use_enable static-libs STATIC)
$(cmake-utils_use_enable table TABLE)
$(cmake-utils_use_enable test TEST)
$(cmake-utils_use_enable xml LIBXML2)"
if use gtk || use gtk3 || use qt4 ; then
mycmakeargs+=" -DENABLE_GLIB2=ON "
fi
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
rm -rf "${ED}"/usr/share/doc/${PN} || die
use autostart && readme.gentoo_create_doc
}
pkg_postinst() {
gnome2_icon_cache_update
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
use gtk && gnome2_query_immodules_gtk2
use gtk3 && gnome2_query_immodules_gtk3
use autostart && readme.gentoo_pkg_postinst
}
pkg_postrm() {
gnome2_icon_cache_update
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
use gtk && gnome2_query_immodules_gtk2
use gtk3 && gnome2_query_immodules_gtk3
}

@ -0,0 +1,43 @@
From 4c703e395b55e939f3ac1e4a4bf5cd36aa5b0abc Mon Sep 17 00:00:00 2001
From: Weng Xuetian <wengxt@gmail.com>
Date: Sat, 26 Jan 2013 14:40:00 -0500
Subject: [PATCH] [fcitx] fix compatible with gcc 4.6
---
src/lib/fcitx/module.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/lib/fcitx/module.h b/src/lib/fcitx/module.h
index 28de64f..bae6601 100644
--- a/src/lib/fcitx/module.h
+++ b/src/lib/fcitx/module.h
@@ -109,7 +109,7 @@
void* FcitxModuleInvokeFunction(FcitxAddon* addon, int functionId, FcitxModuleFunctionArg args);
#define FcitxModuleInvokeVaArgs(addon, functionId, ARGV...) \
(FcitxModuleInvokeFunction(addon, functionId, \
- (FcitxModuleFunctionArg){ .args = {ARGV} }))
+ (FcitxModuleFunctionArg){ {ARGV} }))
/**
* invoke inter module function with addon name, returns NULL when fails (the function itself can also return NULL)
@@ -133,7 +133,7 @@
#define InvokeVaArgs(INST, MODULE, FUNC, ARGV...) \
((MODULE##_##FUNC##_RETURNTYPE)FcitxModuleInvokeFunctionByName( \
INST, MODULE##_NAME, MODULE##_##FUNC, \
- (FcitxModuleFunctionArg){ .args = {ARGV} }))
+ (FcitxModuleFunctionArg){ {ARGV} }))
/** add a function to a addon */
#define AddFunction(ADDON, Realname) \
@@ -215,7 +215,7 @@
}
#define FCITX_DEF_MODULE_ARGS(var, ARGV...) \
- FcitxModuleFunctionArg var = { .args = {ARGV} }
+ FcitxModuleFunctionArg var = { {ARGV} }
/* void *__##var##_array[] = {ARGV}; \ */
/* size_t __##var##_length = sizeof(__##var##_array) / sizeof(void*); \ */
/* FcitxModuleFunctionArg var[] = { { .n = __##var##_length, \ */
--
1.7.10

@ -1,17 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>cjk</herd>
<maintainer>
<email>qiaomuf@gentoo.org</email>
<name>Mu Qiao</name>
</maintainer>
<use>
<flag name="introspection">Enable GObject Introspection</flag>
<flag name="gtk3">Use GTK+3 instead of 2</flag>
<flag name='opencc'>Enable OpenCC for Chinese Transform</flag>
<flag name='pango'>Enable support for <pkg>x11-libs/pango</pkg></flag>
<flag name='snooper'>Enable Key Snooper for gtk app</flag>
<flag name='table'>Enable Table IM</flag>
</use>
<herd>cjk</herd>
<use>
<flag name='autostart'>Enable xdg-compatible autostart of fcitx</flag>
<flag name='enchant'>Use <pkg>app-text/enchant</pkg> for text prediction</flag>
<flag name='introspection'>Enable GObject Introspection</flag>
<flag name='gtk'>Install GTK2 IM module</flag>
<flag name='gtk3'>Install GTK3 IM module</flag>
<flag name='opencc'>Enable OpenCC for Chinese Transform</flag>
<flag name='pango'>Enable support for <pkg>x11-libs/pango</pkg></flag>
<flag name='qt4'>Install Qt4 IM module</flag>
<flag name='snooper'>Enable Key Snooper for GTK app</flag>
<flag name='table'>Enable Table IM</flag>
</use>
</pkgmetadata>

@ -1,10 +1,10 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20130108.ebuild,v 1.1 2013/01/30 15:04:29 yngwin Exp $
# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20130108-r1.ebuild,v 1.1 2013/01/31 10:23:45 yngwin Exp $
EAPI=5
PYTHON_DEPEND="2:2.5"
inherit multilib python scons-utils toolchain-funcs
inherit python scons-utils toolchain-funcs
DESCRIPTION="The SunPinYin IMEngine for IBus Framework"
HOMEPAGE="https://sunpinyin.googlecode.com/"
@ -31,7 +31,7 @@ src_configure() {
tc-export CXX
myesconsargs=(
--prefix="${EPREFIX}"/usr
--libdir="${EPREFIX}"/usr/$(get_libdir)
--libexecdir="${EPREFIX}"/usr/libexec
)
}

@ -0,0 +1 @@
DIST kcm-fcitx-0.4.2.tar.xz 63796 SHA256 f681c1a4172b74a63c36094f860eff4ea778422e1062b00fd03509eda745ed66 SHA512 51ccc5b03f076e73cda7852b1bb1598e56114fe1a7733f3eb0a731c0249cbaa2ac7f4c27115929d236cc94a3f131fc790933cddff624387d050fecf3e170842e WHIRLPOOL 6c0f3e4d345c7570ee519878c141ba2f708c85e0dc8a171058af291e6a02b48cdd3965335b9eb766f9a149b31d5fccc0334f8bb7352eb978625367af064e6b17

@ -0,0 +1,21 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/kcm-fcitx/kcm-fcitx-0.4.2.ebuild,v 1.1 2013/01/31 10:48:31 yngwin Exp $
EAPI=5
inherit kde4-base
DESCRIPTION="KDE configuration module for Fcitx"
HOMEPAGE="http://fcitx-im.org/"
SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=app-i18n/fcitx-4.2.7[qt4]
x11-libs/libxkbfile"
DEPEND="${RDEPEND}
sys-devel/gettext
virtual/pkgconfig"

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>cjk</herd>
</pkgmetadata>

@ -0,0 +1,2 @@
DIST libpinyin-0.8.0.tar 2682880 SHA256 42fdb08a880a8c42a25712267463704f988293e0bec20871a306022aefb08290 SHA512 762686b9e2fc95e8071832735764c54cb6252fa40bd5d3eb1e15445a267795b775288cef41f671bf4680f13c0a8b44377b12696ade832b80684300e1dd8787a0 WHIRLPOOL 0be6445e6e39c2f8f9124d0f549d11421092364d55c9345f2862f465ba78044b01df9e338acba055818a7d735e0c41e8e71b3f2f03830a14dd196a9dfe2c9107
DIST model.text.tar.gz 10285854 SHA256 a4924c5b5923c3ff9ce55456a417486d07d3b2f7afc194f4338a1221fe36b533 SHA512 d3f137c7de0f357950abbb1e00c0f5d62fb5b4b0ea9f3a6dff29bf6bb2e4f5293319321abf1bad88742868563f65d74f0226f433ba4bcfdfe2c23fef6fea7c74 WHIRLPOOL fd1d637cfcecbbbd7506d15fd107106e578013aa9ca4c0be1aab110fb49ebcb2dbf1493953349e7cf7b0a8a5a0c2c216d993278d8ae78b42f5c703363b4efe60

@ -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/app-i18n/libpinyin/libpinyin-0.8.0.ebuild,v 1.1 2013/01/31 12:39:48 yngwin Exp $
EAPI=5
inherit autotools eutils
DESCRIPTION="Library for Chinese pinyin input methods"
HOMEPAGE="https://github.com/libpinyin/libpinyin"
SRC_URI="mirror://github/${PN}/${PN}/${PN}-lite-${PV}.tar.gz -> ${P}.tar
mirror://github/${PN}/${PN}/model.text.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="=sys-libs/db-4*
dev-libs/glib:2"
DEPEND="${RDEPEND}
virtual/libintl
virtual/pkgconfig"
src_prepare() {
ln -s "${DISTDIR}"/model.text.tar.gz data || die
sed -e '/wget/d' -i data/Makefile.am || die
epatch_user
eautoreconf
}
src_install() {
default
prune_libtool_files
}

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>cjk</herd>
</pkgmetadata>

@ -1,9 +1,10 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/sunpinyin/sunpinyin-2.0.4_pre20130108.ebuild,v 1.1 2013/01/30 13:36:06 yngwin Exp $
# $Header: /var/cvsroot/gentoo-x86/app-i18n/sunpinyin/sunpinyin-2.0.4_pre20130108.ebuild,v 1.2 2013/01/31 10:56:00 yngwin Exp $
EAPI=5
inherit eutils multilib scons-utils toolchain-funcs
PYTHON_COMPAT=( python2_7 )
inherit eutils multilib python-any-r1 scons-utils toolchain-funcs
DESCRIPTION="A Statistical Language Model based Chinese input method library"
HOMEPAGE="https://sunpinyin.googlecode.com/"
@ -16,6 +17,7 @@ IUSE=""
RDEPEND="dev-db/sqlite:3"
DEPEND="${RDEPEND}
${PYTHON_DEPS}
dev-util/intltool
sys-devel/gettext
virtual/pkgconfig"

@ -1,2 +1,3 @@
DIST recoll-1.16.2.tar.gz 1422148 SHA256 f0f29dff2d82ef8541c51963870f31daf28472f3c8822c81c17c346769b77355 SHA512 c71458bd1a42ef118560e516f30787b8c9dbc8b2841e667b77e420b0866c8308f8509e46be9eaa731348438d4194d1954bf369ea68e23eca5a65ac516806c609 WHIRLPOOL 320afbd8598aae44827eff09dfa936090fe1c4bf34e5d10f4115a211267e8f7f09b4e530e8915c75252dee3bda3c4955979a19075e14da4d99f27ee1bf00df92
DIST recoll-1.17.3.tar.gz 1757278 SHA256 7778f80546e6b10ca45bfb7f8bb0876ccf3987dd4e98c5003ff923bd8b5acb1c SHA512 b41d28255e6bfbfc8e0025d88c3d56ecfbd35814bfa359c41f3e5d3cc25debe6d66dc617aa4c012e1911aa8c373c48a1661f7fff926e2cce423562af82c2fb31 WHIRLPOOL 3ba9d58a0df401832b1a97f34f4caec1b79aa7de027b936b05195d447e374097bff9205714b1a97c287610c74c0ec2e7e726b144c2295859c293a013c3564644
DIST recoll-1.18.1.tar.gz 2026276 SHA256 8ea01dc64002b594b7ca08cf40c5581963bd98617d8ab5554164a8af4a9fd933 SHA512 cf930c648339843b00b5d8bd2074e111f3b397b3ed8453a8fcb7bfcf295adb95e7d0b7d7dcc78819609e7eb5417e1c259d4b10c6ea80c4b45fd61906ab7a7236 WHIRLPOOL 36de30218ca82bc09506e24104e84cf8ca2bc7dbcd00495dc203c6e5d083f5eac6badb513a4892465ae5d2b9869cf4dec89c2f519b04df649599ea9c168b080f

@ -0,0 +1,170 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/recoll/recoll-1.18.1.ebuild,v 1.1 2013/01/30 19:20:11 hwoarang Exp $
EAPI="4"
PYTHON_DEPEND="2"
inherit toolchain-funcs qt4-r2 linux-info python
DESCRIPTION="A personal full text search package"
HOMEPAGE="http://www.lesbonscomptes.com/recoll/"
SRC_URI="http://www.lesbonscomptes.com/recoll/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
INDEX_HELPERS="audio chm djvu dvi exif postscript ics info lyx msdoc msppt msxls pdf rtf tex wordperfect xml"
IUSE="+spell inotify +qt4 +session camelcase xattr fam ${INDEX_HELPERS}"
DEPEND="
virtual/libiconv
>=dev-libs/xapian-1.0.12
sys-libs/zlib
spell? ( app-text/aspell )
!inotify? ( fam? ( virtual/fam ) )
qt4? (
x11-libs/qt-core:4[qt3support]
x11-libs/qt-webkit:4
)
session? (
inotify? ( x11-libs/libX11 x11-libs/libSM x11-libs/libICE )
!inotify? ( fam? ( x11-libs/libX11 x11-libs/libSM x11-libs/libICE ) )
)
"
RDEPEND="
${DEPEND}
app-arch/unzip
sys-apps/sed
|| ( sys-apps/gawk sys-apps/mawk )
pdf? ( app-text/poppler )
postscript? ( app-text/pstotext )
msdoc? ( app-text/antiword )
msxls? ( app-text/catdoc )
msppt? ( app-text/catdoc )
wordperfect? ( app-text/libwpd:0.9 )
rtf? ( app-text/unrtf )
tex? ( dev-tex/detex )
dvi? ( virtual/tex-base )
djvu? ( >=app-text/djvu-3.5.15 )
exif? ( media-libs/exiftool )
chm? ( dev-python/pychm )
ics? ( dev-python/icalendar )
lyx? ( app-office/lyx )
audio? ( media-libs/mutagen )
xml? ( dev-libs/libxslt )
info? ( sys-apps/texinfo )
"
REQUIRED_USE="session? ( || ( fam inotify ) )"
pkg_pretend() {
if use inotify; then
CONFIG_CHECK="~INOTIFY_USER"
check_extra_config
fi
}
pkg_setup() {
python_set_active_version 2
python_pkg_setup
local i at_least_one_helper
at_least_one_helper=0
for i in $INDEX_HELPERS; do
if use $i; then
at_least_one_helper=1
break
fi
done
if [[ $at_least_one_helper -eq 0 ]]; then
ewarn
ewarn "You did not enable any of the optional file format flags."
ewarn "Recoll can read some file formats natively, but many of them"
ewarn "are optional since they require external helpers."
ewarn
fi
}
src_prepare() {
# remember configure.ac is b0rked. Fix it before using eautoreconf in the
# future
# eautoreconf
# do not strip binaries
sed -i -e "/STRIP/d" "${S}"/${PN}install.in \
|| die "Failed to fix the installation script"
# Drop all the QMAKE lines. We will do it ourselves
sed -i -e "/QMAKE/d" Makefile.in || die
}
src_configure() {
local qtconf
use qt4 && qtconf="QMAKEPATH=/usr/bin/qmake"
econf \
$(use_with spell aspell) \
$(use_enable xattr) \
$(use_with inotify) \
$(use_enable qt4 qtgui) \
$(use_enable camelcase) \
$(use_with fam) \
$(use_with inotify) \
$(use_enable session x11mon) \
${qtconf}
cd qtgui && eqmake4 ${PN}.pro && cd ..
}
src_compile() {
# Do not let upstream people decide on our behalf
sed -i "s:ar ru:$(tc-getAR) ru:" lib/Makefile || die
emake \
CC=$(tc-getCC) \
CXX=$(tc-getCXX) \
CFLAGS="${CFLAGS} ${LDFLAGS}" \
CXXFLAGS="${CXXFLAGS} ${LDFLAGS}"
}
src_install() {
# You probably wonder why I did not fix recollinstall in src_prepare.
# --prefix requires an absolute path but recollinstall requires prefix
# to be actually 'usr' because double // makes portage sad. And no, I am not
# gonna ask upstream to fix the build system
sed -i -e "/PREFIX/s:/usr:usr:" "${S}"/${PN}install || die
sed -i -e "/prefix/s:/usr:usr:" "${S}"/Makefile || die
emake DESTDIR="${D%/}" install
dodoc ChangeLog README
mv "${D}/usr/share/${PN}/doc" "${D}/usr/share/doc/${PF}/html"
dosym /usr/share/doc/${PF}/html /usr/share/${PN}/doc
}
pkg_postinst() {
elog
elog "Default configuration files located at"
elog "/usr/share/${PN}/examples. Either edit these files to match"
elog "your needs or copy them to ~/.recoll/ and edit these files"
elog "instead."
elog
if use xattr; then
elog "Use flag \"xattr\" enables support for fetching field values"
elog "from extended file attributes. You will also need to set up a"
elog "map from the attributes names to the Recoll field names"
elog "(see comment at the end of the fields configuration file."
fi
if [[ -n ${REPLACING_VERSIONS} ]]; then
elog
elog "1.18 introduces significant index formats"
elog "changes to support optional character case and diacritics"
elog "sensitivity, and it will be advisable to reset the index in"
elog "most cases. This will be best done by destroying the index"
elog "directory (rm -rf ~/.recoll/xapiandb). If 1.18 is not configured"
elog "for case and diacritics sensitivity, it is mostly compatible"
elog "with 1.17 indexes."
elog
fi
}

@ -1,4 +1,2 @@
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

@ -1,42 +0,0 @@
# 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-2.9.2.ebuild,v 1.4 2013/01/08 15:46:15 jer Exp $
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="linguas_en linguas_fr linguas_de linguas_es linguas_nl linguas_ru"
DEPEND="sys-libs/ncurses"
RDEPEND=${DEPEND}
src_unpack() {
unpack ${A}
cd "${S}"
rm po/LINGUAS
}
src_compile() {
local ALL_LINGUAS=""
use linguas_en && ALL_LINGUAS="${ALL_LINGUAS} en"
use linguas_fr && ALL_LINGUAS="${ALL_LINGUAS} fr"
use linguas_de && ALL_LINGUAS="${ALL_LINGUAS} de"
use linguas_es && ALL_LINGUAS="${ALL_LINGUAS} es"
use linguas_nl && ALL_LINGUAS="${ALL_LINGUAS} nl"
ALL_LINGUAS="${ALL_LINGUAS}" econf || die "econf failed"
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS NEWS README TODO
}

@ -1,25 +0,0 @@
# 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.0.0.ebuild,v 1.4 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,6 +1,6 @@
# 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.1.ebuild,v 1.3 2013/01/19 08:07:07 pinkbyte Exp $
# $Header: /var/cvsroot/gentoo-x86/app-office/calcurse/calcurse-3.1.1.ebuild,v 1.4 2013/01/30 19:00:40 ago Exp $
EAPI=4
inherit eutils
@ -11,7 +11,7 @@ SRC_URI="http://calcurse.org/files/${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="amd64 ~x86"
KEYWORDS="amd64 x86"
IUSE="test"
CC_LINGUAS="de en es fr nl pt_BR ru"
for lingua in ${CC_LINGUAS}; do

@ -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/app-office/libreoffice-l10n/libreoffice-l10n-4.0.0.2.ebuild,v 1.1 2013/01/30 17:21:34 scarabeus Exp $
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-l10n/libreoffice-l10n-4.0.0.2.ebuild,v 1.2 2013/01/31 13:50:13 scarabeus Exp $
EAPI=4
@ -39,11 +39,7 @@ for lang in ${LANGUAGES}; do
done
unset lang helppack langpack lang2
RDEPEND+="
app-text/hunspell
!<app-office/libreoffice-$(get_version_component_range 1-2)
!<app-office/libreoffice-bin-$(get_version_component_range 1-2)
"
RDEPEND+="app-text/hunspell"
RESTRICT="strip"

@ -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/app-office/libreoffice/libreoffice-4.0.0.2.ebuild,v 1.3 2013/01/27 08:23:22 scarabeus Exp $
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-4.0.0.2.ebuild,v 1.4 2013/01/31 13:58:21 scarabeus Exp $
EAPI=5
@ -180,9 +180,13 @@ RDEPEND="${COMMON_DEPEND}
java? ( >=virtual/jre-1.6 )
"
PDEPEND="
=app-office/libreoffice-l10n-4.0*
"
if [[ ${PV} != *9999* ]]; then
PDEPEND="~app-office/libreoffice-l10n-${PV}"
else
# Translations are not reliable on live ebuilds
# rather force people to use english only.
PDEPEND="!app-office/libreoffice-l10n"
fi
# FIXME: cppunit should be moved to test conditional
# after everything upstream is under gbuild

@ -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/app-office/libreoffice/libreoffice-4.0.9999.ebuild,v 1.19 2013/01/28 18:04:28 scarabeus Exp $
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-4.0.9999.ebuild,v 1.20 2013/01/31 13:58:21 scarabeus Exp $
EAPI=5
@ -181,9 +181,13 @@ RDEPEND="${COMMON_DEPEND}
java? ( >=virtual/jre-1.6 )
"
PDEPEND="
=app-office/libreoffice-l10n-4.0*
"
if [[ ${PV} != *9999* ]]; then
PDEPEND="~app-office/libreoffice-l10n-${PV}"
else
# Translations are not reliable on live ebuilds
# rather force people to use english only.
PDEPEND="!app-office/libreoffice-l10n"
fi
# FIXME: cppunit should be moved to test conditional
# after everything upstream is under gbuild

@ -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/app-office/libreoffice/libreoffice-9999-r2.ebuild,v 1.157 2013/01/28 18:04:28 scarabeus Exp $
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-9999-r2.ebuild,v 1.158 2013/01/31 13:58:21 scarabeus Exp $
EAPI=5
@ -180,9 +180,13 @@ RDEPEND="${COMMON_DEPEND}
java? ( >=virtual/jre-1.6 )
"
PDEPEND="
=app-office/libreoffice-l10n-4.0*
"
if [[ ${PV} != *9999* ]]; then
PDEPEND="~app-office/libreoffice-l10n-${PV}"
else
# Translations are not reliable on live ebuilds
# rather force people to use english only.
PDEPEND="!app-office/libreoffice-l10n"
fi
# FIXME: cppunit should be moved to test conditional
# after everything upstream is under gbuild

@ -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/app-portage/emerge-delta-webrsync/emerge-delta-webrsync-3.6.2.ebuild,v 1.4 2013/01/28 17:58:55 zmedico Exp $
# $Header: /var/cvsroot/gentoo-x86/app-portage/emerge-delta-webrsync/emerge-delta-webrsync-3.6.2.ebuild,v 1.5 2013/01/30 18:07:38 ago Exp $
EAPI=4
DESCRIPTION="emerge-webrsync using patches to minimize bandwidth"
@ -9,7 +9,7 @@ SRC_URI="http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=blob_plain;
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~hppa ~ia64 ~mips ~ppc ~sparc ~x86 ~x86-fbsd"
KEYWORDS="~alpha amd64 ~hppa ~ia64 ~mips ~ppc ~sparc x86 ~x86-fbsd"
IUSE=""
DEPEND=""

@ -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/app-shells/bash/bash-4.2_p42.ebuild,v 1.1 2013/01/03 03:31:22 vapier Exp $
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-4.2_p42.ebuild,v 1.2 2013/01/31 05:25:11 vapier Exp $
EAPI="1"
@ -119,6 +119,7 @@ src_compile() {
# ncurses in one or two small places :(.
use plugins && append-ldflags -Wl,-rpath,/usr/$(get_libdir)/bash
tc-export AR #444070
econf \
--with-installed-readline=. \
--with-curses \

@ -6,7 +6,7 @@
<name>Fabian Groffen</name>
</maintainer>
<maintainer>
<email>corentin.labbe@geomatys.fr</email>
<email>clabbe.montjoie@gmail.com</email>
<name>LABBE Corentin (Montjoie)</name>
<description>Maintainer. Assign bugs to him</description>
</maintainer>

@ -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/app-text/glosung/glosung-3.6.2-r1.ebuild,v 1.2 2013/01/29 21:41:00 ago Exp $
# $Header: /var/cvsroot/gentoo-x86/app-text/glosung/glosung-3.6.2-r1.ebuild,v 1.3 2013/01/30 19:02:07 ago Exp $
EAPI=5
@ -11,7 +11,7 @@ SRC_URI="mirror://sourceforge/glosung/${P}.tar.bz2"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="amd64 ~x86"
KEYWORDS="amd64 x86"
IUSE=""
RDEPEND="

@ -1,13 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>proxy-maintainers</herd>
<maintainer>
<email>hwoarang@gentoo.org</email>
<name>Markos Chandras</name>
<description>Proxy maintainer. CC him on bugs</description>
</maintainer>
<maintainer>
<email>corentin.labbe@geomatys.fr</email>
<email>clabbe.montjoie@gmail.com</email>
<name>LABBE Corentin (Montjoie)</name>
<description>Maintainer. Assign bugs to him</description>
</maintainer>

@ -1,4 +1,5 @@
DIST Firebird-2.0.3.12981-0.tar.bz2 12623689 SHA256 7abda7a3a35abeb4d2ff38b99e6238d713184e6c70a786777b7adcbad6b1261e SHA512 feed7f72281ec5b4aa6b8902781a43c16c8d3349281e8fc636a6a6a77df592ce39bc757920847caad97d0148702937dce25830dc1e8a2b12045c3f310938b83f WHIRLPOOL 75c969486394d93bb37330c2c1a298be16f2de3bb3715039851d8b4cbe82787d497afc9441e8dbc1657633416b4919dae0c978386ed0bd2ea950e27ac0f505bb
DIST Firebird-2.1.3.18185-0.tar.bz2 13770360 SHA256 8047cbd4bdc79928be7369bf0cdfde74873f1de29c0ac74e7241826c02f0fd28 SHA512 806423287e1292eacd4f97447023e7fa39e44faf757d527086d62dcaba08326b7dff2afe2eb64a5a0bbb1bd68dd0fb7d22dca4898b058dafae21f255e1ef20bd WHIRLPOOL ab32a78d8ca33fab6db0ce8af371bbbb76fd3691c3b64e26a7973ba6daca7fe54b32570dd80008d5b3c6ab3489e5b5c05db292b0e6ebbd02f04ea91fba9ec247
DIST Firebird-2.5.1.26351-0.tar.bz2 13665242 SHA256 c4d236e7a9ab3ca00df3faca80f55175d11052637369c877b3e22cd377edb813 SHA512 876531e8ac49dbdc96cdb4d04d495fbf10d51d51138859e964d120204af02d82a7b80a2e982adc16864fb6f66e299b9f7a70274229bdc83f19edc9e7a4860d6b WHIRLPOOL 286ffe01f9583136124940da1235fef6cd4f9acb2224b58756e5d89e8f1a1851a794993030afaa122f4e884d4310b64e2bf8619c1020b95dad00245952d725f1
DIST Firebird-2.5.2.26539-0.tar.bz2 13708119 SHA256 6b90e5579f9dc3f527b7cf84ac869682aa9582a61f81c6288926c332a863abc8 SHA512 f3b3a8ec35202620bd6b35d5b1004a0d668b8d1a0a7c0864b40b9a7fb682e8b0d0f7b68fbbdc1ee8ace4602f1756103798a1ed8f4b8b14dfa921e06b81c10e8b WHIRLPOOL 669ac7b611dbe7badedc2c3cbf0d3d51b1555b7aaf7ed1bd48f1103e8c85304579411a40a5d29626580cb24eb40ba694639c8a02f98f715b16b0bb18f317c393
DIST ib_b60_doc.zip 10530848 SHA256 8c0158678b2a2fe3ba3abfea1f5487fc5af2644d66837ab8a558f5ad6b6cfd6d SHA512 59eccf1d6b1f0410eddbc5967fd77a3d00e09749640b3f81e2f8b624f5a45461dffad4af5ec61488e941fb3d3af266fe86c0b56e6b7e023239537cb6557a145a WHIRLPOOL 5c3e17eec64d835bac8832a51acefe04c3a5ff818d1d1e69a032bae1a730fd73996a2be073d2e22bcd4ad4ee1ba2247da8271cd3a03c0326acf46eef1073033f

@ -0,0 +1,299 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/firebird-2.5.2.26539.0.ebuild,v 1.1 2013/01/31 05:57:24 patrick Exp $
EAPI=4
inherit flag-o-matic eutils autotools multilib user versionator
MY_P=${PN/f/F}-$(replace_version_separator 4 -)
#MY_P=${PN/f/F}-${PV/_rc/-ReleaseCandidate}
DESCRIPTION="A relational database offering many ANSI SQL:2003 and some SQL:2008 features"
HOMEPAGE="http://www.firebirdsql.org/"
SRC_URI="mirror://sourceforge/firebird/${MY_P}.tar.bz2
doc? ( ftp://ftpc.inprise.com/pub/interbase/techpubs/ib_b60_doc.zip )"
LICENSE="IDPL Interbase-1.0"
SLOT="0"
KEYWORDS="~amd64 -ia64 ~x86"
IUSE="doc client superserver xinetd examples debug"
RESTRICT="userpriv"
RDEPEND="dev-libs/libedit
dev-libs/icu"
DEPEND="${RDEPEND}
>=dev-util/btyacc-3.0-r2
doc? ( app-arch/unzip )"
RDEPEND="${RDEPEND}
xinetd? ( virtual/inetd )
!sys-cluster/ganglia"
S="${WORKDIR}/${MY_P}"
pkg_pretend() {
if use client && use superserver ; then
die "Use flags client and superserver cannot be used together"
fi
if use client && use xinetd ; then
die "Use flags client and xinetd cannot be used together"
fi
if use superserver && use xinetd ; then
die "Use flags superserver and xinetd cannot be used together"
fi
}
pkg_setup() {
enewgroup firebird 450
enewuser firebird 450 /bin/bash /usr/$(get_libdir)/firebird firebird
}
function check_sed() {
MSG="sed of $3, required $2 lines modified $1"
einfo "${MSG}"
[[ $1 -ge $2 ]] || die "${MSG}"
}
src_unpack() {
if use doc; then
# Unpack docs
mkdir "${WORKDIR}/manuals"
cd "${WORKDIR}/manuals"
unpack ib_b60_doc.zip
cd "${WORKDIR}"
fi
unpack "${MY_P}.tar.bz2"
cd "${S}"
}
src_prepare() {
# This patch might be portable, and not need to be duplicated per version
# also might no longer be necessary to patch deps or libs, just flags
epatch "${FILESDIR}/${PN}-2.5.1.26351.0-deps-flags.patch"
use client && epatch "${FILESDIR}/${PN}-2.5.1.26351.0-client.patch"
if ! use superserver ; then
epatch "${FILESDIR}/${PN}-2.5.1.26351.0-superclassic.patch"
fi
# Rename references to isql to fbsql
# sed vs patch for portability and addtional location changes
check_sed "$(sed -i -e 's:"isql :"fbsql :w /dev/stdout' \
src/isql/isql.epp | wc -l)" "1" "src/isql/isql.epp" # 1 line
check_sed "$(sed -i -e 's:isql :fbsql :w /dev/stdout' \
src/msgs/history2.sql | wc -l)" "4" "src/msgs/history2.sql" # 4 lines
check_sed "$(sed -i -e 's:--- ISQL:--- FBSQL:w /dev/stdout' \
-e 's:isql :fbsql :w /dev/stdout' \
-e 's:ISQL :FBSQL :w /dev/stdout' \
src/msgs/messages2.sql | wc -l)" "6" "src/msgs/messages2.sql" # 6 lines
find "${S}" -name \*.sh -print0 | xargs -0 chmod +x
rm -rf "${S}"/extern/{btyacc,editline,icu}
eautoreconf
}
src_configure() {
filter-flags -fprefetch-loop-arrays
filter-mfpmath sse
econf --prefix=/usr/$(get_libdir)/firebird \
$(use_enable superserver superserver) \
$(use_enable debug) \
--with-editline \
--with-system-editline \
--with-system-icu \
--with-fbbin=/usr/bin \
--with-fbsbin=/usr/sbin \
--with-fbconf=/etc/${PN} \
--with-fblib=/usr/$(get_libdir) \
--with-fbinclude=/usr/include \
--with-fbdoc=/usr/share/doc/${P} \
--with-fbudf=/usr/$(get_libdir)/${PN}/UDF \
--with-fbsample=/usr/share/doc/${P}/examples \
--with-fbsample-db=/usr/share/doc/${P}/examples/db \
--with-fbhelp=/usr/$(get_libdir)/${PN}/help \
--with-fbintl=/usr/$(get_libdir)/${PN}/intl \
--with-fbmisc=/usr/share/${PN} \
--with-fbsecure-db=/etc/${PN} \
--with-fbmsg=/usr/$(get_libdir)/${PN} \
--with-fblog=/var/log/${PN}/ \
--with-fbglock=/var/run/${PN} \
--with-fbplugins=/usr/$(get_libdir)/${PN}/plugins \
--with-gnu-ld \
${myconf}
}
src_compile() {
MAKEOPTS="${MAKEOPTS/-j*/-j1} ${MAKEOPTS/-j/CPU=}"
emake
}
src_install() {
cd "${S}/gen/${PN}"
if use doc; then
dodoc docs/*.pdf
dodoc "${WORKDIR}"/manuals/*
fi
insinto /usr/include
doins include/*
rm lib/libfbstatic.a
insinto /usr/$(get_libdir)
dolib.so lib/*.so*
# links for backwards compatibility
dosym libfbclient.so /usr/$(get_libdir)/libgds.so
dosym libfbclient.so /usr/$(get_libdir)/libgds.so.0
dosym libfbclient.so /usr/$(get_libdir)/libfbclient.so.1
insinto /usr/$(get_libdir)/${PN}
doins *.msg
use client && return
einfo "Renaming isql -> fbsql"
mv bin/isql bin/fbsql
local bins="fbsql fbsvcmgr fbtracemgr gbak gdef gfix gpre gsec gstat nbackup qli"
for bin in ${bins[@]}; do
dobin bin/${bin}
done
dosbin bin/fb_lock_print
# SuperServer
if use superserver ; then
dosbin bin/{fbguard,fbserver}
# ClassicServer
elif use xinetd ; then
dosbin bin/fb_inet_server
# SuperClassic
else
dosbin bin/{fbguard,fb_smp_server}
#Temp should not be necessary, need to patch/fix
dosym "${D}"/usr/$(get_libdir)/libib_util.so /usr/$(get_libdir)/${PN}/lib/libib_util.so
fi
exeinto /usr/bin/${PN}
exeopts -m0755
doexe bin/{changeRunUser,restoreRootRunUser,changeDBAPassword}.sh
insinto /usr/$(get_libdir)/${PN}/help
doins help/help.fdb
exeinto /usr/$(get_libdir)/firebird/intl
dolib.so intl/libfbintl.so
dosym "${D}"/usr/$(get_libdir)/libfbintl.so /usr/$(get_libdir)/${PN}/intl/fbintl
dosym "${D}"/etc/firebird/fbintl.conf /usr/$(get_libdir)/${PN}/intl/fbintl.conf
exeinto /usr/$(get_libdir)/${PN}/plugins
dolib.so plugins/libfbtrace.so
dosym "${D}"/usr/$(get_libdir)/libfbtrace.so /usr/$(get_libdir)/${PN}/plugins/libfbtrace.so
exeinto /usr/$(get_libdir)/${PN}/UDF
doexe UDF/*.so
insinto /usr/share/${PN}/upgrade
doins "${S}"/src/misc/upgrade/v2/*
insinto /etc/${PN}
insopts -m0644 -o firebird -g firebird
doins ../install/misc/*.conf
insopts -m0660 -o firebird -g firebird
doins security2.fdb
if use xinetd ; then
insinto /etc/xinetd.d
newins "${FILESDIR}/${PN}.xinetd" ${PN}
else
newinitd "${FILESDIR}/${PN}.init.d.2.5" ${PN}
newconfd "${FILESDIR}/${PN}.conf.d.2.5" ${PN}
fperms 640 /etc/conf.d/${PN}
fi
insinto /etc/logrotate.d
newins "${FILESDIR}/${PN}.logrotate" ${PN}
diropts -m 755 -o firebird -g firebird
dodir /var/log/${PN}
dodir /var/run/${PN}
keepdir /var/log/${PN}
keepdir /var/run/${PN}
use examples && docinto examples
}
pkg_postinst() {
use client && return
# Hack to fix ownership/perms
chown -fR firebird:firebird "${ROOT}/etc/${PN}" "${ROOT}/usr/$(get_libdir)/${PN}"
chmod 750 "${ROOT}/etc/${PN}"
elog
elog "Firebird is no longer installed in /opt. Binaries are in"
elog "/usr/bin. The core, udfs, etc are in /usr/lib/firebird. Logs"
elog "are in /var/log/firebird, and lock files in /var/run/firebird"
elog "The command line tool isql has been renamed to fbsql."
elog "Please report any problems or issues to bugs.gentoo.org."
elog
}
pkg_config() {
use client && return
# if found /etc/security.gdb from previous install, backup, and restore as
# /etc/security2.fdb
if [ -f "${ROOT}/etc/firebird/security.gdb" ] ; then
# if we have scurity2.fdb already, back it 1st
if [ -f "${ROOT}/etc/firebird/security2.fdb" ] ; then
cp "${ROOT}/etc/firebird/security2.fdb" "${ROOT}/etc/firebird/security2.fdb.old"
fi
gbak -B "${ROOT}/etc/firebird/security.gdb" "${ROOT}/etc/firebird/security.gbk"
gbak -R "${ROOT}/etc/firebird/security.gbk" "${ROOT}/etc/firebird/security2.fdb"
mv "${ROOT}/etc/firebird/security.gdb" "${ROOT}/etc/firebird/security.gdb.old"
rm "${ROOT}/etc/firebird/security.gbk"
# make sure they are readable only to firebird
chown firebird:firebird "${ROOT}/etc/firebird/{security.*,security2.*}"
chmod 660 "${ROOT}/etc/firebird/{security.*,security2.*}"
einfo
einfo "Converted old security.gdb to security2.fdb, security.gdb has been "
einfo "renamed to security.gdb.old. if you had previous security2.fdb, "
einfo "it's backed to security2.fdb.old (all under ${ROOT}/etc/firebird)."
einfo
fi
# we need to enable local access to the server
if [ ! -f "${ROOT}/etc/hosts.equiv" ] ; then
touch "${ROOT}/etc/hosts.equiv"
chown root:0 "${ROOT}/etc/hosts.equiv"
chmod u=rw,go=r "${ROOT}/etc/hosts.equiv"
fi
# add 'localhost.localdomain' to the hosts.equiv file...
if [ grep -q 'localhost.localdomain$' "${ROOT}/etc/hosts.equiv" 2>/dev/null ] ; then
echo "localhost.localdomain" >> "${ROOT}/etc/hosts.equiv"
einfo "Added localhost.localdomain to ${ROOT}/etc/hosts.equiv"
fi
# add 'localhost' to the hosts.equiv file...
if [ grep -q 'localhost$' "${ROOT}/etc/hosts.equiv" 2>/dev/null ] ; then
echo "localhost" >> "${ROOT}/etc/hosts.equiv"
einfo "Added localhost to ${ROOT}/etc/hosts.equiv"
fi
HS_NAME=`hostname`
if [ grep -q ${HS_NAME} "${ROOT}/etc/hosts.equiv" 2>/dev/null ] ; then
echo "${HS_NAME}" >> "${ROOT}/etc/hosts.equiv"
einfo "Added ${HS_NAME} to ${ROOT}/etc/hosts.equiv"
fi
einfo "If you're using UDFs, please remember to move them"
einfo "to /usr/lib/firebird/UDF"
}

@ -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-db/mysql-workbench/mysql-workbench-5.2.45.ebuild,v 1.3 2013/01/29 21:40:30 ago Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-workbench/mysql-workbench-5.2.45.ebuild,v 1.4 2013/01/30 18:09:29 ago Exp $
EAPI=5
GCONF_DEBUG="no"
@ -19,7 +19,7 @@ SRC_URI="mirror://mysql/Downloads/MySQLGUITools/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux"
IUSE="debug doc gnome-keyring nls static-libs"
# Build system bundles an unreleased copy of dev-libs/antlr-c 3.4 so we

@ -1,8 +1,6 @@
DIST CEGUI-0.6.2-DOCS.tar.gz 18396638 SHA256 f1ea46bd583c486a6c588118573ebde55b06e90b190083e95525820e950ce2c8 SHA512 56ded923f21f18d837d71425e06fe8675a2efa979edde461a9e4e558c213cbb79ff8eeb576211da6ade56526ccdd9644a7a45b3619058615388e3882f96b9fb4 WHIRLPOOL f67c9dba4558c43ec9d14c160f228e974de4364bfe36ebfa9f3fe6bfc290fd5c4f024e954525845cd83645a06d53e6d63776137cbe58c459bcdd0e350d12e9c7
DIST CEGUI-0.6.2b.tar.gz 2628081 SHA256 eb77741cd9fcc927a876e8116b98691212e973d2264e2071406423f6ca3e305f SHA512 52ed7e7a97024138af957815a396dda74b650e7c53542d2d48c5eb95335bec270abca3685c49b05078f4338079334df6bfbcec75e9b7eb21ee40bdbff5f57b20 WHIRLPOOL 3fde683a82fb0be33565adb28fbcb4b7001be99f1b3bdb2d3af9abecc5dc7681d633f141cc19f9eb1dc264d0fb0b2084ea604202a22a3e2cc415bdb6b9686161
DIST CEGUI-0.7.6.tar.gz 9146821 SHA256 b1b969332f8325ad4b6af7d4607417162d6c06100f4c6569248aed6afcafa3c6 SHA512 fc2660f3d9955463da5d8b22321d99f24a88f2a0dad76dba80f18b70d81bc9e66b3dd8c83cf79408e28e1a83a0f66f746264c4b1169837dd2c67df427c2c5537 WHIRLPOOL 04b4f8d51d91d60f015f9d3da0845353b5d09b93fcda086a93daebc932ce4123737f804cc2fb37fdb92f92ac6c3252eb4225c47fe93a71cc3198ea369f4a4d6e
DIST CEGUI-0.7.7.tar.gz 9176105 SHA256 551e6fe4fffc7586b0ef0434b83ddc2b3889fc8c7eb22d4cca92b1c7ce25059a SHA512 a3adaf1fc8a9adbe7e2eb5939bacbbb6c9b9c5c0299c247e3f562faae1fa5d697634536d2a977925346b49d1060326359fd4739462074b780b6f6649e6f7a4f0 WHIRLPOOL cc394977876137cf0b5b8f75f0ae66eb5a2fcb30e2088b41392f53fdd15a3a4d989ab4784924667f18a12fe569ef3472027e0334e7190cb60fe2d2f596603cf7
DIST CEGUI-0.7.9.tar.gz 9204644 SHA256 7c3b264def08b46de749c2acaba363e907479d924612436f3bd09da2e474bb8c SHA512 c7fcf64360145d32b7fbbf49e627cff8da4ff8cb62b2999837d68951c7218526247388b4e1dae9873cc2734fb36cac328e4a4982fb1d343cdb2a98831cdd0bf0 WHIRLPOOL bf0af2f1f2490cf1374e3fdf19ed616457aacb55ce7c363aee679a361432d3bbe1d9feb7ae223bcece202ee13fd82d7910b4abdeff7efac07bf9d8076d0be9a5
DIST CEGUI-DOCS-0.7.6.tar.gz 11809064 SHA256 891285f68284b75211874c27bdea55dbc351233dead261ec0c6848eabfe16894 SHA512 119b4e4b829d7f88df746f81ea5b1bfd244a7025e89cf64864045db3f8d326176e08bbbe50f093cb5e37d5a99117f994b0fc554c3f00de1cadc389044af2fbb0 WHIRLPOOL cfb46f62c20778e9d5dcaf5156140c44a130413984c3b64146693115ebcc8975da93c74cbaeb81bc8f8280f3b40df130ea6221a430852ca2dff6a1312c1c1a7b
DIST CEGUI-DOCS-0.7.7.tar.gz 14303467 SHA256 21b6fb8841dfb40650d68b3149afe24d7bde7c1986c0e3d86f9c34baa1b00c6c SHA512 cf0745ab9fdc4ca939aabeacf3c15e677ce26a3f4ecf136debc661842adc24955b30460a69238ab65ae65e4367e7da3515125befed2f017aa1b4981f32ccd08c WHIRLPOOL 2faa44214efe454211267f6417a5a0817026e3e46315acabe6b0ead1354443f0396c2bff8ecaa82210d922d59d2d5a6b60b9bab3c6cc2c7184ce6a5f49cd81bc
DIST CEGUI-DOCS-0.7.9.tar.gz 16240236 SHA256 6c5305d7bff392b97d6bbbafb9b2579ad4974320d57397010ae4415da125fe5e SHA512 d1c7cd80861ee467c865fbad115ecaed79220bc373b1c3e2fcd9a69e89f750925954f20196f366dc334c8eb7eb6dc444c8ded190eb7f9ab52e0521d02ef78767 WHIRLPOOL 8c9757d4497d23803a6653fb0e5c55ebc2449e145fa216f2f5f72d0f8adca66e63712a9e150dffbca36396805d0e713052272afbfe0471b8edbc45619939276d

@ -1,165 +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.6-r1.ebuild,v 1.8 2012/06/18 18:10:06 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 )
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
# zlib-1.2.5.1-r1 renames the OF macro in zconf.h, bug #420293
# and http://www.cegui.org.uk/mantis/view.php?id=813
sed -i '1i#define OF(x) x' \
"${S2}"/cegui/src/minizip/{ioapi,unzip}.h || die
}
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,3 +1,2 @@
DIST ClanLib-0.8.1.tgz 7629019 SHA256 094331dda35b0d263431d1551991eb208d8e969824434925548a9fcd1d34e495 SHA512 277daaf1055ae0198be7a6bbfd415c79cfae9e2145f62553e83849d670f56e50b8484c83f8b85f23290002e0b0c72c1e01ca597ad608a0954a4add828177293b WHIRLPOOL be486125f406a307676c4957f977b6ccc6bc2ce527a72fb4febcb3d1c7e2acdc4fc6706b66b75412184c3a0744c53e962011b0c3ac22958da5e987f0fccc9d87
DIST ClanLib-2.3.4.tgz 25527668 SHA256 d3d2d2f32935bb382fb15f5008100e36182261c13561917e3aba11e271d5f1c3 SHA512 03c1fffc3f5bd3cb19c23f902507fdc0897a02c35fc9d02afa0a7e7547b7a2e3e6bb8634ee52eefb054c0e1aa3b50a77f877226a568ace35326cb9c45abcda12 WHIRLPOOL 06453b7d69352d2cd5672e788d5654dfc6458488f2039ddc0d601318c994dcd4312ff80bd1ef0645ee371b42a99c825382886a2b7d47275371b3587c6c64edce
DIST ClanLib-2.3.6.tgz 25605576 SHA256 b8dc9b41028bf16c0a6082aa15cdee5d8b1ecd5256797576970f09a63e3fafde SHA512 572b51984f960a93dd03ad9f48a9f81a7c21c471616fe376c4b54e6cb0855b1043e35486c3eacdc8beadb30e48290a5a2da0cb287ec9aaf5f409f299861ab72c WHIRLPOOL 4389c13bbc71a61adb0330f0edea2be474071b721a90a920872f0d1c6d00ad4e1fcd2b8510144ffacb4f5ff5235ee702d64f9f56b338b449b3f908686ee70c26

@ -1,91 +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/clanlib/clanlib-2.3.4.ebuild,v 1.5 2012/06/13 07:16:01 johu Exp $
EAPI=2
inherit flag-o-matic eutils autotools-utils
MY_P=ClanLib-${PV}
DESCRIPTION="multi-platform game development library"
HOMEPAGE="http://www.clanlib.org/"
SRC_URI="http://clanlib.org/download/releases-2.0/${MY_P}.tgz"
LICENSE="ZLIB"
SLOT="2.3"
KEYWORDS="amd64 x86" #not big endian safe #82779
IUSE="doc ipv6 mikmod opengl sound sqlite sse2 static-libs vorbis X"
RDEPEND="sys-libs/zlib
X? (
media-libs/libpng
virtual/jpeg
media-libs/freetype
media-libs/fontconfig
opengl? ( virtual/opengl )
app-arch/bzip2
x11-libs/libX11
)
sqlite? ( dev-db/sqlite )
sound? ( media-libs/alsa-lib )
mikmod? (
media-libs/libmikmod
media-libs/alsa-lib
)
vorbis? (
media-libs/libogg
media-libs/libvorbis
media-libs/alsa-lib
)"
DEPEND="${RDEPEND}
virtual/pkgconfig
doc? ( app-doc/doxygen dev-lang/perl )"
S="${WORKDIR}"/${MY_P}
PATCHES=( "${FILESDIR}"/${P}-autotools.patch )
AUTOTOOLS_AUTORECONF=1
AUTOTOOLS_IN_SOURCE_BUILD=1
DOCS=(
CODING_STYLE
CREDITS
PATCHES
README
)
src_configure() {
myeconfargs=(
--disable-dependency-tracking
$(use_enable doc docs)
$(use_enable sse2)
$(use_enable opengl clanGL)
$(use_enable opengl clanGL1)
$(use_enable opengl clanGUI)
$(use_enable X clanDisplay)
$(use_enable vorbis clanVorbis)
$(use_enable mikmod clanMikMod)
$(use_enable sqlite clanSqlite)
$(use_enable ipv6 getaddr)
)
use sound \
|| use vorbis \
|| use mikmod \
|| myeconfargs+=( --disable-clanSound )
autotools-utils_src_configure
}
src_compile() {
autotools-utils_src_compile
use doc && autotools-utils_src_compile html
}
# html files are keeped in a directory that is dependent on the SLOT
# so to keep eventual bookmarks to the doc from version to version
src_install() {
autotools-utils_src_install
if use doc ; then
emake DESTDIR="${D}" install-html || die "emake html-install failed"
cp -r Examples Resources "${D}"/usr/share/doc/${PF}/ \
|| die "Copying failed"
fi
}

@ -1,51 +0,0 @@
--- configure.ac.old 2012-02-03 14:10:59.163215573 +0100
+++ configure.ac 2012-02-03 14:12:18.003215948 +0100
@@ -333,11 +333,9 @@
dnl Optional linux/joystick.h
AC_CHECK_HEADERS(linux/joystick.h, linux_joystick=yes)
- AM_CONDITIONAL(LINUX_JOYSTICK, test x$linux_joystick = xyes)
dnl Optional linux/input.h
AC_CHECK_HEADERS(linux/input.h, linux_input=yes)
- AM_CONDITIONAL(LINUX_INPUT, test x$linux_input = xyes)
if test "$WIN32" = "no" && test "$enable_clanDisplay" != "no"; then
CLANLIB_CHECK_LIB(fontconfig, [`cat $srcdir/Setup/Tests/fontconfig.cpp`], clanDisplay, [ *** Cannot find fontconfig (See http://fontconfig.org/ ) (Try libfontconfig1-dev or better) ], [-lfontconfig])
@@ -355,6 +353,9 @@
fi
fi
+AM_CONDITIONAL(LINUX_JOYSTICK, test x$linux_joystick = xyes)
+AM_CONDITIONAL(LINUX_INPUT, test x$linux_input = xyes)
+
have_xrender=no
if test "$enable_clanDisplay" != "no"; then
@@ -507,13 +507,14 @@
fi
extra_LIBS_clanSound="$extra_LIBS_clanSound $sound_libs"
- AM_CONDITIONAL(ALSA, test x$have_alsa = xyes)
fi
if test "$enable_clanSound" = "auto"; then enable_clanSound=yes; fi
fi
+AM_CONDITIONAL(ALSA, test x$have_alsa = xyes)
+
if test "$enable_clanSound" != "no"; then
enable_clanSound=yes
echo "Checking for clanMikmod stuff"
--- Documentation/Reference/Makefile.am.old 2012-02-06 16:00:50.034478851 +0100
+++ Documentation/Reference/Makefile.am 2012-02-06 16:01:01.524478906 +0100
@@ -10,7 +10,7 @@
mkdir doxyoutput;
mkdir reftest
doxygen ./clanlib.doxygen
- make -C ../Utilities/ReferenceDocs
+ $(MAKE) -C ../Utilities/ReferenceDocs
../Utilities/ReferenceDocs/ReferenceDocs
install-html:

@ -1,2 +1 @@
DIST flatzebra-0.1.5.tar.gz 340636 SHA256 d663aa222fb8ba3974ccbe82778ecd38e64a2d7524b12e54b3cf0dbb9f017c07 SHA512 5c7dcc50d60189a64d6f291cb6e198078a3a4bdfe96f0b8d5767b94be89c5f5b43857a5f010b250fb5bcc6356c3144547d9c0e5bf252ca0fb111a6488ae293b6 WHIRLPOOL 053108152d79d714ca6c330e27dfc7892e257c0666f1743f896fa711904cac36741bd09cfa687fe092ba80d7d68a5dbf396438ddafd3df2f312646031176f2bc
DIST flatzebra-0.1.6.tar.gz 359098 SHA256 4e7bb0a77136ec3b81e0f73c1d08e828d38ef011095d5ce7068a94f3bb21d67a SHA512 500df95ee23bd2decf1e11be76725733d9219ef06a844f2de337fc11494eeea57e5ab6298cb4235c394216dd75bfb64a4e9f732362ca5ee95c43086b2ca38f75 WHIRLPOOL 96d058b434c08e69a05d9ee1576629361134e9edda32e15ffa80c640aa03675360a03838f1f339b77f50b3c2e423a28bbe7fa19925568da377dd42016f4c4e62

@ -1,42 +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/flatzebra/flatzebra-0.1.5.ebuild,v 1.6 2012/05/03 06:35:31 jdhore Exp $
EAPI=2
DESCRIPTION="A generic game engine for 2D double-buffering animation"
HOMEPAGE="http://perso.b2b2c.ca/sarrazip/dev"
SRC_URI="http://perso.b2b2c.ca/sarrazip/dev/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86 ~x86-fbsd"
IUSE="static-libs"
RDEPEND="media-libs/libsdl[video]
media-libs/sdl-image
media-libs/sdl-mixer"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_prepare() {
sed -i \
-e '/^doc_DATA =/s/^/NOTHANKS/' \
Makefile.in \
|| die "sed failed"
}
src_configure() {
econf \
--disable-dependency-tracking \
$(use_enable static-libs static)
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS NEWS README THANKS TODO
if ! use static-libs ; then
find "${D}" -type f -name '*.la' -exec rm {} + \
|| die "la removal failed"
fi
}

@ -1,46 +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/hawknl/hawknl-1.68-r1.ebuild,v 1.8 2012/03/18 19:23:30 robbat2 Exp $
EAPI=2
inherit toolchain-funcs eutils multilib
DESCRIPTION="A cross-platform network library designed for games"
HOMEPAGE="http://www.hawksoft.com/hawknl/"
SRC_URI="http://www.sonic.net/~philf/download/HawkNL${PV/./}src.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 hppa ppc x86"
IUSE="doc"
RDEPEND=""
DEPEND=""
S=${WORKDIR}/hawknl${PV}
src_prepare() {
epatch "${FILESDIR}"/${P}-build.patch
sed -i \
-e '/echo /d' src/makefile.linux \
|| die "sed src/makefile.linux failed"
}
src_compile() {
emake -C src -f makefile.linux \
CC="$(tc-getCC)" \
OPTFLAGS="${CFLAGS} -D_GNU_SOURCE -D_REENTRANT" \
|| die "emake failed"
}
src_install() {
make -C src -f makefile.linux \
LIBDIR="${D}/usr/$(get_libdir)" \
INCDIR="${D}/usr/include" \
install \
|| die "make install failed"
if use doc ; then
docinto samples
dodoc samples/* || die "dodoc failed"
fi
}

@ -1,2 +1 @@
DIST irrlicht-1.7.3.zip 16344294 SHA256 7230c1210a169944f815a79a975fabf2c0db0d3181dd62345b9fac9095ae026d SHA512 554c1b09ea9f591eb8f4346b8b66df15d3bd7339f29bfaadc076121ba7a5771116f15ec977e4fd226b346dd8c176dc7903dcfb4002c0a5a80671cbaafe54cab8 WHIRLPOOL 53bcdb60a2ed38e04cc77a91d6f61d8a5c0725a6c91b900748d7b8435a1b3e89ba33b41874d0f57c763a33e4617e79fac8f9e2890728a08f451e6448e4962d85
DIST irrlicht-1.8.zip 23674513 SHA256 f8756c3cf83f16f41eb1eca8f4ebb530f0e8fd572443905e3d8eb8f09445a642 SHA512 07aa6e49252f073e352fbd715b77d171b6d25d22e6b0faccaf7328b28693e6851f37498cfb4094f7b09d122170c491571431bf8f698828e82c2aa9d7ff792af7 WHIRLPOOL b021cc06fb216a9add40ad70beac22f41f2902f0b053713491c80057c04f05f9f45e19c282c109850235d7db89675ffaa7f5170b0b83f2b8918a0915ee43837d

@ -1,29 +0,0 @@
--- include/IrrCompileConfig.h.old
+++ include/IrrCompileConfig.h
@@ -176,7 +176,7 @@
//! Define _IRR_USE_NON_SYSTEM_JPEG_LIB_ to let irrlicht use the jpeglib which comes with irrlicht.
/** If this is commented out, Irrlicht will try to compile using the jpeg lib installed in the system.
This is only used when _IRR_COMPILE_WITH_LIBJPEG_ is defined. */
-#define _IRR_USE_NON_SYSTEM_JPEG_LIB_
+//#define _IRR_USE_NON_SYSTEM_JPEG_LIB_
//! Define _IRR_COMPILE_WITH_LIBPNG_ to enable compiling the engine using libpng.
@@ -187,7 +187,7 @@
//! Define _IRR_USE_NON_SYSTEM_LIBPNG_ to let irrlicht use the libpng which comes with irrlicht.
/** If this is commented out, Irrlicht will try to compile using the libpng installed in the system.
This is only used when _IRR_COMPILE_WITH_LIBPNG_ is defined. */
-#define _IRR_USE_NON_SYSTEM_LIB_PNG_
+//#define _IRR_USE_NON_SYSTEM_LIB_PNG_
//! Define _IRR_D3D_NO_SHADER_DEBUGGING to disable shader debugging in D3D9
@@ -348,7 +348,7 @@
/** If this is commented out, Irrlicht will try to compile using the zlib
installed on the system. This is only used when _IRR_COMPILE_WITH_ZLIB_ is
defined. */
-#define _IRR_USE_NON_SYSTEM_ZLIB_
+//#define _IRR_USE_NON_SYSTEM_ZLIB_
//! Define _IRR_COMPILE_WITH_ZIP_ENCRYPTION_ if you want to read AES-encrypted ZIP archives
#define _IRR_COMPILE_WITH_ZIP_ENCRYPTION_
//! Define _IRR_COMPILE_WITH_BZIP2_ if you want to support bzip2 compressed zip archives

@ -1,572 +0,0 @@
--- examples/Demo/Makefile
+++ examples/Demo/Makefile
@@ -2,7 +2,7 @@
Target = Demo
Sources = CDemo.cpp CMainMenu.cpp main.cpp
-CPPFLAGS = -I../../include -I/usr/X11R6/include
+CPPFLAGS = -I/usr/include/irrlicht
CXXFLAGS = -Wall -O3 -ffast-math
ifeq ($(HOSTTYPE), x86_64)
@@ -13,7 +13,7 @@
# target specific settings
all_linux: SYSTEM=Linux
-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/$(SYSTEM) -lIrrlicht -lGL -lXxf86vm -lXext -lX11
+all_linux: LDFLAGS = -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lpng -ljpeg
all_win32 clean_win32: SYSTEM=Win32-gcc
all_win32: LDFLAGS = -L../../lib/$(SYSTEM) -lIrrlicht -lopengl32 -lglu32 -lm
--- examples/14.Win32Window/Makefile
+++ examples/14.Win32Window/Makefile
@@ -5,7 +5,7 @@
Sources = main.cpp
# general compiler settings
-CPPFLAGS = -I../../include -I/usr/X11R6/include
+CPPFLAGS = -I/usr/include/irrlicht
CXXFLAGS = -O3 -ffast-math
#CXXFLAGS = -g -Wall
@@ -17,13 +17,13 @@
endif
# target specific settings
-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11
+all_linux: LDFLAGS = -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -ljpeg -lpng
all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
all_win32 clean_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SUF=.exe
# name of the binary - only valid for targets which set SYSTEM
-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
+DESTPATH = ../../bin/$(Target)$(SUF)
all_linux all_win32:
$(warning Building...)
--- examples/12.TerrainRendering/Makefile
+++ examples/12.TerrainRendering/Makefile
@@ -5,7 +5,7 @@
Sources = main.cpp
# general compiler settings
-CPPFLAGS = -I../../include -I/usr/X11R6/include
+CPPFLAGS = -I/usr/include/irrlicht
CXXFLAGS = -O3 -ffast-math
#CXXFLAGS = -g -Wall
@@ -17,13 +17,13 @@
endif
# target specific settings
-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11
+all_linux: LDFLAGS = -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -ljpeg -lpng
all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
all_win32 clean_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SUF=.exe
# name of the binary - only valid for targets which set SYSTEM
-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
+DESTPATH = ../../bin/$(Target)$(SUF)
all_linux all_win32:
$(warning Building...)
--- examples/11.PerPixelLighting/Makefile
+++ examples/11.PerPixelLighting/Makefile
@@ -5,7 +5,7 @@
Sources = main.cpp
# general compiler settings
-CPPFLAGS = -I../../include -I/usr/X11R6/include
+CPPFLAGS = -I/usr/include/irrlicht
CXXFLAGS = -O3 -ffast-math
#CXXFLAGS = -g -Wall
@@ -17,13 +17,13 @@
endif
# target specific settings
-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11
+all_linux: LDFLAGS = -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -ljpeg -lpng
all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
all_win32 clean_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SUF=.exe
# name of the binary - only valid for targets which set SYSTEM
-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
+DESTPATH = ../../bin/$(Target)$(SUF)
all_linux all_win32:
$(warning Building...)
--- examples/08.SpecialFX/Makefile
+++ examples/08.SpecialFX/Makefile
@@ -5,7 +5,7 @@
Sources = main.cpp
# general compiler settings
-CPPFLAGS = -I../../include -I/usr/X11R6/include
+CPPFLAGS = -I/usr/include/irrlicht
CXXFLAGS = -O3 -ffast-math
#CXXFLAGS = -g -Wall
@@ -17,13 +17,13 @@
endif
# target specific settings
-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11
+all_linux: LDFLAGS = -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -ljpeg -lpng
all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
all_win32 clean_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SUF=.exe
# name of the binary - only valid for targets which set SYSTEM
-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
+DESTPATH = ../../bin/$(Target)$(SUF)
all_linux all_win32:
$(warning Building...)
--- examples/06.2DGraphics/Makefile
+++ examples/06.2DGraphics/Makefile
@@ -5,7 +5,7 @@
Sources = main.cpp
# general compiler settings
-CPPFLAGS = -I../../include -I/usr/X11R6/include
+CPPFLAGS = -I/usr/include/irrlicht
CXXFLAGS = -O3 -ffast-math
#CXXFLAGS = -g -Wall
@@ -17,13 +17,13 @@
endif
# target specific settings
-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11
+all_linux: LDFLAGS = -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -ljpeg -lpng
all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
all_win32 clean_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SUF=.exe
# name of the binary - only valid for targets which set SYSTEM
-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
+DESTPATH = ../../bin/$(Target)$(SUF)
all_linux all_win32:
$(warning Building...)
--- examples/04.Movement/Makefile
+++ examples/04.Movement/Makefile
@@ -5,7 +5,7 @@
Sources = main.cpp
# general compiler settings
-CPPFLAGS = -I../../include -I/usr/X11R6/include
+CPPFLAGS = -I/usr/include/irrlicht
CXXFLAGS = -O3 -ffast-math
#CXXFLAGS = -g -Wall
@@ -17,14 +17,14 @@
endif
# target specific settings
-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11
+all_linux: LDFLAGS = -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -ljpeg -lpng
all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
all_win32: CPPFLAGS += -D__GNUWIN32__ -D_WIN32 -DWIN32 -D_WINDOWS -D_MBCS -D_USRDLL
all_win32 clean_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SUF=.exe
# name of the binary - only valid for targets which set SYSTEM
-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
+DESTPATH = ../../bin/$(Target)$(SUF)
all_linux all_win32:
$(warning Building...)
--- examples/16.Quake3MapShader/Makefile
+++ examples/16.Quake3MapShader/Makefile
@@ -5,7 +5,7 @@
Sources = main.cpp
# general compiler settings
-CPPFLAGS = -I../../include -I/usr/X11R6/include
+CPPFLAGS = -I/usr/include/irrlicht
CXXFLAGS = -O3 -ffast-math
#CXXFLAGS = -g -Wall
@@ -17,13 +17,13 @@
endif
# target specific settings
-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11
+all_linux: LDFLAGS = -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -ljpeg -lpng
all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
all_win32 clean_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SUF=.exe
# name of the binary - only valid for targets which set SYSTEM
-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
+DESTPATH = ../../bin/$(Target)$(SUF)
all_linux all_win32:
$(warning Building...)
--- examples/15.LoadIrrFile/Makefile
+++ examples/15.LoadIrrFile/Makefile
@@ -5,7 +5,7 @@
Sources = main.cpp
# general compiler settings
-CPPFLAGS = -I../../include -I/usr/X11R6/include
+CPPFLAGS = -I/usr/include/irrlicht
CXXFLAGS = -O3 -ffast-math
#CXXFLAGS = -g -Wall
@@ -17,13 +17,13 @@
endif
# target specific settings
-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11
+all_linux: LDFLAGS = -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -ljpeg -lpng
all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
all_win32 clean_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SUF=.exe
# name of the binary - only valid for targets which set SYSTEM
-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
+DESTPATH = ../../bin/$(Target)$(SUF)
all_linux all_win32:
$(warning Building...)
--- examples/02.Quake3Map/Makefile
+++ examples/02.Quake3Map/Makefile
@@ -5,7 +5,7 @@
Sources = main.cpp
# general compiler settings
-CPPFLAGS = -I../../include -I/usr/X11R6/include
+CPPFLAGS = -I/usr/include/irrlicht
CXXFLAGS = -O3 -ffast-math
#CXXFLAGS = -g -Wall
@@ -17,7 +17,7 @@
endif
# target specific settings
-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11
+all_linux: LDFLAGS = -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -ljpeg -lpng
all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht
static_win32: LDFLAGS += -lgdi32 -lopengl32 -ld3dx9d -lwinmm -lm
@@ -25,7 +25,7 @@
static_win32 all_win32 clean_win32: SYSTEM=Win32-gcc
static_win32 all_win32 clean_win32: SUF=.exe
# name of the binary - only valid for targets which set SYSTEM
-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
+DESTPATH = ../../bin/$(Target)$(SUF)
all_linux all_win32 static_win32:
$(warning Building...)
--- examples/19.MouseAndJoystick/Makefile
+++ examples/19.MouseAndJoystick/Makefile
@@ -5,7 +5,7 @@
Sources = main.cpp
# general compiler settings
-CPPFLAGS = -I../../include -I/usr/X11R6/include
+CPPFLAGS = -I/usr/include/irrlicht
#CXXFLAGS = -O3 -ffast-math
CXXFLAGS = -g -Wall
@@ -17,14 +17,14 @@
endif
# target specific settings
-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11
+all_linux: LDFLAGS = -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -ljpeg -lpng
all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
all_win32: CPPFLAGS += -D__GNUWIN32__ -D_WIN32 -DWIN32 -D_WINDOWS -D_MBCS -D_USRDLL
all_win32 clean_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SUF=.exe
# name of the binary - only valid for targets which set SYSTEM
-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
+DESTPATH = ../../bin/$(Target)$(SUF)
all_linux all_win32:
$(warning Building...)
--- examples/13.RenderToTexture/Makefile
+++ examples/13.RenderToTexture/Makefile
@@ -5,7 +5,7 @@
Sources = main.cpp
# general compiler settings
-CPPFLAGS = -I../../include -I/usr/X11R6/include
+CPPFLAGS = -I/usr/include/irrlicht
CXXFLAGS = -O3 -ffast-math
#CXXFLAGS = -g -Wall
@@ -17,13 +17,13 @@
endif
# target specific settings
-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11
+all_linux: LDFLAGS = -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -ljpeg -lpng
all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
all_win32 clean_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SUF=.exe
# name of the binary - only valid for targets which set SYSTEM
-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
+DESTPATH = ../../bin/$(Target)$(SUF)
all_linux all_win32:
$(warning Building...)
--- examples/10.Shaders/Makefile
+++ examples/10.Shaders/Makefile
@@ -5,7 +5,7 @@
Sources = main.cpp
# general compiler settings
-CPPFLAGS = -I../../include -I/usr/X11R6/include
+CPPFLAGS = -I/usr/include/irrlicht
CXXFLAGS = -O3 -ffast-math
#CXXFLAGS = -g -Wall
@@ -17,13 +17,13 @@
endif
# target specific settings
-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11
+all_linux: LDFLAGS = -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -ljpeg -lpng
all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
all_win32 clean_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SUF=.exe
# name of the binary - only valid for targets which set SYSTEM
-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
+DESTPATH = ../../bin/$(Target)$(SUF)
all_linux all_win32:
$(warning Building...)
--- examples/09.Meshviewer/Makefile
+++ examples/09.Meshviewer/Makefile
@@ -5,7 +5,7 @@
Sources = main.cpp
# general compiler settings
-CPPFLAGS = -I../../include -I/usr/X11R6/include
+CPPFLAGS = -I/usr/include/irrlicht
CXXFLAGS = -O3 -ffast-math
#CXXFLAGS = -g -Wall
@@ -17,13 +17,13 @@
endif
# target specific settings
-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11
+all_linux: LDFLAGS = -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -ljpeg -lpng
all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
all_win32 clean_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SUF=.exe
# name of the binary - only valid for targets which set SYSTEM
-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
+DESTPATH = ../../bin/$(Target)$(SUF)
all_linux all_win32:
$(warning Building...)
--- examples/21.Quake3Explorer/Makefile
+++ examples/21.Quake3Explorer/Makefile
@@ -5,7 +5,7 @@
Sources = main.cpp sound.cpp q3factory.cpp
# general compiler settings
-CPPFLAGS = -I../../include -I/usr/X11R6/include
+CPPFLAGS = -I/usr/include/irrlicht
#CXXFLAGS = -O3 -ffast-math
CXXFLAGS = -g -Wall
@@ -17,13 +17,13 @@
endif
# target specific settings
-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11
+all_linux: LDFLAGS = -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -ljpeg -lpng
all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
all_win32 clean_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SUF=.exe
# name of the binary - only valid for targets which set SYSTEM
-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
+DESTPATH = ../../bin/$(Target)$(SUF)
all_linux all_win32:
$(warning Building...)
--- examples/03.CustomSceneNode/Makefile
+++ examples/03.CustomSceneNode/Makefile
@@ -5,7 +5,7 @@
Sources = main.cpp
# general compiler settings
-CPPFLAGS = -I../../include -I/usr/X11R6/include
+CPPFLAGS = -I/usr/include/irrlicht
CXXFLAGS = -O3 -ffast-math
#CXXFLAGS = -g -Wall
@@ -17,13 +17,13 @@
endif
# target specific settings
-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11
+all_linux: LDFLAGS = -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -ljpeg -lpng
all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
all_win32 clean_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SUF=.exe
# name of the binary - only valid for targets which set SYSTEM
-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
+DESTPATH = ../../bin/$(Target)$(SUF)
all_linux all_win32:
$(warning Building...)
--- examples/20.ManagedLights/Makefile
+++ examples/20.ManagedLights/Makefile
@@ -5,7 +5,7 @@
Sources = main.cpp
# general compiler settings
-CPPFLAGS = -I../../include -I/usr/X11R6/include
+CPPFLAGS = -I/usr/include/irrlicht
#CXXFLAGS = -O3 -ffast-math
CXXFLAGS = -g -Wall
@@ -17,14 +17,14 @@
endif
# target specific settings
-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11
+all_linux: LDFLAGS = -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -ljpeg -lpng
all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
all_win32: CPPFLAGS += -D__GNUWIN32__ -D_WIN32 -DWIN32 -D_WINDOWS -D_MBCS -D_USRDLL
all_win32 clean_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SUF=.exe
# name of the binary - only valid for targets which set SYSTEM
-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
+DESTPATH = ../../bin/$(Target)$(SUF)
all_linux all_win32:
$(warning Building...)
--- examples/05.UserInterface/Makefile
+++ examples/05.UserInterface/Makefile
@@ -5,7 +5,7 @@
Sources = main.cpp
# general compiler settings
-CPPFLAGS = -I../../include -I/usr/X11R6/include
+CPPFLAGS = -I/usr/include/irrlicht
CXXFLAGS = -O3 -ffast-math
#CXXFLAGS = -g -Wall
@@ -17,13 +17,13 @@
endif
# target specific settings
-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11
+all_linux: LDFLAGS = -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -ljpeg -lpng
all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
all_win32 clean_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SUF=.exe
# name of the binary - only valid for targets which set SYSTEM
-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
+DESTPATH = ../../bin/$(Target)$(SUF)
all_linux all_win32:
$(warning Building...)
--- examples/01.HelloWorld/Makefile
+++ examples/01.HelloWorld/Makefile
@@ -7,9 +7,9 @@
# List of source files, separated by spaces
Sources := main.cpp
# Path to Irrlicht directory, should contain include/ and lib/
-IrrlichtHome := ../..
+IrrlichtHome := /usr
# Path for the executable. Note that Irrlicht.dll should usually also be there for win32 systems
-BinPath = ../../bin/$(SYSTEM)
+BinPath = ../../bin
# general compiler settings (might need to be set when compiling the lib, too)
# preprocessor flags, e.g. defines and include paths
@@ -24,7 +24,7 @@
#no changes necessary below this line
####
-CPPFLAGS = -I$(IrrlichtHome)/include -I/usr/X11R6/include $(USERCPPFLAGS)
+CPPFLAGS = -I/usr/include/irrlicht $(USERCPPFLAGS)
CXXFLAGS = $(USERCXXFLAGS)
LDFLAGS = $(USERLDFLAGS)
@@ -32,8 +32,8 @@
all: all_linux
# target specific settings
-all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
-all_linux: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lXext -lX11
+all_linux all_win32 static_win32: LDFLAGS += -lIrrlicht
+all_linux: LDFLAGS += -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lpng -ljpeg
all_linux clean_linux: SYSTEM=Linux
all_win32 clean_win32 static_win32: SYSTEM=Win32-gcc
all_win32 clean_win32 static_win32: SUF=.exe
--- examples/18.SplitScreen/Makefile
+++ examples/18.SplitScreen/Makefile
@@ -5,7 +5,7 @@
Sources = main.cpp
# general compiler settings
-CPPFLAGS = -I../../include -I/usr/X11R6/include
+CPPFLAGS = -I/usr/include/irrlicht
CXXFLAGS = -O3 -ffast-math
#CXXFLAGS = -g -Wall
@@ -17,13 +17,13 @@
endif
# target specific settings
-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11
+all_linux: LDFLAGS = -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -ljpeg -lpng
all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
all_win32 clean_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SUF=.exe
# name of the binary - only valid for targets which set SYSTEM
-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
+DESTPATH = ../../bin/$(Target)$(SUF)
all_linux all_win32:
$(warning Building...)
--- examples/07.Collision/Makefile
+++ examples/07.Collision/Makefile
@@ -5,7 +5,7 @@
Sources = main.cpp
# general compiler settings
-CPPFLAGS = -I../../include -I/usr/X11R6/include
+CPPFLAGS = -I/usr/include/irrlicht
CXXFLAGS = -O3 -ffast-math
#CXXFLAGS = -g -Wall
@@ -17,13 +17,13 @@
endif
# target specific settings
-all_linux: LDFLAGS = -L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11
+all_linux: LDFLAGS = -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -ljpeg -lpng
all_linux clean_linux: SYSTEM=Linux
all_win32: LDFLAGS = -L../../lib/Win32-gcc -lIrrlicht -lopengl32 -lm
all_win32 clean_win32: SYSTEM=Win32-gcc
all_win32 clean_win32: SUF=.exe
# name of the binary - only valid for targets which set SYSTEM
-DESTPATH = ../../bin/$(SYSTEM)/$(Target)$(SUF)
+DESTPATH = ../../bin/$(Target)$(SUF)
all_linux all_win32:
$(warning Building...)

@ -1,46 +0,0 @@
--- irrlicht-1.7.2.orig/source/Irrlicht/CImageLoaderPNG.cpp
+++ irrlicht-1.7.2/source/Irrlicht/CImageLoaderPNG.cpp
@@ -162,7 +162,7 @@
if (BitDepth < 8)
{
if (ColorType==PNG_COLOR_TYPE_GRAY || ColorType==PNG_COLOR_TYPE_GRAY_ALPHA)
- png_set_gray_1_2_4_to_8(png_ptr);
+ png_set_expand_gray_1_2_4_to_8(png_ptr);
else
png_set_packing(png_ptr);
}
--- irrlicht-1.7.2.orig/source/Irrlicht/Makefile
+++ irrlicht-1.7.2/source/Irrlicht/Makefile
@@ -39,11 +39,7 @@
IRRIOOBJ = CFileList.o CFileSystem.o CLimitReadFile.o CMemoryFile.o CReadFile.o CWriteFile.o CXMLReader.o CXMLWriter.o CZipReader.o CPakReader.o CNPKReader.o CTarReader.o CMountPointReader.o irrXML.o CAttributes.o lzma/LzmaDec.o
IRROTHEROBJ = CIrrDeviceSDL.o CIrrDeviceLinux.o CIrrDeviceConsole.o CIrrDeviceStub.o CIrrDeviceWin32.o CIrrDeviceFB.o CLogger.o COSOperator.o Irrlicht.o os.o
IRRGUIOBJ = CGUIButton.o CGUICheckBox.o CGUIComboBox.o CGUIContextMenu.o CGUIEditBox.o CGUIEnvironment.o CGUIFileOpenDialog.o CGUIFont.o CGUIImage.o CGUIInOutFader.o CGUIListBox.o CGUIMenu.o CGUIMeshViewer.o CGUIMessageBox.o CGUIModalScreen.o CGUIScrollBar.o CGUISpinBox.o CGUISkin.o CGUIStaticText.o CGUITabControl.o CGUITable.o CGUIToolBar.o CGUIWindow.o CGUIColorSelectDialog.o CDefaultGUIElementFactory.o CGUISpriteBank.o CGUIImageList.o CGUITreeView.o
-ZLIBOBJ = zlib/adler32.o zlib/compress.o zlib/crc32.o zlib/deflate.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o zlib/uncompr.o zlib/zutil.o
-JPEGLIBOBJ = jpeglib/jcapimin.o jpeglib/jcapistd.o jpeglib/jccoefct.o jpeglib/jccolor.o jpeglib/jcdctmgr.o jpeglib/jchuff.o jpeglib/jcinit.o jpeglib/jcmainct.o jpeglib/jcmarker.o jpeglib/jcmaster.o jpeglib/jcomapi.o jpeglib/jcparam.o jpeglib/jcprepct.o jpeglib/jcsample.o jpeglib/jctrans.o jpeglib/jdapimin.o jpeglib/jdapistd.o jpeglib/jdatadst.o jpeglib/jdatasrc.o jpeglib/jdcoefct.o jpeglib/jdcolor.o jpeglib/jddctmgr.o jpeglib/jdhuff.o jpeglib/jdinput.o jpeglib/jdmainct.o jpeglib/jdmarker.o jpeglib/jdmaster.o jpeglib/jdmerge.o jpeglib/jdpostct.o jpeglib/jdsample.o jpeglib/jdtrans.o jpeglib/jerror.o jpeglib/jfdctflt.o jpeglib/jfdctfst.o jpeglib/jfdctint.o jpeglib/jidctflt.o jpeglib/jidctfst.o jpeglib/jidctint.o jpeglib/jmemmgr.o jpeglib/jmemnobs.o jpeglib/jquant1.o jpeglib/jquant2.o jpeglib/jutils.o jpeglib/jcarith.o jpeglib/jdarith.o jpeglib/jaricom.o
-LIBPNGOBJ = libpng/png.o libpng/pngerror.o libpng/pngget.o libpng/pngmem.o libpng/pngpread.o libpng/pngread.o libpng/pngrio.o libpng/pngrtran.o libpng/pngrutil.o libpng/pngset.o libpng/pngtrans.o libpng/pngwio.o libpng/pngwrite.o libpng/pngwtran.o libpng/pngwutil.o
LIBAESGM = aesGladman/aescrypt.o aesGladman/aeskey.o aesGladman/aestab.o aesGladman/fileenc.o aesGladman/hmac.o aesGladman/prng.o aesGladman/pwd2key.o aesGladman/sha1.o aesGladman/sha2.o
-BZIP2OBJ = bzip2/blocksort.o bzip2/huffman.o bzip2/crctable.o bzip2/randtable.o bzip2/bzcompress.o bzip2/decompress.o bzip2/bzlib.o
# Next variable is for additional scene nodes etc. of customized Irrlicht versions
EXTRAOBJ =
@@ -54,18 +50,16 @@
###############
#Compiler flags
-CXXINCS = -I../../include -Izlib -Ijpeglib -Ilibpng
+CXXINCS = -I../../include
CPPFLAGS += $(CXXINCS) -DIRRLICHT_EXPORTS=1
CXXFLAGS += -Wall -pipe -fno-exceptions -fno-rtti -fstrict-aliasing
ifndef NDEBUG
CXXFLAGS += -g -D_DEBUG
-else
-CXXFLAGS += -fexpensive-optimizations -O3
endif
ifdef PROFILE
CXXFLAGS += -pg
endif
-CFLAGS := -O3 -fexpensive-optimizations -DPNG_THREAD_UNSAFE_OK -DPNG_NO_MMX_CODE -DPNG_NO_MNG_FEATURES
+CFLAGS += -DPNG_THREAD_UNSAFE_OK -DPNG_NO_MMX_CODE -DPNG_NO_MNG_FEATURES
sharedlib sharedlib_osx: CXXFLAGS += -fPIC
sharedlib sharedlib_osx: CFLAGS += -fPIC

@ -1,40 +0,0 @@
--- source/Irrlicht/CImageLoaderPNG.cpp
+++ source/Irrlicht/CImageLoaderPNG.cpp
@@ -28,7 +28,7 @@
static void png_cpexcept_error(png_structp png_ptr, png_const_charp msg)
{
os::Printer::log("PNG FATAL ERROR", msg, ELL_ERROR);
- longjmp(png_ptr->jmpbuf, 1);
+ longjmp(png_jmpbuf(png_ptr), 1);
}
// PNG function for file reading
@@ -37,7 +37,7 @@
png_size_t check;
// changed by zola {
- io::IReadFile* file=(io::IReadFile*)png_ptr->io_ptr;
+ io::IReadFile* file=(io::IReadFile*)png_get_io_ptr(png_ptr);
check=(png_size_t) file->read((void*)data,(u32)length);
// }
--- source/Irrlicht/CImageWriterPNG.cpp
+++ source/Irrlicht/CImageWriterPNG.cpp
@@ -35,7 +35,7 @@
static void png_cpexcept_error(png_structp png_ptr, png_const_charp msg)
{
os::Printer::log("PNG FATAL ERROR", msg, ELL_ERROR);
- longjmp(png_ptr->jmpbuf, 1);
+ longjmp(png_jmpbuf(png_ptr), 1);
}
// PNG function for file writing
@@ -43,7 +43,7 @@
{
png_size_t check;
- io::IWriteFile* file=(io::IWriteFile*)png_ptr->io_ptr;
+ io::IWriteFile* file=(io::IWriteFile*)png_get_io_ptr(png_ptr);
check=(png_size_t) file->write((const void*)data,(u32)length);
if (check != length)

@ -1,60 +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/irrlicht/irrlicht-1.7.3.ebuild,v 1.4 2012/08/08 19:51:00 ranger Exp $
EAPI=2
inherit eutils toolchain-funcs
DESCRIPTION="open source high performance realtime 3D engine written in C++"
HOMEPAGE="http://irrlicht.sourceforge.net/"
SRC_URI="mirror://sourceforge/irrlicht/${P}.zip"
LICENSE="ZLIB"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE="doc"
RDEPEND="virtual/jpeg
media-libs/libpng
app-arch/bzip2
virtual/opengl
x11-libs/libX11"
DEPEND="${RDEPEND}
app-arch/unzip
x11-proto/xproto
x11-proto/xf86vidmodeproto"
S=${WORKDIR}/${P}/source/Irrlicht
src_prepare() {
epatch "${FILESDIR}"/${P}-gentoo.patch
cd ../..
edos2unix include/IrrCompileConfig.h
epatch \
"${FILESDIR}"/${P}-config.patch \
"${FILESDIR}"/${P}-demoMake.patch \
"${FILESDIR}"/${P}-libpng15.patch
sed -i \
-e 's:\.\./\.\./media:../media:g' \
$(grep -rl '\.\./\.\./media' examples) \
|| die 'sed failed'
}
src_compile() {
tc-export CXX CC AR
emake sharedlib staticlib || die "emake failed"
}
src_install() {
cd ../..
dolib.a lib/Linux/libIrrlicht.a || die
dolib.so lib/Linux/libIrrlicht.so* || die
insinto /usr/include/${PN}
doins include/* || die
dodoc changes.txt readme.txt
if use doc ; then
insinto /usr/share/doc/${PF}
doins -r examples media || die
fi
}

@ -1,2 +1 @@
DIST ogre_src_v1-8-0.tar.bz2 88682669 SHA256 2f59de73b0717c5d2084285f2594a045a9240a8a53e5b38203419c4e715c8ba6 SHA512 fd382a6c6da90c5f7e99531ddc784375e83e0b7eacaa2da3e749fb837ca85673415ebc788a3898d0d4026e2e0b0208ae32f1972ad229d1d07e0d9fb89e5295cd WHIRLPOOL cb750c4f7eb92559467d234d926b56f79994f6652ab83340e05a7b89dbc3bf2528ec6885fc2e811560db788c65f62c32c0e140c71d32905270e7cb877be15fe2
DIST ogre_src_v1-8-1.tar.bz2 88619968 SHA256 da908ac934265d25e378d336d648327afe569a758ef262029acd357d506f6aab SHA512 0bbce593e5a9ebf51e3cb53661f6447d99ae28a53365d7f518c6d408216690527ef7552385160cff8d5c3ef15d3ab5c2520ef2c1f51fda5541d5d4dca4663ae2 WHIRLPOOL 7325effb6421710ff0e21ab0e29443404fed151cc2aeaf481c597fd098278bb6223b9e2115abbd175f305e909491766c2d7b871b028d5b46f8028269b25c161d

@ -1,21 +0,0 @@
From: Julian Ospald <hasufell@gentoo.org>
Date: Wed May 30 13:45:46 UTC 2012
Subject: build system
remove pre-set flags
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -97,12 +97,6 @@
if (OGRE_GCC_HAS_SSE)
add_definitions(-msse)
endif ()
- # This is a set of sensible warnings that provide meaningful output
- set(OGRE_WARNING_FLAGS "-Wno-deprecated -Wall -Wctor-dtor-privacy -Winit-self -Wno-overloaded-virtual -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -pedantic -Wshadow -Wno-missing-field-initializers -Wno-long-long")
- if (NOT APPLE)
- set(OGRE_WARNING_FLAGS "${OGRE_WARNING_FLAGS} -Wno-unused-but-set-parameter")
- endif ()
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OGRE_WARNING_FLAGS}")
endif ()
if (MSVC)
if (CMAKE_BUILD_TOOL STREQUAL "nmake")

@ -1,77 +0,0 @@
http://www.ogre3d.org/mantis/view.php?id=425
--- ogre_src_v1-7-4/OgreMain/include/OgreAtomicWrappers.h
+++ ogre_src_v1-7-4/OgreMain/include/OgreAtomicWrappers.h
@@ -31,6 +31,7 @@
#include <signal.h>
#include "OgrePrerequisites.h"
#include "OgreException.h"
+#include "Threading/OgreThreadHeaders.h"
namespace Ogre {
--- ogre_src_v1-7-4/OgreMain/include/OgreCommon.h
+++ ogre_src_v1-7-4/OgreMain/include/OgreCommon.h
@@ -42,6 +42,8 @@
# pragma GCC visibility pop
#endif
+#include "Threading/OgreThreadHeaders.h"
+
namespace Ogre {
/** \addtogroup Core
* @{
--- ogre_src_v1-7-4/OgreMain/include/OgreConvexBody.h
+++ ogre_src_v1-7-4/OgreMain/include/OgreConvexBody.h
@@ -31,6 +31,7 @@
#include "OgrePrerequisites.h"
#include "OgrePolygon.h"
+#include "Threading/OgreThreadHeaders.h"
namespace Ogre
@@ -58,9 +59,7 @@
// Static 'free list' of polygons to save reallocation, shared between all bodies
static PolygonList msFreePolygons;
-#if OGRE_THREAD_SUPPORT
OGRE_STATIC_MUTEX(msFreePolygonsMutex)
-#endif
public:
ConvexBody();
--- ogre_src_v1-7-4/OgreMain/include/OgreLog.h
+++ ogre_src_v1-7-4/OgreMain/include/OgreLog.h
@@ -32,6 +32,8 @@
#include "OgrePrerequisites.h"
#include "OgreString.h"
+#include "Threading/OgreThreadHeaders.h"
+
namespace Ogre {
/** \addtogroup Core
--- ogre_src_v1-7-4/OgreMain/include/OgreSharedPtr.h
+++ ogre_src_v1-7-4/OgreMain/include/OgreSharedPtr.h
@@ -30,6 +30,8 @@
#include "OgrePrerequisites.h"
+#include "Threading/OgreThreadHeaders.h"
+
namespace Ogre {
/** \addtogroup Core
* @{
--- ogre_src_v1-7-4/OgreMain/src/OgreConvexBody.cpp
+++ ogre_src_v1-7-4/OgreMain/src/OgreConvexBody.cpp
@@ -44,9 +44,7 @@
// Statics
//-----------------------------------------------------------------------
ConvexBody::PolygonList ConvexBody::msFreePolygons;
-#if OGRE_THREAD_SUPPORT
OGRE_STATIC_MUTEX_INSTANCE(ConvexBody::msFreePolygonsMutex)
-#endif
//-----------------------------------------------------------------------
void ConvexBody::_initialisePool()
{

@ -1,87 +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/ogre/ogre-1.8.0.ebuild,v 1.6 2012/08/04 09:44:02 ago Exp $
EAPI=4
inherit eutils cmake-utils
MY_PV=${PV//./-}
DESCRIPTION="Object-oriented Graphics Rendering Engine"
HOMEPAGE="http://www.ogre3d.org/"
SRC_URI="mirror://sourceforge/${PN}/${PN}_src_v${MY_PV}.tar.bz2"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="+boost cg doc double-precision examples +freeimage gles2 ois +opengl poco profile tbb threads tools +zip"
REQUIRED_USE="threads? ( || ( boost poco tbb ) )"
RESTRICT="test" #139905
RDEPEND="media-libs/freetype:2
virtual/opengl
virtual/glu
x11-libs/libX11
x11-libs/libXaw
x11-libs/libXrandr
x11-libs/libXt
boost? ( dev-libs/boost )
cg? ( media-gfx/nvidia-cg-toolkit )
freeimage? ( media-libs/freeimage )
gles2? ( || ( <media-libs/mesa-8.0.0[gles] >=media-libs/mesa-8.0.0[gles2] ) )
ois? ( dev-games/ois )
threads? (
poco? ( dev-libs/poco )
tbb? ( dev-cpp/tbb )
)
zip? ( sys-libs/zlib dev-libs/zziplib )"
# gles1 currently broken wrt bug #418201
DEPEND="${RDEPEND}
x11-proto/xf86vidmodeproto
virtual/pkgconfig
doc? ( app-doc/doxygen )"
S=${WORKDIR}/${PN}_src_v${MY_PV}
src_prepare() {
epatch \
"${FILESDIR}"/${P}-threading.patch \
"${FILESDIR}"/${P}-flags.patch
sed -i \
-e "s:share/OGRE/docs:share/doc/${PF}:" \
Docs/CMakeLists.txt || die
# Stupid build system hardcodes release names
sed -i \
-e '/CONFIGURATIONS/s:CONFIGURATIONS.*::' \
CMake/Utils/OgreConfigTargets.cmake || die
}
src_configure() {
local mycmakeargs=(
-DOGRE_FULL_RPATH=NO
$(cmake-utils_use boost OGRE_USE_BOOST)
$(cmake-utils_use cg OGRE_BUILD_PLUGIN_CG)
$(cmake-utils_use doc OGRE_INSTALL_DOCS)
$(cmake-utils_use double-precision OGRE_CONFIG_DOUBLE)
$(cmake-utils_use examples OGRE_INSTALL_SAMPLES)
$(cmake-utils_use freeimage OGRE_CONFIG_ENABLE_FREEIMAGE)
$(cmake-utils_use opengl OGRE_BUILD_RENDERSYSTEM_GL)
-DOGRE_BUILD_RENDERSYSTEM_GLES=OFF
$(cmake-utils_use gles2 OGRE_BUILD_RENDERSYSTEM_GLES2)
$(cmake-utils_use profile OGRE_PROFILING)
-DOGRE_BUILD_TESTS=FALSE
$(usex threads "-DOGRE_CONFIG_THREADS=2" "-DOGRE_CONFIG_THREADS=0")
$(cmake-utils_use tools OGRE_BUILD_TOOLS)
$(cmake-utils_use zip OGRE_CONFIG_ENABLE_ZIP)
)
if use threads ; then
local f
for f in boost poco tbb ; do
use ${f} || continue
mycmakeargs+=( -DOGRE_CONFIG_THREAD_PROVIDER=${f} )
break
done
fi
cmake-utils_src_configure
}

@ -1,2 +1 @@
DIST ois_1.2.0.tar.gz 109768 SHA256 175414df5d7b924779fa513ea614081ae55ae708a5e29473e74911297e4be708 SHA512 b5475bf8c36f7f2dc8cfaa41f67beaa98ac9e0ae80769162b99c3e2f0af771ec2a8a96aa8d9ac7c4dd98f20dc2755e8678ff0eaa576a2745d2b3eb529bede4f0 WHIRLPOOL 3d3a9267abd6cf5302bee6feeed5f85864f4bbef664ee31c911cde848439401f43659f9eefb6ef64a715f4b8d378c1d319e29ac89b4236a74da4493e67d0e1c2
DIST ois_v1-3.tar.gz 136739 SHA256 50fa76d827e119a80e2c86a5196ac4354e556f80b0a4fa440f69e1057b37faa1 SHA512 48b7355a9be9c66233691aa5461192fb6e537d284e4366ebf931a76ee3be30f2cf17a4aa350fce6b433eaecf4259414062b9dd5854eaf872b9a18294cfc640c3 WHIRLPOOL 45f0887fd759d0a0a38d6126c1693fabab7724f6835288dd528f1845305ef7eeb4bb78549d0d449e8f2b9714c23b0725e43514565853d3132ff0394981fba197

@ -1,28 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-games/ois/ois-1.2.0.ebuild,v 1.4 2010/05/22 15:02:23 pacho Exp $
EAPI=2
inherit autotools
DESCRIPTION="Object-oriented Input System - A cross-platform C++ input handling library"
HOMEPAGE="http://www.wreckedgames.com/"
SRC_URI="mirror://sourceforge/wgois/${P/-/_}.tar.gz"
LICENSE="ZLIB"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="x11-libs/libXaw
x11-libs/libX11"
S=${WORKDIR}/${PN}
src_prepare() {
eautoreconf
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
}

@ -1,13 +1,13 @@
# Copyright 1999-2012 Gentoo Foundation
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-games/ois/ois-1.3.ebuild,v 1.4 2012/07/17 06:59:31 tupone Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-games/ois/ois-1.3.ebuild,v 1.5 2013/01/30 23:01:02 mr_bones_ Exp $
EAPI=4
inherit autotools autotools-utils
MY_P=${PN}-v${PV/./-}
DESCRIPTION="Object-oriented Input System - A cross-platform C++ input handling library"
HOMEPAGE="http://www.wreckedgames.com/"
HOMEPAGE="http://sourceforge.net/projects/wgois/"
SRC_URI="mirror://sourceforge/wgois/${MY_P/-/_}.tar.gz"
LICENSE="ZLIB"

@ -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-java/guava/guava-07.ebuild,v 1.4 2013/01/14 19:37:50 ago Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-java/guava/guava-07.ebuild,v 1.5 2013/01/30 18:09:18 ago Exp $
EAPI="4"
@ -15,7 +15,7 @@ SRC_URI="http://guava-libraries.googlecode.com/files/${MY_P}.zip"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
IUSE=""
COMMON_DEP="

@ -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-java/jython/jython-2.5.3-r2.ebuild,v 1.2 2013/01/14 19:37:37 ago Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-java/jython/jython-2.5.3-r2.ebuild,v 1.3 2013/01/30 18:09:06 ago Exp $
EAPI="4"
@ -14,7 +14,7 @@ SRC_URI="http://central.maven.org/maven2/org/python/${PN}-installer/${PV}/${PN}-
LICENSE="PSF-2"
SLOT="2.5"
KEYWORDS="amd64 ~x86 ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos"
KEYWORDS="amd64 x86 ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos"
IUSE="readline"
# Missing in installer jar.

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/gprolog/gprolog-1.4.1.ebuild,v 1.5 2013/01/10 12:52:38 keri Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-lang/gprolog/gprolog-1.4.1.ebuild,v 1.6 2013/01/30 18:53:14 ago Exp $
EAPI=4
@ -13,7 +13,7 @@ S="${WORKDIR}"/${P}
LICENSE="GPL-2 LGPL-3"
SLOT="0"
KEYWORDS="amd64 ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
IUSE="debug doc examples"
DEPEND=""

@ -1,2 +1,3 @@
DIST lazarus-0.9.26-0.tgz 12641854 SHA256 d4c2dc8e8c797049d45d0c01aff51ea94fcae489efab7d4529afb6aeca8066dd SHA512 6c2b1610e40bc55ecd69f56ebfa97304abb024d12fe38ae52a4f39937e6734aa800102c21fa460be060f867d0371c69fdcc972e30051f592b94c21d54f1f0c6e WHIRLPOOL 725fbf9612736a9a619f0fbc8f8c7508975bd41b7a8d16cbcbea7fdffbf712f65d4617e5bdccc7f6094d57c80511922a50bbe40b9ee26c30213591a453ca5301
DIST lazarus-0.9.28.2-src.tar.bz2 12933724 SHA256 5711372c6724d19624be6cb8f6c397d789f3ac6fd7f70f825817ee47bd0e4dfd SHA512 bde0ac39237d60311f0295eacf27b330fe8b0eef2b5a687a02d8a1aca9a2ad6d279aa3c2ea6ac1d67f0aca383eb17cd85f249a98d876745fe830c79db6c69a21 WHIRLPOOL 39f7ae728f05e8216ed426044d7cf67ff0c0549bce6745b1949522bd9b820f7f15f5a4876b8f3954c498abd2f0f7247a0752a2e04e1e0c2f3f1aef498f004d03
DIST lazarus-1.0.4-1.tar.gz 46146420 SHA256 e3a52fe5a1053d12fa2c6a4c89faf5487c3184ad584324b0c640db87b5b85744 SHA512 26d17f175f71f593543f63de7dddaf5a4dc674df17657e242968280618c21e623acb446b18d49643ca872b53f3f1b81b9a09fabaced2a6f7419935121ac4f1fa WHIRLPOOL 0aa61a385ab812b4dd1b0abc7a57c95519bfc27a9c56b375af8484de299d7f6e439e5fa5504da2b7571b0def5526e960f35b6bdf2ec9efc118d534ca290c5f8c

@ -0,0 +1,73 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/lazarus/lazarus-1.0.4.ebuild,v 1.1 2013/01/31 08:15:43 patrick Exp $
EAPI=2
inherit eutils
RESTRICT="strip" #269221
FPCVER="2.6.0"
SLOT="0" # Note: Slotting Lazarus needs slotting fpc, see DEPEND.
LICENSE="GPL-2 LGPL-2.1-with-linking-exception"
KEYWORDS="~amd64 ~ppc ~x86"
DESCRIPTION="Lazarus IDE is a feature rich visual programming environment emulating Delphi."
HOMEPAGE="http://www.lazarus.freepascal.org/"
IUSE=""
SRC_URI="http://downloads.sourceforge.net/project/${PN}/Lazarus%20Zip%20_%20GZip/Lazarus%20${PV}/lazarus-1.0.4-1.tar.gz"
DEPEND="~dev-lang/fpc-${FPCVER}[source]
net-misc/rsync
x11-libs/gtk+:2"
RDEPEND="${DEPEND}
!=gnome-base/librsvg-2.16.1"
DEPEND="${DEPEND}
>=sys-devel/binutils-2.19.1-r1"
S=${WORKDIR}/${PN}
src_prepare() {
epatch "${FILESDIR}"/${PN}-0.9.26-fpcsrc.patch
# Use default configuration (minus stripping) unless specifically requested otherwise
if ! test ${PPC_CONFIG_PATH+set} ; then
local FPCVER=$(fpc -iV)
export PPC_CONFIG_PATH="${WORKDIR}"
sed -e 's/^FPBIN=/#&/' /usr/lib/fpc/${FPCVER}/samplecfg |
sh -s /usr/lib/fpc/${FPCVER} "${PPC_CONFIG_PATH}" || die
#sed -i -e '/^-Xs/d' "${PPC_CONFIG_PATH}"/fpc.cfg || die
fi
}
src_compile() {
LCL_PLATFORM=gtk2 emake -j1 || die "make failed!"
}
src_install() {
diropts -m0755
dodir /usr/share
# Using rsync to avoid unnecessary copies and cleaning...
# Note: *.o and *.ppu are needed
rsync -a \
--exclude="CVS" --exclude=".cvsignore" \
--exclude="*.ppw" --exclude="*.ppl" \
--exclude="*.ow" --exclude="*.a"\
--exclude="*.rst" --exclude=".#*" \
--exclude="*.~*" --exclude="*.bak" \
--exclude="*.orig" --exclude="*.rej" \
--exclude=".xvpics" --exclude="*.compiled" \
--exclude="killme*" --exclude=".gdb_hist*" \
--exclude="debian" --exclude="COPYING*" \
--exclude="*.app" \
"${S}" "${D}"usr/share \
|| die "Unable to copy files!"
dosym ../share/lazarus/startlazarus /usr/bin/startlazarus
dosym ../share/lazarus/startlazarus /usr/bin/lazarus
dosym ../share/lazarus/lazbuild /usr/bin/lazbuild
dosym ../lazarus/images/ide_icon48x48.png /usr/share/pixmaps/lazarus.png
make_desktop_entry startlazarus "Lazarus IDE" "lazarus" || die "Failed making desktop entry!"
}

@ -1,6 +1,5 @@
DIST v8-3.14.5.3.tar.bz2 10352249 SHA256 f91d851abd284589272f2b338c74e10f07ce667736e8e73cbd301172cb7f75a1 SHA512 ea090f390d9ec86b33393135d9e14f2a059e0341f65aaa86e4816ee9b2f0d9dbdb1ef1d86b6eab5742c93f62279bb4ce806a86eeacc4e0e0b04b0627c462b685 WHIRLPOOL fbb44dfed7c77fac28eb4d87e9f151ab0e70d6e57807de0f6af3c71ec7006cee15cc2935f3c75375f8a793a92fcd6a9f453ba2ea4b7e0d7353f5f0382ca9d937
DIST v8-3.15.11.11.tar.bz2 10396271 SHA256 cb4d9c57921d836cce84c21b0c17b6aaa6ec312f432ac48844f02a194dc7ad39 SHA512 fd0b0674708fca37cc3edbadba161b97b4758f1e3264afe287858d908342b6f830723a85434d58f17708fc242bbf26be188e0a375c4c49c74d8b62b0bdf656ba WHIRLPOOL e581f2ad020f1c034d34f45b75bed0a114cec641a955cc2c13ae547480a98ff091e773c555c18c4a4fbc53730b65c189a4c450d718260e111c4dd06f2534bdb3
DIST v8-3.15.11.2.tar.bz2 10394544 SHA256 b52eea34c9a897a365f97ab2649c1678f99b8757f08e96fd683ac06367f52a98 SHA512 ed2ac0ff280f129922a639961cd2c2824bfd3890175b5a1eda021e90550591904e224171b4b446a2547a0062a93fa411000c7a7ff61245f8950280e692d5dc4a WHIRLPOOL 459e465b3530cad900c1507b4f232963a288070e16a37739eabbf48948b95eb64ce598f7a01b19de5f981cac0e91c3725c3d7c47ac15bf373ba3c24c244ffe52
DIST v8-3.15.11.5.tar.bz2 10394328 SHA256 5dd7db8d8dd9247a10cdc48e647d3e83a8dac6768f7d0f8096539a9f0ebfaf64 SHA512 89e2658d555781eeecd7004fe058a693175ae7c515b7f290ea7acac32c27942afedd3a0c3d3c3a650ab78ed4772cc5eb04b4eb40782bfc857be8eac8e2a39e42 WHIRLPOOL 39c6ddad8531cba890d20e9874d282455ebb20a729d9f45acf1308358135226b04edd3bfe97a4cb36d985a51e3a1497b27cb9098c9b80412ca5aab980fe29b26
DIST v8-3.15.11.13.tar.bz2 10390413 SHA256 7a9a0333c2faf081a4a950c9a3a2c599534e6b50eae17fd4a75ee0825e8c26ca SHA512 64b28f7a594d7b159d82ed0091b35bf845a49ab6a5d5a1d8c78f10548cbac2fc3f0c918e71002a63f42607b9e6a981455983ab9bd43dd55a7c8e0de0cdb3f7a2 WHIRLPOOL e8b36b66ea29a6c4dc9f09aa0caa04de31523491aa61c4325a5b05fa0de5585b6862ee2ad99ba074a99226d09039a854a57661d43d2cd675f40c5ad5a109fdc1
DIST v8-3.16.4.1.tar.bz2 10435189 SHA256 74ab3bc11f6761e5108affcbe15bc673d2ecbe06aa38ea4b27d850321c0fdc2b SHA512 c0db5b0c101cfc2fb6d303c3fbfd021ee293e165fd3bf22b1d39ac510ac94d8f37dccdd67485880fd677c92cb0b0f51e591091abad8811dab2efb184445da6d9 WHIRLPOOL 2f2cf17b6b958c2ebf5aa9aa3f7865186374c6f23ae7123bfaaae07a92edfaf066b41a9db5465428e6ca1d21113d57ce8a2ab16fe38d0e7e5955b300747301dc
DIST v8-3.16.4.tar.bz2 10433190 SHA256 a7efdababbdc14dd226fc6aaddb2b93b9ff6a68cf249de595bc8cd87fe87f9db SHA512 2254f8e50ba87863d1f3cb158c35c9f9c7976d18ba533518b320e720252cf10bb5f85e08003836417359ab9eba6dc8f08ee0263bc8a93a02d9de87fc3b2356d9 WHIRLPOOL c831dae5aeef708047f536358d9747935c81eacbd48eabb5c3de640e541e531a0bddcccc4ccfa6706f0ca5492c28f24629d50e19043e3d8ad475c6aa29545c12

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-3.15.11.5.ebuild,v 1.1 2013/01/09 05:40:02 phajdan.jr Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-3.15.11.13.ebuild,v 1.1 2013/01/31 00:34:37 floppym Exp $
EAPI="5"
PYTHON_COMPAT=( python2_{6,7} )

@ -1,108 +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/v8/v8-3.15.11.2.ebuild,v 1.1 2012/12/27 18:25:42 phajdan.jr Exp $
EAPI="5"
PYTHON_COMPAT=( python2_{6,7} )
inherit eutils multilib pax-utils python-any-r1 toolchain-funcs versionator
DESCRIPTION="Google's open source JavaScript engine"
HOMEPAGE="http://code.google.com/p/v8"
SRC_URI="http://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.bz2"
LICENSE="BSD"
soname_version="$(get_version_component_range 1-3)"
SLOT="0/${soname_version}"
KEYWORDS="~amd64 ~arm ~x86 ~x86-fbsd ~x64-macos ~x86-macos"
IUSE=""
DEPEND="${PYTHON_DEPS}"
src_prepare() {
epatch "${FILESDIR}"/${PN}-vfp2-r0.patch
}
src_compile() {
tc-export AR CC CXX RANLIB
export LINK=${CXX}
local hardfp=off
# Use target arch detection logic from bug #354601.
case ${CHOST} in
i?86-*) myarch=ia32 ;;
x86_64-*)
if [[ $ABI = x86 ]] ; then
myarch=ia32
else
myarch=x64
fi ;;
arm*-hardfloat-*)
hardfp=on
myarch=arm ;;
arm*-*) myarch=arm ;;
*) die "Unrecognized CHOST: ${CHOST}"
esac
mytarget=${myarch}.release
local snapshot=on
host-is-pax && snapshot=off
# TODO: Add console=readline option once implemented upstream
# http://code.google.com/p/v8/issues/detail?id=1781
emake V=1 \
library=shared \
werror=no \
soname_version=${soname_version} \
snapshot=${snapshot} \
hardfp=${hardfp} \
${mytarget} || die
pax-mark m out/${mytarget}/{cctest,d8,shell} || die
}
src_test() {
local arg testjobs
for arg in ${MAKEOPTS}; do
case ${arg} in
-j*) testjobs=${arg#-j} ;;
--jobs=*) testjobs=${arg#--jobs=} ;;
esac
done
tools/test-wrapper-gypbuild.py \
-j${testjobs:-1} \
--arch-and-mode=${mytarget} \
--no-presubmit \
--progress=dots || die
}
src_install() {
insinto /usr
doins -r include || die
if [[ ${CHOST} == *-darwin* ]] ; then
# buildsystem is too horrific to get this built correctly
mkdir -p out/${mytarget}/lib.target
mv out/${mytarget}/libv8.so.${soname_version} \
out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) || die
install_name_tool \
-id "${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname) \
out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) \
|| die
install_name_tool \
-change \
/usr/local/lib/libv8.so.${soname_version} \
"${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname) \
out/${mytarget}/d8 || die
fi
dobin out/${mytarget}/d8 || die
dolib out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) || die
dosym libv8$(get_libname ${soname_version}) /usr/$(get_libdir)/libv8$(get_libname) || die
dodoc AUTHORS ChangeLog || die
}

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

Loading…
Cancel
Save