parent
de3ca5f001
commit
22f4e017fb
@ -1,24 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/perl-cleaner/perl-cleaner-2.12.ebuild,v 1.2 2014/01/19 02:09:58 vapier Exp $
|
|
||||||
|
|
||||||
EAPI=4
|
|
||||||
|
|
||||||
DESCRIPTION="User land tool for cleaning up old perl installs"
|
|
||||||
HOMEPAGE="http://www.gentoo.org/proj/en/perl/"
|
|
||||||
SRC_URI="mirror://gentoo/${P}.tar.bz2
|
|
||||||
http://dev.gentoo.org/~tove/distfiles/${CATEGORY}/${PN}/${P}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RDEPEND="app-shells/bash
|
|
||||||
|| ( >=sys-apps/coreutils-8.15 app-misc/realpath sys-freebsd/freebsd-bin )
|
|
||||||
dev-lang/perl"
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dosbin perl-cleaner
|
|
||||||
doman perl-cleaner.1
|
|
||||||
}
|
|
@ -1,23 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/perl-cleaner/perl-cleaner-2.13.ebuild,v 1.1 2014/06/06 19:59:32 dilfridge Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
DESCRIPTION="User land tool for cleaning up old perl installs"
|
|
||||||
HOMEPAGE="http://www.gentoo.org/proj/en/perl/"
|
|
||||||
SRC_URI="mirror://gentoo/${P}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RDEPEND="app-shells/bash
|
|
||||||
|| ( >=sys-apps/coreutils-8.15 app-misc/realpath sys-freebsd/freebsd-bin )
|
|
||||||
dev-lang/perl"
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dosbin perl-cleaner
|
|
||||||
doman perl-cleaner.1
|
|
||||||
}
|
|
@ -1,22 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/perl-cleaner/perl-cleaner-2.7.ebuild,v 1.9 2014/01/19 02:09:59 vapier Exp $
|
|
||||||
|
|
||||||
DESCRIPTION="User land tool for cleaning up old perl installs"
|
|
||||||
HOMEPAGE="http://www.gentoo.org/proj/en/perl/"
|
|
||||||
SRC_URI="mirror://gentoo/${P}.tar.bz2
|
|
||||||
http://dev.gentoo.org/~tove/files/${P}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="app-shells/bash"
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
dev-lang/perl"
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dosbin perl-cleaner || die
|
|
||||||
doman perl-cleaner.1 || die
|
|
||||||
}
|
|
@ -1,47 +0,0 @@
|
|||||||
# Copyright 1999-2011 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-doc/podbrowser/podbrowser-0.12-r1.ebuild,v 1.1 2011/03/23 08:51:17 tove Exp $
|
|
||||||
|
|
||||||
EAPI=3
|
|
||||||
|
|
||||||
inherit eutils
|
|
||||||
|
|
||||||
DESCRIPTION="PodBrowser is a documentation browser for Perl"
|
|
||||||
HOMEPAGE="http://jodrell.net/projects/podbrowser"
|
|
||||||
SRC_URI="http://jodrell.net/files/podbrowser/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE=""
|
|
||||||
SRC_TEST="do"
|
|
||||||
|
|
||||||
RDEPEND="dev-perl/gtk2-gladexml
|
|
||||||
dev-perl/gtk2-perl
|
|
||||||
dev-perl/HTML-Parser
|
|
||||||
dev-perl/Locale-gettext
|
|
||||||
virtual/perl-Pod-Simple
|
|
||||||
dev-perl/URI
|
|
||||||
dev-perl/Gtk2-Ex-PodViewer
|
|
||||||
dev-perl/Gtk2-Ex-PrintDialog
|
|
||||||
dev-perl/Gtk2-Ex-Simple-List
|
|
||||||
>=dev-lang/perl-5.8.0[-build]
|
|
||||||
>=x11-libs/gtk+-2.6.0:2
|
|
||||||
>=x11-themes/gnome-icon-theme-2.10.0
|
|
||||||
>=gnome-base/libglade-2:2.0"
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
sys-devel/gettext"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}"/missing_icon.patch
|
|
||||||
cp "${FILESDIR}"/Makefile.new "${S}"/Makefile
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake DESTDIR="${D}" PREFIX=/usr || die "emake failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake PREFIX=/usr DESTDIR="${D}" install || die
|
|
||||||
}
|
|
@ -0,0 +1,232 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-emulation/docker/docker-1.0.1.ebuild,v 1.1 2014/06/29 02:00:39 gregkh Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
DESCRIPTION="Docker complements kernel namespacing with a high-level API which operates at the process level."
|
||||||
|
HOMEPAGE="https://www.docker.io/"
|
||||||
|
|
||||||
|
GITHUB_URI="github.com/dotcloud/docker"
|
||||||
|
|
||||||
|
if [[ ${PV} == *9999 ]]; then
|
||||||
|
SRC_URI=""
|
||||||
|
EGIT_REPO_URI="git://${GITHUB_URI}.git"
|
||||||
|
inherit git-2
|
||||||
|
KEYWORDS=""
|
||||||
|
else
|
||||||
|
SRC_URI="https://${GITHUB_URI}/archive/v${PV}.zip -> ${P}.zip"
|
||||||
|
DOCKER_GITCOMMIT="990021a"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
[ "$DOCKER_GITCOMMIT" ] || die "DOCKER_GITCOMMIT must be added manually for each bump!"
|
||||||
|
fi
|
||||||
|
|
||||||
|
inherit bash-completion-r1 linux-info systemd udev user
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="aufs btrfs +contrib +device-mapper doc lxc vim-syntax zsh-completion"
|
||||||
|
|
||||||
|
# TODO work with upstream to allow us to build without lvm2 installed if we have -device-mapper
|
||||||
|
CDEPEND="
|
||||||
|
>=dev-db/sqlite-3.7.9:3
|
||||||
|
device-mapper? (
|
||||||
|
sys-fs/lvm2[thin]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
DEPEND="
|
||||||
|
${CDEPEND}
|
||||||
|
>=dev-lang/go-1.2
|
||||||
|
btrfs? (
|
||||||
|
>=sys-fs/btrfs-progs-0.20
|
||||||
|
)
|
||||||
|
dev-vcs/git
|
||||||
|
dev-vcs/mercurial
|
||||||
|
"
|
||||||
|
RDEPEND="
|
||||||
|
${CDEPEND}
|
||||||
|
!app-emulation/docker-bin
|
||||||
|
>=net-firewall/iptables-1.4
|
||||||
|
lxc? (
|
||||||
|
>=app-emulation/lxc-1.0
|
||||||
|
)
|
||||||
|
>=dev-vcs/git-1.7
|
||||||
|
>=app-arch/xz-utils-4.9
|
||||||
|
aufs? (
|
||||||
|
|| (
|
||||||
|
sys-fs/aufs3
|
||||||
|
sys-kernel/aufs-sources
|
||||||
|
)
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
RESTRICT="installsources strip"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
if kernel_is lt 3 8; then
|
||||||
|
ewarn ""
|
||||||
|
ewarn "Using Docker with kernels older than 3.8 is unstable and unsupported."
|
||||||
|
ewarn ""
|
||||||
|
fi
|
||||||
|
|
||||||
|
# many of these were borrowed from the app-emulation/lxc ebuild
|
||||||
|
CONFIG_CHECK+="
|
||||||
|
~CGROUPS
|
||||||
|
~CGROUP_CPUACCT
|
||||||
|
~CGROUP_DEVICE
|
||||||
|
~CGROUP_FREEZER
|
||||||
|
~CGROUP_SCHED
|
||||||
|
~CPUSETS
|
||||||
|
~MEMCG_SWAP
|
||||||
|
~RESOURCE_COUNTERS
|
||||||
|
|
||||||
|
~IPC_NS
|
||||||
|
~NAMESPACES
|
||||||
|
~PID_NS
|
||||||
|
|
||||||
|
~DEVPTS_MULTIPLE_INSTANCES
|
||||||
|
~MACVLAN
|
||||||
|
~NET_NS
|
||||||
|
~UTS_NS
|
||||||
|
~VETH
|
||||||
|
|
||||||
|
~!NETPRIO_CGROUP
|
||||||
|
~POSIX_MQUEUE
|
||||||
|
|
||||||
|
~BRIDGE
|
||||||
|
~IP_NF_TARGET_MASQUERADE
|
||||||
|
~NETFILTER_XT_MATCH_ADDRTYPE
|
||||||
|
~NETFILTER_XT_MATCH_CONNTRACK
|
||||||
|
~NF_NAT
|
||||||
|
~NF_NAT_NEEDED
|
||||||
|
|
||||||
|
~!GRKERNSEC_CHROOT_CAPS
|
||||||
|
~!GRKERNSEC_CHROOT_CHMOD
|
||||||
|
~!GRKERNSEC_CHROOT_DOUBLE
|
||||||
|
~!GRKERNSEC_CHROOT_MOUNT
|
||||||
|
~!GRKERNSEC_CHROOT_PIVOT
|
||||||
|
"
|
||||||
|
|
||||||
|
ERROR_MEMCG_SWAP="CONFIG_MEMCG_SWAP: is required if you wish to limit swap usage of containers"
|
||||||
|
|
||||||
|
for c in GRKERNSEC_CHROOT_MOUNT GRKERNSEC_CHROOT_DOUBLE GRKERNSEC_CHROOT_PIVOT GRKERNSEC_CHROOT_CHMOD; do
|
||||||
|
declare "ERROR_$c"="CONFIG_$c: see app-emulation/lxc postinst notes for why some GRSEC features make containers unusuable"
|
||||||
|
done
|
||||||
|
|
||||||
|
if use aufs; then
|
||||||
|
CONFIG_CHECK+="
|
||||||
|
~AUFS_FS
|
||||||
|
"
|
||||||
|
ERROR_AUFS_FS="CONFIG_AUFS_FS: is required to be set if and only if aufs-sources are used"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use btrfs; then
|
||||||
|
CONFIG_CHECK+="
|
||||||
|
~BTRFS_FS
|
||||||
|
"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use device-mapper; then
|
||||||
|
CONFIG_CHECK+="
|
||||||
|
~BLK_DEV_DM
|
||||||
|
~DM_THIN_PROVISIONING
|
||||||
|
~EXT4_FS
|
||||||
|
"
|
||||||
|
fi
|
||||||
|
|
||||||
|
check_extra_config
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
# if we treat them right, Docker's build scripts will set up a
|
||||||
|
# reasonable GOPATH for us
|
||||||
|
export AUTO_GOPATH=1
|
||||||
|
|
||||||
|
# setup CFLAGS and LDFLAGS for separate build target
|
||||||
|
# see https://github.com/tianon/docker-overlay/pull/10
|
||||||
|
export CGO_CFLAGS="-I${ROOT}/usr/include"
|
||||||
|
export CGO_LDFLAGS="-L${ROOT}/usr/lib"
|
||||||
|
|
||||||
|
# if we're building from a zip, we need the GITCOMMIT value
|
||||||
|
[ "$DOCKER_GITCOMMIT" ] && export DOCKER_GITCOMMIT
|
||||||
|
|
||||||
|
if gcc-specs-pie; then
|
||||||
|
sed -i "s/EXTLDFLAGS_STATIC='/EXTLDFLAGS_STATIC='-fno-PIC /" hack/make.sh || die
|
||||||
|
grep -q -- '-fno-PIC' hack/make.sh || die 'hardened sed failed'
|
||||||
|
|
||||||
|
sed -i 's/LDFLAGS_STATIC_DOCKER="/LDFLAGS_STATIC_DOCKER="-extldflags -fno-PIC /' hack/make/dynbinary || die
|
||||||
|
grep -q -- '-fno-PIC' hack/make/dynbinary || die 'hardened sed failed'
|
||||||
|
fi
|
||||||
|
|
||||||
|
# let's set up some optional features :)
|
||||||
|
export DOCKER_BUILDTAGS=''
|
||||||
|
for gd in aufs btrfs device-mapper; do
|
||||||
|
if ! use $gd; then
|
||||||
|
DOCKER_BUILDTAGS+=" exclude_graphdriver_${gd//-/}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# time to build!
|
||||||
|
./hack/make.sh dynbinary || die
|
||||||
|
|
||||||
|
# TODO pandoc the man pages using contrib/man/md/md2man-all.sh
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
VERSION=$(cat VERSION)
|
||||||
|
newbin bundles/$VERSION/dynbinary/docker-$VERSION docker
|
||||||
|
exeinto /usr/libexec/docker
|
||||||
|
newexe bundles/$VERSION/dynbinary/dockerinit-$VERSION dockerinit
|
||||||
|
|
||||||
|
newinitd contrib/init/openrc/docker.initd docker
|
||||||
|
newconfd contrib/init/openrc/docker.confd docker
|
||||||
|
|
||||||
|
systemd_dounit contrib/init/systemd/docker.service
|
||||||
|
|
||||||
|
udev_dorules contrib/udev/*.rules
|
||||||
|
|
||||||
|
dodoc AUTHORS CONTRIBUTING.md CHANGELOG.md NOTICE README.md
|
||||||
|
if use doc; then
|
||||||
|
# TODO doman contrib/man/man*/*
|
||||||
|
|
||||||
|
docompress -x /usr/share/doc/${PF}/md
|
||||||
|
docinto md
|
||||||
|
dodoc -r docs/sources/*
|
||||||
|
fi
|
||||||
|
|
||||||
|
dobashcomp contrib/completion/bash/*
|
||||||
|
|
||||||
|
if use zsh-completion; then
|
||||||
|
insinto /usr/share/zsh/site-functions
|
||||||
|
doins contrib/completion/zsh/*
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use vim-syntax; then
|
||||||
|
insinto /usr/share/vim/vimfiles
|
||||||
|
doins -r contrib/syntax/vim/ftdetect
|
||||||
|
doins -r contrib/syntax/vim/syntax
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use contrib; then
|
||||||
|
mkdir -p "${D}/usr/share/${PN}/contrib"
|
||||||
|
cp -R contrib/* "${D}/usr/share/${PN}/contrib"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
udev_reload
|
||||||
|
|
||||||
|
elog ""
|
||||||
|
elog "To use docker, the docker daemon must be running as root. To automatically"
|
||||||
|
elog "start the docker daemon at boot, add docker to the default runlevel:"
|
||||||
|
elog " rc-update add docker default"
|
||||||
|
elog "Similarly for systemd:"
|
||||||
|
elog " systemctl enable docker.service"
|
||||||
|
elog ""
|
||||||
|
|
||||||
|
# create docker group if the code checking for it in /etc/group exists
|
||||||
|
enewgroup docker
|
||||||
|
|
||||||
|
elog "To use docker as a non-root user, add yourself to the docker group."
|
||||||
|
elog ""
|
||||||
|
}
|
@ -1,38 +0,0 @@
|
|||||||
From 22fcf835dfe713ad93f649a901973208e0f7b62d Mon Sep 17 00:00:00 2001
|
|
||||||
From: Alexandre Rostovtsev <tetromino@gentoo.org>
|
|
||||||
Date: Tue, 7 Aug 2012 01:29:01 -0400
|
|
||||||
Subject: [PATCH] Do not check for libGL symbols when checking libOSMesa
|
|
||||||
|
|
||||||
If mesa had been built with shared glapi, glAccum is not available in
|
|
||||||
libOSMesa without explicitly linking to libGL. In addition, in
|
|
||||||
mesa-8.0.x and earlier, libOSMesa needs to be explicitly linked to
|
|
||||||
libglapi if mesa was built with shared glapi, see
|
|
||||||
https://bugs.gentoo.org/show_bug.cgi?id=399813
|
|
||||||
And in mesa-8.1.x, libOSMesa in addition needs libdl, libpthread, and
|
|
||||||
libstdc++, see https://bugs.gentoo.org/show_bug.cgi?id=431832
|
|
||||||
---
|
|
||||||
configure.ac | 8 +++++++-
|
|
||||||
1 files changed, 7 insertions(+), 1 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/configure.ac b/configure.ac
|
|
||||||
index 15ada86..6eab75e 100644
|
|
||||||
--- a/configure.ac
|
|
||||||
+++ b/configure.ac
|
|
||||||
@@ -1133,7 +1133,13 @@ This probably prevents linking to OpenGL. Try deleting the file and restarting c
|
|
||||||
|
|
||||||
if test "$ac_cv_header_GL_osmesa_h" = "yes"
|
|
||||||
then
|
|
||||||
- WINE_CHECK_SONAME(OSMesa,glAccum,,,[$X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS])
|
|
||||||
+ WINE_CHECK_SONAME(OSMesa,OSMesaCreateContext,,,[$X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS])
|
|
||||||
+ if test "x$ac_cv_lib_soname_OSMesa" = "x"; then
|
|
||||||
+ osmesa_save_CC=$CC
|
|
||||||
+ CC=$CXX
|
|
||||||
+ WINE_CHECK_SONAME(OSMesa,OSMesaCreateContext,,,[-lglapi -lpthread -ldl $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS])
|
|
||||||
+ CC=$osmesa_save_CC
|
|
||||||
+ fi
|
|
||||||
fi
|
|
||||||
WINE_NOTICE_WITH(osmesa,[test "x$ac_cv_lib_soname_OSMesa" = "x"],
|
|
||||||
[libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.])
|
|
||||||
--
|
|
||||||
1.7.8.6
|
|
||||||
|
|
@ -1,45 +0,0 @@
|
|||||||
commit ce4b6451aabbe83809c7483c748cfa009cc090d6
|
|
||||||
Author: Alexandre Julliard <julliard@winehq.org>
|
|
||||||
Date: Fri May 10 22:01:44 2013 +0200
|
|
||||||
|
|
||||||
configure: Add explicit install targets in libs/wine for make_makefiles.
|
|
||||||
|
|
||||||
diff --git a/configure b/configure
|
|
||||||
index d4c1f8e..ef38bfd 100755
|
|
||||||
--- a/configure
|
|
||||||
+++ b/configure
|
|
||||||
@@ -16379,7 +16379,7 @@ wine_fn_config_makefile documentation enable_documentation
|
|
||||||
wine_fn_config_makefile fonts enable_fonts install-lib
|
|
||||||
wine_fn_config_makefile include enable_include install-dev
|
|
||||||
wine_fn_config_makefile libs/port enable_libs_port
|
|
||||||
-wine_fn_config_makefile libs/wine enable_libs_wine
|
|
||||||
+wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
|
|
||||||
wine_fn_config_makefile libs/wpp enable_libs_wpp
|
|
||||||
wine_fn_config_makefile loader enable_loader install-lib,manpage
|
|
||||||
wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
|
|
||||||
diff --git a/configure.ac b/configure.ac
|
|
||||||
index 6dd2348..b44673e 100644
|
|
||||||
--- a/configure.ac
|
|
||||||
+++ b/configure.ac
|
|
||||||
@@ -3173,7 +3173,7 @@ WINE_CONFIG_MAKEFILE([documentation])
|
|
||||||
WINE_CONFIG_MAKEFILE([fonts],,[install-lib])
|
|
||||||
WINE_CONFIG_MAKEFILE([include],,[install-dev])
|
|
||||||
WINE_CONFIG_MAKEFILE([libs/port])
|
|
||||||
-WINE_CONFIG_MAKEFILE([libs/wine])
|
|
||||||
+WINE_CONFIG_MAKEFILE([libs/wine],,[install-dev,install-lib])
|
|
||||||
WINE_CONFIG_MAKEFILE([libs/wpp])
|
|
||||||
WINE_CONFIG_MAKEFILE([loader],,[install-lib,manpage])
|
|
||||||
WINE_CONFIG_PROGRAM(aspnet_regiis,,[install])
|
|
||||||
diff --git a/libs/wine/Makefile.in b/libs/wine/Makefile.in
|
|
||||||
index b8dc385..7de7799 100644
|
|
||||||
--- a/libs/wine/Makefile.in
|
|
||||||
+++ b/libs/wine/Makefile.in
|
|
||||||
@@ -111,4 +111,8 @@ version.c: dummy
|
|
||||||
$(RELPATH):
|
|
||||||
@cd $(TOOLSDIR)/tools && $(MAKE) relpath$(TOOLSEXT)
|
|
||||||
|
|
||||||
+# Make sure that make_makefiles sees the install rules
|
|
||||||
+install install-lib::
|
|
||||||
+install install-dev::
|
|
||||||
+
|
|
||||||
@LIBWINE_RULES@
|
|
@ -1,44 +0,0 @@
|
|||||||
From 9fb3de8e9268e8e81128fc77328495567140e082 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Alexandre Rostovtsev <tetromino@gentoo.org>
|
|
||||||
Date: Sat, 25 May 2013 23:57:04 -0400
|
|
||||||
Subject: [PATCH] configure, secur32: In gnutls-3.2, gnutls_mac_get_key_size()
|
|
||||||
moved to crypto.h
|
|
||||||
|
|
||||||
Based on a patch by Ben Kohler <bkohler@gmail.com>
|
|
||||||
|
|
||||||
https://bugs.gentoo.org/show_bug.cgi?id=471077
|
|
||||||
http://bugs.winehq.org/show_bug.cgi?id=33649
|
|
||||||
---
|
|
||||||
configure.ac | 3 ++-
|
|
||||||
dlls/secur32/schannel_gnutls.c | 1 +
|
|
||||||
2 files changed, 3 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/configure.ac b/configure.ac
|
|
||||||
index 1941be1..2c10734 100644
|
|
||||||
--- a/configure.ac
|
|
||||||
+++ b/configure.ac
|
|
||||||
@@ -1344,7 +1344,8 @@ then
|
|
||||||
ac_save_CPPFLAGS="$CPPFLAGS"
|
|
||||||
WINE_PACKAGE_FLAGS(GNUTLS,[gnutls])
|
|
||||||
AC_CHECK_HEADER(gnutls/gnutls.h,
|
|
||||||
- [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <gnutls/gnutls.h>]], [[static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;]])],
|
|
||||||
+ [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <gnutls/gnutls.h>
|
|
||||||
+#include <gnutls/crypto.h>]], [[static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;]])],
|
|
||||||
[WINE_CHECK_SONAME(gnutls,gnutls_global_init,,[GNUTLS_CFLAGS=""],[$GNUTLS_LIBS])])],
|
|
||||||
[GNUTLS_CFLAGS=""])
|
|
||||||
CPPFLAGS="$ac_save_CPPFLAGS"
|
|
||||||
diff --git a/dlls/secur32/schannel_gnutls.c b/dlls/secur32/schannel_gnutls.c
|
|
||||||
index 70b8276..cbe64e8 100644
|
|
||||||
--- a/dlls/secur32/schannel_gnutls.c
|
|
||||||
+++ b/dlls/secur32/schannel_gnutls.c
|
|
||||||
@@ -25,6 +25,7 @@
|
|
||||||
#include <stdarg.h>
|
|
||||||
#ifdef SONAME_LIBGNUTLS
|
|
||||||
#include <gnutls/gnutls.h>
|
|
||||||
+#include <gnutls/crypto.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "windef.h"
|
|
||||||
--
|
|
||||||
1.8.2.1
|
|
||||||
|
|
@ -1,250 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.4.ebuild,v 1.17 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic multilib pax-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* amd64 x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.4"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
|
||||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap mp3 ncurses nls odbc openal opencl +opengl +oss +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
|
||||||
REQUIRED_USE="elibc_glibc? ( threads )" #286560
|
|
||||||
RESTRICT="test" #72375
|
|
||||||
|
|
||||||
MLIB_DEPS="amd64? (
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
app-emulation/emul-linux-x86-baselibs
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)"
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:0
|
|
||||||
)
|
|
||||||
gnutls? ( net-libs/gnutls:= )
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( dev-libs/openssl:0= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
!win64? ( ${MLIB_DEPS} )
|
|
||||||
win32? ( ${MLIB_DEPS} )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
epatch_user #282735
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
eautoreconf
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local builddir="${WORKDIR}/wine$1"
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}" >/dev/null
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} \
|
|
||||||
econf \
|
|
||||||
--sysconfdir=/etc/wine \
|
|
||||||
$(use_with alsa) \
|
|
||||||
$(use_with capi) \
|
|
||||||
$(use_with lcms cms) \
|
|
||||||
$(use_with cups) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with udisks dbus) \
|
|
||||||
$(use_with fontconfig) \
|
|
||||||
$(use_with gnutls) \
|
|
||||||
$(use_with gphoto2 gphoto) \
|
|
||||||
$(use_with gsm) \
|
|
||||||
$(use_with gstreamer) \
|
|
||||||
--without-hal \
|
|
||||||
$(use_with jpeg) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_with mp3 mpg123) \
|
|
||||||
$(use_with nls gettext) \
|
|
||||||
$(use_with openal) \
|
|
||||||
$(use_with opencl) \
|
|
||||||
$(use_with opengl) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with oss) \
|
|
||||||
$(use_with png) \
|
|
||||||
$(use_with threads pthread) \
|
|
||||||
$(use_with scanner sane) \
|
|
||||||
$(use_enable test tests) \
|
|
||||||
$(use_with truetype freetype) \
|
|
||||||
$(use_with v4l) \
|
|
||||||
$(use_with X x) \
|
|
||||||
$(use_with xcomposite) \
|
|
||||||
$(use_with xinerama) \
|
|
||||||
$(use_with xml) \
|
|
||||||
$(use_with xml xslt) \
|
|
||||||
$2
|
|
||||||
|
|
||||||
emake -j1 depend
|
|
||||||
|
|
||||||
popd >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
if use win64 ; then
|
|
||||||
do_configure 64 --enable-win64
|
|
||||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
|
||||||
else
|
|
||||||
ABI=x86 do_configure 32 --disable-win64
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" all
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" install DESTDIR="${D}"
|
|
||||||
done
|
|
||||||
dodoc ANNOUNCE AUTHORS README
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 || ! use win64; then
|
|
||||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
fi
|
|
||||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use win64 && ! use win32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,251 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.0.ebuild,v 1.16 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic multilib pax-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.5"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
|
||||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap mp3 ncurses nls odbc openal opencl +opengl +oss +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
|
||||||
REQUIRED_USE="elibc_glibc? ( threads )" #286560
|
|
||||||
RESTRICT="test" #72375
|
|
||||||
|
|
||||||
MLIB_DEPS="amd64? (
|
|
||||||
gstreamer? ( app-emulation/emul-linux-x86-gstplugins )
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
app-emulation/emul-linux-x86-baselibs
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)"
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:0
|
|
||||||
)
|
|
||||||
gnutls? ( net-libs/gnutls:= )
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( dev-libs/openssl:0= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
!win64? ( ${MLIB_DEPS} )
|
|
||||||
win32? ( ${MLIB_DEPS} )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
epatch_user #282735
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
eautoreconf
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local builddir="${WORKDIR}/wine$1"
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}" >/dev/null
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} \
|
|
||||||
econf \
|
|
||||||
--sysconfdir=/etc/wine \
|
|
||||||
$(use_with alsa) \
|
|
||||||
$(use_with capi) \
|
|
||||||
$(use_with lcms cms) \
|
|
||||||
$(use_with cups) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with udisks dbus) \
|
|
||||||
$(use_with fontconfig) \
|
|
||||||
$(use_with gnutls) \
|
|
||||||
$(use_with gphoto2 gphoto) \
|
|
||||||
$(use_with gsm) \
|
|
||||||
$(use_with gstreamer) \
|
|
||||||
--without-hal \
|
|
||||||
$(use_with jpeg) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_with mp3 mpg123) \
|
|
||||||
$(use_with nls gettext) \
|
|
||||||
$(use_with openal) \
|
|
||||||
$(use_with opencl) \
|
|
||||||
$(use_with opengl) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with oss) \
|
|
||||||
$(use_with png) \
|
|
||||||
$(use_with threads pthread) \
|
|
||||||
$(use_with scanner sane) \
|
|
||||||
$(use_enable test tests) \
|
|
||||||
$(use_with truetype freetype) \
|
|
||||||
$(use_with v4l) \
|
|
||||||
$(use_with X x) \
|
|
||||||
$(use_with xcomposite) \
|
|
||||||
$(use_with xinerama) \
|
|
||||||
$(use_with xml) \
|
|
||||||
$(use_with xml xslt) \
|
|
||||||
$2
|
|
||||||
|
|
||||||
emake -j1 depend
|
|
||||||
|
|
||||||
popd >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
if use win64 ; then
|
|
||||||
do_configure 64 --enable-win64
|
|
||||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
|
||||||
else
|
|
||||||
ABI=x86 do_configure 32 --disable-win64
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" all
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" install DESTDIR="${D}"
|
|
||||||
done
|
|
||||||
dodoc ANNOUNCE AUTHORS README
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 || ! use win64; then
|
|
||||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
fi
|
|
||||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use win64 && ! use win32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,250 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.1.ebuild,v 1.14 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic multilib pax-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.5"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
|
||||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap mp3 ncurses nls odbc openal opencl +opengl +oss +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
|
||||||
REQUIRED_USE="elibc_glibc? ( threads )" #286560
|
|
||||||
RESTRICT="test" #72375
|
|
||||||
|
|
||||||
MLIB_DEPS="amd64? (
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
app-emulation/emul-linux-x86-baselibs
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)"
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:0
|
|
||||||
)
|
|
||||||
gnutls? ( net-libs/gnutls:= )
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( dev-libs/openssl:0= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
!win64? ( ${MLIB_DEPS} )
|
|
||||||
win32? ( ${MLIB_DEPS} )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
epatch_user #282735
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
eautoreconf
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local builddir="${WORKDIR}/wine$1"
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}" >/dev/null
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} \
|
|
||||||
econf \
|
|
||||||
--sysconfdir=/etc/wine \
|
|
||||||
$(use_with alsa) \
|
|
||||||
$(use_with capi) \
|
|
||||||
$(use_with lcms cms) \
|
|
||||||
$(use_with cups) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with udisks dbus) \
|
|
||||||
$(use_with fontconfig) \
|
|
||||||
$(use_with gnutls) \
|
|
||||||
$(use_with gphoto2 gphoto) \
|
|
||||||
$(use_with gsm) \
|
|
||||||
$(use_with gstreamer) \
|
|
||||||
--without-hal \
|
|
||||||
$(use_with jpeg) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_with mp3 mpg123) \
|
|
||||||
$(use_with nls gettext) \
|
|
||||||
$(use_with openal) \
|
|
||||||
$(use_with opencl) \
|
|
||||||
$(use_with opengl) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with oss) \
|
|
||||||
$(use_with png) \
|
|
||||||
$(use_with threads pthread) \
|
|
||||||
$(use_with scanner sane) \
|
|
||||||
$(use_enable test tests) \
|
|
||||||
$(use_with truetype freetype) \
|
|
||||||
$(use_with v4l) \
|
|
||||||
$(use_with X x) \
|
|
||||||
$(use_with xcomposite) \
|
|
||||||
$(use_with xinerama) \
|
|
||||||
$(use_with xml) \
|
|
||||||
$(use_with xml xslt) \
|
|
||||||
$2
|
|
||||||
|
|
||||||
emake -j1 depend
|
|
||||||
|
|
||||||
popd >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
if use win64 ; then
|
|
||||||
do_configure 64 --enable-win64
|
|
||||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
|
||||||
else
|
|
||||||
ABI=x86 do_configure 32 --disable-win64
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" all
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" install DESTDIR="${D}"
|
|
||||||
done
|
|
||||||
dodoc ANNOUNCE AUTHORS README
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 || ! use win64; then
|
|
||||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
fi
|
|
||||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use win64 && ! use win32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,268 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.10-r1.ebuild,v 1.8 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic multilib pax-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.7"
|
|
||||||
MV="0.0.4"
|
|
||||||
PULSE_PATCH="winepulse-2012.06.15.patch"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
|
||||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)
|
|
||||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
|
||||||
http://source.winehq.org/patches/data/87234 -> ${PULSE_PATCH}"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
|
||||||
REQUIRED_USE="elibc_glibc? ( threads )
|
|
||||||
mono? ( || ( win32 !win64 ) )
|
|
||||||
osmesa? ( opengl )" #286560
|
|
||||||
RESTRICT="test" #72375
|
|
||||||
|
|
||||||
MLIB_DEPS="amd64? (
|
|
||||||
gstreamer? ( app-emulation/emul-linux-x86-gstplugins )
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
|
||||||
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
app-emulation/emul-linux-x86-baselibs
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)"
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:2
|
|
||||||
)
|
|
||||||
gnutls? ( net-libs/gnutls:= )
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
osmesa? ( media-libs/mesa[osmesa] )
|
|
||||||
pulseaudio? ( media-sound/pulseaudio )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( dev-libs/openssl:0= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
!win64? ( ${MLIB_DEPS} )
|
|
||||||
win32? ( ${MLIB_DEPS} )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.5.11-osmesa-check.patch #429386
|
|
||||||
epatch "${DISTDIR}/${PULSE_PATCH}" #421365
|
|
||||||
epatch_user #282735
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
eautoreconf
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local builddir="${WORKDIR}/wine$1"
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}" >/dev/null
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} \
|
|
||||||
econf \
|
|
||||||
--sysconfdir=/etc/wine \
|
|
||||||
$(use_with alsa) \
|
|
||||||
$(use_with capi) \
|
|
||||||
$(use_with lcms cms) \
|
|
||||||
$(use_with cups) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with udisks dbus) \
|
|
||||||
$(use_with fontconfig) \
|
|
||||||
$(use_with gnutls) \
|
|
||||||
$(use_with gphoto2 gphoto) \
|
|
||||||
$(use_with gsm) \
|
|
||||||
$(use_with gstreamer) \
|
|
||||||
--without-hal \
|
|
||||||
$(use_with jpeg) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_with mp3 mpg123) \
|
|
||||||
$(use_with nls gettext) \
|
|
||||||
$(use_with openal) \
|
|
||||||
$(use_with opencl) \
|
|
||||||
$(use_with opengl) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with osmesa) \
|
|
||||||
$(use_with oss) \
|
|
||||||
$(use_with png) \
|
|
||||||
$(use_with threads pthread) \
|
|
||||||
$(use_with pulseaudio pulse) \
|
|
||||||
$(use_with scanner sane) \
|
|
||||||
$(use_enable test tests) \
|
|
||||||
$(use_with truetype freetype) \
|
|
||||||
$(use_with v4l) \
|
|
||||||
$(use_with X x) \
|
|
||||||
$(use_with xcomposite) \
|
|
||||||
$(use_with xinerama) \
|
|
||||||
$(use_with xml) \
|
|
||||||
$(use_with xml xslt) \
|
|
||||||
$2
|
|
||||||
|
|
||||||
emake -j1 depend
|
|
||||||
|
|
||||||
popd >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
if use win64 ; then
|
|
||||||
do_configure 64 --enable-win64
|
|
||||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
|
||||||
else
|
|
||||||
ABI=x86 do_configure 32 --disable-win64
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" all
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" install DESTDIR="${D}"
|
|
||||||
done
|
|
||||||
dodoc ANNOUNCE AUTHORS README
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if use mono ; then
|
|
||||||
insinto /usr/share/wine/mono
|
|
||||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 || ! use win64; then
|
|
||||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
fi
|
|
||||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use win64 && ! use win32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,268 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.11-r1.ebuild,v 1.8 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic multilib pax-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.7"
|
|
||||||
MV="0.0.4"
|
|
||||||
PULSE_PATCH="winepulse-2012.06.15.patch"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
|
||||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)
|
|
||||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
|
||||||
http://source.winehq.org/patches/data/87234 -> ${PULSE_PATCH}"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
|
||||||
REQUIRED_USE="elibc_glibc? ( threads )
|
|
||||||
mono? ( || ( win32 !win64 ) )
|
|
||||||
osmesa? ( opengl )" #286560
|
|
||||||
RESTRICT="test" #72375
|
|
||||||
|
|
||||||
MLIB_DEPS="amd64? (
|
|
||||||
gstreamer? ( app-emulation/emul-linux-x86-gstplugins )
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
|
||||||
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
app-emulation/emul-linux-x86-baselibs
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)"
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:2
|
|
||||||
)
|
|
||||||
gnutls? ( net-libs/gnutls:= )
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
osmesa? ( media-libs/mesa[osmesa] )
|
|
||||||
pulseaudio? ( media-sound/pulseaudio )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( dev-libs/openssl:0= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
!win64? ( ${MLIB_DEPS} )
|
|
||||||
win32? ( ${MLIB_DEPS} )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.5.11-osmesa-check.patch #429386
|
|
||||||
epatch "${DISTDIR}/${PULSE_PATCH}" #421365
|
|
||||||
epatch_user #282735
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
eautoreconf
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local builddir="${WORKDIR}/wine$1"
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}" >/dev/null
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} \
|
|
||||||
econf \
|
|
||||||
--sysconfdir=/etc/wine \
|
|
||||||
$(use_with alsa) \
|
|
||||||
$(use_with capi) \
|
|
||||||
$(use_with lcms cms) \
|
|
||||||
$(use_with cups) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with udisks dbus) \
|
|
||||||
$(use_with fontconfig) \
|
|
||||||
$(use_with gnutls) \
|
|
||||||
$(use_with gphoto2 gphoto) \
|
|
||||||
$(use_with gsm) \
|
|
||||||
$(use_with gstreamer) \
|
|
||||||
--without-hal \
|
|
||||||
$(use_with jpeg) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_with mp3 mpg123) \
|
|
||||||
$(use_with nls gettext) \
|
|
||||||
$(use_with openal) \
|
|
||||||
$(use_with opencl) \
|
|
||||||
$(use_with opengl) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with osmesa) \
|
|
||||||
$(use_with oss) \
|
|
||||||
$(use_with png) \
|
|
||||||
$(use_with threads pthread) \
|
|
||||||
$(use_with pulseaudio pulse) \
|
|
||||||
$(use_with scanner sane) \
|
|
||||||
$(use_enable test tests) \
|
|
||||||
$(use_with truetype freetype) \
|
|
||||||
$(use_with v4l) \
|
|
||||||
$(use_with X x) \
|
|
||||||
$(use_with xcomposite) \
|
|
||||||
$(use_with xinerama) \
|
|
||||||
$(use_with xml) \
|
|
||||||
$(use_with xml xslt) \
|
|
||||||
$2
|
|
||||||
|
|
||||||
emake -j1 depend
|
|
||||||
|
|
||||||
popd >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
if use win64 ; then
|
|
||||||
do_configure 64 --enable-win64
|
|
||||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
|
||||||
else
|
|
||||||
ABI=x86 do_configure 32 --disable-win64
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" all
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" install DESTDIR="${D}"
|
|
||||||
done
|
|
||||||
dodoc ANNOUNCE AUTHORS README
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if use mono ; then
|
|
||||||
insinto /usr/share/wine/mono
|
|
||||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 || ! use win64; then
|
|
||||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
fi
|
|
||||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use win64 && ! use win32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,268 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.12-r1.ebuild,v 1.8 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic multilib pax-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.7"
|
|
||||||
MV="0.0.4"
|
|
||||||
PULSE_PATCH="winepulse-2012.06.15.patch"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
|
||||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)
|
|
||||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
|
||||||
http://source.winehq.org/patches/data/87234 -> ${PULSE_PATCH}"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
|
||||||
REQUIRED_USE="elibc_glibc? ( threads )
|
|
||||||
mono? ( || ( win32 !win64 ) )
|
|
||||||
osmesa? ( opengl )" #286560
|
|
||||||
RESTRICT="test" #72375
|
|
||||||
|
|
||||||
MLIB_DEPS="amd64? (
|
|
||||||
gstreamer? ( app-emulation/emul-linux-x86-gstplugins )
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
|
||||||
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
app-emulation/emul-linux-x86-baselibs
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)"
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:2
|
|
||||||
)
|
|
||||||
gnutls? ( net-libs/gnutls:= )
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
osmesa? ( media-libs/mesa[osmesa] )
|
|
||||||
pulseaudio? ( media-sound/pulseaudio )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( dev-libs/openssl:0= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
!win64? ( ${MLIB_DEPS} )
|
|
||||||
win32? ( ${MLIB_DEPS} )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.5.11-osmesa-check.patch #429386
|
|
||||||
epatch "${DISTDIR}/${PULSE_PATCH}" #421365
|
|
||||||
epatch_user #282735
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
eautoreconf
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local builddir="${WORKDIR}/wine$1"
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}" >/dev/null
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} \
|
|
||||||
econf \
|
|
||||||
--sysconfdir=/etc/wine \
|
|
||||||
$(use_with alsa) \
|
|
||||||
$(use_with capi) \
|
|
||||||
$(use_with lcms cms) \
|
|
||||||
$(use_with cups) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with udisks dbus) \
|
|
||||||
$(use_with fontconfig) \
|
|
||||||
$(use_with gnutls) \
|
|
||||||
$(use_with gphoto2 gphoto) \
|
|
||||||
$(use_with gsm) \
|
|
||||||
$(use_with gstreamer) \
|
|
||||||
--without-hal \
|
|
||||||
$(use_with jpeg) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_with mp3 mpg123) \
|
|
||||||
$(use_with nls gettext) \
|
|
||||||
$(use_with openal) \
|
|
||||||
$(use_with opencl) \
|
|
||||||
$(use_with opengl) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with osmesa) \
|
|
||||||
$(use_with oss) \
|
|
||||||
$(use_with png) \
|
|
||||||
$(use_with threads pthread) \
|
|
||||||
$(use_with pulseaudio pulse) \
|
|
||||||
$(use_with scanner sane) \
|
|
||||||
$(use_enable test tests) \
|
|
||||||
$(use_with truetype freetype) \
|
|
||||||
$(use_with v4l) \
|
|
||||||
$(use_with X x) \
|
|
||||||
$(use_with xcomposite) \
|
|
||||||
$(use_with xinerama) \
|
|
||||||
$(use_with xml) \
|
|
||||||
$(use_with xml xslt) \
|
|
||||||
$2
|
|
||||||
|
|
||||||
emake -j1 depend
|
|
||||||
|
|
||||||
popd >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
if use win64 ; then
|
|
||||||
do_configure 64 --enable-win64
|
|
||||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
|
||||||
else
|
|
||||||
ABI=x86 do_configure 32 --disable-win64
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" all
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" install DESTDIR="${D}"
|
|
||||||
done
|
|
||||||
dodoc ANNOUNCE AUTHORS README
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if use mono ; then
|
|
||||||
insinto /usr/share/wine/mono
|
|
||||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 || ! use win64; then
|
|
||||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
fi
|
|
||||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use win64 && ! use win32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,268 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.13-r1.ebuild,v 1.8 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic multilib pax-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.7"
|
|
||||||
MV="0.0.4"
|
|
||||||
PULSE_PATCH="winepulse-2012.06.15.patch"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
|
||||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)
|
|
||||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
|
||||||
http://source.winehq.org/patches/data/87234 -> ${PULSE_PATCH}"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
|
||||||
REQUIRED_USE="elibc_glibc? ( threads )
|
|
||||||
mono? ( || ( win32 !win64 ) )
|
|
||||||
osmesa? ( opengl )" #286560
|
|
||||||
RESTRICT="test" #72375
|
|
||||||
|
|
||||||
MLIB_DEPS="amd64? (
|
|
||||||
gstreamer? ( app-emulation/emul-linux-x86-gstplugins )
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
|
||||||
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
app-emulation/emul-linux-x86-baselibs
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)"
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:2
|
|
||||||
)
|
|
||||||
gnutls? ( net-libs/gnutls:= )
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
osmesa? ( media-libs/mesa[osmesa] )
|
|
||||||
pulseaudio? ( media-sound/pulseaudio )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( dev-libs/openssl:0= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
!win64? ( ${MLIB_DEPS} )
|
|
||||||
win32? ( ${MLIB_DEPS} )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.5.11-osmesa-check.patch #429386
|
|
||||||
epatch "${DISTDIR}/${PULSE_PATCH}" #421365
|
|
||||||
epatch_user #282735
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
eautoreconf
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local builddir="${WORKDIR}/wine$1"
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}" >/dev/null
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} \
|
|
||||||
econf \
|
|
||||||
--sysconfdir=/etc/wine \
|
|
||||||
$(use_with alsa) \
|
|
||||||
$(use_with capi) \
|
|
||||||
$(use_with lcms cms) \
|
|
||||||
$(use_with cups) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with udisks dbus) \
|
|
||||||
$(use_with fontconfig) \
|
|
||||||
$(use_with gnutls) \
|
|
||||||
$(use_with gphoto2 gphoto) \
|
|
||||||
$(use_with gsm) \
|
|
||||||
$(use_with gstreamer) \
|
|
||||||
--without-hal \
|
|
||||||
$(use_with jpeg) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_with mp3 mpg123) \
|
|
||||||
$(use_with nls gettext) \
|
|
||||||
$(use_with openal) \
|
|
||||||
$(use_with opencl) \
|
|
||||||
$(use_with opengl) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with osmesa) \
|
|
||||||
$(use_with oss) \
|
|
||||||
$(use_with png) \
|
|
||||||
$(use_with threads pthread) \
|
|
||||||
$(use_with pulseaudio pulse) \
|
|
||||||
$(use_with scanner sane) \
|
|
||||||
$(use_enable test tests) \
|
|
||||||
$(use_with truetype freetype) \
|
|
||||||
$(use_with v4l) \
|
|
||||||
$(use_with X x) \
|
|
||||||
$(use_with xcomposite) \
|
|
||||||
$(use_with xinerama) \
|
|
||||||
$(use_with xml) \
|
|
||||||
$(use_with xml xslt) \
|
|
||||||
$2
|
|
||||||
|
|
||||||
emake -j1 depend
|
|
||||||
|
|
||||||
popd >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
if use win64 ; then
|
|
||||||
do_configure 64 --enable-win64
|
|
||||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
|
||||||
else
|
|
||||||
ABI=x86 do_configure 32 --disable-win64
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" all
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" install DESTDIR="${D}"
|
|
||||||
done
|
|
||||||
dodoc ANNOUNCE AUTHORS README
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if use mono ; then
|
|
||||||
insinto /usr/share/wine/mono
|
|
||||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 || ! use win64; then
|
|
||||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
fi
|
|
||||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use win64 && ! use win32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,268 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.14-r1.ebuild,v 1.8 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic multilib pax-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.7"
|
|
||||||
MV="0.0.4"
|
|
||||||
PULSE_PATCH="winepulse-2012.06.15.patch"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
|
||||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)
|
|
||||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
|
||||||
http://source.winehq.org/patches/data/87234 -> ${PULSE_PATCH}"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
|
||||||
REQUIRED_USE="elibc_glibc? ( threads )
|
|
||||||
mono? ( || ( win32 !win64 ) )
|
|
||||||
osmesa? ( opengl )" #286560
|
|
||||||
RESTRICT="test" #72375
|
|
||||||
|
|
||||||
MLIB_DEPS="amd64? (
|
|
||||||
gstreamer? ( app-emulation/emul-linux-x86-gstplugins )
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
|
||||||
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
app-emulation/emul-linux-x86-baselibs
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)"
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:2
|
|
||||||
)
|
|
||||||
gnutls? ( net-libs/gnutls:= )
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
osmesa? ( media-libs/mesa[osmesa] )
|
|
||||||
pulseaudio? ( media-sound/pulseaudio )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( dev-libs/openssl:0= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
!win64? ( ${MLIB_DEPS} )
|
|
||||||
win32? ( ${MLIB_DEPS} )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.5.11-osmesa-check.patch #429386
|
|
||||||
epatch "${DISTDIR}/${PULSE_PATCH}" #421365
|
|
||||||
epatch_user #282735
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
eautoreconf
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local builddir="${WORKDIR}/wine$1"
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}" >/dev/null
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} \
|
|
||||||
econf \
|
|
||||||
--sysconfdir=/etc/wine \
|
|
||||||
$(use_with alsa) \
|
|
||||||
$(use_with capi) \
|
|
||||||
$(use_with lcms cms) \
|
|
||||||
$(use_with cups) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with udisks dbus) \
|
|
||||||
$(use_with fontconfig) \
|
|
||||||
$(use_with gnutls) \
|
|
||||||
$(use_with gphoto2 gphoto) \
|
|
||||||
$(use_with gsm) \
|
|
||||||
$(use_with gstreamer) \
|
|
||||||
--without-hal \
|
|
||||||
$(use_with jpeg) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_with mp3 mpg123) \
|
|
||||||
$(use_with nls gettext) \
|
|
||||||
$(use_with openal) \
|
|
||||||
$(use_with opencl) \
|
|
||||||
$(use_with opengl) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with osmesa) \
|
|
||||||
$(use_with oss) \
|
|
||||||
$(use_with png) \
|
|
||||||
$(use_with threads pthread) \
|
|
||||||
$(use_with pulseaudio pulse) \
|
|
||||||
$(use_with scanner sane) \
|
|
||||||
$(use_enable test tests) \
|
|
||||||
$(use_with truetype freetype) \
|
|
||||||
$(use_with v4l) \
|
|
||||||
$(use_with X x) \
|
|
||||||
$(use_with xcomposite) \
|
|
||||||
$(use_with xinerama) \
|
|
||||||
$(use_with xml) \
|
|
||||||
$(use_with xml xslt) \
|
|
||||||
$2
|
|
||||||
|
|
||||||
emake -j1 depend
|
|
||||||
|
|
||||||
popd >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
if use win64 ; then
|
|
||||||
do_configure 64 --enable-win64
|
|
||||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
|
||||||
else
|
|
||||||
ABI=x86 do_configure 32 --disable-win64
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" all
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" install DESTDIR="${D}"
|
|
||||||
done
|
|
||||||
dodoc ANNOUNCE AUTHORS README
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if use mono ; then
|
|
||||||
insinto /usr/share/wine/mono
|
|
||||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 || ! use win64; then
|
|
||||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
fi
|
|
||||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use win64 && ! use win32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,274 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.15-r2.ebuild,v 1.8 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic multilib pax-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.8"
|
|
||||||
MV="0.0.4"
|
|
||||||
PULSE_PATCHES="winepulse-patches-1.5.15"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
|
||||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)
|
|
||||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
|
||||||
REQUIRED_USE="elibc_glibc? ( threads )
|
|
||||||
mono? ( || ( win32 !win64 ) )
|
|
||||||
osmesa? ( opengl )" #286560
|
|
||||||
RESTRICT="test" #72375
|
|
||||||
|
|
||||||
MLIB_DEPS="amd64? (
|
|
||||||
gstreamer? ( app-emulation/emul-linux-x86-gstplugins )
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
|
||||||
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
app-emulation/emul-linux-x86-baselibs
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)"
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:2
|
|
||||||
)
|
|
||||||
gnutls? ( net-libs/gnutls:= )
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
osmesa? ( media-libs/mesa[osmesa] )
|
|
||||||
pulseaudio? (
|
|
||||||
media-sound/pulseaudio
|
|
||||||
sys-auth/rtkit
|
|
||||||
)
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( dev-libs/openssl:0= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
!win64? ( ${MLIB_DEPS} )
|
|
||||||
win32? ( ${MLIB_DEPS} )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
|
|
||||||
unpack "${PULSE_PATCHES}.tar.bz2"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.5.11-osmesa-check.patch #429386
|
|
||||||
epatch "../${PULSE_PATCHES}"/*.patch #421365
|
|
||||||
epatch_user #282735
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
eautoreconf
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local builddir="${WORKDIR}/wine$1"
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}" >/dev/null
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} \
|
|
||||||
econf \
|
|
||||||
--sysconfdir=/etc/wine \
|
|
||||||
$(use_with alsa) \
|
|
||||||
$(use_with capi) \
|
|
||||||
$(use_with lcms cms) \
|
|
||||||
$(use_with cups) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with udisks dbus) \
|
|
||||||
$(use_with fontconfig) \
|
|
||||||
$(use_with gnutls) \
|
|
||||||
$(use_with gphoto2 gphoto) \
|
|
||||||
$(use_with gsm) \
|
|
||||||
$(use_with gstreamer) \
|
|
||||||
--without-hal \
|
|
||||||
$(use_with jpeg) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_with mp3 mpg123) \
|
|
||||||
$(use_with nls gettext) \
|
|
||||||
$(use_with openal) \
|
|
||||||
$(use_with opencl) \
|
|
||||||
$(use_with opengl) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with osmesa) \
|
|
||||||
$(use_with oss) \
|
|
||||||
$(use_with png) \
|
|
||||||
$(use_with threads pthread) \
|
|
||||||
$(use_with pulseaudio pulse) \
|
|
||||||
$(use_with scanner sane) \
|
|
||||||
$(use_enable test tests) \
|
|
||||||
$(use_with truetype freetype) \
|
|
||||||
$(use_with v4l) \
|
|
||||||
$(use_with X x) \
|
|
||||||
$(use_with xcomposite) \
|
|
||||||
$(use_with xinerama) \
|
|
||||||
$(use_with xml) \
|
|
||||||
$(use_with xml xslt) \
|
|
||||||
$2
|
|
||||||
|
|
||||||
emake -j1 depend
|
|
||||||
|
|
||||||
popd >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
if use win64 ; then
|
|
||||||
do_configure 64 --enable-win64
|
|
||||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
|
||||||
else
|
|
||||||
ABI=x86 do_configure 32 --disable-win64
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" all
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" install DESTDIR="${D}"
|
|
||||||
done
|
|
||||||
dodoc ANNOUNCE AUTHORS README
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if use mono ; then
|
|
||||||
insinto /usr/share/wine/mono
|
|
||||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 || ! use win64; then
|
|
||||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
fi
|
|
||||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use win64 && ! use win32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,274 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.16-r1.ebuild,v 1.8 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic multilib pax-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.8"
|
|
||||||
MV="0.0.8"
|
|
||||||
PULSE_PATCHES="winepulse-patches-1.5.16"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
|
||||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)
|
|
||||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
|
||||||
REQUIRED_USE="elibc_glibc? ( threads )
|
|
||||||
mono? ( || ( win32 !win64 ) )
|
|
||||||
osmesa? ( opengl )" #286560
|
|
||||||
RESTRICT="test" #72375
|
|
||||||
|
|
||||||
MLIB_DEPS="amd64? (
|
|
||||||
gstreamer? ( app-emulation/emul-linux-x86-gstplugins )
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
|
||||||
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
app-emulation/emul-linux-x86-baselibs
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)"
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:2
|
|
||||||
)
|
|
||||||
gnutls? ( net-libs/gnutls:= )
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
osmesa? ( media-libs/mesa[osmesa] )
|
|
||||||
pulseaudio? (
|
|
||||||
media-sound/pulseaudio
|
|
||||||
sys-auth/rtkit
|
|
||||||
)
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( dev-libs/openssl:0= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
!win64? ( ${MLIB_DEPS} )
|
|
||||||
win32? ( ${MLIB_DEPS} )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
|
|
||||||
unpack "${PULSE_PATCHES}.tar.bz2"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.5.11-osmesa-check.patch #429386
|
|
||||||
epatch "../${PULSE_PATCHES}"/*.patch #421365
|
|
||||||
epatch_user #282735
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
eautoreconf
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local builddir="${WORKDIR}/wine$1"
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}" >/dev/null
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} \
|
|
||||||
econf \
|
|
||||||
--sysconfdir=/etc/wine \
|
|
||||||
$(use_with alsa) \
|
|
||||||
$(use_with capi) \
|
|
||||||
$(use_with lcms cms) \
|
|
||||||
$(use_with cups) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with udisks dbus) \
|
|
||||||
$(use_with fontconfig) \
|
|
||||||
$(use_with gnutls) \
|
|
||||||
$(use_with gphoto2 gphoto) \
|
|
||||||
$(use_with gsm) \
|
|
||||||
$(use_with gstreamer) \
|
|
||||||
--without-hal \
|
|
||||||
$(use_with jpeg) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_with mp3 mpg123) \
|
|
||||||
$(use_with nls gettext) \
|
|
||||||
$(use_with openal) \
|
|
||||||
$(use_with opencl) \
|
|
||||||
$(use_with opengl) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with osmesa) \
|
|
||||||
$(use_with oss) \
|
|
||||||
$(use_with png) \
|
|
||||||
$(use_with threads pthread) \
|
|
||||||
$(use_with pulseaudio pulse) \
|
|
||||||
$(use_with scanner sane) \
|
|
||||||
$(use_enable test tests) \
|
|
||||||
$(use_with truetype freetype) \
|
|
||||||
$(use_with v4l) \
|
|
||||||
$(use_with X x) \
|
|
||||||
$(use_with xcomposite) \
|
|
||||||
$(use_with xinerama) \
|
|
||||||
$(use_with xml) \
|
|
||||||
$(use_with xml xslt) \
|
|
||||||
$2
|
|
||||||
|
|
||||||
emake -j1 depend
|
|
||||||
|
|
||||||
popd >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
if use win64 ; then
|
|
||||||
do_configure 64 --enable-win64
|
|
||||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
|
||||||
else
|
|
||||||
ABI=x86 do_configure 32 --disable-win64
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" all
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" install DESTDIR="${D}"
|
|
||||||
done
|
|
||||||
dodoc ANNOUNCE AUTHORS README
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if use mono ; then
|
|
||||||
insinto /usr/share/wine/mono
|
|
||||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 || ! use win64; then
|
|
||||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
fi
|
|
||||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use win64 && ! use win32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,274 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.17.ebuild,v 1.8 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic multilib pax-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.8"
|
|
||||||
MV="0.0.8"
|
|
||||||
PULSE_PATCHES="winepulse-patches-1.5.17"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
|
||||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)
|
|
||||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
|
||||||
REQUIRED_USE="elibc_glibc? ( threads )
|
|
||||||
mono? ( || ( win32 !win64 ) )
|
|
||||||
osmesa? ( opengl )" #286560
|
|
||||||
RESTRICT="test" #72375
|
|
||||||
|
|
||||||
MLIB_DEPS="amd64? (
|
|
||||||
gstreamer? ( app-emulation/emul-linux-x86-gstplugins )
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
|
||||||
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
app-emulation/emul-linux-x86-baselibs
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)"
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:2
|
|
||||||
)
|
|
||||||
gnutls? ( net-libs/gnutls:= )
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
osmesa? ( media-libs/mesa[osmesa] )
|
|
||||||
pulseaudio? (
|
|
||||||
media-sound/pulseaudio
|
|
||||||
sys-auth/rtkit
|
|
||||||
)
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( dev-libs/openssl:0= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
!win64? ( ${MLIB_DEPS} )
|
|
||||||
win32? ( ${MLIB_DEPS} )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
|
|
||||||
unpack "${PULSE_PATCHES}.tar.bz2"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.5.17-osmesa-check.patch #429386
|
|
||||||
epatch "../${PULSE_PATCHES}"/*.patch #421365
|
|
||||||
epatch_user #282735
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
eautoreconf
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local builddir="${WORKDIR}/wine$1"
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}" >/dev/null
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} \
|
|
||||||
econf \
|
|
||||||
--sysconfdir=/etc/wine \
|
|
||||||
$(use_with alsa) \
|
|
||||||
$(use_with capi) \
|
|
||||||
$(use_with lcms cms) \
|
|
||||||
$(use_with cups) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with udisks dbus) \
|
|
||||||
$(use_with fontconfig) \
|
|
||||||
$(use_with gnutls) \
|
|
||||||
$(use_with gphoto2 gphoto) \
|
|
||||||
$(use_with gsm) \
|
|
||||||
$(use_with gstreamer) \
|
|
||||||
--without-hal \
|
|
||||||
$(use_with jpeg) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_with mp3 mpg123) \
|
|
||||||
$(use_with nls gettext) \
|
|
||||||
$(use_with openal) \
|
|
||||||
$(use_with opencl) \
|
|
||||||
$(use_with opengl) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with osmesa) \
|
|
||||||
$(use_with oss) \
|
|
||||||
$(use_with png) \
|
|
||||||
$(use_with threads pthread) \
|
|
||||||
$(use_with pulseaudio pulse) \
|
|
||||||
$(use_with scanner sane) \
|
|
||||||
$(use_enable test tests) \
|
|
||||||
$(use_with truetype freetype) \
|
|
||||||
$(use_with v4l) \
|
|
||||||
$(use_with X x) \
|
|
||||||
$(use_with xcomposite) \
|
|
||||||
$(use_with xinerama) \
|
|
||||||
$(use_with xml) \
|
|
||||||
$(use_with xml xslt) \
|
|
||||||
$2
|
|
||||||
|
|
||||||
emake -j1 depend
|
|
||||||
|
|
||||||
popd >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
if use win64 ; then
|
|
||||||
do_configure 64 --enable-win64
|
|
||||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
|
||||||
else
|
|
||||||
ABI=x86 do_configure 32 --disable-win64
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" all
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" install DESTDIR="${D}"
|
|
||||||
done
|
|
||||||
dodoc ANNOUNCE AUTHORS README
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if use mono ; then
|
|
||||||
insinto /usr/share/wine/mono
|
|
||||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 || ! use win64; then
|
|
||||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
fi
|
|
||||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use win64 && ! use win32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,297 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.18.ebuild,v 1.9 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic gnome2-utils multilib pax-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.8"
|
|
||||||
MV="0.0.8"
|
|
||||||
PULSE_PATCHES="winepulse-patches-1.5.18"
|
|
||||||
WINE_GENTOO="wine-gentoo-2012.11.24"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
|
||||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)
|
|
||||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
|
||||||
REQUIRED_USE="elibc_glibc? ( threads )
|
|
||||||
mono? ( || ( win32 !win64 ) )
|
|
||||||
osmesa? ( opengl )" #286560
|
|
||||||
RESTRICT="test" #72375
|
|
||||||
|
|
||||||
MLIB_DEPS="amd64? (
|
|
||||||
gstreamer? ( app-emulation/emul-linux-x86-gstplugins )
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
|
||||||
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
app-emulation/emul-linux-x86-baselibs
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)"
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:2
|
|
||||||
)
|
|
||||||
gnutls? ( net-libs/gnutls:= )
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
osmesa? ( media-libs/mesa[osmesa] )
|
|
||||||
pulseaudio? (
|
|
||||||
media-sound/pulseaudio
|
|
||||||
sys-auth/rtkit
|
|
||||||
)
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( dev-libs/openssl:0= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
!win64? ( ${MLIB_DEPS} )
|
|
||||||
win32? ( ${MLIB_DEPS} )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
# These use a non-standard "Wine" category, which is provided by
|
|
||||||
# /etc/xdg/applications-merged/wine.menu
|
|
||||||
QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
|
|
||||||
usr/share/applications/wine-notepad.desktop
|
|
||||||
usr/share/applications/wine-uninstaller.desktop
|
|
||||||
usr/share/applications/wine-winecfg.desktop"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
|
|
||||||
unpack "${PULSE_PATCHES}.tar.bz2"
|
|
||||||
unpack "${WINE_GENTOO}.tar.bz2"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.5.17-osmesa-check.patch #429386
|
|
||||||
epatch "../${PULSE_PATCHES}"/*.patch #421365
|
|
||||||
epatch_user #282735
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
eautoreconf
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local builddir="${WORKDIR}/wine$1"
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}" >/dev/null
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} \
|
|
||||||
econf \
|
|
||||||
--sysconfdir=/etc/wine \
|
|
||||||
$(use_with alsa) \
|
|
||||||
$(use_with capi) \
|
|
||||||
$(use_with lcms cms) \
|
|
||||||
$(use_with cups) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with udisks dbus) \
|
|
||||||
$(use_with fontconfig) \
|
|
||||||
$(use_with gnutls) \
|
|
||||||
$(use_with gphoto2 gphoto) \
|
|
||||||
$(use_with gsm) \
|
|
||||||
$(use_with gstreamer) \
|
|
||||||
--without-hal \
|
|
||||||
$(use_with jpeg) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_with mp3 mpg123) \
|
|
||||||
$(use_with nls gettext) \
|
|
||||||
$(use_with openal) \
|
|
||||||
$(use_with opencl) \
|
|
||||||
$(use_with opengl) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with osmesa) \
|
|
||||||
$(use_with oss) \
|
|
||||||
$(use_with png) \
|
|
||||||
$(use_with threads pthread) \
|
|
||||||
$(use_with pulseaudio pulse) \
|
|
||||||
$(use_with scanner sane) \
|
|
||||||
$(use_enable test tests) \
|
|
||||||
$(use_with truetype freetype) \
|
|
||||||
$(use_with v4l) \
|
|
||||||
$(use_with X x) \
|
|
||||||
$(use_with xcomposite) \
|
|
||||||
$(use_with xinerama) \
|
|
||||||
$(use_with xml) \
|
|
||||||
$(use_with xml xslt) \
|
|
||||||
$2
|
|
||||||
|
|
||||||
emake -j1 depend
|
|
||||||
|
|
||||||
popd >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
if use win64 ; then
|
|
||||||
do_configure 64 --enable-win64
|
|
||||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
|
||||||
else
|
|
||||||
ABI=x86 do_configure 32 --disable-win64
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" all
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" install DESTDIR="${D}"
|
|
||||||
done
|
|
||||||
emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
|
|
||||||
dodoc ANNOUNCE AUTHORS README
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if use mono ; then
|
|
||||||
insinto /usr/share/wine/mono
|
|
||||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 || ! use win64; then
|
|
||||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
fi
|
|
||||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use win64 && ! use win32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
gnome2_icon_savelist
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
@ -1,297 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.19.ebuild,v 1.9 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic gnome2-utils multilib pax-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.8"
|
|
||||||
MV="0.0.8"
|
|
||||||
PULSE_PATCHES="winepulse-patches-1.5.19"
|
|
||||||
WINE_GENTOO="wine-gentoo-2012.11.24"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
|
||||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)
|
|
||||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
|
||||||
REQUIRED_USE="elibc_glibc? ( threads )
|
|
||||||
mono? ( || ( win32 !win64 ) )
|
|
||||||
osmesa? ( opengl )" #286560
|
|
||||||
RESTRICT="test" #72375
|
|
||||||
|
|
||||||
MLIB_DEPS="amd64? (
|
|
||||||
gstreamer? ( app-emulation/emul-linux-x86-gstplugins )
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
|
||||||
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
app-emulation/emul-linux-x86-baselibs
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)"
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:2
|
|
||||||
)
|
|
||||||
gnutls? ( net-libs/gnutls:= )
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
osmesa? ( media-libs/mesa[osmesa] )
|
|
||||||
pulseaudio? (
|
|
||||||
media-sound/pulseaudio
|
|
||||||
sys-auth/rtkit
|
|
||||||
)
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( dev-libs/openssl:0= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
!win64? ( ${MLIB_DEPS} )
|
|
||||||
win32? ( ${MLIB_DEPS} )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
# These use a non-standard "Wine" category, which is provided by
|
|
||||||
# /etc/xdg/applications-merged/wine.menu
|
|
||||||
QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
|
|
||||||
usr/share/applications/wine-notepad.desktop
|
|
||||||
usr/share/applications/wine-uninstaller.desktop
|
|
||||||
usr/share/applications/wine-winecfg.desktop"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
|
|
||||||
unpack "${PULSE_PATCHES}.tar.bz2"
|
|
||||||
unpack "${WINE_GENTOO}.tar.bz2"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.5.17-osmesa-check.patch #429386
|
|
||||||
epatch "../${PULSE_PATCHES}"/*.patch #421365
|
|
||||||
epatch_user #282735
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
eautoreconf
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local builddir="${WORKDIR}/wine$1"
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}" >/dev/null
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} \
|
|
||||||
econf \
|
|
||||||
--sysconfdir=/etc/wine \
|
|
||||||
$(use_with alsa) \
|
|
||||||
$(use_with capi) \
|
|
||||||
$(use_with lcms cms) \
|
|
||||||
$(use_with cups) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with udisks dbus) \
|
|
||||||
$(use_with fontconfig) \
|
|
||||||
$(use_with gnutls) \
|
|
||||||
$(use_with gphoto2 gphoto) \
|
|
||||||
$(use_with gsm) \
|
|
||||||
$(use_with gstreamer) \
|
|
||||||
--without-hal \
|
|
||||||
$(use_with jpeg) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_with mp3 mpg123) \
|
|
||||||
$(use_with nls gettext) \
|
|
||||||
$(use_with openal) \
|
|
||||||
$(use_with opencl) \
|
|
||||||
$(use_with opengl) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with osmesa) \
|
|
||||||
$(use_with oss) \
|
|
||||||
$(use_with png) \
|
|
||||||
$(use_with threads pthread) \
|
|
||||||
$(use_with pulseaudio pulse) \
|
|
||||||
$(use_with scanner sane) \
|
|
||||||
$(use_enable test tests) \
|
|
||||||
$(use_with truetype freetype) \
|
|
||||||
$(use_with v4l) \
|
|
||||||
$(use_with X x) \
|
|
||||||
$(use_with xcomposite) \
|
|
||||||
$(use_with xinerama) \
|
|
||||||
$(use_with xml) \
|
|
||||||
$(use_with xml xslt) \
|
|
||||||
$2
|
|
||||||
|
|
||||||
emake -j1 depend
|
|
||||||
|
|
||||||
popd >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
if use win64 ; then
|
|
||||||
do_configure 64 --enable-win64
|
|
||||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
|
||||||
else
|
|
||||||
ABI=x86 do_configure 32 --disable-win64
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" all
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" install DESTDIR="${D}"
|
|
||||||
done
|
|
||||||
emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
|
|
||||||
dodoc ANNOUNCE AUTHORS README
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if use mono ; then
|
|
||||||
insinto /usr/share/wine/mono
|
|
||||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 || ! use win64; then
|
|
||||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
fi
|
|
||||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use win64 && ! use win32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
gnome2_icon_savelist
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
@ -1,251 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.2.ebuild,v 1.15 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic multilib pax-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.5"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
|
||||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap mp3 ncurses nls odbc openal opencl +opengl +oss +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
|
||||||
REQUIRED_USE="elibc_glibc? ( threads )" #286560
|
|
||||||
RESTRICT="test" #72375
|
|
||||||
|
|
||||||
MLIB_DEPS="amd64? (
|
|
||||||
gstreamer? ( app-emulation/emul-linux-x86-gstplugins )
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
app-emulation/emul-linux-x86-baselibs
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)"
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:0
|
|
||||||
)
|
|
||||||
gnutls? ( net-libs/gnutls:= )
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( dev-libs/openssl:0= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
!win64? ( ${MLIB_DEPS} )
|
|
||||||
win32? ( ${MLIB_DEPS} )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
epatch_user #282735
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
eautoreconf
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local builddir="${WORKDIR}/wine$1"
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}" >/dev/null
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} \
|
|
||||||
econf \
|
|
||||||
--sysconfdir=/etc/wine \
|
|
||||||
$(use_with alsa) \
|
|
||||||
$(use_with capi) \
|
|
||||||
$(use_with lcms cms) \
|
|
||||||
$(use_with cups) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with udisks dbus) \
|
|
||||||
$(use_with fontconfig) \
|
|
||||||
$(use_with gnutls) \
|
|
||||||
$(use_with gphoto2 gphoto) \
|
|
||||||
$(use_with gsm) \
|
|
||||||
$(use_with gstreamer) \
|
|
||||||
--without-hal \
|
|
||||||
$(use_with jpeg) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_with mp3 mpg123) \
|
|
||||||
$(use_with nls gettext) \
|
|
||||||
$(use_with openal) \
|
|
||||||
$(use_with opencl) \
|
|
||||||
$(use_with opengl) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with oss) \
|
|
||||||
$(use_with png) \
|
|
||||||
$(use_with threads pthread) \
|
|
||||||
$(use_with scanner sane) \
|
|
||||||
$(use_enable test tests) \
|
|
||||||
$(use_with truetype freetype) \
|
|
||||||
$(use_with v4l) \
|
|
||||||
$(use_with X x) \
|
|
||||||
$(use_with xcomposite) \
|
|
||||||
$(use_with xinerama) \
|
|
||||||
$(use_with xml) \
|
|
||||||
$(use_with xml xslt) \
|
|
||||||
$2
|
|
||||||
|
|
||||||
emake -j1 depend
|
|
||||||
|
|
||||||
popd >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
if use win64 ; then
|
|
||||||
do_configure 64 --enable-win64
|
|
||||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
|
||||||
else
|
|
||||||
ABI=x86 do_configure 32 --disable-win64
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" all
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" install DESTDIR="${D}"
|
|
||||||
done
|
|
||||||
dodoc ANNOUNCE AUTHORS README
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 || ! use win64; then
|
|
||||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
fi
|
|
||||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use win64 && ! use win32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,302 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.20.ebuild,v 1.11 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic gnome2-utils multilib pax-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.8"
|
|
||||||
MV="0.0.8"
|
|
||||||
PULSE_PATCHES="winepulse-patches-1.5.20_pre20121207"
|
|
||||||
WINE_GENTOO="wine-gentoo-2012.11.24"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
|
||||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)
|
|
||||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
|
||||||
[[ ${PV} == "9999" ]] || IUSE="${IUSE} pulseaudio"
|
|
||||||
REQUIRED_USE="elibc_glibc? ( threads )
|
|
||||||
mono? ( || ( win32 !win64 ) )
|
|
||||||
osmesa? ( opengl )" #286560
|
|
||||||
RESTRICT="test" #72375
|
|
||||||
|
|
||||||
MLIB_DEPS="amd64? (
|
|
||||||
gstreamer? ( app-emulation/emul-linux-x86-gstplugins )
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
|
||||||
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
app-emulation/emul-linux-x86-baselibs
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)"
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:2
|
|
||||||
)
|
|
||||||
gnutls? ( net-libs/gnutls:= )
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
osmesa? ( media-libs/mesa[osmesa] )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( dev-libs/openssl:0= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
!win64? ( ${MLIB_DEPS} )
|
|
||||||
win32? ( ${MLIB_DEPS} )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )"
|
|
||||||
[[ ${PV} == "9999" ]] || RDEPEND="${RDEPEND}
|
|
||||||
pulseaudio? (
|
|
||||||
media-sound/pulseaudio
|
|
||||||
sys-auth/rtkit
|
|
||||||
)"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
# These use a non-standard "Wine" category, which is provided by
|
|
||||||
# /etc/xdg/applications-merged/wine.menu
|
|
||||||
QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
|
|
||||||
usr/share/applications/wine-notepad.desktop
|
|
||||||
usr/share/applications/wine-uninstaller.desktop
|
|
||||||
usr/share/applications/wine-winecfg.desktop"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
|
|
||||||
unpack "${PULSE_PATCHES}.tar.bz2"
|
|
||||||
unpack "${WINE_GENTOO}.tar.bz2"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.5.17-osmesa-check.patch #429386
|
|
||||||
[[ ${PV} == "9999" ]] || epatch "../${PULSE_PATCHES}"/*.patch #421365
|
|
||||||
epatch_user #282735
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
eautoreconf
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local builddir="${WORKDIR}/wine$1"
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}" >/dev/null
|
|
||||||
|
|
||||||
local usepulse
|
|
||||||
[[ ${PV} == "9999" ]] || usepulse=$(use_with pulseaudio pulse)
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} \
|
|
||||||
econf \
|
|
||||||
--sysconfdir=/etc/wine \
|
|
||||||
$(use_with alsa) \
|
|
||||||
$(use_with capi) \
|
|
||||||
$(use_with lcms cms) \
|
|
||||||
$(use_with cups) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with udisks dbus) \
|
|
||||||
$(use_with fontconfig) \
|
|
||||||
$(use_with gnutls) \
|
|
||||||
$(use_with gphoto2 gphoto) \
|
|
||||||
$(use_with gsm) \
|
|
||||||
$(use_with gstreamer) \
|
|
||||||
--without-hal \
|
|
||||||
$(use_with jpeg) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_with mp3 mpg123) \
|
|
||||||
$(use_with nls gettext) \
|
|
||||||
$(use_with openal) \
|
|
||||||
$(use_with opencl) \
|
|
||||||
$(use_with opengl) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with osmesa) \
|
|
||||||
$(use_with oss) \
|
|
||||||
$(use_with png) \
|
|
||||||
$(use_with threads pthread) \
|
|
||||||
${usepulse} \
|
|
||||||
$(use_with scanner sane) \
|
|
||||||
$(use_enable test tests) \
|
|
||||||
$(use_with truetype freetype) \
|
|
||||||
$(use_with v4l) \
|
|
||||||
$(use_with X x) \
|
|
||||||
$(use_with xcomposite) \
|
|
||||||
$(use_with xinerama) \
|
|
||||||
$(use_with xml) \
|
|
||||||
$(use_with xml xslt) \
|
|
||||||
$2
|
|
||||||
|
|
||||||
emake -j1 depend
|
|
||||||
|
|
||||||
popd >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
if use win64 ; then
|
|
||||||
do_configure 64 --enable-win64
|
|
||||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
|
||||||
else
|
|
||||||
ABI=x86 do_configure 32 --disable-win64
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" all
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" install DESTDIR="${D}"
|
|
||||||
done
|
|
||||||
emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
|
|
||||||
dodoc ANNOUNCE AUTHORS README
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if use mono ; then
|
|
||||||
insinto /usr/share/wine/mono
|
|
||||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 || ! use win64; then
|
|
||||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
fi
|
|
||||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use win64 && ! use win32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
gnome2_icon_savelist
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
@ -1,302 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.21.ebuild,v 1.8 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic gnome2-utils multilib pax-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.8"
|
|
||||||
MV="0.0.8"
|
|
||||||
PULSE_PATCHES="winepulse-patches-1.5.21"
|
|
||||||
WINE_GENTOO="wine-gentoo-2012.11.24"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
|
||||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)
|
|
||||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
|
||||||
[[ ${PV} == "9999" ]] || IUSE="${IUSE} pulseaudio"
|
|
||||||
REQUIRED_USE="elibc_glibc? ( threads )
|
|
||||||
mono? ( || ( win32 !win64 ) )
|
|
||||||
osmesa? ( opengl )" #286560
|
|
||||||
RESTRICT="test" #72375
|
|
||||||
|
|
||||||
MLIB_DEPS="amd64? (
|
|
||||||
gstreamer? ( app-emulation/emul-linux-x86-gstplugins )
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
|
||||||
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
app-emulation/emul-linux-x86-baselibs
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)"
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:2
|
|
||||||
)
|
|
||||||
gnutls? ( net-libs/gnutls:= )
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
osmesa? ( media-libs/mesa[osmesa] )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( dev-libs/openssl:0= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
!win64? ( ${MLIB_DEPS} )
|
|
||||||
win32? ( ${MLIB_DEPS} )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )"
|
|
||||||
[[ ${PV} == "9999" ]] || RDEPEND="${RDEPEND}
|
|
||||||
pulseaudio? (
|
|
||||||
media-sound/pulseaudio
|
|
||||||
sys-auth/rtkit
|
|
||||||
)"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
# These use a non-standard "Wine" category, which is provided by
|
|
||||||
# /etc/xdg/applications-merged/wine.menu
|
|
||||||
QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
|
|
||||||
usr/share/applications/wine-notepad.desktop
|
|
||||||
usr/share/applications/wine-uninstaller.desktop
|
|
||||||
usr/share/applications/wine-winecfg.desktop"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
|
|
||||||
unpack "${PULSE_PATCHES}.tar.bz2"
|
|
||||||
unpack "${WINE_GENTOO}.tar.bz2"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.5.17-osmesa-check.patch #429386
|
|
||||||
[[ ${PV} == "9999" ]] || epatch "../${PULSE_PATCHES}"/*.patch #421365
|
|
||||||
epatch_user #282735
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
eautoreconf
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local builddir="${WORKDIR}/wine$1"
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}" >/dev/null
|
|
||||||
|
|
||||||
local usepulse
|
|
||||||
[[ ${PV} == "9999" ]] || usepulse=$(use_with pulseaudio pulse)
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} \
|
|
||||||
econf \
|
|
||||||
--sysconfdir=/etc/wine \
|
|
||||||
$(use_with alsa) \
|
|
||||||
$(use_with capi) \
|
|
||||||
$(use_with lcms cms) \
|
|
||||||
$(use_with cups) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with udisks dbus) \
|
|
||||||
$(use_with fontconfig) \
|
|
||||||
$(use_with gnutls) \
|
|
||||||
$(use_with gphoto2 gphoto) \
|
|
||||||
$(use_with gsm) \
|
|
||||||
$(use_with gstreamer) \
|
|
||||||
--without-hal \
|
|
||||||
$(use_with jpeg) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_with mp3 mpg123) \
|
|
||||||
$(use_with nls gettext) \
|
|
||||||
$(use_with openal) \
|
|
||||||
$(use_with opencl) \
|
|
||||||
$(use_with opengl) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with osmesa) \
|
|
||||||
$(use_with oss) \
|
|
||||||
$(use_with png) \
|
|
||||||
$(use_with threads pthread) \
|
|
||||||
${usepulse} \
|
|
||||||
$(use_with scanner sane) \
|
|
||||||
$(use_enable test tests) \
|
|
||||||
$(use_with truetype freetype) \
|
|
||||||
$(use_with v4l) \
|
|
||||||
$(use_with X x) \
|
|
||||||
$(use_with xcomposite) \
|
|
||||||
$(use_with xinerama) \
|
|
||||||
$(use_with xml) \
|
|
||||||
$(use_with xml xslt) \
|
|
||||||
$2
|
|
||||||
|
|
||||||
emake -j1 depend
|
|
||||||
|
|
||||||
popd >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
if use win64 ; then
|
|
||||||
do_configure 64 --enable-win64
|
|
||||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
|
||||||
else
|
|
||||||
ABI=x86 do_configure 32 --disable-win64
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" all
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" install DESTDIR="${D}"
|
|
||||||
done
|
|
||||||
emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
|
|
||||||
dodoc ANNOUNCE AUTHORS README
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if use mono ; then
|
|
||||||
insinto /usr/share/wine/mono
|
|
||||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 || ! use win64; then
|
|
||||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
fi
|
|
||||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use win64 && ! use win32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
gnome2_icon_savelist
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
@ -1,302 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.22.ebuild,v 1.7 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic gnome2-utils multilib pax-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.9"
|
|
||||||
MV="0.0.8"
|
|
||||||
PULSE_PATCHES="winepulse-patches-1.5.22"
|
|
||||||
WINE_GENTOO="wine-gentoo-2012.11.24"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
|
||||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)
|
|
||||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
|
||||||
[[ ${PV} == "9999" ]] || IUSE="${IUSE} pulseaudio"
|
|
||||||
REQUIRED_USE="elibc_glibc? ( threads )
|
|
||||||
mono? ( || ( win32 !win64 ) )
|
|
||||||
osmesa? ( opengl )" #286560
|
|
||||||
RESTRICT="test" #72375
|
|
||||||
|
|
||||||
MLIB_DEPS="amd64? (
|
|
||||||
gstreamer? ( app-emulation/emul-linux-x86-gstplugins )
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
|
||||||
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
app-emulation/emul-linux-x86-baselibs
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)"
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:2
|
|
||||||
)
|
|
||||||
gnutls? ( net-libs/gnutls:= )
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
osmesa? ( media-libs/mesa[osmesa] )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( dev-libs/openssl:0= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
!win64? ( ${MLIB_DEPS} )
|
|
||||||
win32? ( ${MLIB_DEPS} )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )"
|
|
||||||
[[ ${PV} == "9999" ]] || RDEPEND="${RDEPEND}
|
|
||||||
pulseaudio? (
|
|
||||||
media-sound/pulseaudio
|
|
||||||
sys-auth/rtkit
|
|
||||||
)"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
# These use a non-standard "Wine" category, which is provided by
|
|
||||||
# /etc/xdg/applications-merged/wine.menu
|
|
||||||
QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
|
|
||||||
usr/share/applications/wine-notepad.desktop
|
|
||||||
usr/share/applications/wine-uninstaller.desktop
|
|
||||||
usr/share/applications/wine-winecfg.desktop"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
|
|
||||||
unpack "${PULSE_PATCHES}.tar.bz2"
|
|
||||||
unpack "${WINE_GENTOO}.tar.bz2"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.5.17-osmesa-check.patch #429386
|
|
||||||
[[ ${PV} == "9999" ]] || epatch "../${PULSE_PATCHES}"/*.patch #421365
|
|
||||||
epatch_user #282735
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
eautoreconf
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local builddir="${WORKDIR}/wine$1"
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}" >/dev/null
|
|
||||||
|
|
||||||
local usepulse
|
|
||||||
[[ ${PV} == "9999" ]] || usepulse=$(use_with pulseaudio pulse)
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} \
|
|
||||||
econf \
|
|
||||||
--sysconfdir=/etc/wine \
|
|
||||||
$(use_with alsa) \
|
|
||||||
$(use_with capi) \
|
|
||||||
$(use_with lcms cms) \
|
|
||||||
$(use_with cups) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with udisks dbus) \
|
|
||||||
$(use_with fontconfig) \
|
|
||||||
$(use_with gnutls) \
|
|
||||||
$(use_with gphoto2 gphoto) \
|
|
||||||
$(use_with gsm) \
|
|
||||||
$(use_with gstreamer) \
|
|
||||||
--without-hal \
|
|
||||||
$(use_with jpeg) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_with mp3 mpg123) \
|
|
||||||
$(use_with nls gettext) \
|
|
||||||
$(use_with openal) \
|
|
||||||
$(use_with opencl) \
|
|
||||||
$(use_with opengl) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with osmesa) \
|
|
||||||
$(use_with oss) \
|
|
||||||
$(use_with png) \
|
|
||||||
$(use_with threads pthread) \
|
|
||||||
${usepulse} \
|
|
||||||
$(use_with scanner sane) \
|
|
||||||
$(use_enable test tests) \
|
|
||||||
$(use_with truetype freetype) \
|
|
||||||
$(use_with v4l) \
|
|
||||||
$(use_with X x) \
|
|
||||||
$(use_with xcomposite) \
|
|
||||||
$(use_with xinerama) \
|
|
||||||
$(use_with xml) \
|
|
||||||
$(use_with xml xslt) \
|
|
||||||
$2
|
|
||||||
|
|
||||||
emake -j1 depend
|
|
||||||
|
|
||||||
popd >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
if use win64 ; then
|
|
||||||
do_configure 64 --enable-win64
|
|
||||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
|
||||||
else
|
|
||||||
ABI=x86 do_configure 32 --disable-win64
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" all
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" install DESTDIR="${D}"
|
|
||||||
done
|
|
||||||
emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
|
|
||||||
dodoc ANNOUNCE AUTHORS README
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if use mono ; then
|
|
||||||
insinto /usr/share/wine/mono
|
|
||||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 || ! use win64; then
|
|
||||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
fi
|
|
||||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use win64 && ! use win32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
gnome2_icon_savelist
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
@ -1,305 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.23-r1.ebuild,v 1.8 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic gnome2-utils multilib pax-utils toolchain-funcs
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.9"
|
|
||||||
MV="0.0.8"
|
|
||||||
PULSE_PATCHES="winepulse-patches-1.5.23"
|
|
||||||
WINE_GENTOO="wine-gentoo-2012.11.24"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
|
||||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)
|
|
||||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
|
||||||
[[ ${PV} == "9999" ]] || IUSE="${IUSE} pulseaudio"
|
|
||||||
REQUIRED_USE="elibc_glibc? ( threads )
|
|
||||||
mono? ( || ( win32 !win64 ) )
|
|
||||||
osmesa? ( opengl )" #286560
|
|
||||||
RESTRICT="test" #72375
|
|
||||||
|
|
||||||
MLIB_DEPS="amd64? (
|
|
||||||
gstreamer? ( app-emulation/emul-linux-x86-gstplugins )
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
|
||||||
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
app-emulation/emul-linux-x86-baselibs
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)"
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:2
|
|
||||||
)
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
osmesa? ( media-libs/mesa[osmesa] )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? (
|
|
||||||
dev-libs/openssl:0=
|
|
||||||
net-libs/gnutls:= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
!win64? ( ${MLIB_DEPS} )
|
|
||||||
win32? ( ${MLIB_DEPS} )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )"
|
|
||||||
[[ ${PV} == "9999" ]] || RDEPEND="${RDEPEND}
|
|
||||||
pulseaudio? (
|
|
||||||
media-sound/pulseaudio
|
|
||||||
sys-auth/rtkit
|
|
||||||
)"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
# These use a non-standard "Wine" category, which is provided by
|
|
||||||
# /etc/xdg/applications-merged/wine.menu
|
|
||||||
QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
|
|
||||||
usr/share/applications/wine-notepad.desktop
|
|
||||||
usr/share/applications/wine-uninstaller.desktop
|
|
||||||
usr/share/applications/wine-winecfg.desktop"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
|
|
||||||
unpack "${PULSE_PATCHES}.tar.bz2"
|
|
||||||
unpack "${WINE_GENTOO}.tar.bz2"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.5.17-osmesa-check.patch #429386
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.5.23-winebuild-CCAS.patch #455308
|
|
||||||
[[ ${PV} == "9999" ]] || epatch "../${PULSE_PATCHES}"/*.patch #421365
|
|
||||||
epatch_user #282735
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
eautoreconf
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local builddir="${WORKDIR}/wine$1"
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}" >/dev/null
|
|
||||||
|
|
||||||
local usepulse
|
|
||||||
[[ ${PV} == "9999" ]] || usepulse=$(use_with pulseaudio pulse)
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} \
|
|
||||||
econf \
|
|
||||||
--sysconfdir=/etc/wine \
|
|
||||||
$(use_with alsa) \
|
|
||||||
$(use_with capi) \
|
|
||||||
$(use_with lcms cms) \
|
|
||||||
$(use_with cups) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with udisks dbus) \
|
|
||||||
$(use_with fontconfig) \
|
|
||||||
$(use_with ssl gnutls) \
|
|
||||||
$(use_with gphoto2 gphoto) \
|
|
||||||
$(use_with gsm) \
|
|
||||||
$(use_with gstreamer) \
|
|
||||||
--without-hal \
|
|
||||||
$(use_with jpeg) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_with mp3 mpg123) \
|
|
||||||
$(use_with nls gettext) \
|
|
||||||
$(use_with openal) \
|
|
||||||
$(use_with opencl) \
|
|
||||||
$(use_with opengl) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with osmesa) \
|
|
||||||
$(use_with oss) \
|
|
||||||
$(use_with png) \
|
|
||||||
$(use_with threads pthread) \
|
|
||||||
${usepulse} \
|
|
||||||
$(use_with scanner sane) \
|
|
||||||
$(use_enable test tests) \
|
|
||||||
$(use_with truetype freetype) \
|
|
||||||
$(use_with v4l) \
|
|
||||||
$(use_with X x) \
|
|
||||||
$(use_with xcomposite) \
|
|
||||||
$(use_with xinerama) \
|
|
||||||
$(use_with xml) \
|
|
||||||
$(use_with xml xslt) \
|
|
||||||
CCAS="$(tc-getAS)" \
|
|
||||||
$2
|
|
||||||
|
|
||||||
emake -j1 depend
|
|
||||||
|
|
||||||
popd >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
if use win64 ; then
|
|
||||||
do_configure 64 --enable-win64
|
|
||||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
|
||||||
else
|
|
||||||
ABI=x86 do_configure 32 --disable-win64
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" all
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" install DESTDIR="${D}"
|
|
||||||
done
|
|
||||||
emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
|
|
||||||
dodoc ANNOUNCE AUTHORS README
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if use mono ; then
|
|
||||||
insinto /usr/share/wine/mono
|
|
||||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 || ! use win64; then
|
|
||||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
fi
|
|
||||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use win64 && ! use win32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
gnome2_icon_savelist
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
@ -1,305 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.24.ebuild,v 1.5 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic gnome2-utils multilib pax-utils toolchain-funcs
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.9"
|
|
||||||
MV="0.0.8"
|
|
||||||
PULSE_PATCHES="winepulse-patches-1.5.23"
|
|
||||||
WINE_GENTOO="wine-gentoo-2012.11.24"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
|
||||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)
|
|
||||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
|
||||||
[[ ${PV} == "9999" ]] || IUSE="${IUSE} pulseaudio"
|
|
||||||
REQUIRED_USE="elibc_glibc? ( threads )
|
|
||||||
mono? ( || ( win32 !win64 ) )
|
|
||||||
osmesa? ( opengl )" #286560
|
|
||||||
RESTRICT="test" #72375
|
|
||||||
|
|
||||||
MLIB_DEPS="amd64? (
|
|
||||||
gstreamer? ( app-emulation/emul-linux-x86-gstplugins )
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
|
||||||
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
app-emulation/emul-linux-x86-baselibs
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)"
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:2
|
|
||||||
)
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
osmesa? ( media-libs/mesa[osmesa] )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? (
|
|
||||||
dev-libs/openssl:0=
|
|
||||||
net-libs/gnutls:= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
!win64? ( ${MLIB_DEPS} )
|
|
||||||
win32? ( ${MLIB_DEPS} )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )"
|
|
||||||
[[ ${PV} == "9999" ]] || RDEPEND="${RDEPEND}
|
|
||||||
pulseaudio? (
|
|
||||||
media-sound/pulseaudio
|
|
||||||
sys-auth/rtkit
|
|
||||||
)"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
# These use a non-standard "Wine" category, which is provided by
|
|
||||||
# /etc/xdg/applications-merged/wine.menu
|
|
||||||
QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
|
|
||||||
usr/share/applications/wine-notepad.desktop
|
|
||||||
usr/share/applications/wine-uninstaller.desktop
|
|
||||||
usr/share/applications/wine-winecfg.desktop"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
|
|
||||||
unpack "${PULSE_PATCHES}.tar.bz2"
|
|
||||||
unpack "${WINE_GENTOO}.tar.bz2"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.5.17-osmesa-check.patch #429386
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.5.23-winebuild-CCAS.patch #455308
|
|
||||||
[[ ${PV} == "9999" ]] || epatch "../${PULSE_PATCHES}"/*.patch #421365
|
|
||||||
epatch_user #282735
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
eautoreconf
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local builddir="${WORKDIR}/wine$1"
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}" >/dev/null
|
|
||||||
|
|
||||||
local usepulse
|
|
||||||
[[ ${PV} == "9999" ]] || usepulse=$(use_with pulseaudio pulse)
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} \
|
|
||||||
econf \
|
|
||||||
--sysconfdir=/etc/wine \
|
|
||||||
$(use_with alsa) \
|
|
||||||
$(use_with capi) \
|
|
||||||
$(use_with lcms cms) \
|
|
||||||
$(use_with cups) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with udisks dbus) \
|
|
||||||
$(use_with fontconfig) \
|
|
||||||
$(use_with ssl gnutls) \
|
|
||||||
$(use_with gphoto2 gphoto) \
|
|
||||||
$(use_with gsm) \
|
|
||||||
$(use_with gstreamer) \
|
|
||||||
--without-hal \
|
|
||||||
$(use_with jpeg) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_with mp3 mpg123) \
|
|
||||||
$(use_with nls gettext) \
|
|
||||||
$(use_with openal) \
|
|
||||||
$(use_with opencl) \
|
|
||||||
$(use_with opengl) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with osmesa) \
|
|
||||||
$(use_with oss) \
|
|
||||||
$(use_with png) \
|
|
||||||
$(use_with threads pthread) \
|
|
||||||
${usepulse} \
|
|
||||||
$(use_with scanner sane) \
|
|
||||||
$(use_enable test tests) \
|
|
||||||
$(use_with truetype freetype) \
|
|
||||||
$(use_with v4l) \
|
|
||||||
$(use_with X x) \
|
|
||||||
$(use_with xcomposite) \
|
|
||||||
$(use_with xinerama) \
|
|
||||||
$(use_with xml) \
|
|
||||||
$(use_with xml xslt) \
|
|
||||||
CCAS="$(tc-getAS)" \
|
|
||||||
$2
|
|
||||||
|
|
||||||
emake -j1 depend
|
|
||||||
|
|
||||||
popd >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
if use win64 ; then
|
|
||||||
do_configure 64 --enable-win64
|
|
||||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
|
||||||
else
|
|
||||||
ABI=x86 do_configure 32 --disable-win64
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" all
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" install DESTDIR="${D}"
|
|
||||||
done
|
|
||||||
emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
|
|
||||||
dodoc ANNOUNCE AUTHORS README
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if use mono ; then
|
|
||||||
insinto /usr/share/wine/mono
|
|
||||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 || ! use win64; then
|
|
||||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
fi
|
|
||||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use win64 && ! use win32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
gnome2_icon_savelist
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
@ -1,327 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.25.ebuild,v 1.8 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
AUTOTOOLS_AUTORECONF=1
|
|
||||||
inherit autotools-multilib eutils flag-o-matic gnome2-utils multilib pax-utils toolchain-funcs virtualx
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.9"
|
|
||||||
MV="0.0.8"
|
|
||||||
PULSE_PATCHES="winepulse-patches-1.5.25"
|
|
||||||
WINE_GENTOO="wine-gentoo-2012.11.24"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
|
|
||||||
abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)
|
|
||||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="+abi_x86_32 +abi_x86_64 alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +X xcomposite xinerama xml"
|
|
||||||
[[ ${PV} == "9999" ]] || IUSE="${IUSE} pulseaudio"
|
|
||||||
REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
|
|
||||||
test? ( abi_x86_32 )
|
|
||||||
elibc_glibc? ( threads )
|
|
||||||
mono? ( abi_x86_32 )
|
|
||||||
osmesa? ( opengl )" #286560
|
|
||||||
|
|
||||||
# FIXME: the test suite is unsuitable for us; many tests require net access
|
|
||||||
# or fail due to Xvfb's opengl limitations.
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:2
|
|
||||||
)
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
osmesa? ( media-libs/mesa[osmesa] )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? (
|
|
||||||
dev-libs/openssl:0=
|
|
||||||
net-libs/gnutls:= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )
|
|
||||||
amd64? (
|
|
||||||
abi_x86_32? (
|
|
||||||
gstreamer? (
|
|
||||||
app-emulation/emul-linux-x86-gstplugins
|
|
||||||
app-emulation/emul-linux-x86-medialibs[development]
|
|
||||||
)
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1[development] )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1[development]
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1[development]
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs[development] )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db[development] )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl[development] )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl[development] )
|
|
||||||
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028[development] )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs[development] )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs[development] )
|
|
||||||
>=app-emulation/emul-linux-x86-baselibs-20130224[development]
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)
|
|
||||||
)"
|
|
||||||
[[ ${PV} == "9999" ]] || RDEPEND="${RDEPEND}
|
|
||||||
pulseaudio? (
|
|
||||||
media-sound/pulseaudio
|
|
||||||
sys-auth/rtkit
|
|
||||||
)"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
# These use a non-standard "Wine" category, which is provided by
|
|
||||||
# /etc/xdg/applications-merged/wine.menu
|
|
||||||
QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
|
|
||||||
usr/share/applications/wine-notepad.desktop
|
|
||||||
usr/share/applications/wine-uninstaller.desktop
|
|
||||||
usr/share/applications/wine-winecfg.desktop"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
|
|
||||||
unpack "${PULSE_PATCHES}.tar.bz2"
|
|
||||||
unpack "${WINE_GENTOO}.tar.bz2"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
local PATCHES=(
|
|
||||||
"${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
"${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
"${FILESDIR}"/${PN}-1.5.17-osmesa-check.patch #429386
|
|
||||||
"${FILESDIR}"/${PN}-1.5.23-winebuild-CCAS.patch #455308
|
|
||||||
)
|
|
||||||
[[ ${PV} == "9999" ]] || PATCHES+=(
|
|
||||||
"../${PULSE_PATCHES}"/*.patch #421365
|
|
||||||
)
|
|
||||||
|
|
||||||
autotools-utils_src_prepare
|
|
||||||
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local myeconfargs=(
|
|
||||||
"${myeconfargs[@]}"
|
|
||||||
CCAS="$(tc-getAS)"
|
|
||||||
)
|
|
||||||
|
|
||||||
if use amd64; then
|
|
||||||
if [[ ${ABI} == amd64 ]]; then
|
|
||||||
myeconfargs+=( --enable-win64 )
|
|
||||||
else
|
|
||||||
myeconfargs+=( --disable-win64 )
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Note: using --with-wine64 results in problems with multilib.eclass
|
|
||||||
# CC/LD hackery. We're using separate tools instead.
|
|
||||||
fi
|
|
||||||
|
|
||||||
autotools-utils_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
local myeconfargs=( # common
|
|
||||||
--sysconfdir=/etc/wine
|
|
||||||
$(use_with alsa)
|
|
||||||
$(use_with capi)
|
|
||||||
$(use_with lcms cms)
|
|
||||||
$(use_with cups)
|
|
||||||
$(use_with ncurses curses)
|
|
||||||
$(use_with udisks dbus)
|
|
||||||
$(use_with fontconfig)
|
|
||||||
$(use_with ssl gnutls)
|
|
||||||
$(use_with gphoto2 gphoto)
|
|
||||||
$(use_with gsm)
|
|
||||||
$(use_with gstreamer)
|
|
||||||
--without-hal
|
|
||||||
$(use_with jpeg)
|
|
||||||
$(use_with ldap)
|
|
||||||
$(use_with mp3 mpg123)
|
|
||||||
$(use_with nls gettext)
|
|
||||||
$(use_with openal)
|
|
||||||
$(use_with opencl)
|
|
||||||
$(use_with opengl)
|
|
||||||
$(use_with ssl openssl)
|
|
||||||
$(use_with osmesa)
|
|
||||||
$(use_with oss)
|
|
||||||
$(use_with png)
|
|
||||||
$(use_with threads pthread)
|
|
||||||
$(use_with scanner sane)
|
|
||||||
$(use_enable test tests)
|
|
||||||
$(use_with truetype freetype)
|
|
||||||
$(use_with v4l)
|
|
||||||
$(use_with X x)
|
|
||||||
$(use_with xcomposite)
|
|
||||||
$(use_with xinerama)
|
|
||||||
$(use_with xml)
|
|
||||||
$(use_with xml xslt)
|
|
||||||
)
|
|
||||||
|
|
||||||
[[ ${PV} == "9999" ]] || myeconfargs+=( $(use_with pulseaudio pulse) )
|
|
||||||
|
|
||||||
# Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
|
|
||||||
use amd64 && use abi_x86_32 && tc-export PKG_CONFIG
|
|
||||||
|
|
||||||
multilib_parallel_foreach_abi do_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
autotools-multilib_src_compile depend
|
|
||||||
autotools-multilib_src_compile all
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
if [[ $(id -u) == 0 ]]; then
|
|
||||||
ewarn "Skipping tests since they cannot be run under the root user."
|
|
||||||
ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
# FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
|
|
||||||
multilib_toolchain_setup x86
|
|
||||||
local BUILD_DIR="${S}-${ABI}"
|
|
||||||
cd "${BUILD_DIR}" || die
|
|
||||||
WINEPREFIX="${T}/.wine-${ABI}" Xemake test
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local DOCS=( ANNOUNCE AUTHORS README )
|
|
||||||
autotools-multilib_src_install
|
|
||||||
|
|
||||||
emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if use mono ; then
|
|
||||||
insinto /usr/share/wine/mono
|
|
||||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use abi_x86_64 && ! use abi_x86_32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
gnome2_icon_savelist
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
@ -1,327 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.26.ebuild,v 1.6 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
AUTOTOOLS_AUTORECONF=1
|
|
||||||
inherit autotools-multilib eutils flag-o-matic gnome2-utils multilib pax-utils toolchain-funcs virtualx
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.9"
|
|
||||||
MV="0.0.8"
|
|
||||||
PULSE_PATCHES="winepulse-patches-1.5.25"
|
|
||||||
WINE_GENTOO="wine-gentoo-2012.11.24"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
|
|
||||||
abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)
|
|
||||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="+abi_x86_32 +abi_x86_64 alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +X xcomposite xinerama xml"
|
|
||||||
[[ ${PV} == "9999" ]] || IUSE="${IUSE} pulseaudio"
|
|
||||||
REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
|
|
||||||
test? ( abi_x86_32 )
|
|
||||||
elibc_glibc? ( threads )
|
|
||||||
mono? ( abi_x86_32 )
|
|
||||||
osmesa? ( opengl )" #286560
|
|
||||||
|
|
||||||
# FIXME: the test suite is unsuitable for us; many tests require net access
|
|
||||||
# or fail due to Xvfb's opengl limitations.
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:2
|
|
||||||
)
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
osmesa? ( media-libs/mesa[osmesa] )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? (
|
|
||||||
dev-libs/openssl:0=
|
|
||||||
net-libs/gnutls:= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )
|
|
||||||
amd64? (
|
|
||||||
abi_x86_32? (
|
|
||||||
gstreamer? (
|
|
||||||
app-emulation/emul-linux-x86-gstplugins
|
|
||||||
app-emulation/emul-linux-x86-medialibs[development]
|
|
||||||
)
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1[development] )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1[development]
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1[development]
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs[development] )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db[development] )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl[development] )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl[development] )
|
|
||||||
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028[development] )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs[development] )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs[development] )
|
|
||||||
>=app-emulation/emul-linux-x86-baselibs-20130224[development]
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)
|
|
||||||
)"
|
|
||||||
[[ ${PV} == "9999" ]] || RDEPEND="${RDEPEND}
|
|
||||||
pulseaudio? (
|
|
||||||
media-sound/pulseaudio
|
|
||||||
sys-auth/rtkit
|
|
||||||
)"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
# These use a non-standard "Wine" category, which is provided by
|
|
||||||
# /etc/xdg/applications-merged/wine.menu
|
|
||||||
QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
|
|
||||||
usr/share/applications/wine-notepad.desktop
|
|
||||||
usr/share/applications/wine-uninstaller.desktop
|
|
||||||
usr/share/applications/wine-winecfg.desktop"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
|
|
||||||
unpack "${PULSE_PATCHES}.tar.bz2"
|
|
||||||
unpack "${WINE_GENTOO}.tar.bz2"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
local PATCHES=(
|
|
||||||
"${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
|
|
||||||
"${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
"${FILESDIR}"/${PN}-1.5.17-osmesa-check.patch #429386
|
|
||||||
"${FILESDIR}"/${PN}-1.5.23-winebuild-CCAS.patch #455308
|
|
||||||
)
|
|
||||||
[[ ${PV} == "9999" ]] || PATCHES+=(
|
|
||||||
"../${PULSE_PATCHES}"/*.patch #421365
|
|
||||||
)
|
|
||||||
|
|
||||||
autotools-utils_src_prepare
|
|
||||||
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local myeconfargs=(
|
|
||||||
"${myeconfargs[@]}"
|
|
||||||
CCAS="$(tc-getAS)"
|
|
||||||
)
|
|
||||||
|
|
||||||
if use amd64; then
|
|
||||||
if [[ ${ABI} == amd64 ]]; then
|
|
||||||
myeconfargs+=( --enable-win64 )
|
|
||||||
else
|
|
||||||
myeconfargs+=( --disable-win64 )
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Note: using --with-wine64 results in problems with multilib.eclass
|
|
||||||
# CC/LD hackery. We're using separate tools instead.
|
|
||||||
fi
|
|
||||||
|
|
||||||
autotools-utils_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
local myeconfargs=( # common
|
|
||||||
--sysconfdir=/etc/wine
|
|
||||||
$(use_with alsa)
|
|
||||||
$(use_with capi)
|
|
||||||
$(use_with lcms cms)
|
|
||||||
$(use_with cups)
|
|
||||||
$(use_with ncurses curses)
|
|
||||||
$(use_with udisks dbus)
|
|
||||||
$(use_with fontconfig)
|
|
||||||
$(use_with ssl gnutls)
|
|
||||||
$(use_with gphoto2 gphoto)
|
|
||||||
$(use_with gsm)
|
|
||||||
$(use_with gstreamer)
|
|
||||||
--without-hal
|
|
||||||
$(use_with jpeg)
|
|
||||||
$(use_with ldap)
|
|
||||||
$(use_with mp3 mpg123)
|
|
||||||
$(use_with nls gettext)
|
|
||||||
$(use_with openal)
|
|
||||||
$(use_with opencl)
|
|
||||||
$(use_with opengl)
|
|
||||||
$(use_with ssl openssl)
|
|
||||||
$(use_with osmesa)
|
|
||||||
$(use_with oss)
|
|
||||||
$(use_with png)
|
|
||||||
$(use_with threads pthread)
|
|
||||||
$(use_with scanner sane)
|
|
||||||
$(use_enable test tests)
|
|
||||||
$(use_with truetype freetype)
|
|
||||||
$(use_with v4l)
|
|
||||||
$(use_with X x)
|
|
||||||
$(use_with xcomposite)
|
|
||||||
$(use_with xinerama)
|
|
||||||
$(use_with xml)
|
|
||||||
$(use_with xml xslt)
|
|
||||||
)
|
|
||||||
|
|
||||||
[[ ${PV} == "9999" ]] || myeconfargs+=( $(use_with pulseaudio pulse) )
|
|
||||||
|
|
||||||
# Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
|
|
||||||
use amd64 && use abi_x86_32 && tc-export PKG_CONFIG
|
|
||||||
|
|
||||||
multilib_parallel_foreach_abi do_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
autotools-multilib_src_compile depend
|
|
||||||
autotools-multilib_src_compile all
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
if [[ $(id -u) == 0 ]]; then
|
|
||||||
ewarn "Skipping tests since they cannot be run under the root user."
|
|
||||||
ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
# FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
|
|
||||||
multilib_toolchain_setup x86
|
|
||||||
local BUILD_DIR="${S}-${ABI}"
|
|
||||||
cd "${BUILD_DIR}" || die
|
|
||||||
WINEPREFIX="${T}/.wine-${ABI}" Xemake test
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local DOCS=( ANNOUNCE AUTHORS README )
|
|
||||||
autotools-multilib_src_install
|
|
||||||
|
|
||||||
emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if use mono ; then
|
|
||||||
insinto /usr/share/wine/mono
|
|
||||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use abi_x86_64 && ! use abi_x86_32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
gnome2_icon_savelist
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
@ -1,327 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.27.ebuild,v 1.6 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
AUTOTOOLS_AUTORECONF=1
|
|
||||||
inherit autotools-multilib eutils flag-o-matic gnome2-utils multilib pax-utils toolchain-funcs virtualx
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.9"
|
|
||||||
MV="0.0.8"
|
|
||||||
PULSE_PATCHES="winepulse-patches-1.5.25"
|
|
||||||
WINE_GENTOO="wine-gentoo-2012.11.24"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
|
|
||||||
abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)
|
|
||||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="+abi_x86_32 +abi_x86_64 alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +X xcomposite xinerama xml"
|
|
||||||
[[ ${PV} == "9999" ]] || IUSE="${IUSE} pulseaudio"
|
|
||||||
REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
|
|
||||||
test? ( abi_x86_32 )
|
|
||||||
elibc_glibc? ( threads )
|
|
||||||
mono? ( abi_x86_32 )
|
|
||||||
osmesa? ( opengl )" #286560
|
|
||||||
|
|
||||||
# FIXME: the test suite is unsuitable for us; many tests require net access
|
|
||||||
# or fail due to Xvfb's opengl limitations.
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:2
|
|
||||||
)
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
osmesa? ( media-libs/mesa[osmesa] )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? (
|
|
||||||
dev-libs/openssl:0=
|
|
||||||
net-libs/gnutls:= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )
|
|
||||||
amd64? (
|
|
||||||
abi_x86_32? (
|
|
||||||
gstreamer? (
|
|
||||||
app-emulation/emul-linux-x86-gstplugins
|
|
||||||
app-emulation/emul-linux-x86-medialibs[development]
|
|
||||||
)
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1[development] )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1[development]
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1[development]
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs[development] )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db[development] )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl[development] )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl[development] )
|
|
||||||
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028[development] )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs[development] )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs[development] )
|
|
||||||
>=app-emulation/emul-linux-x86-baselibs-20130224[development]
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)
|
|
||||||
)"
|
|
||||||
[[ ${PV} == "9999" ]] || RDEPEND="${RDEPEND}
|
|
||||||
pulseaudio? (
|
|
||||||
media-sound/pulseaudio
|
|
||||||
sys-auth/rtkit
|
|
||||||
)"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
# These use a non-standard "Wine" category, which is provided by
|
|
||||||
# /etc/xdg/applications-merged/wine.menu
|
|
||||||
QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
|
|
||||||
usr/share/applications/wine-notepad.desktop
|
|
||||||
usr/share/applications/wine-uninstaller.desktop
|
|
||||||
usr/share/applications/wine-winecfg.desktop"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
|
|
||||||
unpack "${PULSE_PATCHES}.tar.bz2"
|
|
||||||
unpack "${WINE_GENTOO}.tar.bz2"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
local PATCHES=(
|
|
||||||
"${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
|
|
||||||
"${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
"${FILESDIR}"/${PN}-1.5.17-osmesa-check.patch #429386
|
|
||||||
"${FILESDIR}"/${PN}-1.5.23-winebuild-CCAS.patch #455308
|
|
||||||
)
|
|
||||||
[[ ${PV} == "9999" ]] || PATCHES+=(
|
|
||||||
"../${PULSE_PATCHES}"/*.patch #421365
|
|
||||||
)
|
|
||||||
|
|
||||||
autotools-utils_src_prepare
|
|
||||||
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local myeconfargs=(
|
|
||||||
"${myeconfargs[@]}"
|
|
||||||
CCAS="$(tc-getAS)"
|
|
||||||
)
|
|
||||||
|
|
||||||
if use amd64; then
|
|
||||||
if [[ ${ABI} == amd64 ]]; then
|
|
||||||
myeconfargs+=( --enable-win64 )
|
|
||||||
else
|
|
||||||
myeconfargs+=( --disable-win64 )
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Note: using --with-wine64 results in problems with multilib.eclass
|
|
||||||
# CC/LD hackery. We're using separate tools instead.
|
|
||||||
fi
|
|
||||||
|
|
||||||
autotools-utils_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
local myeconfargs=( # common
|
|
||||||
--sysconfdir=/etc/wine
|
|
||||||
$(use_with alsa)
|
|
||||||
$(use_with capi)
|
|
||||||
$(use_with lcms cms)
|
|
||||||
$(use_with cups)
|
|
||||||
$(use_with ncurses curses)
|
|
||||||
$(use_with udisks dbus)
|
|
||||||
$(use_with fontconfig)
|
|
||||||
$(use_with ssl gnutls)
|
|
||||||
$(use_with gphoto2 gphoto)
|
|
||||||
$(use_with gsm)
|
|
||||||
$(use_with gstreamer)
|
|
||||||
--without-hal
|
|
||||||
$(use_with jpeg)
|
|
||||||
$(use_with ldap)
|
|
||||||
$(use_with mp3 mpg123)
|
|
||||||
$(use_with nls gettext)
|
|
||||||
$(use_with openal)
|
|
||||||
$(use_with opencl)
|
|
||||||
$(use_with opengl)
|
|
||||||
$(use_with ssl openssl)
|
|
||||||
$(use_with osmesa)
|
|
||||||
$(use_with oss)
|
|
||||||
$(use_with png)
|
|
||||||
$(use_with threads pthread)
|
|
||||||
$(use_with scanner sane)
|
|
||||||
$(use_enable test tests)
|
|
||||||
$(use_with truetype freetype)
|
|
||||||
$(use_with v4l)
|
|
||||||
$(use_with X x)
|
|
||||||
$(use_with xcomposite)
|
|
||||||
$(use_with xinerama)
|
|
||||||
$(use_with xml)
|
|
||||||
$(use_with xml xslt)
|
|
||||||
)
|
|
||||||
|
|
||||||
[[ ${PV} == "9999" ]] || myeconfargs+=( $(use_with pulseaudio pulse) )
|
|
||||||
|
|
||||||
# Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
|
|
||||||
use amd64 && use abi_x86_32 && tc-export PKG_CONFIG
|
|
||||||
|
|
||||||
multilib_parallel_foreach_abi do_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
autotools-multilib_src_compile depend
|
|
||||||
autotools-multilib_src_compile all
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
if [[ $(id -u) == 0 ]]; then
|
|
||||||
ewarn "Skipping tests since they cannot be run under the root user."
|
|
||||||
ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
# FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
|
|
||||||
multilib_toolchain_setup x86
|
|
||||||
local BUILD_DIR="${S}-${ABI}"
|
|
||||||
cd "${BUILD_DIR}" || die
|
|
||||||
WINEPREFIX="${T}/.wine-${ABI}" Xemake test
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local DOCS=( ANNOUNCE AUTHORS README )
|
|
||||||
autotools-multilib_src_install
|
|
||||||
|
|
||||||
emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if use mono ; then
|
|
||||||
insinto /usr/share/wine/mono
|
|
||||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use abi_x86_64 && ! use abi_x86_32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
gnome2_icon_savelist
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
@ -1,324 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.28.ebuild,v 1.6 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
AUTOTOOLS_AUTORECONF=1
|
|
||||||
inherit autotools-multilib eutils flag-o-matic gnome2-utils multilib pax-utils toolchain-funcs virtualx
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.9"
|
|
||||||
MV="0.0.8"
|
|
||||||
PULSE_PATCHES="winepulse-patches-1.5.25"
|
|
||||||
WINE_GENTOO="wine-gentoo-2012.11.24"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
|
|
||||||
abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)
|
|
||||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="+abi_x86_32 +abi_x86_64 alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +X xcomposite xinerama xml"
|
|
||||||
[[ ${PV} == "9999" ]] || IUSE="${IUSE} pulseaudio"
|
|
||||||
REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
|
|
||||||
test? ( abi_x86_32 )
|
|
||||||
elibc_glibc? ( threads )
|
|
||||||
mono? ( abi_x86_32 )
|
|
||||||
osmesa? ( opengl )" #286560
|
|
||||||
|
|
||||||
# FIXME: the test suite is unsuitable for us; many tests require net access
|
|
||||||
# or fail due to Xvfb's opengl limitations.
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:2
|
|
||||||
)
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
osmesa? ( media-libs/mesa[osmesa] )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( net-libs/gnutls:= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )
|
|
||||||
amd64? (
|
|
||||||
abi_x86_32? (
|
|
||||||
gstreamer? (
|
|
||||||
app-emulation/emul-linux-x86-gstplugins
|
|
||||||
app-emulation/emul-linux-x86-medialibs[development]
|
|
||||||
)
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1[development] )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1[development]
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1[development]
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs[development] )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db[development] )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl[development] )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl[development] )
|
|
||||||
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028[development] )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs[development] )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs[development] )
|
|
||||||
>=app-emulation/emul-linux-x86-baselibs-20130224[development]
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)
|
|
||||||
)"
|
|
||||||
[[ ${PV} == "9999" ]] || RDEPEND="${RDEPEND}
|
|
||||||
pulseaudio? (
|
|
||||||
media-sound/pulseaudio
|
|
||||||
sys-auth/rtkit
|
|
||||||
)"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
# These use a non-standard "Wine" category, which is provided by
|
|
||||||
# /etc/xdg/applications-merged/wine.menu
|
|
||||||
QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
|
|
||||||
usr/share/applications/wine-notepad.desktop
|
|
||||||
usr/share/applications/wine-uninstaller.desktop
|
|
||||||
usr/share/applications/wine-winecfg.desktop"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
|
|
||||||
unpack "${PULSE_PATCHES}.tar.bz2"
|
|
||||||
unpack "${WINE_GENTOO}.tar.bz2"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
local PATCHES=(
|
|
||||||
"${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
|
|
||||||
"${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
"${FILESDIR}"/${PN}-1.5.17-osmesa-check.patch #429386
|
|
||||||
"${FILESDIR}"/${PN}-1.5.23-winebuild-CCAS.patch #455308
|
|
||||||
)
|
|
||||||
[[ ${PV} == "9999" ]] || PATCHES+=(
|
|
||||||
"../${PULSE_PATCHES}"/*.patch #421365
|
|
||||||
)
|
|
||||||
|
|
||||||
autotools-utils_src_prepare
|
|
||||||
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local myeconfargs=(
|
|
||||||
"${myeconfargs[@]}"
|
|
||||||
CCAS="$(tc-getAS)"
|
|
||||||
)
|
|
||||||
|
|
||||||
if use amd64; then
|
|
||||||
if [[ ${ABI} == amd64 ]]; then
|
|
||||||
myeconfargs+=( --enable-win64 )
|
|
||||||
else
|
|
||||||
myeconfargs+=( --disable-win64 )
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Note: using --with-wine64 results in problems with multilib.eclass
|
|
||||||
# CC/LD hackery. We're using separate tools instead.
|
|
||||||
fi
|
|
||||||
|
|
||||||
autotools-utils_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
local myeconfargs=( # common
|
|
||||||
--sysconfdir=/etc/wine
|
|
||||||
$(use_with alsa)
|
|
||||||
$(use_with capi)
|
|
||||||
$(use_with lcms cms)
|
|
||||||
$(use_with cups)
|
|
||||||
$(use_with ncurses curses)
|
|
||||||
$(use_with udisks dbus)
|
|
||||||
$(use_with fontconfig)
|
|
||||||
$(use_with ssl gnutls)
|
|
||||||
$(use_with gphoto2 gphoto)
|
|
||||||
$(use_with gsm)
|
|
||||||
$(use_with gstreamer)
|
|
||||||
--without-hal
|
|
||||||
$(use_with jpeg)
|
|
||||||
$(use_with ldap)
|
|
||||||
$(use_with mp3 mpg123)
|
|
||||||
$(use_with nls gettext)
|
|
||||||
$(use_with openal)
|
|
||||||
$(use_with opencl)
|
|
||||||
$(use_with opengl)
|
|
||||||
$(use_with osmesa)
|
|
||||||
$(use_with oss)
|
|
||||||
$(use_with png)
|
|
||||||
$(use_with threads pthread)
|
|
||||||
$(use_with scanner sane)
|
|
||||||
$(use_enable test tests)
|
|
||||||
$(use_with truetype freetype)
|
|
||||||
$(use_with v4l)
|
|
||||||
$(use_with X x)
|
|
||||||
$(use_with xcomposite)
|
|
||||||
$(use_with xinerama)
|
|
||||||
$(use_with xml)
|
|
||||||
$(use_with xml xslt)
|
|
||||||
)
|
|
||||||
|
|
||||||
[[ ${PV} == "9999" ]] || myeconfargs+=( $(use_with pulseaudio pulse) )
|
|
||||||
|
|
||||||
# Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
|
|
||||||
use amd64 && use abi_x86_32 && tc-export PKG_CONFIG
|
|
||||||
|
|
||||||
multilib_parallel_foreach_abi do_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
autotools-multilib_src_compile depend
|
|
||||||
autotools-multilib_src_compile all
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
if [[ $(id -u) == 0 ]]; then
|
|
||||||
ewarn "Skipping tests since they cannot be run under the root user."
|
|
||||||
ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
# FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
|
|
||||||
multilib_toolchain_setup x86
|
|
||||||
local BUILD_DIR="${S}-${ABI}"
|
|
||||||
cd "${BUILD_DIR}" || die
|
|
||||||
WINEPREFIX="${T}/.wine-${ABI}" Xemake test
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local DOCS=( ANNOUNCE AUTHORS README )
|
|
||||||
autotools-multilib_src_install
|
|
||||||
|
|
||||||
emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if use mono ; then
|
|
||||||
insinto /usr/share/wine/mono
|
|
||||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use abi_x86_64 && ! use abi_x86_32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
gnome2_icon_savelist
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
@ -1,324 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.29.ebuild,v 1.6 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
AUTOTOOLS_AUTORECONF=1
|
|
||||||
inherit autotools-multilib eutils flag-o-matic gnome2-utils multilib pax-utils toolchain-funcs virtualx
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.9"
|
|
||||||
MV="0.0.8"
|
|
||||||
PULSE_PATCHES="winepulse-patches-1.5.25"
|
|
||||||
WINE_GENTOO="wine-gentoo-2012.11.24"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
|
|
||||||
abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)
|
|
||||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="+abi_x86_32 +abi_x86_64 alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +X xcomposite xinerama xml"
|
|
||||||
[[ ${PV} == "9999" ]] || IUSE="${IUSE} pulseaudio"
|
|
||||||
REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
|
|
||||||
test? ( abi_x86_32 )
|
|
||||||
elibc_glibc? ( threads )
|
|
||||||
mono? ( abi_x86_32 )
|
|
||||||
osmesa? ( opengl )" #286560
|
|
||||||
|
|
||||||
# FIXME: the test suite is unsuitable for us; many tests require net access
|
|
||||||
# or fail due to Xvfb's opengl limitations.
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:2
|
|
||||||
)
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
osmesa? ( media-libs/mesa[osmesa] )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( net-libs/gnutls:= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )
|
|
||||||
amd64? (
|
|
||||||
abi_x86_32? (
|
|
||||||
gstreamer? (
|
|
||||||
app-emulation/emul-linux-x86-gstplugins
|
|
||||||
app-emulation/emul-linux-x86-medialibs[development]
|
|
||||||
)
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1[development] )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1[development]
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1[development]
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs[development] )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db[development] )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl[development] )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl[development] )
|
|
||||||
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028[development] )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs[development] )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs[development] )
|
|
||||||
>=app-emulation/emul-linux-x86-baselibs-20130224[development]
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)
|
|
||||||
)"
|
|
||||||
[[ ${PV} == "9999" ]] || RDEPEND="${RDEPEND}
|
|
||||||
pulseaudio? (
|
|
||||||
media-sound/pulseaudio
|
|
||||||
sys-auth/rtkit
|
|
||||||
)"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
# These use a non-standard "Wine" category, which is provided by
|
|
||||||
# /etc/xdg/applications-merged/wine.menu
|
|
||||||
QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
|
|
||||||
usr/share/applications/wine-notepad.desktop
|
|
||||||
usr/share/applications/wine-uninstaller.desktop
|
|
||||||
usr/share/applications/wine-winecfg.desktop"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
|
|
||||||
unpack "${PULSE_PATCHES}.tar.bz2"
|
|
||||||
unpack "${WINE_GENTOO}.tar.bz2"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
local PATCHES=(
|
|
||||||
"${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
|
|
||||||
"${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
"${FILESDIR}"/${PN}-1.5.17-osmesa-check.patch #429386
|
|
||||||
"${FILESDIR}"/${PN}-1.5.23-winebuild-CCAS.patch #455308
|
|
||||||
)
|
|
||||||
[[ ${PV} == "9999" ]] || PATCHES+=(
|
|
||||||
"../${PULSE_PATCHES}"/*.patch #421365
|
|
||||||
)
|
|
||||||
|
|
||||||
autotools-utils_src_prepare
|
|
||||||
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local myeconfargs=(
|
|
||||||
"${myeconfargs[@]}"
|
|
||||||
CCAS="$(tc-getAS)"
|
|
||||||
)
|
|
||||||
|
|
||||||
if use amd64; then
|
|
||||||
if [[ ${ABI} == amd64 ]]; then
|
|
||||||
myeconfargs+=( --enable-win64 )
|
|
||||||
else
|
|
||||||
myeconfargs+=( --disable-win64 )
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Note: using --with-wine64 results in problems with multilib.eclass
|
|
||||||
# CC/LD hackery. We're using separate tools instead.
|
|
||||||
fi
|
|
||||||
|
|
||||||
autotools-utils_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
local myeconfargs=( # common
|
|
||||||
--sysconfdir=/etc/wine
|
|
||||||
$(use_with alsa)
|
|
||||||
$(use_with capi)
|
|
||||||
$(use_with lcms cms)
|
|
||||||
$(use_with cups)
|
|
||||||
$(use_with ncurses curses)
|
|
||||||
$(use_with udisks dbus)
|
|
||||||
$(use_with fontconfig)
|
|
||||||
$(use_with ssl gnutls)
|
|
||||||
$(use_with gphoto2 gphoto)
|
|
||||||
$(use_with gsm)
|
|
||||||
$(use_with gstreamer)
|
|
||||||
--without-hal
|
|
||||||
$(use_with jpeg)
|
|
||||||
$(use_with ldap)
|
|
||||||
$(use_with mp3 mpg123)
|
|
||||||
$(use_with nls gettext)
|
|
||||||
$(use_with openal)
|
|
||||||
$(use_with opencl)
|
|
||||||
$(use_with opengl)
|
|
||||||
$(use_with osmesa)
|
|
||||||
$(use_with oss)
|
|
||||||
$(use_with png)
|
|
||||||
$(use_with threads pthread)
|
|
||||||
$(use_with scanner sane)
|
|
||||||
$(use_enable test tests)
|
|
||||||
$(use_with truetype freetype)
|
|
||||||
$(use_with v4l)
|
|
||||||
$(use_with X x)
|
|
||||||
$(use_with xcomposite)
|
|
||||||
$(use_with xinerama)
|
|
||||||
$(use_with xml)
|
|
||||||
$(use_with xml xslt)
|
|
||||||
)
|
|
||||||
|
|
||||||
[[ ${PV} == "9999" ]] || myeconfargs+=( $(use_with pulseaudio pulse) )
|
|
||||||
|
|
||||||
# Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
|
|
||||||
use amd64 && use abi_x86_32 && tc-export PKG_CONFIG
|
|
||||||
|
|
||||||
multilib_parallel_foreach_abi do_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
autotools-multilib_src_compile depend
|
|
||||||
autotools-multilib_src_compile all
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
if [[ $(id -u) == 0 ]]; then
|
|
||||||
ewarn "Skipping tests since they cannot be run under the root user."
|
|
||||||
ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
# FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
|
|
||||||
multilib_toolchain_setup x86
|
|
||||||
local BUILD_DIR="${S}-${ABI}"
|
|
||||||
cd "${BUILD_DIR}" || die
|
|
||||||
WINEPREFIX="${T}/.wine-${ABI}" Xemake test
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local DOCS=( ANNOUNCE AUTHORS README )
|
|
||||||
autotools-multilib_src_install
|
|
||||||
|
|
||||||
emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if use mono ; then
|
|
||||||
insinto /usr/share/wine/mono
|
|
||||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use abi_x86_64 && ! use abi_x86_32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
gnome2_icon_savelist
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
@ -1,251 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.3.ebuild,v 1.15 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic multilib pax-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.5"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
|
||||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap mp3 ncurses nls odbc openal opencl +opengl +oss +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
|
||||||
REQUIRED_USE="elibc_glibc? ( threads )" #286560
|
|
||||||
RESTRICT="test" #72375
|
|
||||||
|
|
||||||
MLIB_DEPS="amd64? (
|
|
||||||
gstreamer? ( app-emulation/emul-linux-x86-gstplugins )
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
app-emulation/emul-linux-x86-baselibs
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)"
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:0
|
|
||||||
)
|
|
||||||
gnutls? ( net-libs/gnutls:= )
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( dev-libs/openssl:0= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
!win64? ( ${MLIB_DEPS} )
|
|
||||||
win32? ( ${MLIB_DEPS} )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
epatch_user #282735
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
eautoreconf
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local builddir="${WORKDIR}/wine$1"
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}" >/dev/null
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} \
|
|
||||||
econf \
|
|
||||||
--sysconfdir=/etc/wine \
|
|
||||||
$(use_with alsa) \
|
|
||||||
$(use_with capi) \
|
|
||||||
$(use_with lcms cms) \
|
|
||||||
$(use_with cups) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with udisks dbus) \
|
|
||||||
$(use_with fontconfig) \
|
|
||||||
$(use_with gnutls) \
|
|
||||||
$(use_with gphoto2 gphoto) \
|
|
||||||
$(use_with gsm) \
|
|
||||||
$(use_with gstreamer) \
|
|
||||||
--without-hal \
|
|
||||||
$(use_with jpeg) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_with mp3 mpg123) \
|
|
||||||
$(use_with nls gettext) \
|
|
||||||
$(use_with openal) \
|
|
||||||
$(use_with opencl) \
|
|
||||||
$(use_with opengl) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with oss) \
|
|
||||||
$(use_with png) \
|
|
||||||
$(use_with threads pthread) \
|
|
||||||
$(use_with scanner sane) \
|
|
||||||
$(use_enable test tests) \
|
|
||||||
$(use_with truetype freetype) \
|
|
||||||
$(use_with v4l) \
|
|
||||||
$(use_with X x) \
|
|
||||||
$(use_with xcomposite) \
|
|
||||||
$(use_with xinerama) \
|
|
||||||
$(use_with xml) \
|
|
||||||
$(use_with xml xslt) \
|
|
||||||
$2
|
|
||||||
|
|
||||||
emake -j1 depend
|
|
||||||
|
|
||||||
popd >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
if use win64 ; then
|
|
||||||
do_configure 64 --enable-win64
|
|
||||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
|
||||||
else
|
|
||||||
ABI=x86 do_configure 32 --disable-win64
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" all
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" install DESTDIR="${D}"
|
|
||||||
done
|
|
||||||
dodoc ANNOUNCE AUTHORS README
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 || ! use win64; then
|
|
||||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
fi
|
|
||||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use win64 && ! use win32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,338 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.30.ebuild,v 1.7 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
AUTOTOOLS_AUTORECONF=1
|
|
||||||
PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
|
|
||||||
PLOCALE_BACKUP="en"
|
|
||||||
|
|
||||||
inherit autotools-multilib eutils flag-o-matic gnome2-utils l10n multilib pax-utils toolchain-funcs virtualx
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.9"
|
|
||||||
MV="0.0.8"
|
|
||||||
PULSE_PATCHES="winepulse-patches-1.5.30"
|
|
||||||
WINE_GENTOO="wine-gentoo-2012.11.24"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
|
|
||||||
abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)
|
|
||||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="+abi_x86_32 +abi_x86_64 alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +X xcomposite xinerama xml"
|
|
||||||
[[ ${PV} == "9999" ]] || IUSE="${IUSE} pulseaudio"
|
|
||||||
REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
|
|
||||||
test? ( abi_x86_32 )
|
|
||||||
elibc_glibc? ( threads )
|
|
||||||
mono? ( abi_x86_32 )
|
|
||||||
osmesa? ( opengl )" #286560
|
|
||||||
|
|
||||||
# FIXME: the test suite is unsuitable for us; many tests require net access
|
|
||||||
# or fail due to Xvfb's opengl limitations.
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:2
|
|
||||||
)
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
osmesa? ( media-libs/mesa[osmesa] )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( net-libs/gnutls:= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )
|
|
||||||
amd64? (
|
|
||||||
abi_x86_32? (
|
|
||||||
gstreamer? (
|
|
||||||
app-emulation/emul-linux-x86-gstplugins
|
|
||||||
app-emulation/emul-linux-x86-medialibs[development]
|
|
||||||
)
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1[development] )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1[development]
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1[development]
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs[development] )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db[development] )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl[development] )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl[development] )
|
|
||||||
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028[development] )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs[development] )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs[development] )
|
|
||||||
>=app-emulation/emul-linux-x86-baselibs-20130224[development]
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)
|
|
||||||
)"
|
|
||||||
[[ ${PV} == "9999" ]] || RDEPEND="${RDEPEND}
|
|
||||||
pulseaudio? (
|
|
||||||
media-sound/pulseaudio
|
|
||||||
sys-auth/rtkit
|
|
||||||
)"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
# These use a non-standard "Wine" category, which is provided by
|
|
||||||
# /etc/xdg/applications-merged/wine.menu
|
|
||||||
QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
|
|
||||||
usr/share/applications/wine-notepad.desktop
|
|
||||||
usr/share/applications/wine-uninstaller.desktop
|
|
||||||
usr/share/applications/wine-winecfg.desktop"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
|
|
||||||
unpack "${PULSE_PATCHES}.tar.bz2"
|
|
||||||
unpack "${WINE_GENTOO}.tar.bz2"
|
|
||||||
|
|
||||||
l10n_find_plocales_changes "${S}/po" "" ".po"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
local PATCHES=(
|
|
||||||
"${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
|
|
||||||
"${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
"${FILESDIR}"/${PN}-1.5.17-osmesa-check.patch #429386
|
|
||||||
"${FILESDIR}"/${PN}-1.5.23-winebuild-CCAS.patch #455308
|
|
||||||
"${FILESDIR}"/${PN}-1.5.30-libwine.patch #http://bugs.winehq.org/show_bug.cgi?id=33560
|
|
||||||
"${FILESDIR}"/${PN}-1.5.31-gnutls-3.2.0.patch #http://bugs.winehq.org/show_bug.cgi?id=33649
|
|
||||||
)
|
|
||||||
[[ ${PV} == "9999" ]] || PATCHES+=(
|
|
||||||
"../${PULSE_PATCHES}"/*.patch #421365
|
|
||||||
)
|
|
||||||
|
|
||||||
autotools-utils_src_prepare
|
|
||||||
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
|
|
||||||
l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local myeconfargs=(
|
|
||||||
"${myeconfargs[@]}"
|
|
||||||
CCAS="$(tc-getAS)"
|
|
||||||
)
|
|
||||||
|
|
||||||
if use amd64; then
|
|
||||||
if [[ ${ABI} == amd64 ]]; then
|
|
||||||
myeconfargs+=( --enable-win64 )
|
|
||||||
else
|
|
||||||
myeconfargs+=( --disable-win64 )
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Note: using --with-wine64 results in problems with multilib.eclass
|
|
||||||
# CC/LD hackery. We're using separate tools instead.
|
|
||||||
fi
|
|
||||||
|
|
||||||
autotools-utils_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
local myeconfargs=( # common
|
|
||||||
--sysconfdir=/etc/wine
|
|
||||||
$(use_with alsa)
|
|
||||||
$(use_with capi)
|
|
||||||
$(use_with lcms cms)
|
|
||||||
$(use_with cups)
|
|
||||||
$(use_with ncurses curses)
|
|
||||||
$(use_with udisks dbus)
|
|
||||||
$(use_with fontconfig)
|
|
||||||
$(use_with ssl gnutls)
|
|
||||||
$(use_with gphoto2 gphoto)
|
|
||||||
$(use_with gsm)
|
|
||||||
$(use_with gstreamer)
|
|
||||||
--without-hal
|
|
||||||
$(use_with jpeg)
|
|
||||||
$(use_with ldap)
|
|
||||||
$(use_with mp3 mpg123)
|
|
||||||
$(use_with nls gettext)
|
|
||||||
$(use_with openal)
|
|
||||||
$(use_with opencl)
|
|
||||||
$(use_with opengl)
|
|
||||||
$(use_with osmesa)
|
|
||||||
$(use_with oss)
|
|
||||||
$(use_with png)
|
|
||||||
$(use_with threads pthread)
|
|
||||||
$(use_with scanner sane)
|
|
||||||
$(use_enable test tests)
|
|
||||||
$(use_with truetype freetype)
|
|
||||||
$(use_with v4l)
|
|
||||||
$(use_with X x)
|
|
||||||
$(use_with xcomposite)
|
|
||||||
$(use_with xinerama)
|
|
||||||
$(use_with xml)
|
|
||||||
$(use_with xml xslt)
|
|
||||||
)
|
|
||||||
|
|
||||||
[[ ${PV} == "9999" ]] || myeconfargs+=( $(use_with pulseaudio pulse) )
|
|
||||||
|
|
||||||
# Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
|
|
||||||
use amd64 && use abi_x86_32 && tc-export PKG_CONFIG
|
|
||||||
|
|
||||||
multilib_parallel_foreach_abi do_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
autotools-multilib_src_compile depend
|
|
||||||
autotools-multilib_src_compile all
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
if [[ $(id -u) == 0 ]]; then
|
|
||||||
ewarn "Skipping tests since they cannot be run under the root user."
|
|
||||||
ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
# FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
|
|
||||||
multilib_toolchain_setup x86
|
|
||||||
local BUILD_DIR="${S}-${ABI}"
|
|
||||||
cd "${BUILD_DIR}" || die
|
|
||||||
WINEPREFIX="${T}/.wine-${ABI}" Xemake test
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local DOCS=( ANNOUNCE AUTHORS README )
|
|
||||||
autotools-multilib_src_install
|
|
||||||
|
|
||||||
emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if use mono ; then
|
|
||||||
insinto /usr/share/wine/mono
|
|
||||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use abi_x86_64 && ! use abi_x86_32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
|
|
||||||
# respect LINGUAS when installing man pages, #469418
|
|
||||||
for l in de fr pl; do
|
|
||||||
use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
gnome2_icon_savelist
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
@ -1,337 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.31.ebuild,v 1.5 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
AUTOTOOLS_AUTORECONF=1
|
|
||||||
PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
|
|
||||||
PLOCALE_BACKUP="en"
|
|
||||||
|
|
||||||
inherit autotools-multilib eutils flag-o-matic gnome2-utils l10n multilib pax-utils toolchain-funcs virtualx
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="2.21"
|
|
||||||
MV="0.0.8"
|
|
||||||
PULSE_PATCHES="winepulse-patches-1.5.30"
|
|
||||||
WINE_GENTOO="wine-gentoo-2012.11.24"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
|
|
||||||
abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)
|
|
||||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2
|
|
||||||
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="+abi_x86_32 +abi_x86_64 alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +X xcomposite xinerama xml"
|
|
||||||
[[ ${PV} == "9999" ]] || IUSE="${IUSE} pulseaudio"
|
|
||||||
REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
|
|
||||||
test? ( abi_x86_32 )
|
|
||||||
elibc_glibc? ( threads )
|
|
||||||
mono? ( abi_x86_32 )
|
|
||||||
osmesa? ( opengl )" #286560
|
|
||||||
|
|
||||||
# FIXME: the test suite is unsuitable for us; many tests require net access
|
|
||||||
# or fail due to Xvfb's opengl limitations.
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:2
|
|
||||||
)
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
osmesa? ( media-libs/mesa[osmesa] )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( net-libs/gnutls:= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )
|
|
||||||
amd64? (
|
|
||||||
abi_x86_32? (
|
|
||||||
gstreamer? (
|
|
||||||
app-emulation/emul-linux-x86-gstplugins
|
|
||||||
app-emulation/emul-linux-x86-medialibs[development]
|
|
||||||
)
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1[development] )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1[development]
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1[development]
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs[development] )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db[development] )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl[development] )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl[development] )
|
|
||||||
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028[development] )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs[development] )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs[development] )
|
|
||||||
>=app-emulation/emul-linux-x86-baselibs-20130224[development]
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)
|
|
||||||
)"
|
|
||||||
[[ ${PV} == "9999" ]] || RDEPEND="${RDEPEND}
|
|
||||||
pulseaudio? (
|
|
||||||
media-sound/pulseaudio
|
|
||||||
sys-auth/rtkit
|
|
||||||
)"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
# These use a non-standard "Wine" category, which is provided by
|
|
||||||
# /etc/xdg/applications-merged/wine.menu
|
|
||||||
QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
|
|
||||||
usr/share/applications/wine-notepad.desktop
|
|
||||||
usr/share/applications/wine-uninstaller.desktop
|
|
||||||
usr/share/applications/wine-winecfg.desktop"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
|
|
||||||
unpack "${PULSE_PATCHES}.tar.bz2"
|
|
||||||
unpack "${WINE_GENTOO}.tar.bz2"
|
|
||||||
|
|
||||||
l10n_find_plocales_changes "${S}/po" "" ".po"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
local PATCHES=(
|
|
||||||
"${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
|
|
||||||
"${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
"${FILESDIR}"/${PN}-1.5.17-osmesa-check.patch #429386
|
|
||||||
"${FILESDIR}"/${PN}-1.5.23-winebuild-CCAS.patch #455308
|
|
||||||
"${FILESDIR}"/${PN}-1.5.31-gnutls-3.2.0.patch #http://bugs.winehq.org/show_bug.cgi?id=33649
|
|
||||||
)
|
|
||||||
[[ ${PV} == "9999" ]] || PATCHES+=(
|
|
||||||
"../${PULSE_PATCHES}"/*.patch #421365
|
|
||||||
)
|
|
||||||
|
|
||||||
autotools-utils_src_prepare
|
|
||||||
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
|
|
||||||
l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local myeconfargs=(
|
|
||||||
"${myeconfargs[@]}"
|
|
||||||
CCAS="$(tc-getAS)"
|
|
||||||
)
|
|
||||||
|
|
||||||
if use amd64; then
|
|
||||||
if [[ ${ABI} == amd64 ]]; then
|
|
||||||
myeconfargs+=( --enable-win64 )
|
|
||||||
else
|
|
||||||
myeconfargs+=( --disable-win64 )
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Note: using --with-wine64 results in problems with multilib.eclass
|
|
||||||
# CC/LD hackery. We're using separate tools instead.
|
|
||||||
fi
|
|
||||||
|
|
||||||
autotools-utils_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
local myeconfargs=( # common
|
|
||||||
--sysconfdir=/etc/wine
|
|
||||||
$(use_with alsa)
|
|
||||||
$(use_with capi)
|
|
||||||
$(use_with lcms cms)
|
|
||||||
$(use_with cups)
|
|
||||||
$(use_with ncurses curses)
|
|
||||||
$(use_with udisks dbus)
|
|
||||||
$(use_with fontconfig)
|
|
||||||
$(use_with ssl gnutls)
|
|
||||||
$(use_with gphoto2 gphoto)
|
|
||||||
$(use_with gsm)
|
|
||||||
$(use_with gstreamer)
|
|
||||||
--without-hal
|
|
||||||
$(use_with jpeg)
|
|
||||||
$(use_with ldap)
|
|
||||||
$(use_with mp3 mpg123)
|
|
||||||
$(use_with nls gettext)
|
|
||||||
$(use_with openal)
|
|
||||||
$(use_with opencl)
|
|
||||||
$(use_with opengl)
|
|
||||||
$(use_with osmesa)
|
|
||||||
$(use_with oss)
|
|
||||||
$(use_with png)
|
|
||||||
$(use_with threads pthread)
|
|
||||||
$(use_with scanner sane)
|
|
||||||
$(use_enable test tests)
|
|
||||||
$(use_with truetype freetype)
|
|
||||||
$(use_with v4l)
|
|
||||||
$(use_with X x)
|
|
||||||
$(use_with xcomposite)
|
|
||||||
$(use_with xinerama)
|
|
||||||
$(use_with xml)
|
|
||||||
$(use_with xml xslt)
|
|
||||||
)
|
|
||||||
|
|
||||||
[[ ${PV} == "9999" ]] || myeconfargs+=( $(use_with pulseaudio pulse) )
|
|
||||||
|
|
||||||
# Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
|
|
||||||
use amd64 && use abi_x86_32 && tc-export PKG_CONFIG
|
|
||||||
|
|
||||||
multilib_parallel_foreach_abi do_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
autotools-multilib_src_compile depend
|
|
||||||
autotools-multilib_src_compile all
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
if [[ $(id -u) == 0 ]]; then
|
|
||||||
ewarn "Skipping tests since they cannot be run under the root user."
|
|
||||||
ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
# FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
|
|
||||||
multilib_toolchain_setup x86
|
|
||||||
local BUILD_DIR="${S}-${ABI}"
|
|
||||||
cd "${BUILD_DIR}" || die
|
|
||||||
WINEPREFIX="${T}/.wine-${ABI}" Xemake test
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local DOCS=( ANNOUNCE AUTHORS README )
|
|
||||||
autotools-multilib_src_install
|
|
||||||
|
|
||||||
emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if use mono ; then
|
|
||||||
insinto /usr/share/wine/mono
|
|
||||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use abi_x86_64 && ! use abi_x86_32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
|
|
||||||
# respect LINGUAS when installing man pages, #469418
|
|
||||||
for l in de fr pl; do
|
|
||||||
use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
gnome2_icon_savelist
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
@ -1,251 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.4.ebuild,v 1.13 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic multilib pax-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.5"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
|
||||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap mp3 ncurses nls odbc openal opencl +opengl +oss +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
|
||||||
REQUIRED_USE="elibc_glibc? ( threads )" #286560
|
|
||||||
RESTRICT="test" #72375
|
|
||||||
|
|
||||||
MLIB_DEPS="amd64? (
|
|
||||||
gstreamer? ( app-emulation/emul-linux-x86-gstplugins )
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
app-emulation/emul-linux-x86-baselibs
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)"
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:0
|
|
||||||
)
|
|
||||||
gnutls? ( net-libs/gnutls:= )
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( dev-libs/openssl:0= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
!win64? ( ${MLIB_DEPS} )
|
|
||||||
win32? ( ${MLIB_DEPS} )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
epatch_user #282735
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
eautoreconf
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local builddir="${WORKDIR}/wine$1"
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}" >/dev/null
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} \
|
|
||||||
econf \
|
|
||||||
--sysconfdir=/etc/wine \
|
|
||||||
$(use_with alsa) \
|
|
||||||
$(use_with capi) \
|
|
||||||
$(use_with lcms cms) \
|
|
||||||
$(use_with cups) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with udisks dbus) \
|
|
||||||
$(use_with fontconfig) \
|
|
||||||
$(use_with gnutls) \
|
|
||||||
$(use_with gphoto2 gphoto) \
|
|
||||||
$(use_with gsm) \
|
|
||||||
$(use_with gstreamer) \
|
|
||||||
--without-hal \
|
|
||||||
$(use_with jpeg) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_with mp3 mpg123) \
|
|
||||||
$(use_with nls gettext) \
|
|
||||||
$(use_with openal) \
|
|
||||||
$(use_with opencl) \
|
|
||||||
$(use_with opengl) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with oss) \
|
|
||||||
$(use_with png) \
|
|
||||||
$(use_with threads pthread) \
|
|
||||||
$(use_with scanner sane) \
|
|
||||||
$(use_enable test tests) \
|
|
||||||
$(use_with truetype freetype) \
|
|
||||||
$(use_with v4l) \
|
|
||||||
$(use_with X x) \
|
|
||||||
$(use_with xcomposite) \
|
|
||||||
$(use_with xinerama) \
|
|
||||||
$(use_with xml) \
|
|
||||||
$(use_with xml xslt) \
|
|
||||||
$2
|
|
||||||
|
|
||||||
emake -j1 depend
|
|
||||||
|
|
||||||
popd >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
if use win64 ; then
|
|
||||||
do_configure 64 --enable-win64
|
|
||||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
|
||||||
else
|
|
||||||
ABI=x86 do_configure 32 --disable-win64
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" all
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" install DESTDIR="${D}"
|
|
||||||
done
|
|
||||||
dodoc ANNOUNCE AUTHORS README
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 || ! use win64; then
|
|
||||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
fi
|
|
||||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use win64 && ! use win32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,250 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.5.ebuild,v 1.12 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic multilib pax-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.5"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
|
||||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap mp3 ncurses nls odbc openal opencl +opengl +oss +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
|
||||||
REQUIRED_USE="elibc_glibc? ( threads )" #286560
|
|
||||||
RESTRICT="test" #72375
|
|
||||||
|
|
||||||
MLIB_DEPS="amd64? (
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
app-emulation/emul-linux-x86-baselibs
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)"
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:0
|
|
||||||
)
|
|
||||||
gnutls? ( net-libs/gnutls:= )
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( dev-libs/openssl:0= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
!win64? ( ${MLIB_DEPS} )
|
|
||||||
win32? ( ${MLIB_DEPS} )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
epatch_user #282735
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
eautoreconf
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local builddir="${WORKDIR}/wine$1"
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}" >/dev/null
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} \
|
|
||||||
econf \
|
|
||||||
--sysconfdir=/etc/wine \
|
|
||||||
$(use_with alsa) \
|
|
||||||
$(use_with capi) \
|
|
||||||
$(use_with lcms cms) \
|
|
||||||
$(use_with cups) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with udisks dbus) \
|
|
||||||
$(use_with fontconfig) \
|
|
||||||
$(use_with gnutls) \
|
|
||||||
$(use_with gphoto2 gphoto) \
|
|
||||||
$(use_with gsm) \
|
|
||||||
$(use_with gstreamer) \
|
|
||||||
--without-hal \
|
|
||||||
$(use_with jpeg) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_with mp3 mpg123) \
|
|
||||||
$(use_with nls gettext) \
|
|
||||||
$(use_with openal) \
|
|
||||||
$(use_with opencl) \
|
|
||||||
$(use_with opengl) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with oss) \
|
|
||||||
$(use_with png) \
|
|
||||||
$(use_with threads pthread) \
|
|
||||||
$(use_with scanner sane) \
|
|
||||||
$(use_enable test tests) \
|
|
||||||
$(use_with truetype freetype) \
|
|
||||||
$(use_with v4l) \
|
|
||||||
$(use_with X x) \
|
|
||||||
$(use_with xcomposite) \
|
|
||||||
$(use_with xinerama) \
|
|
||||||
$(use_with xml) \
|
|
||||||
$(use_with xml xslt) \
|
|
||||||
$2
|
|
||||||
|
|
||||||
emake -j1 depend
|
|
||||||
|
|
||||||
popd >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
if use win64 ; then
|
|
||||||
do_configure 64 --enable-win64
|
|
||||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
|
||||||
else
|
|
||||||
ABI=x86 do_configure 32 --disable-win64
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" all
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" install DESTDIR="${D}"
|
|
||||||
done
|
|
||||||
dodoc ANNOUNCE AUTHORS README
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 || ! use win64; then
|
|
||||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
fi
|
|
||||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use win64 && ! use win32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,258 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.6.ebuild,v 1.12 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic multilib pax-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.5"
|
|
||||||
MV="0.0.4"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
|
||||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)
|
|
||||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl +oss +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
|
||||||
REQUIRED_USE="elibc_glibc? ( threads )
|
|
||||||
mono? ( || ( win32 !win64 ) )" #286560
|
|
||||||
RESTRICT="test" #72375
|
|
||||||
|
|
||||||
MLIB_DEPS="amd64? (
|
|
||||||
gstreamer? ( app-emulation/emul-linux-x86-gstplugins )
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
app-emulation/emul-linux-x86-baselibs
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)"
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:0
|
|
||||||
)
|
|
||||||
gnutls? ( net-libs/gnutls:= )
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( dev-libs/openssl:0= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
!win64? ( ${MLIB_DEPS} )
|
|
||||||
win32? ( ${MLIB_DEPS} )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
epatch_user #282735
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
eautoreconf
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local builddir="${WORKDIR}/wine$1"
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}" >/dev/null
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} \
|
|
||||||
econf \
|
|
||||||
--sysconfdir=/etc/wine \
|
|
||||||
$(use_with alsa) \
|
|
||||||
$(use_with capi) \
|
|
||||||
$(use_with lcms cms) \
|
|
||||||
$(use_with cups) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with udisks dbus) \
|
|
||||||
$(use_with fontconfig) \
|
|
||||||
$(use_with gnutls) \
|
|
||||||
$(use_with gphoto2 gphoto) \
|
|
||||||
$(use_with gsm) \
|
|
||||||
$(use_with gstreamer) \
|
|
||||||
--without-hal \
|
|
||||||
$(use_with jpeg) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_with mp3 mpg123) \
|
|
||||||
$(use_with nls gettext) \
|
|
||||||
$(use_with openal) \
|
|
||||||
$(use_with opencl) \
|
|
||||||
$(use_with opengl) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with oss) \
|
|
||||||
$(use_with png) \
|
|
||||||
$(use_with threads pthread) \
|
|
||||||
$(use_with scanner sane) \
|
|
||||||
$(use_enable test tests) \
|
|
||||||
$(use_with truetype freetype) \
|
|
||||||
$(use_with v4l) \
|
|
||||||
$(use_with X x) \
|
|
||||||
$(use_with xcomposite) \
|
|
||||||
$(use_with xinerama) \
|
|
||||||
$(use_with xml) \
|
|
||||||
$(use_with xml xslt) \
|
|
||||||
$2
|
|
||||||
|
|
||||||
emake -j1 depend
|
|
||||||
|
|
||||||
popd >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
if use win64 ; then
|
|
||||||
do_configure 64 --enable-win64
|
|
||||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
|
||||||
else
|
|
||||||
ABI=x86 do_configure 32 --disable-win64
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" all
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" install DESTDIR="${D}"
|
|
||||||
done
|
|
||||||
dodoc ANNOUNCE AUTHORS README
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if use mono ; then
|
|
||||||
insinto /usr/share/wine/mono
|
|
||||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 || ! use win64; then
|
|
||||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
fi
|
|
||||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use win64 && ! use win32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,263 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.7.ebuild,v 1.12 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic multilib pax-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.6"
|
|
||||||
MV="0.0.4"
|
|
||||||
PULSE_PATCH="winepulse-2012.06.15.patch"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
|
||||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)
|
|
||||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
|
||||||
http://source.winehq.org/patches/data/87234 -> ${PULSE_PATCH}"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl +oss +perl png +prelink pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
|
||||||
REQUIRED_USE="elibc_glibc? ( threads )
|
|
||||||
mono? ( || ( win32 !win64 ) )" #286560
|
|
||||||
RESTRICT="test" #72375
|
|
||||||
|
|
||||||
MLIB_DEPS="amd64? (
|
|
||||||
gstreamer? ( app-emulation/emul-linux-x86-gstplugins )
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
app-emulation/emul-linux-x86-baselibs
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)"
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:2
|
|
||||||
)
|
|
||||||
gnutls? ( net-libs/gnutls:= )
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
pulseaudio? ( media-sound/pulseaudio )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( dev-libs/openssl:0= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
!win64? ( ${MLIB_DEPS} )
|
|
||||||
win32? ( ${MLIB_DEPS} )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
epatch "${DISTDIR}/${PULSE_PATCH}" #421365
|
|
||||||
epatch_user #282735
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
eautoreconf
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local builddir="${WORKDIR}/wine$1"
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}" >/dev/null
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} \
|
|
||||||
econf \
|
|
||||||
--sysconfdir=/etc/wine \
|
|
||||||
$(use_with alsa) \
|
|
||||||
$(use_with capi) \
|
|
||||||
$(use_with lcms cms) \
|
|
||||||
$(use_with cups) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with udisks dbus) \
|
|
||||||
$(use_with fontconfig) \
|
|
||||||
$(use_with gnutls) \
|
|
||||||
$(use_with gphoto2 gphoto) \
|
|
||||||
$(use_with gsm) \
|
|
||||||
$(use_with gstreamer) \
|
|
||||||
--without-hal \
|
|
||||||
$(use_with jpeg) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_with mp3 mpg123) \
|
|
||||||
$(use_with nls gettext) \
|
|
||||||
$(use_with openal) \
|
|
||||||
$(use_with opencl) \
|
|
||||||
$(use_with opengl) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with oss) \
|
|
||||||
$(use_with png) \
|
|
||||||
$(use_with threads pthread) \
|
|
||||||
$(use_with pulseaudio pulse) \
|
|
||||||
$(use_with scanner sane) \
|
|
||||||
$(use_enable test tests) \
|
|
||||||
$(use_with truetype freetype) \
|
|
||||||
$(use_with v4l) \
|
|
||||||
$(use_with X x) \
|
|
||||||
$(use_with xcomposite) \
|
|
||||||
$(use_with xinerama) \
|
|
||||||
$(use_with xml) \
|
|
||||||
$(use_with xml xslt) \
|
|
||||||
$2
|
|
||||||
|
|
||||||
emake -j1 depend
|
|
||||||
|
|
||||||
popd >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
if use win64 ; then
|
|
||||||
do_configure 64 --enable-win64
|
|
||||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
|
||||||
else
|
|
||||||
ABI=x86 do_configure 32 --disable-win64
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" all
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" install DESTDIR="${D}"
|
|
||||||
done
|
|
||||||
dodoc ANNOUNCE AUTHORS README
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if use mono ; then
|
|
||||||
insinto /usr/share/wine/mono
|
|
||||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 || ! use win64; then
|
|
||||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
fi
|
|
||||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use win64 && ! use win32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,263 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.8.ebuild,v 1.12 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic multilib pax-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.6"
|
|
||||||
MV="0.0.4"
|
|
||||||
PULSE_PATCH="winepulse-2012.06.15.patch"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
|
||||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)
|
|
||||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
|
||||||
http://source.winehq.org/patches/data/87234 -> ${PULSE_PATCH}"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl +oss +perl png +prelink pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
|
||||||
REQUIRED_USE="elibc_glibc? ( threads )
|
|
||||||
mono? ( || ( win32 !win64 ) )" #286560
|
|
||||||
RESTRICT="test" #72375
|
|
||||||
|
|
||||||
MLIB_DEPS="amd64? (
|
|
||||||
gstreamer? ( app-emulation/emul-linux-x86-gstplugins )
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
app-emulation/emul-linux-x86-baselibs
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)"
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:2
|
|
||||||
)
|
|
||||||
gnutls? ( net-libs/gnutls:= )
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
pulseaudio? ( media-sound/pulseaudio )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( dev-libs/openssl:0= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
!win64? ( ${MLIB_DEPS} )
|
|
||||||
win32? ( ${MLIB_DEPS} )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
epatch "${DISTDIR}/${PULSE_PATCH}" #421365
|
|
||||||
epatch_user #282735
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
eautoreconf
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local builddir="${WORKDIR}/wine$1"
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}" >/dev/null
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} \
|
|
||||||
econf \
|
|
||||||
--sysconfdir=/etc/wine \
|
|
||||||
$(use_with alsa) \
|
|
||||||
$(use_with capi) \
|
|
||||||
$(use_with lcms cms) \
|
|
||||||
$(use_with cups) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with udisks dbus) \
|
|
||||||
$(use_with fontconfig) \
|
|
||||||
$(use_with gnutls) \
|
|
||||||
$(use_with gphoto2 gphoto) \
|
|
||||||
$(use_with gsm) \
|
|
||||||
$(use_with gstreamer) \
|
|
||||||
--without-hal \
|
|
||||||
$(use_with jpeg) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_with mp3 mpg123) \
|
|
||||||
$(use_with nls gettext) \
|
|
||||||
$(use_with openal) \
|
|
||||||
$(use_with opencl) \
|
|
||||||
$(use_with opengl) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with oss) \
|
|
||||||
$(use_with png) \
|
|
||||||
$(use_with threads pthread) \
|
|
||||||
$(use_with pulseaudio pulse) \
|
|
||||||
$(use_with scanner sane) \
|
|
||||||
$(use_enable test tests) \
|
|
||||||
$(use_with truetype freetype) \
|
|
||||||
$(use_with v4l) \
|
|
||||||
$(use_with X x) \
|
|
||||||
$(use_with xcomposite) \
|
|
||||||
$(use_with xinerama) \
|
|
||||||
$(use_with xml) \
|
|
||||||
$(use_with xml xslt) \
|
|
||||||
$2
|
|
||||||
|
|
||||||
emake -j1 depend
|
|
||||||
|
|
||||||
popd >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
if use win64 ; then
|
|
||||||
do_configure 64 --enable-win64
|
|
||||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
|
||||||
else
|
|
||||||
ABI=x86 do_configure 32 --disable-win64
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" all
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" install DESTDIR="${D}"
|
|
||||||
done
|
|
||||||
dodoc ANNOUNCE AUTHORS README
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if use mono ; then
|
|
||||||
insinto /usr/share/wine/mono
|
|
||||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 || ! use win64; then
|
|
||||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
fi
|
|
||||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use win64 && ! use win32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,263 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.9.ebuild,v 1.12 2013/10/13 21:10:09 tetromino Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic multilib pax-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
#KEYWORDS=""
|
|
||||||
else
|
|
||||||
MY_P="${PN}-${PV/_/-}"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
GV="1.6"
|
|
||||||
MV="0.0.4"
|
|
||||||
PULSE_PATCH="winepulse-2012.06.15.patch"
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix"
|
|
||||||
HOMEPAGE="http://www.winehq.org/"
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
gecko? (
|
|
||||||
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
|
|
||||||
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
|
|
||||||
)
|
|
||||||
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
|
|
||||||
http://source.winehq.org/patches/data/87234 -> ${PULSE_PATCH}"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl +oss +perl png +prelink pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
|
||||||
REQUIRED_USE="elibc_glibc? ( threads )
|
|
||||||
mono? ( || ( win32 !win64 ) )" #286560
|
|
||||||
RESTRICT="test" #72375
|
|
||||||
|
|
||||||
MLIB_DEPS="amd64? (
|
|
||||||
gstreamer? ( app-emulation/emul-linux-x86-gstplugins )
|
|
||||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
|
||||||
X? (
|
|
||||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
|
||||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
|
||||||
)
|
|
||||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
|
||||||
odbc? ( app-emulation/emul-linux-x86-db )
|
|
||||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
|
||||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
|
||||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
|
||||||
app-emulation/emul-linux-x86-baselibs
|
|
||||||
>=sys-kernel/linux-headers-2.6
|
|
||||||
)"
|
|
||||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
|
|
||||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
|
||||||
capi? ( net-dialup/capi4k-utils )
|
|
||||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
|
||||||
fontconfig? ( media-libs/fontconfig:= )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:= )
|
|
||||||
openal? ( media-libs/openal:= )
|
|
||||||
udisks? (
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-fs/udisks:2
|
|
||||||
)
|
|
||||||
gnutls? ( net-libs/gnutls:= )
|
|
||||||
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
|
|
||||||
X? (
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
gsm? ( media-sound/gsm:= )
|
|
||||||
jpeg? ( virtual/jpeg:0= )
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
lcms? ( media-libs/lcms:0= )
|
|
||||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
odbc? ( dev-db/unixODBC:= )
|
|
||||||
pulseaudio? ( media-sound/pulseaudio )
|
|
||||||
samba? ( >=net-fs/samba-3.0.25 )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
|
||||||
scanner? ( media-gfx/sane-backends:= )
|
|
||||||
ssl? ( dev-libs/openssl:0= )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
!win64? ( ${MLIB_DEPS} )
|
|
||||||
win32? ( ${MLIB_DEPS} )
|
|
||||||
xcomposite? ( x11-libs/libXcomposite )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
X? (
|
|
||||||
x11-proto/inputproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xf86vidmodeproto
|
|
||||||
)
|
|
||||||
xinerama? ( x11-proto/xineramaproto )
|
|
||||||
prelink? ( sys-devel/prelink )
|
|
||||||
virtual/pkgconfig
|
|
||||||
virtual/yacc
|
|
||||||
sys-devel/flex"
|
|
||||||
|
|
||||||
wine_build_environment_check() {
|
|
||||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
|
||||||
|
|
||||||
if use win64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
|
|
||||||
eerror "You need gcc-4.4+ to build 64-bit wine"
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
|
|
||||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
|
||||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
|
||||||
eerror
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
wine_build_environment_check || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${MY_P}.tar.bz2
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local md5="$(md5sum server/protocol.def)"
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
|
||||||
epatch "${DISTDIR}/${PULSE_PATCH}" #421365
|
|
||||||
epatch_user #282735
|
|
||||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
|
||||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
|
||||||
tools/make_requests || die #432348
|
|
||||||
fi
|
|
||||||
eautoreconf
|
|
||||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
|
||||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
local builddir="${WORKDIR}/wine$1"
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}" >/dev/null
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} \
|
|
||||||
econf \
|
|
||||||
--sysconfdir=/etc/wine \
|
|
||||||
$(use_with alsa) \
|
|
||||||
$(use_with capi) \
|
|
||||||
$(use_with lcms cms) \
|
|
||||||
$(use_with cups) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with udisks dbus) \
|
|
||||||
$(use_with fontconfig) \
|
|
||||||
$(use_with gnutls) \
|
|
||||||
$(use_with gphoto2 gphoto) \
|
|
||||||
$(use_with gsm) \
|
|
||||||
$(use_with gstreamer) \
|
|
||||||
--without-hal \
|
|
||||||
$(use_with jpeg) \
|
|
||||||
$(use_with ldap) \
|
|
||||||
$(use_with mp3 mpg123) \
|
|
||||||
$(use_with nls gettext) \
|
|
||||||
$(use_with openal) \
|
|
||||||
$(use_with opencl) \
|
|
||||||
$(use_with opengl) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with oss) \
|
|
||||||
$(use_with png) \
|
|
||||||
$(use_with threads pthread) \
|
|
||||||
$(use_with pulseaudio pulse) \
|
|
||||||
$(use_with scanner sane) \
|
|
||||||
$(use_enable test tests) \
|
|
||||||
$(use_with truetype freetype) \
|
|
||||||
$(use_with v4l) \
|
|
||||||
$(use_with X x) \
|
|
||||||
$(use_with xcomposite) \
|
|
||||||
$(use_with xinerama) \
|
|
||||||
$(use_with xml) \
|
|
||||||
$(use_with xml xslt) \
|
|
||||||
$2
|
|
||||||
|
|
||||||
emake -j1 depend
|
|
||||||
|
|
||||||
popd >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export LDCONFIG=/bin/true
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
|
|
||||||
if use win64 ; then
|
|
||||||
do_configure 64 --enable-win64
|
|
||||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
|
||||||
else
|
|
||||||
ABI=x86 do_configure 32 --disable-win64
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" all
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local b
|
|
||||||
for b in 64 32 ; do
|
|
||||||
local builddir="${WORKDIR}/wine${b}"
|
|
||||||
[[ -d ${builddir} ]] || continue
|
|
||||||
emake -C "${builddir}" install DESTDIR="${D}"
|
|
||||||
done
|
|
||||||
dodoc ANNOUNCE AUTHORS README
|
|
||||||
if use gecko ; then
|
|
||||||
insinto /usr/share/wine/gecko
|
|
||||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
|
||||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
|
||||||
fi
|
|
||||||
if use mono ; then
|
|
||||||
insinto /usr/share/wine/mono
|
|
||||||
doins "${DISTDIR}"/wine-mono-${MV}.msi
|
|
||||||
fi
|
|
||||||
if ! use perl ; then
|
|
||||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use win32 || ! use win64; then
|
|
||||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
|
||||||
fi
|
|
||||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
|
||||||
|
|
||||||
if use win64 && ! use win32; then
|
|
||||||
dosym /usr/bin/wine{64,} # 404331
|
|
||||||
dosym /usr/bin/wine{64,}-preloader
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,2 +1 @@
|
|||||||
DIST rkhunter-1.4.0.tar.gz 244211 SHA256 8a03d6add50663531994d55aff058eced74c64df948b88176621cd761b68ccf9 SHA512 597e8b2e3f75cd1cb57dd3e33df004265f03ca1503310f984211612da43a160e5d3b50626b4918bd38bf0d239fe2e4a45e55a96212c5a3b5a5645e77e030b60a WHIRLPOOL 45c023b625c7c1664a9f99438b5bebe5ed70265346f122b9d71f91611439d77a2bda01c137698898314183458c4467c66f73bb703b83fbaae2ffe65ded3307ad
|
|
||||||
DIST rkhunter-1.4.2.tar.gz 277707 SHA256 789cc84a21faf669da81e648eead2e62654cfbe0b2d927119d8b1e55b22b65c3 SHA512 a4e45caaaf5b8262619ebb890784c75c4e30db4c6c0eba305f86d419142b4796c95bc55fe8846dce8d58bc7636bdb365a4a8c41707f64d4d81373687c5a3b0d4 WHIRLPOOL 911ed8e37e112516adba3afb63e3d4862d061ea35cd4b8becea455922d6b2a744f4b8e7cf92685cff29c3192c594dfc58ba3c194f371dd4d95530bd4c09c5d84
|
DIST rkhunter-1.4.2.tar.gz 277707 SHA256 789cc84a21faf669da81e648eead2e62654cfbe0b2d927119d8b1e55b22b65c3 SHA512 a4e45caaaf5b8262619ebb890784c75c4e30db4c6c0eba305f86d419142b4796c95bc55fe8846dce8d58bc7636bdb365a4a8c41707f64d4d81373687c5a3b0d4 WHIRLPOOL 911ed8e37e112516adba3afb63e3d4862d061ea35cd4b8becea455922d6b2a744f4b8e7cf92685cff29c3192c594dfc58ba3c194f371dd4d95530bd4c09c5d84
|
||||||
|
@ -1,68 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-forensics/rkhunter/rkhunter-1.4.0.ebuild,v 1.7 2014/05/27 16:08:08 zerochaos Exp $
|
|
||||||
|
|
||||||
EAPI=4
|
|
||||||
|
|
||||||
inherit eutils bash-completion-r1
|
|
||||||
|
|
||||||
DESCRIPTION="Rootkit Hunter scans for known and unknown rootkits, backdoors, and sniffers."
|
|
||||||
HOMEPAGE="http://rkhunter.sf.net/"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 ~mips ppc x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
app-shells/bash
|
|
||||||
dev-lang/perl
|
|
||||||
sys-process/lsof[rpc]
|
|
||||||
virtual/cron
|
|
||||||
virtual/mailx
|
|
||||||
"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${P}/files"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}/${P}.conf.patch"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# rkhunter requires to be root
|
|
||||||
dosbin ${PN}
|
|
||||||
|
|
||||||
# rkhunter doesn't create it by itself
|
|
||||||
dodir /var/lib/${PN}/tmp
|
|
||||||
|
|
||||||
insinto /etc
|
|
||||||
doins ${PN}.conf
|
|
||||||
|
|
||||||
exeinto /usr/lib/${PN}/scripts
|
|
||||||
doexe *.pl
|
|
||||||
|
|
||||||
insinto /var/lib/${PN}/db
|
|
||||||
doins *.dat
|
|
||||||
|
|
||||||
insinto /var/lib/${PN}/db/i18n
|
|
||||||
doins i18n/*
|
|
||||||
|
|
||||||
doman ${PN}.8
|
|
||||||
dodoc ACKNOWLEDGMENTS CHANGELOG FAQ README
|
|
||||||
|
|
||||||
exeinto /etc/cron.daily
|
|
||||||
newexe "${FILESDIR}/${PN}-1.3.cron" ${PN}
|
|
||||||
|
|
||||||
newbashcomp "${FILESDIR}/${PN}.bash-completion" ${PN}
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "A cron script has been installed to /etc/cron.daily/rkhunter."
|
|
||||||
elog "To enable it, edit /etc/cron.daily/rkhunter and follow the"
|
|
||||||
elog "directions."
|
|
||||||
elog "If you want ${PN} to send mail, you will need to install"
|
|
||||||
elog "virtual/mailx or alter the EMAIL_CMD variable in the"
|
|
||||||
elog "cron script and possibly the MAIL_CMD variable in the"
|
|
||||||
elog "${PN}.conf file to use another mail client."
|
|
||||||
}
|
|
@ -0,0 +1,87 @@
|
|||||||
|
commit 2e221a116dacf7541af8bfe6110856a70b8a8f70
|
||||||
|
Author: 0xd34df00d <0xd34df00d@gmail.com>
|
||||||
|
Date: Mon Jun 16 14:54:15 2014 +0400
|
||||||
|
|
||||||
|
[Core] DBus loaders made optional.
|
||||||
|
|
||||||
|
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
|
||||||
|
index c138fd5..dc2b8d6 100644
|
||||||
|
--- a/src/core/CMakeLists.txt
|
||||||
|
+++ b/src/core/CMakeLists.txt
|
||||||
|
@@ -5,8 +5,10 @@ include_directories (${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${Boost_INCLUDE_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
+option (WITH_DBUS_LOADERS "Build D-Bus loaders on UNIX" OFF)
|
||||||
|
+
|
||||||
|
if (NOT USE_QT5)
|
||||||
|
- if (NOT WIN32)
|
||||||
|
+ if (WITH_DBUS_LOADERS)
|
||||||
|
set (QT_USE_QTDBUS TRUE)
|
||||||
|
endif ()
|
||||||
|
set (QT_USE_QTNETWORK TRUE)
|
||||||
|
@@ -101,7 +103,7 @@ set (SRCS
|
||||||
|
loaders/sopluginloader.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
-if (UNIX AND NOT APPLE)
|
||||||
|
+if (WITH_DBUS_LOADERS)
|
||||||
|
set (SRCS
|
||||||
|
${SRCS}
|
||||||
|
loaders/dbuspluginloader.cpp
|
||||||
|
@@ -179,6 +181,6 @@ if (USE_QT5)
|
||||||
|
QT5_USE_MODULES (leechcraft Gui Network Widgets Xml Sql Script Concurrent DBus Svg)
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
-if (UNIX AND NOT APPLE)
|
||||||
|
+if (WITH_DBUS_LOADERS)
|
||||||
|
add_subdirectory (loaders/dbus)
|
||||||
|
endif ()
|
||||||
|
commit 4017753193a769a8bf7de6a54ec2c66954401e2f
|
||||||
|
Author: 0xd34df00d <0xd34df00d@gmail.com>
|
||||||
|
Date: Mon Jun 16 17:15:57 2014 +0400
|
||||||
|
|
||||||
|
[Core] Fixed linking without WITH_DBUS_LOADERS.
|
||||||
|
|
||||||
|
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
|
||||||
|
index dc2b8d6..5f593ea 100644
|
||||||
|
--- a/src/core/CMakeLists.txt
|
||||||
|
+++ b/src/core/CMakeLists.txt
|
||||||
|
@@ -7,6 +7,10 @@ include_directories (${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
|
||||||
|
option (WITH_DBUS_LOADERS "Build D-Bus loaders on UNIX" OFF)
|
||||||
|
|
||||||
|
+if (WITH_DBUS_LOADERS)
|
||||||
|
+ add_definitions (-DWITH_DBUS_LOADERS)
|
||||||
|
+endif ()
|
||||||
|
+
|
||||||
|
if (NOT USE_QT5)
|
||||||
|
if (WITH_DBUS_LOADERS)
|
||||||
|
set (QT_USE_QTDBUS TRUE)
|
||||||
|
diff --git a/src/core/pluginmanager.cpp b/src/core/pluginmanager.cpp
|
||||||
|
index e769715..4cb479a 100644
|
||||||
|
--- a/src/core/pluginmanager.cpp
|
||||||
|
+++ b/src/core/pluginmanager.cpp
|
||||||
|
@@ -56,9 +56,11 @@
|
||||||
|
#include "shortcutmanager.h"
|
||||||
|
#include "application.h"
|
||||||
|
#include "loaders/sopluginloader.h"
|
||||||
|
-#ifdef Q_OS_LINUX
|
||||||
|
- #include "loaders/dbuspluginloader.h"
|
||||||
|
+
|
||||||
|
+#ifdef WITH_DBUS_LOADERS
|
||||||
|
+#include "loaders/dbuspluginloader.h"
|
||||||
|
#endif
|
||||||
|
+
|
||||||
|
#include "settingstab.h"
|
||||||
|
|
||||||
|
namespace LeechCraft
|
||||||
|
@@ -985,7 +987,7 @@ namespace LeechCraft
|
||||||
|
|
||||||
|
Loaders::IPluginLoader_ptr PluginManager::MakeLoader (const QString& filename)
|
||||||
|
{
|
||||||
|
-#ifndef Q_OS_LINUX
|
||||||
|
+#ifndef WITH_DBUS_LOADERS
|
||||||
|
return Loaders::IPluginLoader_ptr (new Loaders::SOPluginLoader (filename));
|
||||||
|
#else
|
||||||
|
if (DBusMode_)
|
@ -0,0 +1,48 @@
|
|||||||
|
From 2db7cf510491e3ef2f25341b35b3705acf824bc3 Mon Sep 17 00:00:00 2001
|
||||||
|
From: 0xd34df00d <0xd34df00d@gmail.com>
|
||||||
|
Date: Thu, 12 Jun 2014 23:38:39 +0400
|
||||||
|
Subject: [PATCH] [Interfaces] Added missing include.
|
||||||
|
|
||||||
|
---
|
||||||
|
src/interfaces/itexteditor.h | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/src/interfaces/itexteditor.h b/src/interfaces/itexteditor.h
|
||||||
|
index 059b936..0004bc5 100644
|
||||||
|
--- a/src/interfaces/itexteditor.h
|
||||||
|
+++ b/src/interfaces/itexteditor.h
|
||||||
|
@@ -29,6 +29,7 @@
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
+#include <functional>
|
||||||
|
#include <QPair>
|
||||||
|
#include <QList>
|
||||||
|
#include <QRegExp>
|
||||||
|
--
|
||||||
|
1.9.3
|
||||||
|
|
||||||
|
From 317cbe27a95cc6536f163c0c833eeb1b4fb3f53b Mon Sep 17 00:00:00 2001
|
||||||
|
From: 0xd34df00d <0xd34df00d@gmail.com>
|
||||||
|
Date: Thu, 12 Jun 2014 23:32:15 +0400
|
||||||
|
Subject: [PATCH] [Util] Added a missing include.
|
||||||
|
|
||||||
|
---
|
||||||
|
src/util/qml/plotitem.h | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/src/util/qml/plotitem.h b/src/util/qml/plotitem.h
|
||||||
|
index 194c69c..8185851 100644
|
||||||
|
--- a/src/util/qml/plotitem.h
|
||||||
|
+++ b/src/util/qml/plotitem.h
|
||||||
|
@@ -29,6 +29,7 @@
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
+#include <functional>
|
||||||
|
#include <QDeclarativeItem>
|
||||||
|
#include "qmlconfig.h"
|
||||||
|
|
||||||
|
--
|
||||||
|
1.9.3
|
||||||
|
|
@ -1,2 +1 @@
|
|||||||
DIST 1.2.tar.gz 8246 SHA256 a7d7f1bd603249043d55ed833dab747a1c8552b4ebacf4c9df8ec283760b3a85 SHA512 d6a45cbc800edcc00bc525216698fa9898c1e4d9f3c66827f102475a12a5f143ace5765ee5fece3dc5ab70f68d41d2552d1f0478ea927d88e15c618275d07d4e WHIRLPOOL 98697a4a67107b8c2e1166d8a32351ad94f7c0e562f9a94b3093ed4834b5fa8401fdd335ff345b929d8a09d3823ef41a6061ef3ff9d19cea7a93faa3f213710e
|
|
||||||
DIST lcpackgen-1.3.tar.gz 8273 SHA256 0d569a892f4f533bcccf7c2b89849fd539c9847da5543f00ea5560b92be45893 SHA512 fd7b0eab958082ca421d87a8a15626d07ff2a65e54f7804fa227267e71310d958c3cf7954db897b7f737076249018a5e861bde371742fd3764252ee0bb876df5 WHIRLPOOL c0255fd0b0e51ebf1e6082cb7a2425c8990c5524a6bcbfa971715e768fe0d3c74811d00b03d58c0daccc24448d7900806534ac39a9d7c3bc8abab8fb4b5cbd9f
|
DIST lcpackgen-1.3.tar.gz 8273 SHA256 0d569a892f4f533bcccf7c2b89849fd539c9847da5543f00ea5560b92be45893 SHA512 fd7b0eab958082ca421d87a8a15626d07ff2a65e54f7804fa227267e71310d958c3cf7954db897b7f737076249018a5e861bde371742fd3764252ee0bb876df5 WHIRLPOOL c0255fd0b0e51ebf1e6082cb7a2425c8990c5524a6bcbfa971715e768fe0d3c74811d00b03d58c0daccc24448d7900806534ac39a9d7c3bc8abab8fb4b5cbd9f
|
||||||
|
@ -1,27 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-leechcraft/lcpackgen/lcpackgen-1.2.ebuild,v 1.1 2013/07/03 16:52:54 maksbotan Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit cmake-utils
|
|
||||||
|
|
||||||
DESCRIPTION="Package creator for app-leechcraft/lc-lackman package manager"
|
|
||||||
|
|
||||||
SRC_URI="https://github.com/0xd34df00d/lcpackgen/archive/${PV}.tar.gz"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
HOMEPAGE="http://leechcraft.org/"
|
|
||||||
LICENSE="Boost-1.0"
|
|
||||||
|
|
||||||
S="${WORKDIR}/lcpackgen-${PV}"
|
|
||||||
CMAKE_USE_DIR="${S}"/src
|
|
||||||
|
|
||||||
COMMON_DEPEND=">=dev-libs/boost-1.46
|
|
||||||
dev-qt/qtcore:4
|
|
||||||
dev-qt/qtgui:4"
|
|
||||||
DEPEND="${COMMON_DEPEND}"
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
dev-qt/qtsvg:4"
|
|
@ -1,24 +1,12 @@
|
|||||||
DIST amd64-debug-libreoffice-4.1.4.2.tar.xz 953584944 SHA256 d3f0efc1c6f1e5257f908bbf01ca32ed98a33cb8a6a6c017f43d4b0339d4c899 SHA512 f7fee68c905a51cd60c948abe02c7640ec0c67e83459652535a2c43f906494dcd5cd5e1f64fa1c7d87d2249d9963f68722461a43975ac469d3496c05852739fe WHIRLPOOL ea7d07643eb3416e9c7f1a7eb2222795dd5c27bb5d236f07c8b181191909dbd39635cc2d00e7f9d657c5453fd0767fb6cccc7dbc8f19dc87fadaaeaa5f39c6e4
|
DIST amd64-debug-libreoffice-4.2.5.2.tar.xz 1017463372 SHA256 7a8678668a419674a52a891cd594b61f4d9e0188f4ba6d32740082bd4bf6419e SHA512 8f151e455043473203e7b0050072642765a00cda6fed3a2e18e00f99efa528e07c8b69ff5c504f860b3774bc6f9d4b58acead42391d75b951e7f28c9211f965e WHIRLPOOL 6fcddb58477de4d3edafd8cc35efa5a7d34af4a4497d37bba54656a4617905f9a0f73263c871a8f703fbfc6541aea24939d6f98e896801556d73dc5159de0bc0
|
||||||
DIST amd64-debug-libreoffice-4.2.3.3-r1.tar.xz 1015228024 SHA256 113261fa889e2a38809a94513d552739b078f568e59c6d934809f99e9535bc0c SHA512 864a4f23fdaaeb9600cba7a34fef9e3e02caffbbe2cdb52482bb34038789cebbc7282e97011beb4c5a22513a1fdd0515a07829c56216afba144e61c369d024f3 WHIRLPOOL a081e311646da0955ca1ed9cc3afc0e5cfe4488fb4d5b25532ea5d7845402d603e0d695e90e4598a77b9b6cba7cbfc2aea7724637a039f2d805003b73aafb128
|
DIST amd64-debug-libreoffice-gnome-4.2.5.2.xd3 5279694 SHA256 2b6cb6d3c9bbe9479004b0793cf91fe1fb5d8406282ac6f4dc96af39ec84644f SHA512 319830194975dca4a20291f4c1a18e59f96705fa68dbe5460503c5bab39c8050ce53a958532dc6ea99a8ad75411f638d76f614cc86760aa1ce53e77d9eb9fc33 WHIRLPOOL ab92fd0d312474b6e10ba68fb980bae502038b2acd2cc6e9ce593abe3c145b0c89aa5567e78e9c16e8925d8ab6da66ba6d272d57ce6d2307e9c044fb5472f1e8
|
||||||
DIST amd64-debug-libreoffice-gnome-4.1.4.2.xd3 244880120 SHA256 76829716c34ce966778d326844dc829c2ce788ea7cadb3614491b1191f0b34e3 SHA512 af01b288c1e5d01f575498294fad2311992b6666ad73f075d8c574055017439e1c002873c5688ad5e4a2ccf23e96160f5177bd0502fc0d05465753a89557af82 WHIRLPOOL fc2e67988658036f21ea5173f3e3a63fa59e2461496e0a44540dfeb47fceef75f866e64ed9db146605577c2e0c8cb25cc09e0d1cb7e3b0d76178f3bddc146a0b
|
DIST amd64-debug-libreoffice-gnome-java-4.2.5.2.xd3 469189910 SHA256 afb620c966a14eef18cbb4610b15ef91acf6bfdeedf1e3b270fafe02b7d963d4 SHA512 ccd247ec26aad12a86875abe766a54ef9d9a0adc27df722efe86c3ab2bc268dde577cb03149221c7410a7ba3def7165db6f4e02f1e09d77c9a0cea1930602b8d WHIRLPOOL 02cb3d228ce9ee7ba92b260e6ad7bed725920efb6e0507124a5716eedc8cd4eefbdba90b95ca1b7bf577f4192b488a6c6a97c17e40a1592eaeaf1764bcbc7d30
|
||||||
DIST amd64-debug-libreoffice-gnome-4.2.3.3-r1.xd3 5260477 SHA256 7242f5e7002dd67a28b31abea3fbb076c09baa942c4fe30bec82aacd5aaf9df1 SHA512 7fee2e9a69495b242ff63228afdb9aad2c0c81c6a6c66ff323ccd476f323828084438cc11ebb5e651654cd05a069e858b13b9fd787762ef5568d6e9828c94502 WHIRLPOOL dd8596bd223e77ed04c8227f1db6c916fd0c729adb038e58139535195ae829da624b3e4899bf0a20afdc625a7132a666745f58577970ffa22646d51de933f682
|
DIST amd64-debug-libreoffice-java-4.2.5.2.xd3 466499232 SHA256 206a4a0d05d341ed32d846ffe9336a77594f917b3cb72d5013826c974daba76d SHA512 8d8d498bdcf53203972302aa501fba09a3c7e474d3fba1c2fcc97002c33e69ce50f3c683055c99b2a2e6ff0dad66c72b0ef1e4fec11931d2ea937878368b01b5 WHIRLPOOL 1399e767c3c0df6c2fcb0decfb9541baeb8d3c18b759e0708c22da1303b037e45e5c1715bacbaa8a38aecbcad2b77ef147b7b666e8a3cf58a94b11bf9aeada63
|
||||||
DIST amd64-debug-libreoffice-gnome-java-4.1.4.2.xd3 644389298 SHA256 73253f968159f1f93e904e0af76c2231aa03b0204318032d89b76e995c4b3f35 SHA512 90ba5880d03b50037f6610c386a827004cf67af64b4ee57c01569fbe6126f37064d9beaa6470235b74cdf6b9ff2fe96bb41ac81d6b6fadcbbb94f77aeea487b5 WHIRLPOOL 8805e2bc307c07a902aeba83ef1f59f758c2e112d56e477be0af8dc3749172294636e0cae4949682c47cd2d4151e20cb989ea53782a8d6a6aa2017a5ba6d72e3
|
DIST amd64-debug-libreoffice-kde-4.2.5.2.xd3 271409559 SHA256 1a5baf5bb9fe7669494416a762a965c67efc3f216e4ed01271097886f33cd7b7 SHA512 1519b87230f9842e3f96ef9f7db4255704f530f6ff3c2be85c899d12eb85b781868670f1d5a916bd506cb647aad992c4987bd1ddd35a5df671bd81cbb7d90a75 WHIRLPOOL e53dc0d55c04bea00a5db7d496984108932a593e9f1cb001740a3100db0f8b74f65a844890588269bf93d0f5f4e4896e17a30c525b8542e942d83021143869d1
|
||||||
DIST amd64-debug-libreoffice-gnome-java-4.2.3.3-r1.xd3 472184305 SHA256 c1de7c365ec106e10b5885dc5e51a826dfd6b214c9e46078358ca3c224328f42 SHA512 0b67e35faa58948f0dd3ee7345e13cbe7cbe1c3d334977e67938b2f9d0dd8bdcdaf645ac38abe3afb50e4a73a85576658e3ef08c59ef03a98c5185a1ac1d9291 WHIRLPOOL 55ad64d1204ce339be32fa637121e5c15a99c752f20bc5e17a215dd7025ad7e94913c7a361d1ba83d8508c27a4f0e536bdced5072e42a00c393c8a3971908e24
|
DIST amd64-debug-libreoffice-kde-java-4.2.5.2.xd3 468349659 SHA256 92e7ee3130037002077c6e9df16e84745880e4a9df7706dc5b297b71669a442f SHA512 961a2d5d1143efc618984e2875008203054ef28ad80c490348b87aedd25d3d1c2fda7f479a02cd34220d72be9744ef254f12b9d42176b4e3cd9616cf1fcd3289 WHIRLPOOL c78176a8741ac93d6ede06a397cc988b16e71575865fa162b6178e582ccb90841addb0a2f50532cd151c68891bfec3d07e3128d75087ef4de35cf87bf83e157d
|
||||||
DIST amd64-debug-libreoffice-java-4.1.4.2.xd3 641828100 SHA256 b6251c84f9223c6cabcce6f6a7f12d70b1ef3583fdb198aa9a589e8b6f469f5d SHA512 a75c78ab97ad60f8274a633a6cf57129672fbe1e798547553f53bc9f7db8b7c7ad784ec4c4c4cd3b1487b2594bba679608962fd0cbd84b8fe1433e5ab8c74844 WHIRLPOOL 3ba5f8d102fb09457d6382e34de7e16bf578acfc1b9992b2a56747de86aa03d3c6544f3e73a5d77af5a1da7da9f59d2bcb13e1820124a0ae13e9a445e9e7e1c8
|
DIST x86-debug-libreoffice-4.2.5.2.tar.xz 951615400 SHA256 12d17f2b2af0226c35b1d42101c5a88b7f9998b51a0c956e5117a19fde3f8306 SHA512 eb83289dcdb41f418fb8bc7e88dbd2c8b8fd157d0e75e62acdcaf72dc45697020ceb692ba438acc143860f8d3cf32ef07c0973c10d14ee5ac38eb45bb05411b2 WHIRLPOOL ef10696e3d3304e30de8ec3c1b1cd74a1825a26996b29ea1d98d7389a3400fd8a71ab4b57bc54f4864e7134b4d9d9cc776895acb0196681366bc258cfd443893
|
||||||
DIST amd64-debug-libreoffice-java-4.2.3.3-r1.xd3 469454914 SHA256 69a18e19319b8106644260807d45a69e9988390d13bd16eb525658417a69870a SHA512 0f0ca49855ee1e89cba9f4f92d9af83e8254c8bc833bc3540aa14a2e7fde9d6111c97ff616cf439d7f030714ed49f04ed5a5843cad9c5ca5f077183296edcec8 WHIRLPOOL 5e64a8bd4a47716290e97320793cfc72709a0fdf8f8796590e9d6702204aefe26f6977eeb98bff4bc20a6d760d9f6537f15ece02122ea427f4e80e48a6d445af
|
DIST x86-debug-libreoffice-gnome-4.2.5.2.xd3 4996704 SHA256 a41950b760a7ad909289d2acc6253ef2ed40d2e43f267da8bec56e1f6920042d SHA512 7c34800f7a3b414da8077fe13b39b4bbe40294f0c744873559b2f95f6b4619b842df9b403d415930d3e97cae6463b1c5524f97bb7d71298d6f1cdba51bb6fe3f WHIRLPOOL 97dcd5f130920d0f4df7926769c4fb70419d3c171a66112af24511ab5e69951e0970c9d97ed29be8229dbfa246945278b28a9263cf33a3fde9b4c02975c68221
|
||||||
DIST amd64-debug-libreoffice-kde-4.1.4.2.xd3 258096949 SHA256 fe1355ab0b774b70aeb08784e0825a283cbce812ee53258ecda10ef616230708 SHA512 e5e49d7bd75b6d28b4c1de450e6ab3c7b25db4195ce6bf42cc743af3714b36c000fca7ddfd7847167e79fcf0c0cd46c9d8eae4ed5a99918491527cdd269b9438 WHIRLPOOL efcc68a96db356f9f5ea47b4120a5b25a52bbe7eefc35ee84e089ef8960dd756fbd6fd6f06b7ad371bb64e02513697c29d7b8f0814b6f3d26f9345690054760c
|
DIST x86-debug-libreoffice-gnome-java-4.2.5.2.xd3 423656368 SHA256 f68cf4081e0c86de18e2c51049abbbd2f863d831d0fd146f563a83adf519e7e5 SHA512 2a51c2c50aacd72aa086a0cf3f6cf94cb186988a96b0b69963b7ef5dec5dbb99df414bdc150460567653109a0b752ff53e59059c272b69793f486d2f335e6c08 WHIRLPOOL 0e48de09995607f796926a8f9dbc77685fd3dd52fe764834d95f32fab8e511b3d5ec8e9fa8dc279dd04b4394fa1976ed2ffec38ead795965382d95acf33b3fb3
|
||||||
DIST amd64-debug-libreoffice-kde-4.2.3.3-r1.xd3 271559009 SHA256 a4c401ea87f275298f78dd134f248effa3bce2139e5d9eb2375ece503ed75a16 SHA512 4e85afb2a05b50c8f801f22a083b4e12ca3a121ce88a622bf89d20ca63703674f2c3f9f65f41f9f92c92059e8902c533aee44f791caf7fb1b5ee8ce31cedf26e WHIRLPOOL 7b6fbb27edc9b64e827b83b3af35d15185ca3742f185abfc8a775b901d7eec7031bc5bc5a8d7c485abd9d729d79bbfcbea34b8330969d0cf0de57445860bf12a
|
DIST x86-debug-libreoffice-java-4.2.5.2.xd3 421160965 SHA256 5fea358463e6625d1a59436a343017baf7be8f7fa6b5e0fe68afd85476345a8a SHA512 c5bba189e6c294053d8b02003156076ae24f9453763d0a4ccf90bf7ff70664e2d5467b1c84dafc4269ad9dbec4335889c24845ff39dd1da290a1694ef1ea5881 WHIRLPOOL cb9d85aef78b72988563b4619ec3b9c68b427768256f6ce1d30ab26ff07e1f510a63424f012a5b9bdddff5445713d81f63d8c8dfa0bb714a8335f4438b0d7e53
|
||||||
DIST amd64-debug-libreoffice-kde-java-4.1.4.2.xd3 643469919 SHA256 7b9e0fe7d1b955dc30e337cdf589b50ea19f6fc026217d7aeb73dfc30774e628 SHA512 e23d80f7ab314e6005ac0c65b5049a8ac453357919d31a41b33291bac286efaf383367187e071d74cd1030888d9e340c6a91614dbc20d88ff6286f2727e3c89f WHIRLPOOL af20903714710f04a1b9ec09306dea0144eaf3b9f276869a526a65338ba8248d45fedbb4e72acfbc64538e86605f48efadba13edb4313c814a8c59a4a596b25e
|
DIST x86-debug-libreoffice-kde-4.2.5.2.xd3 250154864 SHA256 9dc864022700c561d6d4ebd2353dc5bb75828a447f4150cfb50f08fc902395c0 SHA512 3829e43e22302ff0d0b9a8f63bfab84ce7157748efad7b1750a02a045c0250d232eea5aa05b77d4f949ef2953828eeca8b23e146a93255180a73ff366a0b47bc WHIRLPOOL da1c3607d65ae3a3aa17c4b3f21f1b1bd6137c61d453667562a1d8cdc45c12e043a25a5834c2bdc67ded40f724d26491e4d42cd85aa83087a090fc53efe9f581
|
||||||
DIST amd64-debug-libreoffice-kde-java-4.2.3.3-r1.xd3 471304077 SHA256 66552c12d6e84fb9a36ebf00a465c18948ba09eea17dc685d45da605611ed2d9 SHA512 00884e97075c0d3f9786bb99f3101c9fee1a46d23ebc1fcb63d1f82a902b367c34c59c90279732d7919b58d24be6b6400f6ad4aa481fbe5888f825d797d1b6bb WHIRLPOOL 4adddbf9c5ae1d3d3c0ae3e27de9d3d0bb035a3123e68a18ae2b4ba107ca4a67e3c8dbd64eb10783c350c4ad0cc9c01034cda491fdba423590c685d91f637b16
|
DIST x86-debug-libreoffice-kde-java-4.2.5.2.xd3 422840827 SHA256 08fe2c19f164d639a49a3ab02bb421d8b1cdbfd5a0d1aca8bf7ccd6c20c53aee SHA512 a81ecf415d3dcc6fe138c38ee88dc7d8b9ec42f73f1a0d6655ecc05ad60e6916096bb52f210ef3f338214fd9e4626aed72d6730d8e6208bc5ba2fbb7addda6dc WHIRLPOOL 78639288dd2dbb8371848cbf09de9ad2b05cbef2740e6d7a494614e736f4248fa7bbdaaaf8e5618c00ef4d14572c47ed19e980fd8c9190a7a22e7d10b0ddf947
|
||||||
DIST x86-debug-libreoffice-4.1.4.2.tar.xz 887608708 SHA256 b4d89de8bc7b23e527161e67b86137b0c7af9b0501daaed36d8d8913ef3bde2e SHA512 0e74c96c1bce135346a3c9ee929d201197216e221784e6ec2a11a5942af8792ed452f154df14cb73ee6e75917498cb807facf0d3f1e2658d700a9401ae0e02cb WHIRLPOOL 9d5bc4eae92f2548cd717d40ba7d227479f8a1ef168919ff3e5361818ab5f4f5198404b1e59e7675d06af1636e73e1016a5a3d7da8321c1d7f579d2bd0e35efa
|
|
||||||
DIST x86-debug-libreoffice-4.2.3.3-r1.tar.xz 949212236 SHA256 e6ddd76449f0a1ad64059fa3d4c95f1f7add65516b21a80fbcd17c99eebc6451 SHA512 95c93892edd2f9f46ae239343d59d983c9dd3b489a80e5652c8c7b9903b3a53bf346465d745e5bc431dcebc9e03e60fa342661ac025548de4852989d61be83a9 WHIRLPOOL deaee6f4155586ce039de7d413231504affaffe8c5f5c8f48aeb0136d28f3a741e3ab06391671bb299fd231732866caf27c4a1212baddeb2c0309b7cc3693e66
|
|
||||||
DIST x86-debug-libreoffice-gnome-4.1.4.2.xd3 223476102 SHA256 ef299925bb30776b969680fae8058753a8b5e81667bf227eb14c2d0cf4c7c04f SHA512 34fcd564618d87f40db347a695b3a1c363fccee1a36fde3ac942256686b81d3f61250acc08cf52486863e8ec3b83104ec9c34372f0cd6285cf111066c4c645c7 WHIRLPOOL 3ac7b1d52c112712f40df7890bf4b16d3002552a1b006943c137c1ff045df2916d7e5e60bf860ae92831aaa1d05d06bebe59cfd536ab8852e047c2638cac9b8b
|
|
||||||
DIST x86-debug-libreoffice-gnome-4.2.3.3-r1.xd3 4993666 SHA256 b27a9a22ce68d8bb6a9b15f7858b94f72b8e6049994dd40a78c69eb0e0df4fb2 SHA512 1cf13033c343f55c58f803cca31035ede5c1d83dd787d61c65d87bf7499a0aa6faff30187ebf633e2a92aa477dd854650d068e538453003622532a8d38201254 WHIRLPOOL d66ddc30af7bdbbfaadb6ca63d32772cb289de768b807de84d16c4ee82da0a96c4cb0333207ca5f78905b9f5083065eb5b4d5516e2288b203b3aeb4636e1fc5e
|
|
||||||
DIST x86-debug-libreoffice-gnome-java-4.1.4.2.xd3 585776254 SHA256 0eb6e39d34c96da0507266592ab77358f0288835c9da17cdf419048ede959adc SHA512 9184746cf01ddb0c102ffa29a80d810699c3079c358b7223c85e7097b208854d603133f113f8231f9495b5c6208fbbb60b4093abd9fab495ff828c5897568059 WHIRLPOOL f929b43dc6a445d4179ea2fc7a21d4defc505ad7b778a0d63d9bc057044ec38cc7465e643231285c466b53a127ffc9118821458d6f585b060162c479574c6684
|
|
||||||
DIST x86-debug-libreoffice-gnome-java-4.2.3.3-r1.xd3 426959615 SHA256 756b1b204007406c028283973187caad69122f116d2c76e457cbd11c5675410e SHA512 520ab737116f07cf8f9c8d9113531e0b0a1a07cbc8ecef1a6bc5748ee05b51dfd1f821b3f544fb2bc7ef95dc27f2301984a7b9907041a9ea4f78ffebe2d041e8 WHIRLPOOL 81576a646b104dcb4c9ce647491acc580916cb53604268ec46e569ab918027a60169223e9d9638ee11e0c210f4d39f9e3fae2e0a6a52f85ecee744fb8027e6e9
|
|
||||||
DIST x86-debug-libreoffice-java-4.1.4.2.xd3 583350054 SHA256 65d03132c7d70681a10200dd609ba5bd0799cec38824aaa4abfdf2f254b18784 SHA512 f3abcad3bca7711a774e30cca2a8f838b0c60d7f36354d1100e6a9f96ccd09bfc1f750d9c0cb5e80d61fc0eee587722ab9606300d56001ea0ecebab3aee20a5d WHIRLPOOL 7751b2785204d56f89ffdf2663191c93249c10c9896de866cb0f12bd7a88f2690777124ff50263700e2d990f53d134f64c8cda8e4d8dbce4807abf185bcc6536
|
|
||||||
DIST x86-debug-libreoffice-java-4.2.3.3-r1.xd3 424457394 SHA256 4f91d5f13962c28a8547032ea4b2a410c1afac803f532ed5d1c460cb39c30caa SHA512 5e04ca2e29b971227eb77c2d45d31bb82de6810b5631b6780635921d1794b953216af564a2ccc582eefe2e6ae6c055aa001d52e20007aa15c6ba26508ddaf936 WHIRLPOOL 3b3c289a2743b5c4e1dc5d83600d0d72fb0937860bbac645f0b032e71b06c02437df8931b21579351403ce70e55ebf4310ac33c165353f5afdb5f105febf0838
|
|
||||||
DIST x86-debug-libreoffice-kde-4.1.4.2.xd3 235680620 SHA256 e54dff2a67f8ce58e7a50365fd184947e8d5c6d3b608ab04775acb25f76c08c4 SHA512 ff2da2b02d84c4afba963da6c802cc27e48ab429c445a5a37196fbbcae911457fbeabbacdd594ba7b6559e6631c7f2d047d54fd54b458f55fd0f32540c30d541 WHIRLPOOL 9954bbeb4fd354776bbe0da624ae2e7a3aaa83f44047e0efe4b0157d7ae06a366c05d5e41ea332f8abf77c98df6550b6cf012d7a0b5f00f0492a1e8ffa4deeb4
|
|
||||||
DIST x86-debug-libreoffice-kde-4.2.3.3-r1.xd3 249706187 SHA256 d3b79ad4290ab552e8d5daa5ca3125a0cda0dbac7bdad2176c11d744c33a4839 SHA512 22b6e2933af7b952508b35763975ae9e77dad27102578cc522199c9b90ffeb6bfa7fd49c96ea1c4507003171ecd4d882b3e4f0039b36be3be247dc6fc5df76fc WHIRLPOOL 9f935e15891d6804abe4ec2fe55153dedb5f441a623dc23a92c17d8c2bc59b4bd15a59b371ffa7e13d4797a435102c72350cd3cceffcad22303199b22252123a
|
|
||||||
DIST x86-debug-libreoffice-kde-java-4.1.4.2.xd3 584803018 SHA256 1f3d146a6b288d20bd4e2abd4ca909d95e7cceca012938f271c4838c00a68b4f SHA512 fa384865ce9bdd96f677385db5f980703c40b48906a20ec11c4dbf60e1b0f9414cd2f924725d7bd3a71046ce4303e6d81a3fb531eb45953af4576e47df183d33 WHIRLPOOL 0cbfc0402afedb853f9642e43f8d865034dadd992611f1a64acf97d5077a18e3e2b65b3a609cfc9d2daff91629fddb34b5d6157423712bbbd3edeb3dfedbb9ef
|
|
||||||
DIST x86-debug-libreoffice-kde-java-4.2.3.3-r1.xd3 426079074 SHA256 564ae322f6873330dd3ce2b1f15ce2d812504a75e3764228382931dc1813fa5c SHA512 2edbdb66575eee8959b74e2713bac07a593cb2d98d318e32e6952804665401215011172235d36b99855b642d538d4745d8cc8bd197db1c564a8bdf55e0c78978 WHIRLPOOL ff9b05e5f18f32bf426cd2fa1a211b78171eb5b7f324b5ceb31c3b7a37470cd71da233322c0cd8bfeb389f39d9ea4911451feb77098f3cf23ca7ecb758a1ba87
|
|
||||||
|
@ -1,86 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin-debug/libreoffice-bin-debug-4.1.4.2.ebuild,v 1.3 2014/02/22 08:11:45 ago Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
BASE_PACKAGENAME="debug"
|
|
||||||
BASE_AMD64_URI="http://packages.gentooexperimental.org/packages/amd64-libreoffice/amd64-${BASE_PACKAGENAME}-"
|
|
||||||
BASE_X86_URI="http://packages.gentooexperimental.org/packages/x86-libreoffice/x86-${BASE_PACKAGENAME}-"
|
|
||||||
|
|
||||||
DESCRIPTION="LibreOffice, a full office productivity suite. Binary package, debug info."
|
|
||||||
HOMEPAGE="http://www.libreoffice.org"
|
|
||||||
SRC_URI_AMD64="
|
|
||||||
${BASE_AMD64_URI}libreoffice-${PVR}.tar.xz
|
|
||||||
kde? (
|
|
||||||
!java? ( ${BASE_AMD64_URI}libreoffice-kde-${PVR}.xd3 )
|
|
||||||
java? ( ${BASE_AMD64_URI}libreoffice-kde-java-${PVR}.xd3 )
|
|
||||||
)
|
|
||||||
gnome? (
|
|
||||||
!java? ( ${BASE_AMD64_URI}libreoffice-gnome-${PVR}.xd3 )
|
|
||||||
java? ( ${BASE_AMD64_URI}libreoffice-gnome-java-${PVR}.xd3 )
|
|
||||||
)
|
|
||||||
!kde? ( !gnome? (
|
|
||||||
java? ( ${BASE_AMD64_URI}libreoffice-java-${PVR}.xd3 )
|
|
||||||
) )
|
|
||||||
"
|
|
||||||
SRC_URI_X86="
|
|
||||||
${BASE_X86_URI}libreoffice-${PVR}.tar.xz
|
|
||||||
kde? (
|
|
||||||
!java? ( ${BASE_X86_URI}libreoffice-kde-${PVR}.xd3 )
|
|
||||||
java? ( ${BASE_X86_URI}libreoffice-kde-java-${PVR}.xd3 )
|
|
||||||
)
|
|
||||||
gnome? (
|
|
||||||
!java? ( ${BASE_X86_URI}libreoffice-gnome-${PVR}.xd3 )
|
|
||||||
java? ( ${BASE_X86_URI}libreoffice-gnome-java-${PVR}.xd3 )
|
|
||||||
)
|
|
||||||
!kde? ( !gnome? (
|
|
||||||
java? ( ${BASE_X86_URI}libreoffice-java-${PVR}.xd3 )
|
|
||||||
) )
|
|
||||||
"
|
|
||||||
|
|
||||||
SRC_URI="
|
|
||||||
amd64? ( ${SRC_URI_AMD64} )
|
|
||||||
x86? ( ${SRC_URI_X86} )
|
|
||||||
"
|
|
||||||
|
|
||||||
IUSE="gnome java kde"
|
|
||||||
LICENSE="LGPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="-* amd64 x86"
|
|
||||||
|
|
||||||
RDEPEND="=app-office/${PN/-debug}-${PVR}[gnome=,java=,kde=]"
|
|
||||||
|
|
||||||
DEPEND="dev-util/xdelta:3"
|
|
||||||
|
|
||||||
RESTRICT="test strip"
|
|
||||||
|
|
||||||
S="${WORKDIR}"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
elog "Uncompressing distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz"
|
|
||||||
xz -cd "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz" > "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die
|
|
||||||
|
|
||||||
local patchname
|
|
||||||
use kde && patchname="-kde"
|
|
||||||
use gnome && patchname="-gnome"
|
|
||||||
use java && patchname="${patchname}-java"
|
|
||||||
|
|
||||||
if [ -n "${patchname}" ]; then
|
|
||||||
elog "Patching distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar using ${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3"
|
|
||||||
xdelta3 -d -s "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3" "${WORKDIR}/tmpdist.tar" || die
|
|
||||||
mv "${WORKDIR}/tmpdist.tar" "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
elog "Unpacking new ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar"
|
|
||||||
unpack "./${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() { :; }
|
|
||||||
|
|
||||||
src_compile() { :; }
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dodir /usr
|
|
||||||
cp -aR "${S}"/usr/* "${ED}"/usr/ || die
|
|
||||||
}
|
|
@ -1,24 +1,12 @@
|
|||||||
DIST amd64-bin-libreoffice-4.1.4.2.tar.xz 77848892 SHA256 f39030d30590bb37852417676036ec4a5f1870e78d0c10f58069421e6d361035 SHA512 7b36b71d1e0444d4cb7e94bd8d21e3234f6ec729e64ea654b9c6fe7d310267a1ebe140151652eadae47513b4e9cac90f46ec71b3abaec857c2988122e44b3d2f WHIRLPOOL a4ec8587b2a5a1948cece52480a9a6226cd894c5f8a0270850f18ab1131eb4c7fb93cd34bedfc28caf36da6f5b1447c834afd71a2d153f694af9d5c176f5a1df
|
DIST amd64-bin-libreoffice-4.2.5.2.tar.xz 72147208 SHA256 71224e82b01ef5f0b9d62c6c799dc330b8d47690ccb39699f3b48768a71d6b39 SHA512 25aa83c9f8fd0f3882f604c9c311d2bedb44f6538db5d1e6d1ca8bf3475aa28e9a44d24d9c0673a24a47aba20bf787c469049b6f6920f457f6962bc893bb521b WHIRLPOOL eca2b9b4dc1209780a5e86a4c6428b78c4d56d23861ff6fd3f49061a05ea9b2b220be8dd1a761449ecedfb7bfd412d955169050ff9f57b945fa5e064c054965b
|
||||||
DIST amd64-bin-libreoffice-4.2.3.3-r1.tar.xz 72106268 SHA256 6140632dc696e6b39058df2bb4a5decc4c7bc3e2e2c77171bf4e399784680f94 SHA512 814dbd663c227b3085cdee12dc6ba20b7cf071a4f1db68a89c22d96c3f16843823949ebc233451f0b30321b5e50180d8f04c7293199d8923ed5e28911a4f02e8 WHIRLPOOL 395120a543c5c065d6e2ab9c584e19ba609636a5d9f4203d7f3bfd9c4290099dde68992de4bf5b4f95bace41b86f4189343dbd7a0d03e2570f0f6980229e191e
|
DIST amd64-bin-libreoffice-gnome-4.2.5.2.xd3 419565 SHA256 7a200b748d3e6e09ea69c8d2f4b0b10a4759d96818e89fcc148776ae5c0b1639 SHA512 91ae3b9e9b00fb235c4da425bbebcc8bc77ecac6ad3f19c1f636cd675b46d28d55aac938e7878e0040da3e6fa3cca23b9b09c91339aaefd28c38995488dd87d8 WHIRLPOOL 1643cac6910296678a09022ed2eef26322360ee1617d7c94a4e89fcd759d0829a46224039aa8f74d7938fd41b8f07ea28979b4d4d9d306e2e7afe74cff63d226
|
||||||
DIST amd64-bin-libreoffice-gnome-4.1.4.2.xd3 6619851 SHA256 ce4c8c86d8412d25324bf28da95b36a04ba6678eb75c239569dddab5ff166ec2 SHA512 5d89dced26b0c21b38f170482b733a89c88ab771f191c8a7722836e15a9cc8b48c16a199b141a8aec6058a19c3a72309837fdeb2237627cfdd9c00d469b38446 WHIRLPOOL 23622fceb2fc64aec8f7b98cf343bbb48761f53d3df5ba1faba4512fb6783d78335b95f9ebddd7df19b42d9f316833d725d24a04015a08cd626267bfb28c5fc9
|
DIST amd64-bin-libreoffice-gnome-java-4.2.5.2.xd3 22719562 SHA256 3a5e6a486f1aaec9fcfedfdd9858526fd4b28f355162c0933d1245f2516f7a14 SHA512 e09f3dab572bf9972eff2ec9a5556e6ac945edbdad6f1afb7de8349949e1f42898ec154cec12dfb0cac3fefc3988e5cb911e146cb59a8b82f090c97708131094 WHIRLPOOL 88d5b8212a348f836bd0f7f8ea44b1a572156d4431dad33ed2d6d83af900ceecf1de4b32eeb347d9cbd1fc36069b387c0b780bd484c031f5b5e5ad258e6eadb7
|
||||||
DIST amd64-bin-libreoffice-gnome-4.2.3.3-r1.xd3 418963 SHA256 abc132e127bce816781e529d4d6d2b19165ceb1d3eee24c457bd6d4c84c8e872 SHA512 5a42b9f8995beb25fa41d33ec7bb081dc33d6874ea00214625bea7e517c52a3baeb5e20abfa31c41c7045d451d28bb58e22a638a78b84e76e308695cd9b6c765 WHIRLPOOL b689f2fa65a36f5b897a579dc91319c37a2519e2d3eb6f3d61e18e417a90ad76c79ac3cfe92c312e27b89180519002513e7f746fae31c2d007e447c2ebcfb01f
|
DIST amd64-bin-libreoffice-java-4.2.5.2.xd3 22359259 SHA256 1b2c461fb5201dfbc84dc9fffe701a0371ae8bed58050cf6dba780b946550758 SHA512 dbbcc80ed202a9f20e179d07ed1eadeaccbcc6570ecba17f2776d7d2021626bcfd37b74cdbf81dfef08c7ecfe38585d35679ba673e129b2597b4ed72c336b15e WHIRLPOOL e3bd883d8f328e224a10e94ae0c4a95ddb78719072193335ce1811863ea823e71b67b82869bdb4f085ea322e626b61691fb0acd50251c712fc095da85f5d933d
|
||||||
DIST amd64-bin-libreoffice-gnome-java-4.1.4.2.xd3 22761361 SHA256 9b6a4922b314ccff58c3e4edb4698d5a282f3db18a308751af432204819848c9 SHA512 771770f0f35bbe1aad69422aec15d12d3414fe32a6ea9e830deefa4e23299abbfb1959e5f30df983b461ed4fd61e81a69a754708e85680e0ea30ebded3ba2756 WHIRLPOOL 4fdbfc99222e6d395674033d937e8b7faadc24cc457ed98e10320f818973d0a8a8a3109697bbab9008e3efcd2a2a42c1206d9ebbef96626eebea2077d0ffda42
|
DIST amd64-bin-libreoffice-kde-4.2.5.2.xd3 7094544 SHA256 7d2f4fae28e9dc782a34ea384ccccbd7f2a71ab954cc78dcddec9c4509230906 SHA512 084dbaf15a79d112868906f875e804ae58c632c57b5d178636666064bfc1a2e347b2b24062ec982a7b5f802aba36fd3f7da7dec6b07ee87ef90706e395a39caa WHIRLPOOL 80e8d013a16501697ad96af62725da8e4e4e8965e6ddf8fd33d86c8a0f7b65bd0b6b566f89aa7e1c44174f9f4f88df953e27edbc976eebc32abd2554518fafe3
|
||||||
DIST amd64-bin-libreoffice-gnome-java-4.2.3.3-r1.xd3 22745273 SHA256 161de5061fddca97e8a51ff19eaa8be88b7d77822aa456f9a2216cccaa286f77 SHA512 8830a4e48e13ab4438611c51dab2416580f1c63d7cd60a0c104c12e77ff836d7fb905f6a0fd0ea2274b6e59c57d357efc9cfaf8a135e0f50047eb6683c773805 WHIRLPOOL 07fbff15309ba233c69eb5cfb33224c9fc06e2c9042ad1089adae7a57118d265ab7b5869015f98174335ffc1564c88bc514067943e93629e92924133b49d4269
|
DIST amd64-bin-libreoffice-kde-java-4.2.5.2.xd3 22515791 SHA256 c9ac56cdeeb532b0a4f5bd3e09ccc02f1722702aecce10088d519c2ee9dddad2 SHA512 d062de707ee33227f670e86c8d20863f53430dc1d1e70f610d2a5b1b3cd373b0d8f987aea627829677064f85e1522b57ab2402950b6387058ef75a87d6113414 WHIRLPOOL d60bde1796cdd9b37081cf86c6f6b8ee8dc77005e32a150c550c45ad0c9c1f33a99d84d873fb741bde343265fc820aee24ab952f1acaa8825796c749c1e92961
|
||||||
DIST amd64-bin-libreoffice-java-4.1.4.2.xd3 22403295 SHA256 021b98f44c6b31f1053459563690e10e13f97543920cbbac49bed23ba499b729 SHA512 74980628132286c124646fc57ab4426ef042b24ead220a7fa37d60a580ec31d28a62b3e1b46b2a9bf8de10c674e120b53bdf2914d7bfbcdf012eb92956f0e476 WHIRLPOOL 40129fee918ee5d7e3f8f309456116c3a5a00952f047a01cd5cda415ea58f98132d028055b5053ca9691a21074129158594469ca29249a8f19a8522e2d8d2969
|
DIST x86-bin-libreoffice-4.2.5.2.tar.xz 71558168 SHA256 498c26a1c5408c510e26ffacca3d1cee2f9118d83ae8c16c81d224773ea4321e SHA512 a08929c35b9d105d9f60af0b3f2010bcc2a42c9f58117dd1e82b35f0fc18ffb57e55e31a5a904e77560f70243b44d33ca13266d51d3e813a78ec4fe655c3d569 WHIRLPOOL 8d3bead6af84142502b2e285daba8818b65809e8db1ef227871227e30ccb45f8cd08aa74fbcfe25c60b6c9ef77d0ba6d3072934337d44a468e1f73c47de9f8aa
|
||||||
DIST amd64-bin-libreoffice-java-4.2.3.3-r1.xd3 22409183 SHA256 df2b83ee7bd9370a56d783ae982522dca2820859e199545df1cbc381478632cc SHA512 66fc9e01a088fbe36c13012156fb970f457f0078a02f4dc096b9710cb6be20a9baab35fb55f7ac380c599f562df7338ee8d188a8c66639e32876f0b3678f2b4d WHIRLPOOL 6e6a325e681c8198508c2210e96bb8236eee419c0802c826861bf7ed6ea17405290274b8fd4e1cc6127e96553ed7bbff0a148a5d8f809227742298c0260e5553
|
DIST x86-bin-libreoffice-gnome-4.2.5.2.xd3 395149 SHA256 86ba8ed9010b882c259e0764936b78bbec9b53e13716a6c5997948bf862ffcfc SHA512 e7dbee58db2d54c664547199b3c570c298bd6fd395903a6c743d00faed1d1de928e3b1aac9d59097ff5c94b4b9f2dab524377c8bdd6b53724086eb533eb1e9b4 WHIRLPOOL 655d3d1cddb4b4aef35c0d06a0bb69c32ac761ba0df7af3aec4cb4dea3f4cd240ebc5f4bc3a049878f5348968cbea81c7e28bfd71b41879be85d694a336ffc37
|
||||||
DIST amd64-bin-libreoffice-kde-4.1.4.2.xd3 7041850 SHA256 52997b24d639c9ddd8630c6c747d5c75feac2cba039ed3d64d0a8094817eccf0 SHA512 277a8ec04b53231df7867176752785435ff3f159b21038a3ca51e927ad163a7dd15472349276a2543f2dd7af420a952d10d92daefc625302e6e5259c906bd0ca WHIRLPOOL 994f698b1e70e0518ed9a0d40e0a6ed20a2ce2bceb1a2c7db5bc580b525ffb3198de2ae0c39a2a76774945e74ccc873f592c3039664ebfb99e47d5a24d8cc888
|
DIST x86-bin-libreoffice-gnome-java-4.2.5.2.xd3 23016294 SHA256 14a1c383fd55f2fefd62f632cdc5cabfc4b9f025317b45e6e1d7036b1c927352 SHA512 149df4cde1ce0522e43e98e6f5f88d3913175495ca93a1d186ab62d00e760c747aa704ac05b02abb132909c36fb87683f1f5f0187f25491684c653ea9d7def5c WHIRLPOOL 413eb97e4728aa82e447410eeed7b494482b04c553d9772aac55ddea6b6068b74c00c166c297fdcd4174247c9f301f6c59438e978a0063f06b2696c5c4d04ac4
|
||||||
DIST amd64-bin-libreoffice-kde-4.2.3.3-r1.xd3 7085921 SHA256 2318272254463398436e01451917e83751e922d6c916b3945f9f204401c76d34 SHA512 21c6a0736ddce1283d5358a8c72bab20ff41c3f04500b9570dbb2d5a15beef64a3fea4d08bc271053bb80f382944146d356612e508a0dba5e9e14b16b5d465ef WHIRLPOOL 3ddd5fe87c9285199e7e0c65a73f26fcdbd2f31f072c60c7b8bac587ed009ed12db1f2781c13f81b60eb0bea1efc19a1f4e021550cfb43bde6682106e637130f
|
DIST x86-bin-libreoffice-java-4.2.5.2.xd3 20719209 SHA256 30c99fc9661137a8dc8d02331c1b58329228d7760cd13953a18593b98c36dc72 SHA512 d064b01f9ed019225ddead894aa95a715a22550480b8636141af08f091b7d3f61220d89e54bff350b09ff5c5455c5ae0afaff784db796f2a4e875623e40952f5 WHIRLPOOL 5d3e0dcf11615cbc10b19dc3ef00de6cfa4fa8c3b32b089c850b5b1699cac882492bda571bef45e62d6a849e13935789b693c7fd49efbacfb83989d131d4ba77
|
||||||
DIST amd64-bin-libreoffice-kde-java-4.1.4.2.xd3 22504801 SHA256 6432b5368b61671700d73915d9930a2d169b0ab073a01019e7907ff275fa11f1 SHA512 e55750306341e9024b71181aab01ebd30634a56af1d6fdbb950087ec233358a28fc2343dd0dfe27d2abf7a2e83ba4d89ec0934ab20dceff39078174db23d437d WHIRLPOOL d9af73dd64882d1b769403a9f019ad29bca9fb4705cda97635c50355c7eb133b4822aa3c8c98cf810ed9185a2f1f6ba7f67f9c50adeb1216932ca8c234395c66
|
DIST x86-bin-libreoffice-kde-4.2.5.2.xd3 6422120 SHA256 735eb123bb31cff74451c133ab27815c1732152921addb14767e6f2d675b8133 SHA512 d1a7b5415e1c93244379bd5779062d8280ccde74c334bb08c8973923e449a0aaeaf316f112b05994e8c7dab5f5504fb6367a61812099555061a885dbab1270e8 WHIRLPOOL 55bc256b0dead49f0c8f1d2195186f3d981acd9e4b89a851df23fbaec48b00f882f05374aa7903660731d029bb9a1157e6bb08f4dd3bfe3e2b69978455ae3571
|
||||||
DIST amd64-bin-libreoffice-kde-java-4.2.3.3-r1.xd3 22470702 SHA256 d25fc3a934d3465bd59122434020660265ae04b34e3cc14c8d690df245206169 SHA512 e5e6f57c2c88a9cfdcc8e21031a4ed223af9095c701ca9b6165c0e96e31a335f0ea8f1c31a093e7d1ef6ef9d58eb0a944b58383bb4817838d5d94d9106126069 WHIRLPOOL 25e5e1b55e38a71447a334a61f0e9a0931574d4d9af447a8aa334c9665a7de7f238f37d02958d208d24c5bae286da55de1e710858537502021f7765e4b393ba3
|
DIST x86-bin-libreoffice-kde-java-4.2.5.2.xd3 20811408 SHA256 5600de965d2dbdf59e1554b00e3c551ec6b7ee821b42dec1272b699c8631496d SHA512 67ea9933df43ac62597f3cd921e488aed2bf1cd87178c9e3fc19466d50c5af23aa22300218b6acba4aec5a394056f9519517fdd5ce1edffda0d43df4800c7ae6 WHIRLPOOL 20bf4bdad93926ca126be227c77777105e0dc393e929acdfe92609d479b02ca5f0d2edca05e44ab06ee0f3ae7477741d9bcfd0f35205408c63da4c7fe7a6ae51
|
||||||
DIST x86-bin-libreoffice-4.1.4.2.tar.xz 77232920 SHA256 347e2cee453f727f2bebbdeb8e6ce1fce38e5fc6222e85bf917f6c62393f3756 SHA512 4b80a2ac250e7910c6a3e3523771915a210c3f394cd3879d6f40572dc900ed8433e83157e9050f2a5c7583e70cb154ec6827932fbf056b48022c82617d0742c8 WHIRLPOOL 12930fee2f5ea0a7840cbd34f1332c505b09e37ec35b15b119a05bcaf04f8c676a78cc3cb2887d2ab1c3a6e6afb50ba233142b9d8de7c3338ce7cf48c9fa4685
|
|
||||||
DIST x86-bin-libreoffice-4.2.3.3-r1.tar.xz 71511624 SHA256 88e2e066ff7043e9c4200d87bed25bd4fa0318ec7bcbe740934679c54bfcd00b SHA512 f16fe75e4c14f9ee5958bbf46aa4102cf91bf076c84047b77da744619adaf606380ce14dd478b045dcfa36effa7eaad1c0c51f178a82c2b5cd78a434c5c96a2b WHIRLPOOL 7c059656f2636fb43e5cc18e5f0244140eda514e722223ec8858540c3c657ce98424b1a24bd6cc7f84d89ded02703df3a4339136efc812c06f8da834b06abe98
|
|
||||||
DIST x86-bin-libreoffice-gnome-4.1.4.2.xd3 4240754 SHA256 dd775b7980a48604858e5f4e79639fdd1a83a1a588b9691c699eb9d1022af881 SHA512 dc76a7fc08f9779595c7b47e2805181b3156f4544649de32354e56a4179e0acff32b63466a3d9889c02b568ec9584a445b39cfa3a15bb525cce58f3a46f6a5c6 WHIRLPOOL b363746a1549e678b5dbe779f5fca61a09d57f0aa9bf6d434b9c3f0af7e73e1d5e3f2033e6f38df0dd73b831c8fbd2017cb6d1d118d6fc6cbc76bacd446f940c
|
|
||||||
DIST x86-bin-libreoffice-gnome-4.2.3.3-r1.xd3 394315 SHA256 5f8a2121374da931930c36cb3132e6b3b4c0128f5d3e1d81d77eecb88a5414d2 SHA512 c63af669ff805292a6cfa16d1c3c33f97521ec8b20fc370dcea6eefa75b9173a725b3f98e4e371b7113c5082bebb4ea48b958646c2bd0249de12a9f34bbef982 WHIRLPOOL 513fcda7ccd0c2eeef930b4168d6fc27e229ec4e03e515fe22e644488db6df0ab550feed66562b04e85a04ae235b1d6bbb1e560295ed589c39d017fa8572ee46
|
|
||||||
DIST x86-bin-libreoffice-gnome-java-4.1.4.2.xd3 20359509 SHA256 1affd3a3195a82c46b1c20a64a3d4db932e844974e3f9a316c24f859a53fd63f SHA512 28f85818946e34cfe08bfebfd73001ecdd1cf1d1915c01e0ad3a2cca6c60341b437f279dce71affd5d5ef1c82beabb54756dd55393d0705795cc8991f61e574b WHIRLPOOL ba80683ba71ebe6e530ea3910d6f6a340fccd19713a7922401eb2090003e0d6e0fb36e1ac9278f753de86f803eb44eb0fd69a9453004e49ec4df7bab7217ecdc
|
|
||||||
DIST x86-bin-libreoffice-gnome-java-4.2.3.3-r1.xd3 20546491 SHA256 be6fe27655ffe9ed767b415e44649eef33059f4d6e462fc05b72110a6f487fd8 SHA512 293858aa8d41ee974041ce6de71847c54c6e15b932c1c0ce6850c3c4490eb9ef455d27e4f5a4f52ff38e67ce7186630328fc3c9ce398cf5ad2538d09d113946d WHIRLPOOL 38904967201b042d5fceb8d033c028536efe93397a9dabf9ab3d877ad5dfa07c438b1035186d68da499c42c394cf4859d240a3b3f930fd2ad8335853753bdd75
|
|
||||||
DIST x86-bin-libreoffice-java-4.1.4.2.xd3 20026560 SHA256 201c1371f9352fecdadd46fc65c1f316030fed99e7e52c529988bb81105d4605 SHA512 d8063ec5f57713919969318542378d3d5de2d6d8d3cdf1b86896f448b3d2a4d0bc7bcdcb7a84f8583e18417a2e2ddbe094781cb2d495f012761e0ad4920b1d63 WHIRLPOOL bbbb21e82da80b72b19b423d4ec4aafe9771c9f3aa9f66b77cc22f499738b2430c70abd4658e988c08415fbad51c7006dd16f499bfcb4b127978120d864eac66
|
|
||||||
DIST x86-bin-libreoffice-java-4.2.3.3-r1.xd3 20187207 SHA256 f36dc7c064f3496f231706baf730f5547a00b1e971d93c0cc56d1cfcd61ba313 SHA512 6792fcfce0a283374cf468bc80398a7aff838df12a80f3a2de1fcbe29b4a6361e10ef6828bfd253e65fda7e0e6e3f7bb90d71d95041851e375d4b33c9dcf98ec WHIRLPOOL 18cd6865dd964524afe18509bf7f4be58afd9ef9718edb363abbb7371ee4eca943ec3877b9f7af7d5010c1805d89343d25ddad4a95085646ab51623d6f6eebf6
|
|
||||||
DIST x86-bin-libreoffice-kde-4.1.4.2.xd3 7616390 SHA256 c583760c28f6770377bb1118c2c37be8b6a64cd7134e34acfc99f06eb43771af SHA512 2e4135cdc4c04069de5b1820f76a86608c1993ce621062bd961c21580c7f871a0de43d9373332e0b1323b7cb16c4ecd5b1f939a527e1b48803487badd7bb405f WHIRLPOOL 57a27b53d245540197e3041e0bb426e52ae86445a66285fb3efb9ada6a5b3026e4ebd414c9dc0d2339fb951e3c2e9be58c5027bc6708b0c635050cf76ec4a3b3
|
|
||||||
DIST x86-bin-libreoffice-kde-4.2.3.3-r1.xd3 6405672 SHA256 09fe9f1cd1644a383c31b30ee9b7fc7cc4097304d24582d6be8e22974c3216cc SHA512 b919b663a1bc65d7925eca802b39e160be4336a9232d5ef19e8bfd65708056b9e91d456719f821f121b76e25de18f5a4fb340d132fd1edf14642093287be57d0 WHIRLPOOL b911d33f50046a6af96f5e53f3e37faa7a300737e91a37e142453868e58d8c2302cea378ddb8e989faada6ed9170eee79355fab5d38e09cede59ef0382706c13
|
|
||||||
DIST x86-bin-libreoffice-kde-java-4.1.4.2.xd3 20677137 SHA256 123232e47aaa45ed6430f6a1b58daf862d390fd17b4319e4418326cd4ffb05c4 SHA512 f0176eca7825cfc42b664f010027dba154a257fd071b6688ba6cd4b4eb50b64f3359e1091d052beb668cb9a7ecf44fd064075704e49ee88b9df6ad08e8964423 WHIRLPOOL 559241680a657a64de333b0c9680e769d16e6c07b9b9f05f03f0a194b8c8c2cfc75c6a25826b6bc9526feea9d1d565fffc6f1e235878a86d32d6611bf6ec1189
|
|
||||||
DIST x86-bin-libreoffice-kde-java-4.2.3.3-r1.xd3 20280569 SHA256 ab9063f641dcd9df16bad65d22c4964c1f8bbd0f2d0235b23122d2a65387fc05 SHA512 d822b20ea5f8a2bfd2a07aacace2303b1509e39ab9225b1279284cab17664d1f599098665b2dd256e1452c34de0f50edca6215ea78ae12166df25c5b7cb66550 WHIRLPOOL b3ba6b05b2eb0a363182d5be8f8ce30679aa5e45af20a4b5a21861d0b7ce107873ae739f6d808b1671c815ba57a3f1184eecc653f39b9e80b3ff2b9a19bec0f0
|
|
||||||
|
@ -1,225 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-4.1.4.2.ebuild,v 1.5 2014/06/07 14:10:39 dilfridge Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
KDE_REQUIRED="optional"
|
|
||||||
CMAKE_REQUIRED="never"
|
|
||||||
|
|
||||||
BASE_PACKAGENAME="bin"
|
|
||||||
BASE_AMD64_URI="http://packages.gentooexperimental.org/packages/amd64-libreoffice/amd64-${BASE_PACKAGENAME}-"
|
|
||||||
BASE_X86_URI="http://packages.gentooexperimental.org/packages/x86-libreoffice/x86-${BASE_PACKAGENAME}-"
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 python3_3 )
|
|
||||||
PYTHON_REQ_USE="threads,xml"
|
|
||||||
|
|
||||||
inherit kde4-base java-pkg-opt-2 python-single-r1 pax-utils prefix versionator
|
|
||||||
|
|
||||||
DESCRIPTION="LibreOffice, a full office productivity suite. Binary package."
|
|
||||||
HOMEPAGE="http://www.libreoffice.org"
|
|
||||||
SRC_URI_AMD64="
|
|
||||||
${BASE_AMD64_URI}libreoffice-${PVR}.tar.xz
|
|
||||||
kde? (
|
|
||||||
!java? ( ${BASE_AMD64_URI}libreoffice-kde-${PVR}.xd3 )
|
|
||||||
java? ( ${BASE_AMD64_URI}libreoffice-kde-java-${PVR}.xd3 )
|
|
||||||
)
|
|
||||||
gnome? (
|
|
||||||
!java? ( ${BASE_AMD64_URI}libreoffice-gnome-${PVR}.xd3 )
|
|
||||||
java? ( ${BASE_AMD64_URI}libreoffice-gnome-java-${PVR}.xd3 )
|
|
||||||
)
|
|
||||||
!kde? ( !gnome? (
|
|
||||||
java? ( ${BASE_AMD64_URI}libreoffice-java-${PVR}.xd3 )
|
|
||||||
) )
|
|
||||||
"
|
|
||||||
SRC_URI_X86="
|
|
||||||
${BASE_X86_URI}libreoffice-${PVR}.tar.xz
|
|
||||||
kde? (
|
|
||||||
!java? ( ${BASE_X86_URI}libreoffice-kde-${PVR}.xd3 )
|
|
||||||
java? ( ${BASE_X86_URI}libreoffice-kde-java-${PVR}.xd3 )
|
|
||||||
)
|
|
||||||
gnome? (
|
|
||||||
!java? ( ${BASE_X86_URI}libreoffice-gnome-${PVR}.xd3 )
|
|
||||||
java? ( ${BASE_X86_URI}libreoffice-gnome-java-${PVR}.xd3 )
|
|
||||||
)
|
|
||||||
!kde? ( !gnome? (
|
|
||||||
java? ( ${BASE_X86_URI}libreoffice-java-${PVR}.xd3 )
|
|
||||||
) )
|
|
||||||
"
|
|
||||||
|
|
||||||
SRC_URI="
|
|
||||||
amd64? ( ${SRC_URI_AMD64} )
|
|
||||||
x86? ( ${SRC_URI_X86} )
|
|
||||||
"
|
|
||||||
|
|
||||||
IUSE="gnome java kde"
|
|
||||||
LICENSE="LGPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="-* amd64 x86"
|
|
||||||
|
|
||||||
BIN_COMMON_DEPEND="
|
|
||||||
=app-text/libexttextcat-3.4*
|
|
||||||
=app-text/libmwaw-0.1*
|
|
||||||
app-text/poppler:0/44
|
|
||||||
dev-libs/boost:0/1.52
|
|
||||||
dev-libs/icu:0/51.2
|
|
||||||
=media-gfx/graphite2-1.2*
|
|
||||||
=media-libs/harfbuzz-0.9.23[icu]
|
|
||||||
media-libs/libpng:0/16
|
|
||||||
>=sys-libs/glibc-2.17
|
|
||||||
virtual/jpeg:62
|
|
||||||
kde? ( >=kde-base/kdelibs-4.11.2-r1:4 >=dev-qt/qtcore-4.8.5-r1:4 )
|
|
||||||
"
|
|
||||||
|
|
||||||
# PLEASE place any restrictions that are specific to the binary builds
|
|
||||||
# into the BIN_COMMON_DEPEND block above.
|
|
||||||
# All dependencies below this point should remain identical to those in
|
|
||||||
# the source ebuilds.
|
|
||||||
|
|
||||||
COMMON_DEPEND="
|
|
||||||
${BIN_COMMON_DEPEND}
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
app-arch/zip
|
|
||||||
app-arch/unzip
|
|
||||||
>=app-text/hunspell-1.3.2-r3
|
|
||||||
app-text/mythes
|
|
||||||
>=app-text/libexttextcat-3.2
|
|
||||||
app-text/liblangtag
|
|
||||||
app-text/libmspub
|
|
||||||
>=app-text/libmwaw-0.1.7
|
|
||||||
app-text/libodfgen
|
|
||||||
app-text/libwpd:0.9[tools]
|
|
||||||
app-text/libwpg:0.2
|
|
||||||
>=app-text/libwps-0.2.2
|
|
||||||
>=app-text/poppler-0.16:=[xpdf-headers(+),cxx]
|
|
||||||
>=dev-cpp/clucene-2.3.3.4-r2
|
|
||||||
>=dev-cpp/libcmis-0.3.1:0.3
|
|
||||||
dev-db/unixODBC
|
|
||||||
>=dev-libs/boost-1.46:=
|
|
||||||
dev-libs/expat
|
|
||||||
>=dev-libs/hyphen-2.7.1
|
|
||||||
>=dev-libs/icu-4.8.1.1:=
|
|
||||||
>=dev-libs/liborcus-0.5.1:=
|
|
||||||
>=dev-libs/nspr-4.8.8
|
|
||||||
>=dev-libs/nss-3.12.9
|
|
||||||
>=dev-lang/perl-5.0
|
|
||||||
>=dev-libs/openssl-1.0.0d
|
|
||||||
>=dev-libs/redland-1.0.16[ssl]
|
|
||||||
media-gfx/graphite2
|
|
||||||
>=media-libs/fontconfig-2.8.0
|
|
||||||
media-libs/freetype:2
|
|
||||||
>=media-libs/harfbuzz-0.9.10:=[icu(+)]
|
|
||||||
media-libs/lcms:2
|
|
||||||
>=media-libs/libpng-1.4
|
|
||||||
>=media-libs/libcdr-0.0.5
|
|
||||||
media-libs/libvisio
|
|
||||||
>=net-misc/curl-7.21.4
|
|
||||||
net-nds/openldap
|
|
||||||
sci-mathematics/lpsolve
|
|
||||||
virtual/jpeg
|
|
||||||
>=x11-libs/cairo-1.10.0[X]
|
|
||||||
x11-libs/libXinerama
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXrender
|
|
||||||
net-print/cups
|
|
||||||
>=dev-libs/dbus-glib-0.92
|
|
||||||
gnome? ( gnome-extra/evolution-data-server )
|
|
||||||
gnome? ( gnome-base/gconf:2 )
|
|
||||||
x11-libs/gdk-pixbuf[X]
|
|
||||||
>=x11-libs/gtk+-2.24:2
|
|
||||||
media-libs/gstreamer:1.0
|
|
||||||
media-libs/gst-plugins-base:1.0
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
net-libs/neon
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
!app-office/libreoffice
|
|
||||||
!<app-office/openoffice-bin-3.4.0-r1
|
|
||||||
!app-office/openoffice
|
|
||||||
media-fonts/libertine-ttf
|
|
||||||
media-fonts/liberation-fonts
|
|
||||||
media-fonts/urw-fonts
|
|
||||||
java? ( >=virtual/jre-1.6 )
|
|
||||||
"
|
|
||||||
|
|
||||||
PDEPEND="
|
|
||||||
=app-office/libreoffice-l10n-${PV}*
|
|
||||||
"
|
|
||||||
|
|
||||||
DEPEND="dev-util/xdelta:3"
|
|
||||||
|
|
||||||
# only one flavor at a time
|
|
||||||
REQUIRED_USE="kde? ( !gnome ) gnome? ( !kde )"
|
|
||||||
|
|
||||||
RESTRICT="test strip"
|
|
||||||
|
|
||||||
S="${WORKDIR}"
|
|
||||||
|
|
||||||
PYTHON_UPDATER_IGNORE="1"
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
[[ $(gcc-major-version) -lt 4 ]] || \
|
|
||||||
( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 4 ]] ) \
|
|
||||||
&& die "Sorry, but gcc-4.4 and earlier won't work for libreoffice-bin package (see bug #387515)."
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
kde4-base_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
einfo "Uncompressing distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz"
|
|
||||||
xz -cd "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz" > "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die
|
|
||||||
|
|
||||||
local patchname
|
|
||||||
use kde && patchname="-kde"
|
|
||||||
use gnome && patchname="-gnome"
|
|
||||||
use java && patchname="${patchname}-java"
|
|
||||||
|
|
||||||
if [ -n "${patchname}" ]; then
|
|
||||||
einfo "Patching distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar using ${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3"
|
|
||||||
xdelta3 -d -s "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3" "${WORKDIR}/tmpdist.tar" || die
|
|
||||||
mv "${WORKDIR}/tmpdist.tar" "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
einfo "Unpacking new ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar"
|
|
||||||
unpack "./${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
cp "${FILESDIR}"/50-${PN} "${T}"
|
|
||||||
eprefixify "${T}"/50-${PN}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() { :; }
|
|
||||||
|
|
||||||
src_compile() { :; }
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dodir /usr
|
|
||||||
cp -aR "${S}"/usr/* "${ED}"/usr/
|
|
||||||
|
|
||||||
# prevent revdep-rebuild from attempting to rebuild all the time
|
|
||||||
insinto /etc/revdep-rebuild && doins "${T}/50-${PN}"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
# Cache updates - all handled by kde eclass for all environments
|
|
||||||
kde4-base_pkg_preinst
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
kde4-base_pkg_postinst
|
|
||||||
|
|
||||||
pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
|
|
||||||
pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin
|
|
||||||
|
|
||||||
use java || \
|
|
||||||
ewarn 'If you plan to use lbase application you should enable java or you will get various crashes.'
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
kde4-base_pkg_postrm
|
|
||||||
}
|
|
@ -1,94 +0,0 @@
|
|||||||
# Copyright 1999-2014 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.1.4.2.ebuild,v 1.4 2014/02/22 08:11:49 ago Exp $
|
|
||||||
|
|
||||||
EAPI=4
|
|
||||||
|
|
||||||
inherit rpm eutils multilib versionator
|
|
||||||
|
|
||||||
MY_PV=$(get_version_component_range 1-3)
|
|
||||||
|
|
||||||
DESCRIPTION="Translations for the Libreoffice suite."
|
|
||||||
HOMEPAGE="http://www.libreoffice.org"
|
|
||||||
BASE_SRC_URI="http://download.documentfoundation.org/${PN/-l10n/}/testing/${MY_PV}/rpm"
|
|
||||||
|
|
||||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 ~arm ~ppc x86 ~amd64-linux ~x86-linux"
|
|
||||||
IUSE="offlinehelp"
|
|
||||||
|
|
||||||
#
|
|
||||||
# when changing the language lists, please be careful to preserve the spaces (bug 491728)
|
|
||||||
#
|
|
||||||
LANGUAGES_HELP=" am ast bg bn_IN bn bo bs ca_XV ca cs da de dz el en_GB en en_ZA
|
|
||||||
eo es et eu fi fr gl gu he hi hr hu id is it ja ka km ko mk nb ne nl nn om pl
|
|
||||||
pt_BR pt ru si sk sl sq sv tg tr ug uk vi zh_CN zh_TW "
|
|
||||||
LANGUAGES="${LANGUAGES_HELP}af ar as be br brx cy dgo fa ga gd kk kn kok ks ku
|
|
||||||
lb lo lt lv mai ml mn mni mr my nr nso oc or pa_IN ro rw sa_IN sat sd sh sr
|
|
||||||
ss st sw_TZ ta te th tn ts tt uz ve xh zu "
|
|
||||||
|
|
||||||
for lang in ${LANGUAGES_HELP}; do
|
|
||||||
helppack=""
|
|
||||||
[[ ${lang} == en ]] && lang2=${lang/en/en_US} || lang2=${lang}
|
|
||||||
helppack="offlinehelp? ( ${BASE_SRC_URI}/x86/LibreOffice_${PV}_Linux_x86_rpm_helppack_${lang2/_/-}.tar.gz )"
|
|
||||||
SRC_URI+=" linguas_${lang}? ( ${helppack} )"
|
|
||||||
done
|
|
||||||
for lang in ${LANGUAGES}; do
|
|
||||||
langpack=""
|
|
||||||
[[ ${lang} == en ]] \
|
|
||||||
|| langpack="${BASE_SRC_URI}/x86/LibreOffice_${PV}_Linux_x86_rpm_langpack_${lang/_/-}.tar.gz"
|
|
||||||
[[ -z ${langpack} ]] || SRC_URI+=" linguas_${lang}? ( ${langpack} )"
|
|
||||||
IUSE+=" linguas_${lang}"
|
|
||||||
done
|
|
||||||
unset lang helppack langpack lang2
|
|
||||||
|
|
||||||
RDEPEND+="app-text/hunspell"
|
|
||||||
|
|
||||||
RESTRICT="strip"
|
|
||||||
|
|
||||||
S="${WORKDIR}"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
default
|
|
||||||
|
|
||||||
local lang dir rpmdir i
|
|
||||||
local ooextused=()
|
|
||||||
|
|
||||||
for lang in ${LANGUAGES}; do
|
|
||||||
# break away if not enabled; paludis support
|
|
||||||
use_if_iuse linguas_${lang} || continue
|
|
||||||
|
|
||||||
dir=${lang/_/-}
|
|
||||||
|
|
||||||
# for english we provide just helppack, as translation is always there
|
|
||||||
if [[ ${lang} != en ]]; then
|
|
||||||
rpmdir="LibreOffice_${PV}_Linux_x86_rpm_langpack_${dir}/RPMS/"
|
|
||||||
[[ -d ${rpmdir} ]] || die "Missing directory: \"${rpmdir}\""
|
|
||||||
# First remove dictionaries, we want to use system ones.
|
|
||||||
rm -rf "${S}/${rpmdir}/"*dict*.rpm
|
|
||||||
rpm_unpack "./${rpmdir}/"*.rpm
|
|
||||||
fi
|
|
||||||
if [[ "${LANGUAGES_HELP}" =~ " ${lang} " ]] && use offlinehelp; then
|
|
||||||
[[ ${lang} == en ]] && dir="en-US"
|
|
||||||
rpmdir="LibreOffice_${PV}_Linux_x86_rpm_helppack_${dir}/RPMS/"
|
|
||||||
[[ -d ${rpmdir} ]] || die "Missing directory: \"${rpmdir}\""
|
|
||||||
rpm_unpack ./"${rpmdir}/"*.rpm
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() { :; }
|
|
||||||
src_configure() { :; }
|
|
||||||
src_compile() { :; }
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local dir="${S}"/opt/${PN/-l10n/}$(get_version_component_range 1-2)/
|
|
||||||
# Condition required for people that do not install anything eg no linguas
|
|
||||||
# or just english with no offlinehelp.
|
|
||||||
if [[ -d "${dir}" ]] ; then
|
|
||||||
insinto /usr/$(get_libdir)/${PN/-l10n/}/
|
|
||||||
doins -r "${dir}"/*
|
|
||||||
fi
|
|
||||||
# remove extensions that are in the l10n for some weird reason
|
|
||||||
rm -rf "${ED}"/usr/$(get_libdir)/${PN/-l10n/}/share/extensions/
|
|
||||||
}
|
|
@ -1,90 +0,0 @@
|
|||||||
# Copyright 1999-2014 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.1.5.3.ebuild,v 1.1 2014/02/25 20:55:04 scarabeus Exp $
|
|
||||||
|
|
||||||
EAPI=4
|
|
||||||
|
|
||||||
inherit rpm eutils multilib versionator
|
|
||||||
|
|
||||||
MY_PV=$(get_version_component_range 1-3)
|
|
||||||
|
|
||||||
DESCRIPTION="Translations for the Libreoffice suite."
|
|
||||||
HOMEPAGE="http://www.libreoffice.org"
|
|
||||||
BASE_SRC_URI="http://download.documentfoundation.org/${PN/-l10n/}/stable/${MY_PV}/rpm"
|
|
||||||
|
|
||||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux"
|
|
||||||
IUSE="offlinehelp"
|
|
||||||
|
|
||||||
#
|
|
||||||
# when changing the language lists, please be careful to preserve the spaces (bug 491728)
|
|
||||||
#
|
|
||||||
LANGUAGES_HELP=" am ast bg bn_IN bn bo bs ca_XV ca cs da de dz el en_GB en en_ZA eo es et eu fi fr gl gu he hi hr hu id is it ja ka km ko mk nb ne nl nn om pl pt_BR pt ru si sid sk sl sq sv tg tr ug uk vi zh_CN zh_TW "
|
|
||||||
LANGUAGES="${LANGUAGES_HELP}af ar as be br brx cy dgo fa ga gd kk kn kok ks ku lb lo lt lv mai ml mn mni mr my nr nso oc or pa_IN ro rw sa_IN sat sd sh sr ss st sw_TZ ta te th tn ts tt uz ve xh zu "
|
|
||||||
|
|
||||||
for lang in ${LANGUAGES_HELP}; do
|
|
||||||
helppack=""
|
|
||||||
[[ ${lang} == en ]] && lang2=${lang/en/en_US} || lang2=${lang}
|
|
||||||
helppack="offlinehelp? ( ${BASE_SRC_URI}/x86/LibreOffice_${MY_PV}_Linux_x86_rpm_helppack_${lang2/_/-}.tar.gz )"
|
|
||||||
SRC_URI+=" linguas_${lang}? ( ${helppack} )"
|
|
||||||
done
|
|
||||||
for lang in ${LANGUAGES}; do
|
|
||||||
langpack=""
|
|
||||||
[[ ${lang} == en ]] \
|
|
||||||
|| langpack="${BASE_SRC_URI}/x86/LibreOffice_${MY_PV}_Linux_x86_rpm_langpack_${lang/_/-}.tar.gz"
|
|
||||||
[[ -z ${langpack} ]] || SRC_URI+=" linguas_${lang}? ( ${langpack} )"
|
|
||||||
IUSE+=" linguas_${lang}"
|
|
||||||
done
|
|
||||||
unset lang helppack langpack lang2
|
|
||||||
|
|
||||||
RDEPEND+="app-text/hunspell"
|
|
||||||
|
|
||||||
RESTRICT="strip"
|
|
||||||
|
|
||||||
S="${WORKDIR}"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
default
|
|
||||||
|
|
||||||
local lang dir rpmdir i
|
|
||||||
local ooextused=()
|
|
||||||
|
|
||||||
for lang in ${LANGUAGES}; do
|
|
||||||
# break away if not enabled; paludis support
|
|
||||||
use_if_iuse linguas_${lang} || continue
|
|
||||||
|
|
||||||
dir=${lang/_/-}
|
|
||||||
|
|
||||||
# for english we provide just helppack, as translation is always there
|
|
||||||
if [[ ${lang} != en ]]; then
|
|
||||||
rpmdir="LibreOffice_${PV}_Linux_x86_rpm_langpack_${dir}/RPMS/"
|
|
||||||
[[ -d ${rpmdir} ]] || die "Missing directory: \"${rpmdir}\""
|
|
||||||
# First remove dictionaries, we want to use system ones.
|
|
||||||
rm -rf "${S}/${rpmdir}/"*dict*.rpm
|
|
||||||
rpm_unpack "./${rpmdir}/"*.rpm
|
|
||||||
fi
|
|
||||||
if [[ "${LANGUAGES_HELP}" =~ " ${lang} " ]] && use offlinehelp; then
|
|
||||||
[[ ${lang} == en ]] && dir="en-US"
|
|
||||||
rpmdir="LibreOffice_${PV}_Linux_x86_rpm_helppack_${dir}/RPMS/"
|
|
||||||
[[ -d ${rpmdir} ]] || die "Missing directory: \"${rpmdir}\""
|
|
||||||
rpm_unpack ./"${rpmdir}/"*.rpm
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() { :; }
|
|
||||||
src_configure() { :; }
|
|
||||||
src_compile() { :; }
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local dir="${S}"/opt/${PN/-l10n/}$(get_version_component_range 1-2)/
|
|
||||||
# Condition required for people that do not install anything eg no linguas
|
|
||||||
# or just english with no offlinehelp.
|
|
||||||
if [[ -d "${dir}" ]] ; then
|
|
||||||
insinto /usr/$(get_libdir)/${PN/-l10n/}/
|
|
||||||
doins -r "${dir}"/*
|
|
||||||
fi
|
|
||||||
# remove extensions that are in the l10n for some weird reason
|
|
||||||
rm -rf "${ED}"/usr/$(get_libdir)/${PN/-l10n/}/share/extensions/
|
|
||||||
}
|
|
@ -1,90 +0,0 @@
|
|||||||
# Copyright 1999-2014 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.2.3.3.ebuild,v 1.2 2014/05/25 12:11:54 zlogene Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
inherit rpm eutils multilib versionator
|
|
||||||
|
|
||||||
MY_PV=$(get_version_component_range 1-3)
|
|
||||||
|
|
||||||
DESCRIPTION="Translations for the Libreoffice suite."
|
|
||||||
HOMEPAGE="http://www.libreoffice.org"
|
|
||||||
BASE_SRC_URI="http://download.documentfoundation.org/${PN/-l10n/}/stable/${MY_PV}/rpm"
|
|
||||||
|
|
||||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux"
|
|
||||||
IUSE="offlinehelp"
|
|
||||||
|
|
||||||
#
|
|
||||||
# when changing the language lists, please be careful to preserve the spaces (bug 491728)
|
|
||||||
#
|
|
||||||
LANGUAGES_HELP=" am ast bg bn_IN bn bo bs ca_valencia ca cs da de dz el en_GB en en_ZA eo es et eu fi fr gl gu he hi hr hu id is it ja ka km ko mk nb ne nl nn om pl pt_BR pt ru si sk sl sq sv tg tr ug uk vi zh_CN zh_TW "
|
|
||||||
LANGUAGES="${LANGUAGES_HELP}af ar as be br brx cy dgo fa ga gd kk kmr_Latn kn kok ks lb lo lt lv mai ml mn mni mr my nr nso oc or pa_IN ro rw sa_IN sat sd sid sr_Latn sr ss st sw_TZ ta te th tn ts tt uz ve xh zu "
|
|
||||||
|
|
||||||
for lang in ${LANGUAGES_HELP}; do
|
|
||||||
helppack=""
|
|
||||||
[[ ${lang} == en ]] && lang2=${lang/en/en_US} || lang2=${lang}
|
|
||||||
helppack="offlinehelp? ( ${BASE_SRC_URI}/x86/LibreOffice_${MY_PV}_Linux_x86_rpm_helppack_${lang2/_/-}.tar.gz )"
|
|
||||||
SRC_URI+=" linguas_${lang}? ( ${helppack} )"
|
|
||||||
done
|
|
||||||
for lang in ${LANGUAGES}; do
|
|
||||||
langpack=""
|
|
||||||
[[ ${lang} == en ]] \
|
|
||||||
|| langpack="${BASE_SRC_URI}/x86/LibreOffice_${MY_PV}_Linux_x86_rpm_langpack_${lang/_/-}.tar.gz"
|
|
||||||
[[ -z ${langpack} ]] || SRC_URI+=" linguas_${lang}? ( ${langpack} )"
|
|
||||||
IUSE+=" linguas_${lang}"
|
|
||||||
done
|
|
||||||
unset lang helppack langpack lang2
|
|
||||||
|
|
||||||
RDEPEND+="app-text/hunspell"
|
|
||||||
|
|
||||||
RESTRICT="strip"
|
|
||||||
|
|
||||||
S="${WORKDIR}"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
default
|
|
||||||
|
|
||||||
local lang dir rpmdir i
|
|
||||||
local ooextused=()
|
|
||||||
|
|
||||||
for lang in ${LANGUAGES}; do
|
|
||||||
# break away if not enabled; paludis support
|
|
||||||
use_if_iuse linguas_${lang} || continue
|
|
||||||
|
|
||||||
dir=${lang/_/-}
|
|
||||||
|
|
||||||
# for english we provide just helppack, as translation is always there
|
|
||||||
if [[ ${lang} != en ]]; then
|
|
||||||
rpmdir="LibreOffice_${PV}_Linux_x86_rpm_langpack_${dir}/RPMS/"
|
|
||||||
[[ -d ${rpmdir} ]] || die "Missing directory: \"${rpmdir}\""
|
|
||||||
# First remove dictionaries, we want to use system ones.
|
|
||||||
rm -rf "${S}/${rpmdir}/"*dict*.rpm
|
|
||||||
rpm_unpack "./${rpmdir}/"*.rpm
|
|
||||||
fi
|
|
||||||
if [[ "${LANGUAGES_HELP}" =~ " ${lang} " ]] && use offlinehelp; then
|
|
||||||
[[ ${lang} == en ]] && dir="en-US"
|
|
||||||
rpmdir="LibreOffice_${PV}_Linux_x86_rpm_helppack_${dir}/RPMS/"
|
|
||||||
[[ -d ${rpmdir} ]] || die "Missing directory: \"${rpmdir}\""
|
|
||||||
rpm_unpack ./"${rpmdir}/"*.rpm
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() { :; }
|
|
||||||
src_configure() { :; }
|
|
||||||
src_compile() { :; }
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local dir="${S}"/opt/${PN/-l10n/}$(get_version_component_range 1-2)/
|
|
||||||
# Condition required for people that do not install anything eg no linguas
|
|
||||||
# or just english with no offlinehelp.
|
|
||||||
if [[ -d "${dir}" ]] ; then
|
|
||||||
insinto /usr/$(get_libdir)/${PN/-l10n/}/
|
|
||||||
doins -r "${dir}"/*
|
|
||||||
fi
|
|
||||||
# remove extensions that are in the l10n for some weird reason
|
|
||||||
rm -rf "${ED}"/usr/$(get_libdir)/${PN/-l10n/}/share/extensions/
|
|
||||||
}
|
|
@ -1,90 +0,0 @@
|
|||||||
# Copyright 1999-2014 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.2.4.2.ebuild,v 1.1 2014/05/08 11:18:01 scarabeus Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
inherit rpm eutils multilib versionator
|
|
||||||
|
|
||||||
MY_PV=$(get_version_component_range 1-3)
|
|
||||||
|
|
||||||
DESCRIPTION="Translations for the Libreoffice suite."
|
|
||||||
HOMEPAGE="http://www.libreoffice.org"
|
|
||||||
BASE_SRC_URI="http://download.documentfoundation.org/${PN/-l10n/}/stable/${MY_PV}/rpm"
|
|
||||||
|
|
||||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux"
|
|
||||||
IUSE="offlinehelp"
|
|
||||||
|
|
||||||
#
|
|
||||||
# when changing the language lists, please be careful to preserve the spaces (bug 491728)
|
|
||||||
#
|
|
||||||
LANGUAGES_HELP=" am ast bg bn_IN bn bo bs ca_valencia ca cs da de dz el en_GB en en_ZA eo es et eu fi fr gl gu he hi hr hu id is it ja ka km ko mk nb ne nl nn om pl pt_BR pt ru si sk sl sq sv tg tr ug uk vi zh_CN zh_TW "
|
|
||||||
LANGUAGES="${LANGUAGES_HELP}af ar as be br brx cy dgo fa ga gd kk kmr_Latn kn kok ks lb lo lt lv mai ml mn mni mr my nr nso oc or pa_IN ro rw sa_IN sat sd sid sr_Latn sr ss st sw_TZ ta te th tn ts tt uz ve xh zu "
|
|
||||||
|
|
||||||
for lang in ${LANGUAGES_HELP}; do
|
|
||||||
helppack=""
|
|
||||||
[[ ${lang} == en ]] && lang2=${lang/en/en_US} || lang2=${lang}
|
|
||||||
helppack="offlinehelp? ( ${BASE_SRC_URI}/x86/LibreOffice_${MY_PV}_Linux_x86_rpm_helppack_${lang2/_/-}.tar.gz )"
|
|
||||||
SRC_URI+=" linguas_${lang}? ( ${helppack} )"
|
|
||||||
done
|
|
||||||
for lang in ${LANGUAGES}; do
|
|
||||||
langpack=""
|
|
||||||
[[ ${lang} == en ]] \
|
|
||||||
|| langpack="${BASE_SRC_URI}/x86/LibreOffice_${MY_PV}_Linux_x86_rpm_langpack_${lang/_/-}.tar.gz"
|
|
||||||
[[ -z ${langpack} ]] || SRC_URI+=" linguas_${lang}? ( ${langpack} )"
|
|
||||||
IUSE+=" linguas_${lang}"
|
|
||||||
done
|
|
||||||
unset lang helppack langpack lang2
|
|
||||||
|
|
||||||
RDEPEND+="app-text/hunspell"
|
|
||||||
|
|
||||||
RESTRICT="strip"
|
|
||||||
|
|
||||||
S="${WORKDIR}"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
default
|
|
||||||
|
|
||||||
local lang dir rpmdir i
|
|
||||||
local ooextused=()
|
|
||||||
|
|
||||||
for lang in ${LANGUAGES}; do
|
|
||||||
# break away if not enabled; paludis support
|
|
||||||
use_if_iuse linguas_${lang} || continue
|
|
||||||
|
|
||||||
dir=${lang/_/-}
|
|
||||||
|
|
||||||
# for english we provide just helppack, as translation is always there
|
|
||||||
if [[ ${lang} != en ]]; then
|
|
||||||
rpmdir="LibreOffice_${PV}_Linux_x86_rpm_langpack_${dir}/RPMS/"
|
|
||||||
[[ -d ${rpmdir} ]] || die "Missing directory: \"${rpmdir}\""
|
|
||||||
# First remove dictionaries, we want to use system ones.
|
|
||||||
rm -rf "${S}/${rpmdir}/"*dict*.rpm
|
|
||||||
rpm_unpack "./${rpmdir}/"*.rpm
|
|
||||||
fi
|
|
||||||
if [[ "${LANGUAGES_HELP}" =~ " ${lang} " ]] && use offlinehelp; then
|
|
||||||
[[ ${lang} == en ]] && dir="en-US"
|
|
||||||
rpmdir="LibreOffice_${PV}_Linux_x86_rpm_helppack_${dir}/RPMS/"
|
|
||||||
[[ -d ${rpmdir} ]] || die "Missing directory: \"${rpmdir}\""
|
|
||||||
rpm_unpack ./"${rpmdir}/"*.rpm
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() { :; }
|
|
||||||
src_configure() { :; }
|
|
||||||
src_compile() { :; }
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local dir="${S}"/opt/${PN/-l10n/}$(get_version_component_range 1-2)/
|
|
||||||
# Condition required for people that do not install anything eg no linguas
|
|
||||||
# or just english with no offlinehelp.
|
|
||||||
if [[ -d "${dir}" ]] ; then
|
|
||||||
insinto /usr/$(get_libdir)/${PN/-l10n/}/
|
|
||||||
doins -r "${dir}"/*
|
|
||||||
fi
|
|
||||||
# remove extensions that are in the l10n for some weird reason
|
|
||||||
rm -rf "${ED}"/usr/$(get_libdir)/${PN/-l10n/}/share/extensions/
|
|
||||||
}
|
|
@ -1,586 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-4.1.4.2.ebuild,v 1.7 2014/03/27 09:13:17 scarabeus Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
KDE_REQUIRED="optional"
|
|
||||||
QT_MINIMAL="4.7.4"
|
|
||||||
KDE_SCM="git"
|
|
||||||
CMAKE_REQUIRED="never"
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 python3_3 )
|
|
||||||
PYTHON_REQ_USE="threads,xml"
|
|
||||||
|
|
||||||
# experimental ; release ; old
|
|
||||||
# Usually the tarballs are moved a lot so this should make
|
|
||||||
# everyone happy.
|
|
||||||
DEV_URI="
|
|
||||||
http://dev-builds.libreoffice.org/pre-releases/src
|
|
||||||
http://download.documentfoundation.org/libreoffice/src/${PV:0:5}/
|
|
||||||
http://download.documentfoundation.org/libreoffice/old/${PV}/
|
|
||||||
"
|
|
||||||
EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice"
|
|
||||||
ADDONS_URI="http://dev-www.libreoffice.org/src/"
|
|
||||||
|
|
||||||
BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
|
|
||||||
# PATCHSET="${P}-patchset-01.tar.xz"
|
|
||||||
|
|
||||||
[[ ${PV} == *9999* ]] && SCM_ECLASS="git-2"
|
|
||||||
inherit base autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic nsplugins ${SCM_ECLASS}
|
|
||||||
unset SCM_ECLASS
|
|
||||||
|
|
||||||
DESCRIPTION="LibreOffice, a full office productivity suite."
|
|
||||||
HOMEPAGE="http://www.libreoffice.org"
|
|
||||||
SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
|
|
||||||
[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}"
|
|
||||||
|
|
||||||
# Split modules following git/tarballs
|
|
||||||
# Core MUST be first!
|
|
||||||
# Help is used for the image generator
|
|
||||||
MODULES="core help"
|
|
||||||
# Only release has the tarballs
|
|
||||||
if [[ ${PV} != *9999* ]]; then
|
|
||||||
for i in ${DEV_URI}; do
|
|
||||||
for mod in ${MODULES}; do
|
|
||||||
if [[ ${mod} == core ]]; then
|
|
||||||
SRC_URI+=" ${i}/${P}.tar.xz"
|
|
||||||
else
|
|
||||||
SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
unset mod
|
|
||||||
done
|
|
||||||
unset i
|
|
||||||
fi
|
|
||||||
unset DEV_URI
|
|
||||||
|
|
||||||
# Really required addons
|
|
||||||
# These are bundles that can't be removed for now due to huge patchsets.
|
|
||||||
# If you want them gone, patches are welcome.
|
|
||||||
ADDONS_SRC+=" ${ADDONS_URI}/ea91f2fb4212a21d708aced277e6e85a-vigra1.4.0.tar.gz"
|
|
||||||
ADDONS_SRC+=" ${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz" # modifies source code
|
|
||||||
ADDONS_SRC+=" java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
|
|
||||||
ADDONS_SRC+=" libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" # no release for 8 years, should we package it?
|
|
||||||
ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" # Does not build with 1.6 rhino at all
|
|
||||||
ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" # requirement of rhino
|
|
||||||
ADDONS_SRC+=" odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" # not packageable
|
|
||||||
SRC_URI+=" ${ADDONS_SRC}"
|
|
||||||
|
|
||||||
unset ADDONS_URI
|
|
||||||
unset EXT_URI
|
|
||||||
unset ADDONS_SRC
|
|
||||||
|
|
||||||
IUSE="bluetooth +branding +cups dbus debug eds gnome gstreamer +gtk
|
|
||||||
gtk3 jemalloc kde mysql odk opengl postgres telepathy test +vba +webdav"
|
|
||||||
|
|
||||||
LO_EXTS="nlpsolver presenter-minimizer scripting-beanshell scripting-javascript wiki-publisher"
|
|
||||||
# Unpackaged separate extensions:
|
|
||||||
# diagram: lo has 0.9.5 upstream is weirdly patched 0.9.4 -> wtf?
|
|
||||||
# hunart: only on ooo extensions -> fubared download path somewhere on sf
|
|
||||||
# numbertext, typo, validator, watch-window: ^^
|
|
||||||
# oooblogger: no homepage or anything
|
|
||||||
# Extensions that need extra work:
|
|
||||||
for lo_xt in ${LO_EXTS}; do
|
|
||||||
IUSE+=" libreoffice_extensions_${lo_xt}"
|
|
||||||
done
|
|
||||||
unset lo_xt
|
|
||||||
|
|
||||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
[[ ${PV} == *9999* ]] || \
|
|
||||||
KEYWORDS="amd64 ~arm ~ppc x86 ~amd64-linux ~x86-linux"
|
|
||||||
|
|
||||||
COMMON_DEPEND="
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
app-arch/zip
|
|
||||||
app-arch/unzip
|
|
||||||
>=app-text/hunspell-1.3.2-r3
|
|
||||||
app-text/mythes
|
|
||||||
>=app-text/libexttextcat-3.2
|
|
||||||
app-text/liblangtag
|
|
||||||
app-text/libmspub
|
|
||||||
<app-text/libmwaw-0.2.0
|
|
||||||
app-text/libodfgen
|
|
||||||
app-text/libwpd:0.9[tools]
|
|
||||||
app-text/libwpg:0.2
|
|
||||||
>=app-text/libwps-0.2.2
|
|
||||||
>=app-text/poppler-0.16:=[xpdf-headers(+),cxx]
|
|
||||||
>=dev-cpp/clucene-2.3.3.4-r2
|
|
||||||
>=dev-cpp/libcmis-0.3.1:0.3
|
|
||||||
dev-db/unixODBC
|
|
||||||
>=dev-libs/boost-1.46:=
|
|
||||||
dev-libs/expat
|
|
||||||
>=dev-libs/hyphen-2.7.1
|
|
||||||
>=dev-libs/icu-4.8.1.1:=
|
|
||||||
=dev-libs/liborcus-0.5*:=
|
|
||||||
>=dev-libs/nspr-4.8.8
|
|
||||||
>=dev-libs/nss-3.12.9
|
|
||||||
>=dev-lang/perl-5.0
|
|
||||||
>=dev-libs/openssl-1.0.0d
|
|
||||||
>=dev-libs/redland-1.0.16[ssl]
|
|
||||||
media-gfx/graphite2
|
|
||||||
>=media-libs/fontconfig-2.8.0
|
|
||||||
media-libs/freetype:2
|
|
||||||
>=media-libs/harfbuzz-0.9.10:=[icu(+)]
|
|
||||||
media-libs/lcms:2
|
|
||||||
>=media-libs/libpng-1.4
|
|
||||||
>=media-libs/libcdr-0.0.5
|
|
||||||
media-libs/libvisio
|
|
||||||
>=net-misc/curl-7.21.4
|
|
||||||
net-nds/openldap
|
|
||||||
sci-mathematics/lpsolve
|
|
||||||
virtual/jpeg:0
|
|
||||||
>=x11-libs/cairo-1.10.0[X]
|
|
||||||
x11-libs/libXinerama
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXrender
|
|
||||||
bluetooth? ( net-wireless/bluez )
|
|
||||||
cups? ( net-print/cups )
|
|
||||||
dbus? ( >=dev-libs/dbus-glib-0.92 )
|
|
||||||
eds? ( gnome-extra/evolution-data-server )
|
|
||||||
gnome? ( gnome-base/gconf:2 )
|
|
||||||
gtk? (
|
|
||||||
x11-libs/gdk-pixbuf[X]
|
|
||||||
>=x11-libs/gtk+-2.24:2
|
|
||||||
)
|
|
||||||
gtk3? ( >=x11-libs/gtk+-3.2:3 )
|
|
||||||
gstreamer? (
|
|
||||||
media-libs/gstreamer:1.0
|
|
||||||
media-libs/gst-plugins-base:1.0
|
|
||||||
)
|
|
||||||
jemalloc? ( dev-libs/jemalloc )
|
|
||||||
libreoffice_extensions_scripting-beanshell? ( >=dev-java/bsh-2.0_beta4 )
|
|
||||||
libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
|
|
||||||
libreoffice_extensions_wiki-publisher? (
|
|
||||||
dev-java/commons-codec:0
|
|
||||||
dev-java/commons-httpclient:3
|
|
||||||
dev-java/commons-lang:2.1
|
|
||||||
dev-java/commons-logging:0
|
|
||||||
dev-java/tomcat-servlet-api:3.0
|
|
||||||
)
|
|
||||||
mysql? ( >=dev-db/mysql-connector-c++-1.1.0 )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
postgres? ( >=dev-db/postgresql-base-9.0[kerberos] )
|
|
||||||
telepathy? (
|
|
||||||
dev-libs/glib:2
|
|
||||||
>=net-libs/telepathy-glib-0.18.0
|
|
||||||
>=x11-libs/gtk+-2.24:2
|
|
||||||
)
|
|
||||||
webdav? ( net-libs/neon )
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
!app-office/libreoffice-bin
|
|
||||||
!app-office/libreoffice-bin-debug
|
|
||||||
!<app-office/openoffice-bin-3.4.0-r1
|
|
||||||
!app-office/openoffice
|
|
||||||
media-fonts/libertine-ttf
|
|
||||||
media-fonts/liberation-fonts
|
|
||||||
media-fonts/urw-fonts
|
|
||||||
java? ( >=virtual/jre-1.6 )
|
|
||||||
"
|
|
||||||
|
|
||||||
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
|
|
||||||
# as dmake execute tests right away
|
|
||||||
DEPEND="${COMMON_DEPEND}
|
|
||||||
>=dev-libs/libxml2-2.7.8
|
|
||||||
dev-libs/libxslt
|
|
||||||
dev-perl/Archive-Zip
|
|
||||||
dev-util/cppunit
|
|
||||||
>=dev-util/gperf-3
|
|
||||||
dev-util/intltool
|
|
||||||
=dev-util/mdds-0.8*:=
|
|
||||||
virtual/pkgconfig
|
|
||||||
net-misc/npapi-sdk
|
|
||||||
>=sys-apps/findutils-4.4.2
|
|
||||||
sys-devel/bison
|
|
||||||
sys-apps/coreutils
|
|
||||||
sys-devel/flex
|
|
||||||
sys-devel/gettext
|
|
||||||
>=sys-devel/make-3.82
|
|
||||||
sys-devel/ucpp
|
|
||||||
sys-libs/zlib
|
|
||||||
x11-libs/libXt
|
|
||||||
x11-libs/libXtst
|
|
||||||
x11-proto/randrproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xineramaproto
|
|
||||||
x11-proto/xproto
|
|
||||||
java? (
|
|
||||||
>=virtual/jdk-1.6
|
|
||||||
>=dev-java/ant-core-1.7
|
|
||||||
)
|
|
||||||
odk? ( app-doc/doxygen )
|
|
||||||
test? ( dev-util/cppunit )
|
|
||||||
"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
# not upstreamable stuff
|
|
||||||
"${FILESDIR}/${PN}-3.7-system-pyuno.patch"
|
|
||||||
|
|
||||||
# picked from git master
|
|
||||||
"${FILESDIR}/${PN}-4.1.3.2-kde-recursiverepaint.patch"
|
|
||||||
"${FILESDIR}/${PN}-4.1.3.2-kde-calchang.patch"
|
|
||||||
|
|
||||||
# staged for git master
|
|
||||||
"${FILESDIR}/${PN}-4.1.4.2-curl-config.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
REQUIRED_USE="
|
|
||||||
${PYTHON_REQUIRED_USE}
|
|
||||||
bluetooth? ( dbus )
|
|
||||||
gnome? ( gtk )
|
|
||||||
eds? ( gnome )
|
|
||||||
telepathy? ( gtk )
|
|
||||||
libreoffice_extensions_nlpsolver? ( java )
|
|
||||||
libreoffice_extensions_scripting-beanshell? ( java )
|
|
||||||
libreoffice_extensions_scripting-javascript? ( java )
|
|
||||||
libreoffice_extensions_wiki-publisher? ( java )
|
|
||||||
"
|
|
||||||
|
|
||||||
CHECKREQS_MEMORY="512M"
|
|
||||||
CHECKREQS_DISK_BUILD="6G"
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
local pgslot
|
|
||||||
|
|
||||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
|
||||||
check-reqs_pkg_pretend
|
|
||||||
|
|
||||||
if [[ $(gcc-major-version) -lt 4 ]] || \
|
|
||||||
( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]] ) \
|
|
||||||
; then
|
|
||||||
eerror "Compilation with gcc older than 4.6 is not supported"
|
|
||||||
die "Too old gcc found."
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# ensure pg version
|
|
||||||
if use postgres && has_version dev-db/postgresql-base; then
|
|
||||||
pgslot=$(postgresql-config show)
|
|
||||||
if [[ ${pgslot//.} < 90 ]] ; then
|
|
||||||
eerror "PostgreSQL slot must be set to 9.0 or higher."
|
|
||||||
eerror " postgresql-config set 9.0"
|
|
||||||
die "PostgreSQL slot is not set to 9.0 or higher."
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
java-pkg-opt-2_pkg_setup
|
|
||||||
kde4-base_pkg_setup
|
|
||||||
python-single-r1_pkg_setup
|
|
||||||
|
|
||||||
[[ ${MERGE_TYPE} != binary ]] && check-reqs_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
local mod mod2 dest tmplfile tmplname mypv
|
|
||||||
|
|
||||||
[[ -n ${PATCHSET} ]] && unpack ${PATCHSET}
|
|
||||||
use branding && unpack "${BRANDING}"
|
|
||||||
|
|
||||||
if [[ ${PV} != *9999* ]]; then
|
|
||||||
unpack "${P}.tar.xz"
|
|
||||||
for mod in ${MODULES}; do
|
|
||||||
[[ ${mod} == core ]] && continue
|
|
||||||
unpack "${PN}-${mod}-${PV}.tar.xz"
|
|
||||||
done
|
|
||||||
else
|
|
||||||
for mod in ${MODULES}; do
|
|
||||||
mypv=${PV/.9999}
|
|
||||||
[[ ${mypv} != ${PV} ]] && EGIT_BRANCH="${PN}-${mypv/./-}"
|
|
||||||
EGIT_PROJECT="${PN}/${mod}"
|
|
||||||
EGIT_SOURCEDIR="${WORKDIR}/${P}"
|
|
||||||
[[ ${mod} != core ]] && EGIT_SOURCEDIR="${WORKDIR}/${PN}-${mod}-${PV}"
|
|
||||||
EGIT_REPO_URI="git://anongit.freedesktop.org/${PN}/${mod}"
|
|
||||||
EGIT_NOUNPACK="true"
|
|
||||||
git-2_src_unpack
|
|
||||||
if [[ ${mod} != core ]]; then
|
|
||||||
mod2=${mod}
|
|
||||||
# mapping does not match on help
|
|
||||||
[[ ${mod} == help ]] && mod2="helpcontent2"
|
|
||||||
mkdir -p "${S}/${mod2}/" || die
|
|
||||||
mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}/${mod2}" || die
|
|
||||||
rm -rf "${WORKDIR}/${PN}-${mod}-${PV}"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
unset EGIT_PROJECT EGIT_SOURCEDIR EGIT_REPO_URI EGIT_BRANCH
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# optimization flags
|
|
||||||
export GMAKE_OPTIONS="${MAKEOPTS}"
|
|
||||||
# System python 2.7 enablement:
|
|
||||||
export PYTHON_CFLAGS=$(python_get_CFLAGS)
|
|
||||||
export PYTHON_LIBS=$(python_get_LIBS)
|
|
||||||
|
|
||||||
# patchset
|
|
||||||
if [[ -n ${PATCHSET} ]]; then
|
|
||||||
EPATCH_FORCE="yes" \
|
|
||||||
EPATCH_SOURCE="${WORKDIR}/${PATCHSET/.tar.xz/}" \
|
|
||||||
EPATCH_SUFFIX="patch" \
|
|
||||||
epatch
|
|
||||||
fi
|
|
||||||
|
|
||||||
base_src_prepare
|
|
||||||
|
|
||||||
AT_M4DIR="m4" eautoreconf
|
|
||||||
# hack in the autogen.sh
|
|
||||||
touch autogen.lastrun
|
|
||||||
|
|
||||||
# system pyuno mess
|
|
||||||
sed \
|
|
||||||
-e "s:%eprefix%:${EPREFIX}:g" \
|
|
||||||
-e "s:%libdir%:$(get_libdir):g" \
|
|
||||||
-i pyuno/source/module/uno.py \
|
|
||||||
-i scripting/source/pyprov/officehelper.py || die
|
|
||||||
# sed in the tests
|
|
||||||
sed -i \
|
|
||||||
-e 's#all : build unitcheck#all : build#g' \
|
|
||||||
solenv/gbuild/Module.mk || die
|
|
||||||
sed -i \
|
|
||||||
-e 's#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g' \
|
|
||||||
-e 's#Makefile.gbuild all slowcheck#Makefile.gbuild all#g' \
|
|
||||||
Makefile.in || die
|
|
||||||
|
|
||||||
if use branding; then
|
|
||||||
# hack...
|
|
||||||
mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local java_opts
|
|
||||||
local internal_libs
|
|
||||||
local lo_ext
|
|
||||||
local ext_opts
|
|
||||||
local jbs=$(sed -ne 's/.*\(-j[[:space:]]*\|--jobs=\)\([[:digit:]]\+\).*/\2/;T;p' <<< "${MAKEOPTS}")
|
|
||||||
|
|
||||||
# recheck that there is some value in jobs
|
|
||||||
[[ -z ${jbs} ]] && jbs="1"
|
|
||||||
|
|
||||||
# sane: just sane.h header that is used for scan in writer, not
|
|
||||||
# linked or anything else, worthless to depend on
|
|
||||||
# vigra: just uses templates from there
|
|
||||||
# it is serious pain in the ass for packaging
|
|
||||||
# should be replaced by boost::gil if someone interested
|
|
||||||
internal_libs+="
|
|
||||||
--without-system-sane
|
|
||||||
--without-system-vigra
|
|
||||||
"
|
|
||||||
|
|
||||||
# libreoffice extensions handling
|
|
||||||
for lo_xt in ${LO_EXTS}; do
|
|
||||||
if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
|
|
||||||
ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt})"
|
|
||||||
else
|
|
||||||
ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt})"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if use java; then
|
|
||||||
# hsqldb: system one is too new
|
|
||||||
java_opts="
|
|
||||||
--without-junit
|
|
||||||
--without-system-hsqldb
|
|
||||||
--with-ant-home="${ANT_HOME}"
|
|
||||||
--with-jdk-home=$(java-config --jdk-home 2>/dev/null)
|
|
||||||
--with-jvm-path="${EPREFIX}/usr/$(get_libdir)/"
|
|
||||||
"
|
|
||||||
|
|
||||||
use libreoffice_extensions_scripting-beanshell && \
|
|
||||||
java_opts+=" --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)"
|
|
||||||
|
|
||||||
use libreoffice_extensions_scripting-javascript && \
|
|
||||||
java_opts+=" --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar)"
|
|
||||||
|
|
||||||
if use libreoffice_extensions_wiki-publisher; then
|
|
||||||
java_opts+="
|
|
||||||
--with-commons-codec-jar=$(java-pkg_getjar commons-codec commons-codec.jar)
|
|
||||||
--with-commons-httpclient-jar=$(java-pkg_getjar commons-httpclient-3 commons-httpclient.jar)
|
|
||||||
--with-commons-lang-jar=$(java-pkg_getjar commons-lang-2.1 commons-lang.jar)
|
|
||||||
--with-commons-logging-jar=$(java-pkg_getjar commons-logging commons-logging.jar)
|
|
||||||
--with-servlet-api-jar=$(java-pkg_getjar tomcat-servlet-api-3.0 servlet-api.jar)
|
|
||||||
"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# system headers/libs/...: enforce using system packages
|
|
||||||
# --enable-cairo: ensure that cairo is always required
|
|
||||||
# --enable-graphite: disabling causes build breakages
|
|
||||||
# --enable-*-link: link to the library rather than just dlopen on runtime
|
|
||||||
# --enable-release-build: build the libreoffice as release
|
|
||||||
# --disable-fetch-external: prevent dowloading during compile phase
|
|
||||||
# --disable-gnome-vfs: old gnome virtual fs support
|
|
||||||
# --disable-kdeab: kde3 adressbook
|
|
||||||
# --disable-kde: kde3 support
|
|
||||||
# --disable-rpath: relative runtime path is not desired
|
|
||||||
# --disable-systray: quickstarter does not actually work at all so do not
|
|
||||||
# promote it
|
|
||||||
# --enable-extension-integration: enable any extension integration support
|
|
||||||
# --without-{afms,fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
|
|
||||||
# --disable-report-builder: too much java packages pulled in without pkgs
|
|
||||||
econf \
|
|
||||||
--docdir="${EPREFIX}/usr/share/doc/${PF}/" \
|
|
||||||
--with-system-headers \
|
|
||||||
--with-system-libs \
|
|
||||||
--with-system-jars \
|
|
||||||
--with-system-dicts \
|
|
||||||
--enable-cairo-canvas \
|
|
||||||
--enable-graphite \
|
|
||||||
--enable-largefile \
|
|
||||||
--enable-mergelibs \
|
|
||||||
--enable-python=system \
|
|
||||||
--enable-randr \
|
|
||||||
--enable-randr-link \
|
|
||||||
--enable-release-build \
|
|
||||||
--disable-hardlink-deliver \
|
|
||||||
--disable-ccache \
|
|
||||||
--disable-crashdump \
|
|
||||||
--disable-dependency-tracking \
|
|
||||||
--disable-epm \
|
|
||||||
--disable-fetch-external \
|
|
||||||
--disable-gnome-vfs \
|
|
||||||
--disable-gstreamer-0-10 \
|
|
||||||
--disable-report-builder \
|
|
||||||
--disable-kdeab \
|
|
||||||
--disable-kde \
|
|
||||||
--disable-online-update \
|
|
||||||
--disable-rpath \
|
|
||||||
--disable-systray \
|
|
||||||
--with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \
|
|
||||||
--with-build-version="Gentoo official package" \
|
|
||||||
--enable-extension-integration \
|
|
||||||
--with-external-dict-dir="${EPREFIX}/usr/share/myspell" \
|
|
||||||
--with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \
|
|
||||||
--with-external-thes-dir="${EPREFIX}/usr/share/myspell" \
|
|
||||||
--with-external-tar="${DISTDIR}" \
|
|
||||||
--with-lang="" \
|
|
||||||
--with-parallelism=${jbs} \
|
|
||||||
--with-system-ucpp \
|
|
||||||
--with-vendor="Gentoo Foundation" \
|
|
||||||
--with-x \
|
|
||||||
--without-afms \
|
|
||||||
--without-fonts \
|
|
||||||
--without-myspell-dicts \
|
|
||||||
--without-help \
|
|
||||||
--with-helppack-integration \
|
|
||||||
--without-sun-templates \
|
|
||||||
$(use_enable bluetooth sdremote-bluetooth) \
|
|
||||||
$(use_enable cups) \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable dbus) \
|
|
||||||
$(use_enable eds evolution2) \
|
|
||||||
$(use_enable gnome gconf) \
|
|
||||||
$(use_enable gnome gio) \
|
|
||||||
$(use_enable gnome lockdown) \
|
|
||||||
$(use_enable gstreamer) \
|
|
||||||
$(use_enable gtk) \
|
|
||||||
$(use_enable gtk3) \
|
|
||||||
$(use_enable kde kde4) \
|
|
||||||
$(use_enable mysql ext-mariadb-connector) \
|
|
||||||
$(use_enable odk) \
|
|
||||||
$(use_enable opengl) \
|
|
||||||
$(use_enable postgres postgresql-sdbc) \
|
|
||||||
$(use_enable telepathy) \
|
|
||||||
$(use_enable test linkoo) \
|
|
||||||
$(use_enable vba) \
|
|
||||||
$(use_enable webdav neon) \
|
|
||||||
$(use_with java) \
|
|
||||||
$(use_with mysql system-mysql-cppconn) \
|
|
||||||
$(use_with odk doxygen) \
|
|
||||||
${internal_libs} \
|
|
||||||
${java_opts} \
|
|
||||||
${ext_opts}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
# hack for offlinehelp, this needs fixing upstream at some point
|
|
||||||
# it is broken because we send --without-help
|
|
||||||
# https://bugs.freedesktop.org/show_bug.cgi?id=46506
|
|
||||||
(
|
|
||||||
grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk"
|
|
||||||
source "${T}/config_host.mk" 2&> /dev/null
|
|
||||||
|
|
||||||
local path="${SOLARVER}/${INPATH}/res/img"
|
|
||||||
mkdir -p "${path}" || die
|
|
||||||
|
|
||||||
echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\""
|
|
||||||
perl "${S}/helpcontent2/helpers/create_ilst.pl" \
|
|
||||||
-dir=icon-themes/galaxy/res/helpimg \
|
|
||||||
> "${path}/helpimg.ilst"
|
|
||||||
[[ -s "${path}/helpimg.ilst" ]] || ewarn "The help images list is empty, something is fishy, report a bug."
|
|
||||||
)
|
|
||||||
|
|
||||||
local target
|
|
||||||
use test && target="build" || target="build-nocheck"
|
|
||||||
|
|
||||||
# this is not a proper make script
|
|
||||||
make ${target} || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
make unitcheck || die
|
|
||||||
make slowcheck || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# This is not Makefile so no buildserver
|
|
||||||
make DESTDIR="${D}" distro-pack-install -o build -o check || die
|
|
||||||
|
|
||||||
# Fix bash completion placement
|
|
||||||
newbashcomp "${ED}"/etc/bash_completion.d/libreoffice.sh ${PN}
|
|
||||||
rm -rf "${ED}"/etc/
|
|
||||||
|
|
||||||
if use branding; then
|
|
||||||
insinto /usr/$(get_libdir)/${PN}/program
|
|
||||||
newins "${WORKDIR}/branding-sofficerc" sofficerc
|
|
||||||
echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN}
|
|
||||||
fi
|
|
||||||
|
|
||||||
# symlink the nsplugin to proper location
|
|
||||||
# use gtk && inst_plugin /usr/$(get_libdir)/libreoffice/program/libnpsoplugin.so
|
|
||||||
|
|
||||||
# Hack for offlinehelp, this needs fixing upstream at some point.
|
|
||||||
# It is broken because we send --without-help
|
|
||||||
# https://bugs.freedesktop.org/show_bug.cgi?id=46506
|
|
||||||
insinto /usr/$(get_libdir)/libreoffice/help
|
|
||||||
doins xmlhelp/util/*.xsl
|
|
||||||
|
|
||||||
# Remove desktop files for support to old installs that can't parse mime
|
|
||||||
rm -rf "${ED}"/usr/share/mimelnk/
|
|
||||||
|
|
||||||
pax-mark -m "${ED}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
|
|
||||||
pax-mark -m "${ED}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
# Cache updates - all handled by kde eclass for all environments
|
|
||||||
kde4-base_pkg_preinst
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
kde4-base_pkg_postinst
|
|
||||||
|
|
||||||
use java || \
|
|
||||||
ewarn 'If you plan to use lbase application you should enable java or you will get various crashes.'
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
kde4-base_pkg_postrm
|
|
||||||
}
|
|
@ -1,586 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-4.1.5.3.ebuild,v 1.2 2014/03/27 09:13:17 scarabeus Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
KDE_REQUIRED="optional"
|
|
||||||
QT_MINIMAL="4.7.4"
|
|
||||||
KDE_SCM="git"
|
|
||||||
CMAKE_REQUIRED="never"
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 python3_3 )
|
|
||||||
PYTHON_REQ_USE="threads,xml"
|
|
||||||
|
|
||||||
# experimental ; release ; old
|
|
||||||
# Usually the tarballs are moved a lot so this should make
|
|
||||||
# everyone happy.
|
|
||||||
DEV_URI="
|
|
||||||
http://dev-builds.libreoffice.org/pre-releases/src
|
|
||||||
http://download.documentfoundation.org/libreoffice/src/${PV:0:5}/
|
|
||||||
http://download.documentfoundation.org/libreoffice/old/${PV}/
|
|
||||||
"
|
|
||||||
EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice"
|
|
||||||
ADDONS_URI="http://dev-www.libreoffice.org/src/"
|
|
||||||
|
|
||||||
BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
|
|
||||||
# PATCHSET="${P}-patchset-01.tar.xz"
|
|
||||||
|
|
||||||
[[ ${PV} == *9999* ]] && SCM_ECLASS="git-2"
|
|
||||||
inherit base autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic nsplugins ${SCM_ECLASS}
|
|
||||||
unset SCM_ECLASS
|
|
||||||
|
|
||||||
DESCRIPTION="LibreOffice, a full office productivity suite."
|
|
||||||
HOMEPAGE="http://www.libreoffice.org"
|
|
||||||
SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
|
|
||||||
[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}"
|
|
||||||
|
|
||||||
# Split modules following git/tarballs
|
|
||||||
# Core MUST be first!
|
|
||||||
# Help is used for the image generator
|
|
||||||
MODULES="core help"
|
|
||||||
# Only release has the tarballs
|
|
||||||
if [[ ${PV} != *9999* ]]; then
|
|
||||||
for i in ${DEV_URI}; do
|
|
||||||
for mod in ${MODULES}; do
|
|
||||||
if [[ ${mod} == core ]]; then
|
|
||||||
SRC_URI+=" ${i}/${P}.tar.xz"
|
|
||||||
else
|
|
||||||
SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
unset mod
|
|
||||||
done
|
|
||||||
unset i
|
|
||||||
fi
|
|
||||||
unset DEV_URI
|
|
||||||
|
|
||||||
# Really required addons
|
|
||||||
# These are bundles that can't be removed for now due to huge patchsets.
|
|
||||||
# If you want them gone, patches are welcome.
|
|
||||||
ADDONS_SRC+=" ${ADDONS_URI}/ea91f2fb4212a21d708aced277e6e85a-vigra1.4.0.tar.gz"
|
|
||||||
ADDONS_SRC+=" ${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz" # modifies source code
|
|
||||||
ADDONS_SRC+=" java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
|
|
||||||
ADDONS_SRC+=" libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" # no release for 8 years, should we package it?
|
|
||||||
ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" # Does not build with 1.6 rhino at all
|
|
||||||
ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" # requirement of rhino
|
|
||||||
ADDONS_SRC+=" odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" # not packageable
|
|
||||||
SRC_URI+=" ${ADDONS_SRC}"
|
|
||||||
|
|
||||||
unset ADDONS_URI
|
|
||||||
unset EXT_URI
|
|
||||||
unset ADDONS_SRC
|
|
||||||
|
|
||||||
IUSE="bluetooth +branding +cups dbus debug eds gnome gstreamer +gtk
|
|
||||||
gtk3 jemalloc kde mysql odk opengl postgres telepathy test +vba +webdav"
|
|
||||||
|
|
||||||
LO_EXTS="nlpsolver presenter-minimizer scripting-beanshell scripting-javascript wiki-publisher"
|
|
||||||
# Unpackaged separate extensions:
|
|
||||||
# diagram: lo has 0.9.5 upstream is weirdly patched 0.9.4 -> wtf?
|
|
||||||
# hunart: only on ooo extensions -> fubared download path somewhere on sf
|
|
||||||
# numbertext, typo, validator, watch-window: ^^
|
|
||||||
# oooblogger: no homepage or anything
|
|
||||||
# Extensions that need extra work:
|
|
||||||
for lo_xt in ${LO_EXTS}; do
|
|
||||||
IUSE+=" libreoffice_extensions_${lo_xt}"
|
|
||||||
done
|
|
||||||
unset lo_xt
|
|
||||||
|
|
||||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
[[ ${PV} == *9999* ]] || \
|
|
||||||
KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux"
|
|
||||||
|
|
||||||
COMMON_DEPEND="
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
app-arch/zip
|
|
||||||
app-arch/unzip
|
|
||||||
>=app-text/hunspell-1.3.2-r3
|
|
||||||
app-text/mythes
|
|
||||||
>=app-text/libexttextcat-3.2
|
|
||||||
app-text/liblangtag
|
|
||||||
app-text/libmspub
|
|
||||||
<app-text/libmwaw-0.2.0
|
|
||||||
app-text/libodfgen
|
|
||||||
app-text/libwpd:0.9[tools]
|
|
||||||
app-text/libwpg:0.2
|
|
||||||
>=app-text/libwps-0.2.2
|
|
||||||
>=app-text/poppler-0.16:=[xpdf-headers(+),cxx]
|
|
||||||
>=dev-cpp/clucene-2.3.3.4-r2
|
|
||||||
>=dev-cpp/libcmis-0.3.1:0.3
|
|
||||||
dev-db/unixODBC
|
|
||||||
>=dev-libs/boost-1.46:=
|
|
||||||
dev-libs/expat
|
|
||||||
>=dev-libs/hyphen-2.7.1
|
|
||||||
>=dev-libs/icu-4.8.1.1:=
|
|
||||||
=dev-libs/liborcus-0.5*:=
|
|
||||||
>=dev-libs/nspr-4.8.8
|
|
||||||
>=dev-libs/nss-3.12.9
|
|
||||||
>=dev-lang/perl-5.0
|
|
||||||
>=dev-libs/openssl-1.0.0d
|
|
||||||
>=dev-libs/redland-1.0.16[ssl]
|
|
||||||
media-gfx/graphite2
|
|
||||||
>=media-libs/fontconfig-2.8.0
|
|
||||||
media-libs/freetype:2
|
|
||||||
>=media-libs/harfbuzz-0.9.10:=[icu(+)]
|
|
||||||
media-libs/lcms:2
|
|
||||||
>=media-libs/libpng-1.4
|
|
||||||
>=media-libs/libcdr-0.0.5
|
|
||||||
media-libs/libvisio
|
|
||||||
>=net-misc/curl-7.21.4
|
|
||||||
net-nds/openldap
|
|
||||||
sci-mathematics/lpsolve
|
|
||||||
virtual/jpeg:0
|
|
||||||
>=x11-libs/cairo-1.10.0[X]
|
|
||||||
x11-libs/libXinerama
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXrender
|
|
||||||
bluetooth? ( net-wireless/bluez )
|
|
||||||
cups? ( net-print/cups )
|
|
||||||
dbus? ( >=dev-libs/dbus-glib-0.92 )
|
|
||||||
eds? ( gnome-extra/evolution-data-server )
|
|
||||||
gnome? ( gnome-base/gconf:2 )
|
|
||||||
gtk? (
|
|
||||||
x11-libs/gdk-pixbuf[X]
|
|
||||||
>=x11-libs/gtk+-2.24:2
|
|
||||||
)
|
|
||||||
gtk3? ( >=x11-libs/gtk+-3.2:3 )
|
|
||||||
gstreamer? (
|
|
||||||
media-libs/gstreamer:1.0
|
|
||||||
media-libs/gst-plugins-base:1.0
|
|
||||||
)
|
|
||||||
jemalloc? ( dev-libs/jemalloc )
|
|
||||||
libreoffice_extensions_scripting-beanshell? ( >=dev-java/bsh-2.0_beta4 )
|
|
||||||
libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
|
|
||||||
libreoffice_extensions_wiki-publisher? (
|
|
||||||
dev-java/commons-codec:0
|
|
||||||
dev-java/commons-httpclient:3
|
|
||||||
dev-java/commons-lang:2.1
|
|
||||||
dev-java/commons-logging:0
|
|
||||||
dev-java/tomcat-servlet-api:3.0
|
|
||||||
)
|
|
||||||
mysql? ( >=dev-db/mysql-connector-c++-1.1.0 )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
postgres? ( >=dev-db/postgresql-base-9.0[kerberos] )
|
|
||||||
telepathy? (
|
|
||||||
dev-libs/glib:2
|
|
||||||
>=net-libs/telepathy-glib-0.18.0
|
|
||||||
>=x11-libs/gtk+-2.24:2
|
|
||||||
)
|
|
||||||
webdav? ( net-libs/neon )
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
!app-office/libreoffice-bin
|
|
||||||
!app-office/libreoffice-bin-debug
|
|
||||||
!<app-office/openoffice-bin-3.4.0-r1
|
|
||||||
!app-office/openoffice
|
|
||||||
media-fonts/libertine-ttf
|
|
||||||
media-fonts/liberation-fonts
|
|
||||||
media-fonts/urw-fonts
|
|
||||||
java? ( >=virtual/jre-1.6 )
|
|
||||||
"
|
|
||||||
|
|
||||||
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
|
|
||||||
# as dmake execute tests right away
|
|
||||||
DEPEND="${COMMON_DEPEND}
|
|
||||||
>=dev-libs/libxml2-2.7.8
|
|
||||||
dev-libs/libxslt
|
|
||||||
dev-perl/Archive-Zip
|
|
||||||
dev-util/cppunit
|
|
||||||
>=dev-util/gperf-3
|
|
||||||
dev-util/intltool
|
|
||||||
=dev-util/mdds-0.8*:=
|
|
||||||
virtual/pkgconfig
|
|
||||||
net-misc/npapi-sdk
|
|
||||||
>=sys-apps/findutils-4.4.2
|
|
||||||
sys-devel/bison
|
|
||||||
sys-apps/coreutils
|
|
||||||
sys-devel/flex
|
|
||||||
sys-devel/gettext
|
|
||||||
>=sys-devel/make-3.82
|
|
||||||
sys-devel/ucpp
|
|
||||||
sys-libs/zlib
|
|
||||||
x11-libs/libXt
|
|
||||||
x11-libs/libXtst
|
|
||||||
x11-proto/randrproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xineramaproto
|
|
||||||
x11-proto/xproto
|
|
||||||
java? (
|
|
||||||
>=virtual/jdk-1.6
|
|
||||||
>=dev-java/ant-core-1.7
|
|
||||||
)
|
|
||||||
odk? ( app-doc/doxygen )
|
|
||||||
test? ( dev-util/cppunit )
|
|
||||||
"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
# not upstreamable stuff
|
|
||||||
"${FILESDIR}/${PN}-3.7-system-pyuno.patch"
|
|
||||||
|
|
||||||
# picked from git master
|
|
||||||
"${FILESDIR}/${PN}-4.1.3.2-kde-recursiverepaint.patch"
|
|
||||||
"${FILESDIR}/${PN}-4.1.3.2-kde-calchang.patch"
|
|
||||||
|
|
||||||
# staged for git master
|
|
||||||
"${FILESDIR}/${PN}-4.1.4.2-curl-config.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
REQUIRED_USE="
|
|
||||||
${PYTHON_REQUIRED_USE}
|
|
||||||
bluetooth? ( dbus )
|
|
||||||
gnome? ( gtk )
|
|
||||||
eds? ( gnome )
|
|
||||||
telepathy? ( gtk )
|
|
||||||
libreoffice_extensions_nlpsolver? ( java )
|
|
||||||
libreoffice_extensions_scripting-beanshell? ( java )
|
|
||||||
libreoffice_extensions_scripting-javascript? ( java )
|
|
||||||
libreoffice_extensions_wiki-publisher? ( java )
|
|
||||||
"
|
|
||||||
|
|
||||||
CHECKREQS_MEMORY="512M"
|
|
||||||
CHECKREQS_DISK_BUILD="6G"
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
local pgslot
|
|
||||||
|
|
||||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
|
||||||
check-reqs_pkg_pretend
|
|
||||||
|
|
||||||
if [[ $(gcc-major-version) -lt 4 ]] || \
|
|
||||||
( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]] ) \
|
|
||||||
; then
|
|
||||||
eerror "Compilation with gcc older than 4.6 is not supported"
|
|
||||||
die "Too old gcc found."
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# ensure pg version
|
|
||||||
if use postgres && has_version dev-db/postgresql-base; then
|
|
||||||
pgslot=$(postgresql-config show)
|
|
||||||
if [[ ${pgslot//.} < 90 ]] ; then
|
|
||||||
eerror "PostgreSQL slot must be set to 9.0 or higher."
|
|
||||||
eerror " postgresql-config set 9.0"
|
|
||||||
die "PostgreSQL slot is not set to 9.0 or higher."
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
java-pkg-opt-2_pkg_setup
|
|
||||||
kde4-base_pkg_setup
|
|
||||||
python-single-r1_pkg_setup
|
|
||||||
|
|
||||||
[[ ${MERGE_TYPE} != binary ]] && check-reqs_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
local mod mod2 dest tmplfile tmplname mypv
|
|
||||||
|
|
||||||
[[ -n ${PATCHSET} ]] && unpack ${PATCHSET}
|
|
||||||
use branding && unpack "${BRANDING}"
|
|
||||||
|
|
||||||
if [[ ${PV} != *9999* ]]; then
|
|
||||||
unpack "${P}.tar.xz"
|
|
||||||
for mod in ${MODULES}; do
|
|
||||||
[[ ${mod} == core ]] && continue
|
|
||||||
unpack "${PN}-${mod}-${PV}.tar.xz"
|
|
||||||
done
|
|
||||||
else
|
|
||||||
for mod in ${MODULES}; do
|
|
||||||
mypv=${PV/.9999}
|
|
||||||
[[ ${mypv} != ${PV} ]] && EGIT_BRANCH="${PN}-${mypv/./-}"
|
|
||||||
EGIT_PROJECT="${PN}/${mod}"
|
|
||||||
EGIT_SOURCEDIR="${WORKDIR}/${P}"
|
|
||||||
[[ ${mod} != core ]] && EGIT_SOURCEDIR="${WORKDIR}/${PN}-${mod}-${PV}"
|
|
||||||
EGIT_REPO_URI="git://anongit.freedesktop.org/${PN}/${mod}"
|
|
||||||
EGIT_NOUNPACK="true"
|
|
||||||
git-2_src_unpack
|
|
||||||
if [[ ${mod} != core ]]; then
|
|
||||||
mod2=${mod}
|
|
||||||
# mapping does not match on help
|
|
||||||
[[ ${mod} == help ]] && mod2="helpcontent2"
|
|
||||||
mkdir -p "${S}/${mod2}/" || die
|
|
||||||
mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}/${mod2}" || die
|
|
||||||
rm -rf "${WORKDIR}/${PN}-${mod}-${PV}"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
unset EGIT_PROJECT EGIT_SOURCEDIR EGIT_REPO_URI EGIT_BRANCH
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# optimization flags
|
|
||||||
export GMAKE_OPTIONS="${MAKEOPTS}"
|
|
||||||
# System python 2.7 enablement:
|
|
||||||
export PYTHON_CFLAGS=$(python_get_CFLAGS)
|
|
||||||
export PYTHON_LIBS=$(python_get_LIBS)
|
|
||||||
|
|
||||||
# patchset
|
|
||||||
if [[ -n ${PATCHSET} ]]; then
|
|
||||||
EPATCH_FORCE="yes" \
|
|
||||||
EPATCH_SOURCE="${WORKDIR}/${PATCHSET/.tar.xz/}" \
|
|
||||||
EPATCH_SUFFIX="patch" \
|
|
||||||
epatch
|
|
||||||
fi
|
|
||||||
|
|
||||||
base_src_prepare
|
|
||||||
|
|
||||||
AT_M4DIR="m4" eautoreconf
|
|
||||||
# hack in the autogen.sh
|
|
||||||
touch autogen.lastrun
|
|
||||||
|
|
||||||
# system pyuno mess
|
|
||||||
sed \
|
|
||||||
-e "s:%eprefix%:${EPREFIX}:g" \
|
|
||||||
-e "s:%libdir%:$(get_libdir):g" \
|
|
||||||
-i pyuno/source/module/uno.py \
|
|
||||||
-i scripting/source/pyprov/officehelper.py || die
|
|
||||||
# sed in the tests
|
|
||||||
sed -i \
|
|
||||||
-e 's#all : build unitcheck#all : build#g' \
|
|
||||||
solenv/gbuild/Module.mk || die
|
|
||||||
sed -i \
|
|
||||||
-e 's#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g' \
|
|
||||||
-e 's#Makefile.gbuild all slowcheck#Makefile.gbuild all#g' \
|
|
||||||
Makefile.in || die
|
|
||||||
|
|
||||||
if use branding; then
|
|
||||||
# hack...
|
|
||||||
mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local java_opts
|
|
||||||
local internal_libs
|
|
||||||
local lo_ext
|
|
||||||
local ext_opts
|
|
||||||
local jbs=$(sed -ne 's/.*\(-j[[:space:]]*\|--jobs=\)\([[:digit:]]\+\).*/\2/;T;p' <<< "${MAKEOPTS}")
|
|
||||||
|
|
||||||
# recheck that there is some value in jobs
|
|
||||||
[[ -z ${jbs} ]] && jbs="1"
|
|
||||||
|
|
||||||
# sane: just sane.h header that is used for scan in writer, not
|
|
||||||
# linked or anything else, worthless to depend on
|
|
||||||
# vigra: just uses templates from there
|
|
||||||
# it is serious pain in the ass for packaging
|
|
||||||
# should be replaced by boost::gil if someone interested
|
|
||||||
internal_libs+="
|
|
||||||
--without-system-sane
|
|
||||||
--without-system-vigra
|
|
||||||
"
|
|
||||||
|
|
||||||
# libreoffice extensions handling
|
|
||||||
for lo_xt in ${LO_EXTS}; do
|
|
||||||
if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
|
|
||||||
ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt})"
|
|
||||||
else
|
|
||||||
ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt})"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if use java; then
|
|
||||||
# hsqldb: system one is too new
|
|
||||||
java_opts="
|
|
||||||
--without-junit
|
|
||||||
--without-system-hsqldb
|
|
||||||
--with-ant-home="${ANT_HOME}"
|
|
||||||
--with-jdk-home=$(java-config --jdk-home 2>/dev/null)
|
|
||||||
--with-jvm-path="${EPREFIX}/usr/$(get_libdir)/"
|
|
||||||
"
|
|
||||||
|
|
||||||
use libreoffice_extensions_scripting-beanshell && \
|
|
||||||
java_opts+=" --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)"
|
|
||||||
|
|
||||||
use libreoffice_extensions_scripting-javascript && \
|
|
||||||
java_opts+=" --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar)"
|
|
||||||
|
|
||||||
if use libreoffice_extensions_wiki-publisher; then
|
|
||||||
java_opts+="
|
|
||||||
--with-commons-codec-jar=$(java-pkg_getjar commons-codec commons-codec.jar)
|
|
||||||
--with-commons-httpclient-jar=$(java-pkg_getjar commons-httpclient-3 commons-httpclient.jar)
|
|
||||||
--with-commons-lang-jar=$(java-pkg_getjar commons-lang-2.1 commons-lang.jar)
|
|
||||||
--with-commons-logging-jar=$(java-pkg_getjar commons-logging commons-logging.jar)
|
|
||||||
--with-servlet-api-jar=$(java-pkg_getjar tomcat-servlet-api-3.0 servlet-api.jar)
|
|
||||||
"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# system headers/libs/...: enforce using system packages
|
|
||||||
# --enable-cairo: ensure that cairo is always required
|
|
||||||
# --enable-graphite: disabling causes build breakages
|
|
||||||
# --enable-*-link: link to the library rather than just dlopen on runtime
|
|
||||||
# --enable-release-build: build the libreoffice as release
|
|
||||||
# --disable-fetch-external: prevent dowloading during compile phase
|
|
||||||
# --disable-gnome-vfs: old gnome virtual fs support
|
|
||||||
# --disable-kdeab: kde3 adressbook
|
|
||||||
# --disable-kde: kde3 support
|
|
||||||
# --disable-rpath: relative runtime path is not desired
|
|
||||||
# --disable-systray: quickstarter does not actually work at all so do not
|
|
||||||
# promote it
|
|
||||||
# --enable-extension-integration: enable any extension integration support
|
|
||||||
# --without-{afms,fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
|
|
||||||
# --disable-report-builder: too much java packages pulled in without pkgs
|
|
||||||
econf \
|
|
||||||
--docdir="${EPREFIX}/usr/share/doc/${PF}/" \
|
|
||||||
--with-system-headers \
|
|
||||||
--with-system-libs \
|
|
||||||
--with-system-jars \
|
|
||||||
--with-system-dicts \
|
|
||||||
--enable-cairo-canvas \
|
|
||||||
--enable-graphite \
|
|
||||||
--enable-largefile \
|
|
||||||
--enable-mergelibs \
|
|
||||||
--enable-python=system \
|
|
||||||
--enable-randr \
|
|
||||||
--enable-randr-link \
|
|
||||||
--enable-release-build \
|
|
||||||
--disable-hardlink-deliver \
|
|
||||||
--disable-ccache \
|
|
||||||
--disable-crashdump \
|
|
||||||
--disable-dependency-tracking \
|
|
||||||
--disable-epm \
|
|
||||||
--disable-fetch-external \
|
|
||||||
--disable-gnome-vfs \
|
|
||||||
--disable-gstreamer-0-10 \
|
|
||||||
--disable-report-builder \
|
|
||||||
--disable-kdeab \
|
|
||||||
--disable-kde \
|
|
||||||
--disable-online-update \
|
|
||||||
--disable-rpath \
|
|
||||||
--disable-systray \
|
|
||||||
--with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \
|
|
||||||
--with-build-version="Gentoo official package" \
|
|
||||||
--enable-extension-integration \
|
|
||||||
--with-external-dict-dir="${EPREFIX}/usr/share/myspell" \
|
|
||||||
--with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \
|
|
||||||
--with-external-thes-dir="${EPREFIX}/usr/share/myspell" \
|
|
||||||
--with-external-tar="${DISTDIR}" \
|
|
||||||
--with-lang="" \
|
|
||||||
--with-parallelism=${jbs} \
|
|
||||||
--with-system-ucpp \
|
|
||||||
--with-vendor="Gentoo Foundation" \
|
|
||||||
--with-x \
|
|
||||||
--without-afms \
|
|
||||||
--without-fonts \
|
|
||||||
--without-myspell-dicts \
|
|
||||||
--without-help \
|
|
||||||
--with-helppack-integration \
|
|
||||||
--without-sun-templates \
|
|
||||||
$(use_enable bluetooth sdremote-bluetooth) \
|
|
||||||
$(use_enable cups) \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable dbus) \
|
|
||||||
$(use_enable eds evolution2) \
|
|
||||||
$(use_enable gnome gconf) \
|
|
||||||
$(use_enable gnome gio) \
|
|
||||||
$(use_enable gnome lockdown) \
|
|
||||||
$(use_enable gstreamer) \
|
|
||||||
$(use_enable gtk) \
|
|
||||||
$(use_enable gtk3) \
|
|
||||||
$(use_enable kde kde4) \
|
|
||||||
$(use_enable mysql ext-mariadb-connector) \
|
|
||||||
$(use_enable odk) \
|
|
||||||
$(use_enable opengl) \
|
|
||||||
$(use_enable postgres postgresql-sdbc) \
|
|
||||||
$(use_enable telepathy) \
|
|
||||||
$(use_enable test linkoo) \
|
|
||||||
$(use_enable vba) \
|
|
||||||
$(use_enable webdav neon) \
|
|
||||||
$(use_with java) \
|
|
||||||
$(use_with mysql system-mysql-cppconn) \
|
|
||||||
$(use_with odk doxygen) \
|
|
||||||
${internal_libs} \
|
|
||||||
${java_opts} \
|
|
||||||
${ext_opts}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
# hack for offlinehelp, this needs fixing upstream at some point
|
|
||||||
# it is broken because we send --without-help
|
|
||||||
# https://bugs.freedesktop.org/show_bug.cgi?id=46506
|
|
||||||
(
|
|
||||||
grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk"
|
|
||||||
source "${T}/config_host.mk" 2&> /dev/null
|
|
||||||
|
|
||||||
local path="${SOLARVER}/${INPATH}/res/img"
|
|
||||||
mkdir -p "${path}" || die
|
|
||||||
|
|
||||||
echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\""
|
|
||||||
perl "${S}/helpcontent2/helpers/create_ilst.pl" \
|
|
||||||
-dir=icon-themes/galaxy/res/helpimg \
|
|
||||||
> "${path}/helpimg.ilst"
|
|
||||||
[[ -s "${path}/helpimg.ilst" ]] || ewarn "The help images list is empty, something is fishy, report a bug."
|
|
||||||
)
|
|
||||||
|
|
||||||
local target
|
|
||||||
use test && target="build" || target="build-nocheck"
|
|
||||||
|
|
||||||
# this is not a proper make script
|
|
||||||
make ${target} || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
make unitcheck || die
|
|
||||||
make slowcheck || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# This is not Makefile so no buildserver
|
|
||||||
make DESTDIR="${D}" distro-pack-install -o build -o check || die
|
|
||||||
|
|
||||||
# Fix bash completion placement
|
|
||||||
newbashcomp "${ED}"/etc/bash_completion.d/libreoffice.sh ${PN}
|
|
||||||
rm -rf "${ED}"/etc/
|
|
||||||
|
|
||||||
if use branding; then
|
|
||||||
insinto /usr/$(get_libdir)/${PN}/program
|
|
||||||
newins "${WORKDIR}/branding-sofficerc" sofficerc
|
|
||||||
echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN}
|
|
||||||
fi
|
|
||||||
|
|
||||||
# symlink the nsplugin to proper location
|
|
||||||
# use gtk && inst_plugin /usr/$(get_libdir)/libreoffice/program/libnpsoplugin.so
|
|
||||||
|
|
||||||
# Hack for offlinehelp, this needs fixing upstream at some point.
|
|
||||||
# It is broken because we send --without-help
|
|
||||||
# https://bugs.freedesktop.org/show_bug.cgi?id=46506
|
|
||||||
insinto /usr/$(get_libdir)/libreoffice/help
|
|
||||||
doins xmlhelp/util/*.xsl
|
|
||||||
|
|
||||||
# Remove desktop files for support to old installs that can't parse mime
|
|
||||||
rm -rf "${ED}"/usr/share/mimelnk/
|
|
||||||
|
|
||||||
pax-mark -m "${ED}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
|
|
||||||
pax-mark -m "${ED}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
# Cache updates - all handled by kde eclass for all environments
|
|
||||||
kde4-base_pkg_preinst
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
kde4-base_pkg_postinst
|
|
||||||
|
|
||||||
use java || \
|
|
||||||
ewarn 'If you plan to use lbase application you should enable java or you will get various crashes.'
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
kde4-base_pkg_postrm
|
|
||||||
}
|
|
@ -1,586 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-4.1.9999.ebuild,v 1.23 2014/03/27 09:13:17 scarabeus Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
KDE_REQUIRED="optional"
|
|
||||||
QT_MINIMAL="4.7.4"
|
|
||||||
KDE_SCM="git"
|
|
||||||
CMAKE_REQUIRED="never"
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 python3_3 )
|
|
||||||
PYTHON_REQ_USE="threads,xml"
|
|
||||||
|
|
||||||
# experimental ; release ; old
|
|
||||||
# Usually the tarballs are moved a lot so this should make
|
|
||||||
# everyone happy.
|
|
||||||
DEV_URI="
|
|
||||||
http://dev-builds.libreoffice.org/pre-releases/src
|
|
||||||
http://download.documentfoundation.org/libreoffice/src/${PV:0:5}/
|
|
||||||
http://download.documentfoundation.org/libreoffice/old/${PV}/
|
|
||||||
"
|
|
||||||
EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice"
|
|
||||||
ADDONS_URI="http://dev-www.libreoffice.org/src/"
|
|
||||||
|
|
||||||
BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
|
|
||||||
# PATCHSET="${P}-patchset-01.tar.xz"
|
|
||||||
|
|
||||||
[[ ${PV} == *9999* ]] && SCM_ECLASS="git-2"
|
|
||||||
inherit base autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic nsplugins ${SCM_ECLASS}
|
|
||||||
unset SCM_ECLASS
|
|
||||||
|
|
||||||
DESCRIPTION="LibreOffice, a full office productivity suite."
|
|
||||||
HOMEPAGE="http://www.libreoffice.org"
|
|
||||||
SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
|
|
||||||
[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}"
|
|
||||||
|
|
||||||
# Split modules following git/tarballs
|
|
||||||
# Core MUST be first!
|
|
||||||
# Help is used for the image generator
|
|
||||||
MODULES="core help"
|
|
||||||
# Only release has the tarballs
|
|
||||||
if [[ ${PV} != *9999* ]]; then
|
|
||||||
for i in ${DEV_URI}; do
|
|
||||||
for mod in ${MODULES}; do
|
|
||||||
if [[ ${mod} == core ]]; then
|
|
||||||
SRC_URI+=" ${i}/${P}.tar.xz"
|
|
||||||
else
|
|
||||||
SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
unset mod
|
|
||||||
done
|
|
||||||
unset i
|
|
||||||
fi
|
|
||||||
unset DEV_URI
|
|
||||||
|
|
||||||
# Really required addons
|
|
||||||
# These are bundles that can't be removed for now due to huge patchsets.
|
|
||||||
# If you want them gone, patches are welcome.
|
|
||||||
ADDONS_SRC+=" ${ADDONS_URI}/ea91f2fb4212a21d708aced277e6e85a-vigra1.4.0.tar.gz"
|
|
||||||
ADDONS_SRC+=" ${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz" # modifies source code
|
|
||||||
ADDONS_SRC+=" java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
|
|
||||||
ADDONS_SRC+=" libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" # no release for 8 years, should we package it?
|
|
||||||
ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" # Does not build with 1.6 rhino at all
|
|
||||||
ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" # requirement of rhino
|
|
||||||
ADDONS_SRC+=" odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" # not packageable
|
|
||||||
SRC_URI+=" ${ADDONS_SRC}"
|
|
||||||
|
|
||||||
unset ADDONS_URI
|
|
||||||
unset EXT_URI
|
|
||||||
unset ADDONS_SRC
|
|
||||||
|
|
||||||
IUSE="bluetooth +branding +cups dbus debug eds gnome gstreamer +gtk
|
|
||||||
gtk3 jemalloc kde mysql odk opengl postgres telepathy test +vba +webdav"
|
|
||||||
|
|
||||||
LO_EXTS="nlpsolver presenter-minimizer scripting-beanshell scripting-javascript wiki-publisher"
|
|
||||||
# Unpackaged separate extensions:
|
|
||||||
# diagram: lo has 0.9.5 upstream is weirdly patched 0.9.4 -> wtf?
|
|
||||||
# hunart: only on ooo extensions -> fubared download path somewhere on sf
|
|
||||||
# numbertext, typo, validator, watch-window: ^^
|
|
||||||
# oooblogger: no homepage or anything
|
|
||||||
# Extensions that need extra work:
|
|
||||||
for lo_xt in ${LO_EXTS}; do
|
|
||||||
IUSE+=" libreoffice_extensions_${lo_xt}"
|
|
||||||
done
|
|
||||||
unset lo_xt
|
|
||||||
|
|
||||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
[[ ${PV} == *9999* ]] || \
|
|
||||||
KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux"
|
|
||||||
|
|
||||||
COMMON_DEPEND="
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
app-arch/zip
|
|
||||||
app-arch/unzip
|
|
||||||
>=app-text/hunspell-1.3.2-r3
|
|
||||||
app-text/mythes
|
|
||||||
>=app-text/libexttextcat-3.2
|
|
||||||
app-text/liblangtag
|
|
||||||
app-text/libmspub
|
|
||||||
<app-text/libmwaw-0.2.0
|
|
||||||
app-text/libodfgen
|
|
||||||
app-text/libwpd:0.9[tools]
|
|
||||||
app-text/libwpg:0.2
|
|
||||||
>=app-text/libwps-0.2.2
|
|
||||||
>=app-text/poppler-0.16:=[xpdf-headers(+),cxx]
|
|
||||||
>=dev-cpp/clucene-2.3.3.4-r2
|
|
||||||
>=dev-cpp/libcmis-0.3.1:0.3
|
|
||||||
dev-db/unixODBC
|
|
||||||
>=dev-libs/boost-1.46:=
|
|
||||||
dev-libs/expat
|
|
||||||
>=dev-libs/hyphen-2.7.1
|
|
||||||
>=dev-libs/icu-4.8.1.1:=
|
|
||||||
=dev-libs/liborcus-0.5*:=
|
|
||||||
>=dev-libs/nspr-4.8.8
|
|
||||||
>=dev-libs/nss-3.12.9
|
|
||||||
>=dev-lang/perl-5.0
|
|
||||||
>=dev-libs/openssl-1.0.0d
|
|
||||||
>=dev-libs/redland-1.0.16[ssl]
|
|
||||||
media-gfx/graphite2
|
|
||||||
>=media-libs/fontconfig-2.8.0
|
|
||||||
media-libs/freetype:2
|
|
||||||
>=media-libs/harfbuzz-0.9.10:=[icu(+)]
|
|
||||||
media-libs/lcms:2
|
|
||||||
>=media-libs/libpng-1.4
|
|
||||||
>=media-libs/libcdr-0.0.5
|
|
||||||
media-libs/libvisio
|
|
||||||
>=net-misc/curl-7.21.4
|
|
||||||
net-nds/openldap
|
|
||||||
sci-mathematics/lpsolve
|
|
||||||
virtual/jpeg:0
|
|
||||||
>=x11-libs/cairo-1.10.0[X]
|
|
||||||
x11-libs/libXinerama
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXrender
|
|
||||||
bluetooth? ( net-wireless/bluez )
|
|
||||||
cups? ( net-print/cups )
|
|
||||||
dbus? ( >=dev-libs/dbus-glib-0.92 )
|
|
||||||
eds? ( gnome-extra/evolution-data-server )
|
|
||||||
gnome? ( gnome-base/gconf:2 )
|
|
||||||
gtk? (
|
|
||||||
x11-libs/gdk-pixbuf[X]
|
|
||||||
>=x11-libs/gtk+-2.24:2
|
|
||||||
)
|
|
||||||
gtk3? ( >=x11-libs/gtk+-3.2:3 )
|
|
||||||
gstreamer? (
|
|
||||||
media-libs/gstreamer:1.0
|
|
||||||
media-libs/gst-plugins-base:1.0
|
|
||||||
)
|
|
||||||
jemalloc? ( dev-libs/jemalloc )
|
|
||||||
libreoffice_extensions_scripting-beanshell? ( >=dev-java/bsh-2.0_beta4 )
|
|
||||||
libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
|
|
||||||
libreoffice_extensions_wiki-publisher? (
|
|
||||||
dev-java/commons-codec:0
|
|
||||||
dev-java/commons-httpclient:3
|
|
||||||
dev-java/commons-lang:2.1
|
|
||||||
dev-java/commons-logging:0
|
|
||||||
dev-java/tomcat-servlet-api:3.0
|
|
||||||
)
|
|
||||||
mysql? ( >=dev-db/mysql-connector-c++-1.1.0 )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
postgres? ( >=dev-db/postgresql-base-9.0[kerberos] )
|
|
||||||
telepathy? (
|
|
||||||
dev-libs/glib:2
|
|
||||||
>=net-libs/telepathy-glib-0.18.0
|
|
||||||
>=x11-libs/gtk+-2.24:2
|
|
||||||
)
|
|
||||||
webdav? ( net-libs/neon )
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
!app-office/libreoffice-bin
|
|
||||||
!app-office/libreoffice-bin-debug
|
|
||||||
!<app-office/openoffice-bin-3.4.0-r1
|
|
||||||
!app-office/openoffice
|
|
||||||
media-fonts/libertine-ttf
|
|
||||||
media-fonts/liberation-fonts
|
|
||||||
media-fonts/urw-fonts
|
|
||||||
java? ( >=virtual/jre-1.6 )
|
|
||||||
"
|
|
||||||
|
|
||||||
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
|
|
||||||
# as dmake execute tests right away
|
|
||||||
DEPEND="${COMMON_DEPEND}
|
|
||||||
>=dev-libs/libxml2-2.7.8
|
|
||||||
dev-libs/libxslt
|
|
||||||
dev-perl/Archive-Zip
|
|
||||||
dev-util/cppunit
|
|
||||||
>=dev-util/gperf-3
|
|
||||||
dev-util/intltool
|
|
||||||
=dev-util/mdds-0.8*:=
|
|
||||||
virtual/pkgconfig
|
|
||||||
net-misc/npapi-sdk
|
|
||||||
>=sys-apps/findutils-4.4.2
|
|
||||||
sys-devel/bison
|
|
||||||
sys-apps/coreutils
|
|
||||||
sys-devel/flex
|
|
||||||
sys-devel/gettext
|
|
||||||
>=sys-devel/make-3.82
|
|
||||||
sys-devel/ucpp
|
|
||||||
sys-libs/zlib
|
|
||||||
x11-libs/libXt
|
|
||||||
x11-libs/libXtst
|
|
||||||
x11-proto/randrproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xineramaproto
|
|
||||||
x11-proto/xproto
|
|
||||||
java? (
|
|
||||||
>=virtual/jdk-1.6
|
|
||||||
>=dev-java/ant-core-1.7
|
|
||||||
)
|
|
||||||
odk? ( app-doc/doxygen )
|
|
||||||
test? ( dev-util/cppunit )
|
|
||||||
"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
# not upstreamable stuff
|
|
||||||
"${FILESDIR}/${PN}-3.7-system-pyuno.patch"
|
|
||||||
|
|
||||||
# picked from git master
|
|
||||||
"${FILESDIR}/${PN}-4.1.3.2-kde-recursiverepaint.patch"
|
|
||||||
"${FILESDIR}/${PN}-4.1.3.2-kde-calchang.patch"
|
|
||||||
|
|
||||||
# staged for git master
|
|
||||||
"${FILESDIR}/${PN}-4.1.4.2-curl-config.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
REQUIRED_USE="
|
|
||||||
${PYTHON_REQUIRED_USE}
|
|
||||||
bluetooth? ( dbus )
|
|
||||||
gnome? ( gtk )
|
|
||||||
eds? ( gnome )
|
|
||||||
telepathy? ( gtk )
|
|
||||||
libreoffice_extensions_nlpsolver? ( java )
|
|
||||||
libreoffice_extensions_scripting-beanshell? ( java )
|
|
||||||
libreoffice_extensions_scripting-javascript? ( java )
|
|
||||||
libreoffice_extensions_wiki-publisher? ( java )
|
|
||||||
"
|
|
||||||
|
|
||||||
CHECKREQS_MEMORY="512M"
|
|
||||||
CHECKREQS_DISK_BUILD="6G"
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
local pgslot
|
|
||||||
|
|
||||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
|
||||||
check-reqs_pkg_pretend
|
|
||||||
|
|
||||||
if [[ $(gcc-major-version) -lt 4 ]] || \
|
|
||||||
( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]] ) \
|
|
||||||
; then
|
|
||||||
eerror "Compilation with gcc older than 4.6 is not supported"
|
|
||||||
die "Too old gcc found."
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# ensure pg version
|
|
||||||
if use postgres && has_version dev-db/postgresql-base; then
|
|
||||||
pgslot=$(postgresql-config show)
|
|
||||||
if [[ ${pgslot//.} < 90 ]] ; then
|
|
||||||
eerror "PostgreSQL slot must be set to 9.0 or higher."
|
|
||||||
eerror " postgresql-config set 9.0"
|
|
||||||
die "PostgreSQL slot is not set to 9.0 or higher."
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
java-pkg-opt-2_pkg_setup
|
|
||||||
kde4-base_pkg_setup
|
|
||||||
python-single-r1_pkg_setup
|
|
||||||
|
|
||||||
[[ ${MERGE_TYPE} != binary ]] && check-reqs_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
local mod mod2 dest tmplfile tmplname mypv
|
|
||||||
|
|
||||||
[[ -n ${PATCHSET} ]] && unpack ${PATCHSET}
|
|
||||||
use branding && unpack "${BRANDING}"
|
|
||||||
|
|
||||||
if [[ ${PV} != *9999* ]]; then
|
|
||||||
unpack "${P}.tar.xz"
|
|
||||||
for mod in ${MODULES}; do
|
|
||||||
[[ ${mod} == core ]] && continue
|
|
||||||
unpack "${PN}-${mod}-${PV}.tar.xz"
|
|
||||||
done
|
|
||||||
else
|
|
||||||
for mod in ${MODULES}; do
|
|
||||||
mypv=${PV/.9999}
|
|
||||||
[[ ${mypv} != ${PV} ]] && EGIT_BRANCH="${PN}-${mypv/./-}"
|
|
||||||
EGIT_PROJECT="${PN}/${mod}"
|
|
||||||
EGIT_SOURCEDIR="${WORKDIR}/${P}"
|
|
||||||
[[ ${mod} != core ]] && EGIT_SOURCEDIR="${WORKDIR}/${PN}-${mod}-${PV}"
|
|
||||||
EGIT_REPO_URI="git://anongit.freedesktop.org/${PN}/${mod}"
|
|
||||||
EGIT_NOUNPACK="true"
|
|
||||||
git-2_src_unpack
|
|
||||||
if [[ ${mod} != core ]]; then
|
|
||||||
mod2=${mod}
|
|
||||||
# mapping does not match on help
|
|
||||||
[[ ${mod} == help ]] && mod2="helpcontent2"
|
|
||||||
mkdir -p "${S}/${mod2}/" || die
|
|
||||||
mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}/${mod2}" || die
|
|
||||||
rm -rf "${WORKDIR}/${PN}-${mod}-${PV}"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
unset EGIT_PROJECT EGIT_SOURCEDIR EGIT_REPO_URI EGIT_BRANCH
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# optimization flags
|
|
||||||
export GMAKE_OPTIONS="${MAKEOPTS}"
|
|
||||||
# System python 2.7 enablement:
|
|
||||||
export PYTHON_CFLAGS=$(python_get_CFLAGS)
|
|
||||||
export PYTHON_LIBS=$(python_get_LIBS)
|
|
||||||
|
|
||||||
# patchset
|
|
||||||
if [[ -n ${PATCHSET} ]]; then
|
|
||||||
EPATCH_FORCE="yes" \
|
|
||||||
EPATCH_SOURCE="${WORKDIR}/${PATCHSET/.tar.xz/}" \
|
|
||||||
EPATCH_SUFFIX="patch" \
|
|
||||||
epatch
|
|
||||||
fi
|
|
||||||
|
|
||||||
base_src_prepare
|
|
||||||
|
|
||||||
AT_M4DIR="m4" eautoreconf
|
|
||||||
# hack in the autogen.sh
|
|
||||||
touch autogen.lastrun
|
|
||||||
|
|
||||||
# system pyuno mess
|
|
||||||
sed \
|
|
||||||
-e "s:%eprefix%:${EPREFIX}:g" \
|
|
||||||
-e "s:%libdir%:$(get_libdir):g" \
|
|
||||||
-i pyuno/source/module/uno.py \
|
|
||||||
-i scripting/source/pyprov/officehelper.py || die
|
|
||||||
# sed in the tests
|
|
||||||
sed -i \
|
|
||||||
-e 's#all : build unitcheck#all : build#g' \
|
|
||||||
solenv/gbuild/Module.mk || die
|
|
||||||
sed -i \
|
|
||||||
-e 's#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g' \
|
|
||||||
-e 's#Makefile.gbuild all slowcheck#Makefile.gbuild all#g' \
|
|
||||||
Makefile.in || die
|
|
||||||
|
|
||||||
if use branding; then
|
|
||||||
# hack...
|
|
||||||
mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local java_opts
|
|
||||||
local internal_libs
|
|
||||||
local lo_ext
|
|
||||||
local ext_opts
|
|
||||||
local jbs=$(sed -ne 's/.*\(-j[[:space:]]*\|--jobs=\)\([[:digit:]]\+\).*/\2/;T;p' <<< "${MAKEOPTS}")
|
|
||||||
|
|
||||||
# recheck that there is some value in jobs
|
|
||||||
[[ -z ${jbs} ]] && jbs="1"
|
|
||||||
|
|
||||||
# sane: just sane.h header that is used for scan in writer, not
|
|
||||||
# linked or anything else, worthless to depend on
|
|
||||||
# vigra: just uses templates from there
|
|
||||||
# it is serious pain in the ass for packaging
|
|
||||||
# should be replaced by boost::gil if someone interested
|
|
||||||
internal_libs+="
|
|
||||||
--without-system-sane
|
|
||||||
--without-system-vigra
|
|
||||||
"
|
|
||||||
|
|
||||||
# libreoffice extensions handling
|
|
||||||
for lo_xt in ${LO_EXTS}; do
|
|
||||||
if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
|
|
||||||
ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt})"
|
|
||||||
else
|
|
||||||
ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt})"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if use java; then
|
|
||||||
# hsqldb: system one is too new
|
|
||||||
java_opts="
|
|
||||||
--without-junit
|
|
||||||
--without-system-hsqldb
|
|
||||||
--with-ant-home="${ANT_HOME}"
|
|
||||||
--with-jdk-home=$(java-config --jdk-home 2>/dev/null)
|
|
||||||
--with-jvm-path="${EPREFIX}/usr/lib/"
|
|
||||||
"
|
|
||||||
|
|
||||||
use libreoffice_extensions_scripting-beanshell && \
|
|
||||||
java_opts+=" --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)"
|
|
||||||
|
|
||||||
use libreoffice_extensions_scripting-javascript && \
|
|
||||||
java_opts+=" --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar)"
|
|
||||||
|
|
||||||
if use libreoffice_extensions_wiki-publisher; then
|
|
||||||
java_opts+="
|
|
||||||
--with-commons-codec-jar=$(java-pkg_getjar commons-codec commons-codec.jar)
|
|
||||||
--with-commons-httpclient-jar=$(java-pkg_getjar commons-httpclient-3 commons-httpclient.jar)
|
|
||||||
--with-commons-lang-jar=$(java-pkg_getjar commons-lang-2.1 commons-lang.jar)
|
|
||||||
--with-commons-logging-jar=$(java-pkg_getjar commons-logging commons-logging.jar)
|
|
||||||
--with-servlet-api-jar=$(java-pkg_getjar tomcat-servlet-api-3.0 servlet-api.jar)
|
|
||||||
"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# system headers/libs/...: enforce using system packages
|
|
||||||
# --enable-cairo: ensure that cairo is always required
|
|
||||||
# --enable-graphite: disabling causes build breakages
|
|
||||||
# --enable-*-link: link to the library rather than just dlopen on runtime
|
|
||||||
# --enable-release-build: build the libreoffice as release
|
|
||||||
# --disable-fetch-external: prevent dowloading during compile phase
|
|
||||||
# --disable-gnome-vfs: old gnome virtual fs support
|
|
||||||
# --disable-kdeab: kde3 adressbook
|
|
||||||
# --disable-kde: kde3 support
|
|
||||||
# --disable-rpath: relative runtime path is not desired
|
|
||||||
# --disable-systray: quickstarter does not actually work at all so do not
|
|
||||||
# promote it
|
|
||||||
# --enable-extension-integration: enable any extension integration support
|
|
||||||
# --without-{afms,fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
|
|
||||||
# --disable-report-builder: too much java packages pulled in without pkgs
|
|
||||||
econf \
|
|
||||||
--docdir="${EPREFIX}/usr/share/doc/${PF}/" \
|
|
||||||
--with-system-headers \
|
|
||||||
--with-system-libs \
|
|
||||||
--with-system-jars \
|
|
||||||
--with-system-dicts \
|
|
||||||
--enable-cairo-canvas \
|
|
||||||
--enable-graphite \
|
|
||||||
--enable-largefile \
|
|
||||||
--enable-mergelibs \
|
|
||||||
--enable-python=system \
|
|
||||||
--enable-randr \
|
|
||||||
--enable-randr-link \
|
|
||||||
--enable-release-build \
|
|
||||||
--disable-hardlink-deliver \
|
|
||||||
--disable-ccache \
|
|
||||||
--disable-crashdump \
|
|
||||||
--disable-dependency-tracking \
|
|
||||||
--disable-epm \
|
|
||||||
--disable-fetch-external \
|
|
||||||
--disable-gnome-vfs \
|
|
||||||
--disable-gstreamer-0-10 \
|
|
||||||
--disable-report-builder \
|
|
||||||
--disable-kdeab \
|
|
||||||
--disable-kde \
|
|
||||||
--disable-online-update \
|
|
||||||
--disable-rpath \
|
|
||||||
--disable-systray \
|
|
||||||
--with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \
|
|
||||||
--with-build-version="Gentoo official package" \
|
|
||||||
--enable-extension-integration \
|
|
||||||
--with-external-dict-dir="${EPREFIX}/usr/share/myspell" \
|
|
||||||
--with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \
|
|
||||||
--with-external-thes-dir="${EPREFIX}/usr/share/myspell" \
|
|
||||||
--with-external-tar="${DISTDIR}" \
|
|
||||||
--with-lang="" \
|
|
||||||
--with-parallelism=${jbs} \
|
|
||||||
--with-system-ucpp \
|
|
||||||
--with-vendor="Gentoo Foundation" \
|
|
||||||
--with-x \
|
|
||||||
--without-afms \
|
|
||||||
--without-fonts \
|
|
||||||
--without-myspell-dicts \
|
|
||||||
--without-help \
|
|
||||||
--with-helppack-integration \
|
|
||||||
--without-sun-templates \
|
|
||||||
$(use_enable bluetooth sdremote-bluetooth) \
|
|
||||||
$(use_enable cups) \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable dbus) \
|
|
||||||
$(use_enable eds evolution2) \
|
|
||||||
$(use_enable gnome gconf) \
|
|
||||||
$(use_enable gnome gio) \
|
|
||||||
$(use_enable gnome lockdown) \
|
|
||||||
$(use_enable gstreamer) \
|
|
||||||
$(use_enable gtk) \
|
|
||||||
$(use_enable gtk3) \
|
|
||||||
$(use_enable kde kde4) \
|
|
||||||
$(use_enable mysql ext-mariadb-connector) \
|
|
||||||
$(use_enable odk) \
|
|
||||||
$(use_enable opengl) \
|
|
||||||
$(use_enable postgres postgresql-sdbc) \
|
|
||||||
$(use_enable telepathy) \
|
|
||||||
$(use_enable test linkoo) \
|
|
||||||
$(use_enable vba) \
|
|
||||||
$(use_enable webdav neon) \
|
|
||||||
$(use_with java) \
|
|
||||||
$(use_with mysql system-mysql-cppconn) \
|
|
||||||
$(use_with odk doxygen) \
|
|
||||||
${internal_libs} \
|
|
||||||
${java_opts} \
|
|
||||||
${ext_opts}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
# hack for offlinehelp, this needs fixing upstream at some point
|
|
||||||
# it is broken because we send --without-help
|
|
||||||
# https://bugs.freedesktop.org/show_bug.cgi?id=46506
|
|
||||||
(
|
|
||||||
grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk"
|
|
||||||
source "${T}/config_host.mk" 2&> /dev/null
|
|
||||||
|
|
||||||
local path="${SOLARVER}/${INPATH}/res/img"
|
|
||||||
mkdir -p "${path}" || die
|
|
||||||
|
|
||||||
echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\""
|
|
||||||
perl "${S}/helpcontent2/helpers/create_ilst.pl" \
|
|
||||||
-dir=icon-themes/galaxy/res/helpimg \
|
|
||||||
> "${path}/helpimg.ilst"
|
|
||||||
[[ -s "${path}/helpimg.ilst" ]] || ewarn "The help images list is empty, something is fishy, report a bug."
|
|
||||||
)
|
|
||||||
|
|
||||||
local target
|
|
||||||
use test && target="build" || target="build-nocheck"
|
|
||||||
|
|
||||||
# this is not a proper make script
|
|
||||||
make ${target} || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
make unitcheck || die
|
|
||||||
make slowcheck || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# This is not Makefile so no buildserver
|
|
||||||
make DESTDIR="${D}" distro-pack-install -o build -o check || die
|
|
||||||
|
|
||||||
# Fix bash completion placement
|
|
||||||
newbashcomp "${ED}"/etc/bash_completion.d/libreoffice.sh ${PN}
|
|
||||||
rm -rf "${ED}"/etc/
|
|
||||||
|
|
||||||
if use branding; then
|
|
||||||
insinto /usr/$(get_libdir)/${PN}/program
|
|
||||||
newins "${WORKDIR}/branding-sofficerc" sofficerc
|
|
||||||
echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN}
|
|
||||||
fi
|
|
||||||
|
|
||||||
# symlink the nsplugin to proper location
|
|
||||||
# use gtk && inst_plugin /usr/$(get_libdir)/libreoffice/program/libnpsoplugin.so
|
|
||||||
|
|
||||||
# Hack for offlinehelp, this needs fixing upstream at some point.
|
|
||||||
# It is broken because we send --without-help
|
|
||||||
# https://bugs.freedesktop.org/show_bug.cgi?id=46506
|
|
||||||
insinto /usr/$(get_libdir)/libreoffice/help
|
|
||||||
doins xmlhelp/util/*.xsl
|
|
||||||
|
|
||||||
# Remove desktop files for support to old installs that can't parse mime
|
|
||||||
rm -rf "${ED}"/usr/share/mimelnk/
|
|
||||||
|
|
||||||
pax-mark -m "${ED}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
|
|
||||||
pax-mark -m "${ED}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
# Cache updates - all handled by kde eclass for all environments
|
|
||||||
kde4-base_pkg_preinst
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
kde4-base_pkg_postinst
|
|
||||||
|
|
||||||
use java || \
|
|
||||||
ewarn 'If you plan to use lbase application you should enable java or you will get various crashes.'
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
kde4-base_pkg_postrm
|
|
||||||
}
|
|
@ -1,592 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-4.2.3.3-r1.ebuild,v 1.2 2014/06/02 10:35:02 zlogene Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
KDE_REQUIRED="optional"
|
|
||||||
QT_MINIMAL="4.7.4"
|
|
||||||
KDE_SCM="git"
|
|
||||||
CMAKE_REQUIRED="never"
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 python3_3 )
|
|
||||||
PYTHON_REQ_USE="threads,xml"
|
|
||||||
|
|
||||||
# experimental ; release ; old
|
|
||||||
# Usually the tarballs are moved a lot so this should make
|
|
||||||
# everyone happy.
|
|
||||||
DEV_URI="
|
|
||||||
http://dev-builds.libreoffice.org/pre-releases/src
|
|
||||||
http://download.documentfoundation.org/libreoffice/src/${PV:0:5}/
|
|
||||||
http://download.documentfoundation.org/libreoffice/old/${PV}/
|
|
||||||
"
|
|
||||||
EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice"
|
|
||||||
ADDONS_URI="http://dev-www.libreoffice.org/src/"
|
|
||||||
|
|
||||||
BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
|
|
||||||
# PATCHSET="${P}-patchset-01.tar.xz"
|
|
||||||
|
|
||||||
[[ ${PV} == *9999* ]] && SCM_ECLASS="git-2"
|
|
||||||
inherit base autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic nsplugins ${SCM_ECLASS}
|
|
||||||
unset SCM_ECLASS
|
|
||||||
|
|
||||||
DESCRIPTION="LibreOffice, a full office productivity suite."
|
|
||||||
HOMEPAGE="http://www.libreoffice.org"
|
|
||||||
SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
|
|
||||||
[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}"
|
|
||||||
|
|
||||||
# Split modules following git/tarballs
|
|
||||||
# Core MUST be first!
|
|
||||||
# Help is used for the image generator
|
|
||||||
MODULES="core help"
|
|
||||||
# Only release has the tarballs
|
|
||||||
if [[ ${PV} != *9999* ]]; then
|
|
||||||
for i in ${DEV_URI}; do
|
|
||||||
for mod in ${MODULES}; do
|
|
||||||
if [[ ${mod} == core ]]; then
|
|
||||||
SRC_URI+=" ${i}/${P}.tar.xz"
|
|
||||||
else
|
|
||||||
SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
unset mod
|
|
||||||
done
|
|
||||||
unset i
|
|
||||||
fi
|
|
||||||
unset DEV_URI
|
|
||||||
|
|
||||||
# Really required addons
|
|
||||||
# These are bundles that can't be removed for now due to huge patchsets.
|
|
||||||
# If you want them gone, patches are welcome.
|
|
||||||
ADDONS_SRC+=" ${ADDONS_URI}/d62650a6f908e85643e557a236ea989c-vigra1.6.0.tar.gz"
|
|
||||||
ADDONS_SRC+=" ${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz" # modifies source code
|
|
||||||
ADDONS_SRC+=" java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
|
|
||||||
ADDONS_SRC+=" libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" # no release for 8 years, should we package it?
|
|
||||||
ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" # Does not build with 1.6 rhino at all
|
|
||||||
ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" # requirement of rhino
|
|
||||||
ADDONS_SRC+=" odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" # not packageable
|
|
||||||
SRC_URI+=" ${ADDONS_SRC}"
|
|
||||||
|
|
||||||
unset ADDONS_URI
|
|
||||||
unset EXT_URI
|
|
||||||
unset ADDONS_SRC
|
|
||||||
|
|
||||||
IUSE="bluetooth +branding +cups dbus debug eds firebird gnome gstreamer +gtk
|
|
||||||
gtk3 jemalloc kde mysql odk opengl postgres telepathy test +vba vlc +webdav"
|
|
||||||
|
|
||||||
LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
|
|
||||||
# Unpackaged separate extensions:
|
|
||||||
# diagram: lo has 0.9.5 upstream is weirdly patched 0.9.4 -> wtf?
|
|
||||||
# hunart: only on ooo extensions -> fubared download path somewhere on sf
|
|
||||||
# numbertext, typo, validator, watch-window: ^^
|
|
||||||
# oooblogger: no homepage or anything
|
|
||||||
# Extensions that need extra work:
|
|
||||||
for lo_xt in ${LO_EXTS}; do
|
|
||||||
IUSE+=" libreoffice_extensions_${lo_xt}"
|
|
||||||
done
|
|
||||||
unset lo_xt
|
|
||||||
|
|
||||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
[[ ${PV} == *9999* ]] || \
|
|
||||||
KEYWORDS="amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux"
|
|
||||||
|
|
||||||
COMMON_DEPEND="
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
app-arch/zip
|
|
||||||
app-arch/unzip
|
|
||||||
>=app-text/hunspell-1.3.2-r3
|
|
||||||
app-text/mythes
|
|
||||||
app-text/libabw
|
|
||||||
>=app-text/libexttextcat-3.2
|
|
||||||
app-text/libebook
|
|
||||||
app-text/libetonyek
|
|
||||||
app-text/liblangtag
|
|
||||||
app-text/libmspub
|
|
||||||
>=app-text/libmwaw-0.2
|
|
||||||
>=app-text/libodfgen-0.0.3
|
|
||||||
app-text/libwpd:0.9[tools]
|
|
||||||
app-text/libwpg:0.2
|
|
||||||
>=app-text/libwps-0.2.2
|
|
||||||
>=app-text/poppler-0.16:=[xpdf-headers(+),cxx]
|
|
||||||
>=dev-cpp/clucene-2.3.3.4-r2
|
|
||||||
dev-cpp/libcmis:0.4
|
|
||||||
dev-db/unixODBC
|
|
||||||
>=dev-libs/boost-1.46:=
|
|
||||||
dev-libs/expat
|
|
||||||
>=dev-libs/hyphen-2.7.1
|
|
||||||
>=dev-libs/icu-4.8.1.1:=
|
|
||||||
>=dev-libs/libatomic_ops-7.2d
|
|
||||||
=dev-libs/liborcus-0.5*:=
|
|
||||||
>=dev-libs/nspr-4.8.8
|
|
||||||
>=dev-libs/nss-3.12.9
|
|
||||||
>=dev-lang/perl-5.0
|
|
||||||
>=dev-libs/openssl-1.0.0d
|
|
||||||
>=dev-libs/redland-1.0.16[ssl]
|
|
||||||
media-gfx/graphite2
|
|
||||||
>=media-libs/fontconfig-2.8.0
|
|
||||||
media-libs/freetype:2
|
|
||||||
>=media-libs/harfbuzz-0.9.18:=[icu(+)]
|
|
||||||
media-libs/lcms:2
|
|
||||||
>=media-libs/libpng-1.4
|
|
||||||
>=media-libs/libcdr-0.0.5
|
|
||||||
media-libs/libfreehand
|
|
||||||
media-libs/libvisio
|
|
||||||
>=net-misc/curl-7.21.4
|
|
||||||
net-nds/openldap
|
|
||||||
sci-mathematics/lpsolve
|
|
||||||
virtual/jpeg:0
|
|
||||||
>=x11-libs/cairo-1.10.0[X]
|
|
||||||
x11-libs/libXinerama
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXrender
|
|
||||||
bluetooth? ( net-wireless/bluez )
|
|
||||||
cups? ( net-print/cups )
|
|
||||||
dbus? ( >=dev-libs/dbus-glib-0.92 )
|
|
||||||
eds? ( gnome-extra/evolution-data-server )
|
|
||||||
firebird? ( >=dev-db/firebird-2.5 )
|
|
||||||
gnome? ( gnome-base/gconf:2 )
|
|
||||||
gtk? (
|
|
||||||
x11-libs/gdk-pixbuf[X]
|
|
||||||
>=x11-libs/gtk+-2.24:2
|
|
||||||
)
|
|
||||||
gtk3? ( >=x11-libs/gtk+-3.2:3 )
|
|
||||||
gstreamer? (
|
|
||||||
media-libs/gstreamer:1.0
|
|
||||||
media-libs/gst-plugins-base:1.0
|
|
||||||
)
|
|
||||||
jemalloc? ( dev-libs/jemalloc )
|
|
||||||
libreoffice_extensions_scripting-beanshell? ( >=dev-java/bsh-2.0_beta4 )
|
|
||||||
libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
|
|
||||||
libreoffice_extensions_wiki-publisher? (
|
|
||||||
dev-java/commons-codec:0
|
|
||||||
dev-java/commons-httpclient:3
|
|
||||||
dev-java/commons-lang:2.1
|
|
||||||
dev-java/commons-logging:0
|
|
||||||
dev-java/tomcat-servlet-api:3.0
|
|
||||||
)
|
|
||||||
mysql? ( >=dev-db/mysql-connector-c++-1.1.0 )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
postgres? ( >=dev-db/postgresql-base-9.0[kerberos] )
|
|
||||||
telepathy? (
|
|
||||||
dev-libs/glib:2
|
|
||||||
>=net-libs/telepathy-glib-0.18.0
|
|
||||||
>=x11-libs/gtk+-2.24:2
|
|
||||||
)
|
|
||||||
webdav? ( net-libs/neon )
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
!app-office/libreoffice-bin
|
|
||||||
!app-office/libreoffice-bin-debug
|
|
||||||
!<app-office/openoffice-bin-3.4.0-r1
|
|
||||||
!app-office/openoffice
|
|
||||||
media-fonts/libertine-ttf
|
|
||||||
media-fonts/liberation-fonts
|
|
||||||
media-fonts/urw-fonts
|
|
||||||
java? ( >=virtual/jre-1.6 )
|
|
||||||
vlc? ( media-video/vlc )
|
|
||||||
"
|
|
||||||
|
|
||||||
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
|
|
||||||
# as dmake execute tests right away
|
|
||||||
DEPEND="${COMMON_DEPEND}
|
|
||||||
>=dev-libs/libxml2-2.7.8
|
|
||||||
dev-libs/libxslt
|
|
||||||
dev-perl/Archive-Zip
|
|
||||||
dev-util/cppunit
|
|
||||||
>=dev-util/gperf-3
|
|
||||||
dev-util/intltool
|
|
||||||
>=dev-util/mdds-0.10.2:=
|
|
||||||
virtual/pkgconfig
|
|
||||||
net-misc/npapi-sdk
|
|
||||||
>=sys-apps/findutils-4.4.2
|
|
||||||
sys-devel/bison
|
|
||||||
sys-apps/coreutils
|
|
||||||
sys-devel/flex
|
|
||||||
sys-devel/gettext
|
|
||||||
>=sys-devel/make-3.82
|
|
||||||
sys-devel/ucpp
|
|
||||||
sys-libs/zlib
|
|
||||||
x11-libs/libXt
|
|
||||||
x11-libs/libXtst
|
|
||||||
x11-proto/randrproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xineramaproto
|
|
||||||
x11-proto/xproto
|
|
||||||
java? (
|
|
||||||
>=virtual/jdk-1.6
|
|
||||||
>=dev-java/ant-core-1.7
|
|
||||||
)
|
|
||||||
odk? ( >=app-doc/doxygen-1.8.4 )
|
|
||||||
test? ( dev-util/cppunit )
|
|
||||||
"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
# not upstreamable stuff
|
|
||||||
"${FILESDIR}/${PN}-3.7-system-pyuno.patch"
|
|
||||||
|
|
||||||
# staged for git master
|
|
||||||
"${FILESDIR}/${PN}-4.2.0.4-curl-config.patch"
|
|
||||||
|
|
||||||
# kde mutexes
|
|
||||||
"${FILESDIR}/${P}-kde4-startup.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
REQUIRED_USE="
|
|
||||||
${PYTHON_REQUIRED_USE}
|
|
||||||
bluetooth? ( dbus )
|
|
||||||
gnome? ( gtk )
|
|
||||||
eds? ( gnome )
|
|
||||||
telepathy? ( gtk )
|
|
||||||
libreoffice_extensions_nlpsolver? ( java )
|
|
||||||
libreoffice_extensions_scripting-beanshell? ( java )
|
|
||||||
libreoffice_extensions_scripting-javascript? ( java )
|
|
||||||
libreoffice_extensions_wiki-publisher? ( java )
|
|
||||||
"
|
|
||||||
|
|
||||||
CHECKREQS_MEMORY="512M"
|
|
||||||
CHECKREQS_DISK_BUILD="6G"
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
local pgslot
|
|
||||||
|
|
||||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
|
||||||
check-reqs_pkg_pretend
|
|
||||||
|
|
||||||
if [[ $(gcc-major-version) -lt 4 ]] || \
|
|
||||||
( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]] ) \
|
|
||||||
; then
|
|
||||||
eerror "Compilation with gcc older than 4.6 is not supported"
|
|
||||||
die "Too old gcc found."
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Ensure pg version but we have to be sure the pg is installed (first
|
|
||||||
# install on clean system)
|
|
||||||
if use postgres && has_version dev-db/postgresql-base; then
|
|
||||||
pgslot=$(postgresql-config show)
|
|
||||||
if [[ ${pgslot//.} < 90 ]] ; then
|
|
||||||
eerror "PostgreSQL slot must be set to 9.0 or higher."
|
|
||||||
eerror " postgresql-config set 9.0"
|
|
||||||
die "PostgreSQL slot is not set to 9.0 or higher."
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
java-pkg-opt-2_pkg_setup
|
|
||||||
kde4-base_pkg_setup
|
|
||||||
python-single-r1_pkg_setup
|
|
||||||
|
|
||||||
[[ ${MERGE_TYPE} != binary ]] && check-reqs_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
local mod mod2 dest tmplfile tmplname mypv
|
|
||||||
|
|
||||||
[[ -n ${PATCHSET} ]] && unpack ${PATCHSET}
|
|
||||||
use branding && unpack "${BRANDING}"
|
|
||||||
|
|
||||||
if [[ ${PV} != *9999* ]]; then
|
|
||||||
unpack "${P}.tar.xz"
|
|
||||||
for mod in ${MODULES}; do
|
|
||||||
[[ ${mod} == core ]] && continue
|
|
||||||
unpack "${PN}-${mod}-${PV}.tar.xz"
|
|
||||||
done
|
|
||||||
else
|
|
||||||
for mod in ${MODULES}; do
|
|
||||||
mypv=${PV/.9999}
|
|
||||||
[[ ${mypv} != ${PV} ]] && EGIT_BRANCH="${PN}-${mypv/./-}"
|
|
||||||
EGIT_PROJECT="${PN}/${mod}"
|
|
||||||
EGIT_SOURCEDIR="${WORKDIR}/${P}"
|
|
||||||
[[ ${mod} != core ]] && EGIT_SOURCEDIR="${WORKDIR}/${PN}-${mod}-${PV}"
|
|
||||||
EGIT_REPO_URI="git://anongit.freedesktop.org/${PN}/${mod}"
|
|
||||||
EGIT_NOUNPACK="true"
|
|
||||||
git-2_src_unpack
|
|
||||||
if [[ ${mod} != core ]]; then
|
|
||||||
mod2=${mod}
|
|
||||||
# mapping does not match on help
|
|
||||||
[[ ${mod} == help ]] && mod2="helpcontent2"
|
|
||||||
mkdir -p "${S}/${mod2}/" || die
|
|
||||||
mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}/${mod2}" || die
|
|
||||||
rm -rf "${WORKDIR}/${PN}-${mod}-${PV}"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
unset EGIT_PROJECT EGIT_SOURCEDIR EGIT_REPO_URI EGIT_BRANCH
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# optimization flags
|
|
||||||
export GMAKE_OPTIONS="${MAKEOPTS}"
|
|
||||||
# System python 2.7 enablement:
|
|
||||||
export PYTHON_CFLAGS=$(python_get_CFLAGS)
|
|
||||||
export PYTHON_LIBS=$(python_get_LIBS)
|
|
||||||
|
|
||||||
# patchset
|
|
||||||
if [[ -n ${PATCHSET} ]]; then
|
|
||||||
EPATCH_FORCE="yes" \
|
|
||||||
EPATCH_SOURCE="${WORKDIR}/${PATCHSET/.tar.xz/}" \
|
|
||||||
EPATCH_SUFFIX="patch" \
|
|
||||||
epatch
|
|
||||||
fi
|
|
||||||
|
|
||||||
base_src_prepare
|
|
||||||
|
|
||||||
AT_M4DIR="m4" eautoreconf
|
|
||||||
# hack in the autogen.sh
|
|
||||||
touch autogen.lastrun
|
|
||||||
|
|
||||||
# system pyuno mess
|
|
||||||
sed \
|
|
||||||
-e "s:%eprefix%:${EPREFIX}:g" \
|
|
||||||
-e "s:%libdir%:$(get_libdir):g" \
|
|
||||||
-i pyuno/source/module/uno.py \
|
|
||||||
-i scripting/source/pyprov/officehelper.py || die
|
|
||||||
# sed in the tests
|
|
||||||
sed -i \
|
|
||||||
-e 's#all : build unitcheck#all : build#g' \
|
|
||||||
solenv/gbuild/Module.mk || die
|
|
||||||
sed -i \
|
|
||||||
-e 's#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g' \
|
|
||||||
-e 's#Makefile.gbuild all slowcheck#Makefile.gbuild all#g' \
|
|
||||||
Makefile.in || die
|
|
||||||
|
|
||||||
if use branding; then
|
|
||||||
# hack...
|
|
||||||
mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local java_opts
|
|
||||||
local internal_libs
|
|
||||||
local lo_ext
|
|
||||||
local ext_opts
|
|
||||||
local jbs=$(sed -ne 's/.*\(-j[[:space:]]*\|--jobs=\)\([[:digit:]]\+\).*/\2/;T;p' <<< "${MAKEOPTS}")
|
|
||||||
|
|
||||||
# recheck that there is some value in jobs
|
|
||||||
[[ -z ${jbs} ]] && jbs="1"
|
|
||||||
|
|
||||||
# sane: just sane.h header that is used for scan in writer, not
|
|
||||||
# linked or anything else, worthless to depend on
|
|
||||||
# vigra: just uses templates from there
|
|
||||||
# it is serious pain in the ass for packaging
|
|
||||||
# should be replaced by boost::gil if someone interested
|
|
||||||
internal_libs+="
|
|
||||||
--without-system-sane
|
|
||||||
--without-system-vigra
|
|
||||||
"
|
|
||||||
|
|
||||||
# libreoffice extensions handling
|
|
||||||
for lo_xt in ${LO_EXTS}; do
|
|
||||||
if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
|
|
||||||
ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt})"
|
|
||||||
else
|
|
||||||
ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt})"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if use java; then
|
|
||||||
# hsqldb: system one is too new
|
|
||||||
java_opts="
|
|
||||||
--without-junit
|
|
||||||
--without-system-hsqldb
|
|
||||||
--with-ant-home="${ANT_HOME}"
|
|
||||||
--with-jdk-home=$(java-config --jdk-home 2>/dev/null)
|
|
||||||
--with-jvm-path="${EPREFIX}/usr/lib/"
|
|
||||||
"
|
|
||||||
|
|
||||||
use libreoffice_extensions_scripting-beanshell && \
|
|
||||||
java_opts+=" --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)"
|
|
||||||
|
|
||||||
use libreoffice_extensions_scripting-javascript && \
|
|
||||||
java_opts+=" --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar)"
|
|
||||||
|
|
||||||
if use libreoffice_extensions_wiki-publisher; then
|
|
||||||
java_opts+="
|
|
||||||
--with-commons-codec-jar=$(java-pkg_getjar commons-codec commons-codec.jar)
|
|
||||||
--with-commons-httpclient-jar=$(java-pkg_getjar commons-httpclient-3 commons-httpclient.jar)
|
|
||||||
--with-commons-lang-jar=$(java-pkg_getjar commons-lang-2.1 commons-lang.jar)
|
|
||||||
--with-commons-logging-jar=$(java-pkg_getjar commons-logging commons-logging.jar)
|
|
||||||
--with-servlet-api-jar=$(java-pkg_getjar tomcat-servlet-api-3.0 servlet-api.jar)
|
|
||||||
"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# system headers/libs/...: enforce using system packages
|
|
||||||
# --enable-cairo: ensure that cairo is always required
|
|
||||||
# --enable-graphite: disabling causes build breakages
|
|
||||||
# --enable-*-link: link to the library rather than just dlopen on runtime
|
|
||||||
# --enable-release-build: build the libreoffice as release
|
|
||||||
# --disable-fetch-external: prevent dowloading during compile phase
|
|
||||||
# --disable-gnome-vfs: old gnome virtual fs support
|
|
||||||
# --disable-kdeab: kde3 adressbook
|
|
||||||
# --disable-kde: kde3 support
|
|
||||||
# --disable-systray: quickstarter does not actually work at all so do not
|
|
||||||
# promote it
|
|
||||||
# --enable-extension-integration: enable any extension integration support
|
|
||||||
# --without-{afms,fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
|
|
||||||
# --disable-report-builder: too much java packages pulled in without pkgs
|
|
||||||
econf \
|
|
||||||
--docdir="${EPREFIX}/usr/share/doc/${PF}/" \
|
|
||||||
--with-system-headers \
|
|
||||||
--with-system-libs \
|
|
||||||
--with-system-jars \
|
|
||||||
--with-system-dicts \
|
|
||||||
--enable-cairo-canvas \
|
|
||||||
--enable-graphite \
|
|
||||||
--enable-largefile \
|
|
||||||
--enable-mergelibs \
|
|
||||||
--enable-python=system \
|
|
||||||
--enable-randr \
|
|
||||||
--enable-randr-link \
|
|
||||||
--enable-release-build \
|
|
||||||
--disable-hardlink-deliver \
|
|
||||||
--disable-ccache \
|
|
||||||
--disable-crashdump \
|
|
||||||
--disable-dependency-tracking \
|
|
||||||
--disable-epm \
|
|
||||||
--disable-fetch-external \
|
|
||||||
--disable-gnome-vfs \
|
|
||||||
--disable-gstreamer-0-10 \
|
|
||||||
--disable-report-builder \
|
|
||||||
--disable-kdeab \
|
|
||||||
--disable-kde \
|
|
||||||
--disable-online-update \
|
|
||||||
--disable-systray \
|
|
||||||
--with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \
|
|
||||||
--with-build-version="Gentoo official package" \
|
|
||||||
--enable-extension-integration \
|
|
||||||
--with-external-dict-dir="${EPREFIX}/usr/share/myspell" \
|
|
||||||
--with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \
|
|
||||||
--with-external-thes-dir="${EPREFIX}/usr/share/myspell" \
|
|
||||||
--with-external-tar="${DISTDIR}" \
|
|
||||||
--with-lang="" \
|
|
||||||
--with-parallelism=${jbs} \
|
|
||||||
--with-system-ucpp \
|
|
||||||
--with-vendor="Gentoo Foundation" \
|
|
||||||
--with-x \
|
|
||||||
--without-afms \
|
|
||||||
--without-fonts \
|
|
||||||
--without-myspell-dicts \
|
|
||||||
--without-help \
|
|
||||||
--with-helppack-integration \
|
|
||||||
--without-sun-templates \
|
|
||||||
$(use_enable bluetooth sdremote-bluetooth) \
|
|
||||||
$(use_enable cups) \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable dbus) \
|
|
||||||
$(use_enable eds evolution2) \
|
|
||||||
$(use_enable firebird firebird-sdbc) \
|
|
||||||
$(use_enable gnome gconf) \
|
|
||||||
$(use_enable gnome gio) \
|
|
||||||
$(use_enable gnome lockdown) \
|
|
||||||
$(use_enable gstreamer) \
|
|
||||||
$(use_enable gtk) \
|
|
||||||
$(use_enable gtk3) \
|
|
||||||
$(use_enable kde kde4) \
|
|
||||||
$(use_enable mysql ext-mariadb-connector) \
|
|
||||||
$(use_enable odk) \
|
|
||||||
$(use_enable opengl) \
|
|
||||||
$(use_enable postgres postgresql-sdbc) \
|
|
||||||
$(use_enable telepathy) \
|
|
||||||
$(use_enable vba) \
|
|
||||||
$(use_enable vlc) \
|
|
||||||
$(use_enable webdav neon) \
|
|
||||||
$(use_with java) \
|
|
||||||
$(use_with mysql system-mysql-cppconn) \
|
|
||||||
$(use_with odk doxygen) \
|
|
||||||
${internal_libs} \
|
|
||||||
${java_opts} \
|
|
||||||
${ext_opts}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
# hack for offlinehelp, this needs fixing upstream at some point
|
|
||||||
# it is broken because we send --without-help
|
|
||||||
# https://bugs.freedesktop.org/show_bug.cgi?id=46506
|
|
||||||
(
|
|
||||||
grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk"
|
|
||||||
source "${T}/config_host.mk" 2&> /dev/null
|
|
||||||
|
|
||||||
local path="${WORKDIR}/helpcontent2/source/auxiliary/"
|
|
||||||
mkdir -p "${path}" || die
|
|
||||||
|
|
||||||
echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\""
|
|
||||||
perl "${S}/helpcontent2/helpers/create_ilst.pl" \
|
|
||||||
-dir=icon-themes/galaxy/res/helpimg \
|
|
||||||
> "${path}/helpimg.ilst"
|
|
||||||
[[ -s "${path}/helpimg.ilst" ]] || ewarn "The help images list is empty, something is fishy, report a bug."
|
|
||||||
)
|
|
||||||
|
|
||||||
local target
|
|
||||||
use test && target="build" || target="build-nocheck"
|
|
||||||
|
|
||||||
# this is not a proper make script
|
|
||||||
make ${target} || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
make unitcheck || die
|
|
||||||
make slowcheck || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# This is not Makefile so no buildserver
|
|
||||||
make DESTDIR="${D}" distro-pack-install -o build -o check || die
|
|
||||||
|
|
||||||
# Fix bash completion placement
|
|
||||||
newbashcomp "${ED}"/etc/bash_completion.d/libreoffice.sh ${PN}
|
|
||||||
rm -rf "${ED}"/etc/
|
|
||||||
|
|
||||||
if use branding; then
|
|
||||||
insinto /usr/$(get_libdir)/${PN}/program
|
|
||||||
newins "${WORKDIR}/branding-sofficerc" sofficerc
|
|
||||||
echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN}
|
|
||||||
fi
|
|
||||||
|
|
||||||
# symlink the nsplugin to proper location
|
|
||||||
# use gtk && inst_plugin /usr/$(get_libdir)/libreoffice/program/libnpsoplugin.so
|
|
||||||
|
|
||||||
# Hack for offlinehelp, this needs fixing upstream at some point.
|
|
||||||
# It is broken because we send --without-help
|
|
||||||
# https://bugs.freedesktop.org/show_bug.cgi?id=46506
|
|
||||||
insinto /usr/$(get_libdir)/libreoffice/help
|
|
||||||
doins xmlhelp/util/*.xsl
|
|
||||||
|
|
||||||
# Remove desktop files for support to old installs that can't parse mime
|
|
||||||
rm -rf "${ED}"/usr/share/mimelnk/
|
|
||||||
|
|
||||||
pax-mark -m "${ED}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
|
|
||||||
pax-mark -m "${ED}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
# Cache updates - all handled by kde eclass for all environments
|
|
||||||
kde4-base_pkg_preinst
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
kde4-base_pkg_postinst
|
|
||||||
|
|
||||||
use java || \
|
|
||||||
ewarn 'If you plan to use lbase application you should enable java or you will get various crashes.'
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
kde4-base_pkg_postrm
|
|
||||||
}
|
|
@ -1,592 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-4.2.3.3.ebuild,v 1.2 2014/04/15 08:41:21 scarabeus Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
KDE_REQUIRED="optional"
|
|
||||||
QT_MINIMAL="4.7.4"
|
|
||||||
KDE_SCM="git"
|
|
||||||
CMAKE_REQUIRED="never"
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 python3_3 )
|
|
||||||
PYTHON_REQ_USE="threads,xml"
|
|
||||||
|
|
||||||
# experimental ; release ; old
|
|
||||||
# Usually the tarballs are moved a lot so this should make
|
|
||||||
# everyone happy.
|
|
||||||
DEV_URI="
|
|
||||||
http://dev-builds.libreoffice.org/pre-releases/src
|
|
||||||
http://download.documentfoundation.org/libreoffice/src/${PV:0:5}/
|
|
||||||
http://download.documentfoundation.org/libreoffice/old/${PV}/
|
|
||||||
"
|
|
||||||
EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice"
|
|
||||||
ADDONS_URI="http://dev-www.libreoffice.org/src/"
|
|
||||||
|
|
||||||
BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
|
|
||||||
# PATCHSET="${P}-patchset-01.tar.xz"
|
|
||||||
|
|
||||||
[[ ${PV} == *9999* ]] && SCM_ECLASS="git-2"
|
|
||||||
inherit base autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic nsplugins ${SCM_ECLASS}
|
|
||||||
unset SCM_ECLASS
|
|
||||||
|
|
||||||
DESCRIPTION="LibreOffice, a full office productivity suite."
|
|
||||||
HOMEPAGE="http://www.libreoffice.org"
|
|
||||||
SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
|
|
||||||
[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}"
|
|
||||||
|
|
||||||
# Split modules following git/tarballs
|
|
||||||
# Core MUST be first!
|
|
||||||
# Help is used for the image generator
|
|
||||||
MODULES="core help"
|
|
||||||
# Only release has the tarballs
|
|
||||||
if [[ ${PV} != *9999* ]]; then
|
|
||||||
for i in ${DEV_URI}; do
|
|
||||||
for mod in ${MODULES}; do
|
|
||||||
if [[ ${mod} == core ]]; then
|
|
||||||
SRC_URI+=" ${i}/${P}.tar.xz"
|
|
||||||
else
|
|
||||||
SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
unset mod
|
|
||||||
done
|
|
||||||
unset i
|
|
||||||
fi
|
|
||||||
unset DEV_URI
|
|
||||||
|
|
||||||
# Really required addons
|
|
||||||
# These are bundles that can't be removed for now due to huge patchsets.
|
|
||||||
# If you want them gone, patches are welcome.
|
|
||||||
ADDONS_SRC+=" ${ADDONS_URI}/d62650a6f908e85643e557a236ea989c-vigra1.6.0.tar.gz"
|
|
||||||
ADDONS_SRC+=" ${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz" # modifies source code
|
|
||||||
ADDONS_SRC+=" java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
|
|
||||||
ADDONS_SRC+=" libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" # no release for 8 years, should we package it?
|
|
||||||
ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" # Does not build with 1.6 rhino at all
|
|
||||||
ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" # requirement of rhino
|
|
||||||
ADDONS_SRC+=" odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" # not packageable
|
|
||||||
SRC_URI+=" ${ADDONS_SRC}"
|
|
||||||
|
|
||||||
unset ADDONS_URI
|
|
||||||
unset EXT_URI
|
|
||||||
unset ADDONS_SRC
|
|
||||||
|
|
||||||
IUSE="bluetooth +branding +cups dbus debug eds firebird gnome gstreamer +gtk
|
|
||||||
gtk3 jemalloc kde mysql odk opengl postgres telepathy test +vba vlc +webdav"
|
|
||||||
|
|
||||||
LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
|
|
||||||
# Unpackaged separate extensions:
|
|
||||||
# diagram: lo has 0.9.5 upstream is weirdly patched 0.9.4 -> wtf?
|
|
||||||
# hunart: only on ooo extensions -> fubared download path somewhere on sf
|
|
||||||
# numbertext, typo, validator, watch-window: ^^
|
|
||||||
# oooblogger: no homepage or anything
|
|
||||||
# Extensions that need extra work:
|
|
||||||
for lo_xt in ${LO_EXTS}; do
|
|
||||||
IUSE+=" libreoffice_extensions_${lo_xt}"
|
|
||||||
done
|
|
||||||
unset lo_xt
|
|
||||||
|
|
||||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
[[ ${PV} == *9999* ]] || \
|
|
||||||
KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux"
|
|
||||||
|
|
||||||
COMMON_DEPEND="
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
app-arch/zip
|
|
||||||
app-arch/unzip
|
|
||||||
>=app-text/hunspell-1.3.2-r3
|
|
||||||
app-text/mythes
|
|
||||||
app-text/libabw
|
|
||||||
>=app-text/libexttextcat-3.2
|
|
||||||
app-text/libebook
|
|
||||||
app-text/libetonyek
|
|
||||||
app-text/liblangtag
|
|
||||||
app-text/libmspub
|
|
||||||
>=app-text/libmwaw-0.2
|
|
||||||
>=app-text/libodfgen-0.0.3
|
|
||||||
app-text/libwpd:0.9[tools]
|
|
||||||
app-text/libwpg:0.2
|
|
||||||
>=app-text/libwps-0.2.2
|
|
||||||
>=app-text/poppler-0.16:=[xpdf-headers(+),cxx]
|
|
||||||
>=dev-cpp/clucene-2.3.3.4-r2
|
|
||||||
dev-cpp/libcmis:0.4
|
|
||||||
dev-db/unixODBC
|
|
||||||
>=dev-libs/boost-1.46:=
|
|
||||||
dev-libs/expat
|
|
||||||
>=dev-libs/hyphen-2.7.1
|
|
||||||
>=dev-libs/icu-4.8.1.1:=
|
|
||||||
>=dev-libs/libatomic_ops-7.2d
|
|
||||||
=dev-libs/liborcus-0.5*:=
|
|
||||||
>=dev-libs/nspr-4.8.8
|
|
||||||
>=dev-libs/nss-3.12.9
|
|
||||||
>=dev-lang/perl-5.0
|
|
||||||
>=dev-libs/openssl-1.0.0d
|
|
||||||
>=dev-libs/redland-1.0.16[ssl]
|
|
||||||
media-gfx/graphite2
|
|
||||||
>=media-libs/fontconfig-2.8.0
|
|
||||||
media-libs/freetype:2
|
|
||||||
>=media-libs/harfbuzz-0.9.18:=[icu(+)]
|
|
||||||
media-libs/lcms:2
|
|
||||||
>=media-libs/libpng-1.4
|
|
||||||
>=media-libs/libcdr-0.0.5
|
|
||||||
media-libs/libfreehand
|
|
||||||
media-libs/libvisio
|
|
||||||
>=net-misc/curl-7.21.4
|
|
||||||
net-nds/openldap
|
|
||||||
sci-mathematics/lpsolve
|
|
||||||
virtual/jpeg:0
|
|
||||||
>=x11-libs/cairo-1.10.0[X]
|
|
||||||
x11-libs/libXinerama
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXrender
|
|
||||||
bluetooth? ( net-wireless/bluez )
|
|
||||||
cups? ( net-print/cups )
|
|
||||||
dbus? ( >=dev-libs/dbus-glib-0.92 )
|
|
||||||
eds? ( gnome-extra/evolution-data-server )
|
|
||||||
firebird? ( >=dev-db/firebird-2.5 )
|
|
||||||
gnome? ( gnome-base/gconf:2 )
|
|
||||||
gtk? (
|
|
||||||
x11-libs/gdk-pixbuf[X]
|
|
||||||
>=x11-libs/gtk+-2.24:2
|
|
||||||
)
|
|
||||||
gtk3? ( >=x11-libs/gtk+-3.2:3 )
|
|
||||||
gstreamer? (
|
|
||||||
media-libs/gstreamer:1.0
|
|
||||||
media-libs/gst-plugins-base:1.0
|
|
||||||
)
|
|
||||||
jemalloc? ( dev-libs/jemalloc )
|
|
||||||
libreoffice_extensions_scripting-beanshell? ( >=dev-java/bsh-2.0_beta4 )
|
|
||||||
libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
|
|
||||||
libreoffice_extensions_wiki-publisher? (
|
|
||||||
dev-java/commons-codec:0
|
|
||||||
dev-java/commons-httpclient:3
|
|
||||||
dev-java/commons-lang:2.1
|
|
||||||
dev-java/commons-logging:0
|
|
||||||
dev-java/tomcat-servlet-api:3.0
|
|
||||||
)
|
|
||||||
mysql? ( >=dev-db/mysql-connector-c++-1.1.0 )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
postgres? ( >=dev-db/postgresql-base-9.0[kerberos] )
|
|
||||||
telepathy? (
|
|
||||||
dev-libs/glib:2
|
|
||||||
>=net-libs/telepathy-glib-0.18.0
|
|
||||||
>=x11-libs/gtk+-2.24:2
|
|
||||||
)
|
|
||||||
webdav? ( net-libs/neon )
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
!app-office/libreoffice-bin
|
|
||||||
!app-office/libreoffice-bin-debug
|
|
||||||
!<app-office/openoffice-bin-3.4.0-r1
|
|
||||||
!app-office/openoffice
|
|
||||||
media-fonts/libertine-ttf
|
|
||||||
media-fonts/liberation-fonts
|
|
||||||
media-fonts/urw-fonts
|
|
||||||
java? ( >=virtual/jre-1.6 )
|
|
||||||
vlc? ( media-video/vlc )
|
|
||||||
"
|
|
||||||
|
|
||||||
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
|
|
||||||
# as dmake execute tests right away
|
|
||||||
DEPEND="${COMMON_DEPEND}
|
|
||||||
>=dev-libs/libxml2-2.7.8
|
|
||||||
dev-libs/libxslt
|
|
||||||
dev-perl/Archive-Zip
|
|
||||||
dev-util/cppunit
|
|
||||||
>=dev-util/gperf-3
|
|
||||||
dev-util/intltool
|
|
||||||
>=dev-util/mdds-0.10.2:=
|
|
||||||
virtual/pkgconfig
|
|
||||||
net-misc/npapi-sdk
|
|
||||||
>=sys-apps/findutils-4.4.2
|
|
||||||
sys-devel/bison
|
|
||||||
sys-apps/coreutils
|
|
||||||
sys-devel/flex
|
|
||||||
sys-devel/gettext
|
|
||||||
>=sys-devel/make-3.82
|
|
||||||
sys-devel/ucpp
|
|
||||||
sys-libs/zlib
|
|
||||||
x11-libs/libXt
|
|
||||||
x11-libs/libXtst
|
|
||||||
x11-proto/randrproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xineramaproto
|
|
||||||
x11-proto/xproto
|
|
||||||
java? (
|
|
||||||
>=virtual/jdk-1.6
|
|
||||||
>=dev-java/ant-core-1.7
|
|
||||||
)
|
|
||||||
odk? ( >=app-doc/doxygen-1.8.4 )
|
|
||||||
test? ( dev-util/cppunit )
|
|
||||||
"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
# not upstreamable stuff
|
|
||||||
"${FILESDIR}/${PN}-3.7-system-pyuno.patch"
|
|
||||||
|
|
||||||
# staged for git master
|
|
||||||
"${FILESDIR}/${PN}-4.2.0.4-curl-config.patch"
|
|
||||||
|
|
||||||
# kde mutexes
|
|
||||||
"${FILESDIR}/${P}-kde4-timer-mutex.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
REQUIRED_USE="
|
|
||||||
${PYTHON_REQUIRED_USE}
|
|
||||||
bluetooth? ( dbus )
|
|
||||||
gnome? ( gtk )
|
|
||||||
eds? ( gnome )
|
|
||||||
telepathy? ( gtk )
|
|
||||||
libreoffice_extensions_nlpsolver? ( java )
|
|
||||||
libreoffice_extensions_scripting-beanshell? ( java )
|
|
||||||
libreoffice_extensions_scripting-javascript? ( java )
|
|
||||||
libreoffice_extensions_wiki-publisher? ( java )
|
|
||||||
"
|
|
||||||
|
|
||||||
CHECKREQS_MEMORY="512M"
|
|
||||||
CHECKREQS_DISK_BUILD="6G"
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
local pgslot
|
|
||||||
|
|
||||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
|
||||||
check-reqs_pkg_pretend
|
|
||||||
|
|
||||||
if [[ $(gcc-major-version) -lt 4 ]] || \
|
|
||||||
( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]] ) \
|
|
||||||
; then
|
|
||||||
eerror "Compilation with gcc older than 4.6 is not supported"
|
|
||||||
die "Too old gcc found."
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Ensure pg version but we have to be sure the pg is installed (first
|
|
||||||
# install on clean system)
|
|
||||||
if use postgres && has_version dev-db/postgresql-base; then
|
|
||||||
pgslot=$(postgresql-config show)
|
|
||||||
if [[ ${pgslot//.} < 90 ]] ; then
|
|
||||||
eerror "PostgreSQL slot must be set to 9.0 or higher."
|
|
||||||
eerror " postgresql-config set 9.0"
|
|
||||||
die "PostgreSQL slot is not set to 9.0 or higher."
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
java-pkg-opt-2_pkg_setup
|
|
||||||
kde4-base_pkg_setup
|
|
||||||
python-single-r1_pkg_setup
|
|
||||||
|
|
||||||
[[ ${MERGE_TYPE} != binary ]] && check-reqs_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
local mod mod2 dest tmplfile tmplname mypv
|
|
||||||
|
|
||||||
[[ -n ${PATCHSET} ]] && unpack ${PATCHSET}
|
|
||||||
use branding && unpack "${BRANDING}"
|
|
||||||
|
|
||||||
if [[ ${PV} != *9999* ]]; then
|
|
||||||
unpack "${P}.tar.xz"
|
|
||||||
for mod in ${MODULES}; do
|
|
||||||
[[ ${mod} == core ]] && continue
|
|
||||||
unpack "${PN}-${mod}-${PV}.tar.xz"
|
|
||||||
done
|
|
||||||
else
|
|
||||||
for mod in ${MODULES}; do
|
|
||||||
mypv=${PV/.9999}
|
|
||||||
[[ ${mypv} != ${PV} ]] && EGIT_BRANCH="${PN}-${mypv/./-}"
|
|
||||||
EGIT_PROJECT="${PN}/${mod}"
|
|
||||||
EGIT_SOURCEDIR="${WORKDIR}/${P}"
|
|
||||||
[[ ${mod} != core ]] && EGIT_SOURCEDIR="${WORKDIR}/${PN}-${mod}-${PV}"
|
|
||||||
EGIT_REPO_URI="git://anongit.freedesktop.org/${PN}/${mod}"
|
|
||||||
EGIT_NOUNPACK="true"
|
|
||||||
git-2_src_unpack
|
|
||||||
if [[ ${mod} != core ]]; then
|
|
||||||
mod2=${mod}
|
|
||||||
# mapping does not match on help
|
|
||||||
[[ ${mod} == help ]] && mod2="helpcontent2"
|
|
||||||
mkdir -p "${S}/${mod2}/" || die
|
|
||||||
mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}/${mod2}" || die
|
|
||||||
rm -rf "${WORKDIR}/${PN}-${mod}-${PV}"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
unset EGIT_PROJECT EGIT_SOURCEDIR EGIT_REPO_URI EGIT_BRANCH
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# optimization flags
|
|
||||||
export GMAKE_OPTIONS="${MAKEOPTS}"
|
|
||||||
# System python 2.7 enablement:
|
|
||||||
export PYTHON_CFLAGS=$(python_get_CFLAGS)
|
|
||||||
export PYTHON_LIBS=$(python_get_LIBS)
|
|
||||||
|
|
||||||
# patchset
|
|
||||||
if [[ -n ${PATCHSET} ]]; then
|
|
||||||
EPATCH_FORCE="yes" \
|
|
||||||
EPATCH_SOURCE="${WORKDIR}/${PATCHSET/.tar.xz/}" \
|
|
||||||
EPATCH_SUFFIX="patch" \
|
|
||||||
epatch
|
|
||||||
fi
|
|
||||||
|
|
||||||
base_src_prepare
|
|
||||||
|
|
||||||
AT_M4DIR="m4" eautoreconf
|
|
||||||
# hack in the autogen.sh
|
|
||||||
touch autogen.lastrun
|
|
||||||
|
|
||||||
# system pyuno mess
|
|
||||||
sed \
|
|
||||||
-e "s:%eprefix%:${EPREFIX}:g" \
|
|
||||||
-e "s:%libdir%:$(get_libdir):g" \
|
|
||||||
-i pyuno/source/module/uno.py \
|
|
||||||
-i scripting/source/pyprov/officehelper.py || die
|
|
||||||
# sed in the tests
|
|
||||||
sed -i \
|
|
||||||
-e 's#all : build unitcheck#all : build#g' \
|
|
||||||
solenv/gbuild/Module.mk || die
|
|
||||||
sed -i \
|
|
||||||
-e 's#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g' \
|
|
||||||
-e 's#Makefile.gbuild all slowcheck#Makefile.gbuild all#g' \
|
|
||||||
Makefile.in || die
|
|
||||||
|
|
||||||
if use branding; then
|
|
||||||
# hack...
|
|
||||||
mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local java_opts
|
|
||||||
local internal_libs
|
|
||||||
local lo_ext
|
|
||||||
local ext_opts
|
|
||||||
local jbs=$(sed -ne 's/.*\(-j[[:space:]]*\|--jobs=\)\([[:digit:]]\+\).*/\2/;T;p' <<< "${MAKEOPTS}")
|
|
||||||
|
|
||||||
# recheck that there is some value in jobs
|
|
||||||
[[ -z ${jbs} ]] && jbs="1"
|
|
||||||
|
|
||||||
# sane: just sane.h header that is used for scan in writer, not
|
|
||||||
# linked or anything else, worthless to depend on
|
|
||||||
# vigra: just uses templates from there
|
|
||||||
# it is serious pain in the ass for packaging
|
|
||||||
# should be replaced by boost::gil if someone interested
|
|
||||||
internal_libs+="
|
|
||||||
--without-system-sane
|
|
||||||
--without-system-vigra
|
|
||||||
"
|
|
||||||
|
|
||||||
# libreoffice extensions handling
|
|
||||||
for lo_xt in ${LO_EXTS}; do
|
|
||||||
if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
|
|
||||||
ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt})"
|
|
||||||
else
|
|
||||||
ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt})"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if use java; then
|
|
||||||
# hsqldb: system one is too new
|
|
||||||
java_opts="
|
|
||||||
--without-junit
|
|
||||||
--without-system-hsqldb
|
|
||||||
--with-ant-home="${ANT_HOME}"
|
|
||||||
--with-jdk-home=$(java-config --jdk-home 2>/dev/null)
|
|
||||||
--with-jvm-path="${EPREFIX}/usr/lib/"
|
|
||||||
"
|
|
||||||
|
|
||||||
use libreoffice_extensions_scripting-beanshell && \
|
|
||||||
java_opts+=" --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)"
|
|
||||||
|
|
||||||
use libreoffice_extensions_scripting-javascript && \
|
|
||||||
java_opts+=" --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar)"
|
|
||||||
|
|
||||||
if use libreoffice_extensions_wiki-publisher; then
|
|
||||||
java_opts+="
|
|
||||||
--with-commons-codec-jar=$(java-pkg_getjar commons-codec commons-codec.jar)
|
|
||||||
--with-commons-httpclient-jar=$(java-pkg_getjar commons-httpclient-3 commons-httpclient.jar)
|
|
||||||
--with-commons-lang-jar=$(java-pkg_getjar commons-lang-2.1 commons-lang.jar)
|
|
||||||
--with-commons-logging-jar=$(java-pkg_getjar commons-logging commons-logging.jar)
|
|
||||||
--with-servlet-api-jar=$(java-pkg_getjar tomcat-servlet-api-3.0 servlet-api.jar)
|
|
||||||
"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# system headers/libs/...: enforce using system packages
|
|
||||||
# --enable-cairo: ensure that cairo is always required
|
|
||||||
# --enable-graphite: disabling causes build breakages
|
|
||||||
# --enable-*-link: link to the library rather than just dlopen on runtime
|
|
||||||
# --enable-release-build: build the libreoffice as release
|
|
||||||
# --disable-fetch-external: prevent dowloading during compile phase
|
|
||||||
# --disable-gnome-vfs: old gnome virtual fs support
|
|
||||||
# --disable-kdeab: kde3 adressbook
|
|
||||||
# --disable-kde: kde3 support
|
|
||||||
# --disable-systray: quickstarter does not actually work at all so do not
|
|
||||||
# promote it
|
|
||||||
# --enable-extension-integration: enable any extension integration support
|
|
||||||
# --without-{afms,fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
|
|
||||||
# --disable-report-builder: too much java packages pulled in without pkgs
|
|
||||||
econf \
|
|
||||||
--docdir="${EPREFIX}/usr/share/doc/${PF}/" \
|
|
||||||
--with-system-headers \
|
|
||||||
--with-system-libs \
|
|
||||||
--with-system-jars \
|
|
||||||
--with-system-dicts \
|
|
||||||
--enable-cairo-canvas \
|
|
||||||
--enable-graphite \
|
|
||||||
--enable-largefile \
|
|
||||||
--enable-mergelibs \
|
|
||||||
--enable-python=system \
|
|
||||||
--enable-randr \
|
|
||||||
--enable-randr-link \
|
|
||||||
--enable-release-build \
|
|
||||||
--disable-hardlink-deliver \
|
|
||||||
--disable-ccache \
|
|
||||||
--disable-crashdump \
|
|
||||||
--disable-dependency-tracking \
|
|
||||||
--disable-epm \
|
|
||||||
--disable-fetch-external \
|
|
||||||
--disable-gnome-vfs \
|
|
||||||
--disable-gstreamer-0-10 \
|
|
||||||
--disable-report-builder \
|
|
||||||
--disable-kdeab \
|
|
||||||
--disable-kde \
|
|
||||||
--disable-online-update \
|
|
||||||
--disable-systray \
|
|
||||||
--with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \
|
|
||||||
--with-build-version="Gentoo official package" \
|
|
||||||
--enable-extension-integration \
|
|
||||||
--with-external-dict-dir="${EPREFIX}/usr/share/myspell" \
|
|
||||||
--with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \
|
|
||||||
--with-external-thes-dir="${EPREFIX}/usr/share/myspell" \
|
|
||||||
--with-external-tar="${DISTDIR}" \
|
|
||||||
--with-lang="" \
|
|
||||||
--with-parallelism=${jbs} \
|
|
||||||
--with-system-ucpp \
|
|
||||||
--with-vendor="Gentoo Foundation" \
|
|
||||||
--with-x \
|
|
||||||
--without-afms \
|
|
||||||
--without-fonts \
|
|
||||||
--without-myspell-dicts \
|
|
||||||
--without-help \
|
|
||||||
--with-helppack-integration \
|
|
||||||
--without-sun-templates \
|
|
||||||
$(use_enable bluetooth sdremote-bluetooth) \
|
|
||||||
$(use_enable cups) \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable dbus) \
|
|
||||||
$(use_enable eds evolution2) \
|
|
||||||
$(use_enable firebird firebird-sdbc) \
|
|
||||||
$(use_enable gnome gconf) \
|
|
||||||
$(use_enable gnome gio) \
|
|
||||||
$(use_enable gnome lockdown) \
|
|
||||||
$(use_enable gstreamer) \
|
|
||||||
$(use_enable gtk) \
|
|
||||||
$(use_enable gtk3) \
|
|
||||||
$(use_enable kde kde4) \
|
|
||||||
$(use_enable mysql ext-mariadb-connector) \
|
|
||||||
$(use_enable odk) \
|
|
||||||
$(use_enable opengl) \
|
|
||||||
$(use_enable postgres postgresql-sdbc) \
|
|
||||||
$(use_enable telepathy) \
|
|
||||||
$(use_enable vba) \
|
|
||||||
$(use_enable vlc) \
|
|
||||||
$(use_enable webdav neon) \
|
|
||||||
$(use_with java) \
|
|
||||||
$(use_with mysql system-mysql-cppconn) \
|
|
||||||
$(use_with odk doxygen) \
|
|
||||||
${internal_libs} \
|
|
||||||
${java_opts} \
|
|
||||||
${ext_opts}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
# hack for offlinehelp, this needs fixing upstream at some point
|
|
||||||
# it is broken because we send --without-help
|
|
||||||
# https://bugs.freedesktop.org/show_bug.cgi?id=46506
|
|
||||||
(
|
|
||||||
grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk"
|
|
||||||
source "${T}/config_host.mk" 2&> /dev/null
|
|
||||||
|
|
||||||
local path="${WORKDIR}/helpcontent2/source/auxiliary/"
|
|
||||||
mkdir -p "${path}" || die
|
|
||||||
|
|
||||||
echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\""
|
|
||||||
perl "${S}/helpcontent2/helpers/create_ilst.pl" \
|
|
||||||
-dir=icon-themes/galaxy/res/helpimg \
|
|
||||||
> "${path}/helpimg.ilst"
|
|
||||||
[[ -s "${path}/helpimg.ilst" ]] || ewarn "The help images list is empty, something is fishy, report a bug."
|
|
||||||
)
|
|
||||||
|
|
||||||
local target
|
|
||||||
use test && target="build" || target="build-nocheck"
|
|
||||||
|
|
||||||
# this is not a proper make script
|
|
||||||
make ${target} || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
make unitcheck || die
|
|
||||||
make slowcheck || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# This is not Makefile so no buildserver
|
|
||||||
make DESTDIR="${D}" distro-pack-install -o build -o check || die
|
|
||||||
|
|
||||||
# Fix bash completion placement
|
|
||||||
newbashcomp "${ED}"/etc/bash_completion.d/libreoffice.sh ${PN}
|
|
||||||
rm -rf "${ED}"/etc/
|
|
||||||
|
|
||||||
if use branding; then
|
|
||||||
insinto /usr/$(get_libdir)/${PN}/program
|
|
||||||
newins "${WORKDIR}/branding-sofficerc" sofficerc
|
|
||||||
echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN}
|
|
||||||
fi
|
|
||||||
|
|
||||||
# symlink the nsplugin to proper location
|
|
||||||
# use gtk && inst_plugin /usr/$(get_libdir)/libreoffice/program/libnpsoplugin.so
|
|
||||||
|
|
||||||
# Hack for offlinehelp, this needs fixing upstream at some point.
|
|
||||||
# It is broken because we send --without-help
|
|
||||||
# https://bugs.freedesktop.org/show_bug.cgi?id=46506
|
|
||||||
insinto /usr/$(get_libdir)/libreoffice/help
|
|
||||||
doins xmlhelp/util/*.xsl
|
|
||||||
|
|
||||||
# Remove desktop files for support to old installs that can't parse mime
|
|
||||||
rm -rf "${ED}"/usr/share/mimelnk/
|
|
||||||
|
|
||||||
pax-mark -m "${ED}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
|
|
||||||
pax-mark -m "${ED}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
# Cache updates - all handled by kde eclass for all environments
|
|
||||||
kde4-base_pkg_preinst
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
kde4-base_pkg_postinst
|
|
||||||
|
|
||||||
use java || \
|
|
||||||
ewarn 'If you plan to use lbase application you should enable java or you will get various crashes.'
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
kde4-base_pkg_postrm
|
|
||||||
}
|
|
@ -1,592 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-4.2.4.2.ebuild,v 1.1 2014/05/08 11:20:30 scarabeus Exp $
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
KDE_REQUIRED="optional"
|
|
||||||
QT_MINIMAL="4.7.4"
|
|
||||||
KDE_SCM="git"
|
|
||||||
CMAKE_REQUIRED="never"
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 python3_3 )
|
|
||||||
PYTHON_REQ_USE="threads,xml"
|
|
||||||
|
|
||||||
# experimental ; release ; old
|
|
||||||
# Usually the tarballs are moved a lot so this should make
|
|
||||||
# everyone happy.
|
|
||||||
DEV_URI="
|
|
||||||
http://dev-builds.libreoffice.org/pre-releases/src
|
|
||||||
http://download.documentfoundation.org/libreoffice/src/${PV:0:5}/
|
|
||||||
http://download.documentfoundation.org/libreoffice/old/${PV}/
|
|
||||||
"
|
|
||||||
EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice"
|
|
||||||
ADDONS_URI="http://dev-www.libreoffice.org/src/"
|
|
||||||
|
|
||||||
BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
|
|
||||||
# PATCHSET="${P}-patchset-01.tar.xz"
|
|
||||||
|
|
||||||
[[ ${PV} == *9999* ]] && SCM_ECLASS="git-2"
|
|
||||||
inherit base autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic nsplugins ${SCM_ECLASS}
|
|
||||||
unset SCM_ECLASS
|
|
||||||
|
|
||||||
DESCRIPTION="LibreOffice, a full office productivity suite."
|
|
||||||
HOMEPAGE="http://www.libreoffice.org"
|
|
||||||
SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
|
|
||||||
[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}"
|
|
||||||
|
|
||||||
# Split modules following git/tarballs
|
|
||||||
# Core MUST be first!
|
|
||||||
# Help is used for the image generator
|
|
||||||
MODULES="core help"
|
|
||||||
# Only release has the tarballs
|
|
||||||
if [[ ${PV} != *9999* ]]; then
|
|
||||||
for i in ${DEV_URI}; do
|
|
||||||
for mod in ${MODULES}; do
|
|
||||||
if [[ ${mod} == core ]]; then
|
|
||||||
SRC_URI+=" ${i}/${P}.tar.xz"
|
|
||||||
else
|
|
||||||
SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
unset mod
|
|
||||||
done
|
|
||||||
unset i
|
|
||||||
fi
|
|
||||||
unset DEV_URI
|
|
||||||
|
|
||||||
# Really required addons
|
|
||||||
# These are bundles that can't be removed for now due to huge patchsets.
|
|
||||||
# If you want them gone, patches are welcome.
|
|
||||||
ADDONS_SRC+=" ${ADDONS_URI}/d62650a6f908e85643e557a236ea989c-vigra1.6.0.tar.gz"
|
|
||||||
ADDONS_SRC+=" ${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz" # modifies source code
|
|
||||||
ADDONS_SRC+=" java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
|
|
||||||
ADDONS_SRC+=" libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" # no release for 8 years, should we package it?
|
|
||||||
ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" # Does not build with 1.6 rhino at all
|
|
||||||
ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" # requirement of rhino
|
|
||||||
ADDONS_SRC+=" odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" # not packageable
|
|
||||||
SRC_URI+=" ${ADDONS_SRC}"
|
|
||||||
|
|
||||||
unset ADDONS_URI
|
|
||||||
unset EXT_URI
|
|
||||||
unset ADDONS_SRC
|
|
||||||
|
|
||||||
IUSE="bluetooth +branding +cups dbus debug eds firebird gnome gstreamer +gtk
|
|
||||||
gtk3 jemalloc kde mysql odk opengl postgres telepathy test +vba vlc +webdav"
|
|
||||||
|
|
||||||
LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
|
|
||||||
# Unpackaged separate extensions:
|
|
||||||
# diagram: lo has 0.9.5 upstream is weirdly patched 0.9.4 -> wtf?
|
|
||||||
# hunart: only on ooo extensions -> fubared download path somewhere on sf
|
|
||||||
# numbertext, typo, validator, watch-window: ^^
|
|
||||||
# oooblogger: no homepage or anything
|
|
||||||
# Extensions that need extra work:
|
|
||||||
for lo_xt in ${LO_EXTS}; do
|
|
||||||
IUSE+=" libreoffice_extensions_${lo_xt}"
|
|
||||||
done
|
|
||||||
unset lo_xt
|
|
||||||
|
|
||||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
[[ ${PV} == *9999* ]] || \
|
|
||||||
KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux"
|
|
||||||
|
|
||||||
COMMON_DEPEND="
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
app-arch/zip
|
|
||||||
app-arch/unzip
|
|
||||||
>=app-text/hunspell-1.3.2-r3
|
|
||||||
app-text/mythes
|
|
||||||
app-text/libabw
|
|
||||||
>=app-text/libexttextcat-3.2
|
|
||||||
app-text/libebook
|
|
||||||
app-text/libetonyek
|
|
||||||
app-text/liblangtag
|
|
||||||
app-text/libmspub
|
|
||||||
>=app-text/libmwaw-0.2
|
|
||||||
>=app-text/libodfgen-0.0.3
|
|
||||||
app-text/libwpd:0.9[tools]
|
|
||||||
app-text/libwpg:0.2
|
|
||||||
>=app-text/libwps-0.2.2
|
|
||||||
>=app-text/poppler-0.16:=[xpdf-headers(+),cxx]
|
|
||||||
>=dev-cpp/clucene-2.3.3.4-r2
|
|
||||||
dev-cpp/libcmis:0.4
|
|
||||||
dev-db/unixODBC
|
|
||||||
>=dev-libs/boost-1.46:=
|
|
||||||
dev-libs/expat
|
|
||||||
>=dev-libs/hyphen-2.7.1
|
|
||||||
>=dev-libs/icu-4.8.1.1:=
|
|
||||||
>=dev-libs/libatomic_ops-7.2d
|
|
||||||
=dev-libs/liborcus-0.5*:=
|
|
||||||
>=dev-libs/nspr-4.8.8
|
|
||||||
>=dev-libs/nss-3.12.9
|
|
||||||
>=dev-lang/perl-5.0
|
|
||||||
>=dev-libs/openssl-1.0.0d
|
|
||||||
>=dev-libs/redland-1.0.16[ssl]
|
|
||||||
media-gfx/graphite2
|
|
||||||
>=media-libs/fontconfig-2.8.0
|
|
||||||
media-libs/freetype:2
|
|
||||||
>=media-libs/harfbuzz-0.9.18:=[icu(+)]
|
|
||||||
media-libs/lcms:2
|
|
||||||
>=media-libs/libpng-1.4
|
|
||||||
>=media-libs/libcdr-0.0.5
|
|
||||||
media-libs/libfreehand
|
|
||||||
media-libs/libvisio
|
|
||||||
>=net-misc/curl-7.21.4
|
|
||||||
net-nds/openldap
|
|
||||||
sci-mathematics/lpsolve
|
|
||||||
virtual/jpeg:0
|
|
||||||
>=x11-libs/cairo-1.10.0[X]
|
|
||||||
x11-libs/libXinerama
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXrender
|
|
||||||
bluetooth? ( net-wireless/bluez )
|
|
||||||
cups? ( net-print/cups )
|
|
||||||
dbus? ( >=dev-libs/dbus-glib-0.92 )
|
|
||||||
eds? ( gnome-extra/evolution-data-server )
|
|
||||||
firebird? ( >=dev-db/firebird-2.5 )
|
|
||||||
gnome? ( gnome-base/gconf:2 )
|
|
||||||
gtk? (
|
|
||||||
x11-libs/gdk-pixbuf[X]
|
|
||||||
>=x11-libs/gtk+-2.24:2
|
|
||||||
)
|
|
||||||
gtk3? ( >=x11-libs/gtk+-3.2:3 )
|
|
||||||
gstreamer? (
|
|
||||||
media-libs/gstreamer:1.0
|
|
||||||
media-libs/gst-plugins-base:1.0
|
|
||||||
)
|
|
||||||
jemalloc? ( dev-libs/jemalloc )
|
|
||||||
libreoffice_extensions_scripting-beanshell? ( >=dev-java/bsh-2.0_beta4 )
|
|
||||||
libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
|
|
||||||
libreoffice_extensions_wiki-publisher? (
|
|
||||||
dev-java/commons-codec:0
|
|
||||||
dev-java/commons-httpclient:3
|
|
||||||
dev-java/commons-lang:2.1
|
|
||||||
dev-java/commons-logging:0
|
|
||||||
dev-java/tomcat-servlet-api:3.0
|
|
||||||
)
|
|
||||||
mysql? ( >=dev-db/mysql-connector-c++-1.1.0 )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
postgres? ( >=dev-db/postgresql-base-9.0[kerberos] )
|
|
||||||
telepathy? (
|
|
||||||
dev-libs/glib:2
|
|
||||||
>=net-libs/telepathy-glib-0.18.0
|
|
||||||
>=x11-libs/gtk+-2.24:2
|
|
||||||
)
|
|
||||||
webdav? ( net-libs/neon )
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
!app-office/libreoffice-bin
|
|
||||||
!app-office/libreoffice-bin-debug
|
|
||||||
!<app-office/openoffice-bin-3.4.0-r1
|
|
||||||
!app-office/openoffice
|
|
||||||
media-fonts/libertine-ttf
|
|
||||||
media-fonts/liberation-fonts
|
|
||||||
media-fonts/urw-fonts
|
|
||||||
java? ( >=virtual/jre-1.6 )
|
|
||||||
vlc? ( media-video/vlc )
|
|
||||||
"
|
|
||||||
|
|
||||||
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
|
|
||||||
# as dmake execute tests right away
|
|
||||||
DEPEND="${COMMON_DEPEND}
|
|
||||||
>=dev-libs/libxml2-2.7.8
|
|
||||||
dev-libs/libxslt
|
|
||||||
dev-perl/Archive-Zip
|
|
||||||
dev-util/cppunit
|
|
||||||
>=dev-util/gperf-3
|
|
||||||
dev-util/intltool
|
|
||||||
>=dev-util/mdds-0.10.2:=
|
|
||||||
virtual/pkgconfig
|
|
||||||
net-misc/npapi-sdk
|
|
||||||
>=sys-apps/findutils-4.4.2
|
|
||||||
sys-devel/bison
|
|
||||||
sys-apps/coreutils
|
|
||||||
sys-devel/flex
|
|
||||||
sys-devel/gettext
|
|
||||||
>=sys-devel/make-3.82
|
|
||||||
sys-devel/ucpp
|
|
||||||
sys-libs/zlib
|
|
||||||
x11-libs/libXt
|
|
||||||
x11-libs/libXtst
|
|
||||||
x11-proto/randrproto
|
|
||||||
x11-proto/xextproto
|
|
||||||
x11-proto/xineramaproto
|
|
||||||
x11-proto/xproto
|
|
||||||
java? (
|
|
||||||
>=virtual/jdk-1.6
|
|
||||||
>=dev-java/ant-core-1.7
|
|
||||||
)
|
|
||||||
odk? ( >=app-doc/doxygen-1.8.4 )
|
|
||||||
test? ( dev-util/cppunit )
|
|
||||||
"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
# not upstreamable stuff
|
|
||||||
"${FILESDIR}/${PN}-3.7-system-pyuno.patch"
|
|
||||||
|
|
||||||
# staged for git master
|
|
||||||
"${FILESDIR}/${PN}-4.2.0.4-curl-config.patch"
|
|
||||||
|
|
||||||
# kde mutexes
|
|
||||||
"${FILESDIR}/${PN}-4.2.3.3-kde4-startup.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
REQUIRED_USE="
|
|
||||||
${PYTHON_REQUIRED_USE}
|
|
||||||
bluetooth? ( dbus )
|
|
||||||
gnome? ( gtk )
|
|
||||||
eds? ( gnome )
|
|
||||||
telepathy? ( gtk )
|
|
||||||
libreoffice_extensions_nlpsolver? ( java )
|
|
||||||
libreoffice_extensions_scripting-beanshell? ( java )
|
|
||||||
libreoffice_extensions_scripting-javascript? ( java )
|
|
||||||
libreoffice_extensions_wiki-publisher? ( java )
|
|
||||||
"
|
|
||||||
|
|
||||||
CHECKREQS_MEMORY="512M"
|
|
||||||
CHECKREQS_DISK_BUILD="6G"
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
local pgslot
|
|
||||||
|
|
||||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
|
||||||
check-reqs_pkg_pretend
|
|
||||||
|
|
||||||
if [[ $(gcc-major-version) -lt 4 ]] || \
|
|
||||||
( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]] ) \
|
|
||||||
; then
|
|
||||||
eerror "Compilation with gcc older than 4.6 is not supported"
|
|
||||||
die "Too old gcc found."
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Ensure pg version but we have to be sure the pg is installed (first
|
|
||||||
# install on clean system)
|
|
||||||
if use postgres && has_version dev-db/postgresql-base; then
|
|
||||||
pgslot=$(postgresql-config show)
|
|
||||||
if [[ ${pgslot//.} < 90 ]] ; then
|
|
||||||
eerror "PostgreSQL slot must be set to 9.0 or higher."
|
|
||||||
eerror " postgresql-config set 9.0"
|
|
||||||
die "PostgreSQL slot is not set to 9.0 or higher."
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
java-pkg-opt-2_pkg_setup
|
|
||||||
kde4-base_pkg_setup
|
|
||||||
python-single-r1_pkg_setup
|
|
||||||
|
|
||||||
[[ ${MERGE_TYPE} != binary ]] && check-reqs_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
local mod mod2 dest tmplfile tmplname mypv
|
|
||||||
|
|
||||||
[[ -n ${PATCHSET} ]] && unpack ${PATCHSET}
|
|
||||||
use branding && unpack "${BRANDING}"
|
|
||||||
|
|
||||||
if [[ ${PV} != *9999* ]]; then
|
|
||||||
unpack "${P}.tar.xz"
|
|
||||||
for mod in ${MODULES}; do
|
|
||||||
[[ ${mod} == core ]] && continue
|
|
||||||
unpack "${PN}-${mod}-${PV}.tar.xz"
|
|
||||||
done
|
|
||||||
else
|
|
||||||
for mod in ${MODULES}; do
|
|
||||||
mypv=${PV/.9999}
|
|
||||||
[[ ${mypv} != ${PV} ]] && EGIT_BRANCH="${PN}-${mypv/./-}"
|
|
||||||
EGIT_PROJECT="${PN}/${mod}"
|
|
||||||
EGIT_SOURCEDIR="${WORKDIR}/${P}"
|
|
||||||
[[ ${mod} != core ]] && EGIT_SOURCEDIR="${WORKDIR}/${PN}-${mod}-${PV}"
|
|
||||||
EGIT_REPO_URI="git://anongit.freedesktop.org/${PN}/${mod}"
|
|
||||||
EGIT_NOUNPACK="true"
|
|
||||||
git-2_src_unpack
|
|
||||||
if [[ ${mod} != core ]]; then
|
|
||||||
mod2=${mod}
|
|
||||||
# mapping does not match on help
|
|
||||||
[[ ${mod} == help ]] && mod2="helpcontent2"
|
|
||||||
mkdir -p "${S}/${mod2}/" || die
|
|
||||||
mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}/${mod2}" || die
|
|
||||||
rm -rf "${WORKDIR}/${PN}-${mod}-${PV}"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
unset EGIT_PROJECT EGIT_SOURCEDIR EGIT_REPO_URI EGIT_BRANCH
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# optimization flags
|
|
||||||
export GMAKE_OPTIONS="${MAKEOPTS}"
|
|
||||||
# System python 2.7 enablement:
|
|
||||||
export PYTHON_CFLAGS=$(python_get_CFLAGS)
|
|
||||||
export PYTHON_LIBS=$(python_get_LIBS)
|
|
||||||
|
|
||||||
# patchset
|
|
||||||
if [[ -n ${PATCHSET} ]]; then
|
|
||||||
EPATCH_FORCE="yes" \
|
|
||||||
EPATCH_SOURCE="${WORKDIR}/${PATCHSET/.tar.xz/}" \
|
|
||||||
EPATCH_SUFFIX="patch" \
|
|
||||||
epatch
|
|
||||||
fi
|
|
||||||
|
|
||||||
base_src_prepare
|
|
||||||
|
|
||||||
AT_M4DIR="m4" eautoreconf
|
|
||||||
# hack in the autogen.sh
|
|
||||||
touch autogen.lastrun
|
|
||||||
|
|
||||||
# system pyuno mess
|
|
||||||
sed \
|
|
||||||
-e "s:%eprefix%:${EPREFIX}:g" \
|
|
||||||
-e "s:%libdir%:$(get_libdir):g" \
|
|
||||||
-i pyuno/source/module/uno.py \
|
|
||||||
-i scripting/source/pyprov/officehelper.py || die
|
|
||||||
# sed in the tests
|
|
||||||
sed -i \
|
|
||||||
-e 's#all : build unitcheck#all : build#g' \
|
|
||||||
solenv/gbuild/Module.mk || die
|
|
||||||
sed -i \
|
|
||||||
-e 's#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g' \
|
|
||||||
-e 's#Makefile.gbuild all slowcheck#Makefile.gbuild all#g' \
|
|
||||||
Makefile.in || die
|
|
||||||
|
|
||||||
if use branding; then
|
|
||||||
# hack...
|
|
||||||
mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local java_opts
|
|
||||||
local internal_libs
|
|
||||||
local lo_ext
|
|
||||||
local ext_opts
|
|
||||||
local jbs=$(sed -ne 's/.*\(-j[[:space:]]*\|--jobs=\)\([[:digit:]]\+\).*/\2/;T;p' <<< "${MAKEOPTS}")
|
|
||||||
|
|
||||||
# recheck that there is some value in jobs
|
|
||||||
[[ -z ${jbs} ]] && jbs="1"
|
|
||||||
|
|
||||||
# sane: just sane.h header that is used for scan in writer, not
|
|
||||||
# linked or anything else, worthless to depend on
|
|
||||||
# vigra: just uses templates from there
|
|
||||||
# it is serious pain in the ass for packaging
|
|
||||||
# should be replaced by boost::gil if someone interested
|
|
||||||
internal_libs+="
|
|
||||||
--without-system-sane
|
|
||||||
--without-system-vigra
|
|
||||||
"
|
|
||||||
|
|
||||||
# libreoffice extensions handling
|
|
||||||
for lo_xt in ${LO_EXTS}; do
|
|
||||||
if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
|
|
||||||
ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt})"
|
|
||||||
else
|
|
||||||
ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt})"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if use java; then
|
|
||||||
# hsqldb: system one is too new
|
|
||||||
java_opts="
|
|
||||||
--without-junit
|
|
||||||
--without-system-hsqldb
|
|
||||||
--with-ant-home="${ANT_HOME}"
|
|
||||||
--with-jdk-home=$(java-config --jdk-home 2>/dev/null)
|
|
||||||
--with-jvm-path="${EPREFIX}/usr/lib/"
|
|
||||||
"
|
|
||||||
|
|
||||||
use libreoffice_extensions_scripting-beanshell && \
|
|
||||||
java_opts+=" --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)"
|
|
||||||
|
|
||||||
use libreoffice_extensions_scripting-javascript && \
|
|
||||||
java_opts+=" --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar)"
|
|
||||||
|
|
||||||
if use libreoffice_extensions_wiki-publisher; then
|
|
||||||
java_opts+="
|
|
||||||
--with-commons-codec-jar=$(java-pkg_getjar commons-codec commons-codec.jar)
|
|
||||||
--with-commons-httpclient-jar=$(java-pkg_getjar commons-httpclient-3 commons-httpclient.jar)
|
|
||||||
--with-commons-lang-jar=$(java-pkg_getjar commons-lang-2.1 commons-lang.jar)
|
|
||||||
--with-commons-logging-jar=$(java-pkg_getjar commons-logging commons-logging.jar)
|
|
||||||
--with-servlet-api-jar=$(java-pkg_getjar tomcat-servlet-api-3.0 servlet-api.jar)
|
|
||||||
"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# system headers/libs/...: enforce using system packages
|
|
||||||
# --enable-cairo: ensure that cairo is always required
|
|
||||||
# --enable-graphite: disabling causes build breakages
|
|
||||||
# --enable-*-link: link to the library rather than just dlopen on runtime
|
|
||||||
# --enable-release-build: build the libreoffice as release
|
|
||||||
# --disable-fetch-external: prevent dowloading during compile phase
|
|
||||||
# --disable-gnome-vfs: old gnome virtual fs support
|
|
||||||
# --disable-kdeab: kde3 adressbook
|
|
||||||
# --disable-kde: kde3 support
|
|
||||||
# --disable-systray: quickstarter does not actually work at all so do not
|
|
||||||
# promote it
|
|
||||||
# --enable-extension-integration: enable any extension integration support
|
|
||||||
# --without-{afms,fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
|
|
||||||
# --disable-report-builder: too much java packages pulled in without pkgs
|
|
||||||
econf \
|
|
||||||
--docdir="${EPREFIX}/usr/share/doc/${PF}/" \
|
|
||||||
--with-system-headers \
|
|
||||||
--with-system-libs \
|
|
||||||
--with-system-jars \
|
|
||||||
--with-system-dicts \
|
|
||||||
--enable-cairo-canvas \
|
|
||||||
--enable-graphite \
|
|
||||||
--enable-largefile \
|
|
||||||
--enable-mergelibs \
|
|
||||||
--enable-python=system \
|
|
||||||
--enable-randr \
|
|
||||||
--enable-randr-link \
|
|
||||||
--enable-release-build \
|
|
||||||
--disable-hardlink-deliver \
|
|
||||||
--disable-ccache \
|
|
||||||
--disable-crashdump \
|
|
||||||
--disable-dependency-tracking \
|
|
||||||
--disable-epm \
|
|
||||||
--disable-fetch-external \
|
|
||||||
--disable-gnome-vfs \
|
|
||||||
--disable-gstreamer-0-10 \
|
|
||||||
--disable-report-builder \
|
|
||||||
--disable-kdeab \
|
|
||||||
--disable-kde \
|
|
||||||
--disable-online-update \
|
|
||||||
--disable-systray \
|
|
||||||
--with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \
|
|
||||||
--with-build-version="Gentoo official package" \
|
|
||||||
--enable-extension-integration \
|
|
||||||
--with-external-dict-dir="${EPREFIX}/usr/share/myspell" \
|
|
||||||
--with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \
|
|
||||||
--with-external-thes-dir="${EPREFIX}/usr/share/myspell" \
|
|
||||||
--with-external-tar="${DISTDIR}" \
|
|
||||||
--with-lang="" \
|
|
||||||
--with-parallelism=${jbs} \
|
|
||||||
--with-system-ucpp \
|
|
||||||
--with-vendor="Gentoo Foundation" \
|
|
||||||
--with-x \
|
|
||||||
--without-afms \
|
|
||||||
--without-fonts \
|
|
||||||
--without-myspell-dicts \
|
|
||||||
--without-help \
|
|
||||||
--with-helppack-integration \
|
|
||||||
--without-sun-templates \
|
|
||||||
$(use_enable bluetooth sdremote-bluetooth) \
|
|
||||||
$(use_enable cups) \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable dbus) \
|
|
||||||
$(use_enable eds evolution2) \
|
|
||||||
$(use_enable firebird firebird-sdbc) \
|
|
||||||
$(use_enable gnome gconf) \
|
|
||||||
$(use_enable gnome gio) \
|
|
||||||
$(use_enable gnome lockdown) \
|
|
||||||
$(use_enable gstreamer) \
|
|
||||||
$(use_enable gtk) \
|
|
||||||
$(use_enable gtk3) \
|
|
||||||
$(use_enable kde kde4) \
|
|
||||||
$(use_enable mysql ext-mariadb-connector) \
|
|
||||||
$(use_enable odk) \
|
|
||||||
$(use_enable opengl) \
|
|
||||||
$(use_enable postgres postgresql-sdbc) \
|
|
||||||
$(use_enable telepathy) \
|
|
||||||
$(use_enable vba) \
|
|
||||||
$(use_enable vlc) \
|
|
||||||
$(use_enable webdav neon) \
|
|
||||||
$(use_with java) \
|
|
||||||
$(use_with mysql system-mysql-cppconn) \
|
|
||||||
$(use_with odk doxygen) \
|
|
||||||
${internal_libs} \
|
|
||||||
${java_opts} \
|
|
||||||
${ext_opts}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
# hack for offlinehelp, this needs fixing upstream at some point
|
|
||||||
# it is broken because we send --without-help
|
|
||||||
# https://bugs.freedesktop.org/show_bug.cgi?id=46506
|
|
||||||
(
|
|
||||||
grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk"
|
|
||||||
source "${T}/config_host.mk" 2&> /dev/null
|
|
||||||
|
|
||||||
local path="${WORKDIR}/helpcontent2/source/auxiliary/"
|
|
||||||
mkdir -p "${path}" || die
|
|
||||||
|
|
||||||
echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\""
|
|
||||||
perl "${S}/helpcontent2/helpers/create_ilst.pl" \
|
|
||||||
-dir=icon-themes/galaxy/res/helpimg \
|
|
||||||
> "${path}/helpimg.ilst"
|
|
||||||
[[ -s "${path}/helpimg.ilst" ]] || ewarn "The help images list is empty, something is fishy, report a bug."
|
|
||||||
)
|
|
||||||
|
|
||||||
local target
|
|
||||||
use test && target="build" || target="build-nocheck"
|
|
||||||
|
|
||||||
# this is not a proper make script
|
|
||||||
make ${target} || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
make unitcheck || die
|
|
||||||
make slowcheck || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# This is not Makefile so no buildserver
|
|
||||||
make DESTDIR="${D}" distro-pack-install -o build -o check || die
|
|
||||||
|
|
||||||
# Fix bash completion placement
|
|
||||||
newbashcomp "${ED}"/etc/bash_completion.d/libreoffice.sh ${PN}
|
|
||||||
rm -rf "${ED}"/etc/
|
|
||||||
|
|
||||||
if use branding; then
|
|
||||||
insinto /usr/$(get_libdir)/${PN}/program
|
|
||||||
newins "${WORKDIR}/branding-sofficerc" sofficerc
|
|
||||||
echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN}
|
|
||||||
fi
|
|
||||||
|
|
||||||
# symlink the nsplugin to proper location
|
|
||||||
# use gtk && inst_plugin /usr/$(get_libdir)/libreoffice/program/libnpsoplugin.so
|
|
||||||
|
|
||||||
# Hack for offlinehelp, this needs fixing upstream at some point.
|
|
||||||
# It is broken because we send --without-help
|
|
||||||
# https://bugs.freedesktop.org/show_bug.cgi?id=46506
|
|
||||||
insinto /usr/$(get_libdir)/libreoffice/help
|
|
||||||
doins xmlhelp/util/*.xsl
|
|
||||||
|
|
||||||
# Remove desktop files for support to old installs that can't parse mime
|
|
||||||
rm -rf "${ED}"/usr/share/mimelnk/
|
|
||||||
|
|
||||||
pax-mark -m "${ED}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
|
|
||||||
pax-mark -m "${ED}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
# Cache updates - all handled by kde eclass for all environments
|
|
||||||
kde4-base_pkg_preinst
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
kde4-base_pkg_postinst
|
|
||||||
|
|
||||||
use java || \
|
|
||||||
ewarn 'If you plan to use lbase application you should enable java or you will get various crashes.'
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
kde4-base_pkg_postrm
|
|
||||||
}
|
|
@ -1,6 +1,6 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-portage/pfl/pfl-2.4-r1.ebuild,v 1.8 2014/01/21 20:48:34 maekke Exp $
|
# $Header: /var/cvsroot/gentoo-x86/app-portage/pfl/pfl-2.4-r2.ebuild,v 1.1 2014/06/29 13:05:49 jer Exp $
|
||||||
|
|
||||||
EAPI=5
|
EAPI=5
|
||||||
|
|
@ -1,32 +1,14 @@
|
|||||||
DIST icedtea-bin-core-6.1.12.7-amd64.tar.bz2 38971833 SHA256 1e8f88a34db9ca9966fb38e60216d8609a02fcad07948f7bc950308ea3e6291d SHA512 9fe3ff1e52d7532e9bc28ea50e43e03fff8e5415819ad3d0eaf0396e459a3cb98049e922611a498d8f1e77a2c048412b1f85e3c8e400bec74c138bf2ec1aa1fb WHIRLPOOL d92df55444e8f5dcda61dcc457712f878babd417baa92adb260c37a61f2172374fa4856d0693423840621d312b32fc9fb0b23813b62e718a2caad5e0d0fbd7a4
|
|
||||||
DIST icedtea-bin-core-6.1.12.7-x86.tar.bz2 39666989 SHA256 53dc7bc4cf615dcd8d9e5048c870c10ff9111b909cb37d3240fab20746c54241 SHA512 ee38b3616f6a6c3ef601818275193253ff7ccb6bd6a041fd1c131529486cb3af81e9f679911d76a4a5f09bc23050ae115a3a5bf567e09dec8444b873470f1a81 WHIRLPOOL 9c07981bbcc18563d69ef70c4151a261a46ba0a6e1f009f3f0829c45a05eff05aab6a2ddad340aebfd4d360a8a534183de99dbba0dd3baa37b82f865d7850f25
|
|
||||||
DIST icedtea-bin-core-6.1.13.3-amd64.tar.bz2 52302259 SHA256 71001e89b1ad4808108e533f3c089f6357569e7e9401b8588483a1cd71bf5a6f SHA512 5dbd92b6322bb8fe6131e01062ab9b0fa955093c11138a5107f89fd715e9010c41591893d0ba59f91b08e087644d54be40c893e29a47ccd7ea4b4c321821508f WHIRLPOOL c63085bd06047402268ed0a58f5df9ab382efb0eb0539734a18b18eb8acd9743514fd9d8bae68ab1444c2e94dca6ebffe226c55bbba82fde9527a815c11e88ea
|
DIST icedtea-bin-core-6.1.13.3-amd64.tar.bz2 52302259 SHA256 71001e89b1ad4808108e533f3c089f6357569e7e9401b8588483a1cd71bf5a6f SHA512 5dbd92b6322bb8fe6131e01062ab9b0fa955093c11138a5107f89fd715e9010c41591893d0ba59f91b08e087644d54be40c893e29a47ccd7ea4b4c321821508f WHIRLPOOL c63085bd06047402268ed0a58f5df9ab382efb0eb0539734a18b18eb8acd9743514fd9d8bae68ab1444c2e94dca6ebffe226c55bbba82fde9527a815c11e88ea
|
||||||
DIST icedtea-bin-core-6.1.13.3-x86.tar.bz2 53179290 SHA256 d76614481985dd35818bd269157e08d8eb1e2e7749048005b8cd3cbcb5f63474 SHA512 f93e63421f3d2e61629df4f15d0bc9dc972fa60d5607d764a1e9fa7ba2826dfbdd05e25b8ee04d49b21721fc7333c2a37270ffaba12417a94cbf14cc7fdbc73f WHIRLPOOL 92520d35af88f0f9ba1f758abf9f25893912e8982bfe2791b623b22a1037625ffb834ed637771dd642291ccc81b130fa02d21d5d101aecee0c4d971b3bdcb19d
|
DIST icedtea-bin-core-6.1.13.3-x86.tar.bz2 53179290 SHA256 d76614481985dd35818bd269157e08d8eb1e2e7749048005b8cd3cbcb5f63474 SHA512 f93e63421f3d2e61629df4f15d0bc9dc972fa60d5607d764a1e9fa7ba2826dfbdd05e25b8ee04d49b21721fc7333c2a37270ffaba12417a94cbf14cc7fdbc73f WHIRLPOOL 92520d35af88f0f9ba1f758abf9f25893912e8982bfe2791b623b22a1037625ffb834ed637771dd642291ccc81b130fa02d21d5d101aecee0c4d971b3bdcb19d
|
||||||
DIST icedtea-bin-core-7.2.4.3-amd64.tar.bz2 55422804 SHA256 ca7718a23a71c9dfb545b7823f571e3fc3e1beaa71765dc393ead9083a26397f SHA512 f5cda0d975d44b4f3d4e6d9014a509d2e2efc4e4615246db36bde564f8c30cb22dea728bba3b6e1f7fe875341e28d1707b3912ac813a4271b2740c22c82b740c WHIRLPOOL 123e5ddefddaf4e1e628a630efbc37cdf8d84df4119b324fb62738cb372eda417dbb469bbba846f930c1b1a8904f1eac0bbddaf4fc9447f5e665c2283ca57d0a
|
|
||||||
DIST icedtea-bin-core-7.2.4.3-x86.tar.bz2 56381315 SHA256 ca1534b55d0116ddd1d67ac28c817768a92c4f1cad108bb930c2d424180e7c14 SHA512 9ce6c476e07d84ee9a6cb065d31d94dfb8f95575df87194f038351a4443ba8d32edb0e8ea450bb1cd573581fc9beaa56908076486250d5d45ce6d16223e641b9 WHIRLPOOL 204dea72b422d00e9de04248296340662a373598e52b40b343d2a2ddb7c3a3c758da9e9005b3148cf2bcba668d1f9a98933f56a05783e6a135df21f5d46da595
|
|
||||||
DIST icedtea-bin-core-7.2.4.7-amd64.tar.bz2 55515951 SHA256 e5320cec74ebf570e1d1adeb4b2f122208448a96b5cedbd7521579e42c8cac3c SHA512 b9a4960497b41529162ab85da59c4179e381ace39ec2b4b21393e2d88008b97de32d92ecc3290af0407e3286dd472fb4e63c0624d660e04ab594ac579ce227b7 WHIRLPOOL e688e8e3633c2f526269b00b6661b4e1a250c454ea4eb94aac0e78d1d7d4b607643c219fdeda05804f3fa38aa2e5a03109343819218bc953b02da29970ac13f8
|
DIST icedtea-bin-core-7.2.4.7-amd64.tar.bz2 55515951 SHA256 e5320cec74ebf570e1d1adeb4b2f122208448a96b5cedbd7521579e42c8cac3c SHA512 b9a4960497b41529162ab85da59c4179e381ace39ec2b4b21393e2d88008b97de32d92ecc3290af0407e3286dd472fb4e63c0624d660e04ab594ac579ce227b7 WHIRLPOOL e688e8e3633c2f526269b00b6661b4e1a250c454ea4eb94aac0e78d1d7d4b607643c219fdeda05804f3fa38aa2e5a03109343819218bc953b02da29970ac13f8
|
||||||
DIST icedtea-bin-core-7.2.4.7-x86.tar.bz2 56434087 SHA256 50ee385f8f697ed0e69bf31fb87c30c601b024fbc335afacef147130188d9b56 SHA512 77eb04cfc2182a040e12e68e32de3c9c9e75bbaa4946586a501275d367d8d8f9a850e42c1bd28a7271b3223ca8798b85bd2a09602050f9b6951415cbaa9e756d WHIRLPOOL 7cd7ac10a08ce1bcc627e24b1de62dbab3749c6579e153ec3be54e157d90f7035f90aeef5852bc97e48c919d85f9c74552b9e11cd30d78cd766fc26ea85e6a71
|
DIST icedtea-bin-core-7.2.4.7-x86.tar.bz2 56434087 SHA256 50ee385f8f697ed0e69bf31fb87c30c601b024fbc335afacef147130188d9b56 SHA512 77eb04cfc2182a040e12e68e32de3c9c9e75bbaa4946586a501275d367d8d8f9a850e42c1bd28a7271b3223ca8798b85bd2a09602050f9b6951415cbaa9e756d WHIRLPOOL 7cd7ac10a08ce1bcc627e24b1de62dbab3749c6579e153ec3be54e157d90f7035f90aeef5852bc97e48c919d85f9c74552b9e11cd30d78cd766fc26ea85e6a71
|
||||||
DIST icedtea-bin-doc-6.1.12.7.tar.bz2 11508419 SHA256 34d0691a6c1012988c86c2704f7df9641d2dc6daadbbbc1f8bc100c043798127 SHA512 607349a9f533f51434ad9d54c6e9bcf17edc2eb05a593f627164067430d4dba3e8bfd7f983e39e2132a264a66cc200eb393edce3f19516d1a286c9988176617e WHIRLPOOL 2a67b4fc41822a9895c1325c7fe8208a3e71d90e76ca074238bb608f6cdf60d7afc65c4611fe7b44226ce78f61d76c299f9822ede446fc8b9df71bd9d6fcd76d
|
|
||||||
DIST icedtea-bin-doc-6.1.13.3.tar.bz2 11511333 SHA256 3d84a2e524844ff894d69c652e4a5514c001c8a2542c2bd54c7f26bc8bbedcd3 SHA512 f690220ab69938528df9dde37375a4ad86ba2cef01220137b6f146f2d19ad9490e08387c001738e2c371b0e09cea1f32f184fa59e6e230daf4edfe9883fb2181 WHIRLPOOL 674f6e9f575bddeb1a1a679e69f06cc593d467881e882ee0bae9403b51ef26ed0010a46c5e22f38246cf617b2c05e5b69c54efff6f532941edf8621ca9eb593d
|
DIST icedtea-bin-doc-6.1.13.3.tar.bz2 11511333 SHA256 3d84a2e524844ff894d69c652e4a5514c001c8a2542c2bd54c7f26bc8bbedcd3 SHA512 f690220ab69938528df9dde37375a4ad86ba2cef01220137b6f146f2d19ad9490e08387c001738e2c371b0e09cea1f32f184fa59e6e230daf4edfe9883fb2181 WHIRLPOOL 674f6e9f575bddeb1a1a679e69f06cc593d467881e882ee0bae9403b51ef26ed0010a46c5e22f38246cf617b2c05e5b69c54efff6f532941edf8621ca9eb593d
|
||||||
DIST icedtea-bin-doc-7.2.4.3.tar.bz2 12537197 SHA256 0224d2c77cb7e7c4ad6c347e2fec45f33c1f5284292e049f8ba5c4997e653feb SHA512 7f89c5b505fdf2b9660b07f75a1cb78c9f65800fedf5cd82871da48cd2c581ee9a01c3b11da226211571f51d9f00e73a9c97157305c3c757255eb28b7fc9abbd WHIRLPOOL 174ac81168c3bbafce848f6fe013dae2ea4716f43f5cceec8145b2905eb054cd619999722920d1d1c98850badf7b2c38c22c21f1b238bccbfeb6d1f426f52309
|
|
||||||
DIST icedtea-bin-doc-7.2.4.7.tar.bz2 12540099 SHA256 88699d28a24066afe6d0e6cd376ae771c417367d16bb8f04ee515dcdc9d0dd14 SHA512 2b54a70f824e2a1fa575a7b162695c22732eb55d33f68d113a5cc0b90d4c99bc8341c9ec272f26f43d20a065eaba16b7401aa5d54e8f37024685ccde439a0283 WHIRLPOOL 5fdc0d5d400a662d46e9c74444860991583530a8483861305c2348eb4bbb597102e20ad6ed61fca4f975219af59c8222a1b306e03de2c8cea930ddd57cdc8c58
|
DIST icedtea-bin-doc-7.2.4.7.tar.bz2 12540099 SHA256 88699d28a24066afe6d0e6cd376ae771c417367d16bb8f04ee515dcdc9d0dd14 SHA512 2b54a70f824e2a1fa575a7b162695c22732eb55d33f68d113a5cc0b90d4c99bc8341c9ec272f26f43d20a065eaba16b7401aa5d54e8f37024685ccde439a0283 WHIRLPOOL 5fdc0d5d400a662d46e9c74444860991583530a8483861305c2348eb4bbb597102e20ad6ed61fca4f975219af59c8222a1b306e03de2c8cea930ddd57cdc8c58
|
||||||
DIST icedtea-bin-examples-6.1.12.7-amd64.tar.bz2 2168381 SHA256 c205526e52628af3337786ba0f6e168069a319636e9861a7edbe0e72070c0515 SHA512 9c4a84951df5412bfb62e80dc48c838fcf45afc1f57cb831bb1fd7937609b67e2455496fcb6dd3e330d43f04d155f158a067a69c75285cec03314aa1e6d2b8ee WHIRLPOOL 87f4b104ac741e75c3034f718842dac586cb4858de2cd460e24ee3747a4e615183d6561e7eccdf5c65396a393e4391425d83e9b2827fed9293462391a4edc001
|
|
||||||
DIST icedtea-bin-examples-6.1.12.7-x86.tar.bz2 2134521 SHA256 fb5a51910b04f25c37e71f02e9af35ca81e597b3de68d78c91bcdb16fdf1f1ac SHA512 e64419a06bbd185e9fc66242b97b002c8f60457b6270a1f529ba93548c0bd416f312c55e48b3e2445696c40c7bfe18d9b2b917f96b50bcf9551bc1cecc637435 WHIRLPOOL d82c9ff67bc14e796da7add3e67c7f1de18cd6faa4f77f6def46ef689048fa218ad5ee633268698aa4ee36445b566c981d242f03623254edaa9d136f09ad1199
|
|
||||||
DIST icedtea-bin-examples-6.1.13.3-amd64.tar.bz2 2168205 SHA256 6756045cb018acf3af506b06a48934857daafcc1d01799bc25a6d9609eadf628 SHA512 a2f72a508946a0b8afbc11d6d06600a3548c0f1f6bf46b6e3518fae429b5b7f2dc8d3484af522057b1d2eb8841db97cbfb5123563fd7f930ff8a931849dea586 WHIRLPOOL 9ec5aa3a89529a6e4ed818370447a3993f5026e416c8313fa1203c4dd1472cf028d6206dcf4ba0420c6767fdccac722b29c538b4296ac04551e130d1270e5a5f
|
DIST icedtea-bin-examples-6.1.13.3-amd64.tar.bz2 2168205 SHA256 6756045cb018acf3af506b06a48934857daafcc1d01799bc25a6d9609eadf628 SHA512 a2f72a508946a0b8afbc11d6d06600a3548c0f1f6bf46b6e3518fae429b5b7f2dc8d3484af522057b1d2eb8841db97cbfb5123563fd7f930ff8a931849dea586 WHIRLPOOL 9ec5aa3a89529a6e4ed818370447a3993f5026e416c8313fa1203c4dd1472cf028d6206dcf4ba0420c6767fdccac722b29c538b4296ac04551e130d1270e5a5f
|
||||||
DIST icedtea-bin-examples-6.1.13.3-x86.tar.bz2 2134637 SHA256 82ebbc95be9a5648682282d76ebac2dd16bf51812c42baf48ef162b2da091461 SHA512 09c507c9359e28e5fa9fa03ab5759d86fcae26f3516a27cefc391cbc28338bf5fb6270f4cbef06cb3c9225618bc9d5c8fcdef7302d7cca1ec29787767036c44c WHIRLPOOL fd50454ad4a0f9a2e453a34dc1871cc1cdbdc569d1044fe0187327379da7b0f7230442a74dbbb6505ad58970a56955ab53b839f96dbf1fd4aade737a2a5df797
|
DIST icedtea-bin-examples-6.1.13.3-x86.tar.bz2 2134637 SHA256 82ebbc95be9a5648682282d76ebac2dd16bf51812c42baf48ef162b2da091461 SHA512 09c507c9359e28e5fa9fa03ab5759d86fcae26f3516a27cefc391cbc28338bf5fb6270f4cbef06cb3c9225618bc9d5c8fcdef7302d7cca1ec29787767036c44c WHIRLPOOL fd50454ad4a0f9a2e453a34dc1871cc1cdbdc569d1044fe0187327379da7b0f7230442a74dbbb6505ad58970a56955ab53b839f96dbf1fd4aade737a2a5df797
|
||||||
DIST icedtea-bin-examples-7.2.4.3-amd64.tar.bz2 2337892 SHA256 17d9f0f9a9c7708f18276e826b153c6dc81fd26395f74ffad95f12b40eea9c5b SHA512 49631f1c51eb4e166066fbc1f5cd731ae86f2fc8711c0251ced127fcbdc6305e7f95ecb109face22609aa610397c096f272065012791ac06549254f1317fb2b4 WHIRLPOOL 32189faf1db2740bff49f569a1823aa4d339d0892adc0bd5b84f418907089e1675dc030266a237a05021913480e9bc006c335533468fc1e38fd3bc6f512875a5
|
|
||||||
DIST icedtea-bin-examples-7.2.4.3-x86.tar.bz2 2316272 SHA256 157eedd1d3f1099361dfac766031b04b4196f49fa67868d5853e1718f0bbea44 SHA512 1ee7bfee0fbe22916f233ef9249e235b8cd3875947148a0c4899d59a845c1b1a9484bdb5c07c7252233d2d45d5d9a4da63e72550fbaae3b46f9ec4c81cbb5163 WHIRLPOOL 669ea44dd6f6565158a2d49c676fc8fe40a32cecc190db32178a170eab4d535ed5a44d8cbea6eb5bd6b4f91e4e65d340f8152f8f9a5971399e428f2f1b032267
|
|
||||||
DIST icedtea-bin-examples-7.2.4.7-amd64.tar.bz2 2339136 SHA256 35e8ff176bc68b616f2bf264fdc3b7689e85f27d4bd6eaaefb00f75aed955632 SHA512 ac32ff46161f5f3ad00cd8d680a54672bd9cbfc39ce75ba502a68fc9cad90f0328dd0aac15710fbfc112a66b54efd5a2a00f9ab937b0bfa0b964cf5d659c08b5 WHIRLPOOL 46f1febfd9a7928218d113161f9a637928b608fe01d165e6fc1fc816e6add4fd54846a70a1c32b941cf5f3e20877dd91cdeb67bdf1243542ecf796a55c6000c2
|
DIST icedtea-bin-examples-7.2.4.7-amd64.tar.bz2 2339136 SHA256 35e8ff176bc68b616f2bf264fdc3b7689e85f27d4bd6eaaefb00f75aed955632 SHA512 ac32ff46161f5f3ad00cd8d680a54672bd9cbfc39ce75ba502a68fc9cad90f0328dd0aac15710fbfc112a66b54efd5a2a00f9ab937b0bfa0b964cf5d659c08b5 WHIRLPOOL 46f1febfd9a7928218d113161f9a637928b608fe01d165e6fc1fc816e6add4fd54846a70a1c32b941cf5f3e20877dd91cdeb67bdf1243542ecf796a55c6000c2
|
||||||
DIST icedtea-bin-examples-7.2.4.7-x86.tar.bz2 2316379 SHA256 805c8b786c5f6bbdba0122f91ee2ecb103aeb5abd6ca98d9e915a14703b18b45 SHA512 9bf8339c70a033c84762032ea6bb694a810f7318105c6159c0b8bef7f335dba79b25c600313426328fe50625a46bcd11266dd8087650ad86d22b18665d4e207b WHIRLPOOL 25aabed258575ed67f1c2d241cb72db102f9bcd75b7352fa8af3175a822e7b913335f734b4a78c91e6833d1afc2b23bdcd6b968a9f1ff024f09993fc1bb24d5f
|
DIST icedtea-bin-examples-7.2.4.7-x86.tar.bz2 2316379 SHA256 805c8b786c5f6bbdba0122f91ee2ecb103aeb5abd6ca98d9e915a14703b18b45 SHA512 9bf8339c70a033c84762032ea6bb694a810f7318105c6159c0b8bef7f335dba79b25c600313426328fe50625a46bcd11266dd8087650ad86d22b18665d4e207b WHIRLPOOL 25aabed258575ed67f1c2d241cb72db102f9bcd75b7352fa8af3175a822e7b913335f734b4a78c91e6833d1afc2b23bdcd6b968a9f1ff024f09993fc1bb24d5f
|
||||||
DIST icedtea-bin-libpng15-6.1.12.7-amd64.tar.bz2 19179 SHA256 7a817004abe0c79f2dffbf71fedddda217a195da97dd29ee50f5a22b1bb93004 SHA512 72e101e562965febc8f4b79c9f2ca8b550b6a44cd3213efbe9f869b11aa8113638de164edeeda0f3370beb9c0d7e4407a8430527cdd36b2dc5bce7d93830da22 WHIRLPOOL 25b2fc5c02491c5638b0446a64a03fe4ed95c4d385244cba10183e566060a8bf2e4ebda59b05902305e3d94e972ec048bd7daf2e314d17d5e2d7d1737a2ea03c
|
|
||||||
DIST icedtea-bin-libpng15-6.1.12.7-x86.tar.bz2 17545 SHA256 9fa08796b0720a30b3e3c7a5389cb4f9fbf5f526c71ef9fa00d3e74c474b0ad6 SHA512 566f942a8cc1448e10dbbd07e7fb160476b0aa7c216c6b16bad279472213261b6e63bbb5a093451cca59171c4717ab6ed3408f303a8fe5668693cccb3a2eb598 WHIRLPOOL a05cbddf26bb4f537db2caf8f76ecdbddcd258e4484b229e1bb9fcc17357fe19b7e98ba741596d5a1da20f1903207336e06541d65ab90c3a255f8ed70cd926bc
|
|
||||||
DIST icedtea-bin-libpng15-7.2.4.3-amd64.tar.bz2 19296 SHA256 2e70c3a8e6bdeb99a6cdb5f0ab51882928fe8cd17c76ebc98cb57495817e2857 SHA512 5e36d99bde62b2baba67b7148675f0ab149d439aa772cf8980754d45ef3d8f47a6d187d61379618e395681657e3af2983f322fc4610a6f6df46921f1572f997c WHIRLPOOL 57af32d50e07cb7d6b760b44a88579d4d0c740c36f5b73563b293c371c003eef67995a13f8a21b2e396d72c469f816a0cab2e93a15d267bd04f89c9e01b32b9b
|
|
||||||
DIST icedtea-bin-libpng15-7.2.4.3-x86.tar.bz2 17595 SHA256 fc24cf5b78c15ddc11cf6eabeb6b8a0cf31afc643d8f89a30ce975c5ecbe415b SHA512 19b027d4ffdea84af41fab2a1b579b013974314b929f4d100096247a3a7e1649ec018efa5890dedd7d0596da6baf3cd545b76e8886638c5f1697c7374269e557 WHIRLPOOL 411ed66355f564196a693734ded8c687903222790f256b4b6b784232dd73e9cb32075de6f60e54fa7469be244c9eac1379f92e52bc0f95647b020804d90e298b
|
|
||||||
DIST icedtea-bin-nsplugin-6.1.12.7-amd64.tar.bz2 1021916 SHA256 9393839b33b5fd432640ed24b7bd5c2705915405c90e255baed2f5585e11c479 SHA512 4f87a509709991e26a26c9e66bba4b603a9742afc7d38bf7bc6c7c926e513a66c6a73eb51dd2ced419808364f2a080741a8bf1767ac1145c355d70f14d2b166f WHIRLPOOL ab7df3e9a48cfa1494f5a7c3970f614bfc4ad1f513ebd440eaea3804b422fd9f524ff2ef473d315fb6d385279dedc6f7179b421b743195168d2df5ea5a005339
|
|
||||||
DIST icedtea-bin-nsplugin-6.1.12.7-x86.tar.bz2 1017578 SHA256 b6816b7e7d896a00d33c5d23c86ff5ab0719d2b88a047d9fbebe2058a5a1c993 SHA512 ebb458d32ad04a8093cb7a6f8adb55355cf9ae6871ded869d4bdecb95e04ee610603009f7cf14d3c3e5e28d08611a69d0f052f1043ef9c82bd174870dd748c1f WHIRLPOOL 935af01db7ea1454af94d6aae3cd2ae271df861b75e64d777f2c1c57342aee2bd7bdebc385dcb0594575d720056127edc4530b368c80dd3b451be3d095157912
|
|
||||||
DIST icedtea-bin-nsplugin-6.1.13.3-amd64.tar.bz2 1021983 SHA256 43842371bca084a09214d1315dad3068c7e751338f054fecb76978881f19ef28 SHA512 df78a640067b04ea99883c65d84b052f09eec8ec6528d0cbf6e64485342ef94abca6c96bc5d6058eae459855ae3dcf5c7b45ae7a8db820ceadbdae188c89876b WHIRLPOOL 814196b7e4518d002ccdbc0061527f32ea4e715bc44855e5fc9a16d3274476f640d14f00fc464c6d0a4f1205dffff008591141727aaaf2099b30b335415dd2d1
|
DIST icedtea-bin-nsplugin-6.1.13.3-amd64.tar.bz2 1021983 SHA256 43842371bca084a09214d1315dad3068c7e751338f054fecb76978881f19ef28 SHA512 df78a640067b04ea99883c65d84b052f09eec8ec6528d0cbf6e64485342ef94abca6c96bc5d6058eae459855ae3dcf5c7b45ae7a8db820ceadbdae188c89876b WHIRLPOOL 814196b7e4518d002ccdbc0061527f32ea4e715bc44855e5fc9a16d3274476f640d14f00fc464c6d0a4f1205dffff008591141727aaaf2099b30b335415dd2d1
|
||||||
DIST icedtea-bin-nsplugin-6.1.13.3-x86.tar.bz2 1017653 SHA256 e64016b4fe16ed4fad08eac393557e07a25682b030953f33d4b753c1c1320586 SHA512 8561e3f0933c46b3093a61bec1ff65da1c9659a90e1d11d318c71f2bb5ca934cc53abc318f307de1841ac170b67e6dd8ff2ce955c4e84833f6d25ce8f0411d00 WHIRLPOOL 407659f02b9062f482f45706241eb2d418fea1a90813b214b32ada9db0ee1dbfbc2630ec1e72fc4b025fc9951245137c35186f1ef3837d0936f20d66d63dc28f
|
DIST icedtea-bin-nsplugin-6.1.13.3-x86.tar.bz2 1017653 SHA256 e64016b4fe16ed4fad08eac393557e07a25682b030953f33d4b753c1c1320586 SHA512 8561e3f0933c46b3093a61bec1ff65da1c9659a90e1d11d318c71f2bb5ca934cc53abc318f307de1841ac170b67e6dd8ff2ce955c4e84833f6d25ce8f0411d00 WHIRLPOOL 407659f02b9062f482f45706241eb2d418fea1a90813b214b32ada9db0ee1dbfbc2630ec1e72fc4b025fc9951245137c35186f1ef3837d0936f20d66d63dc28f
|
||||||
DIST icedtea-bin-src-6.1.12.7.tar.bz2 41151777 SHA256 6559da164ed557aab7b5952932f58e3d948d9a298361f40955d401b950d09f0c SHA512 e8b0a4b756f38e249f4dbc27f12676f6714b86a018d014e777d1f5c7b5ef50cb42bec396822b70db6483bc988e9afecdbbbf20ae42acddc37e95ab19ea2f2f97 WHIRLPOOL 36a5617a83ebaca4711d04ce87a9a72b85f0a3d6b2dcdb4acb926b41054ef6b548c809f87a5b1e4677c3d8358c10b40b235c22262581ce02c574e1844cc23482
|
|
||||||
DIST icedtea-bin-src-6.1.13.3.tar.bz2 41192099 SHA256 801380a78185d0b2b4035d876e9e73f4d6c073732c8b369f191638a55df563bb SHA512 d368bdeace6cf364db6394bc5dfe5b0081f9209ad98c057a5fe2096d227b82baca2317b2b5cc885cd210b1d1b4ee8fe44aa25678ee875340a94e11de76643c71 WHIRLPOOL 71003e4f84311260da1c814ee07e7a531ae98c287c77936b3f35379b3e49fc50782d9f8c2f6ac57dd92bb66374d7f6b58ae4088d2cea570bd7ccacdb330feb38
|
DIST icedtea-bin-src-6.1.13.3.tar.bz2 41192099 SHA256 801380a78185d0b2b4035d876e9e73f4d6c073732c8b369f191638a55df563bb SHA512 d368bdeace6cf364db6394bc5dfe5b0081f9209ad98c057a5fe2096d227b82baca2317b2b5cc885cd210b1d1b4ee8fe44aa25678ee875340a94e11de76643c71 WHIRLPOOL 71003e4f84311260da1c814ee07e7a531ae98c287c77936b3f35379b3e49fc50782d9f8c2f6ac57dd92bb66374d7f6b58ae4088d2cea570bd7ccacdb330feb38
|
||||||
DIST icedtea-bin-src-7.2.4.3.tar.bz2 41348380 SHA256 e9944fac46c7333c4c5065f346f0e181591c5f38031cae50cc4668118721f823 SHA512 ca7e7e07c8f942de9129e9c8cb613bb634cee95ff6a490bdd12d953aeb7fea1096b3cf827cceff345194f7059f777c38e39c9d2a4ab72391f1c938391fd39058 WHIRLPOOL 142ff86fcdbc3c3a0d3ed6b8d74956e774390bf424c24b0a150e3ee167351b017338802e6a45713156799e341821c65b2bbefeaf19a73c04d860594c4facf7c2
|
|
||||||
DIST icedtea-bin-src-7.2.4.7.tar.bz2 41388334 SHA256 4e6c1320d2c63727b521355018e024ad1f60c96e3ef7ca6f57faaf34aed83c47 SHA512 44a284b857a100b44ef5e7cbce50304f7f11bfeaf3149f85a89e8ae2f83c5e7e571b6bf4504581c55afcc6a5be272714638175b9884c785f3e909d4e567c01d1 WHIRLPOOL 6d0a41c00e52a4a3fe07f8ebf1630c6e007c2f7cc7b3b68c7130aecc951cc010abfab06cfb21d56867ff4260e52ee4b60525c8525d4ba9345580aaf2f0510e24
|
DIST icedtea-bin-src-7.2.4.7.tar.bz2 41388334 SHA256 4e6c1320d2c63727b521355018e024ad1f60c96e3ef7ca6f57faaf34aed83c47 SHA512 44a284b857a100b44ef5e7cbce50304f7f11bfeaf3149f85a89e8ae2f83c5e7e571b6bf4504581c55afcc6a5be272714638175b9884c785f3e909d4e567c01d1 WHIRLPOOL 6d0a41c00e52a4a3fe07f8ebf1630c6e007c2f7cc7b3b68c7130aecc951cc010abfab06cfb21d56867ff4260e52ee4b60525c8525d4ba9345580aaf2f0510e24
|
||||||
|
@ -1,167 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea-bin/icedtea-bin-6.1.12.7.ebuild,v 1.4 2014/05/17 15:19:09 swift Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit java-vm-2 multilib prefix
|
|
||||||
|
|
||||||
dist="http://dev.gentoo.org/~caster/distfiles/"
|
|
||||||
TARBALL_VERSION="${PVR}"
|
|
||||||
PLUGIN_VERSION="${PVR}"
|
|
||||||
|
|
||||||
DESCRIPTION="A Gentoo-made binary build of the IcedTea JDK"
|
|
||||||
HOMEPAGE="http://icedtea.classpath.org"
|
|
||||||
SRC_URI="
|
|
||||||
amd64? ( ${dist}/${PN}-core-${TARBALL_VERSION}-amd64.tar.bz2
|
|
||||||
${dist}/${PN}-libpng15-${TARBALL_VERSION}-amd64.tar.bz2 )
|
|
||||||
x86? ( ${dist}/${PN}-core-${TARBALL_VERSION}-x86.tar.bz2
|
|
||||||
${dist}/${PN}-libpng15-${TARBALL_VERSION}-x86.tar.bz2 )
|
|
||||||
doc? ( ${dist}/${PN}-doc-${TARBALL_VERSION}.tar.bz2 )
|
|
||||||
examples? (
|
|
||||||
amd64? ( ${dist}/${PN}-examples-${TARBALL_VERSION}-amd64.tar.bz2 )
|
|
||||||
x86? ( ${dist}/${PN}-examples-${TARBALL_VERSION}-x86.tar.bz2 )
|
|
||||||
)
|
|
||||||
nsplugin? (
|
|
||||||
amd64? ( ${dist}/${PN}-nsplugin-${PLUGIN_VERSION}-amd64.tar.bz2 )
|
|
||||||
x86? ( ${dist}/${PN}-nsplugin-${PLUGIN_VERSION}-x86.tar.bz2 )
|
|
||||||
)
|
|
||||||
source? ( ${dist}/${PN}-src-${TARBALL_VERSION}.tar.bz2 )"
|
|
||||||
|
|
||||||
LICENSE="GPL-2-with-linking-exception"
|
|
||||||
SLOT="6"
|
|
||||||
KEYWORDS="-* amd64 x86"
|
|
||||||
|
|
||||||
IUSE="+X +alsa cjk +cups doc examples nsplugin selinux source"
|
|
||||||
REQUIRED_USE="nsplugin? ( X )"
|
|
||||||
RESTRICT="strip"
|
|
||||||
|
|
||||||
# 423161
|
|
||||||
QA_PREBUILT="opt/.*"
|
|
||||||
|
|
||||||
ALSA_COMMON_DEP="
|
|
||||||
>=media-libs/alsa-lib-1.0.20"
|
|
||||||
CUPS_COMMON_DEP="
|
|
||||||
>=net-print/cups-1.4"
|
|
||||||
X_COMMON_DEP="
|
|
||||||
>=dev-libs/glib-2.32:2
|
|
||||||
>=media-libs/freetype-2.4.9:2
|
|
||||||
>=x11-libs/gtk+-2.24:2
|
|
||||||
>=x11-libs/libX11-1.4
|
|
||||||
>=x11-libs/libXext-1.3
|
|
||||||
>=x11-libs/libXi-1.6
|
|
||||||
>=x11-libs/libXtst-1.2"
|
|
||||||
|
|
||||||
COMMON_DEP="
|
|
||||||
>=media-libs/giflib-4.1.6-r1
|
|
||||||
>=media-libs/libpng-1.5:0=
|
|
||||||
>=sys-devel/gcc-4.5.4
|
|
||||||
>=sys-libs/glibc-2.15
|
|
||||||
>=sys-libs/zlib-1.2.3-r1
|
|
||||||
|| ( virtual/jpeg:62 media-libs/jpeg:62 )
|
|
||||||
nsplugin? (
|
|
||||||
>=dev-libs/atk-1.30.0
|
|
||||||
>=dev-libs/nspr-4.8
|
|
||||||
>=x11-libs/cairo-1.8.8
|
|
||||||
>=x11-libs/pango-1.24.5
|
|
||||||
|
|
||||||
)
|
|
||||||
selinux? ( sec-policy/selinux-java )"
|
|
||||||
|
|
||||||
RDEPEND="${COMMON_DEP}
|
|
||||||
X? (
|
|
||||||
${X_COMMON_DEP}
|
|
||||||
media-fonts/dejavu
|
|
||||||
cjk? (
|
|
||||||
media-fonts/arphicfonts
|
|
||||||
media-fonts/baekmuk-fonts
|
|
||||||
media-fonts/lklug
|
|
||||||
media-fonts/lohit-fonts
|
|
||||||
media-fonts/sazanami
|
|
||||||
)
|
|
||||||
)
|
|
||||||
alsa? ( ${ALSA_COMMON_DEP} )
|
|
||||||
cups? ( ${CUPS_COMMON_DEP} )"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
unpack ${A}
|
|
||||||
|
|
||||||
if has_version '=media-libs/libpng-1.5*:0'; then
|
|
||||||
einfo "Installing libpng-1.5 ABI version"
|
|
||||||
local arch=${ARCH}
|
|
||||||
use x86 && arch=i386
|
|
||||||
mv -v ${PN}-libpng15-${PV}/jre/lib/${arch}/*.so ${P}/jre/lib/${arch} || die
|
|
||||||
else
|
|
||||||
einfo "Installing libpng-1.6 ABI version"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local dest="/opt/${P}"
|
|
||||||
local ddest="${ED}/${dest}"
|
|
||||||
dodir "${dest}"
|
|
||||||
|
|
||||||
# Ensures HeadlessGraphicsEnvironment is used.
|
|
||||||
if ! use X; then
|
|
||||||
rm -r jre/lib/$(get_system_arch)/xawt || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# doins can't handle symlinks.
|
|
||||||
cp -pRP bin include jre lib man "${ddest}" || die
|
|
||||||
|
|
||||||
# Remove on next bump as the needed marks are already set by icedtea ebuild.
|
|
||||||
java-vm_set-pax-markings "${ddest}"
|
|
||||||
|
|
||||||
dodoc ../doc/{ASSEMBLY_EXCEPTION,THIRD_PARTY_README}
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
dohtml -r ../doc/html/*
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use examples; then
|
|
||||||
cp -pRP share/{demo,sample} "${ddest}" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use source; then
|
|
||||||
cp src.zip "${ddest}" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use nsplugin; then
|
|
||||||
cp -pPR ../icedtea-web-bin-${SLOT} "${ddest}"/.. || die
|
|
||||||
install_mozilla_plugin "/opt/icedtea-web-bin-${SLOT}/$(get_libdir)/IcedTeaPlugin.so"
|
|
||||||
docinto icedtea-web
|
|
||||||
dodoc ../doc/icedtea-web/*
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Remove after next bump, handled by icedtea ebuild. Bug 390663
|
|
||||||
cp "${FILESDIR}"/fontconfig.Gentoo.properties.src "${T}"/fontconfig.Gentoo.properties || die
|
|
||||||
eprefixify "${T}"/fontconfig.Gentoo.properties
|
|
||||||
insinto "${dest}"/jre/lib
|
|
||||||
doins "${T}"/fontconfig.Gentoo.properties
|
|
||||||
|
|
||||||
set_java_env
|
|
||||||
java-vm_revdep-mask "${dest}"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
if has_version "<=dev-java/icedtea-bin-1.10.4:${SLOT}"; then
|
|
||||||
# portage would preserve the symlink otherwise, related to bug #384397
|
|
||||||
rm -f "${EROOT}/usr/lib/jvm/icedtea6-bin"
|
|
||||||
elog "To unify the layout and simplify scripts, the identifier of Icedtea-bin-6*"
|
|
||||||
elog "has changed from 'icedtea6-bin' to 'icedtea-bin-6' starting from version 6.1.10.4"
|
|
||||||
elog "If you had icedtea6-bin as system VM, the change should be automatic, however"
|
|
||||||
elog "build VM settings in /etc/java-config-2/build/jdk.conf are not changed"
|
|
||||||
elog "and the same holds for any user VM settings. Sorry for the inconvenience."
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
# Set as default VM if none exists
|
|
||||||
java-vm-2_pkg_postinst
|
|
||||||
|
|
||||||
if use nsplugin && [[ -z ${REPLACING_VERSIONS} ]]; then
|
|
||||||
elog "The icedtea-bin-${SLOT} browser plugin can be enabled using eselect java-nsplugin"
|
|
||||||
elog "Note that the plugin works only in browsers based on xulrunner-1.9.1+"
|
|
||||||
elog "such as Firefox 3.5+ and recent Chromium versions."
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,152 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea-bin/icedtea-bin-7.2.4.3.ebuild,v 1.2 2014/05/17 15:19:09 swift Exp $
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit java-vm-2 multilib prefix versionator
|
|
||||||
|
|
||||||
dist="http://dev.gentoo.org/~caster/distfiles/"
|
|
||||||
TARBALL_VERSION="${PV}"
|
|
||||||
PLUGIN_VERSION="${PVR}"
|
|
||||||
|
|
||||||
DESCRIPTION="A Gentoo-made binary build of the IcedTea JDK"
|
|
||||||
HOMEPAGE="http://icedtea.classpath.org"
|
|
||||||
SRC_URI="
|
|
||||||
amd64? ( ${dist}/${PN}-core-${TARBALL_VERSION}-amd64.tar.bz2
|
|
||||||
${dist}/${PN}-libpng15-${TARBALL_VERSION}-amd64.tar.bz2 )
|
|
||||||
x86? ( ${dist}/${PN}-core-${TARBALL_VERSION}-x86.tar.bz2
|
|
||||||
${dist}/${PN}-libpng15-${TARBALL_VERSION}-x86.tar.bz2 )
|
|
||||||
doc? ( ${dist}/${PN}-doc-${TARBALL_VERSION}.tar.bz2 )
|
|
||||||
examples? (
|
|
||||||
amd64? ( ${dist}/${PN}-examples-${TARBALL_VERSION}-amd64.tar.bz2 )
|
|
||||||
x86? ( ${dist}/${PN}-examples-${TARBALL_VERSION}-x86.tar.bz2 )
|
|
||||||
)
|
|
||||||
source? ( ${dist}/${PN}-src-${TARBALL_VERSION}.tar.bz2 )"
|
|
||||||
|
|
||||||
LICENSE="GPL-2-with-linking-exception"
|
|
||||||
SLOT="7"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86"
|
|
||||||
|
|
||||||
IUSE="+X +alsa cjk +cups doc examples nsplugin selinux source"
|
|
||||||
REQUIRED_USE="nsplugin? ( X )"
|
|
||||||
RESTRICT="strip"
|
|
||||||
|
|
||||||
# 423161
|
|
||||||
QA_PREBUILT="opt/.*"
|
|
||||||
|
|
||||||
ALSA_COMMON_DEP="
|
|
||||||
>=media-libs/alsa-lib-1.0.20"
|
|
||||||
CUPS_COMMON_DEP="
|
|
||||||
>=net-print/cups-1.4"
|
|
||||||
X_COMMON_DEP="
|
|
||||||
>=dev-libs/atk-1.30.0
|
|
||||||
>=dev-libs/glib-2.20.5:2
|
|
||||||
>=media-libs/fontconfig-2.6.0-r2:1.0
|
|
||||||
>=media-libs/freetype-2.4.9:2
|
|
||||||
>=x11-libs/cairo-1.8.8
|
|
||||||
x11-libs/gdk-pixbuf:2
|
|
||||||
>=x11-libs/gtk+-2.24:2
|
|
||||||
>=x11-libs/libX11-1.4
|
|
||||||
>=x11-libs/libXext-1.3
|
|
||||||
>=x11-libs/libXi-1.6
|
|
||||||
x11-libs/libXrender
|
|
||||||
>=x11-libs/libXtst-1.2
|
|
||||||
>=x11-libs/pango-1.24.5"
|
|
||||||
|
|
||||||
COMMON_DEP="
|
|
||||||
>=media-libs/giflib-4.1.6-r1
|
|
||||||
media-libs/lcms:2
|
|
||||||
>=media-libs/libpng-1.5:0=
|
|
||||||
>=sys-devel/gcc-4.5.4
|
|
||||||
>=sys-libs/glibc-2.15
|
|
||||||
>=sys-libs/zlib-1.2.3-r1
|
|
||||||
|| ( virtual/jpeg:62 media-libs/jpeg:62 )
|
|
||||||
selinux? ( sec-policy/selinux-java )"
|
|
||||||
|
|
||||||
# cups is needed for X. #390945 #390975
|
|
||||||
RDEPEND="${COMMON_DEP}
|
|
||||||
X? (
|
|
||||||
${CUPS_COMMON_DEP}
|
|
||||||
${X_COMMON_DEP}
|
|
||||||
media-fonts/dejavu
|
|
||||||
cjk? (
|
|
||||||
media-fonts/arphicfonts
|
|
||||||
media-fonts/baekmuk-fonts
|
|
||||||
media-fonts/lklug
|
|
||||||
media-fonts/lohit-fonts
|
|
||||||
media-fonts/sazanami
|
|
||||||
)
|
|
||||||
)
|
|
||||||
alsa? ( ${ALSA_COMMON_DEP} )
|
|
||||||
cups? ( ${CUPS_COMMON_DEP} )"
|
|
||||||
|
|
||||||
PDEPEND="nsplugin? ( dev-java/icedtea-web:0[icedtea7,nsplugin] )"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
unpack ${A}
|
|
||||||
|
|
||||||
if has_version '=media-libs/libpng-1.5*:0'; then
|
|
||||||
einfo "Installing libpng-1.5 ABI version"
|
|
||||||
local arch=${ARCH}
|
|
||||||
use x86 && arch=i386
|
|
||||||
mv -v ${PN}-libpng15-${PV}/jre/lib/${arch}/*.so ${P}/jre/lib/${arch} || die
|
|
||||||
else
|
|
||||||
einfo "Installing libpng-1.6 ABI version"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local dest="/opt/${P}"
|
|
||||||
local ddest="${ED}/${dest}"
|
|
||||||
dodir "${dest}"
|
|
||||||
|
|
||||||
# Ensures HeadlessGraphicsEnvironment is used.
|
|
||||||
if ! use X; then
|
|
||||||
rm -r jre/lib/$(get_system_arch)/xawt || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# doins can't handle symlinks.
|
|
||||||
cp -pRP bin include jre lib man "${ddest}" || die
|
|
||||||
|
|
||||||
# Remove on next bump as the needed marks are already set by icedtea ebuild.
|
|
||||||
java-vm_set-pax-markings "${ddest}"
|
|
||||||
|
|
||||||
dodoc ../doc/{ASSEMBLY_EXCEPTION,THIRD_PARTY_README}
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
dohtml -r ../doc/html/*
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use examples; then
|
|
||||||
cp -pRP share/{demo,sample} "${ddest}" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use source; then
|
|
||||||
cp src.zip "${ddest}" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Remove after next bump, handled by icedtea ebuild. Bug 390663
|
|
||||||
cp "${FILESDIR}"/fontconfig.Gentoo.properties.src "${T}"/fontconfig.Gentoo.properties || die
|
|
||||||
eprefixify "${T}"/fontconfig.Gentoo.properties
|
|
||||||
insinto "${dest}"/jre/lib
|
|
||||||
doins "${T}"/fontconfig.Gentoo.properties
|
|
||||||
|
|
||||||
set_java_env
|
|
||||||
java-vm_revdep-mask "${dest}"
|
|
||||||
java-vm_sandbox-predict /proc/self/coredump_filter
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if use nsplugin; then
|
|
||||||
if [[ -n ${REPLACING_VERSIONS} ]] && ! version_is_at_least 7.2.4.3 ${REPLACING_VERSIONS} ]]; then
|
|
||||||
elog "The nsplugin for icedtea-bin is now provided by the icedtea-web package"
|
|
||||||
elog "If you had icedtea-bin-7 nsplugin selected, you may see a related error below"
|
|
||||||
elog "The switch should complete properly during the subsequent installation of icedtea-web"
|
|
||||||
elog "Afterwards you may verify the output of 'eselect java-nsplugin list' and adjust accordingly'"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Set as default VM if none exists
|
|
||||||
java-vm-2_pkg_postinst
|
|
||||||
}
|
|
@ -1,99 +0,0 @@
|
|||||||
# Copyright 1999-2008 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/jax-ws-tools/jax-ws-tools-2.0.1.ebuild,v 1.6 2008/05/11 13:41:45 maekke Exp $
|
|
||||||
|
|
||||||
JAVA_PKG_IUSE="source"
|
|
||||||
|
|
||||||
inherit java-pkg-2 java-ant-2 eutils
|
|
||||||
|
|
||||||
DESCRIPTION="Reference implementation of the Java API for XML Web Services"
|
|
||||||
HOMEPAGE="http://jax-ws.dev.java.net/"
|
|
||||||
DATE="20060817"
|
|
||||||
MY_P="JAXWS${PV}m1_source_${DATE}.jar"
|
|
||||||
SRC_URI="https://jax-ws.dev.java.net/jax-ws-201-m1/${MY_P}"
|
|
||||||
|
|
||||||
LICENSE="CDDL"
|
|
||||||
SLOT="2"
|
|
||||||
KEYWORDS="amd64 ppc x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
COMMON_DEP="dev-java/istack-commons-runtime
|
|
||||||
dev-java/istack-commons-tools
|
|
||||||
dev-java/stax-ex
|
|
||||||
dev-java/xmlstreambuffer
|
|
||||||
=dev-java/jaxb-2*
|
|
||||||
=dev-java/jaxb-tools-2*
|
|
||||||
dev-java/txw2-runtime
|
|
||||||
dev-java/jsr173
|
|
||||||
>=dev-java/jsr181-1.0
|
|
||||||
dev-java/jsr250
|
|
||||||
=dev-java/sun-httpserver-bin-2*
|
|
||||||
dev-java/jsr67
|
|
||||||
dev-java/saaj
|
|
||||||
dev-java/sjsxp
|
|
||||||
dev-java/xml-commons-resolver
|
|
||||||
=dev-java/jax-ws-api-2*
|
|
||||||
=dev-java/jax-ws-2*
|
|
||||||
=dev-java/codemodel-2*
|
|
||||||
dev-java/apt-mirror"
|
|
||||||
DEPEND=">=virtual/jdk-1.5
|
|
||||||
app-arch/unzip
|
|
||||||
${COMMON_DEP}"
|
|
||||||
RDEPEND=">=virtual/jre-1.5
|
|
||||||
${COMMON_DEP}"
|
|
||||||
|
|
||||||
S="${WORKDIR}/jaxws-si"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
echo "A" | java -jar "${DISTDIR}/${A}" -console > /dev/null || die "unpack failed"
|
|
||||||
|
|
||||||
unpack ./jaxws-src.zip || die "unzip failed"
|
|
||||||
|
|
||||||
cd "${S}/lib"
|
|
||||||
rm -v *.jar || die
|
|
||||||
|
|
||||||
java-pkg_jarfrom istack-commons-runtime
|
|
||||||
java-pkg_jarfrom istack-commons-tools
|
|
||||||
java-pkg_jarfrom stax-ex
|
|
||||||
java-pkg_jarfrom xmlstreambuffer
|
|
||||||
java-pkg_jarfrom jaxb-2
|
|
||||||
java-pkg_jarfrom jaxb-tools-2
|
|
||||||
java-pkg_jarfrom txw2-runtime
|
|
||||||
java-pkg_jarfrom jsr173
|
|
||||||
java-pkg_jarfrom jsr181
|
|
||||||
java-pkg_jarfrom jsr250
|
|
||||||
java-pkg_jarfrom jsr67
|
|
||||||
java-pkg_jarfrom saaj
|
|
||||||
java-pkg_jarfrom xml-commons-resolver
|
|
||||||
java-pkg_jarfrom sjsxp
|
|
||||||
java-pkg_jarfrom sun-httpserver-bin-2
|
|
||||||
java-pkg_jarfrom jax-ws-api-2
|
|
||||||
java-pkg_jarfrom jax-ws-2
|
|
||||||
java-pkg_jarfrom codemodel-2
|
|
||||||
java-pkg_jarfrom apt-mirror
|
|
||||||
java-pkg_jarfrom --build-only ant-core
|
|
||||||
ln -s $(java-config --tools) || die
|
|
||||||
|
|
||||||
cp \
|
|
||||||
"${S}"/src/tools/wscompile/build/gen-src/com/sun/tools/ws/resources/*.java \
|
|
||||||
"${S}"/src/tools/wscompile/src/com/sun/tools/ws/resources/ || die "cp failed"
|
|
||||||
|
|
||||||
find "${S}/src/" -name '*.java' -exec \
|
|
||||||
sed -i -e \
|
|
||||||
's,com.sun.org.apache.xml.internal.resolver,org.apache.xml.resolver,g' \
|
|
||||||
{} \;
|
|
||||||
|
|
||||||
cd "${S}"
|
|
||||||
epatch "${FILESDIR}/${P}-gentoo.patch"
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
EANT_BUILD_TARGET="build"
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
|
|
||||||
java-pkg_dojar jax-ws-tools.jar
|
|
||||||
|
|
||||||
use source && java-pkg_dosrc src/tools/wscompile/src/*
|
|
||||||
|
|
||||||
}
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue