parent
36131e6fa3
commit
ea013cf3c3
@ -1,2 +1,3 @@
|
|||||||
DIST github-backup-utils-2.5.0.tar.gz 40850 SHA256 9cc7cd40f41e6071c36527ec7983b877e461452cd08d04439efd5fa9352900a0 SHA512 ecd5b85e0e2e300a9f40ecb8f545868554c7b48bdf800a21cf111ead80c185c96d475c67487c9b9e8af676f8c71a001730084abde79e05860b3e24004888292d WHIRLPOOL 15be1d603c9b61a4cff47e319ee1a66b64684dfd19f06c696bffb41b77dc756a895e25074d5a6dd19aeebaa3106fe12842cb22a639ed4abd3a6c2922e8cdbc1f
|
DIST github-backup-utils-2.5.0.tar.gz 40850 SHA256 9cc7cd40f41e6071c36527ec7983b877e461452cd08d04439efd5fa9352900a0 SHA512 ecd5b85e0e2e300a9f40ecb8f545868554c7b48bdf800a21cf111ead80c185c96d475c67487c9b9e8af676f8c71a001730084abde79e05860b3e24004888292d WHIRLPOOL 15be1d603c9b61a4cff47e319ee1a66b64684dfd19f06c696bffb41b77dc756a895e25074d5a6dd19aeebaa3106fe12842cb22a639ed4abd3a6c2922e8cdbc1f
|
||||||
DIST github-backup-utils-2.6.0.tar.gz 45970 SHA256 7273cebcb23bc597432a2b66ab7e9367a4fb09a750cf2438f8957dc83dcf27c3 SHA512 a795e439f9d28e27b457c5b6eb42f35d6aea1527c2a01a26b81d6e86829db14a0b27a366d9358214bbe1c16540fe524fb0010d5f509c78ba5398c6bdbf04182e WHIRLPOOL fd1aeec46946190657e61e611a089b4a7cef53beb7b3f9a500b7117fcdbd89c5ef09681aff98ed5d559cc243f76180eb6eec0cc6f2fcfeed0789c159f5a09afe
|
DIST github-backup-utils-2.6.0.tar.gz 45970 SHA256 7273cebcb23bc597432a2b66ab7e9367a4fb09a750cf2438f8957dc83dcf27c3 SHA512 a795e439f9d28e27b457c5b6eb42f35d6aea1527c2a01a26b81d6e86829db14a0b27a366d9358214bbe1c16540fe524fb0010d5f509c78ba5398c6bdbf04182e WHIRLPOOL fd1aeec46946190657e61e611a089b4a7cef53beb7b3f9a500b7117fcdbd89c5ef09681aff98ed5d559cc243f76180eb6eec0cc6f2fcfeed0789c159f5a09afe
|
||||||
|
DIST github-backup-utils-2.6.3.tar.gz 50884 SHA256 3a5e48ff250b64a9bcec69a269b0e93efda078b8b77afc992c12aa40ee7bb3d9 SHA512 dff092325ad6f3502c8c0afbea90a53469af0ab4b98eaa39a950022c5b4e199cd3b48b5ec0585e3ea39b9bbd707dd037e8e0ed00ed8c6858276ba1a8e1075290 WHIRLPOOL aa19640ee5583d5e64aaab7b5a9d5572c47a09dd11fd0bed30ffc6aad0a10ddfc4e258f4680180547f8327fbedc5866bde4b20bd5e962dfa8162cd8ecf5e6db3
|
||||||
|
@ -0,0 +1,48 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
# See https://github.com/github/backup-utils/issues/135
|
||||||
|
PYTHON_COMPAT=(python2_7)
|
||||||
|
inherit python-any-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Backup and recovery utilities for GitHub Enterprise"
|
||||||
|
HOMEPAGE="https://github.com/github/backup-utils"
|
||||||
|
SRC_URI="https://github.com/github/backup-utils/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE="test"
|
||||||
|
|
||||||
|
DEPEND="test? (
|
||||||
|
dev-util/checkbashisms
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
)"
|
||||||
|
|
||||||
|
RDEPEND="net-misc/rsync"
|
||||||
|
|
||||||
|
MY_PN="${PN/#github-/}"
|
||||||
|
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
:;
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin bin/*
|
||||||
|
insinto usr/share/${PN}
|
||||||
|
doins share/${PN}/version
|
||||||
|
|
||||||
|
exeinto usr/share/${PN}
|
||||||
|
doexe share/${PN}/ghe-*
|
||||||
|
|
||||||
|
insinto etc/${PN}
|
||||||
|
newins backup.config-example backup.config
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
emake test
|
||||||
|
}
|
@ -0,0 +1,60 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit multilib multilib-minimal toolchain-funcs
|
||||||
|
|
||||||
|
if [[ ${PV} == 9999 ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/Cyan4973/lz4.git"
|
||||||
|
EGIT_BRANCH=dev
|
||||||
|
else
|
||||||
|
MY_PV="r${PV##0_p}"
|
||||||
|
MY_P="${PN}-${MY_PV}"
|
||||||
|
SRC_URI="https://github.com/Cyan4973/lz4/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="Extremely Fast Compression algorithm"
|
||||||
|
HOMEPAGE="https://github.com/Cyan4973/lz4"
|
||||||
|
|
||||||
|
LICENSE="BSD-2 GPL-2"
|
||||||
|
# Upstream has trouble keeping ABI stable, so please test new versions
|
||||||
|
# with abi-compliance-checker and update the subslot every time ABI
|
||||||
|
# changes. This is the least we can do to keep things sane.
|
||||||
|
SLOT="0/r131"
|
||||||
|
IUSE="test valgrind"
|
||||||
|
|
||||||
|
DEPEND="test? ( valgrind? ( dev-util/valgrind ) )"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
if ! use valgrind; then
|
||||||
|
sed -i -e '/^test:/s|test-mem||g' programs/Makefile || die
|
||||||
|
fi
|
||||||
|
multilib_copy_sources
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_compile() {
|
||||||
|
tc-export CC AR
|
||||||
|
# we must not use the 'all' target since it builds test programs
|
||||||
|
# & extra -m32 executables
|
||||||
|
emake -C lib liblz4 liblz4.pc \
|
||||||
|
PREFIX="${EPREFIX}/usr" \
|
||||||
|
LIBDIR="${EPREFIX}"/usr/$(get_libdir)
|
||||||
|
emake -C programs lz4 lz4c
|
||||||
|
# work around lack of proper target dependencies
|
||||||
|
touch lib/liblz4
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_test() {
|
||||||
|
emake -j1 test
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install() {
|
||||||
|
emake install DESTDIR="${D}" \
|
||||||
|
PREFIX="${EPREFIX}/usr" \
|
||||||
|
LIBDIR="${EPREFIX}"/usr/$(get_libdir)
|
||||||
|
}
|
@ -1,2 +1,3 @@
|
|||||||
DIST cdlabelgen-4.0.0.tgz 191251 SHA256 ead5392a4310b8f7a3b6ff36a9d9934563dcd354f12d4b25e70f17644c2dd393 SHA512 a1b92f3c3f3b012003f42eaea111fc7802098833937459e6287cc98aa9b4338ee1cb2e10e3e6c821e7edbd1ab57bb22ec2f644c8e2fe9a152788374507876c9b WHIRLPOOL acbb42904c0037e8e6df90bd01e2baee3f3a3228c16f440799c4abe6f46581bc648e7f55a80d35382b24d8acd12a30b96731596023fc4a4d5aad79792b073a2c
|
DIST cdlabelgen-4.0.0.tgz 191251 SHA256 ead5392a4310b8f7a3b6ff36a9d9934563dcd354f12d4b25e70f17644c2dd393 SHA512 a1b92f3c3f3b012003f42eaea111fc7802098833937459e6287cc98aa9b4338ee1cb2e10e3e6c821e7edbd1ab57bb22ec2f644c8e2fe9a152788374507876c9b WHIRLPOOL acbb42904c0037e8e6df90bd01e2baee3f3a3228c16f440799c4abe6f46581bc648e7f55a80d35382b24d8acd12a30b96731596023fc4a4d5aad79792b073a2c
|
||||||
DIST cdlabelgen-4.1.0.tgz 193423 SHA256 d3217af8eccb8e94863389d321c4901e7cf7dd5fadf263bde9cb8078870ddc3b SHA512 12dbef9df24d6eb060fe0fca3d24cd91bf2ae0fe4f2e68d1e7a78b5980ae0111dd087ec23b6b2ff8adeff9bb49c0a41284dcb99505d6f25b96b0e718b437b1b9 WHIRLPOOL 26a1614cb0104dcd78ae6f75810eaa6f83eec22f6848470849e1d0e988c5d919715a42208b05ee47dfeac2ffdbe37631637ad96aef2e845aa25817864c4c3570
|
DIST cdlabelgen-4.1.0.tgz 193423 SHA256 d3217af8eccb8e94863389d321c4901e7cf7dd5fadf263bde9cb8078870ddc3b SHA512 12dbef9df24d6eb060fe0fca3d24cd91bf2ae0fe4f2e68d1e7a78b5980ae0111dd087ec23b6b2ff8adeff9bb49c0a41284dcb99505d6f25b96b0e718b437b1b9 WHIRLPOOL 26a1614cb0104dcd78ae6f75810eaa6f83eec22f6848470849e1d0e988c5d919715a42208b05ee47dfeac2ffdbe37631637ad96aef2e845aa25817864c4c3570
|
||||||
|
DIST cdlabelgen-4.3.0.tgz 209771 SHA256 94202a33bd6b19cc3c1cbf6a8e1779d7c72d8b3b48b96267f97d61ced4e1753f SHA512 e9528dc1cfead1f3a90b2109346ac1e5305875e2a10dc3196a1caa94fb6e30daeff4bdac5eb43cb6710fdf36fc98349fdeaa225eaa6db3825bf9fd33cc9ab8cf WHIRLPOOL dda2e09613e192495139c455e3e2811cf5847d361c9190f3b9e2ad7503c80e3e44ab37bb382cf2836a849315495310a6080a419fca75e06d49a13f3f9029f32d
|
||||||
|
@ -0,0 +1,28 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
DESCRIPTION="CD cover, tray card and envelope generator"
|
||||||
|
HOMEPAGE="http://www.aczoom.com/tools/cdinsert"
|
||||||
|
SRC_URI="http://www.aczoom.com/pub/tools/${P}.tgz"
|
||||||
|
LICENSE="aczoom"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
RDEPEND="dev-lang/perl"
|
||||||
|
DEPEND=""
|
||||||
|
|
||||||
|
PATCHES=( "${FILESDIR}"/4.0.0-create-MAN_DIR.diff )
|
||||||
|
DOCS=( ChangeLog README INSTALL.WEB )
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake BASE_DIR="${D}"/usr install
|
||||||
|
einstalldocs
|
||||||
|
insinto "/usr/share/${PN}"
|
||||||
|
doins *.html
|
||||||
|
exeinto "/usr/share/${PN}"
|
||||||
|
doexe cdinsert{,-ps}.pl
|
||||||
|
}
|
@ -1,2 +1,3 @@
|
|||||||
DIST gtkcdlabel-1.12.tar.bz2 30054 SHA256 a2db925b4b7afc748465257872ffa5e5a7ba0a1545244431247ce506d0999a6b SHA512 7723dc986b89d7f0a296305b5933718f694939a000c9a3bd5f32acb6fc7e541e6a005f8826710b87f27c08aa616be06d83ea1dc1dc51b05fe8b6a776fc780b8f WHIRLPOOL 025dbf468a65dd2f673d74d38524e7a589da7d9dc60772b0ff165eeb3a7b6a8e940b1d9a5cc790b83e44209b687c7b5817ffcc18f50fb1047f7f00138abc63a0
|
DIST gtkcdlabel-1.12.tar.bz2 30054 SHA256 a2db925b4b7afc748465257872ffa5e5a7ba0a1545244431247ce506d0999a6b SHA512 7723dc986b89d7f0a296305b5933718f694939a000c9a3bd5f32acb6fc7e541e6a005f8826710b87f27c08aa616be06d83ea1dc1dc51b05fe8b6a776fc780b8f WHIRLPOOL 025dbf468a65dd2f673d74d38524e7a589da7d9dc60772b0ff165eeb3a7b6a8e940b1d9a5cc790b83e44209b687c7b5817ffcc18f50fb1047f7f00138abc63a0
|
||||||
DIST gtkcdlabel-1.14.tar.bz2 36397 SHA256 df3307744822cde89632da8a83bae7e8e7c3754ed4738cf559c4be14cc66c303 SHA512 35dde20c73a38cb1dc61b42a8f54cc78d7b3db90b88cbf45f48ccf5eabe95333c5f61f4e8cd77ac1fe4f9faeb55acf944df9fb8bf363343da5bad8cc81115c6e WHIRLPOOL 152b3c02e3ecf37a7d0bc1eaa4efec885c2721b05f73d3d4f4d2cc52d25d46aedce41f3be3c919256793fa25c6795c26fcde5b5e778959969d9dddecc98fcdbb
|
DIST gtkcdlabel-1.14.tar.bz2 36397 SHA256 df3307744822cde89632da8a83bae7e8e7c3754ed4738cf559c4be14cc66c303 SHA512 35dde20c73a38cb1dc61b42a8f54cc78d7b3db90b88cbf45f48ccf5eabe95333c5f61f4e8cd77ac1fe4f9faeb55acf944df9fb8bf363343da5bad8cc81115c6e WHIRLPOOL 152b3c02e3ecf37a7d0bc1eaa4efec885c2721b05f73d3d4f4d2cc52d25d46aedce41f3be3c919256793fa25c6795c26fcde5b5e778959969d9dddecc98fcdbb
|
||||||
|
DIST gtkcdlabel-1.15.tar.bz2 36468 SHA256 878f59ca08c7b11bd2546faab9a9b352c4fa475acbf51376bc073831903622a7 SHA512 3edcaa0b15a592d684a20c34282437f5f51201cd6dde915a1a02ac1ed388a2046f8e2ce7aecf4afac3e4af01191d747c34e50d689eb945072bc20f4458bf7356 WHIRLPOOL b2f0856d9041b560f12be13f99ec029462a3754bee7218826d74d09956cc7ba85ec8ccb3cf2d94661e2a51eb43ea9f021a40b4b070b33b8dc52246428ebe4482
|
||||||
|
@ -0,0 +1,38 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
PYTHON_COMPAT=( python2_7 )
|
||||||
|
|
||||||
|
inherit python-single-r1
|
||||||
|
|
||||||
|
DESCRIPTION="A GUI for cdlabelgen that generates CD labels"
|
||||||
|
HOMEPAGE="http://gtkcdlabel.sourceforge.net/"
|
||||||
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND="${PYTHON_DEPS}
|
||||||
|
>=app-cdr/cdlabelgen-4
|
||||||
|
dev-python/pygtk[${PYTHON_USEDEP}]"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||||
|
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
python_fix_shebang .
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin "usr/bin/${PN}.py"
|
||||||
|
insinto /usr/share
|
||||||
|
doins -r usr/share/{applications,"${PN}",pixmaps}
|
||||||
|
dodoc usr/share/doc/"${PN}"/{AUTHORS,README}
|
||||||
|
}
|
@ -1,3 +1,3 @@
|
|||||||
DIST bluefish-2.2.6.tar.bz2 3793018 SHA256 54c2892c317eb2287c9fb0a3e29c3f19bef51d9ab0353bfb158e52a1cdae4216 SHA512 39dee296ec6bbe1a946f9fb1c54e7143363da4bb6ce52aee14c9bef906d2eb82e5e58f78680810357c0bfcb11c21f982756a9199fec2f454c2816005a4d9d83e WHIRLPOOL b0847ea74fdc388e9ddccf1a23e8802379d149b85c5010ff9a64b3e061b0c1999e1f1a5872404b8bad2b0024fcdb09db964dae2177092d770f56aca50628d146
|
DIST bluefish-2.2.6.tar.bz2 3793018 SHA256 54c2892c317eb2287c9fb0a3e29c3f19bef51d9ab0353bfb158e52a1cdae4216 SHA512 39dee296ec6bbe1a946f9fb1c54e7143363da4bb6ce52aee14c9bef906d2eb82e5e58f78680810357c0bfcb11c21f982756a9199fec2f454c2816005a4d9d83e WHIRLPOOL b0847ea74fdc388e9ddccf1a23e8802379d149b85c5010ff9a64b3e061b0c1999e1f1a5872404b8bad2b0024fcdb09db964dae2177092d770f56aca50628d146
|
||||||
DIST bluefish-2.2.7.tar.bz2 3836580 SHA256 23534b73b929754e15b86d12904ca3ffc1b069da5dcd4f34a67e842fe9e858df SHA512 8b9eca746062d47d646805b02370eb9529d449d6a6a9f175353022d9df9060a9736430b6579cdd52717caab75661204e4c940c4a78fb8f6e29845e84a65395ce WHIRLPOOL 748c965da307807df6a7ebd2f430b5148bd6b8644f722d1ba5bfe70853a884eae951c35cc0c9f4a82e56b47b098fa7bd364623cc773920b08f1197852c720ee8
|
|
||||||
DIST bluefish-2.2.8.tar.bz2 4097769 SHA256 32578f955cee3f43e5b3a86e2588e6a679df94438b21dcbe38e3c82282745000 SHA512 0450909feb2370c1c84a214744f103bfe891086ba5f3ccc85060b4e134ee2161c3fde641720a3544a4d71c25f120a35925517cee4ffce6e2f07c778baa2cc5c1 WHIRLPOOL 0253e2176d68033c57db2ea1ec67c8e154722835652fe792e218a9430832ad40f67c360fc03f03e7317cda5d0fff7e83437cfd8543d58dbaf7b663ee4f68a77f
|
DIST bluefish-2.2.8.tar.bz2 4097769 SHA256 32578f955cee3f43e5b3a86e2588e6a679df94438b21dcbe38e3c82282745000 SHA512 0450909feb2370c1c84a214744f103bfe891086ba5f3ccc85060b4e134ee2161c3fde641720a3544a4d71c25f120a35925517cee4ffce6e2f07c778baa2cc5c1 WHIRLPOOL 0253e2176d68033c57db2ea1ec67c8e154722835652fe792e218a9430832ad40f67c360fc03f03e7317cda5d0fff7e83437cfd8543d58dbaf7b663ee4f68a77f
|
||||||
|
DIST bluefish-2.2.9.tar.bz2 4082978 SHA256 5b717b563325bc6c2b6cb2700323c93eb08f914f204b322241d21744a079f7d0 SHA512 ef644b37907d308b908d508ad00069e48343cd240ca7703a20b4498eda73be1a97a6c07598f6e51d4fb1c0f2a380c86a274ccbbe046da01db6c4641e41e268ae WHIRLPOOL 4e03efbc1fef3b8064e042b8532f96cafdc95ba6350b86f2b7928b93ac11bde329a16822f71bb50912c8e27a75349e8768be89e14fa5186912a5f1a13eb4d14d
|
||||||
|
@ -0,0 +1,29 @@
|
|||||||
|
--- bluefish-2.2.9/configure.ac
|
||||||
|
+++ bluefish-2.2.9/configure.ac
|
||||||
|
@@ -504,7 +504,15 @@
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
|
fi
|
||||||
|
|
||||||
|
+AC_ARG_WITH(
|
||||||
|
+ [charmap],
|
||||||
|
+ AC_HELP_STRING(
|
||||||
|
+ [--with-charmap],
|
||||||
|
+ [Build the charmap plugin if gucharmap is available @<:@default=yes@:>@]
|
||||||
|
+ )
|
||||||
|
+)
|
||||||
|
|
||||||
|
+if test "x$with_charmap" != "xno"; then
|
||||||
|
# optionally build the charmap plugin if gucharmap is available
|
||||||
|
AC_MSG_NOTICE([checking for optional libgucharmap development files])
|
||||||
|
if test "x$with_gtk3" != "xno"; then
|
||||||
|
@@ -544,6 +552,10 @@
|
||||||
|
)]
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
+else
|
||||||
|
+ build_charmap_plugin=no
|
||||||
|
+ AC_MSG_WARN([Disabling the building of the charmap plugin.])
|
||||||
|
+fi
|
||||||
|
AM_CONDITIONAL([ENABLE_CHARMAP_PLUGIN], [test "x$build_charmap_plugin" = "xyes"])
|
||||||
|
|
||||||
|
AC_SEARCH_LIBS([log10], [m])
|
@ -1,2 +1,2 @@
|
|||||||
DIST winetricks-20160709.tar.gz 173713 SHA256 c21a7bb4c312eeea27325d82160fee5e6961387fd396540d78d57a590df1ebe5 SHA512 8624cb8c1152f637fb46f66035059e6832e5d083e2df6737d8e6ec5a5981dc2650e1160ad3de04ab120e971a2f9a7df906f10fe95951db258217f6f0774d5b84 WHIRLPOOL 305b64049670d01fd8f3544b38033df10e11d49e2033c65688d9eddeda305f51cdfa5aeded05bda3a4239105ad03f071aa785eac200f61da2581c406db3c43d6
|
DIST winetricks-20160724.tar.gz 173873 SHA256 dbacdbc241a2bc55b0174ff06f828528bbc2bbf0a0d15c077f75d2f6acda8186 SHA512 ae94b5f039ab4109e40bfb0ee94c100c1f7573ec34dcc4f6d10094a4d5e27ada38e77343c912034c973c0b4dd55f66a31b8be6c75075681f4bd503c3751c0494 WHIRLPOOL c7c8bcc4f29eb757d0b12f528c74d6e1faa4590cda8a844d7c43047bda52f6ef0b081c6e5eb87854f050cd9c96889069586c79e549bd4324e8b8ca930b2b7815
|
||||||
DIST winetricks-gentoo-2012.11.24.tar.bz2 6398 SHA256 dded8c294cc5c2e71e4a5d1531ab165178cf3d2d1d890d0656368c2e499bfeb9 SHA512 59c93b73f3a7b2d11aefcde2ff66659ff1de21ad4b5f232f4b60572f3a48b15a6c49f369b1696862bf1b33fde190bf5598945e9536fb41ddec42d8def4d2be2a WHIRLPOOL 268da9e06712a678fbbcfff8eac1fca364b5e46f0a9c48a591eb88f03260b1a55f203eb2908bfe1f0a534b77c866127ff6f7049b0e43fe8abeaaa26fe55de75b
|
DIST winetricks-gentoo-2012.11.24.tar.bz2 6398 SHA256 dded8c294cc5c2e71e4a5d1531ab165178cf3d2d1d890d0656368c2e499bfeb9 SHA512 59c93b73f3a7b2d11aefcde2ff66659ff1de21ad4b5f232f4b60572f3a48b15a6c49f369b1696862bf1b33fde190bf5598945e9536fb41ddec42d8def4d2be2a WHIRLPOOL 268da9e06712a678fbbcfff8eac1fca364b5e46f0a9c48a591eb88f03260b1a55f203eb2908bfe1f0a534b77c866127ff6f7049b0e43fe8abeaaa26fe55de75b
|
||||||
|
@ -1,245 +0,0 @@
|
|||||||
# Fix gcc-4.6
|
|
||||||
diff -ur xen-4.2.0.orig/extras/mini-os/minios.mk xen-4.2.0/extras/mini-os/minios.mk
|
|
||||||
--- extras/mini-os/minios.mk 2012-09-17 18:21:17.000000000 +0800
|
|
||||||
+++ extras/mini-os/minios.mk 2012-12-05 14:01:10.653260260 +0800
|
|
||||||
@@ -6,7 +6,7 @@
|
|
||||||
|
|
||||||
# Define some default flags.
|
|
||||||
# NB. '-Wcast-qual' is nasty, so I omitted it.
|
|
||||||
-DEF_CFLAGS += -fno-builtin -Wall -Werror -Wredundant-decls -Wno-format -Wno-redundant-decls
|
|
||||||
+DEF_CFLAGS += -fno-builtin -Wall -Wredundant-decls -Wno-format -Wno-redundant-decls
|
|
||||||
DEF_CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)
|
|
||||||
DEF_CFLAGS += $(call cc-option,$(CC),-fgnu89-inline)
|
|
||||||
DEF_CFLAGS += -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winline
|
|
||||||
diff -ur xen-4.2.0.orig/tools/libxc/Makefile xen-4.2.0/tools/libxc/Makefile
|
|
||||||
--- tools/libxc/Makefile 2012-09-17 18:21:18.000000000 +0800
|
|
||||||
+++ tools/libxc/Makefile 2012-12-05 14:01:10.653260260 +0800
|
|
||||||
@@ -73,7 +73,7 @@
|
|
||||||
|
|
||||||
-include $(XEN_TARGET_ARCH)/Makefile
|
|
||||||
|
|
||||||
-CFLAGS += -Werror -Wmissing-prototypes
|
|
||||||
+CFLAGS += -Wmissing-prototypes
|
|
||||||
CFLAGS += -I. $(CFLAGS_xeninclude)
|
|
||||||
|
|
||||||
# Needed for posix_fadvise64() in xc_linux.c
|
|
||||||
# Drop .config
|
|
||||||
diff -ur xen-4.2.0.orig/Config.mk xen-4.2.0/Config.mk
|
|
||||||
--- Config.mk 2012-09-17 18:23:12.000000000 +0800
|
|
||||||
+++ Config.mk 2012-12-05 14:01:10.641260261 +0800
|
|
||||||
@@ -7,7 +7,6 @@ Drop .config
|
|
||||||
# fallback for older make
|
|
||||||
realpath = $(wildcard $(foreach file,$(1),$(shell cd -P $(dir $(file)) && echo "$$PWD/$(notdir $(file))")))
|
|
||||||
|
|
||||||
--include $(XEN_ROOT)/.config
|
|
||||||
|
|
||||||
# A debug build of Xen and tools?
|
|
||||||
debug ?= n
|
|
||||||
@@ -24,7 +24,7 @@
|
|
||||||
|
|
||||||
# Tools to run on system hosting the build
|
|
||||||
HOSTCC = gcc
|
|
||||||
-HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer
|
|
||||||
+HOSTCFLAGS = -Wstrict-prototypes -O2 -fomit-frame-pointer
|
|
||||||
HOSTCFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
DISTDIR ?= $(XEN_ROOT)/dist
|
|
||||||
@@ -156,7 +156,7 @@
|
|
||||||
|
|
||||||
CFLAGS += -std=gnu99
|
|
||||||
|
|
||||||
-CFLAGS += -Wall -Wstrict-prototypes
|
|
||||||
+CFLAGS += -Wstrict-prototypes
|
|
||||||
|
|
||||||
# Clang complains about macros that expand to 'if ( ( foo == bar ) ) ...'
|
|
||||||
# and is over-zealous with the printf format lint
|
|
||||||
diff -ur xen-4.2.1.orig/tools/blktap2/drivers/Makefile xen-4.2.1/tools/blktap2/drivers/Makefile
|
|
||||||
--- tools/blktap2/drivers/Makefile 2012-12-17 23:00:11.000000000 +0800
|
|
||||||
+++ tools/blktap2/drivers/Makefile 2013-01-30 12:31:43.539941099 +0800
|
|
||||||
@@ -9,7 +9,7 @@
|
|
||||||
LOCK_UTIL = lock-util
|
|
||||||
INST_DIR = $(SBINDIR)
|
|
||||||
|
|
||||||
-CFLAGS += -Werror -g
|
|
||||||
+CFLAGS += -g
|
|
||||||
CFLAGS += -Wno-unused
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CFLAGS += -I$(BLKTAP_ROOT)/include -I$(BLKTAP_ROOT)/drivers
|
|
||||||
diff -ur xen-4.2.1.orig/tools/debugger/gdbsx/Rules.mk xen-4.2.1/tools/debugger/gdbsx/Rules.mk
|
|
||||||
--- tools/debugger/gdbsx/Rules.mk 2012-12-17 23:00:22.000000000 +0800
|
|
||||||
+++ tools/debugger/gdbsx/Rules.mk 2013-01-30 12:31:43.516941098 +0800
|
|
||||||
@@ -1,4 +1,4 @@
|
|
||||||
include $(XEN_ROOT)/tools/Rules.mk
|
|
||||||
|
|
||||||
-CFLAGS += -Werror -Wmissing-prototypes
|
|
||||||
+CFLAGS += -Wmissing-prototypes
|
|
||||||
# (gcc 4.3x and later) -Wconversion -Wno-sign-conversion
|
|
||||||
diff -ur xen-4.2.1.orig/tools/debugger/xenitp/Makefile xen-4.2.1/tools/debugger/xenitp/Makefile
|
|
||||||
--- tools/debugger/xenitp/Makefile 2012-12-17 23:00:22.000000000 +0800
|
|
||||||
+++ tools/debugger/xenitp/Makefile 2013-01-30 12:31:43.516941098 +0800
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
XEN_ROOT=$(CURDIR)/../../..
|
|
||||||
include $(XEN_ROOT)/tools/Rules.mk
|
|
||||||
|
|
||||||
-#CFLAGS += -Werror -g -O0
|
|
||||||
+#CFLAGS += -g -O0
|
|
||||||
|
|
||||||
CFLAGS += $(CFLAGS_libxenctrl)
|
|
||||||
|
|
||||||
diff -ur xen-4.2.1.orig/tools/libaio/harness/Makefile xen-4.2.1/tools/libaio/harness/Makefile
|
|
||||||
--- tools/libaio/harness/Makefile 2012-12-17 23:00:35.000000000 +0800
|
|
||||||
+++ tools/libaio/harness/Makefile 2013-01-30 12:31:43.541941099 +0800
|
|
||||||
@@ -4,7 +4,7 @@
|
|
||||||
HARNESS_SRCS:=main.c
|
|
||||||
# io_queue.c
|
|
||||||
|
|
||||||
-CFLAGS=-Wall -Werror -g -O -laio
|
|
||||||
+CFLAGS=-Wall -g -O -laio
|
|
||||||
#-lpthread -lrt
|
|
||||||
|
|
||||||
all: $(PROGS)
|
|
||||||
diff -ur xen-4.2.1.orig/tools/libfsimage/Rules.mk xen-4.2.1/tools/libfsimage/Rules.mk
|
|
||||||
--- tools/libfsimage/Rules.mk 2012-12-17 23:00:36.000000000 +0800
|
|
||||||
+++ tools/libfsimage/Rules.mk 2013-01-30 12:31:43.515941097 +0800
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
include $(XEN_ROOT)/tools/Rules.mk
|
|
||||||
|
|
||||||
CFLAGS += -Wno-unknown-pragmas -I$(XEN_ROOT)/tools/libfsimage/common/ -DFSIMAGE_FSDIR=\"$(FSDIR)\"
|
|
||||||
-CFLAGS += -Werror -D_GNU_SOURCE
|
|
||||||
+CFLAGS += -D_GNU_SOURCE
|
|
||||||
LDFLAGS += -L../common/
|
|
||||||
|
|
||||||
PIC_OBJS := $(patsubst %.c,%.opic,$(LIB_SRCS-y))
|
|
||||||
diff -ur xen-4.2.1.orig/tools/libxl/Makefile xen-4.2.1/tools/libxl/Makefile
|
|
||||||
--- tools/libxl/Makefile 2012-12-17 23:01:08.000000000 +0800
|
|
||||||
+++ tools/libxl/Makefile 2013-01-30 12:31:43.541941099 +0800
|
|
||||||
@@ -11,7 +11,7 @@
|
|
||||||
XLUMAJOR = 1.0
|
|
||||||
XLUMINOR = 1
|
|
||||||
|
|
||||||
-CFLAGS += -Werror -Wno-format-zero-length -Wmissing-declarations \
|
|
||||||
+CFLAGS += -Wno-format-zero-length -Wmissing-declarations \
|
|
||||||
-Wno-declaration-after-statement -Wformat-nonliteral
|
|
||||||
CFLAGS += -I. -fPIC
|
|
||||||
|
|
||||||
diff -ur xen-4.2.1.orig/tools/qemu-xen/pc-bios/optionrom/Makefile xen-4.2.1/tools/qemu-xen/pc-bios/optionrom/Makefile
|
|
||||||
--- tools/qemu-xen/pc-bios/optionrom/Makefile 2012-09-11 02:10:52.000000000 +0800
|
|
||||||
+++ tools/qemu-xen/pc-bios/optionrom/Makefile 2013-01-30 12:31:43.528941098 +0800
|
|
||||||
@@ -9,7 +9,7 @@
|
|
||||||
|
|
||||||
.PHONY : all clean build-all
|
|
||||||
|
|
||||||
-CFLAGS := -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin
|
|
||||||
+CFLAGS := -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-builtin
|
|
||||||
CFLAGS += -I$(SRC_PATH)
|
|
||||||
CFLAGS += $(call cc-option, $(CFLAGS), -fno-stack-protector)
|
|
||||||
QEMU_CFLAGS = $(CFLAGS)
|
|
||||||
diff -ur xen-4.2.1.orig/tools/vtpm/Rules.mk xen-4.2.1/tools/vtpm/Rules.mk
|
|
||||||
--- tools/vtpm/Rules.mk 2012-12-17 23:01:35.000000000 +0800
|
|
||||||
+++ tools/vtpm/Rules.mk 2013-01-30 12:31:43.515941097 +0800
|
|
||||||
@@ -6,7 +6,7 @@
|
|
||||||
#
|
|
||||||
|
|
||||||
# General compiler flags
|
|
||||||
-CFLAGS = -Werror -g3
|
|
||||||
+CFLAGS = -g3
|
|
||||||
|
|
||||||
# Generic project files
|
|
||||||
HDRS = $(wildcard *.h)
|
|
||||||
diff -ur xen-4.2.1.orig/tools/vtpm_manager/Rules.mk xen-4.2.1/tools/vtpm_manager/Rules.mk
|
|
||||||
--- tools/vtpm_manager/Rules.mk 2012-12-17 23:01:35.000000000 +0800
|
|
||||||
+++ tools/vtpm_manager/Rules.mk 2013-01-30 12:31:43.511941097 +0800
|
|
||||||
@@ -6,7 +6,7 @@
|
|
||||||
#
|
|
||||||
|
|
||||||
# General compiler flags
|
|
||||||
-CFLAGS = -Werror -g3
|
|
||||||
+CFLAGS = -g3
|
|
||||||
|
|
||||||
# Generic project files
|
|
||||||
HDRS = $(wildcard *.h)
|
|
||||||
diff -ur xen-4.2.1.orig/tools/xenstat/xentop/Makefile xen-4.2.1/tools/xenstat/xentop/Makefile
|
|
||||||
--- tools/xenstat/xentop/Makefile 2012-12-17 23:01:35.000000000 +0800
|
|
||||||
+++ tools/xenstat/xentop/Makefile 2013-01-30 12:31:43.535941098 +0800
|
|
||||||
@@ -18,7 +18,7 @@
|
|
||||||
all install xentop:
|
|
||||||
else
|
|
||||||
|
|
||||||
-CFLAGS += -DGCC_PRINTF -Wall -Werror $(CFLAGS_libxenstat)
|
|
||||||
+CFLAGS += -DGCC_PRINTF -Wall $(CFLAGS_libxenstat)
|
|
||||||
LDLIBS += $(LDLIBS_libxenstat) $(CURSES_LIBS) $(SOCKET_LIBS)
|
|
||||||
CFLAGS += -DHOST_$(XEN_OS)
|
|
||||||
|
|
||||||
diff -ur xen-4.2.1.orig/xen/arch/arm/Rules.mk xen-4.2.1/xen/arch/arm/Rules.mk
|
|
||||||
--- xen/arch/arm/Rules.mk 2012-12-17 23:01:37.000000000 +0800
|
|
||||||
+++ xen/arch/arm/Rules.mk 2013-01-30 12:31:43.498941097 +0800
|
|
||||||
@@ -9,7 +9,7 @@
|
|
||||||
HAS_DEVICE_TREE := y
|
|
||||||
|
|
||||||
CFLAGS += -fno-builtin -fno-common -Wredundant-decls
|
|
||||||
-CFLAGS += -iwithprefix include -Werror -Wno-pointer-arith -pipe
|
|
||||||
+CFLAGS += -iwithprefix include -Wno-pointer-arith -pipe
|
|
||||||
CFLAGS += -I$(BASEDIR)/include
|
|
||||||
|
|
||||||
# Prevent floating-point variables from creeping into Xen.
|
|
||||||
diff -ur xen-4.2.1.orig/xen/arch/x86/Rules.mk xen-4.2.1/xen/arch/x86/Rules.mk
|
|
||||||
--- xen/arch/x86/Rules.mk 2012-12-17 23:01:37.000000000 +0800
|
|
||||||
+++ xen/arch/x86/Rules.mk 2013-01-30 12:31:43.490941096 +0800
|
|
||||||
@@ -24,7 +24,7 @@
|
|
||||||
endif
|
|
||||||
|
|
||||||
CFLAGS += -fno-builtin -fno-common -Wredundant-decls
|
|
||||||
-CFLAGS += -iwithprefix include -Werror -Wno-pointer-arith -pipe
|
|
||||||
+CFLAGS += -iwithprefix include -Wno-pointer-arith -pipe
|
|
||||||
CFLAGS += -I$(BASEDIR)/include
|
|
||||||
CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-generic
|
|
||||||
CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-default
|
|
||||||
diff -ur xen-4.2.1.orig/xen/include/Makefile xen-4.2.1/xen/include/Makefile
|
|
||||||
--- xen/include/Makefile 2012-12-17 23:01:55.000000000 +0800
|
|
||||||
+++ xen/include/Makefile 2013-01-30 12:31:43.502941097 +0800
|
|
||||||
@@ -78,7 +78,7 @@
|
|
||||||
all: headers.chk
|
|
||||||
|
|
||||||
headers.chk: $(filter-out public/arch-% public/%ctl.h public/xsm/% public/%hvm/save.h, $(wildcard public/*.h public/*/*.h) $(public-y)) Makefile
|
|
||||||
- for i in $(filter %.h,$^); do $(CC) -ansi -include stdint.h -Wall -W -Werror -S -o /dev/null -xc $$i || exit 1; echo $$i; done >$@.new
|
|
||||||
+ for i in $(filter %.h,$^); do $(CC) -ansi -include stdint.h -Wall -W -S -o /dev/null -xc $$i || exit 1; echo $$i; done >$@.new
|
|
||||||
mv $@.new $@
|
|
||||||
|
|
||||||
endif
|
|
||||||
diff -ur xen-4.2.1.orig/tools/tests/mce-test/tools/Makefile xen-4.2.1/tools/tests/mce-test/tools/Makefile
|
|
||||||
--- tools/tests/mce-test/tools/Makefile 2012-12-17 23:01:35.000000000 +0800
|
|
||||||
+++ tools/tests/mce-test/tools/Makefile 2013-01-30 13:01:44.890020152 +0800
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
XEN_ROOT=$(CURDIR)/../../../..
|
|
||||||
include $(XEN_ROOT)/tools/Rules.mk
|
|
||||||
|
|
||||||
-CFLAGS += -Werror
|
|
||||||
+CFLAGS +=
|
|
||||||
CFLAGS += $(CFLAGS_libxenctrl)
|
|
||||||
CFLAGS += $(CFLAGS_libxenguest)
|
|
||||||
CFLAGS += $(CFLAGS_libxenstore)
|
|
||||||
diff -ur xen-4.2.1.orig/tools/tests/mem-sharing/Makefile xen-4.2.1/tools/tests/mem-sharing/Makefile
|
|
||||||
--- tools/tests/mem-sharing/Makefile 2012-12-17 23:01:35.000000000 +0800
|
|
||||||
+++ tools/tests/mem-sharing/Makefile 2013-01-30 13:01:44.890020152 +0800
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
XEN_ROOT=$(CURDIR)/../../..
|
|
||||||
include $(XEN_ROOT)/tools/Rules.mk
|
|
||||||
|
|
||||||
-CFLAGS += -Werror
|
|
||||||
+CFLAGS +=
|
|
||||||
|
|
||||||
CFLAGS += $(CFLAGS_libxenctrl)
|
|
||||||
CFLAGS += $(CFLAGS_xeninclude)
|
|
||||||
diff -ur xen-4.2.1.orig/tools/tests/xen-access/Makefile xen-4.2.1/tools/tests/xen-access/Makefile
|
|
||||||
--- tools/tests/xen-access/Makefile 2012-12-17 23:01:35.000000000 +0800
|
|
||||||
+++ tools/tests/xen-access/Makefile 2013-01-30 13:01:44.891020152 +0800
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
XEN_ROOT=$(CURDIR)/../../..
|
|
||||||
include $(XEN_ROOT)/tools/Rules.mk
|
|
||||||
|
|
||||||
-CFLAGS += -Werror
|
|
||||||
+CFLAGS +=
|
|
||||||
|
|
||||||
CFLAGS += $(CFLAGS_libxenctrl)
|
|
||||||
CFLAGS += $(CFLAGS_libxenguest)
|
|
||||||
|
|
@ -1,83 +0,0 @@
|
|||||||
# Patch Makefile to patch insource newlib,
|
|
||||||
# Prevent internal downloading of external packages
|
|
||||||
diff -ur xen-4.2.0.orig/stubdom/Makefile xen-4.2.0/stubdom/Makefile
|
|
||||||
--- stubdom/Makefile 2012-09-17 18:21:17.000000000 +0800
|
|
||||||
+++ stubdom/Makefile 2012-12-05 14:01:10.694260256 +0800
|
|
||||||
@@ -95,12 +95,13 @@
|
|
||||||
##############
|
|
||||||
|
|
||||||
newlib-$(NEWLIB_VERSION).tar.gz:
|
|
||||||
- $(WGET) $(NEWLIB_URL)/$@
|
|
||||||
+# $(WGET) $(NEWLIB_URL)/$@
|
|
||||||
|
|
||||||
newlib-$(NEWLIB_VERSION): newlib-$(NEWLIB_VERSION).tar.gz
|
|
||||||
tar xzf $<
|
|
||||||
patch -d $@ -p0 < newlib.patch
|
|
||||||
patch -d $@ -p0 < newlib-chk.patch
|
|
||||||
+ patch -d $@ -p0 < newlib-implicits.patch
|
|
||||||
patch -d $@ -p1 < newlib-stdint-size_max-fix-from-1.17.0.patch
|
|
||||||
find $@ -type f | xargs perl -i.bak \
|
|
||||||
-pe 's/\b_(tzname|daylight|timezone)\b/$$1/g'
|
|
||||||
@@ -110,7 +110,7 @@
|
|
||||||
$(NEWLIB_STAMPFILE): mk-headers-$(XEN_TARGET_ARCH) newlib-$(NEWLIB_VERSION)
|
|
||||||
mkdir -p newlib-$(XEN_TARGET_ARCH)
|
|
||||||
( cd newlib-$(XEN_TARGET_ARCH) && \
|
|
||||||
- CC_FOR_TARGET="$(CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(NEWLIB_CFLAGS)" AR_FOR_TARGET=$(AR) LD_FOR_TARGET=$(LD) RANLIB_FOR_TARGET=$(RANLIB) ../newlib-$(NEWLIB_VERSION)/configure --prefix=$(CROSS_PREFIX) --verbose --target=$(GNU_TARGET_ARCH)-xen-elf --enable-newlib-io-long-long --disable-multilib && \
|
|
||||||
+ CC_FOR_TARGET="$(CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(NEWLIB_CFLAGS)" AR_FOR_TARGET=$(AR) LD_FOR_TARGET=$(LD) LDFLAGS= RANLIB_FOR_TARGET=$(RANLIB) ../newlib-$(NEWLIB_VERSION)/configure --prefix=$(CROSS_PREFIX) --verbose --target=$(GNU_TARGET_ARCH)-xen-elf --enable-newlib-io-long-long --disable-multilib && \
|
|
||||||
$(MAKE) DESTDIR= && \
|
|
||||||
$(MAKE) DESTDIR= install )
|
|
||||||
|
|
||||||
@@ -121,7 +122,7 @@
|
|
||||||
############
|
|
||||||
|
|
||||||
zlib-$(ZLIB_VERSION).tar.gz:
|
|
||||||
- $(WGET) $(ZLIB_URL)/$@
|
|
||||||
+# $(WGET) $(ZLIB_URL)/$@
|
|
||||||
|
|
||||||
zlib-$(XEN_TARGET_ARCH): zlib-$(ZLIB_VERSION).tar.gz
|
|
||||||
tar xzf $<
|
|
||||||
@@ -130,7 +130,7 @@
|
|
||||||
cross-zlib: $(ZLIB_STAMPFILE)
|
|
||||||
$(ZLIB_STAMPFILE): zlib-$(XEN_TARGET_ARCH) $(NEWLIB_STAMPFILE)
|
|
||||||
( cd $< && \
|
|
||||||
- CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" CC=$(CC) ./configure --prefix=$(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf && \
|
|
||||||
+ CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" CC="$(CC)" ./configure --prefix=$(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf && \
|
|
||||||
$(MAKE) DESTDIR= libz.a && \
|
|
||||||
$(MAKE) DESTDIR= install )
|
|
||||||
|
|
||||||
@@ -141,7 +142,7 @@
|
|
||||||
##############
|
|
||||||
|
|
||||||
pciutils-$(LIBPCI_VERSION).tar.bz2:
|
|
||||||
- $(WGET) $(LIBPCI_URL)/$@
|
|
||||||
+# $(WGET) $(LIBPCI_URL)/$@
|
|
||||||
|
|
||||||
pciutils-$(XEN_TARGET_ARCH): pciutils-$(LIBPCI_VERSION).tar.bz2
|
|
||||||
tar xjf $<
|
|
||||||
@@ -169,7 +170,7 @@
|
|
||||||
######
|
|
||||||
|
|
||||||
lwip-$(LWIP_VERSION).tar.gz:
|
|
||||||
- $(WGET) $(LWIP_URL)/$@
|
|
||||||
+# $(WGET) $(LWIP_URL)/$@
|
|
||||||
|
|
||||||
lwip-$(XEN_TARGET_ARCH): lwip-$(LWIP_VERSION).tar.gz
|
|
||||||
tar xzf $<
|
|
||||||
@@ -325,7 +326,7 @@
|
|
||||||
######
|
|
||||||
|
|
||||||
grub-$(GRUB_VERSION).tar.gz:
|
|
||||||
- $(WGET) $(GRUB_URL)/$@
|
|
||||||
+#$(WGET) $(GRUB_URL)/$@
|
|
||||||
|
|
||||||
grub-upstream: grub-$(GRUB_VERSION).tar.gz
|
|
||||||
tar xzf $<
|
|
||||||
@@ -392,7 +393,7 @@
|
|
||||||
$(INSTALL_DIR) "$(DESTDIR)$(XENFIRMWAREDIR)"
|
|
||||||
$(INSTALL_DATA) mini-os-$(XEN_TARGET_ARCH)-ioemu/mini-os.gz "$(DESTDIR)$(XENFIRMWAREDIR)/ioemu-stubdom.gz"
|
|
||||||
|
|
||||||
-install-grub: pv-grub
|
|
||||||
+install-grub:
|
|
||||||
$(INSTALL_DIR) "$(DESTDIR)$(XENFIRMWAREDIR)"
|
|
||||||
$(INSTALL_DATA) mini-os-$(XEN_TARGET_ARCH)-grub/mini-os.gz "$(DESTDIR)$(XENFIRMWAREDIR)/pv-grub-$(XEN_TARGET_ARCH).gz"
|
|
||||||
|
|
@ -1,220 +0,0 @@
|
|||||||
# Fix gcc-4.6
|
|
||||||
diff -ur xen-4.2.0.orig/extras/mini-os/minios.mk xen-4.2.0/extras/mini-os/minios.mk
|
|
||||||
--- extras/mini-os/minios.mk 2012-09-17 18:21:17.000000000 +0800
|
|
||||||
+++ extras/mini-os/minios.mk 2012-12-05 14:01:10.653260260 +0800
|
|
||||||
@@ -6,7 +6,7 @@
|
|
||||||
|
|
||||||
# Define some default flags.
|
|
||||||
# NB. '-Wcast-qual' is nasty, so I omitted it.
|
|
||||||
-DEF_CFLAGS += -fno-builtin -Wall -Werror -Wredundant-decls -Wno-format -Wno-redundant-decls
|
|
||||||
+DEF_CFLAGS += -fno-builtin -Wall -Wredundant-decls -Wno-format -Wno-redundant-decls
|
|
||||||
DEF_CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)
|
|
||||||
DEF_CFLAGS += $(call cc-option,$(CC),-fgnu89-inline)
|
|
||||||
DEF_CFLAGS += -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winline
|
|
||||||
diff -ur xen-4.2.0.orig/tools/libxc/Makefile xen-4.2.0/tools/libxc/Makefile
|
|
||||||
--- tools/libxc/Makefile 2012-09-17 18:21:18.000000000 +0800
|
|
||||||
+++ tools/libxc/Makefile 2012-12-05 14:01:10.653260260 +0800
|
|
||||||
@@ -85,7 +85,7 @@
|
|
||||||
|
|
||||||
-include $(XEN_TARGET_ARCH)/Makefile
|
|
||||||
|
|
||||||
-CFLAGS += -Werror -Wmissing-prototypes
|
|
||||||
+CFLAGS += -Wmissing-prototypes
|
|
||||||
CFLAGS += -I. $(CFLAGS_xeninclude)
|
|
||||||
|
|
||||||
# Needed for posix_fadvise64() in xc_linux.c
|
|
||||||
# Drop .config
|
|
||||||
diff -ur xen-4.2.0.orig/Config.mk xen-4.2.0/Config.mk
|
|
||||||
--- Config.mk 2012-09-17 18:23:12.000000000 +0800
|
|
||||||
+++ Config.mk 2012-12-05 14:01:10.641260261 +0800
|
|
||||||
@@ -7,7 +7,6 @@ Drop .config
|
|
||||||
# fallback for older make
|
|
||||||
realpath = $(wildcard $(foreach file,$(1),$(shell cd -P $(dir $(file)) && echo "$$PWD/$(notdir $(file))")))
|
|
||||||
|
|
||||||
--include $(XEN_ROOT)/.config
|
|
||||||
|
|
||||||
# A debug build of Xen and tools?
|
|
||||||
debug ?= n
|
|
||||||
@@ -24,7 +24,7 @@
|
|
||||||
|
|
||||||
# Tools to run on system hosting the build
|
|
||||||
HOSTCC = gcc
|
|
||||||
-HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer
|
|
||||||
+HOSTCFLAGS = -Wstrict-prototypes -O2 -fomit-frame-pointer
|
|
||||||
HOSTCFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
DISTDIR ?= $(XEN_ROOT)/dist
|
|
||||||
@@ -156,7 +156,7 @@
|
|
||||||
|
|
||||||
CFLAGS += -std=gnu99
|
|
||||||
|
|
||||||
-CFLAGS += -Wall -Wstrict-prototypes
|
|
||||||
+CFLAGS += -Wstrict-prototypes
|
|
||||||
|
|
||||||
# Clang complains about macros that expand to 'if ( ( foo == bar ) ) ...'
|
|
||||||
# and is over-zealous with the printf format lint
|
|
||||||
diff -ur xen-4.2.1.orig/tools/blktap2/drivers/Makefile xen-4.2.1/tools/blktap2/drivers/Makefile
|
|
||||||
--- tools/blktap2/drivers/Makefile 2012-12-17 23:00:11.000000000 +0800
|
|
||||||
+++ tools/blktap2/drivers/Makefile 2013-01-30 12:31:43.539941099 +0800
|
|
||||||
@@ -9,7 +9,7 @@
|
|
||||||
LOCK_UTIL = lock-util
|
|
||||||
INST_DIR = $(SBINDIR)
|
|
||||||
|
|
||||||
-CFLAGS += -Werror -g
|
|
||||||
+CFLAGS += -g
|
|
||||||
CFLAGS += -Wno-unused
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CFLAGS += -I$(BLKTAP_ROOT)/include -I$(BLKTAP_ROOT)/drivers
|
|
||||||
diff -ur xen-4.2.1.orig/tools/debugger/gdbsx/Rules.mk xen-4.2.1/tools/debugger/gdbsx/Rules.mk
|
|
||||||
--- tools/debugger/gdbsx/Rules.mk 2012-12-17 23:00:22.000000000 +0800
|
|
||||||
+++ tools/debugger/gdbsx/Rules.mk 2013-01-30 12:31:43.516941098 +0800
|
|
||||||
@@ -1,4 +1,4 @@
|
|
||||||
include $(XEN_ROOT)/tools/Rules.mk
|
|
||||||
|
|
||||||
-CFLAGS += -Werror -Wmissing-prototypes
|
|
||||||
+CFLAGS += -Wmissing-prototypes
|
|
||||||
# (gcc 4.3x and later) -Wconversion -Wno-sign-conversion
|
|
||||||
diff -ur xen-4.2.1.orig/tools/libaio/harness/Makefile xen-4.2.1/tools/libaio/harness/Makefile
|
|
||||||
--- tools/libaio/harness/Makefile 2012-12-17 23:00:35.000000000 +0800
|
|
||||||
+++ tools/libaio/harness/Makefile 2013-01-30 12:31:43.541941099 +0800
|
|
||||||
@@ -4,7 +4,7 @@
|
|
||||||
HARNESS_SRCS:=main.c
|
|
||||||
# io_queue.c
|
|
||||||
|
|
||||||
-CFLAGS=-Wall -Werror -g -O -laio
|
|
||||||
+CFLAGS=-Wall -g -O -laio
|
|
||||||
#-lpthread -lrt
|
|
||||||
|
|
||||||
all: $(PROGS)
|
|
||||||
diff -ur xen-4.2.1.orig/tools/libfsimage/Rules.mk xen-4.2.1/tools/libfsimage/Rules.mk
|
|
||||||
--- tools/libfsimage/Rules.mk 2012-12-17 23:00:36.000000000 +0800
|
|
||||||
+++ tools/libfsimage/Rules.mk 2013-01-30 12:31:43.515941097 +0800
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
include $(XEN_ROOT)/tools/Rules.mk
|
|
||||||
|
|
||||||
CFLAGS += -Wno-unknown-pragmas -I$(XEN_ROOT)/tools/libfsimage/common/ -DFSIMAGE_FSDIR=\"$(FSDIR)\"
|
|
||||||
-CFLAGS += -Werror -D_GNU_SOURCE
|
|
||||||
+CFLAGS += -D_GNU_SOURCE
|
|
||||||
LDFLAGS += -L../common/
|
|
||||||
|
|
||||||
PIC_OBJS := $(patsubst %.c,%.opic,$(LIB_SRCS-y))
|
|
||||||
diff -ur xen-4.2.1.orig/tools/libxl/Makefile xen-4.2.1/tools/libxl/Makefile
|
|
||||||
--- tools/libxl/Makefile 2012-12-17 23:01:08.000000000 +0800
|
|
||||||
+++ tools/libxl/Makefile 2013-01-30 12:31:43.541941099 +0800
|
|
||||||
@@ -11,7 +11,7 @@
|
|
||||||
XLUMAJOR = 1.0
|
|
||||||
XLUMINOR = 1
|
|
||||||
|
|
||||||
-CFLAGS += -Werror -Wno-format-zero-length -Wmissing-declarations \
|
|
||||||
+CFLAGS += -Wno-format-zero-length -Wmissing-declarations \
|
|
||||||
-Wno-declaration-after-statement -Wformat-nonliteral
|
|
||||||
CFLAGS += -I. -fPIC
|
|
||||||
|
|
||||||
diff -ur xen-4.2.1.orig/tools/qemu-xen/pc-bios/optionrom/Makefile xen-4.2.1/tools/qemu-xen/pc-bios/optionrom/Makefile
|
|
||||||
--- tools/qemu-xen/pc-bios/optionrom/Makefile 2012-09-11 02:10:52.000000000 +0800
|
|
||||||
+++ tools/qemu-xen/pc-bios/optionrom/Makefile 2013-01-30 12:31:43.528941098 +0800
|
|
||||||
@@ -9,7 +9,7 @@
|
|
||||||
|
|
||||||
.PHONY : all clean build-all
|
|
||||||
|
|
||||||
-CFLAGS := -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin
|
|
||||||
+CFLAGS := -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-builtin
|
|
||||||
CFLAGS += -I$(SRC_PATH)
|
|
||||||
CFLAGS += $(call cc-option, $(CFLAGS), -fno-stack-protector)
|
|
||||||
QEMU_CFLAGS = $(CFLAGS)
|
|
||||||
diff -ur xen-4.2.1.orig/tools/xenstat/xentop/Makefile xen-4.2.1/tools/xenstat/xentop/Makefile
|
|
||||||
--- tools/xenstat/xentop/Makefile 2012-12-17 23:01:35.000000000 +0800
|
|
||||||
+++ tools/xenstat/xentop/Makefile 2013-01-30 12:31:43.535941098 +0800
|
|
||||||
@@ -18,7 +18,7 @@
|
|
||||||
all install xentop:
|
|
||||||
else
|
|
||||||
|
|
||||||
-CFLAGS += -DGCC_PRINTF -Wall -Werror $(CFLAGS_libxenstat)
|
|
||||||
+CFLAGS += -DGCC_PRINTF -Wall $(CFLAGS_libxenstat)
|
|
||||||
LDLIBS += $(LDLIBS_libxenstat) $(CURSES_LIBS) $(SOCKET_LIBS)
|
|
||||||
CFLAGS += -DHOST_$(XEN_OS)
|
|
||||||
|
|
||||||
diff -ur xen-4.2.1.orig/xen/arch/arm/Rules.mk xen-4.2.1/xen/arch/arm/Rules.mk
|
|
||||||
--- xen/arch/arm/Rules.mk 2012-12-17 23:01:37.000000000 +0800
|
|
||||||
+++ xen/arch/arm/Rules.mk 2013-01-30 12:31:43.498941097 +0800
|
|
||||||
@@ -9,7 +9,7 @@
|
|
||||||
HAS_DEVICE_TREE := y
|
|
||||||
|
|
||||||
CFLAGS += -fno-builtin -fno-common -Wredundant-decls
|
|
||||||
-CFLAGS += -iwithprefix include -Werror -Wno-pointer-arith -pipe
|
|
||||||
+CFLAGS += -iwithprefix include -Wno-pointer-arith -pipe
|
|
||||||
CFLAGS += -I$(BASEDIR)/include
|
|
||||||
|
|
||||||
# Prevent floating-point variables from creeping into Xen.
|
|
||||||
diff -ur xen-4.2.1.orig/xen/arch/x86/Rules.mk xen-4.2.1/xen/arch/x86/Rules.mk
|
|
||||||
--- xen/arch/x86/Rules.mk 2012-12-17 23:01:37.000000000 +0800
|
|
||||||
+++ xen/arch/x86/Rules.mk 2013-01-30 12:31:43.490941096 +0800
|
|
||||||
@@ -24,7 +24,7 @@
|
|
||||||
endif
|
|
||||||
|
|
||||||
CFLAGS += -fno-builtin -fno-common -Wredundant-decls
|
|
||||||
-CFLAGS += -iwithprefix include -Werror -Wno-pointer-arith -pipe
|
|
||||||
+CFLAGS += -iwithprefix include -Wno-pointer-arith -pipe
|
|
||||||
CFLAGS += -I$(BASEDIR)/include
|
|
||||||
CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-generic
|
|
||||||
CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-default
|
|
||||||
diff -ur xen-4.2.1.orig/xen/include/Makefile xen-4.2.1/xen/include/Makefile
|
|
||||||
--- xen/include/Makefile 2012-12-17 23:01:55.000000000 +0800
|
|
||||||
+++ xen/include/Makefile 2013-01-30 12:31:43.502941097 +0800
|
|
||||||
@@ -78,7 +78,7 @@
|
|
||||||
all: headers.chk
|
|
||||||
|
|
||||||
headers.chk: $(filter-out public/arch-% public/%ctl.h public/xsm/% public/%hvm/save.h, $(wildcard public/*.h public/*/*.h) $(public-y)) Makefile
|
|
||||||
- for i in $(filter %.h,$^); do $(CC) -ansi -include stdint.h -Wall -W -Werror -S -o /dev/null -xc $$i || exit 1; echo $$i; done >$@.new
|
|
||||||
+ for i in $(filter %.h,$^); do $(CC) -ansi -include stdint.h -Wall -W -S -o /dev/null -xc $$i || exit 1; echo $$i; done >$@.new
|
|
||||||
mv $@.new $@
|
|
||||||
|
|
||||||
endif
|
|
||||||
diff -ur xen-4.2.1.orig/tools/tests/mce-test/tools/Makefile xen-4.2.1/tools/tests/mce-test/tools/Makefile
|
|
||||||
--- tools/tests/mce-test/tools/Makefile 2012-12-17 23:01:35.000000000 +0800
|
|
||||||
+++ tools/tests/mce-test/tools/Makefile 2013-01-30 13:01:44.890020152 +0800
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
XEN_ROOT=$(CURDIR)/../../../..
|
|
||||||
include $(XEN_ROOT)/tools/Rules.mk
|
|
||||||
|
|
||||||
-CFLAGS += -Werror
|
|
||||||
+CFLAGS +=
|
|
||||||
CFLAGS += $(CFLAGS_libxenctrl)
|
|
||||||
CFLAGS += $(CFLAGS_libxenguest)
|
|
||||||
CFLAGS += $(CFLAGS_libxenstore)
|
|
||||||
diff -ur xen-4.2.1.orig/tools/tests/mem-sharing/Makefile xen-4.2.1/tools/tests/mem-sharing/Makefile
|
|
||||||
--- tools/tests/mem-sharing/Makefile 2012-12-17 23:01:35.000000000 +0800
|
|
||||||
+++ tools/tests/mem-sharing/Makefile 2013-01-30 13:01:44.890020152 +0800
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
XEN_ROOT=$(CURDIR)/../../..
|
|
||||||
include $(XEN_ROOT)/tools/Rules.mk
|
|
||||||
|
|
||||||
-CFLAGS += -Werror
|
|
||||||
+CFLAGS +=
|
|
||||||
|
|
||||||
CFLAGS += $(CFLAGS_libxenctrl)
|
|
||||||
CFLAGS += $(CFLAGS_xeninclude)
|
|
||||||
diff -ur xen-4.2.1.orig/tools/tests/xen-access/Makefile xen-4.2.1/tools/tests/xen-access/Makefile
|
|
||||||
--- tools/tests/xen-access/Makefile 2012-12-17 23:01:35.000000000 +0800
|
|
||||||
+++ tools/tests/xen-access/Makefile 2013-01-30 13:01:44.891020152 +0800
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
XEN_ROOT=$(CURDIR)/../../..
|
|
||||||
include $(XEN_ROOT)/tools/Rules.mk
|
|
||||||
|
|
||||||
-CFLAGS += -Werror
|
|
||||||
+CFLAGS +=
|
|
||||||
|
|
||||||
CFLAGS += $(CFLAGS_libxenctrl)
|
|
||||||
CFLAGS += $(CFLAGS_libxenguest)
|
|
||||||
diff -ur xen-4.3.0.orig/tools/firmware/Rules.mk xen-4.3.0/tools/firmware/Rules.mk
|
|
||||||
--- tools/firmware/Rules.mk 2013-07-09 18:46:56.000000000 +0800
|
|
||||||
+++ ttools/firmware/Rules.mk 2013-07-20 20:28:57.811836505 +0800
|
|
||||||
@@ -11,8 +11,6 @@
|
|
||||||
CFLAGS += -DNDEBUG
|
|
||||||
endif
|
|
||||||
|
|
||||||
-CFLAGS += -Werror
|
|
||||||
-
|
|
||||||
$(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS))
|
|
||||||
|
|
||||||
# Extra CFLAGS suitable for an embedded type of environment.
|
|
@ -1,171 +0,0 @@
|
|||||||
diff -ur xen-4.4.0.orig/Config.mk xen-4.4.0/Config.mk
|
|
||||||
--- xen-4.4.0.orig/Config.mk 2014-03-10 18:47:38.000000000 +0800
|
|
||||||
+++ xen-4.4.0/Config.mk 2014-03-23 21:54:07.327717400 +0800
|
|
||||||
@@ -13,8 +13,6 @@
|
|
||||||
# fallback for older make
|
|
||||||
realpath = $(wildcard $(foreach file,$(1),$(shell cd -P $(dir $(file)) && echo "$$PWD/$(notdir $(file))")))
|
|
||||||
|
|
||||||
--include $(XEN_ROOT)/.config
|
|
||||||
-
|
|
||||||
# A debug build of Xen and tools?
|
|
||||||
debug ?= n
|
|
||||||
debug_symbols ?= $(debug)
|
|
||||||
@@ -36,7 +34,7 @@
|
|
||||||
|
|
||||||
# Tools to run on system hosting the build
|
|
||||||
HOSTCC = gcc
|
|
||||||
-HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer
|
|
||||||
+HOSTCFLAGS = -Wstrict-prototypes -O2 -fomit-frame-pointer
|
|
||||||
HOSTCFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
DISTDIR ?= $(XEN_ROOT)/dist
|
|
||||||
@@ -187,7 +185,7 @@
|
|
||||||
|
|
||||||
CFLAGS += -std=gnu99
|
|
||||||
|
|
||||||
-CFLAGS += -Wall -Wstrict-prototypes
|
|
||||||
+CFLAGS += -Wstrict-prototypes
|
|
||||||
|
|
||||||
# Clang complains about macros that expand to 'if ( ( foo == bar ) ) ...'
|
|
||||||
# and is over-zealous with the printf format lint
|
|
||||||
diff -ur xen-4.4.0.orig/extras/mini-os/minios.mk xen-4.4.0/extras/mini-os/minios.mk
|
|
||||||
--- xen-4.4.0.orig/extras/mini-os/minios.mk 2014-03-10 18:43:57.000000000 +0800
|
|
||||||
+++ xen-4.4.0/extras/mini-os/minios.mk 2014-03-23 21:48:41.110722054 +0800
|
|
||||||
@@ -6,7 +6,7 @@
|
|
||||||
|
|
||||||
# Define some default flags.
|
|
||||||
# NB. '-Wcast-qual' is nasty, so I omitted it.
|
|
||||||
-DEF_CFLAGS += -fno-builtin -Wall -Werror -Wredundant-decls -Wno-format -Wno-redundant-decls
|
|
||||||
+DEF_CFLAGS += -fno-builtin -Wall -Wredundant-decls -Wno-format -Wno-redundant-decls
|
|
||||||
DEF_CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)
|
|
||||||
DEF_CFLAGS += $(call cc-option,$(CC),-fgnu89-inline)
|
|
||||||
DEF_CFLAGS += -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winline
|
|
||||||
diff -ur xen-4.4.0.orig/tools/blktap2/drivers/Makefile xen-4.4.0/tools/blktap2/drivers/Makefile
|
|
||||||
--- xen-4.4.0.orig/tools/blktap2/drivers/Makefile 2014-03-10 18:43:57.000000000 +0800
|
|
||||||
+++ xen-4.4.0/tools/blktap2/drivers/Makefile 2014-03-23 21:55:52.215715903 +0800
|
|
||||||
@@ -9,7 +9,7 @@
|
|
||||||
LOCK_UTIL = lock-util
|
|
||||||
INST_DIR = $(SBINDIR)
|
|
||||||
|
|
||||||
-CFLAGS += -Werror -g
|
|
||||||
+CFLAGS += -g
|
|
||||||
CFLAGS += -Wno-unused
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CFLAGS += -I$(BLKTAP_ROOT)/include -I$(BLKTAP_ROOT)/drivers
|
|
||||||
diff -ur xen-4.4.0.orig/tools/debugger/gdbsx/Rules.mk xen-4.4.0/tools/debugger/gdbsx/Rules.mk
|
|
||||||
--- xen-4.4.0.orig/tools/debugger/gdbsx/Rules.mk 2014-03-10 18:43:57.000000000 +0800
|
|
||||||
+++ xen-4.4.0/tools/debugger/gdbsx/Rules.mk 2014-03-23 21:56:21.399715487 +0800
|
|
||||||
@@ -1,4 +1,4 @@
|
|
||||||
include $(XEN_ROOT)/tools/Rules.mk
|
|
||||||
|
|
||||||
-CFLAGS += -Werror -Wmissing-prototypes
|
|
||||||
+CFLAGS += -Wmissing-prototypes
|
|
||||||
# (gcc 4.3x and later) -Wconversion -Wno-sign-conversion
|
|
||||||
diff -ur xen-4.4.0.orig/tools/firmware/Rules.mk xen-4.4.0/tools/firmware/Rules.mk
|
|
||||||
--- xen-4.4.0.orig/tools/firmware/Rules.mk 2014-03-10 18:43:57.000000000 +0800
|
|
||||||
+++ xen-4.4.0/tools/firmware/Rules.mk 2014-03-23 22:30:36.056686174 +0800
|
|
||||||
@@ -11,7 +11,7 @@
|
|
||||||
CFLAGS += -DNDEBUG
|
|
||||||
endif
|
|
||||||
|
|
||||||
-CFLAGS += -Werror
|
|
||||||
+CFLAGS +=
|
|
||||||
|
|
||||||
$(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS))
|
|
||||||
|
|
||||||
diff -ur xen-4.4.0.orig/tools/libfsimage/Rules.mk xen-4.4.0/tools/libfsimage/Rules.mk
|
|
||||||
--- xen-4.4.0.orig/tools/libfsimage/Rules.mk 2014-03-10 18:43:57.000000000 +0800
|
|
||||||
+++ xen-4.4.0/tools/libfsimage/Rules.mk 2014-03-23 21:57:21.767714626 +0800
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
include $(XEN_ROOT)/tools/Rules.mk
|
|
||||||
|
|
||||||
CFLAGS += -Wno-unknown-pragmas -I$(XEN_ROOT)/tools/libfsimage/common/ -DFSIMAGE_FSDIR=\"$(FSDIR)\"
|
|
||||||
-CFLAGS += -Werror -D_GNU_SOURCE
|
|
||||||
+CFLAGS += -D_GNU_SOURCE
|
|
||||||
LDFLAGS += -L../common/
|
|
||||||
|
|
||||||
PIC_OBJS := $(patsubst %.c,%.opic,$(LIB_SRCS-y))
|
|
||||||
diff -ur xen-4.4.0.orig/tools/libxc/Makefile xen-4.4.0/tools/libxc/Makefile
|
|
||||||
--- xen-4.4.0.orig/tools/libxc/Makefile 2014-03-10 18:43:57.000000000 +0800
|
|
||||||
+++ xen-4.4.0/tools/libxc/Makefile 2014-03-23 21:49:37.919721243 +0800
|
|
||||||
@@ -87,7 +87,7 @@
|
|
||||||
|
|
||||||
-include $(XEN_TARGET_ARCH)/Makefile
|
|
||||||
|
|
||||||
-CFLAGS += -Werror -Wmissing-prototypes
|
|
||||||
+CFLAGS += -Wmissing-prototypes
|
|
||||||
CFLAGS += -I. $(CFLAGS_xeninclude)
|
|
||||||
|
|
||||||
# Needed for posix_fadvise64() in xc_linux.c
|
|
||||||
diff -ur xen-4.4.0.orig/tools/libxl/Makefile xen-4.4.0/tools/libxl/Makefile
|
|
||||||
--- xen-4.4.0.orig/tools/libxl/Makefile 2014-03-10 18:43:57.000000000 +0800
|
|
||||||
+++ xen-4.4.0/tools/libxl/Makefile 2014-03-23 21:58:09.983713938 +0800
|
|
||||||
@@ -11,7 +11,7 @@
|
|
||||||
XLUMAJOR = 4.3
|
|
||||||
XLUMINOR = 0
|
|
||||||
|
|
||||||
-CFLAGS += -Werror -Wno-format-zero-length -Wmissing-declarations \
|
|
||||||
+CFLAGS += -Wno-format-zero-length -Wmissing-declarations \
|
|
||||||
-Wno-declaration-after-statement -Wformat-nonliteral
|
|
||||||
CFLAGS += -I. -fPIC
|
|
||||||
|
|
||||||
diff -ur xen-4.4.0.orig/tools/qemu-xen/pc-bios/optionrom/Makefile xen-4.4.0/tools/qemu-xen/pc-bios/optionrom/Makefile
|
|
||||||
--- xen-4.4.0.orig/tools/qemu-xen/pc-bios/optionrom/Makefile 2014-02-06 00:59:14.000000000 +0800
|
|
||||||
+++ xen-4.4.0/tools/qemu-xen/pc-bios/optionrom/Makefile 2014-03-23 21:59:13.175713036 +0800
|
|
||||||
@@ -9,7 +9,7 @@
|
|
||||||
|
|
||||||
.PHONY : all clean build-all
|
|
||||||
|
|
||||||
-CFLAGS := -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin
|
|
||||||
+CFLAGS := -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-builtin
|
|
||||||
CFLAGS += -I$(SRC_PATH)
|
|
||||||
CFLAGS += $(call cc-option, $(CFLAGS), -fno-stack-protector)
|
|
||||||
QEMU_CFLAGS = $(CFLAGS)
|
|
||||||
diff -ur xen-4.4.0.orig/tools/tests/mce-test/tools/Makefile xen-4.4.0/tools/tests/mce-test/tools/Makefile
|
|
||||||
--- xen-4.4.0.orig/tools/tests/mce-test/tools/Makefile 2014-03-10 18:43:57.000000000 +0800
|
|
||||||
+++ xen-4.4.0/tools/tests/mce-test/tools/Makefile 2014-03-23 22:28:45.160687756 +0800
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
XEN_ROOT=$(CURDIR)/../../../..
|
|
||||||
include $(XEN_ROOT)/tools/Rules.mk
|
|
||||||
|
|
||||||
-CFLAGS += -Werror
|
|
||||||
+CFLAGS +=
|
|
||||||
CFLAGS += $(CFLAGS_libxenctrl)
|
|
||||||
CFLAGS += $(CFLAGS_libxenguest)
|
|
||||||
CFLAGS += $(CFLAGS_libxenstore)
|
|
||||||
diff -ur xen-4.4.0.orig/tools/tests/mem-sharing/Makefile xen-4.4.0/tools/tests/mem-sharing/Makefile
|
|
||||||
--- xen-4.4.0.orig/tools/tests/mem-sharing/Makefile 2014-03-10 18:43:57.000000000 +0800
|
|
||||||
+++ xen-4.4.0/tools/tests/mem-sharing/Makefile 2014-03-23 22:29:15.472687324 +0800
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
XEN_ROOT=$(CURDIR)/../../..
|
|
||||||
include $(XEN_ROOT)/tools/Rules.mk
|
|
||||||
|
|
||||||
-CFLAGS += -Werror
|
|
||||||
+CFLAGS +=
|
|
||||||
|
|
||||||
CFLAGS += $(CFLAGS_libxenctrl)
|
|
||||||
CFLAGS += $(CFLAGS_xeninclude)
|
|
||||||
diff -ur xen-4.4.0.orig/tools/tests/xen-access/Makefile xen-4.4.0/tools/tests/xen-access/Makefile
|
|
||||||
--- xen-4.4.0.orig/tools/tests/xen-access/Makefile 2014-03-10 18:43:57.000000000 +0800
|
|
||||||
+++ xen-4.4.0/tools/tests/xen-access/Makefile 2014-03-23 22:30:02.064686659 +0800
|
|
||||||
@@ -1,8 +1,6 @@
|
|
||||||
XEN_ROOT=$(CURDIR)/../../..
|
|
||||||
include $(XEN_ROOT)/tools/Rules.mk
|
|
||||||
|
|
||||||
-CFLAGS += -Werror
|
|
||||||
-
|
|
||||||
CFLAGS += $(CFLAGS_libxenctrl)
|
|
||||||
CFLAGS += $(CFLAGS_libxenguest)
|
|
||||||
CFLAGS += $(CFLAGS_xeninclude)
|
|
||||||
diff -ur xen-4.4.0.orig/tools/xenstat/xentop/Makefile xen-4.4.0/tools/xenstat/xentop/Makefile
|
|
||||||
--- xen-4.4.0.orig/tools/xenstat/xentop/Makefile 2014-03-10 18:43:57.000000000 +0800
|
|
||||||
+++ xen-4.4.0/tools/xenstat/xentop/Makefile 2014-03-23 22:23:59.944691825 +0800
|
|
||||||
@@ -18,7 +18,7 @@
|
|
||||||
all install xentop:
|
|
||||||
else
|
|
||||||
|
|
||||||
-CFLAGS += -DGCC_PRINTF -Wall -Werror $(CFLAGS_libxenstat)
|
|
||||||
+CFLAGS += -DGCC_PRINTF -Wall $(CFLAGS_libxenstat)
|
|
||||||
LDLIBS += $(LDLIBS_libxenstat) $(CURSES_LIBS) $(SOCKET_LIBS)
|
|
||||||
CFLAGS += -DHOST_$(XEN_OS)
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
|||||||
This includes a few headers to fix some missing function declarations.
|
|
||||||
|
|
||||||
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
|
|
||||||
|
|
||||||
diff --git a/stubdom/grub/config.h b/stubdom/grub/config.h
|
|
||||||
index 1649d51..15a6583 100644
|
|
||||||
--- a/stubdom/grub/config.h
|
|
||||||
+++ b/stubdom/grub/config.h
|
|
||||||
@@ -2,6 +2,7 @@
|
|
||||||
#undef putchar
|
|
||||||
#include <ctype.h>
|
|
||||||
#include <string.h>
|
|
||||||
+#include <kernel.h>
|
|
||||||
#define debug _debug
|
|
||||||
#define grub_halt(a) do_exit()
|
|
||||||
#define printf grub_printf
|
|
||||||
diff --git a/xen/include/xen/libelf.h b/xen/include/xen/libelf.h
|
|
||||||
index 2a6fa54..e65db6d 100644
|
|
||||||
--- a/xen/include/xen/libelf.h
|
|
||||||
+++ b/xen/include/xen/libelf.h
|
|
||||||
@@ -39,11 +39,13 @@ typedef int elf_negerrnoval; /* 0: ok; -EFOO: error */
|
|
||||||
#ifdef __XEN__
|
|
||||||
#include <public/elfnote.h>
|
|
||||||
#include <public/features.h>
|
|
||||||
+#include <xen/string.h>
|
|
||||||
#else
|
|
||||||
#include <xen/elfnote.h>
|
|
||||||
#include <xen/features.h>
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
|
||||||
+#include <string.h>
|
|
||||||
|
|
||||||
struct elf_binary;
|
|
||||||
typedef void elf_log_callback(struct elf_binary*, void *caller_data,
|
|
||||||
|
|
@ -1,34 +0,0 @@
|
|||||||
This includes a few headers to fix some missing function declarations.
|
|
||||||
|
|
||||||
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
|
|
||||||
|
|
||||||
diff --git a/stubdom/grub/config.h b/stubdom/grub/config.h
|
|
||||||
index 1649d51..15a6583 100644
|
|
||||||
--- a/stubdom/grub/config.h
|
|
||||||
+++ b/stubdom/grub/config.h
|
|
||||||
@@ -2,6 +2,7 @@
|
|
||||||
#undef putchar
|
|
||||||
#include <ctype.h>
|
|
||||||
#include <string.h>
|
|
||||||
+#include <kernel.h>
|
|
||||||
#define debug _debug
|
|
||||||
#define grub_halt(a) do_exit()
|
|
||||||
#define printf grub_printf
|
|
||||||
diff -ur xen-4.2.3.orig/xen/include/xen/libelf.h xen-4.2.3/xen/include/xen/libelf.h
|
|
||||||
--- xen-4.2.3.orig/xen/include/xen/libelf.h 2013-09-09 20:27:41.000000000 +0800
|
|
||||||
+++ xen-4.2.3/xen/include/xen/libelf.h 2014-02-15 13:42:24.491435783 +0800
|
|
||||||
@@ -37,12 +37,14 @@
|
|
||||||
#ifdef __XEN__
|
|
||||||
#include <public/elfnote.h>
|
|
||||||
#include <public/features.h>
|
|
||||||
+#include <xen/string.h>
|
|
||||||
#include <xen/stdbool.h>
|
|
||||||
#else
|
|
||||||
#include <xen/elfnote.h>
|
|
||||||
#include <xen/features.h>
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
|
||||||
+#include <string.h>
|
|
||||||
#include <stdbool.h>
|
|
||||||
|
|
||||||
struct elf_binary;
|
|
@ -1,30 +0,0 @@
|
|||||||
diff -ur xen-4.3.1.orig/stubdom/grub/config.h xen-4.3.1/stubdom/grub/config.h
|
|
||||||
--- stubdom/grub/config.h 2013-10-30 16:18:28.000000000 +0800
|
|
||||||
+++ stubdom/grub/config.h 2013-12-09 17:12:14.209783970 +0800
|
|
||||||
@@ -2,6 +2,7 @@
|
|
||||||
#undef putchar
|
|
||||||
#include <ctype.h>
|
|
||||||
#include <string.h>
|
|
||||||
+#include <kernel.h>
|
|
||||||
#define debug _debug
|
|
||||||
#define grub_halt(a) do_exit()
|
|
||||||
#define printf grub_printf
|
|
||||||
diff -ur xen-4.3.1.orig/xen/include/xen/libelf.h xen-4.3.1/xen/include/xen/libelf.h
|
|
||||||
--- xen/include/xen/libelf.h 2013-10-30 16:18:28.000000000 +0800
|
|
||||||
+++ xen/include/xen/libelf.h 2013-12-09 17:14:09.249788085 +0800
|
|
||||||
@@ -37,6 +37,7 @@
|
|
||||||
#ifdef __XEN__
|
|
||||||
#include <public/elfnote.h>
|
|
||||||
#include <public/features.h>
|
|
||||||
+#include <xen/string.h>
|
|
||||||
#include <xen/stdbool.h>
|
|
||||||
#else
|
|
||||||
#include <xen/elfnote.h>
|
|
||||||
@@ -44,6 +45,7 @@
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
|
||||||
#include <stdbool.h>
|
|
||||||
+#include <string.h>
|
|
||||||
|
|
||||||
struct elf_binary;
|
|
||||||
typedef void elf_log_callback(struct elf_binary*, void *caller_data,
|
|
@ -1,144 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 )
|
|
||||||
PYTHON_REQ_USE='xml,threads'
|
|
||||||
|
|
||||||
inherit flag-o-matic eutils multilib python-single-r1 toolchain-funcs
|
|
||||||
|
|
||||||
XEN_EXTFILES_URL="http://xenbits.xensource.com/xen-extfiles"
|
|
||||||
LIBPCI_URL=ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci
|
|
||||||
GRUB_URL=mirror://gnu-alpha/grub
|
|
||||||
SRC_URI="
|
|
||||||
http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz
|
|
||||||
$GRUB_URL/grub-0.97.tar.gz
|
|
||||||
$XEN_EXTFILES_URL/zlib-1.2.3.tar.gz
|
|
||||||
$LIBPCI_URL/pciutils-2.2.9.tar.bz2
|
|
||||||
$XEN_EXTFILES_URL/lwip-1.3.0.tar.gz
|
|
||||||
$XEN_EXTFILES_URL/newlib/newlib-1.16.0.tar.gz
|
|
||||||
$XEN_EXTFILES_URL/polarssl-1.1.4-gpl.tgz"
|
|
||||||
|
|
||||||
S="${WORKDIR}/xen-${PV}"
|
|
||||||
|
|
||||||
DESCRIPTION="allows to boot Xen domU kernels from a menu.lst laying inside guest filesystem"
|
|
||||||
HOMEPAGE="http://xen.org/"
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 x86"
|
|
||||||
IUSE="custom-cflags"
|
|
||||||
|
|
||||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
|
||||||
|
|
||||||
DEPEND="sys-devel/gettext
|
|
||||||
sys-devel/bin86
|
|
||||||
sys-apps/texinfo
|
|
||||||
x11-libs/pixman"
|
|
||||||
|
|
||||||
RDEPEND=">=app-emulation/xen-tools-${PV}"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
python-single-r1_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
retar-externals() {
|
|
||||||
# Purely to unclutter src_prepare
|
|
||||||
local set="grub-0.97.tar.gz lwip-1.3.0.tar.gz newlib-1.16.0.tar.gz polarssl-1.1.4-gpl.tgz zlib-1.2.3.tar.gz"
|
|
||||||
|
|
||||||
# epatch can't patch in $WORKDIR, requires a sed; Bug #455194. Patchable, but sed informative
|
|
||||||
sed -e s':AR=${AR-"ar rc"}:AR=${AR-"ar"}:' \
|
|
||||||
-i "${WORKDIR}"/zlib-1.2.3/configure
|
|
||||||
sed -e 's:^AR=ar rc:AR=ar:' \
|
|
||||||
-e s':$(AR) $@:$(AR) rc $@:' \
|
|
||||||
-i "${WORKDIR}"/zlib-1.2.3/{Makefile,Makefile.in}
|
|
||||||
einfo "zlib Makefile edited"
|
|
||||||
|
|
||||||
cd "${WORKDIR}"
|
|
||||||
tar czp zlib-1.2.3 -f zlib-1.2.3.tar.gz
|
|
||||||
tar czp grub-0.97 -f grub-0.97.tar.gz
|
|
||||||
tar czp lwip -f lwip-1.3.0.tar.gz
|
|
||||||
tar czp newlib-1.16.0 -f newlib-1.16.0.tar.gz
|
|
||||||
tar czp polarssl-1.1.4 -f polarssl-1.1.4-gpl.tgz
|
|
||||||
mv $set "${S}"/stubdom/
|
|
||||||
einfo "tarballs moved to source"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# if the user *really* wants to use their own custom-cflags, let them
|
|
||||||
if use custom-cflags; then
|
|
||||||
einfo "User wants their own CFLAGS - removing defaults"
|
|
||||||
# try and remove all the default custom-cflags
|
|
||||||
find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-i {} \;
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Patch the unmergeable newlib, fix most of the leftover gcc QA issues
|
|
||||||
cp "${FILESDIR}"/newlib-implicits.patch stubdom || die
|
|
||||||
|
|
||||||
# Patch stubdom/Makefile to patch insource newlib & prevent internal downloading
|
|
||||||
epatch "${FILESDIR}"/${PN/-pvgrub/}-4.3-externals.patch
|
|
||||||
|
|
||||||
# fix jobserver in Makefile
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.2-jserver.patch
|
|
||||||
|
|
||||||
#Substitute for internal downloading. pciutils copied only due to the only .bz2
|
|
||||||
cp "${DISTDIR}"/pciutils-2.2.9.tar.bz2 ./stubdom/ || die "pciutils not copied to stubdom"
|
|
||||||
retar-externals || die "re-tar procedure failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local myconf="--prefix=${PREFIX}/usr \
|
|
||||||
--libdir=${PREFIX}/usr/$(get_libdir) \
|
|
||||||
--libexecdir=${PREFIX}/usr/libexec \
|
|
||||||
--disable-werror \
|
|
||||||
--disable-xen"
|
|
||||||
|
|
||||||
econf ${myconf}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
use custom-cflags || unset CFLAGS
|
|
||||||
if test-flag-CC -fno-strict-overflow; then
|
|
||||||
append-flags -fno-strict-overflow
|
|
||||||
fi
|
|
||||||
|
|
||||||
emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" -C tools/include
|
|
||||||
|
|
||||||
if use x86; then
|
|
||||||
emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \
|
|
||||||
XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub
|
|
||||||
elif use amd64; then
|
|
||||||
emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \
|
|
||||||
XEN_TARGET_ARCH="x86_64" -C stubdom pv-grub
|
|
||||||
if has_multilib_profile; then
|
|
||||||
multilib_toolchain_setup x86
|
|
||||||
emake CC="$(tc-getCC)" AR="$(tc-getAR)" \
|
|
||||||
XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
if use x86; then
|
|
||||||
emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub
|
|
||||||
fi
|
|
||||||
if use amd64; then
|
|
||||||
emake XEN_TARGET_ARCH="x86_64" DESTDIR="${D}" -C stubdom install-grub
|
|
||||||
if has_multilib_profile; then
|
|
||||||
emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "Official Xen Guide and the offical wiki page:"
|
|
||||||
elog "https://wiki.gentoo.org/wiki/Xen"
|
|
||||||
elog "http://wiki.xen.org/wiki/Main_Page"
|
|
||||||
}
|
|
@ -1,144 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 )
|
|
||||||
PYTHON_REQ_USE='xml,threads'
|
|
||||||
|
|
||||||
inherit flag-o-matic eutils multilib python-single-r1 toolchain-funcs
|
|
||||||
|
|
||||||
XEN_EXTFILES_URL="http://xenbits.xensource.com/xen-extfiles"
|
|
||||||
LIBPCI_URL=ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci
|
|
||||||
GRUB_URL=mirror://gnu-alpha/grub
|
|
||||||
SRC_URI="
|
|
||||||
http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz
|
|
||||||
$GRUB_URL/grub-0.97.tar.gz
|
|
||||||
$XEN_EXTFILES_URL/zlib-1.2.3.tar.gz
|
|
||||||
$LIBPCI_URL/pciutils-2.2.9.tar.bz2
|
|
||||||
$XEN_EXTFILES_URL/lwip-1.3.0.tar.gz
|
|
||||||
$XEN_EXTFILES_URL/newlib/newlib-1.16.0.tar.gz
|
|
||||||
$XEN_EXTFILES_URL/polarssl-1.1.4-gpl.tgz"
|
|
||||||
|
|
||||||
S="${WORKDIR}/xen-${PV}"
|
|
||||||
|
|
||||||
DESCRIPTION="allows to boot Xen domU kernels from a menu.lst laying inside guest filesystem"
|
|
||||||
HOMEPAGE="http://xen.org/"
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE="custom-cflags"
|
|
||||||
|
|
||||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
|
||||||
|
|
||||||
DEPEND="sys-devel/gettext
|
|
||||||
sys-devel/bin86
|
|
||||||
sys-apps/texinfo
|
|
||||||
x11-libs/pixman"
|
|
||||||
|
|
||||||
RDEPEND=">=app-emulation/xen-tools-${PV}"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
python-single-r1_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
retar-externals() {
|
|
||||||
# Purely to unclutter src_prepare
|
|
||||||
local set="grub-0.97.tar.gz lwip-1.3.0.tar.gz newlib-1.16.0.tar.gz polarssl-1.1.4-gpl.tgz zlib-1.2.3.tar.gz"
|
|
||||||
|
|
||||||
# epatch can't patch in $WORKDIR, requires a sed; Bug #455194. Patchable, but sed informative
|
|
||||||
sed -e s':AR=${AR-"ar rc"}:AR=${AR-"ar"}:' \
|
|
||||||
-i "${WORKDIR}"/zlib-1.2.3/configure
|
|
||||||
sed -e 's:^AR=ar rc:AR=ar:' \
|
|
||||||
-e s':$(AR) $@:$(AR) rc $@:' \
|
|
||||||
-i "${WORKDIR}"/zlib-1.2.3/{Makefile,Makefile.in}
|
|
||||||
einfo "zlib Makefile edited"
|
|
||||||
|
|
||||||
cd "${WORKDIR}"
|
|
||||||
tar czp zlib-1.2.3 -f zlib-1.2.3.tar.gz
|
|
||||||
tar czp grub-0.97 -f grub-0.97.tar.gz
|
|
||||||
tar czp lwip -f lwip-1.3.0.tar.gz
|
|
||||||
tar czp newlib-1.16.0 -f newlib-1.16.0.tar.gz
|
|
||||||
tar czp polarssl-1.1.4 -f polarssl-1.1.4-gpl.tgz
|
|
||||||
mv $set "${S}"/stubdom/
|
|
||||||
einfo "tarballs moved to source"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# if the user *really* wants to use their own custom-cflags, let them
|
|
||||||
if use custom-cflags; then
|
|
||||||
einfo "User wants their own CFLAGS - removing defaults"
|
|
||||||
# try and remove all the default custom-cflags
|
|
||||||
find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-i {} \;
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Patch the unmergeable newlib, fix most of the leftover gcc QA issues
|
|
||||||
cp "${FILESDIR}"/newlib-implicits.patch stubdom || die
|
|
||||||
|
|
||||||
# Patch stubdom/Makefile to patch insource newlib & prevent internal downloading
|
|
||||||
epatch "${FILESDIR}"/${PN/-pvgrub/}-4.3-externals.patch
|
|
||||||
|
|
||||||
# fix jobserver in Makefile
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.2-jserver.patch
|
|
||||||
|
|
||||||
#Substitute for internal downloading. pciutils copied only due to the only .bz2
|
|
||||||
cp "${DISTDIR}"/pciutils-2.2.9.tar.bz2 ./stubdom/ || die "pciutils not copied to stubdom"
|
|
||||||
retar-externals || die "re-tar procedure failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local myconf="--prefix=${PREFIX}/usr \
|
|
||||||
--libdir=${PREFIX}/usr/$(get_libdir) \
|
|
||||||
--libexecdir=${PREFIX}/usr/libexec \
|
|
||||||
--disable-werror \
|
|
||||||
--disable-xen"
|
|
||||||
|
|
||||||
econf ${myconf}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
use custom-cflags || unset CFLAGS
|
|
||||||
if test-flag-CC -fno-strict-overflow; then
|
|
||||||
append-flags -fno-strict-overflow
|
|
||||||
fi
|
|
||||||
|
|
||||||
emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" -C tools/include
|
|
||||||
|
|
||||||
if use x86; then
|
|
||||||
emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \
|
|
||||||
XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub
|
|
||||||
elif use amd64; then
|
|
||||||
emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \
|
|
||||||
XEN_TARGET_ARCH="x86_64" -C stubdom pv-grub
|
|
||||||
if has_multilib_profile; then
|
|
||||||
multilib_toolchain_setup x86
|
|
||||||
emake CC="$(tc-getCC)" AR="$(tc-getAR)" \
|
|
||||||
XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
if use x86; then
|
|
||||||
emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub
|
|
||||||
fi
|
|
||||||
if use amd64; then
|
|
||||||
emake XEN_TARGET_ARCH="x86_64" DESTDIR="${D}" -C stubdom install-grub
|
|
||||||
if has_multilib_profile; then
|
|
||||||
emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "Official Xen Guide and the offical wiki page:"
|
|
||||||
elog "https://wiki.gentoo.org/wiki/Xen"
|
|
||||||
elog "http://wiki.xen.org/wiki/Main_Page"
|
|
||||||
}
|
|
@ -1,469 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 )
|
|
||||||
PYTHON_REQ_USE='ncurses,xml,threads'
|
|
||||||
|
|
||||||
inherit eutils bash-completion-r1 flag-o-matic multilib python-single-r1 toolchain-funcs versionator
|
|
||||||
|
|
||||||
MY_PV=${PV/_/-}
|
|
||||||
MAJOR_V="$(get_version_component_range 1-2)"
|
|
||||||
|
|
||||||
if [[ $PV == *9999 ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
KEYWORDS=""
|
|
||||||
REPO="xen.git"
|
|
||||||
EGIT_REPO_URI="git://xenbits.xen.org/${REPO}"
|
|
||||||
S="${WORKDIR}/${REPO}"
|
|
||||||
else
|
|
||||||
KEYWORDS="~amd64 ~arm ~x86"
|
|
||||||
UPSTREAM_VER=0
|
|
||||||
SECURITY_VER=7
|
|
||||||
# vars set to reflect https://dev.gentoo.org/~idella4/
|
|
||||||
# first instance of UPS_VER (usptream ver)
|
|
||||||
UPS_VER=0
|
|
||||||
SEC_VER=10
|
|
||||||
QEMU_VER=0
|
|
||||||
# xen-tools's gentoo patches tarball
|
|
||||||
GENTOO_VER=4
|
|
||||||
# xen-tools's gentoo patches version which apply to this specific ebuild
|
|
||||||
GENTOO_GPV=0
|
|
||||||
# xen-tools ovmf's patches
|
|
||||||
OVMF_VER=1
|
|
||||||
|
|
||||||
SEABIOS_VER=1.8.2
|
|
||||||
OVMF_PV=20150629
|
|
||||||
|
|
||||||
[[ -n ${UPSTREAM_VER} ]] && \
|
|
||||||
UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz
|
|
||||||
https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-upstream-patches-${UPS_VER}.tar.gz"
|
|
||||||
[[ -n ${SECURITY_VER} ]] && \
|
|
||||||
SECURITY_PATCHSET_URI="https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz
|
|
||||||
https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-security-patches-${SEC_VER}.tar.gz
|
|
||||||
https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-qemu-patches-${QEMU_VER}.tar.gz"
|
|
||||||
[[ -n ${GENTOO_VER} ]] && \
|
|
||||||
GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-gentoo-patches-${GENTOO_VER}.tar.xz"
|
|
||||||
[[ -n ${OVMF_VER} ]] && \
|
|
||||||
OVMF_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-ovmf-patches-${OVMF_VER}.tar.xz"
|
|
||||||
|
|
||||||
SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/xen-${MY_PV}.tar.gz
|
|
||||||
http://code.coreboot.org/p/seabios/downloads/get/seabios-${SEABIOS_VER}.tar.gz
|
|
||||||
https://dev.gentoo.org/~dlan/distfiles/seabios-${SEABIOS_VER}.tar.gz
|
|
||||||
ovmf? ( https://dev.gentoo.org/~dlan/distfiles/ovmf-${OVMF_PV}.tar.bz2
|
|
||||||
${OVMF_PATCHSET_URI} )
|
|
||||||
${UPSTREAM_PATCHSET_URI}
|
|
||||||
${SECURITY_PATCHSET_URI}
|
|
||||||
${GENTOO_PATCHSET_URI}"
|
|
||||||
|
|
||||||
S="${WORKDIR}/xen-${MY_PV}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="Xen tools including QEMU and xl"
|
|
||||||
HOMEPAGE="http://xen.org/"
|
|
||||||
DOCS=( README docs/README.xen-bugtool )
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0/${MAJOR_V}"
|
|
||||||
# Inclusion of IUSE ocaml on stabalizing requires maintainer of ocaml to (get off his hands and) make
|
|
||||||
# >=dev-lang/ocaml-4 stable
|
|
||||||
# Masked in profiles/eapi-5-files instead
|
|
||||||
IUSE="api custom-cflags debug doc flask hvm qemu ocaml ovmf +pam +qemu-traditional python pygrub screen sdl static-libs system-qemu system-seabios"
|
|
||||||
|
|
||||||
REQUIRED_USE="hvm? ( || ( qemu system-qemu ) )
|
|
||||||
${PYTHON_REQUIRED_USE}
|
|
||||||
pygrub? ( python )
|
|
||||||
ovmf? ( hvm )
|
|
||||||
qemu? ( !system-qemu )"
|
|
||||||
|
|
||||||
COMMON_DEPEND="
|
|
||||||
dev-libs/lzo:2
|
|
||||||
dev-libs/glib:2
|
|
||||||
dev-libs/yajl
|
|
||||||
dev-libs/libaio
|
|
||||||
dev-libs/libgcrypt:0
|
|
||||||
sys-libs/zlib
|
|
||||||
"
|
|
||||||
|
|
||||||
DEPEND="${COMMON_DEPEND}
|
|
||||||
dev-python/lxml[${PYTHON_USEDEP}]
|
|
||||||
x86? ( sys-devel/dev86
|
|
||||||
sys-power/iasl )
|
|
||||||
pam? ( dev-python/pypam[${PYTHON_USEDEP}] )
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
api? ( dev-libs/libxml2
|
|
||||||
net-misc/curl )
|
|
||||||
ovmf? ( $(python_gen_impl_dep sqlite) )
|
|
||||||
!amd64? ( >=sys-apps/dtc-1.4.0 )
|
|
||||||
amd64? ( sys-devel/bin86
|
|
||||||
system-seabios? ( sys-firmware/seabios )
|
|
||||||
sys-firmware/ipxe
|
|
||||||
sys-devel/dev86
|
|
||||||
sys-power/iasl )
|
|
||||||
dev-lang/perl
|
|
||||||
app-misc/pax-utils
|
|
||||||
doc? (
|
|
||||||
app-doc/doxygen
|
|
||||||
dev-python/markdown[${PYTHON_USEDEP}]
|
|
||||||
dev-tex/latex2html[png,gif]
|
|
||||||
media-gfx/graphviz
|
|
||||||
dev-tex/xcolor
|
|
||||||
media-gfx/transfig
|
|
||||||
dev-texlive/texlive-latexextra
|
|
||||||
virtual/latex-base
|
|
||||||
dev-tex/latexmk
|
|
||||||
dev-texlive/texlive-latex
|
|
||||||
dev-texlive/texlive-pictures
|
|
||||||
dev-texlive/texlive-latexrecommended
|
|
||||||
)
|
|
||||||
hvm? ( x11-proto/xproto
|
|
||||||
!net-libs/libiscsi )
|
|
||||||
qemu? (
|
|
||||||
x11-libs/pixman
|
|
||||||
sdl? ( media-libs/libsdl[X] )
|
|
||||||
)
|
|
||||||
system-qemu? ( app-emulation/qemu[xen] )
|
|
||||||
ocaml? ( dev-ml/findlib
|
|
||||||
>=dev-lang/ocaml-4 )"
|
|
||||||
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
sys-apps/iproute2[-minimal]
|
|
||||||
net-misc/bridge-utils
|
|
||||||
screen? (
|
|
||||||
app-misc/screen
|
|
||||||
app-admin/logrotate
|
|
||||||
)"
|
|
||||||
|
|
||||||
# hvmloader is used to bootstrap a fully virtualized kernel
|
|
||||||
# Approved by QA team in bug #144032
|
|
||||||
QA_WX_LOAD="usr/lib/xen/boot/hvmloader
|
|
||||||
usr/share/qemu-xen/qemu/s390-ccw.img"
|
|
||||||
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
python-single-r1_pkg_setup
|
|
||||||
export "CONFIG_LOMOUNT=y"
|
|
||||||
|
|
||||||
#bug 522642, disable compile tools/tests
|
|
||||||
export "CONFIG_TESTS=n"
|
|
||||||
|
|
||||||
if has_version dev-libs/libgcrypt:0; then
|
|
||||||
export "CONFIG_GCRYPT=y"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -z ${XEN_TARGET_ARCH} ]] ; then
|
|
||||||
if use x86 && use amd64; then
|
|
||||||
die "Confusion! Both x86 and amd64 are set in your use flags!"
|
|
||||||
elif use x86; then
|
|
||||||
export XEN_TARGET_ARCH="x86_32"
|
|
||||||
elif use amd64 ; then
|
|
||||||
export XEN_TARGET_ARCH="x86_64"
|
|
||||||
elif use arm; then
|
|
||||||
export XEN_TARGET_ARCH="arm32"
|
|
||||||
elif use arm64; then
|
|
||||||
export XEN_TARGET_ARCH="arm64"
|
|
||||||
else
|
|
||||||
die "Unsupported architecture!"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Upstream's patchset
|
|
||||||
if [[ -n ${UPSTREAM_VER} ]]; then
|
|
||||||
einfo "Try to apply Xen Upstream patch set"
|
|
||||||
EPATCH_SUFFIX="patch" \
|
|
||||||
EPATCH_FORCE="yes" \
|
|
||||||
EPATCH_OPTS="-p1" \
|
|
||||||
epatch "${WORKDIR}"/patches-upstream \
|
|
||||||
"${WORKDIR}"/libexec.patch
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Security patchset
|
|
||||||
if [[ -n ${SECURITY_VER} ]]; then
|
|
||||||
einfo "Try to apply Xen Security patch set"
|
|
||||||
source "${WORKDIR}"/patches-security/${PV}.conf
|
|
||||||
# apply main xen patches
|
|
||||||
# Two parallel systems, both work side by side
|
|
||||||
# Over time they may concdense into one. This will suffice for now
|
|
||||||
EPATCH_SUFFIX="patch"
|
|
||||||
EPATCH_FORCE="yes"
|
|
||||||
for i in ${XEN_SECURITY_MAIN}; do
|
|
||||||
epatch "${WORKDIR}"/patches-security/xen/$i
|
|
||||||
done
|
|
||||||
|
|
||||||
for i in "${WORKDIR}"/xen-sec/xsa*.patch; do
|
|
||||||
epatch $i
|
|
||||||
done
|
|
||||||
|
|
||||||
# apply qemu-traditional patches
|
|
||||||
pushd "${S}"/tools/qemu-xen-traditional/ > /dev/null
|
|
||||||
for i in ${XEN_SECURITY_QEMUT}; do
|
|
||||||
epatch "${WORKDIR}"/patches-security/qemut/$i
|
|
||||||
done
|
|
||||||
for i in "${WORKDIR}"/qemu-patches/qemut/xsa*.patch; do
|
|
||||||
epatch $i
|
|
||||||
done
|
|
||||||
popd > /dev/null
|
|
||||||
|
|
||||||
# apply qemu-xen/upstream patches
|
|
||||||
pushd "${S}"/tools/qemu-xen/ > /dev/null
|
|
||||||
for i in ${XEN_SECURITY_QEMUU}; do
|
|
||||||
epatch "${WORKDIR}"/patches-security/qemuu/$i
|
|
||||||
done
|
|
||||||
for i in "${WORKDIR}"/qemu-patches/qemuu/xsa*.patch; do
|
|
||||||
epatch $i
|
|
||||||
done
|
|
||||||
popd > /dev/null
|
|
||||||
fi
|
|
||||||
|
|
||||||
# move before Gentoo patch, one patch should apply to seabios, to fix gcc-4.5.x build err
|
|
||||||
mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die
|
|
||||||
pushd tools/firmware/ > /dev/null
|
|
||||||
ln -s seabios-dir-remote seabios-dir || die
|
|
||||||
popd > /dev/null
|
|
||||||
|
|
||||||
# Gentoo's patchset
|
|
||||||
if [[ -n ${GENTOO_VER} && -n ${GENTOO_GPV} ]]; then
|
|
||||||
einfo "Try to apply Gentoo specific patch set"
|
|
||||||
source "${FILESDIR}"/gentoo-patches.conf
|
|
||||||
_gpv=_gpv_${PN/-/_}_${PV//./}_${GENTOO_GPV}
|
|
||||||
for i in ${!_gpv}; do
|
|
||||||
EPATCH_SUFFIX="patch" \
|
|
||||||
EPATCH_FORCE="yes" \
|
|
||||||
epatch "${WORKDIR}"/patches-gentoo/$i
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Ovmf's patchset
|
|
||||||
if [[ -n ${OVMF_VER} ]] && use ovmf; then
|
|
||||||
einfo "Try to apply Ovmf patch set"
|
|
||||||
pushd "${WORKDIR}"/ovmf-*/ > /dev/null
|
|
||||||
EPATCH_SUFFIX="patch" \
|
|
||||||
EPATCH_FORCE="yes" \
|
|
||||||
EPATCH_OPTS="-p1" \
|
|
||||||
epatch "${WORKDIR}"/patches-ovmf
|
|
||||||
popd > /dev/null
|
|
||||||
mv ../ovmf-${OVMF_PV} tools/firmware/ovmf-dir-remote || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die
|
|
||||||
|
|
||||||
# Fix texi2html build error with new texi2html, qemu.doc.html
|
|
||||||
sed -i -e "/texi2html -monolithic/s/-number//" tools/qemu-xen-traditional/Makefile || die
|
|
||||||
|
|
||||||
use api || sed -e "/SUBDIRS-\$(LIBXENAPI_BINDINGS) += libxen/d" -i tools/Makefile || die
|
|
||||||
sed -e 's:$(MAKE) PYTHON=$(PYTHON) subdirs-$@:LC_ALL=C "$(MAKE)" PYTHON=$(PYTHON) subdirs-$@:' \
|
|
||||||
-i tools/firmware/Makefile || die
|
|
||||||
|
|
||||||
# Drop .config, fixes to gcc-4.6
|
|
||||||
sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
|
|
||||||
|
|
||||||
# if the user *really* wants to use their own custom-cflags, let them
|
|
||||||
if use custom-cflags; then
|
|
||||||
einfo "User wants their own CFLAGS - removing defaults"
|
|
||||||
|
|
||||||
# try and remove all the default cflags
|
|
||||||
find "${S}" \( -name Makefile -o -name Rules.mk -o -name Config.mk \) \
|
|
||||||
-exec sed \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-i {} + || die "failed to re-set custom-cflags"
|
|
||||||
else
|
|
||||||
unset CFLAGS
|
|
||||||
unset LDFLAGS
|
|
||||||
unset ASFLAGS
|
|
||||||
unset CPPFLAGS
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use pygrub; then
|
|
||||||
sed -e '/^SUBDIRS-y += pygrub/d' -i tools/Makefile || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use python; then
|
|
||||||
sed -e '/^SUBDIRS-y += python$/d' -i tools/Makefile || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use hvm; then
|
|
||||||
sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die
|
|
||||||
# Bug 351648
|
|
||||||
elif ! use x86 && ! has x86 $(get_all_abis); then
|
|
||||||
mkdir -p "${WORKDIR}"/extra-headers/gnu || die
|
|
||||||
touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h || die
|
|
||||||
export CPATH="${WORKDIR}"/extra-headers
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use qemu; then
|
|
||||||
if use sdl; then
|
|
||||||
sed -i -e "s:\$\$source/configure:\0 --enable-sdl:" \
|
|
||||||
tools/Makefile || die
|
|
||||||
else
|
|
||||||
sed -i -e "s:\${QEMU_ROOT\:\-\.}/configure:\0 --disable-sdl:" \
|
|
||||||
tools/qemu-xen-traditional/xen-setup || die
|
|
||||||
sed -i -e "s:\$\$source/configure:\0 --disable-sdl:" \
|
|
||||||
tools/Makefile || die
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
# Don't bother with qemu, only needed for fully virtualised guests
|
|
||||||
sed -e "s:install-tools\: tools/qemu-xen-traditional-dir:install-tools\: :g" -i Makefile || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Reset bash completion dir; Bug 472438
|
|
||||||
sed -e "s:^BASH_COMPLETION_DIR ?= \$(CONFIG_DIR)/bash_completion.d:BASH_COMPLETION_DIR ?= $(get_bashcompdir):" \
|
|
||||||
-i Config.mk || die
|
|
||||||
sed -i -e "/bash-completion/s/xl\.sh/xl/g" tools/libxl/Makefile || die
|
|
||||||
|
|
||||||
# xencommons, Bug #492332, sed lighter weight than patching
|
|
||||||
sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \
|
|
||||||
-i tools/hotplug/Linux/init.d/xencommons.in || die
|
|
||||||
|
|
||||||
# respect multilib, usr/lib/libcacard.so.0.0.0
|
|
||||||
sed -e "/^libdir=/s/\/lib/\/$(get_libdir)/" \
|
|
||||||
-i tools/qemu-xen/configure || die
|
|
||||||
|
|
||||||
#bug 518136, don't build 32bit exactuable for nomultilib profile
|
|
||||||
if [[ "${ARCH}" == 'amd64' ]] && ! has_multilib_profile; then
|
|
||||||
sed -i -e "/x86_emulator/d" tools/tests/Makefile || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# use /var instead of /var/lib, consistat with previous ebuild
|
|
||||||
sed -i -e "/XEN_LOCK_DIR=/s/\$localstatedir/\/var/g" \
|
|
||||||
m4/paths.m4 configure tools/configure || die
|
|
||||||
# use /run instead of /var/run
|
|
||||||
sed -i -e "/XEN_RUN_DIR=/s/\$localstatedir//g" \
|
|
||||||
m4/paths.m4 configure tools/configure || die
|
|
||||||
|
|
||||||
# uncomment lines in xl.conf
|
|
||||||
sed -e 's:^#autoballoon=:autoballoon=:' \
|
|
||||||
-e 's:^#lockfile=:lockfile=:' \
|
|
||||||
-e 's:^#vif.default.script=:vif.default.script=:' \
|
|
||||||
-i tools/examples/xl.conf || die
|
|
||||||
|
|
||||||
epatch_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local myconf="--prefix=${PREFIX}/usr \
|
|
||||||
--libdir=${PREFIX}/usr/$(get_libdir) \
|
|
||||||
--libexecdir=${PREFIX}/usr/libexec \
|
|
||||||
--disable-werror \
|
|
||||||
--disable-xen \
|
|
||||||
--enable-tools \
|
|
||||||
--enable-docs \
|
|
||||||
$(use_with system-qemu) \
|
|
||||||
$(use_enable pam) \
|
|
||||||
$(use_enable api xenapi) \
|
|
||||||
$(use_enable ovmf) \
|
|
||||||
$(use_enable ocaml ocamltools) \
|
|
||||||
--with-xenstored=$(usex ocaml 'oxenstored' 'xenstored') \
|
|
||||||
"
|
|
||||||
|
|
||||||
use system-seabios && myconf+=" --with-system-seabios=/usr/share/seabios/bios.bin"
|
|
||||||
use qemu || myconf+=" --with-system-qemu"
|
|
||||||
use amd64 && myconf+=" $(use_enable qemu-traditional)"
|
|
||||||
econf ${myconf}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
export VARTEXFONTS="${T}/fonts"
|
|
||||||
local myopt
|
|
||||||
use debug && myopt="${myopt} debug=y"
|
|
||||||
|
|
||||||
if test-flag-CC -fno-strict-overflow; then
|
|
||||||
append-flags -fno-strict-overflow
|
|
||||||
fi
|
|
||||||
|
|
||||||
emake V=1 CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" -C tools ${myopt}
|
|
||||||
|
|
||||||
use doc && emake -C docs txt html
|
|
||||||
emake -C docs man-pages
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# Override auto-detection in the build system, bug #382573
|
|
||||||
export INITD_DIR=/tmp/init.d
|
|
||||||
export CONFIG_LEAF_DIR=../tmp/default
|
|
||||||
|
|
||||||
# Let the build system compile installed Python modules.
|
|
||||||
local PYTHONDONTWRITEBYTECODE
|
|
||||||
export PYTHONDONTWRITEBYTECODE
|
|
||||||
|
|
||||||
emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" \
|
|
||||||
XEN_PYTHON_NATIVE_INSTALL=y install-tools
|
|
||||||
|
|
||||||
# Fix the remaining Python shebangs.
|
|
||||||
python_fix_shebang "${D}"
|
|
||||||
|
|
||||||
# Remove RedHat-specific stuff
|
|
||||||
rm -rf "${D}"tmp || die
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs
|
|
||||||
|
|
||||||
dohtml -r docs/
|
|
||||||
docinto pdf
|
|
||||||
dodoc ${DOCS[@]}
|
|
||||||
[ -d "${D}"/usr/share/doc/xen ] && mv "${D}"/usr/share/doc/xen/* "${D}"/usr/share/doc/${PF}/html
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -rf "${D}"/usr/share/doc/xen/
|
|
||||||
doman docs/man?/*
|
|
||||||
|
|
||||||
newconfd "${FILESDIR}"/xendomains.confd xendomains
|
|
||||||
newconfd "${FILESDIR}"/xenstored.confd xenstored
|
|
||||||
newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled
|
|
||||||
newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains
|
|
||||||
newinitd "${FILESDIR}"/xenstored.initd xenstored
|
|
||||||
newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled
|
|
||||||
newinitd "${FILESDIR}"/xencommons.initd xencommons
|
|
||||||
newconfd "${FILESDIR}"/xencommons.confd xencommons
|
|
||||||
newinitd "${FILESDIR}"/xenqemudev.initd xenqemudev
|
|
||||||
newconfd "${FILESDIR}"/xenqemudev.confd xenqemudev
|
|
||||||
|
|
||||||
if use screen; then
|
|
||||||
cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains || die
|
|
||||||
cp "${FILESDIR}"/xen-consoles.logrotate "${D}"/etc/xen/ || die
|
|
||||||
keepdir /var/log/xen-consoles
|
|
||||||
fi
|
|
||||||
|
|
||||||
# For -static-libs wrt Bug 384355
|
|
||||||
if ! use static-libs; then
|
|
||||||
rm -f "${D}"usr/$(get_libdir)/*.a "${D}"usr/$(get_libdir)/ocaml/*/*.a
|
|
||||||
fi
|
|
||||||
|
|
||||||
# for xendomains
|
|
||||||
keepdir /etc/xen/auto
|
|
||||||
|
|
||||||
# Remove files failing QA AFTER emake installs them, avoiding seeking absent files
|
|
||||||
find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \
|
|
||||||
-o -name openbios-ppc -o -name palcode-clipper \) -delete || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "Official Xen Guide and the offical wiki page:"
|
|
||||||
elog "https://wiki.gentoo.org/wiki/Xen"
|
|
||||||
elog "http://wiki.xen.org/wiki/Main_Page"
|
|
||||||
elog ""
|
|
||||||
elog "Recommended to utilise the xencommons script to config sytem At boot"
|
|
||||||
elog "Add by use of rc-update on completion of the install"
|
|
||||||
|
|
||||||
if ! use hvm; then
|
|
||||||
echo
|
|
||||||
elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm"
|
|
||||||
elog "support enable the hvm use flag."
|
|
||||||
elog "An x86 or amd64 system is required to build HVM support."
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use qemu; then
|
|
||||||
elog "The qemu-bridge-helper is renamed to the xen-bridge-helper in the in source"
|
|
||||||
elog "build of qemu. This allows for app-emulation/qemu to be emerged concurrently"
|
|
||||||
elog "with the qemu capable xen. It is up to the user to distinguish between and utilise"
|
|
||||||
elog "the qemu-bridge-helper and the xen-bridge-helper. File bugs of any issues that arise"
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,469 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 )
|
|
||||||
PYTHON_REQ_USE='ncurses,xml,threads'
|
|
||||||
|
|
||||||
inherit eutils bash-completion-r1 flag-o-matic multilib python-single-r1 toolchain-funcs versionator
|
|
||||||
|
|
||||||
MY_PV=${PV/_/-}
|
|
||||||
MAJOR_V="$(get_version_component_range 1-2)"
|
|
||||||
|
|
||||||
if [[ $PV == *9999 ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
KEYWORDS=""
|
|
||||||
REPO="xen.git"
|
|
||||||
EGIT_REPO_URI="git://xenbits.xen.org/${REPO}"
|
|
||||||
S="${WORKDIR}/${REPO}"
|
|
||||||
else
|
|
||||||
KEYWORDS="~amd64 ~arm ~x86"
|
|
||||||
UPSTREAM_VER=0
|
|
||||||
SECURITY_VER=7
|
|
||||||
# vars set to reflect https://dev.gentoo.org/~idella4/
|
|
||||||
# first instance of UPS_VER (usptream ver)
|
|
||||||
UPS_VER=0
|
|
||||||
SEC_VER=10
|
|
||||||
QEMU_VER=3
|
|
||||||
# xen-tools's gentoo patches tarball
|
|
||||||
GENTOO_VER=4
|
|
||||||
# xen-tools's gentoo patches version which apply to this specific ebuild
|
|
||||||
GENTOO_GPV=0
|
|
||||||
# xen-tools ovmf's patches
|
|
||||||
OVMF_VER=1
|
|
||||||
|
|
||||||
SEABIOS_VER=1.8.2
|
|
||||||
OVMF_PV=20150629
|
|
||||||
|
|
||||||
[[ -n ${UPSTREAM_VER} ]] && \
|
|
||||||
UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz
|
|
||||||
https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-upstream-patches-${UPS_VER}.tar.gz"
|
|
||||||
[[ -n ${SECURITY_VER} ]] && \
|
|
||||||
SECURITY_PATCHSET_URI="https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz
|
|
||||||
https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-security-patches-${SEC_VER}.tar.gz
|
|
||||||
https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-qemu-patches-${QEMU_VER}.tar.gz"
|
|
||||||
[[ -n ${GENTOO_VER} ]] && \
|
|
||||||
GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-gentoo-patches-${GENTOO_VER}.tar.xz"
|
|
||||||
[[ -n ${OVMF_VER} ]] && \
|
|
||||||
OVMF_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-ovmf-patches-${OVMF_VER}.tar.xz"
|
|
||||||
|
|
||||||
SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/xen-${MY_PV}.tar.gz
|
|
||||||
http://code.coreboot.org/p/seabios/downloads/get/seabios-${SEABIOS_VER}.tar.gz
|
|
||||||
https://dev.gentoo.org/~dlan/distfiles/seabios-${SEABIOS_VER}.tar.gz
|
|
||||||
ovmf? ( https://dev.gentoo.org/~dlan/distfiles/ovmf-${OVMF_PV}.tar.bz2
|
|
||||||
${OVMF_PATCHSET_URI} )
|
|
||||||
${UPSTREAM_PATCHSET_URI}
|
|
||||||
${SECURITY_PATCHSET_URI}
|
|
||||||
${GENTOO_PATCHSET_URI}"
|
|
||||||
|
|
||||||
S="${WORKDIR}/xen-${MY_PV}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="Xen tools including QEMU and xl"
|
|
||||||
HOMEPAGE="http://xen.org/"
|
|
||||||
DOCS=( README docs/README.xen-bugtool )
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0/${MAJOR_V}"
|
|
||||||
# Inclusion of IUSE ocaml on stabalizing requires maintainer of ocaml to (get off his hands and) make
|
|
||||||
# >=dev-lang/ocaml-4 stable
|
|
||||||
# Masked in profiles/eapi-5-files instead
|
|
||||||
IUSE="api custom-cflags debug doc flask hvm qemu ocaml ovmf +pam +qemu-traditional python pygrub screen sdl static-libs system-qemu system-seabios"
|
|
||||||
|
|
||||||
REQUIRED_USE="hvm? ( || ( qemu system-qemu ) )
|
|
||||||
${PYTHON_REQUIRED_USE}
|
|
||||||
pygrub? ( python )
|
|
||||||
ovmf? ( hvm )
|
|
||||||
qemu? ( !system-qemu )"
|
|
||||||
|
|
||||||
COMMON_DEPEND="
|
|
||||||
dev-libs/lzo:2
|
|
||||||
dev-libs/glib:2
|
|
||||||
dev-libs/yajl
|
|
||||||
dev-libs/libaio
|
|
||||||
dev-libs/libgcrypt:0
|
|
||||||
sys-libs/zlib
|
|
||||||
"
|
|
||||||
|
|
||||||
DEPEND="${COMMON_DEPEND}
|
|
||||||
dev-python/lxml[${PYTHON_USEDEP}]
|
|
||||||
x86? ( sys-devel/dev86
|
|
||||||
sys-power/iasl )
|
|
||||||
pam? ( dev-python/pypam[${PYTHON_USEDEP}] )
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
api? ( dev-libs/libxml2
|
|
||||||
net-misc/curl )
|
|
||||||
ovmf? ( $(python_gen_impl_dep sqlite) )
|
|
||||||
!amd64? ( >=sys-apps/dtc-1.4.0 )
|
|
||||||
amd64? ( sys-devel/bin86
|
|
||||||
system-seabios? ( sys-firmware/seabios )
|
|
||||||
sys-firmware/ipxe
|
|
||||||
sys-devel/dev86
|
|
||||||
sys-power/iasl )
|
|
||||||
dev-lang/perl
|
|
||||||
app-misc/pax-utils
|
|
||||||
doc? (
|
|
||||||
app-doc/doxygen
|
|
||||||
dev-python/markdown[${PYTHON_USEDEP}]
|
|
||||||
dev-tex/latex2html[png,gif]
|
|
||||||
media-gfx/graphviz
|
|
||||||
dev-tex/xcolor
|
|
||||||
media-gfx/transfig
|
|
||||||
dev-texlive/texlive-latexextra
|
|
||||||
virtual/latex-base
|
|
||||||
dev-tex/latexmk
|
|
||||||
dev-texlive/texlive-latex
|
|
||||||
dev-texlive/texlive-pictures
|
|
||||||
dev-texlive/texlive-latexrecommended
|
|
||||||
)
|
|
||||||
hvm? ( x11-proto/xproto
|
|
||||||
!net-libs/libiscsi )
|
|
||||||
qemu? (
|
|
||||||
x11-libs/pixman
|
|
||||||
sdl? ( media-libs/libsdl[X] )
|
|
||||||
)
|
|
||||||
system-qemu? ( app-emulation/qemu[xen] )
|
|
||||||
ocaml? ( dev-ml/findlib
|
|
||||||
>=dev-lang/ocaml-4 )"
|
|
||||||
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
sys-apps/iproute2[-minimal]
|
|
||||||
net-misc/bridge-utils
|
|
||||||
screen? (
|
|
||||||
app-misc/screen
|
|
||||||
app-admin/logrotate
|
|
||||||
)"
|
|
||||||
|
|
||||||
# hvmloader is used to bootstrap a fully virtualized kernel
|
|
||||||
# Approved by QA team in bug #144032
|
|
||||||
QA_WX_LOAD="usr/lib/xen/boot/hvmloader
|
|
||||||
usr/share/qemu-xen/qemu/s390-ccw.img"
|
|
||||||
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
python-single-r1_pkg_setup
|
|
||||||
export "CONFIG_LOMOUNT=y"
|
|
||||||
|
|
||||||
#bug 522642, disable compile tools/tests
|
|
||||||
export "CONFIG_TESTS=n"
|
|
||||||
|
|
||||||
if has_version dev-libs/libgcrypt:0; then
|
|
||||||
export "CONFIG_GCRYPT=y"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -z ${XEN_TARGET_ARCH} ]] ; then
|
|
||||||
if use x86 && use amd64; then
|
|
||||||
die "Confusion! Both x86 and amd64 are set in your use flags!"
|
|
||||||
elif use x86; then
|
|
||||||
export XEN_TARGET_ARCH="x86_32"
|
|
||||||
elif use amd64 ; then
|
|
||||||
export XEN_TARGET_ARCH="x86_64"
|
|
||||||
elif use arm; then
|
|
||||||
export XEN_TARGET_ARCH="arm32"
|
|
||||||
elif use arm64; then
|
|
||||||
export XEN_TARGET_ARCH="arm64"
|
|
||||||
else
|
|
||||||
die "Unsupported architecture!"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Upstream's patchset
|
|
||||||
if [[ -n ${UPSTREAM_VER} ]]; then
|
|
||||||
einfo "Try to apply Xen Upstream patch set"
|
|
||||||
EPATCH_SUFFIX="patch" \
|
|
||||||
EPATCH_FORCE="yes" \
|
|
||||||
EPATCH_OPTS="-p1" \
|
|
||||||
epatch "${WORKDIR}"/patches-upstream \
|
|
||||||
"${WORKDIR}"/libexec.patch
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Security patchset
|
|
||||||
if [[ -n ${SECURITY_VER} ]]; then
|
|
||||||
einfo "Try to apply Xen Security patch set"
|
|
||||||
source "${WORKDIR}"/patches-security/${PV}.conf
|
|
||||||
# apply main xen patches
|
|
||||||
# Two parallel systems, both work side by side
|
|
||||||
# Over time they may concdense into one. This will suffice for now
|
|
||||||
EPATCH_SUFFIX="patch"
|
|
||||||
EPATCH_FORCE="yes"
|
|
||||||
for i in ${XEN_SECURITY_MAIN}; do
|
|
||||||
epatch "${WORKDIR}"/patches-security/xen/$i
|
|
||||||
done
|
|
||||||
|
|
||||||
for i in "${WORKDIR}"/xen-sec/xsa*.patch; do
|
|
||||||
epatch $i
|
|
||||||
done
|
|
||||||
|
|
||||||
# apply qemu-traditional patches
|
|
||||||
pushd "${S}"/tools/qemu-xen-traditional/ > /dev/null
|
|
||||||
for i in ${XEN_SECURITY_QEMUT}; do
|
|
||||||
epatch "${WORKDIR}"/patches-security/qemut/$i
|
|
||||||
done
|
|
||||||
for i in "${WORKDIR}"/qemu-patches/qemut/xsa*.patch; do
|
|
||||||
epatch $i
|
|
||||||
done
|
|
||||||
popd > /dev/null
|
|
||||||
|
|
||||||
# apply qemu-xen/upstream patches
|
|
||||||
pushd "${S}"/tools/qemu-xen/ > /dev/null
|
|
||||||
for i in ${XEN_SECURITY_QEMUU}; do
|
|
||||||
epatch "${WORKDIR}"/patches-security/qemuu/$i
|
|
||||||
done
|
|
||||||
for i in "${WORKDIR}"/qemu-patches/qemuu/xsa*.patch; do
|
|
||||||
epatch $i
|
|
||||||
done
|
|
||||||
popd > /dev/null
|
|
||||||
fi
|
|
||||||
|
|
||||||
# move before Gentoo patch, one patch should apply to seabios, to fix gcc-4.5.x build err
|
|
||||||
mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die
|
|
||||||
pushd tools/firmware/ > /dev/null
|
|
||||||
ln -s seabios-dir-remote seabios-dir || die
|
|
||||||
popd > /dev/null
|
|
||||||
|
|
||||||
# Gentoo's patchset
|
|
||||||
if [[ -n ${GENTOO_VER} && -n ${GENTOO_GPV} ]]; then
|
|
||||||
einfo "Try to apply Gentoo specific patch set"
|
|
||||||
source "${FILESDIR}"/gentoo-patches.conf
|
|
||||||
_gpv=_gpv_${PN/-/_}_${PV//./}_${GENTOO_GPV}
|
|
||||||
for i in ${!_gpv}; do
|
|
||||||
EPATCH_SUFFIX="patch" \
|
|
||||||
EPATCH_FORCE="yes" \
|
|
||||||
epatch "${WORKDIR}"/patches-gentoo/$i
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Ovmf's patchset
|
|
||||||
if [[ -n ${OVMF_VER} ]] && use ovmf; then
|
|
||||||
einfo "Try to apply Ovmf patch set"
|
|
||||||
pushd "${WORKDIR}"/ovmf-*/ > /dev/null
|
|
||||||
EPATCH_SUFFIX="patch" \
|
|
||||||
EPATCH_FORCE="yes" \
|
|
||||||
EPATCH_OPTS="-p1" \
|
|
||||||
epatch "${WORKDIR}"/patches-ovmf
|
|
||||||
popd > /dev/null
|
|
||||||
mv ../ovmf-${OVMF_PV} tools/firmware/ovmf-dir-remote || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die
|
|
||||||
|
|
||||||
# Fix texi2html build error with new texi2html, qemu.doc.html
|
|
||||||
sed -i -e "/texi2html -monolithic/s/-number//" tools/qemu-xen-traditional/Makefile || die
|
|
||||||
|
|
||||||
use api || sed -e "/SUBDIRS-\$(LIBXENAPI_BINDINGS) += libxen/d" -i tools/Makefile || die
|
|
||||||
sed -e 's:$(MAKE) PYTHON=$(PYTHON) subdirs-$@:LC_ALL=C "$(MAKE)" PYTHON=$(PYTHON) subdirs-$@:' \
|
|
||||||
-i tools/firmware/Makefile || die
|
|
||||||
|
|
||||||
# Drop .config, fixes to gcc-4.6
|
|
||||||
sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
|
|
||||||
|
|
||||||
# if the user *really* wants to use their own custom-cflags, let them
|
|
||||||
if use custom-cflags; then
|
|
||||||
einfo "User wants their own CFLAGS - removing defaults"
|
|
||||||
|
|
||||||
# try and remove all the default cflags
|
|
||||||
find "${S}" \( -name Makefile -o -name Rules.mk -o -name Config.mk \) \
|
|
||||||
-exec sed \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-i {} + || die "failed to re-set custom-cflags"
|
|
||||||
else
|
|
||||||
unset CFLAGS
|
|
||||||
unset LDFLAGS
|
|
||||||
unset ASFLAGS
|
|
||||||
unset CPPFLAGS
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use pygrub; then
|
|
||||||
sed -e '/^SUBDIRS-y += pygrub/d' -i tools/Makefile || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use python; then
|
|
||||||
sed -e '/^SUBDIRS-y += python$/d' -i tools/Makefile || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use hvm; then
|
|
||||||
sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die
|
|
||||||
# Bug 351648
|
|
||||||
elif ! use x86 && ! has x86 $(get_all_abis); then
|
|
||||||
mkdir -p "${WORKDIR}"/extra-headers/gnu || die
|
|
||||||
touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h || die
|
|
||||||
export CPATH="${WORKDIR}"/extra-headers
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use qemu; then
|
|
||||||
if use sdl; then
|
|
||||||
sed -i -e "s:\$\$source/configure:\0 --enable-sdl:" \
|
|
||||||
tools/Makefile || die
|
|
||||||
else
|
|
||||||
sed -i -e "s:\${QEMU_ROOT\:\-\.}/configure:\0 --disable-sdl:" \
|
|
||||||
tools/qemu-xen-traditional/xen-setup || die
|
|
||||||
sed -i -e "s:\$\$source/configure:\0 --disable-sdl:" \
|
|
||||||
tools/Makefile || die
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
# Don't bother with qemu, only needed for fully virtualised guests
|
|
||||||
sed -e "s:install-tools\: tools/qemu-xen-traditional-dir:install-tools\: :g" -i Makefile || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Reset bash completion dir; Bug 472438
|
|
||||||
sed -e "s:^BASH_COMPLETION_DIR ?= \$(CONFIG_DIR)/bash_completion.d:BASH_COMPLETION_DIR ?= $(get_bashcompdir):" \
|
|
||||||
-i Config.mk || die
|
|
||||||
sed -i -e "/bash-completion/s/xl\.sh/xl/g" tools/libxl/Makefile || die
|
|
||||||
|
|
||||||
# xencommons, Bug #492332, sed lighter weight than patching
|
|
||||||
sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \
|
|
||||||
-i tools/hotplug/Linux/init.d/xencommons.in || die
|
|
||||||
|
|
||||||
# respect multilib, usr/lib/libcacard.so.0.0.0
|
|
||||||
sed -e "/^libdir=/s/\/lib/\/$(get_libdir)/" \
|
|
||||||
-i tools/qemu-xen/configure || die
|
|
||||||
|
|
||||||
#bug 518136, don't build 32bit exactuable for nomultilib profile
|
|
||||||
if [[ "${ARCH}" == 'amd64' ]] && ! has_multilib_profile; then
|
|
||||||
sed -i -e "/x86_emulator/d" tools/tests/Makefile || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# use /var instead of /var/lib, consistat with previous ebuild
|
|
||||||
sed -i -e "/XEN_LOCK_DIR=/s/\$localstatedir/\/var/g" \
|
|
||||||
m4/paths.m4 configure tools/configure || die
|
|
||||||
# use /run instead of /var/run
|
|
||||||
sed -i -e "/XEN_RUN_DIR=/s/\$localstatedir//g" \
|
|
||||||
m4/paths.m4 configure tools/configure || die
|
|
||||||
|
|
||||||
# uncomment lines in xl.conf
|
|
||||||
sed -e 's:^#autoballoon=:autoballoon=:' \
|
|
||||||
-e 's:^#lockfile=:lockfile=:' \
|
|
||||||
-e 's:^#vif.default.script=:vif.default.script=:' \
|
|
||||||
-i tools/examples/xl.conf || die
|
|
||||||
|
|
||||||
epatch_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local myconf="--prefix=${PREFIX}/usr \
|
|
||||||
--libdir=${PREFIX}/usr/$(get_libdir) \
|
|
||||||
--libexecdir=${PREFIX}/usr/libexec \
|
|
||||||
--disable-werror \
|
|
||||||
--disable-xen \
|
|
||||||
--enable-tools \
|
|
||||||
--enable-docs \
|
|
||||||
$(use_with system-qemu) \
|
|
||||||
$(use_enable pam) \
|
|
||||||
$(use_enable api xenapi) \
|
|
||||||
$(use_enable ovmf) \
|
|
||||||
$(use_enable ocaml ocamltools) \
|
|
||||||
--with-xenstored=$(usex ocaml 'oxenstored' 'xenstored') \
|
|
||||||
"
|
|
||||||
|
|
||||||
use system-seabios && myconf+=" --with-system-seabios=/usr/share/seabios/bios.bin"
|
|
||||||
use qemu || myconf+=" --with-system-qemu"
|
|
||||||
use amd64 && myconf+=" $(use_enable qemu-traditional)"
|
|
||||||
econf ${myconf}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
export VARTEXFONTS="${T}/fonts"
|
|
||||||
local myopt
|
|
||||||
use debug && myopt="${myopt} debug=y"
|
|
||||||
|
|
||||||
if test-flag-CC -fno-strict-overflow; then
|
|
||||||
append-flags -fno-strict-overflow
|
|
||||||
fi
|
|
||||||
|
|
||||||
emake V=1 CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" -C tools ${myopt}
|
|
||||||
|
|
||||||
use doc && emake -C docs txt html
|
|
||||||
emake -C docs man-pages
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# Override auto-detection in the build system, bug #382573
|
|
||||||
export INITD_DIR=/tmp/init.d
|
|
||||||
export CONFIG_LEAF_DIR=../tmp/default
|
|
||||||
|
|
||||||
# Let the build system compile installed Python modules.
|
|
||||||
local PYTHONDONTWRITEBYTECODE
|
|
||||||
export PYTHONDONTWRITEBYTECODE
|
|
||||||
|
|
||||||
emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" \
|
|
||||||
XEN_PYTHON_NATIVE_INSTALL=y install-tools
|
|
||||||
|
|
||||||
# Fix the remaining Python shebangs.
|
|
||||||
python_fix_shebang "${D}"
|
|
||||||
|
|
||||||
# Remove RedHat-specific stuff
|
|
||||||
rm -rf "${D}"tmp || die
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs
|
|
||||||
|
|
||||||
dohtml -r docs/
|
|
||||||
docinto pdf
|
|
||||||
dodoc ${DOCS[@]}
|
|
||||||
[ -d "${D}"/usr/share/doc/xen ] && mv "${D}"/usr/share/doc/xen/* "${D}"/usr/share/doc/${PF}/html
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -rf "${D}"/usr/share/doc/xen/
|
|
||||||
doman docs/man?/*
|
|
||||||
|
|
||||||
newconfd "${FILESDIR}"/xendomains.confd xendomains
|
|
||||||
newconfd "${FILESDIR}"/xenstored.confd xenstored
|
|
||||||
newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled
|
|
||||||
newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains
|
|
||||||
newinitd "${FILESDIR}"/xenstored.initd xenstored
|
|
||||||
newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled
|
|
||||||
newinitd "${FILESDIR}"/xencommons.initd xencommons
|
|
||||||
newconfd "${FILESDIR}"/xencommons.confd xencommons
|
|
||||||
newinitd "${FILESDIR}"/xenqemudev.initd xenqemudev
|
|
||||||
newconfd "${FILESDIR}"/xenqemudev.confd xenqemudev
|
|
||||||
|
|
||||||
if use screen; then
|
|
||||||
cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains || die
|
|
||||||
cp "${FILESDIR}"/xen-consoles.logrotate "${D}"/etc/xen/ || die
|
|
||||||
keepdir /var/log/xen-consoles
|
|
||||||
fi
|
|
||||||
|
|
||||||
# For -static-libs wrt Bug 384355
|
|
||||||
if ! use static-libs; then
|
|
||||||
rm -f "${D}"usr/$(get_libdir)/*.a "${D}"usr/$(get_libdir)/ocaml/*/*.a
|
|
||||||
fi
|
|
||||||
|
|
||||||
# for xendomains
|
|
||||||
keepdir /etc/xen/auto
|
|
||||||
|
|
||||||
# Remove files failing QA AFTER emake installs them, avoiding seeking absent files
|
|
||||||
find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \
|
|
||||||
-o -name openbios-ppc -o -name palcode-clipper \) -delete || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "Official Xen Guide and the offical wiki page:"
|
|
||||||
elog "https://wiki.gentoo.org/wiki/Xen"
|
|
||||||
elog "http://wiki.xen.org/wiki/Main_Page"
|
|
||||||
elog ""
|
|
||||||
elog "Recommended to utilise the xencommons script to config sytem At boot"
|
|
||||||
elog "Add by use of rc-update on completion of the install"
|
|
||||||
|
|
||||||
if ! use hvm; then
|
|
||||||
echo
|
|
||||||
elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm"
|
|
||||||
elog "support enable the hvm use flag."
|
|
||||||
elog "An x86 or amd64 system is required to build HVM support."
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use qemu; then
|
|
||||||
elog "The qemu-bridge-helper is renamed to the xen-bridge-helper in the in source"
|
|
||||||
elog "build of qemu. This allows for app-emulation/qemu to be emerged concurrently"
|
|
||||||
elog "with the qemu capable xen. It is up to the user to distinguish between and utilise"
|
|
||||||
elog "the qemu-bridge-helper and the xen-bridge-helper. File bugs of any issues that arise"
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,469 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 )
|
|
||||||
PYTHON_REQ_USE='ncurses,xml,threads'
|
|
||||||
|
|
||||||
inherit eutils bash-completion-r1 flag-o-matic multilib python-single-r1 toolchain-funcs versionator
|
|
||||||
|
|
||||||
MY_PV=${PV/_/-}
|
|
||||||
MAJOR_V="$(get_version_component_range 1-2)"
|
|
||||||
|
|
||||||
if [[ $PV == *9999 ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
KEYWORDS=""
|
|
||||||
REPO="xen.git"
|
|
||||||
EGIT_REPO_URI="git://xenbits.xen.org/${REPO}"
|
|
||||||
S="${WORKDIR}/${REPO}"
|
|
||||||
else
|
|
||||||
KEYWORDS="amd64 ~arm ~arm64 x86"
|
|
||||||
UPSTREAM_VER=0
|
|
||||||
SECURITY_VER=7
|
|
||||||
# vars set to reflect https://dev.gentoo.org/~idella4/
|
|
||||||
# first instance of UPS_VER (usptream ver)
|
|
||||||
UPS_VER=0
|
|
||||||
SEC_VER=9
|
|
||||||
QEMU_VER=0
|
|
||||||
# xen-tools's gentoo patches tarball
|
|
||||||
GENTOO_VER=4
|
|
||||||
# xen-tools's gentoo patches version which apply to this specific ebuild
|
|
||||||
GENTOO_GPV=0
|
|
||||||
# xen-tools ovmf's patches
|
|
||||||
OVMF_VER=1
|
|
||||||
|
|
||||||
SEABIOS_VER=1.8.2
|
|
||||||
OVMF_PV=20150629
|
|
||||||
|
|
||||||
[[ -n ${UPSTREAM_VER} ]] && \
|
|
||||||
UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz
|
|
||||||
https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-upstream-patches-${UPS_VER}.tar.gz"
|
|
||||||
[[ -n ${SECURITY_VER} ]] && \
|
|
||||||
SECURITY_PATCHSET_URI="https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz
|
|
||||||
https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-security-patches-${SEC_VER}.tar.gz
|
|
||||||
https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-qemu-patches-${QEMU_VER}.tar.gz"
|
|
||||||
[[ -n ${GENTOO_VER} ]] && \
|
|
||||||
GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-gentoo-patches-${GENTOO_VER}.tar.xz"
|
|
||||||
[[ -n ${OVMF_VER} ]] && \
|
|
||||||
OVMF_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-ovmf-patches-${OVMF_VER}.tar.xz"
|
|
||||||
|
|
||||||
SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/xen-${MY_PV}.tar.gz
|
|
||||||
http://code.coreboot.org/p/seabios/downloads/get/seabios-${SEABIOS_VER}.tar.gz
|
|
||||||
https://dev.gentoo.org/~dlan/distfiles/seabios-${SEABIOS_VER}.tar.gz
|
|
||||||
ovmf? ( https://dev.gentoo.org/~dlan/distfiles/ovmf-${OVMF_PV}.tar.bz2
|
|
||||||
${OVMF_PATCHSET_URI} )
|
|
||||||
${UPSTREAM_PATCHSET_URI}
|
|
||||||
${SECURITY_PATCHSET_URI}
|
|
||||||
${GENTOO_PATCHSET_URI}"
|
|
||||||
|
|
||||||
S="${WORKDIR}/xen-${MY_PV}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="Xen tools including QEMU and xl"
|
|
||||||
HOMEPAGE="http://xen.org/"
|
|
||||||
DOCS=( README docs/README.xen-bugtool )
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0/${MAJOR_V}"
|
|
||||||
# Inclusion of IUSE ocaml on stabalizing requires maintainer of ocaml to (get off his hands and) make
|
|
||||||
# >=dev-lang/ocaml-4 stable
|
|
||||||
# Masked in profiles/eapi-5-files instead
|
|
||||||
IUSE="api custom-cflags debug doc flask hvm qemu ocaml ovmf +pam +qemu-traditional python pygrub screen sdl static-libs system-qemu system-seabios"
|
|
||||||
|
|
||||||
REQUIRED_USE="hvm? ( || ( qemu system-qemu ) )
|
|
||||||
${PYTHON_REQUIRED_USE}
|
|
||||||
pygrub? ( python )
|
|
||||||
ovmf? ( hvm )
|
|
||||||
qemu? ( !system-qemu )"
|
|
||||||
|
|
||||||
COMMON_DEPEND="
|
|
||||||
dev-libs/lzo:2
|
|
||||||
dev-libs/glib:2
|
|
||||||
dev-libs/yajl
|
|
||||||
dev-libs/libaio
|
|
||||||
dev-libs/libgcrypt:0
|
|
||||||
sys-libs/zlib
|
|
||||||
"
|
|
||||||
|
|
||||||
DEPEND="${COMMON_DEPEND}
|
|
||||||
dev-python/lxml[${PYTHON_USEDEP}]
|
|
||||||
x86? ( sys-devel/dev86
|
|
||||||
sys-power/iasl )
|
|
||||||
pam? ( dev-python/pypam[${PYTHON_USEDEP}] )
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
api? ( dev-libs/libxml2
|
|
||||||
net-misc/curl )
|
|
||||||
ovmf? ( $(python_gen_impl_dep sqlite) )
|
|
||||||
!amd64? ( >=sys-apps/dtc-1.4.0 )
|
|
||||||
amd64? ( sys-devel/bin86
|
|
||||||
system-seabios? ( sys-firmware/seabios )
|
|
||||||
sys-firmware/ipxe
|
|
||||||
sys-devel/dev86
|
|
||||||
sys-power/iasl )
|
|
||||||
dev-lang/perl
|
|
||||||
app-misc/pax-utils
|
|
||||||
doc? (
|
|
||||||
app-doc/doxygen
|
|
||||||
dev-python/markdown[${PYTHON_USEDEP}]
|
|
||||||
dev-tex/latex2html[png,gif]
|
|
||||||
media-gfx/graphviz
|
|
||||||
dev-tex/xcolor
|
|
||||||
media-gfx/transfig
|
|
||||||
dev-texlive/texlive-latexextra
|
|
||||||
virtual/latex-base
|
|
||||||
dev-tex/latexmk
|
|
||||||
dev-texlive/texlive-latex
|
|
||||||
dev-texlive/texlive-pictures
|
|
||||||
dev-texlive/texlive-latexrecommended
|
|
||||||
)
|
|
||||||
hvm? ( x11-proto/xproto
|
|
||||||
!net-libs/libiscsi )
|
|
||||||
qemu? (
|
|
||||||
x11-libs/pixman
|
|
||||||
sdl? ( media-libs/libsdl[X] )
|
|
||||||
)
|
|
||||||
system-qemu? ( app-emulation/qemu[xen] )
|
|
||||||
ocaml? ( dev-ml/findlib
|
|
||||||
>=dev-lang/ocaml-4 )"
|
|
||||||
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
sys-apps/iproute2[-minimal]
|
|
||||||
net-misc/bridge-utils
|
|
||||||
screen? (
|
|
||||||
app-misc/screen
|
|
||||||
app-admin/logrotate
|
|
||||||
)"
|
|
||||||
|
|
||||||
# hvmloader is used to bootstrap a fully virtualized kernel
|
|
||||||
# Approved by QA team in bug #144032
|
|
||||||
QA_WX_LOAD="usr/lib/xen/boot/hvmloader
|
|
||||||
usr/share/qemu-xen/qemu/s390-ccw.img"
|
|
||||||
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
python-single-r1_pkg_setup
|
|
||||||
export "CONFIG_LOMOUNT=y"
|
|
||||||
|
|
||||||
#bug 522642, disable compile tools/tests
|
|
||||||
export "CONFIG_TESTS=n"
|
|
||||||
|
|
||||||
if has_version dev-libs/libgcrypt:0; then
|
|
||||||
export "CONFIG_GCRYPT=y"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -z ${XEN_TARGET_ARCH} ]] ; then
|
|
||||||
if use x86 && use amd64; then
|
|
||||||
die "Confusion! Both x86 and amd64 are set in your use flags!"
|
|
||||||
elif use x86; then
|
|
||||||
export XEN_TARGET_ARCH="x86_32"
|
|
||||||
elif use amd64 ; then
|
|
||||||
export XEN_TARGET_ARCH="x86_64"
|
|
||||||
elif use arm; then
|
|
||||||
export XEN_TARGET_ARCH="arm32"
|
|
||||||
elif use arm64; then
|
|
||||||
export XEN_TARGET_ARCH="arm64"
|
|
||||||
else
|
|
||||||
die "Unsupported architecture!"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Upstream's patchset
|
|
||||||
if [[ -n ${UPSTREAM_VER} ]]; then
|
|
||||||
einfo "Try to apply Xen Upstream patch set"
|
|
||||||
EPATCH_SUFFIX="patch" \
|
|
||||||
EPATCH_FORCE="yes" \
|
|
||||||
EPATCH_OPTS="-p1" \
|
|
||||||
epatch "${WORKDIR}"/patches-upstream \
|
|
||||||
"${WORKDIR}"/libexec.patch
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Security patchset
|
|
||||||
if [[ -n ${SECURITY_VER} ]]; then
|
|
||||||
einfo "Try to apply Xen Security patch set"
|
|
||||||
source "${WORKDIR}"/patches-security/${PV}.conf
|
|
||||||
# apply main xen patches
|
|
||||||
# Two parallel systems, both work side by side
|
|
||||||
# Over time they may concdense into one. This will suffice for now
|
|
||||||
EPATCH_SUFFIX="patch"
|
|
||||||
EPATCH_FORCE="yes"
|
|
||||||
for i in ${XEN_SECURITY_MAIN}; do
|
|
||||||
epatch "${WORKDIR}"/patches-security/xen/$i
|
|
||||||
done
|
|
||||||
|
|
||||||
for i in "${WORKDIR}"/xen-sec/xsa*.patch; do
|
|
||||||
epatch $i
|
|
||||||
done
|
|
||||||
|
|
||||||
# apply qemu-traditional patches
|
|
||||||
pushd "${S}"/tools/qemu-xen-traditional/ > /dev/null
|
|
||||||
for i in ${XEN_SECURITY_QEMUT}; do
|
|
||||||
epatch "${WORKDIR}"/patches-security/qemut/$i
|
|
||||||
done
|
|
||||||
for i in "${WORKDIR}"/qemu-patches/qemut/xsa*.patch; do
|
|
||||||
epatch $i
|
|
||||||
done
|
|
||||||
popd > /dev/null
|
|
||||||
|
|
||||||
# apply qemu-xen/upstream patches
|
|
||||||
pushd "${S}"/tools/qemu-xen/ > /dev/null
|
|
||||||
for i in ${XEN_SECURITY_QEMUU}; do
|
|
||||||
epatch "${WORKDIR}"/patches-security/qemuu/$i
|
|
||||||
done
|
|
||||||
for i in "${WORKDIR}"/qemu-patches/qemuu/xsa*.patch; do
|
|
||||||
epatch $i
|
|
||||||
done
|
|
||||||
popd > /dev/null
|
|
||||||
fi
|
|
||||||
|
|
||||||
# move before Gentoo patch, one patch should apply to seabios, to fix gcc-4.5.x build err
|
|
||||||
mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die
|
|
||||||
pushd tools/firmware/ > /dev/null
|
|
||||||
ln -s seabios-dir-remote seabios-dir || die
|
|
||||||
popd > /dev/null
|
|
||||||
|
|
||||||
# Gentoo's patchset
|
|
||||||
if [[ -n ${GENTOO_VER} && -n ${GENTOO_GPV} ]]; then
|
|
||||||
einfo "Try to apply Gentoo specific patch set"
|
|
||||||
source "${FILESDIR}"/gentoo-patches.conf
|
|
||||||
_gpv=_gpv_${PN/-/_}_${PV//./}_${GENTOO_GPV}
|
|
||||||
for i in ${!_gpv}; do
|
|
||||||
EPATCH_SUFFIX="patch" \
|
|
||||||
EPATCH_FORCE="yes" \
|
|
||||||
epatch "${WORKDIR}"/patches-gentoo/$i
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Ovmf's patchset
|
|
||||||
if [[ -n ${OVMF_VER} ]] && use ovmf; then
|
|
||||||
einfo "Try to apply Ovmf patch set"
|
|
||||||
pushd "${WORKDIR}"/ovmf-*/ > /dev/null
|
|
||||||
EPATCH_SUFFIX="patch" \
|
|
||||||
EPATCH_FORCE="yes" \
|
|
||||||
EPATCH_OPTS="-p1" \
|
|
||||||
epatch "${WORKDIR}"/patches-ovmf
|
|
||||||
popd > /dev/null
|
|
||||||
mv ../ovmf-${OVMF_PV} tools/firmware/ovmf-dir-remote || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die
|
|
||||||
|
|
||||||
# Fix texi2html build error with new texi2html, qemu.doc.html
|
|
||||||
sed -i -e "/texi2html -monolithic/s/-number//" tools/qemu-xen-traditional/Makefile || die
|
|
||||||
|
|
||||||
use api || sed -e "/SUBDIRS-\$(LIBXENAPI_BINDINGS) += libxen/d" -i tools/Makefile || die
|
|
||||||
sed -e 's:$(MAKE) PYTHON=$(PYTHON) subdirs-$@:LC_ALL=C "$(MAKE)" PYTHON=$(PYTHON) subdirs-$@:' \
|
|
||||||
-i tools/firmware/Makefile || die
|
|
||||||
|
|
||||||
# Drop .config, fixes to gcc-4.6
|
|
||||||
sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
|
|
||||||
|
|
||||||
# if the user *really* wants to use their own custom-cflags, let them
|
|
||||||
if use custom-cflags; then
|
|
||||||
einfo "User wants their own CFLAGS - removing defaults"
|
|
||||||
|
|
||||||
# try and remove all the default cflags
|
|
||||||
find "${S}" \( -name Makefile -o -name Rules.mk -o -name Config.mk \) \
|
|
||||||
-exec sed \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-i {} + || die "failed to re-set custom-cflags"
|
|
||||||
else
|
|
||||||
unset CFLAGS
|
|
||||||
unset LDFLAGS
|
|
||||||
unset ASFLAGS
|
|
||||||
unset CPPFLAGS
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use pygrub; then
|
|
||||||
sed -e '/^SUBDIRS-y += pygrub/d' -i tools/Makefile || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use python; then
|
|
||||||
sed -e '/^SUBDIRS-y += python$/d' -i tools/Makefile || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use hvm; then
|
|
||||||
sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die
|
|
||||||
# Bug 351648
|
|
||||||
elif ! use x86 && ! has x86 $(get_all_abis); then
|
|
||||||
mkdir -p "${WORKDIR}"/extra-headers/gnu || die
|
|
||||||
touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h || die
|
|
||||||
export CPATH="${WORKDIR}"/extra-headers
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use qemu; then
|
|
||||||
if use sdl; then
|
|
||||||
sed -i -e "s:\$\$source/configure:\0 --enable-sdl:" \
|
|
||||||
tools/Makefile || die
|
|
||||||
else
|
|
||||||
sed -i -e "s:\${QEMU_ROOT\:\-\.}/configure:\0 --disable-sdl:" \
|
|
||||||
tools/qemu-xen-traditional/xen-setup || die
|
|
||||||
sed -i -e "s:\$\$source/configure:\0 --disable-sdl:" \
|
|
||||||
tools/Makefile || die
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
# Don't bother with qemu, only needed for fully virtualised guests
|
|
||||||
sed -e "s:install-tools\: tools/qemu-xen-traditional-dir:install-tools\: :g" -i Makefile || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Reset bash completion dir; Bug 472438
|
|
||||||
sed -e "s:^BASH_COMPLETION_DIR ?= \$(CONFIG_DIR)/bash_completion.d:BASH_COMPLETION_DIR ?= $(get_bashcompdir):" \
|
|
||||||
-i Config.mk || die
|
|
||||||
sed -i -e "/bash-completion/s/xl\.sh/xl/g" tools/libxl/Makefile || die
|
|
||||||
|
|
||||||
# xencommons, Bug #492332, sed lighter weight than patching
|
|
||||||
sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \
|
|
||||||
-i tools/hotplug/Linux/init.d/xencommons.in || die
|
|
||||||
|
|
||||||
# respect multilib, usr/lib/libcacard.so.0.0.0
|
|
||||||
sed -e "/^libdir=/s/\/lib/\/$(get_libdir)/" \
|
|
||||||
-i tools/qemu-xen/configure || die
|
|
||||||
|
|
||||||
#bug 518136, don't build 32bit exactuable for nomultilib profile
|
|
||||||
if [[ "${ARCH}" == 'amd64' ]] && ! has_multilib_profile; then
|
|
||||||
sed -i -e "/x86_emulator/d" tools/tests/Makefile || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# use /var instead of /var/lib, consistat with previous ebuild
|
|
||||||
sed -i -e "/XEN_LOCK_DIR=/s/\$localstatedir/\/var/g" \
|
|
||||||
m4/paths.m4 configure tools/configure || die
|
|
||||||
# use /run instead of /var/run
|
|
||||||
sed -i -e "/XEN_RUN_DIR=/s/\$localstatedir//g" \
|
|
||||||
m4/paths.m4 configure tools/configure || die
|
|
||||||
|
|
||||||
# uncomment lines in xl.conf
|
|
||||||
sed -e 's:^#autoballoon=:autoballoon=:' \
|
|
||||||
-e 's:^#lockfile=:lockfile=:' \
|
|
||||||
-e 's:^#vif.default.script=:vif.default.script=:' \
|
|
||||||
-i tools/examples/xl.conf || die
|
|
||||||
|
|
||||||
epatch_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local myconf="--prefix=${PREFIX}/usr \
|
|
||||||
--libdir=${PREFIX}/usr/$(get_libdir) \
|
|
||||||
--libexecdir=${PREFIX}/usr/libexec \
|
|
||||||
--disable-werror \
|
|
||||||
--disable-xen \
|
|
||||||
--enable-tools \
|
|
||||||
--enable-docs \
|
|
||||||
$(use_with system-qemu) \
|
|
||||||
$(use_enable pam) \
|
|
||||||
$(use_enable api xenapi) \
|
|
||||||
$(use_enable ovmf) \
|
|
||||||
$(use_enable ocaml ocamltools) \
|
|
||||||
--with-xenstored=$(usex ocaml 'oxenstored' 'xenstored') \
|
|
||||||
"
|
|
||||||
|
|
||||||
use system-seabios && myconf+=" --with-system-seabios=/usr/share/seabios/bios.bin"
|
|
||||||
use qemu || myconf+=" --with-system-qemu"
|
|
||||||
use amd64 && myconf+=" $(use_enable qemu-traditional)"
|
|
||||||
econf ${myconf}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
export VARTEXFONTS="${T}/fonts"
|
|
||||||
local myopt
|
|
||||||
use debug && myopt="${myopt} debug=y"
|
|
||||||
|
|
||||||
if test-flag-CC -fno-strict-overflow; then
|
|
||||||
append-flags -fno-strict-overflow
|
|
||||||
fi
|
|
||||||
|
|
||||||
emake V=1 CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" -C tools ${myopt}
|
|
||||||
|
|
||||||
use doc && emake -C docs txt html
|
|
||||||
emake -C docs man-pages
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# Override auto-detection in the build system, bug #382573
|
|
||||||
export INITD_DIR=/tmp/init.d
|
|
||||||
export CONFIG_LEAF_DIR=../tmp/default
|
|
||||||
|
|
||||||
# Let the build system compile installed Python modules.
|
|
||||||
local PYTHONDONTWRITEBYTECODE
|
|
||||||
export PYTHONDONTWRITEBYTECODE
|
|
||||||
|
|
||||||
emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" \
|
|
||||||
XEN_PYTHON_NATIVE_INSTALL=y install-tools
|
|
||||||
|
|
||||||
# Fix the remaining Python shebangs.
|
|
||||||
python_fix_shebang "${D}"
|
|
||||||
|
|
||||||
# Remove RedHat-specific stuff
|
|
||||||
rm -rf "${D}"tmp || die
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs
|
|
||||||
|
|
||||||
dohtml -r docs/
|
|
||||||
docinto pdf
|
|
||||||
dodoc ${DOCS[@]}
|
|
||||||
[ -d "${D}"/usr/share/doc/xen ] && mv "${D}"/usr/share/doc/xen/* "${D}"/usr/share/doc/${PF}/html
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -rf "${D}"/usr/share/doc/xen/
|
|
||||||
doman docs/man?/*
|
|
||||||
|
|
||||||
newconfd "${FILESDIR}"/xendomains.confd xendomains
|
|
||||||
newconfd "${FILESDIR}"/xenstored.confd xenstored
|
|
||||||
newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled
|
|
||||||
newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains
|
|
||||||
newinitd "${FILESDIR}"/xenstored.initd xenstored
|
|
||||||
newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled
|
|
||||||
newinitd "${FILESDIR}"/xencommons.initd xencommons
|
|
||||||
newconfd "${FILESDIR}"/xencommons.confd xencommons
|
|
||||||
newinitd "${FILESDIR}"/xenqemudev.initd xenqemudev
|
|
||||||
newconfd "${FILESDIR}"/xenqemudev.confd xenqemudev
|
|
||||||
|
|
||||||
if use screen; then
|
|
||||||
cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains || die
|
|
||||||
cp "${FILESDIR}"/xen-consoles.logrotate "${D}"/etc/xen/ || die
|
|
||||||
keepdir /var/log/xen-consoles
|
|
||||||
fi
|
|
||||||
|
|
||||||
# For -static-libs wrt Bug 384355
|
|
||||||
if ! use static-libs; then
|
|
||||||
rm -f "${D}"usr/$(get_libdir)/*.a "${D}"usr/$(get_libdir)/ocaml/*/*.a
|
|
||||||
fi
|
|
||||||
|
|
||||||
# for xendomains
|
|
||||||
keepdir /etc/xen/auto
|
|
||||||
|
|
||||||
# Remove files failing QA AFTER emake installs them, avoiding seeking absent files
|
|
||||||
find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \
|
|
||||||
-o -name openbios-ppc -o -name palcode-clipper \) -delete || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "Official Xen Guide and the offical wiki page:"
|
|
||||||
elog "https://wiki.gentoo.org/wiki/Xen"
|
|
||||||
elog "http://wiki.xen.org/wiki/Main_Page"
|
|
||||||
elog ""
|
|
||||||
elog "Recommended to utilise the xencommons script to config sytem At boot"
|
|
||||||
elog "Add by use of rc-update on completion of the install"
|
|
||||||
|
|
||||||
if ! use hvm; then
|
|
||||||
echo
|
|
||||||
elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm"
|
|
||||||
elog "support enable the hvm use flag."
|
|
||||||
elog "An x86 or amd64 system is required to build HVM support."
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use qemu; then
|
|
||||||
elog "The qemu-bridge-helper is renamed to the xen-bridge-helper in the in source"
|
|
||||||
elog "build of qemu. This allows for app-emulation/qemu to be emerged concurrently"
|
|
||||||
elog "with the qemu capable xen. It is up to the user to distinguish between and utilise"
|
|
||||||
elog "the qemu-bridge-helper and the xen-bridge-helper. File bugs of any issues that arise"
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,37 +0,0 @@
|
|||||||
# Fix gcc-4.6
|
|
||||||
diff -ur xen-4.2.0.orig/extras/mini-os/minios.mk xen-4.2.0/extras/mini-os/minios.mk
|
|
||||||
--- extras/mini-os/minios.mk 2012-09-17 18:21:17.000000000 +0800
|
|
||||||
+++ extras/mini-os/minios.mk 2012-12-05 14:01:10.653260260 +0800
|
|
||||||
@@ -6,7 +6,7 @@
|
|
||||||
|
|
||||||
# Define some default flags.
|
|
||||||
# NB. '-Wcast-qual' is nasty, so I omitted it.
|
|
||||||
-DEF_CFLAGS += -fno-builtin -Wall -Werror -Wredundant-decls -Wno-format -Wno-redundant-decls
|
|
||||||
+DEF_CFLAGS += -fno-builtin -Wall -Wredundant-decls -Wno-format -Wno-redundant-decls
|
|
||||||
DEF_CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)
|
|
||||||
DEF_CFLAGS += $(call cc-option,$(CC),-fgnu89-inline)
|
|
||||||
DEF_CFLAGS += -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winline
|
|
||||||
diff -ur xen-4.2.0.orig/tools/libxc/Makefile xen-4.2.0/tools/libxc/Makefile
|
|
||||||
--- tools/libxc/Makefile 2012-09-17 18:21:18.000000000 +0800
|
|
||||||
+++ tools/libxc/Makefile 2012-12-05 14:01:10.653260260 +0800
|
|
||||||
@@ -73,7 +73,7 @@
|
|
||||||
|
|
||||||
-include $(XEN_TARGET_ARCH)/Makefile
|
|
||||||
|
|
||||||
-CFLAGS += -Werror -Wmissing-prototypes
|
|
||||||
+CFLAGS += -Wmissing-prototypes
|
|
||||||
CFLAGS += -I. $(CFLAGS_xeninclude)
|
|
||||||
|
|
||||||
# Needed for posix_fadvise64() in xc_linux.c
|
|
||||||
# Drop .config
|
|
||||||
diff -ur xen-4.2.0.orig/Config.mk xen-4.2.0/Config.mk
|
|
||||||
--- Config.mk 2012-09-17 18:23:12.000000000 +0800
|
|
||||||
+++ Config.mk 2012-12-05 14:01:10.641260261 +0800
|
|
||||||
@@ -7,7 +7,6 @@
|
|
||||||
# fallback for older make
|
|
||||||
realpath = $(wildcard $(foreach file,$(1),$(shell cd -P $(dir $(file)) && echo "$$PWD/$(notdir $(file))")))
|
|
||||||
|
|
||||||
--include $(XEN_ROOT)/.config
|
|
||||||
|
|
||||||
# A debug build of Xen and tools?
|
|
||||||
debug ?= n
|
|
@ -1,33 +0,0 @@
|
|||||||
diff -ur xen-4.2.0.orig/xen/arch/x86/Makefile xen-4.2.0/xen/arch/x86/Makefile
|
|
||||||
--- xen/arch/x86/Makefile 2012-09-17 18:21:19.000000000 +0800
|
|
||||||
+++ xen/arch/x86/Makefile 2013-02-23 20:37:30.679918815 +0800
|
|
||||||
@@ -112,7 +112,7 @@
|
|
||||||
$(@D)/.$(@F).1.o -o $@
|
|
||||||
rm -f $(@D)/.$(@F).[0-9]*
|
|
||||||
|
|
||||||
-EFI_LDFLAGS = $(patsubst -m%,-mi386pep,$(LDFLAGS)) --subsystem=10
|
|
||||||
+EFI_LDFLAGS = -mi386pep $(patsubst -m%,-mi386pep,$(LDFLAGS)) --subsystem=10
|
|
||||||
EFI_LDFLAGS += --image-base=$(1) --stack=0,0 --heap=0,0 --strip-debug
|
|
||||||
EFI_LDFLAGS += --section-alignment=0x200000 --file-alignment=0x20
|
|
||||||
EFI_LDFLAGS += --major-image-version=$(XEN_VERSION)
|
|
||||||
--- xen/Makefile 2013-03-07 14:34:01.819453278 +0000
|
|
||||||
+++ xen/Makefile 2013-03-07 15:56:44.753044655 +0000
|
|
||||||
@@ -31,9 +31,15 @@
|
|
||||||
_install: $(TARGET).gz
|
|
||||||
[ -d $(DESTDIR)/boot ] || $(INSTALL_DIR) $(DESTDIR)/boot
|
|
||||||
$(INSTALL_DATA) $(TARGET).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_FULLVERSION).gz
|
|
||||||
- ln -f -s $(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_VERSION).$(XEN_SUBVERSION).gz
|
|
||||||
- ln -f -s $(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_VERSION).gz
|
|
||||||
- ln -f -s $(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET)).gz
|
|
||||||
+ if [ 'x$(EFI_VENDOR)' == 'x' ]; then \
|
|
||||||
+ ln -f -s $(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_VERSION).$(XEN_SUBVERSION).gz; \
|
|
||||||
+ ln -f -s $(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_VERSION).gz; \
|
|
||||||
+ ln -f -s $(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET)).gz; \
|
|
||||||
+ else \
|
|
||||||
+ cp $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_VERSION).$(XEN_SUBVERSION).gz; \
|
|
||||||
+ cp $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_VERSION).gz; \
|
|
||||||
+ cp $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET)).gz; \
|
|
||||||
+ fi; \
|
|
||||||
$(INSTALL_DATA) $(TARGET)-syms $(DESTDIR)/boot/$(notdir $(TARGET))-syms-$(XEN_FULLVERSION)
|
|
||||||
if [ -r $(TARGET).efi -a -n '$(EFI_DIR)' ]; then \
|
|
||||||
[ -d $(DESTDIR)$(EFI_DIR) ] || $(INSTALL_DIR) $(DESTDIR)$(EFI_DIR); \
|
|
@ -1,37 +0,0 @@
|
|||||||
diff --git a/xen/Makefile b/xen/Makefile
|
|
||||||
index 39839a3..d2603f0 100644
|
|
||||||
--- a/xen/Makefile
|
|
||||||
+++ b/xen/Makefile
|
|
||||||
@@ -38,9 +38,15 @@ _install: Z=$(CONFIG_XEN_INSTALL_SUFFIX)
|
|
||||||
_install: $(TARGET)$(CONFIG_XEN_INSTALL_SUFFIX)
|
|
||||||
[ -d $(D)/boot ] || $(INSTALL_DIR) $(D)/boot
|
|
||||||
$(INSTALL_DATA) $(TARGET)$(Z) $(D)$(BOOT_DIR)/$(T)-$(XEN_FULLVERSION)$(Z)
|
|
||||||
- ln -f -s $(T)-$(XEN_FULLVERSION)$(Z) $(D)$(BOOT_DIR)/$(T)-$(XEN_VERSION).$(XEN_SUBVERSION)$(Z)
|
|
||||||
- ln -f -s $(T)-$(XEN_FULLVERSION)$(Z) $(D)$(BOOT_DIR)/$(T)-$(XEN_VERSION)$(Z)
|
|
||||||
- ln -f -s $(T)-$(XEN_FULLVERSION)$(Z) $(D)$(BOOT_DIR)/$(T)$(Z)
|
|
||||||
+ if [ 'x$(EFI_VENDOR)' == 'x' ]; then \
|
|
||||||
+ ln -f -s $(T)-$(XEN_FULLVERSION)$(Z) $(D)$(BOOT_DIR)/$(T)-$(XEN_VERSION).$(XEN_SUBVERSION)$(Z); \
|
|
||||||
+ ln -f -s $(T)-$(XEN_FULLVERSION)$(Z) $(D)$(BOOT_DIR)/$(T)-$(XEN_VERSION)$(Z);\
|
|
||||||
+ ln -f -s $(T)-$(XEN_FULLVERSION)$(Z) $(D)$(BOOT_DIR)/$(T)$(Z); \
|
|
||||||
+ else \
|
|
||||||
+ $(INSTALL_DATA) $(TARGET)$(Z) $(D)$(BOOT_DIR)/$(T)-$(XEN_VERSION).$(XEN_SUBVERSION)$(Z); \
|
|
||||||
+ $(INSTALL_DATA) $(TARGET)$(Z) $(D)$(BOOT_DIR)/$(T)-$(XEN_VERSION)$(Z);\
|
|
||||||
+ $(INSTALL_DATA) $(TARGET)$(Z) $(D)$(BOOT_DIR)/$(T)$(Z); \
|
|
||||||
+ fi; \
|
|
||||||
$(INSTALL_DATA) $(TARGET)-syms $(D)$(BOOT_DIR)/$(T)-syms-$(XEN_FULLVERSION)
|
|
||||||
if [ -r $(TARGET).efi -a -n '$(EFI_DIR)' ]; then \
|
|
||||||
[ -d $(D)$(EFI_DIR) ] || $(INSTALL_DIR) $(D)$(EFI_DIR); \
|
|
||||||
diff --git a/xen/arch/x86/Makefile b/xen/arch/x86/Makefile
|
|
||||||
index d502bdf..a2121b0 100644
|
|
||||||
--- a/xen/arch/x86/Makefile
|
|
||||||
+++ b/xen/arch/x86/Makefile
|
|
||||||
@@ -112,7 +112,7 @@ $(TARGET)-syms: prelink.o xen.lds $(BASEDIR)/common/symbols-dummy.o
|
|
||||||
$(@D)/.$(@F).1.o -o $@
|
|
||||||
rm -f $(@D)/.$(@F).[0-9]*
|
|
||||||
|
|
||||||
-EFI_LDFLAGS = $(patsubst -m%,-mi386pep,$(LDFLAGS)) --subsystem=10
|
|
||||||
+EFI_LDFLAGS = -mi386pep $(patsubst -m%,-mi386pep,$(LDFLAGS)) --subsystem=10
|
|
||||||
EFI_LDFLAGS += --image-base=$(1) --stack=0,0 --heap=0,0 --strip-debug
|
|
||||||
EFI_LDFLAGS += --section-alignment=0x200000 --file-alignment=0x20
|
|
||||||
EFI_LDFLAGS += --major-image-version=$(XEN_VERSION)
|
|
||||||
|
|
@ -1,197 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 )
|
|
||||||
|
|
||||||
inherit eutils multilib mount-boot flag-o-matic python-any-r1 toolchain-funcs
|
|
||||||
|
|
||||||
MY_PV=${PV/_/-}
|
|
||||||
MY_P=${PN}-${PV/_/-}
|
|
||||||
|
|
||||||
if [[ $PV == *9999 ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
KEYWORDS=""
|
|
||||||
EGIT_REPO_URI="git://xenbits.xen.org/xen.git"
|
|
||||||
SRC_URI=""
|
|
||||||
else
|
|
||||||
KEYWORDS="~amd64 ~arm -x86"
|
|
||||||
UPSTREAM_VER=0
|
|
||||||
SECURITY_VER=0
|
|
||||||
# var set to reflect https://dev.gentoo.org/~idella4/
|
|
||||||
# first instance of UPS_VER (usptream ver)
|
|
||||||
UPS_VER=0
|
|
||||||
SEC_VER=10
|
|
||||||
GENTOO_VER=
|
|
||||||
|
|
||||||
[[ -n ${UPSTREAM_VER} ]] && \
|
|
||||||
UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz
|
|
||||||
https://dev.gentoo.org/~idella4/distfiles/${PN}-upstream-patches-${UPS_VER}.tar.gz"
|
|
||||||
[[ -n ${SECURITY_VER} ]] && \
|
|
||||||
SECURITY_PATCHSET_URI="https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz
|
|
||||||
https://dev.gentoo.org/~idella4/distfiles/${PN}-security-patches-${SEC_VER}.tar.gz"
|
|
||||||
[[ -n ${GENTOO_VER} ]] && \
|
|
||||||
GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz"
|
|
||||||
SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/${MY_P}.tar.gz
|
|
||||||
${UPSTREAM_PATCHSET_URI}
|
|
||||||
${SECURITY_PATCHSET_URI}
|
|
||||||
${GENTOO_PATCHSET_URI}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="The Xen virtual machine monitor"
|
|
||||||
HOMEPAGE="http://xen.org/"
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="custom-cflags debug efi flask"
|
|
||||||
|
|
||||||
DEPEND="${PYTHON_DEPS}
|
|
||||||
efi? ( >=sys-devel/binutils-2.22[multitarget] )
|
|
||||||
!efi? ( >=sys-devel/binutils-2.22 )"
|
|
||||||
RDEPEND=""
|
|
||||||
PDEPEND="~app-emulation/xen-tools-${PV}"
|
|
||||||
|
|
||||||
# no tests are available for the hypervisor
|
|
||||||
# prevent the silliness of /usr/lib/debug/usr/lib/debug files
|
|
||||||
# prevent stripping of the debug info from the /usr/lib/debug/xen-syms
|
|
||||||
RESTRICT="test splitdebug strip"
|
|
||||||
|
|
||||||
# Approved by QA team in bug #144032
|
|
||||||
QA_WX_LOAD="boot/xen-syms-${PV}"
|
|
||||||
|
|
||||||
REQUIRED_USE="arm? ( debug )"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
python-any-r1_pkg_setup
|
|
||||||
if [[ -z ${XEN_TARGET_ARCH} ]]; then
|
|
||||||
if use amd64; then
|
|
||||||
export XEN_TARGET_ARCH="x86_64"
|
|
||||||
elif use arm; then
|
|
||||||
export XEN_TARGET_ARCH="arm32"
|
|
||||||
elif use arm64; then
|
|
||||||
export XEN_TARGET_ARCH="arm64"
|
|
||||||
else
|
|
||||||
die "Unsupported architecture!"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use flask ; then
|
|
||||||
export "XSM_ENABLE=y"
|
|
||||||
export "FLASK_ENABLE=y"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Upstream's patchset
|
|
||||||
if [[ -n ${UPSTREAM_VER} ]]; then
|
|
||||||
EPATCH_SUFFIX="patch" \
|
|
||||||
EPATCH_FORCE="yes" \
|
|
||||||
EPATCH_OPTS="-p1" \
|
|
||||||
epatch "${WORKDIR}"/patches-upstream \
|
|
||||||
"${WORKDIR}"/libexec.patch
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n ${SECURITY_VER} ]]; then
|
|
||||||
einfo "Try to apply Xen Security patcheset"
|
|
||||||
# apply main xen patches
|
|
||||||
# Two parallel systems, both work side by side
|
|
||||||
# Over time they may concdense into one. This will suffice for now
|
|
||||||
EPATCH_SUFFIX="patch"
|
|
||||||
EPATCH_FORCE="yes"
|
|
||||||
for i in ${XEN_SECURITY_MAIN}; do
|
|
||||||
epatch "${WORKDIR}"/patches-security/xen/$i
|
|
||||||
done
|
|
||||||
|
|
||||||
for i in "${WORKDIR}"/xen-sec/xsa*.patch; do
|
|
||||||
epatch $i
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Gentoo's patchset
|
|
||||||
if [[ -n ${GENTOO_VER} ]]; then
|
|
||||||
EPATCH_SUFFIX="patch" \
|
|
||||||
EPATCH_FORCE="yes" \
|
|
||||||
epatch "${WORKDIR}"/patches-gentoo
|
|
||||||
fi
|
|
||||||
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.6-efi.patch
|
|
||||||
|
|
||||||
# Drop .config
|
|
||||||
sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
|
|
||||||
|
|
||||||
if use efi; then
|
|
||||||
export EFI_VENDOR="gentoo"
|
|
||||||
export EFI_MOUNTPOINT="boot"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if the user *really* wants to use their own custom-cflags, let them
|
|
||||||
if use custom-cflags; then
|
|
||||||
einfo "User wants their own CFLAGS - removing defaults"
|
|
||||||
# try and remove all the default custom-cflags
|
|
||||||
find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-i {} \; || die "failed to re-set custom-cflags"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# remove -Werror for gcc-4.6's sake
|
|
||||||
find "${S}" -name 'Makefile*' -o -name '*.mk' -o -name 'common.make' | \
|
|
||||||
xargs sed -i 's/ *-Werror */ /'
|
|
||||||
# not strictly necessary to fix this
|
|
||||||
sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py"
|
|
||||||
|
|
||||||
epatch_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i"
|
|
||||||
|
|
||||||
use debug && myopt="${myopt} debug=y"
|
|
||||||
|
|
||||||
if use custom-cflags; then
|
|
||||||
filter-flags -fPIE -fstack-protector
|
|
||||||
replace-flags -O3 -O2
|
|
||||||
else
|
|
||||||
unset CFLAGS
|
|
||||||
unset LDFLAGS
|
|
||||||
unset ASFLAGS
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
# Send raw LDFLAGS so that --as-needed works
|
|
||||||
emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local myopt
|
|
||||||
use debug && myopt="${myopt} debug=y"
|
|
||||||
|
|
||||||
# The 'make install' doesn't 'mkdir -p' the subdirs
|
|
||||||
if use efi; then
|
|
||||||
mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install
|
|
||||||
|
|
||||||
# make install likes to throw in some extra EFI bits if it built
|
|
||||||
use efi || rm -rf "${D}/usr/$(get_libdir)/efi"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "Official Xen Guide and the unoffical wiki page:"
|
|
||||||
elog " https://wiki.gentoo.org/wiki/Xen"
|
|
||||||
elog " http://en.gentoo-wiki.com/wiki/Xen/"
|
|
||||||
|
|
||||||
use efi && einfo "The efi executable is installed in boot/efi/gentoo"
|
|
||||||
|
|
||||||
elog "You can optionally block the installation of /boot/xen-syms by an entry"
|
|
||||||
elog "in folder /etc/portage/env using the portage's feature INSTALL_MASK"
|
|
||||||
elog "e.g. echo ${msg} > /etc/portage/env/xen.conf"
|
|
||||||
}
|
|
@ -1,197 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 )
|
|
||||||
|
|
||||||
inherit eutils multilib mount-boot flag-o-matic python-any-r1 toolchain-funcs
|
|
||||||
|
|
||||||
MY_PV=${PV/_/-}
|
|
||||||
MY_P=${PN}-${PV/_/-}
|
|
||||||
|
|
||||||
if [[ $PV == *9999 ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
KEYWORDS=""
|
|
||||||
EGIT_REPO_URI="git://xenbits.xen.org/xen.git"
|
|
||||||
SRC_URI=""
|
|
||||||
else
|
|
||||||
KEYWORDS="amd64 ~arm ~arm64 -x86"
|
|
||||||
UPSTREAM_VER=0
|
|
||||||
SECURITY_VER=0
|
|
||||||
# var set to reflect https://dev.gentoo.org/~idella4/
|
|
||||||
# first instance of UPS_VER (usptream ver)
|
|
||||||
UPS_VER=0
|
|
||||||
SEC_VER=9
|
|
||||||
GENTOO_VER=
|
|
||||||
|
|
||||||
[[ -n ${UPSTREAM_VER} ]] && \
|
|
||||||
UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz
|
|
||||||
https://dev.gentoo.org/~idella4/distfiles/${PN}-upstream-patches-${UPS_VER}.tar.gz"
|
|
||||||
[[ -n ${SECURITY_VER} ]] && \
|
|
||||||
SECURITY_PATCHSET_URI="https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz
|
|
||||||
https://dev.gentoo.org/~idella4/distfiles/${PN}-security-patches-${SEC_VER}.tar.gz"
|
|
||||||
[[ -n ${GENTOO_VER} ]] && \
|
|
||||||
GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz"
|
|
||||||
SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/${MY_P}.tar.gz
|
|
||||||
${UPSTREAM_PATCHSET_URI}
|
|
||||||
${SECURITY_PATCHSET_URI}
|
|
||||||
${GENTOO_PATCHSET_URI}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="The Xen virtual machine monitor"
|
|
||||||
HOMEPAGE="http://xen.org/"
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="custom-cflags debug efi flask"
|
|
||||||
|
|
||||||
DEPEND="${PYTHON_DEPS}
|
|
||||||
efi? ( >=sys-devel/binutils-2.22[multitarget] )
|
|
||||||
!efi? ( >=sys-devel/binutils-2.22 )"
|
|
||||||
RDEPEND=""
|
|
||||||
PDEPEND="~app-emulation/xen-tools-${PV}"
|
|
||||||
|
|
||||||
# no tests are available for the hypervisor
|
|
||||||
# prevent the silliness of /usr/lib/debug/usr/lib/debug files
|
|
||||||
# prevent stripping of the debug info from the /usr/lib/debug/xen-syms
|
|
||||||
RESTRICT="test splitdebug strip"
|
|
||||||
|
|
||||||
# Approved by QA team in bug #144032
|
|
||||||
QA_WX_LOAD="boot/xen-syms-${PV}"
|
|
||||||
|
|
||||||
REQUIRED_USE="arm? ( debug )"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
python-any-r1_pkg_setup
|
|
||||||
if [[ -z ${XEN_TARGET_ARCH} ]]; then
|
|
||||||
if use amd64; then
|
|
||||||
export XEN_TARGET_ARCH="x86_64"
|
|
||||||
elif use arm; then
|
|
||||||
export XEN_TARGET_ARCH="arm32"
|
|
||||||
elif use arm64; then
|
|
||||||
export XEN_TARGET_ARCH="arm64"
|
|
||||||
else
|
|
||||||
die "Unsupported architecture!"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use flask ; then
|
|
||||||
export "XSM_ENABLE=y"
|
|
||||||
export "FLASK_ENABLE=y"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Upstream's patchset
|
|
||||||
if [[ -n ${UPSTREAM_VER} ]]; then
|
|
||||||
EPATCH_SUFFIX="patch" \
|
|
||||||
EPATCH_FORCE="yes" \
|
|
||||||
EPATCH_OPTS="-p1" \
|
|
||||||
epatch "${WORKDIR}"/patches-upstream \
|
|
||||||
"${WORKDIR}"/libexec.patch
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n ${SECURITY_VER} ]]; then
|
|
||||||
einfo "Try to apply Xen Security patcheset"
|
|
||||||
# apply main xen patches
|
|
||||||
# Two parallel systems, both work side by side
|
|
||||||
# Over time they may concdense into one. This will suffice for now
|
|
||||||
EPATCH_SUFFIX="patch"
|
|
||||||
EPATCH_FORCE="yes"
|
|
||||||
for i in ${XEN_SECURITY_MAIN}; do
|
|
||||||
epatch "${WORKDIR}"/patches-security/xen/$i
|
|
||||||
done
|
|
||||||
|
|
||||||
for i in "${WORKDIR}"/xen-sec/xsa*.patch; do
|
|
||||||
epatch $i
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Gentoo's patchset
|
|
||||||
if [[ -n ${GENTOO_VER} ]]; then
|
|
||||||
EPATCH_SUFFIX="patch" \
|
|
||||||
EPATCH_FORCE="yes" \
|
|
||||||
epatch "${WORKDIR}"/patches-gentoo
|
|
||||||
fi
|
|
||||||
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.6-efi.patch
|
|
||||||
|
|
||||||
# Drop .config
|
|
||||||
sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
|
|
||||||
|
|
||||||
if use efi; then
|
|
||||||
export EFI_VENDOR="gentoo"
|
|
||||||
export EFI_MOUNTPOINT="boot"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if the user *really* wants to use their own custom-cflags, let them
|
|
||||||
if use custom-cflags; then
|
|
||||||
einfo "User wants their own CFLAGS - removing defaults"
|
|
||||||
# try and remove all the default custom-cflags
|
|
||||||
find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
|
|
||||||
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
|
|
||||||
-i {} \; || die "failed to re-set custom-cflags"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# remove -Werror for gcc-4.6's sake
|
|
||||||
find "${S}" -name 'Makefile*' -o -name '*.mk' -o -name 'common.make' | \
|
|
||||||
xargs sed -i 's/ *-Werror */ /'
|
|
||||||
# not strictly necessary to fix this
|
|
||||||
sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py"
|
|
||||||
|
|
||||||
epatch_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i"
|
|
||||||
|
|
||||||
use debug && myopt="${myopt} debug=y"
|
|
||||||
|
|
||||||
if use custom-cflags; then
|
|
||||||
filter-flags -fPIE -fstack-protector
|
|
||||||
replace-flags -O3 -O2
|
|
||||||
else
|
|
||||||
unset CFLAGS
|
|
||||||
unset LDFLAGS
|
|
||||||
unset ASFLAGS
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
# Send raw LDFLAGS so that --as-needed works
|
|
||||||
emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local myopt
|
|
||||||
use debug && myopt="${myopt} debug=y"
|
|
||||||
|
|
||||||
# The 'make install' doesn't 'mkdir -p' the subdirs
|
|
||||||
if use efi; then
|
|
||||||
mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install
|
|
||||||
|
|
||||||
# make install likes to throw in some extra EFI bits if it built
|
|
||||||
use efi || rm -rf "${D}/usr/$(get_libdir)/efi"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "Official Xen Guide and the unoffical wiki page:"
|
|
||||||
elog " https://wiki.gentoo.org/wiki/Xen"
|
|
||||||
elog " http://en.gentoo-wiki.com/wiki/Xen/"
|
|
||||||
|
|
||||||
use efi && einfo "The efi executable is installed in boot/efi/gentoo"
|
|
||||||
|
|
||||||
elog "You can optionally block the installation of /boot/xen-syms by an entry"
|
|
||||||
elog "in folder /etc/portage/env using the portage's feature INSTALL_MASK"
|
|
||||||
elog "e.g. echo ${msg} > /etc/portage/env/xen.conf"
|
|
||||||
}
|
|
@ -0,0 +1,79 @@
|
|||||||
|
From 7a281b1131399f04627986e6f9a54499b08e239d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Felix Janda <felix.janda@posteo.de>
|
||||||
|
Date: Thu, 21 Apr 2016 23:12:10 +0200
|
||||||
|
Subject: [PATCH] Make openssl SSLv2 and SSLv3 support optional
|
||||||
|
|
||||||
|
Fixes compilation with libressl
|
||||||
|
---
|
||||||
|
uim/openssl.c | 30 ++++++++++++++++++++++++++++++
|
||||||
|
1 file changed, 30 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/uim/openssl.c b/uim/openssl.c
|
||||||
|
index ba1b238..35ca1ca 100644
|
||||||
|
--- a/uim/openssl.c
|
||||||
|
+++ b/uim/openssl.c
|
||||||
|
@@ -208,34 +208,64 @@ c_SSL_write(uim_lisp s_, uim_lisp buf_)
|
||||||
|
static uim_lisp
|
||||||
|
c_SSLv2_method(void)
|
||||||
|
{
|
||||||
|
+#ifndef OPENSSL_NO_SSL2
|
||||||
|
return MAKE_PTR(SSLv2_method());
|
||||||
|
+#else
|
||||||
|
+ uim_notify_fatal(N_("uim-openssl: SSLv2_method() is not supported on this system"));
|
||||||
|
+ return uim_scm_f();
|
||||||
|
+#endif
|
||||||
|
}
|
||||||
|
static uim_lisp
|
||||||
|
c_SSLv2_server_method(void)
|
||||||
|
{
|
||||||
|
+#ifndef OPENSSL_NO_SSL2
|
||||||
|
return MAKE_PTR(SSLv2_server_method());
|
||||||
|
+#else
|
||||||
|
+ uim_notify_fatal(N_("uim-openssl: SSLv2_server_method() is not supported on this system"));
|
||||||
|
+ return uim_scm_f();
|
||||||
|
+#endif
|
||||||
|
}
|
||||||
|
static uim_lisp
|
||||||
|
c_SSLv2_client_method(void)
|
||||||
|
{
|
||||||
|
+#ifndef OPENSSL_NO_SSL2
|
||||||
|
return MAKE_PTR(SSLv2_client_method());
|
||||||
|
+#else
|
||||||
|
+ uim_notify_fatal(N_("uim-openssl: SSLv2_client_method() is not supported on this system"));
|
||||||
|
+ return uim_scm_f();
|
||||||
|
+#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
/* SSLv3 */
|
||||||
|
static uim_lisp
|
||||||
|
c_SSLv3_method(void)
|
||||||
|
{
|
||||||
|
+#ifndef OPENSSL_NO_SSL3
|
||||||
|
return MAKE_PTR(SSLv3_method());
|
||||||
|
+#else
|
||||||
|
+ uim_notify_fatal(N_("uim-openssl: SSLv3_method() is not supported on this system"));
|
||||||
|
+ return uim_scm_f();
|
||||||
|
+#endif
|
||||||
|
}
|
||||||
|
static uim_lisp
|
||||||
|
c_SSLv3_server_method(void)
|
||||||
|
{
|
||||||
|
+#ifndef OPENSSL_NO_SSL3
|
||||||
|
return MAKE_PTR(SSLv3_server_method());
|
||||||
|
+#else
|
||||||
|
+ uim_notify_fatal(N_("uim-openssl: SSLv3_server_method() is not supported on this system"));
|
||||||
|
+ return uim_scm_f();
|
||||||
|
+#endif
|
||||||
|
}
|
||||||
|
static uim_lisp
|
||||||
|
c_SSLv3_client_method(void)
|
||||||
|
{
|
||||||
|
+#ifndef OPENSSL_NO_SSL3
|
||||||
|
return MAKE_PTR(SSLv3_client_method());
|
||||||
|
+#else
|
||||||
|
+ uim_notify_fatal(N_("uim-openssl: SSLv3_client_method() is not supported on this system"));
|
||||||
|
+ return uim_scm_f();
|
||||||
|
+#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
/* SSLv3 but can rollback to v2 */
|
@ -0,0 +1,228 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI="5"
|
||||||
|
inherit autotools eutils multilib elisp-common gnome2-utils
|
||||||
|
|
||||||
|
DESCRIPTION="Simple, secure and flexible input method library"
|
||||||
|
HOMEPAGE="https://github.com/uim/uim/"
|
||||||
|
SRC_URI="https://uim.googlecode.com/files/${P}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="BSD GPL-2 LGPL-2.1"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
|
||||||
|
IUSE="+anthy canna curl eb emacs expat libffi gtk gtk3 kde libedit libnotify libressl m17n-lib ncurses nls qt4 skk sqlite ssl static-libs test unicode X xft l10n_ja l10n_ko l10n_zh-CN l10n_zh-TW"
|
||||||
|
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
REQUIRED_USE="gtk? ( X ) qt4? ( X )"
|
||||||
|
|
||||||
|
RDEPEND="X? (
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libXft
|
||||||
|
x11-libs/libXt
|
||||||
|
x11-libs/libICE
|
||||||
|
x11-libs/libSM
|
||||||
|
x11-libs/libXext
|
||||||
|
x11-libs/libXrender
|
||||||
|
)
|
||||||
|
anthy? (
|
||||||
|
unicode? ( >=app-i18n/anthy-8622 )
|
||||||
|
!unicode? ( app-i18n/anthy )
|
||||||
|
)
|
||||||
|
canna? ( app-i18n/canna )
|
||||||
|
curl? ( >=net-misc/curl-7.16.4 )
|
||||||
|
eb? ( dev-libs/eb )
|
||||||
|
emacs? ( virtual/emacs )
|
||||||
|
expat? ( dev-libs/expat )
|
||||||
|
libffi? ( virtual/libffi )
|
||||||
|
gtk? ( >=x11-libs/gtk+-2.4:2 )
|
||||||
|
gtk3? ( x11-libs/gtk+:3 )
|
||||||
|
kde? ( >=kde-base/kdelibs-4 )
|
||||||
|
libedit? ( dev-libs/libedit )
|
||||||
|
libnotify? ( >=x11-libs/libnotify-0.4 )
|
||||||
|
m17n-lib? ( >=dev-libs/m17n-lib-1.3.1 )
|
||||||
|
ncurses? ( sys-libs/ncurses:0= )
|
||||||
|
nls? ( virtual/libintl )
|
||||||
|
qt4? ( dev-qt/qtgui:4[qt3support] )
|
||||||
|
skk? ( app-i18n/skk-jisyo )
|
||||||
|
sqlite? ( dev-db/sqlite:3 )
|
||||||
|
ssl? (
|
||||||
|
!libressl? ( dev-libs/openssl:0= )
|
||||||
|
libressl? ( dev-libs/libressl:0= )
|
||||||
|
)
|
||||||
|
!dev-scheme/sigscheme"
|
||||||
|
# scim? ( >=app-i18n/scim-1.3.0 ) # broken
|
||||||
|
# wnn? ( app-i18n/wnn )
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
dev-util/intltool
|
||||||
|
virtual/pkgconfig
|
||||||
|
>=sys-devel/gettext-0.15
|
||||||
|
kde? ( dev-util/cmake )
|
||||||
|
X? (
|
||||||
|
x11-proto/xextproto
|
||||||
|
x11-proto/xproto
|
||||||
|
)"
|
||||||
|
|
||||||
|
RDEPEND="${RDEPEND}
|
||||||
|
X? (
|
||||||
|
media-fonts/font-sony-misc
|
||||||
|
l10n_ja? ( || ( media-fonts/font-jis-misc media-fonts/intlfonts ) )
|
||||||
|
l10n_ko? ( || ( media-fonts/font-daewoo-misc media-fonts/intlfonts ) )
|
||||||
|
l10n_zh-CN? ( || ( media-fonts/font-isas-misc media-fonts/intlfonts ) )
|
||||||
|
l10n_zh-TW? ( media-fonts/intlfonts )
|
||||||
|
)"
|
||||||
|
# test? ( dev-scheme/gauche )
|
||||||
|
|
||||||
|
SITEFILE=50${PN}-gentoo.el
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
strip-linguas fr ja ko
|
||||||
|
if [[ -z "${LINGUAS}" ]]; then
|
||||||
|
# no linguas set, using the default one
|
||||||
|
LINGUAS=" "
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
epatch \
|
||||||
|
"${FILESDIR}"/${PN}-1.6.0-gentoo.patch \
|
||||||
|
"${FILESDIR}"/${PN}-1.5.4-zhTW.patch \
|
||||||
|
"${FILESDIR}"/${P}-libressl.patch
|
||||||
|
|
||||||
|
# bug 275420
|
||||||
|
sed -i -e "s:\$libedit_path/lib:/$(get_libdir):g" configure.ac || die "sed failed!"
|
||||||
|
|
||||||
|
AT_NO_RECURSIVE=1 eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myconf
|
||||||
|
|
||||||
|
if (use gtk || use gtk3) && (use anthy || use canna) ; then
|
||||||
|
myconf="${myconf} --enable-dict"
|
||||||
|
else
|
||||||
|
myconf="${myconf} --disable-dict"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use gtk || use gtk3 || use qt4 ; then
|
||||||
|
myconf="${myconf} --enable-pref"
|
||||||
|
else
|
||||||
|
myconf="${myconf} --disable-pref"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use anthy ; then
|
||||||
|
if use unicode ; then
|
||||||
|
myconf="${myconf} --with-anthy-utf8"
|
||||||
|
else
|
||||||
|
myconf="${myconf} --with-anthy"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
myconf="${myconf} --without-anthy"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use libnotify ; then
|
||||||
|
myconf="${myconf} --enable-notify=libnotify"
|
||||||
|
fi
|
||||||
|
|
||||||
|
econf $(use_with X x) \
|
||||||
|
$(use_with canna) \
|
||||||
|
$(use_with curl) \
|
||||||
|
$(use_with eb) \
|
||||||
|
$(use_enable emacs) \
|
||||||
|
$(use_with emacs lispdir "${SITELISP}") \
|
||||||
|
$(use_with expat) \
|
||||||
|
$(use_with libffi ffi) \
|
||||||
|
--disable-gnome-applet \
|
||||||
|
$(use_with gtk gtk2) \
|
||||||
|
$(use_with gtk3) \
|
||||||
|
$(use_with libedit) \
|
||||||
|
--disable-kde-applet \
|
||||||
|
$(use_enable kde kde4-applet) \
|
||||||
|
$(use_with m17n-lib m17nlib) \
|
||||||
|
$(use_enable ncurses fep) \
|
||||||
|
$(use_enable nls) \
|
||||||
|
--without-qt \
|
||||||
|
--without-qt-immodule \
|
||||||
|
$(use_with qt4 qt4) \
|
||||||
|
$(use_with qt4 qt4-immodule) \
|
||||||
|
$(use_enable qt4 qt4-qt3support) \
|
||||||
|
$(use_with skk) \
|
||||||
|
$(use_with sqlite sqlite3) \
|
||||||
|
$(use_enable ssl openssl) \
|
||||||
|
$(use_enable static-libs static) \
|
||||||
|
$(use_with xft) \
|
||||||
|
${myconf}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
default
|
||||||
|
|
||||||
|
if use emacs; then
|
||||||
|
cd emacs
|
||||||
|
elisp-compile *.el || die "elisp-compile failed!"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
# parallel make install b0rked, bug #222677
|
||||||
|
emake -j1 INSTALL_ROOT="${D}" DESTDIR="${D}" install
|
||||||
|
|
||||||
|
dodoc AUTHORS ChangeLog* NEWS README RELNOTE
|
||||||
|
if use emacs; then
|
||||||
|
elisp-install uim-el emacs/*.elc || die "elisp-install failed!"
|
||||||
|
elisp-site-file-install "${FILESDIR}/${SITEFILE}" uim-el \
|
||||||
|
|| die "elisp-site-file-install failed!"
|
||||||
|
fi
|
||||||
|
|
||||||
|
find "${ED}/usr/$(get_libdir)/uim" -name '*.la' -exec rm {} +
|
||||||
|
use static-libs || find "${ED}" -name '*.la' -exec rm {} +
|
||||||
|
|
||||||
|
sed -e "s:@EPREFIX@:${EPREFIX}:" "${FILESDIR}/xinput-uim" > "${T}/uim.conf" || die "sed failed!"
|
||||||
|
insinto /etc/X11/xinit/xinput.d
|
||||||
|
doins "${T}/uim.conf"
|
||||||
|
|
||||||
|
# collision with dev-scheme/sigscheme, bug #330975
|
||||||
|
# find "${ED}" -name '*gcroots*' -delete || die
|
||||||
|
|
||||||
|
#rmdir "${ED}"/usr/share/doc/sigscheme || die
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog
|
||||||
|
elog "New input method switcher has been introduced. You need to set"
|
||||||
|
elog
|
||||||
|
elog "% GTK_IM_MODULE=uim ; export GTK_IM_MODULE"
|
||||||
|
elog "% QT_IM_MODULE=uim ; export QT_IM_MODULE"
|
||||||
|
elog "% XMODIFIERS=@im=uim ; export XMODIFIERS"
|
||||||
|
elog
|
||||||
|
elog "If you would like to use uim-anthy as default input method, put"
|
||||||
|
elog "(define default-im-name 'anthy)"
|
||||||
|
elog "to your ~/.uim."
|
||||||
|
elog
|
||||||
|
elog "All input methods can be found by running uim-im-switcher-gtk, "
|
||||||
|
elog "uim-im-switcher-gtk3 or uim-im-switcher-qt4."
|
||||||
|
elog
|
||||||
|
elog "If you upgrade from a version of uim older than 1.4.0,"
|
||||||
|
elog "you should run revdep-rebuild."
|
||||||
|
|
||||||
|
use gtk && gnome2_query_immodules_gtk2
|
||||||
|
use gtk3 && gnome2_query_immodules_gtk3
|
||||||
|
if use emacs; then
|
||||||
|
elisp-site-regen
|
||||||
|
echo
|
||||||
|
elog "uim is autoloaded with Emacs with a minimal set of features:"
|
||||||
|
elog "There is no keybinding defined to call it directly, so please"
|
||||||
|
elog "create one yourself and choose an input method."
|
||||||
|
elog "Integration with LEIM is not done with this ebuild, please have"
|
||||||
|
elog "a look at the documentation how to achieve this."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
use gtk && gnome2_query_immodules_gtk2
|
||||||
|
use gtk3 && gnome2_query_immodules_gtk3
|
||||||
|
use emacs && elisp-site-regen
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST worker-2.19.6.tar.bz2 1191546 SHA256 25998018bd3b50819cf2bbb35c3c2f0eb6449efd6b9da84f2f39c3e0570d188e SHA512 401c986ff532c225cbd183afd8424e900ed8ff874368d68cb985136d130b5a4d4746a59e391ba01ae610eacd4fec0d76061ba967112b8262e4a9297599596b60 WHIRLPOOL 1b209710fd0c47d565eb85d7f631cd31690314139793428ab9d8105a31d0ac940011622bf6f56951be96e193c5291d8b9a9ab325058117d23a84cd4b75f32320
|
DIST worker-2.19.6.tar.bz2 1191546 SHA256 25998018bd3b50819cf2bbb35c3c2f0eb6449efd6b9da84f2f39c3e0570d188e SHA512 401c986ff532c225cbd183afd8424e900ed8ff874368d68cb985136d130b5a4d4746a59e391ba01ae610eacd4fec0d76061ba967112b8262e4a9297599596b60 WHIRLPOOL 1b209710fd0c47d565eb85d7f631cd31690314139793428ab9d8105a31d0ac940011622bf6f56951be96e193c5291d8b9a9ab325058117d23a84cd4b75f32320
|
||||||
|
DIST worker-3.8.3.tar.bz2 1519483 SHA256 3f7e47165660ef54bb6054335d667f7c20e0f5ff248b1dcedb82e6aeb8dda86d SHA512 fa5d078233a91ec603cd87718542cdd5d99ef89c5d2e72c84fe40c08778c5e9dde8e99a23ccfee5ef61e63535c809a48ccf71fe9a256fd7afa05f848c5045738 WHIRLPOOL a1442b540fbea925d3cc76a6587fd30ffac22ab440b58a7da1cf058a3d1615f333959a3e6e77c417cec32e5c145c8b53529ea62a6fb03ce44cee4c53189bd347
|
||||||
|
@ -0,0 +1,55 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit eutils toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="Worker Filemanager: Amiga Directory Opus 4 clone"
|
||||||
|
HOMEPAGE="http://www.boomerangsworld.de/cms/worker/"
|
||||||
|
SRC_URI="http://www.boomerangsworld.de/cms/worker/downloads/${P}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
|
||||||
|
IUSE="avfs debug dbus examples libnotify lua +magic xinerama xft"
|
||||||
|
|
||||||
|
RDEPEND="x11-libs/libX11
|
||||||
|
avfs? ( >=sys-fs/avfs-0.9.5 )
|
||||||
|
dbus? ( dev-libs/dbus-glib )
|
||||||
|
lua? ( dev-lang/lua:0 )
|
||||||
|
magic? ( sys-apps/file )
|
||||||
|
xft? ( x11-libs/libXft )
|
||||||
|
xinerama? ( x11-libs/libXinerama )"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
DOCS=( AUTHORS ChangeLog INSTALL NEWS README README_LARGEFILES THANKS )
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
# there is no ./configure flag to disable libXinerama support
|
||||||
|
export ac_cv_lib_Xinerama_XineramaQueryScreens=$(usex xinerama)
|
||||||
|
econf \
|
||||||
|
--without-hal \
|
||||||
|
--enable-utf8 \
|
||||||
|
$(use_with avfs) \
|
||||||
|
$(use_with dbus) \
|
||||||
|
$(use_enable debug) \
|
||||||
|
$(use_enable libnotify inotify) \
|
||||||
|
$(use_enable lua) \
|
||||||
|
$(use_with magic libmagic) \
|
||||||
|
$(use_enable xft)
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake -j1
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
|
||||||
|
if use examples; then
|
||||||
|
docinto examples
|
||||||
|
dodoc examples/config-*
|
||||||
|
fi
|
||||||
|
}
|
@ -1,36 +1,12 @@
|
|||||||
DIST amd64-debug-libreoffice-5.0.5.2.tar.xz 7222948 SHA256 57a4d23c3588574e47e1d6d2b04faa84936ebd4bcf3747d7dd588c66ab210ffe SHA512 78852c53b3683a7adf76a0e2d58ae0ee356f4bf9e8a8462235480c675e50c02ada53323267bd412ec409d4f53799a9d342726097d44803aaf698c9d1ffd7dd38 WHIRLPOOL d16b0fe1fea2dfdc41f1ddf20595737532687375c47031f6e22f229404e05bf8c427e9e223b0ece1c5fdb2c3287117587897a6ea3fd5d7536a3d7652b8759683
|
|
||||||
DIST amd64-debug-libreoffice-5.1.2.2-r1.tar.xz 1086804300 SHA256 b39e5db80ff380000d3278f87616b44d9795d38ff5105125cc86a2469f941bda SHA512 82729c9066b7cea33eab02b33fa3ca4379d94a3d1169f03d420071a6648dc0887f46127482e448e58df18af70a72f803dfae1c9d3661803980368c2dcb303b94 WHIRLPOOL 2f18fbfd9f31c377b88cf1e4bce29db13cf1aaf07c92e0447970c55680ce719694adc786d6f95982540fe009bd1fdbe12a1d4a82746ad127b208543911b96a42
|
|
||||||
DIST amd64-debug-libreoffice-5.1.4.2.tar.xz 1084265596 SHA256 15e6e01609bcc2d230be8c2c884c295903849defeb7bd406a20221343b79c23b SHA512 e9a9b85c9def10913e1d77abbfdd2a7d82c6e529d00b06d69cbe7fbebf7c0d4e41fed1792be2534e57e37ecafd00a060a233b908fb7f6e0e6bdd7a74eb8ef883 WHIRLPOOL 86a6410847dd7c8879b8495b5028aa0030e0565e94f04b480d098df2b795efea2b4c1dca151bddb1dac71df6980ac0198f3a90491a2c73ace51b0590de326a82
|
DIST amd64-debug-libreoffice-5.1.4.2.tar.xz 1084265596 SHA256 15e6e01609bcc2d230be8c2c884c295903849defeb7bd406a20221343b79c23b SHA512 e9a9b85c9def10913e1d77abbfdd2a7d82c6e529d00b06d69cbe7fbebf7c0d4e41fed1792be2534e57e37ecafd00a060a233b908fb7f6e0e6bdd7a74eb8ef883 WHIRLPOOL 86a6410847dd7c8879b8495b5028aa0030e0565e94f04b480d098df2b795efea2b4c1dca151bddb1dac71df6980ac0198f3a90491a2c73ace51b0590de326a82
|
||||||
DIST amd64-debug-libreoffice-gnome-5.0.5.2.xd3 104477 SHA256 be04bc430abaed0ba0f6391dfb08e0804566e53f22217f1c961a5870b7b87e6a SHA512 b375df930fefa4389bdce908231c34c03c9e2cc33184c1626184e3ad3799f58704fce8f1902988891308d046b0a0bbc07af0ce66bd2ab02f4559b4e1ad45120b WHIRLPOOL 1ad2c7dfd4750859411cef5c33589ac58cd65a358449dad007a641e36366475833d56f32069df51c8ef68207cb3607545f6b37de9dac21fc3e522735832e2583
|
|
||||||
DIST amd64-debug-libreoffice-gnome-5.1.2.2-r1.xd3 5364840 SHA256 a49cdc8df5a08b77d60056d79e5bb01a00e14cb847e8f94bca3a691212047bf6 SHA512 60e2da247a5cb74082ebfd276944889d8ac4fbdf97eba99f54c2bc3b7318ea648b3af26329e4350f597957e190e3089aed12218855dbd2fe30ed8ef5e4ce494e WHIRLPOOL 8a6bd5434c463218643b06f8095a088e46979667614248f76b0d9a445e99de8df8af73f6b9a72197483127436470a629c1570b703a6228c58bb17371ef13404a
|
|
||||||
DIST amd64-debug-libreoffice-gnome-5.1.4.2.xd3 318747266 SHA256 e406677def850e6d1fd0f50ad7067c4ce0c5c91a945137210fad5cd43f335a08 SHA512 e413f1ff0b536582883bff373c098b96fc28ce3020bdcb8631e3e4781071cc03d2831b8d4ec5041cd4277ef23a97de20d3f232737a2c50249e23d1a67873e938 WHIRLPOOL 22e47c5faf1ef5d735be779669a82c9610a531bf35f7e1333fe58167ebbf7ee438b61108873f483e9c98a4e8c2c8af41f7d645dfb6ef2bf2fab5b9281b08eba3
|
DIST amd64-debug-libreoffice-gnome-5.1.4.2.xd3 318747266 SHA256 e406677def850e6d1fd0f50ad7067c4ce0c5c91a945137210fad5cd43f335a08 SHA512 e413f1ff0b536582883bff373c098b96fc28ce3020bdcb8631e3e4781071cc03d2831b8d4ec5041cd4277ef23a97de20d3f232737a2c50249e23d1a67873e938 WHIRLPOOL 22e47c5faf1ef5d735be779669a82c9610a531bf35f7e1333fe58167ebbf7ee438b61108873f483e9c98a4e8c2c8af41f7d645dfb6ef2bf2fab5b9281b08eba3
|
||||||
DIST amd64-debug-libreoffice-gnome-java-5.0.5.2.xd3 2733566 SHA256 27e1ed9a3ebbbb41020fc8d236ad41073260343f5832aa10c15795c1f2b05d0a SHA512 86281ca103b49a9f55625f818982677314b1a50dbd7f356affd22551fba852df8344dbc5e79088a7099207ce2041c5975cfa18dbb044d83e1424ee3303c31aa3 WHIRLPOOL b409c7caed481030427f1a5f98f37853bd7eacdaf23659bb7fbf516ef23212b1688f2a3bd317b77878ba27d6e49d4d8a781699bd67843db46d26317d2174a016
|
|
||||||
DIST amd64-debug-libreoffice-gnome-java-5.1.2.2-r1.xd3 509271796 SHA256 5ed0c62db9a1892f51512dfdb26925d1e7a882a0b10dcfb7e2a706191d1face7 SHA512 bae112e2444d513678c3fe636e419cb984fbe3ea2973569ff169e7ce2bae0bb9d30517e66e8c4ece72db4839dc702b135384028ad08bc65d0deb0e4db36a8b54 WHIRLPOOL c77bd5ac2a02174465a154db6277313267a5f60b29faa5bcbdb010a82b179e6cf4e014b0e62d14f87b618da0d0b4860098be5fbf7e90d5b32b712a3742a4d9c1
|
|
||||||
DIST amd64-debug-libreoffice-gnome-java-5.1.4.2.xd3 509570958 SHA256 1937081a2885f9fd4f22690fab17ff6757400d5cc4fafe92b403535ce98e1d0b SHA512 99e32a0c8804649fa0b6bdd2b94994d6ee60d48f24b4d4f1c6bf5e0f25da0be1f631607036b15492a301b496d5c4f17a344abeeab39498d5c7f3a4ababb9a222 WHIRLPOOL 25e740927da9f42a4c095603a41e5f2ed87b2091a0dc1e06f606aad27bbc1bda4f126a409d44b15069a05e7163ca70984789225275224db9d210d37d0fd54cc5
|
DIST amd64-debug-libreoffice-gnome-java-5.1.4.2.xd3 509570958 SHA256 1937081a2885f9fd4f22690fab17ff6757400d5cc4fafe92b403535ce98e1d0b SHA512 99e32a0c8804649fa0b6bdd2b94994d6ee60d48f24b4d4f1c6bf5e0f25da0be1f631607036b15492a301b496d5c4f17a344abeeab39498d5c7f3a4ababb9a222 WHIRLPOOL 25e740927da9f42a4c095603a41e5f2ed87b2091a0dc1e06f606aad27bbc1bda4f126a409d44b15069a05e7163ca70984789225275224db9d210d37d0fd54cc5
|
||||||
DIST amd64-debug-libreoffice-java-5.0.5.2.xd3 2654813 SHA256 468ec022659bb92debe9321ec8c979a51b55f3d610821ba52f1ce9ee67e4fc4f SHA512 3b75c168b520b3802a09cbd2761e97ece58749dc4bdc76b22927f55211c8a3fad4d0afabe74b33bb7180c1633ef860055d3f2094171e922f595c8301259be8ab WHIRLPOOL 799a18daaeb798aa1c907a68d4807432e41710cbeaf55afc47e92c5088da553a7cb1e9e8059f6ae9c21e67dcc6eadf444a778b455e1ca0d153206c083a6c5fd7
|
|
||||||
DIST amd64-debug-libreoffice-java-5.1.2.2-r1.xd3 506632681 SHA256 3979cc9ad354e8bf77b7c0b97155edcdc2f4ae383898393497479bbb80604b99 SHA512 0e39a9c04d3cbd9a8615bb70a509ece0b4d0309e9eea9357030fadfd7366f30389ee6d7e38bef768139bd1dd13708b1d992461b009730f060598129cfbf25aac WHIRLPOOL 5ae079ac1718df27a6495ab3420e7a414a2212e4d2dcbd605f3cb67cc54109dc099354dc510c4f221fed6c81493ecdd4a1192646b90ae6b5e0009b8dc864ceab
|
|
||||||
DIST amd64-debug-libreoffice-java-5.1.4.2.xd3 502196552 SHA256 4748f56257d14137eac98955a1cdc48f76580f37d6a765cc901faf8f7b909342 SHA512 3b33616eaad63a023ff85a243844ef2e69cc1b16c944091f49b5933af22ddbf22d0094b73c57d84aabdfc0a09e2a6da5aa560dd0ca6f97fcc7a47c4f51ff5276 WHIRLPOOL daa64523d1a7788deb10d734983c920dc4a731155e3b94a70c7f0e6f75b6d926b5d4d40c957b8dc489f9779ccee6548af4adb9bd863c64180b4389be43ce61cc
|
DIST amd64-debug-libreoffice-java-5.1.4.2.xd3 502196552 SHA256 4748f56257d14137eac98955a1cdc48f76580f37d6a765cc901faf8f7b909342 SHA512 3b33616eaad63a023ff85a243844ef2e69cc1b16c944091f49b5933af22ddbf22d0094b73c57d84aabdfc0a09e2a6da5aa560dd0ca6f97fcc7a47c4f51ff5276 WHIRLPOOL daa64523d1a7788deb10d734983c920dc4a731155e3b94a70c7f0e6f75b6d926b5d4d40c957b8dc489f9779ccee6548af4adb9bd863c64180b4389be43ce61cc
|
||||||
DIST amd64-debug-libreoffice-kde-5.0.5.2.xd3 870170 SHA256 8583934ccb69daa813e91e1fb9e3d64f68f866f5383b1afad1d5547e72656882 SHA512 405e64d9ee876064fc36808baa85100700571a69f80b4a8f14a0c359dd527fc2cd4a77c0fb0c75ab2b0f07dda75abae0c81d21919e5c12950a1a6d46dccf7fe7 WHIRLPOOL 4580b3380dc8e1121f817bf39233215407d728e89eaf5f944e2c072511ac3096cb926d74613e32b75f00ce4e88021b329f0d0952689f99fa335e74cca22b4ba7
|
|
||||||
DIST amd64-debug-libreoffice-kde-5.1.2.2-r1.xd3 315676495 SHA256 dd59cf0395fb12d76a6d8b094960b6f1838fbf345ebb45b7d49945fbadaed7d6 SHA512 375248cf7574fb82627606b11b7dfb3e7772c03136c3138c4cc072c35e2ba29f63a2454c5dee0b62e22bd118ad771a16ee505169f733dbb1fa481805fe79f73c WHIRLPOOL 3927b2880dd1dd24a06e1779ac161098ed5478d341462af9cbcb42d05466c1b412cd27b48309a4a6b93c101237d3e0f939762d19180ea0fc39f4fa7c86c755a0
|
|
||||||
DIST amd64-debug-libreoffice-kde-5.1.4.2.xd3 316090613 SHA256 e6e07b516be6415949ba94548d4625a0c5ed4c034b29580970b3ac7557147f5c SHA512 1984b663bb1c339443b284e8a622cac8a8f576d0c500f480595109a7c849f89d70a96dfd86aefa3e8f54b2def4e929fda3f6bc2a72b3bbb9eb646ea9570bd3b4 WHIRLPOOL 906d9174ea5cc79a9da5a4c5b202c7ed5cece5c8c6fcdacc8c8573d59ba5e3668bc7e67a763ffcf69359002a60816c6d0699a442d2eae65dc8382d3d671fc224
|
DIST amd64-debug-libreoffice-kde-5.1.4.2.xd3 316090613 SHA256 e6e07b516be6415949ba94548d4625a0c5ed4c034b29580970b3ac7557147f5c SHA512 1984b663bb1c339443b284e8a622cac8a8f576d0c500f480595109a7c849f89d70a96dfd86aefa3e8f54b2def4e929fda3f6bc2a72b3bbb9eb646ea9570bd3b4 WHIRLPOOL 906d9174ea5cc79a9da5a4c5b202c7ed5cece5c8c6fcdacc8c8573d59ba5e3668bc7e67a763ffcf69359002a60816c6d0699a442d2eae65dc8382d3d671fc224
|
||||||
DIST amd64-debug-libreoffice-kde-java-5.0.5.2.xd3 2678866 SHA256 afe0028e27fc7151756e4225838305625cbb2932db0e1b9f64724a63b1cd3238 SHA512 6f5a23330fe177728d7ca230bef71446195b05698f1d29752939fbec561a19511195a839ab051501baafe6c2fee7b52c77de01131c3c2f5a1af0ae21ccf9eb44 WHIRLPOOL 358ffb52c69e8a07cdbc90049ec59c51d71b38cc3c029b1b0c18e9fbbbaa94ea19968794b34a3253638a19c247b2088eb583ff7b5913f7aa3e817461b0c746bb
|
|
||||||
DIST amd64-debug-libreoffice-kde-java-5.1.2.2-r1.xd3 508402095 SHA256 9ce7c0540c7306dc5276c3a4c65d9b78be3abb2af9fa4938e57419eca21e0e84 SHA512 22dbb3b34b7667366ed64bf0d1d77295eac1f6674bb3070a709addeeeedf9dd75eb60a00e90c152d2cde727cafdf6d3bdf9dbba034483c451d52da33f06d9195 WHIRLPOOL 794bcf115c831667c3097429807ac9f7e7718d62c7aa0e9f5062e3f989b8d2c033a7fcb8f9cd8ce6f849647aa5e0005438a5f5ffdf2bcc14ccbe814f8521185a
|
|
||||||
DIST amd64-debug-libreoffice-kde-java-5.1.4.2.xd3 503866648 SHA256 1dd78842f119e81586eca5aee98e4ffaf256241c826cf1618f3858da5219f3fb SHA512 9455bfa0b3405e9f4d747862a97398b146999b2c9b2b750ee79c8d6bee282ddc69a272575e461b2cd71bb6adc80dd34045d015efa9f649327bcb6a6b4e6d3b36 WHIRLPOOL e987915567d0f963dc49593ed03df853c76382531b48b1ecb05e6b5550e8146ca485ed8a268f5c9b7e5d5b909dce1edac44a8f06979fe66fd00ded3a3747f716
|
DIST amd64-debug-libreoffice-kde-java-5.1.4.2.xd3 503866648 SHA256 1dd78842f119e81586eca5aee98e4ffaf256241c826cf1618f3858da5219f3fb SHA512 9455bfa0b3405e9f4d747862a97398b146999b2c9b2b750ee79c8d6bee282ddc69a272575e461b2cd71bb6adc80dd34045d015efa9f649327bcb6a6b4e6d3b36 WHIRLPOOL e987915567d0f963dc49593ed03df853c76382531b48b1ecb05e6b5550e8146ca485ed8a268f5c9b7e5d5b909dce1edac44a8f06979fe66fd00ded3a3747f716
|
||||||
DIST x86-debug-libreoffice-5.0.5.2.tar.xz 989401352 SHA256 afc2e125ec808a91f1a1bd8f5546d730bdb0ad3af37d18614264ee7d9ac73b2f SHA512 edb123ac996f71acea1cc9c210a5c7503f8d50bfadb9db5a15f285525319e2963b3a0040bcd5e8e452a3a37cd099b466ec833ba79a1ed63d17d0e997dda28001 WHIRLPOOL cd6c99a0abea4a80a57f70ec7b0871be6f32a9c78920875341993138aec8d94715c742d91f95080d05aaa048cbbbc27cdfa2c6f97b18da36242009ff161bfd1f
|
|
||||||
DIST x86-debug-libreoffice-5.1.2.2-r1.tar.xz 1052623472 SHA256 1b4c6b6c30bd97c64bce5f99b3de7c0ea92f263fed5adbaf175da9d4ead4cc78 SHA512 ad622340c3eda33b6c7281afe7343d1e7e9a048fb62f112d00a1ec52bbed8107794a916b3a5a64c40dcf793f5972cdc76c56da2311d43cbd378e91b3b0d3e799 WHIRLPOOL 0f97be076c9cb438c643877f05164aba7eec12048d5f66a46b315426fc3cdb7bc15b30d42ec15191f64a7c6656284ba050fd7b9d2b9765d7c91b1ffba5777346
|
|
||||||
DIST x86-debug-libreoffice-5.1.4.2.tar.xz 1050220800 SHA256 ba2ce9009400ccf0dbd31fcc1e6cb8ec8a174b4398ed57bfc237f622a0bc076f SHA512 6fd20e660139165aaffdd69af97b24494ed60f6a6eb19118a10a8458a7ed8ba39c8b7c0586ff74996640c7f5badccb07cfa827945e37f02a913cb63fbc69dbfc WHIRLPOOL 3fc25c83c58c9fbf35a350151bd7db98c369da21bead0db77673eca48b7aefeaeda8f0e5a5c8ad75c40d87e94938b103f3865b71a5231450cb051edefa07dcb4
|
DIST x86-debug-libreoffice-5.1.4.2.tar.xz 1050220800 SHA256 ba2ce9009400ccf0dbd31fcc1e6cb8ec8a174b4398ed57bfc237f622a0bc076f SHA512 6fd20e660139165aaffdd69af97b24494ed60f6a6eb19118a10a8458a7ed8ba39c8b7c0586ff74996640c7f5badccb07cfa827945e37f02a913cb63fbc69dbfc WHIRLPOOL 3fc25c83c58c9fbf35a350151bd7db98c369da21bead0db77673eca48b7aefeaeda8f0e5a5c8ad75c40d87e94938b103f3865b71a5231450cb051edefa07dcb4
|
||||||
DIST x86-debug-libreoffice-gnome-5.0.5.2.xd3 4808277 SHA256 d5ef6306b7a3b00fa4a2fe303ab21381bf6ce6afd1ae65373b9f4edc32efe5f8 SHA512 591a4c6f9a6e9e8c3f7b86f5a64ab24b5c22a9166562f82affe9e7b553ca8ab418344f9dfd5be974870f4f2d1a1d765b2c8bdcd28da54ca3fcfb5650670baf14 WHIRLPOOL 0d455fb8706ad870729b192c8145c00d49ef1a2b74267cea68efb528c440ee15a9123437282dbc079647be40efdc02638469ad4690d252a5e79eba3f1ac7fa57
|
|
||||||
DIST x86-debug-libreoffice-gnome-5.1.2.2-r1.xd3 5240438 SHA256 bdf7dfeedede3636b011c6c65e355a489251872ae35e08de50464c5b86519fe5 SHA512 49d85e7ee8f0fdf3127b62bc9e4d6716378c1d24cb31ce1a2f087eb13066e37bc45a99e8b64515e1b72b636a338a7eb0ebd5518d5dc7e4c47805ad990c3dd697 WHIRLPOOL 08799a8520714c8923b4d2c68d400221476703ed2fdc6febce2b30e06b043171412bcbe97d855d86bd947b8de4097c63d0b904534590b6acba117aa3c0ae56c9
|
|
||||||
DIST x86-debug-libreoffice-gnome-5.1.4.2.xd3 317713307 SHA256 e86ccf1285cabcbd92ca78f0f343ebd516248e3aa9446e0f3610ad19f5c7a6f5 SHA512 ae35c1ea9ee269df170454852c7c429e322e1cdddee9f16abd02d50a1e67fe889a6238cdb070e5af17cc6cb72b39d7f16df776a9314fb3d8fa98dc5895b4f634 WHIRLPOOL 03c5f8ef42f016b4af423c409631ccc0534a0734a454c22414666a06ed2eb6ed73ef14816cc2b87a75cd63310cfd45678c275cd75376e66d454f754f13dc43fa
|
DIST x86-debug-libreoffice-gnome-5.1.4.2.xd3 317713307 SHA256 e86ccf1285cabcbd92ca78f0f343ebd516248e3aa9446e0f3610ad19f5c7a6f5 SHA512 ae35c1ea9ee269df170454852c7c429e322e1cdddee9f16abd02d50a1e67fe889a6238cdb070e5af17cc6cb72b39d7f16df776a9314fb3d8fa98dc5895b4f634 WHIRLPOOL 03c5f8ef42f016b4af423c409631ccc0534a0734a454c22414666a06ed2eb6ed73ef14816cc2b87a75cd63310cfd45678c275cd75376e66d454f754f13dc43fa
|
||||||
DIST x86-debug-libreoffice-gnome-java-5.0.5.2.xd3 456885049 SHA256 b3a204497028d0e21631c2794ada6d9500dcfedfdb8243513f38b78aad91efe9 SHA512 d14fd087326d62c89b261f3322a23acabffb18fe28d95dafee057d42b8da328a2a85e925c01e653e0a8e724fe3f71442ba521c53a53ec795d78f400e9d4c30c0 WHIRLPOOL a83083a12ee8d6916381021c188c76dc82d624a6e0fafc6918040bb2c343e759c2560d8ab9b719f86b3d191e26a74362f3cc40bedcfff397b5421999367ca436
|
|
||||||
DIST x86-debug-libreoffice-gnome-java-5.1.2.2-r1.xd3 493220984 SHA256 3e135e4640d75cb80743b8bce35303125b10d8076702967af5634a59f05a6e04 SHA512 cdf578b5bd1ff7e8c21cb413bc34a515fc95de622eb9b4e6ea2be368dcab1ce6946e422c02459b9663eb0a01e0258f631a4d55f5c1a72e558944b98e31b5561b WHIRLPOOL 6f39a23f2a7922f62b869bd187f503cfde7c3c8026af93171ce07d371a6b0eddde636b0e2bd8bfccb6d817b03e48471c35fe34a4333e1368dd5f8de10bceffdf
|
|
||||||
DIST x86-debug-libreoffice-gnome-java-5.1.4.2.xd3 493982063 SHA256 0c557798c3681093bd81900e35881aad3b8c492bd23c3e505962c05e092f1bca SHA512 e368ff908b02e4d216f7419021b00765b4223890f73dd7c77202655bdbc35700016de3d8ebda2a6d7cdc8d70c1f8c6495f0e682a848560d38ec0f3cf7cccd9dc WHIRLPOOL 39c824e4c1699fa69fd2fb5f91a8ef527d0cf8cfff846b05ac58ee8db746ced2a22dd7f456d06f3b1cab480f7b1e3482b0cf5a39015c2b725500077727fdc6c7
|
DIST x86-debug-libreoffice-gnome-java-5.1.4.2.xd3 493982063 SHA256 0c557798c3681093bd81900e35881aad3b8c492bd23c3e505962c05e092f1bca SHA512 e368ff908b02e4d216f7419021b00765b4223890f73dd7c77202655bdbc35700016de3d8ebda2a6d7cdc8d70c1f8c6495f0e682a848560d38ec0f3cf7cccd9dc WHIRLPOOL 39c824e4c1699fa69fd2fb5f91a8ef527d0cf8cfff846b05ac58ee8db746ced2a22dd7f456d06f3b1cab480f7b1e3482b0cf5a39015c2b725500077727fdc6c7
|
||||||
DIST x86-debug-libreoffice-java-5.0.5.2.xd3 454576320 SHA256 8c45081d6615ac82ea6e9efbde06ee061718d54a951cbf17a0eb8970edcefe38 SHA512 36377b926805021b23f60115db39c2c8b78e635c86a2c0eec85bc6c8b9d589e166a12f1cc6d34e85761286a8c0a4f2e2ad62cd2d789e3866bc737f17a1ae2c01 WHIRLPOOL 61cd1ae075728a8fd2361715ded7d64cec49d5a31a2f57559585fd875445f300ad47a7bf7a329b9c422924011122d109b385db1bc33a8b1379dcb95e51da9dc4
|
|
||||||
DIST x86-debug-libreoffice-java-5.1.2.2-r1.xd3 490722535 SHA256 31950acf5c6559f229c9e2cdcf9f5a239be26185874610cf4214fb8059f10212 SHA512 13496f92832ed4475d52da222000a2ccfc752fb6f3a22cf51fb1b14ce5359bd28494dd355d6ec8473551a23c185c910e3360e8542c2f29175ae7080de15b2048 WHIRLPOOL ffb44b39aca6af19b6fa675a370fc3ec3ec7217aa4708eb89f8ea7d4fa0342f0b9848f199373ae713c6d35ca446c7995f0744f1c851f3297f8768218c6c18e7f
|
|
||||||
DIST x86-debug-libreoffice-java-5.1.4.2.xd3 486819886 SHA256 571eda12b6e1958da12a4a76c03ba572a438e61c36b6f027ef5d3a231c005a8b SHA512 c34665d411bf4fe6cf16d86731d04e7cc8da42aed4bc2c5be6c0483c92577776562a2d160a9d352ddfca8ddcd9d26ab714483a3473dc5e9d2c5da39df5cc3f79 WHIRLPOOL b5c4f39487df6bb9e8e1ad7ee2d55af601600c0b7bb5591e81b6090c0fe983053aa720717d7f198ab60d6970c5d7f4e21f727a3e240ef1ee5620f25cffb9da6a
|
DIST x86-debug-libreoffice-java-5.1.4.2.xd3 486819886 SHA256 571eda12b6e1958da12a4a76c03ba572a438e61c36b6f027ef5d3a231c005a8b SHA512 c34665d411bf4fe6cf16d86731d04e7cc8da42aed4bc2c5be6c0483c92577776562a2d160a9d352ddfca8ddcd9d26ab714483a3473dc5e9d2c5da39df5cc3f79 WHIRLPOOL b5c4f39487df6bb9e8e1ad7ee2d55af601600c0b7bb5591e81b6090c0fe983053aa720717d7f198ab60d6970c5d7f4e21f727a3e240ef1ee5620f25cffb9da6a
|
||||||
DIST x86-debug-libreoffice-kde-5.0.5.2.xd3 274324380 SHA256 015693261525aafa489ec7598c670d845e4258bf61f5774350a7d52adabbdc68 SHA512 578d9dd81ffc73cf999f2f2b6071b50d08d9bda5d776533f72465611a44276ddb70dd865979a8910d0a27ee942d1bc15f8d8353ea9416a306182b5ac4e4d70d7 WHIRLPOOL fb55a8d0c5acbcc5eab00fcff3aff99a5682afd24892c4ec301ccd4fe505a9f574fd7d45530af849c9c05e629c0af067bb952d512044312ee71cfeeded9bd09c
|
|
||||||
DIST x86-debug-libreoffice-kde-5.1.2.2-r1.xd3 303276281 SHA256 d337182aa1f4e76a7561b8875d389ec63805c48530e855e43ce8598aad74e924 SHA512 b258a760713dba3084adf6ba5011fd3b2cfd848d4edca3ec25b6014016871551b8c9f9a01c01971243ce11415534e3d9b5fb1854786c96cfd30b9ac4e66bc153 WHIRLPOOL bb2d279b5edb67db5d4c258cb110767241fa8859d7a961a67728bc85929a24780ecb33712b542fc10f1bef1187bc9b7072117adc81de104f87de0865c6ebb2c7
|
|
||||||
DIST x86-debug-libreoffice-kde-5.1.4.2.xd3 297826318 SHA256 7f9989867af201c73e53f48c11dfc0f56cfb096b4d0a60af82fb816d8e0f9529 SHA512 1f03c7a077bc599c63a8f4571b43f98698d647220b48018843be0aa9b52ad2506f139db6429ed2fdb48a64782a332f6341dd8984073886f3aa00e8c55bd22efa WHIRLPOOL 979a327df925c844f7544a1f30a594d14a99789cf3440db6f496f05f1787d83274b816d077943af5fd75a4578330550173cd0a6116a242138a849871a4047e62
|
DIST x86-debug-libreoffice-kde-5.1.4.2.xd3 297826318 SHA256 7f9989867af201c73e53f48c11dfc0f56cfb096b4d0a60af82fb816d8e0f9529 SHA512 1f03c7a077bc599c63a8f4571b43f98698d647220b48018843be0aa9b52ad2506f139db6429ed2fdb48a64782a332f6341dd8984073886f3aa00e8c55bd22efa WHIRLPOOL 979a327df925c844f7544a1f30a594d14a99789cf3440db6f496f05f1787d83274b816d077943af5fd75a4578330550173cd0a6116a242138a849871a4047e62
|
||||||
DIST x86-debug-libreoffice-kde-java-5.0.5.2.xd3 456139388 SHA256 e449a410a136b82e5f645b92845f8e57eb09fb395a83342d52de483fab74e3bb SHA512 57f62ab4ec3e6b87db402257d96be8033b36e712cfffad5491de52d7242ffcc03f3d76f85e167ae2c36f5fd62297cd26e816dec951e31d0199cf35f53f074d2e WHIRLPOOL 75e6928007bbb2d15a260ee55fee9038281249e5ab636093d6c49fe9c092f08e452d635b66acc6af1eed7b46ef059608ea615ef1144d72776811698d03e55316
|
|
||||||
DIST x86-debug-libreoffice-kde-java-5.1.2.2-r1.xd3 492376503 SHA256 4d5876f135ce8301e74e8c6398022daf06c01269f740584ad692a8ca6b40d78b SHA512 47d086288871c216a493857a0fbab8ecfe29864c0a868827bcda99bb37806b926eb8fdda9c2bd8956de7b014a3e503abf4f88fd590362adb1698e8126f336d93 WHIRLPOOL 86c67ec3bc25ca6341da939a1ee1d4c5420be7a19ed5ce6341559cc5e42234905a8ae4e08d893cb6cd8b5572d6c20bb6569056b134a878295ff8288b1ea6fc35
|
|
||||||
DIST x86-debug-libreoffice-kde-java-5.1.4.2.xd3 488490477 SHA256 3b39a91fea0346aec3425ad178be2b5318f0d8cabd6a2f119560f3ba19499008 SHA512 062447ddda92c196459dec81ba3d81e95d472758bc6280936485246bb23df738a2e4c4a8b30443ecf567a41a1d1607529e23e892ef529b3ea314c4e85d77a468 WHIRLPOOL 5a87d969a9d3bc8ef0d966252d689e7baf45256391752cf54a1063b48088037240fb684148b4cf2422cfc5c475f9c2d05465c28da3e878028149eb2344465e47
|
DIST x86-debug-libreoffice-kde-java-5.1.4.2.xd3 488490477 SHA256 3b39a91fea0346aec3425ad178be2b5318f0d8cabd6a2f119560f3ba19499008 SHA512 062447ddda92c196459dec81ba3d81e95d472758bc6280936485246bb23df738a2e4c4a8b30443ecf567a41a1d1607529e23e892ef529b3ea314c4e85d77a468 WHIRLPOOL 5a87d969a9d3bc8ef0d966252d689e7baf45256391752cf54a1063b48088037240fb684148b4cf2422cfc5c475f9c2d05465c28da3e878028149eb2344465e47
|
||||||
|
@ -1,88 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
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-${PV}.tar.xz
|
|
||||||
kde? (
|
|
||||||
!java? ( ${BASE_AMD64_URI}libreoffice-kde-${PV}.xd3 )
|
|
||||||
java? ( ${BASE_AMD64_URI}libreoffice-kde-java-${PV}.xd3 )
|
|
||||||
)
|
|
||||||
gnome? (
|
|
||||||
!java? ( ${BASE_AMD64_URI}libreoffice-gnome-${PV}.xd3 )
|
|
||||||
java? ( ${BASE_AMD64_URI}libreoffice-gnome-java-${PV}.xd3 )
|
|
||||||
)
|
|
||||||
!kde? ( !gnome? (
|
|
||||||
java? ( ${BASE_AMD64_URI}libreoffice-java-${PV}.xd3 )
|
|
||||||
) )
|
|
||||||
"
|
|
||||||
SRC_URI_X86="
|
|
||||||
${BASE_X86_URI}libreoffice-${PV}.tar.xz
|
|
||||||
kde? (
|
|
||||||
!java? ( ${BASE_X86_URI}libreoffice-kde-${PV}.xd3 )
|
|
||||||
java? ( ${BASE_X86_URI}libreoffice-kde-java-${PV}.xd3 )
|
|
||||||
)
|
|
||||||
gnome? (
|
|
||||||
!java? ( ${BASE_X86_URI}libreoffice-gnome-${PV}.xd3 )
|
|
||||||
java? ( ${BASE_X86_URI}libreoffice-gnome-java-${PV}.xd3 )
|
|
||||||
)
|
|
||||||
!kde? ( !gnome? (
|
|
||||||
java? ( ${BASE_X86_URI}libreoffice-java-${PV}.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}"
|
|
||||||
|
|
||||||
QA_PREBUILT="/usr/*"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
einfo "Uncompressing distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.tar.xz"
|
|
||||||
xz -cd "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.tar.xz" > "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.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-${PV}.tar using ${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PV}.xd3"
|
|
||||||
xdelta3 -d -s "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.tar" "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PV}.xd3" "${WORKDIR}/tmpdist.tar" || die
|
|
||||||
mv "${WORKDIR}/tmpdist.tar" "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.tar" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
einfo "Unpacking new ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.tar"
|
|
||||||
unpack "./${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.tar"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() { :; }
|
|
||||||
|
|
||||||
src_compile() { :; }
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dodir /usr
|
|
||||||
cp -aR "${S}"/usr/* "${ED}"/usr/ || die
|
|
||||||
}
|
|
@ -1,88 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
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}"
|
|
||||||
|
|
||||||
QA_PREBUILT="/usr/*"
|
|
||||||
|
|
||||||
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_configure() { :; }
|
|
||||||
|
|
||||||
src_compile() { :; }
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dodir /usr
|
|
||||||
cp -aR "${S}"/usr/* "${ED}"/usr/ || die
|
|
||||||
}
|
|
@ -1,36 +1,12 @@
|
|||||||
DIST amd64-bin-libreoffice-5.0.5.2.tar.xz 77007548 SHA256 e27462dee3432c69a341964983a8500fe66164097d1e29d33fee0f84918f7c1b SHA512 ff5d300c158195b0d53df2e9f9aa237432bb4f00c3cf776e77dc129923e66f9b3ca98b5c2661f3adda00940dbbf785c2da801efdbcba06bece288b445b9281c5 WHIRLPOOL a728a718bfd7a1e2366498d1c5077882eb153a143df478faeb6e8adf5d0fd27f97e58965527d536ae824b5ba27ef64d05361ec70bd904d0a7cdb74b580c4ae0c
|
|
||||||
DIST amd64-bin-libreoffice-5.1.2.2-r1.tar.xz 77349604 SHA256 36738da36c0daaccce92f0d95b3e8d119da4955bbca8cce1ffe52acabc9173f9 SHA512 ad5225c396765fd59c2fe54de94ddc4cc2b1e739e1481c6c6a475a815079a92752c82bc6ed744b91a0bbb5bf35d439a214001607815199aabfb797d5a56a1db8 WHIRLPOOL 7023f89a7c10c5d86a6dbc6a4614404c1969b8749bc2f3e47c3704bb2026520a264cc4936e6f62c1e5ca60cc387bd1b5d1e1759331b60e5ba8110fbe610b42e9
|
|
||||||
DIST amd64-bin-libreoffice-5.1.4.2.tar.xz 77240312 SHA256 986310603c53e0da312126e6b6b7dba3fa4904f46d6fc44a9498bb2a48712282 SHA512 6be74621b9966b7b737f7f8b2cf14ed7f3b1faccfca25f2c1fa037dc99ac227e8ec9fcbec3871769590c8548d6b2476e726281ce1a90224f94df85899bf87cc5 WHIRLPOOL cb7572ac480c663d385f27d43bf4b93138757f79d193c385788480729a5258f2adcaf4a2e2b0f6d0ca1dcfe4c5c4dbe2fd157b82bcaec14e0e0ec1849c5d1293
|
DIST amd64-bin-libreoffice-5.1.4.2.tar.xz 77240312 SHA256 986310603c53e0da312126e6b6b7dba3fa4904f46d6fc44a9498bb2a48712282 SHA512 6be74621b9966b7b737f7f8b2cf14ed7f3b1faccfca25f2c1fa037dc99ac227e8ec9fcbec3871769590c8548d6b2476e726281ce1a90224f94df85899bf87cc5 WHIRLPOOL cb7572ac480c663d385f27d43bf4b93138757f79d193c385788480729a5258f2adcaf4a2e2b0f6d0ca1dcfe4c5c4dbe2fd157b82bcaec14e0e0ec1849c5d1293
|
||||||
DIST amd64-bin-libreoffice-gnome-5.0.5.2.xd3 429970 SHA256 de6dfaa786bc5fc9baa18f2c8a310943bd3c89d891a7daed1004c509856e8dc0 SHA512 4326872359f94f9820bb46b695a4f7b97ef979b5da75c47c20bb3c34979544f9f45ce75de25a18a72be809ef388e20a82905f3b586c590867bb895b062033f18 WHIRLPOOL faa9d3458429d4e7ac2ab34e760b560f38fcbd480a43b6457bc411fc7a809afed80c4f7aa53c75ec9f1088097fc6846d623bfb49eaf60da7f78a2a01c5c04f53
|
|
||||||
DIST amd64-bin-libreoffice-gnome-5.1.2.2-r1.xd3 404886 SHA256 3cdc749634c55e0a8aab606b36421437e5d2e3943d171d08bd6b545255fb36b4 SHA512 293e275b076f29d2447492aeee5c16ab94d855b06d4c0bce3f23796756c39ba83db0065cc9212b17bcd4cb53e3041141344db8187ed5515edcbe6ae4688a4feb WHIRLPOOL 7bac6dbbe62c30e528ced880a872ea5011fc6897f2b5bb6970646bae366245d72e338357153afabed2e18f165fafd3386b8a06c03d94f94feb3cf2e31add8d54
|
|
||||||
DIST amd64-bin-libreoffice-gnome-5.1.4.2.xd3 16850470 SHA256 cda714bd0fc4e0064e147fb05dfac403219dc186b0b9286c06e06e6b4ff33165 SHA512 ac542a47896f011f3c1b2cfcab50384a0ba1040b24f3db5ef4d4597b27ca1d9bd0d935b03eb02d3079991fb0966a3427cc4e8b5e6f82bf58e59607825c845381 WHIRLPOOL 3ede540a2e0a74d45ed26f5555f5ced8449697cfd2160101e82292f16fadf00622bd70a6f913d5a6af8768e62c8fcd747ec5c8f9ae9fe43175e28539b4ee877b
|
DIST amd64-bin-libreoffice-gnome-5.1.4.2.xd3 16850470 SHA256 cda714bd0fc4e0064e147fb05dfac403219dc186b0b9286c06e06e6b4ff33165 SHA512 ac542a47896f011f3c1b2cfcab50384a0ba1040b24f3db5ef4d4597b27ca1d9bd0d935b03eb02d3079991fb0966a3427cc4e8b5e6f82bf58e59607825c845381 WHIRLPOOL 3ede540a2e0a74d45ed26f5555f5ced8449697cfd2160101e82292f16fadf00622bd70a6f913d5a6af8768e62c8fcd747ec5c8f9ae9fe43175e28539b4ee877b
|
||||||
DIST amd64-bin-libreoffice-gnome-java-5.0.5.2.xd3 25782921 SHA256 5223af3fb9323d0e93a585306eb84a5e9b194f04fdc46e5004bdc20679e80dab SHA512 a978f0097078221c5cdb5db15c6b11c406969fe8a75e8b207586d6052d2b667576399833d3ae96ec91317d4d4efac699279eeecb9cc9d24bbe76e900408a0f63 WHIRLPOOL 3f554ec2c074a7249694fce83667c795707191be5e5cfafff924b8e74b5debc093faf6f32495cdaa687718f61e9ff3bece668a77a587a6be6e513d76d9466413
|
|
||||||
DIST amd64-bin-libreoffice-gnome-java-5.1.2.2-r1.xd3 25391732 SHA256 95f97ff17b919e61202ecfa6b94602f77dcf7d3cfc7ad8b8c793f81e279fdf86 SHA512 44130af55f423c9998c153a4d4546ae74cc63c8982b4c512665357fb21ab70a3eb7ae28d5e754247e32dcc0ccdecd6ad4aa3681319bbc573b64e9801285d9eee WHIRLPOOL 7d7751a5985b980476afd295fad591c63dc5b947d81dacfa6bdb6b2aca5faa2cc4ccbe39450c6f7c27dca19a0e8c5dbc95e1f4e561ffd1261389da60bd31ba6e
|
|
||||||
DIST amd64-bin-libreoffice-gnome-java-5.1.4.2.xd3 25957600 SHA256 9ce1c43156658bdd909d911ff1f31719897b7c6ec29482494e0f7f9851e933e2 SHA512 1aef04017643e87ff3c4d7560ac030512076f5011733cd02be81d165e89ccad7b20cf4a3ed463585c347b06eaf4fc1e6c0e3b110934377537410bc10eb327389 WHIRLPOOL 3a16361e3a9287ee74bfc8ca7d9c94b76babef374ea36391bb18a363f33eaecf3a496fd4fc2cae4320b53ef9c402853ff4d26378481ec0a7a090718515d3cbfe
|
DIST amd64-bin-libreoffice-gnome-java-5.1.4.2.xd3 25957600 SHA256 9ce1c43156658bdd909d911ff1f31719897b7c6ec29482494e0f7f9851e933e2 SHA512 1aef04017643e87ff3c4d7560ac030512076f5011733cd02be81d165e89ccad7b20cf4a3ed463585c347b06eaf4fc1e6c0e3b110934377537410bc10eb327389 WHIRLPOOL 3a16361e3a9287ee74bfc8ca7d9c94b76babef374ea36391bb18a363f33eaecf3a496fd4fc2cae4320b53ef9c402853ff4d26378481ec0a7a090718515d3cbfe
|
||||||
DIST amd64-bin-libreoffice-java-5.0.5.2.xd3 25423904 SHA256 b2b1f04bc27e6884887ce641ca324ac8e048ba289c70637c2d93787b15385f5d SHA512 2e56c66b5fade293785e42377dddaa226e2421416e474bda867afe66ed7323c8deac1b150f95198a04dc533aaf3f08a843e72173e214f45ddb9ef44e9ebfd7f2 WHIRLPOOL 0d82b04706c93f5dc48cf76f95adb66e44c07232af1f15c10be712a75733c928afbbf3c464a49d0e4b02dbd7e5831efc1dd858189081a81e6ce466fd0b02a292
|
|
||||||
DIST amd64-bin-libreoffice-java-5.1.2.2-r1.xd3 25046564 SHA256 9a752b4f8c0fd772e92fb0ce9bdeabed32cc43392c6f62bd859b010e1252b2bc SHA512 1e6e3febc63fdfe22ca90f63015623ac0e0d0d73dbfe5d9dede6c27587a808d5ca7703f21326fbc3f030e0c73f0189deea151ceb8ed05be6464c9bb54f054337 WHIRLPOOL 56140ff8097a27c9830c22b8d81a4a523e30edcfbca0813696e0f90929740454ce10551d5b6e8d17fbd855b5a301d2654e5c507241a38bcde471980784095752
|
|
||||||
DIST amd64-bin-libreoffice-java-5.1.4.2.xd3 25123859 SHA256 c9d461aa39b8ab8d534f5649271c569cf9aac91f0b9b1661273b2d6fd58a0b0c SHA512 812097aa83224b9b63f6495f156f9c6831e51881425639c457f631c8928003ec2318e1c32def85f73c948d1f1177669209a705ef045a8cd754e2d7de61b3f5e4 WHIRLPOOL 20854f7a227678606d793e8511db0eb6a6c2e4f490f0e30677a6ffd35628746ee3dba60fb53b9256a7e0f6ffd4dc397f21d693d03fdf6573fbdf1e3aa010c3a6
|
DIST amd64-bin-libreoffice-java-5.1.4.2.xd3 25123859 SHA256 c9d461aa39b8ab8d534f5649271c569cf9aac91f0b9b1661273b2d6fd58a0b0c SHA512 812097aa83224b9b63f6495f156f9c6831e51881425639c457f631c8928003ec2318e1c32def85f73c948d1f1177669209a705ef045a8cd754e2d7de61b3f5e4 WHIRLPOOL 20854f7a227678606d793e8511db0eb6a6c2e4f490f0e30677a6ffd35628746ee3dba60fb53b9256a7e0f6ffd4dc397f21d693d03fdf6573fbdf1e3aa010c3a6
|
||||||
DIST amd64-bin-libreoffice-kde-5.0.5.2.xd3 7893019 SHA256 42bc1df7bdd0dbad735e0a8a4e6c862ad1c4cbc36cecd65abb2bc2e6addebb46 SHA512 0b57e26e5d34b6e96698a9eab741ecade9499e5ce9c0cb44fa65dcd1e71f9e8123478478c40e31cc41dca7b9cdda33b343aff6bfb9a8d8bb520775da2d23dbc3 WHIRLPOOL 98a88052acede322f522fd422de8b7046120492e413aa1d9622e4ea6e7c0869bbba4aa9f66d7bf7f646a9272ed29f5ad401638c9c02863b3464d60fb9e0369f3
|
|
||||||
DIST amd64-bin-libreoffice-kde-5.1.2.2-r1.xd3 7800723 SHA256 6b116f6d41f9eccb5712a0ab36dfb31b8d9f01e1c020ef809b539e27bd97ef39 SHA512 c1e6dab4a30533574e7653adb768611a1c3f0fba332fdb23c63fc1d2ce3a660c24be2ba2f68662284d36e95b7c7565bb5c6fb09054d7840cb319be2fbe05122e WHIRLPOOL e91a0c639d22fe6f89c124b3d912de66ff3bf75ed9c90839d926af224e480c5bceb87b3355ae465704268dc25e0f8a37a2f801957a0a446b486c581ba74bd6eb
|
|
||||||
DIST amd64-bin-libreoffice-kde-5.1.4.2.xd3 7426912 SHA256 75b4afdb922cbf107a08ebad4def7314f7350ba98129789fe481af4c02ebd66c SHA512 5c30deeee881d5f1d6a26ccd622bd1e76285b95464e23a2f99bf6f0bcec37e80ed98220bc59767ca8516520544190c0bc68979c08c9ed5711e2e9cacb2ed85e9 WHIRLPOOL ba7764cdfacfb64e4bad0dc9d7017765b7973980dbdfbc3cbcfa69ae5035943f2143339e0487a8c769ab5b7dfcd3c23fce839ea667815fdb02b53b725a157e57
|
DIST amd64-bin-libreoffice-kde-5.1.4.2.xd3 7426912 SHA256 75b4afdb922cbf107a08ebad4def7314f7350ba98129789fe481af4c02ebd66c SHA512 5c30deeee881d5f1d6a26ccd622bd1e76285b95464e23a2f99bf6f0bcec37e80ed98220bc59767ca8516520544190c0bc68979c08c9ed5711e2e9cacb2ed85e9 WHIRLPOOL ba7764cdfacfb64e4bad0dc9d7017765b7973980dbdfbc3cbcfa69ae5035943f2143339e0487a8c769ab5b7dfcd3c23fce839ea667815fdb02b53b725a157e57
|
||||||
DIST amd64-bin-libreoffice-kde-java-5.0.5.2.xd3 25462697 SHA256 f618f080294f3e0107f4a2bce694d3da4f01f79f36ed1e7c941bc6e61d935677 SHA512 d33528f8553ebfdf6b4b21a0445e7c44ee37238f7a8edcec66d9611911cc156e50f4b42d3b12240b221c6a15fdb4d0ac89ca36876b72c42abae6b07126e58652 WHIRLPOOL f0935f4dcac6e7377edd94fb68f8659b890776ad71b7962255d6ce371e6246884e69bd54c05552118cc74983226e0a012b80b43c5e6eb724dfee26e2001733b8
|
|
||||||
DIST amd64-bin-libreoffice-kde-java-5.1.2.2-r1.xd3 25374462 SHA256 a5a903161fb84f8245c663858fdb813f943c3514372469f6e1a51dfdd1c02b58 SHA512 c929687f8ffda76caceca63d1821237196ea8519ecdf680436809fa43938e439ea49ea1a06c48a9a6c8898b3788905a5a77c2f9fc87e8bda72a0790ae02417be WHIRLPOOL a7ba1783344b39d03ac3afd245b27913c4fda834c0938a8677624fbf486916f1fc0bf2f5b7192a80422699dad9a3c07df90e1dc75da1eccc3833572835c44ee0
|
|
||||||
DIST amd64-bin-libreoffice-kde-java-5.1.4.2.xd3 25320801 SHA256 cecfb0f51efa56763603c3b94e634be679f309c7c46647af8670a01de0dfd47f SHA512 03fd1abf340eb7ac5c98eabdddf9f458ec816cf53d3a47e7c45ee93651f707b294e798ae6b5f35568b493aa94cc850b56a0063962721aa9e0ac85c0fc33cc9e2 WHIRLPOOL a24bc1f388be01614791cbe7ed87a66b849a1665d2d63e4278d8de76e68f54879ab82fa1677d6de736d9c3cd6e69e84fe866cdba435f171cda515646f7eeeeb1
|
DIST amd64-bin-libreoffice-kde-java-5.1.4.2.xd3 25320801 SHA256 cecfb0f51efa56763603c3b94e634be679f309c7c46647af8670a01de0dfd47f SHA512 03fd1abf340eb7ac5c98eabdddf9f458ec816cf53d3a47e7c45ee93651f707b294e798ae6b5f35568b493aa94cc850b56a0063962721aa9e0ac85c0fc33cc9e2 WHIRLPOOL a24bc1f388be01614791cbe7ed87a66b849a1665d2d63e4278d8de76e68f54879ab82fa1677d6de736d9c3cd6e69e84fe866cdba435f171cda515646f7eeeeb1
|
||||||
DIST x86-bin-libreoffice-5.0.5.2.tar.xz 76229348 SHA256 a2f167398e439933afbc57ccbc30855cb618415af6c93a7d448f37fbcb327ae1 SHA512 8bf6fc31cd1bcb38bb154611aad3f0c8aaa72addeb8825e0afc0ad9857034a1eb1f192b3149de8312cfe08501ad5c71a4c5ae51e20d981a231d5d87e3c22178c WHIRLPOOL 0569d64562b8d616397107b6be9efe5ab724ab8d419c99a453821f1e66c202506ced2fe3966ab8cfccf871fb6cd90a4e80d46c2179767fdaa9912606a1391eb3
|
|
||||||
DIST x86-bin-libreoffice-5.1.2.2-r1.tar.xz 76481432 SHA256 6fe4907ae94c58a376a3679429017253179223c959ded9de422ee2e9bc22faef SHA512 39c0b8a7fd3dfd761762cb85129627e3310496e79866e302f49a16887e8f6e85dbc01143f42150d990bae494e29ad3563765ecb09eab7023a500996fe0468f08 WHIRLPOOL 9eb1aa34f685e7c1116939153bd9ddc773014cbd0c7f3446cd6031729d1ebd17d71167299b1d69eb777975b83f160a945d0280fa40aaccf97828ff11e169648b
|
|
||||||
DIST x86-bin-libreoffice-5.1.4.2.tar.xz 76365904 SHA256 9fa89ed3c833392278e0300978fb9639596ae687fbec4432463b5f748aa110dc SHA512 5d5c404a6759b77fc1012cf1bab502dde731689560e4edae7d14cd38fbed8f3ceba2c4aad7b499079bb5a971a2c345640b6c59971e520a6659896834c9e110eb WHIRLPOOL f2b4ae20a015cf70ff6779d3f99009fd0bd5253b412c28cee7255c0f9091dbe1efce920d60fa14d654760d8b3b37b31c6975133adf534c507f380ec8cc71f381
|
DIST x86-bin-libreoffice-5.1.4.2.tar.xz 76365904 SHA256 9fa89ed3c833392278e0300978fb9639596ae687fbec4432463b5f748aa110dc SHA512 5d5c404a6759b77fc1012cf1bab502dde731689560e4edae7d14cd38fbed8f3ceba2c4aad7b499079bb5a971a2c345640b6c59971e520a6659896834c9e110eb WHIRLPOOL f2b4ae20a015cf70ff6779d3f99009fd0bd5253b412c28cee7255c0f9091dbe1efce920d60fa14d654760d8b3b37b31c6975133adf534c507f380ec8cc71f381
|
||||||
DIST x86-bin-libreoffice-gnome-5.0.5.2.xd3 400041 SHA256 96666941b7fef1dc2aa686332a3cac90592f6b83e6af34f719388cc7041ff62c SHA512 f2ea55f87bdb944ede8f8dd80c163cd7571c26faafa8144b7af8ea3ca4381f7834246ae2e8a4aef7ccd2b5314fb16543362e7830868708886d45fd283d299647 WHIRLPOOL 2a231f2d6fd70cbdeaa854e02e84b6c8f50073759cb37a0f1f9d19f5470fcccad12a0b99f1430511890d2b29503f4918d4db273a640bfeb52089bbd1730001e1
|
|
||||||
DIST x86-bin-libreoffice-gnome-5.1.2.2-r1.xd3 378054 SHA256 cf5835e9cf1dd5cbd3d51bad0148114757f1db8558e3caeba97be5d03552160a SHA512 004dcd5eaa9b6e41e6dca17aa952f319d27e22906f2eb8a3bf49e9881e01a65e69c47111a843565d8c4987bda98974311341897530cd0eee3d53e93a109299eb WHIRLPOOL f1abe1c6a724987640dbdcf4ae784c1a8fe484857487a77a9861f405137c756b2c8477e108dea02d50a8ab20eb91d004353cca882ee1d18867c72c9a6508df8e
|
|
||||||
DIST x86-bin-libreoffice-gnome-5.1.4.2.xd3 16831016 SHA256 d26b4a4dac3be403e6fef1bd9ef76571cc78d98ec5caf7119ad461478824fe9e SHA512 084bcaa663feda7f8ac03357e3e46a923d3f5fbb9913e07e386593a0d54ea25d6d9e82a6cbe2e1e2ad2e6ed39b3231128f89aff1a539bf86b24154b05a565e73 WHIRLPOOL 0f96f9449423ef4feaabcde1105bcb311b93b82937ce9dbfba5cce34f395de4099a9536ca3fbe40faf077b24015f83f0ab00fe3196b37d1c096f12f3b2c346c1
|
DIST x86-bin-libreoffice-gnome-5.1.4.2.xd3 16831016 SHA256 d26b4a4dac3be403e6fef1bd9ef76571cc78d98ec5caf7119ad461478824fe9e SHA512 084bcaa663feda7f8ac03357e3e46a923d3f5fbb9913e07e386593a0d54ea25d6d9e82a6cbe2e1e2ad2e6ed39b3231128f89aff1a539bf86b24154b05a565e73 WHIRLPOOL 0f96f9449423ef4feaabcde1105bcb311b93b82937ce9dbfba5cce34f395de4099a9536ca3fbe40faf077b24015f83f0ab00fe3196b37d1c096f12f3b2c346c1
|
||||||
DIST x86-bin-libreoffice-gnome-java-5.0.5.2.xd3 23114772 SHA256 37b241e0753976546dd0aae96751fbe0bda39036ebee8604098a464b081e95dd SHA512 0d5ea6738023300635d48662020917dc3781feef179132cd9e0b9be57bfcba00fbeaaf1c30df593ec572bb8a052bf81819562a2812d7410e67b3493e3687aa97 WHIRLPOOL 8dd5b0e337b2b8258507789911a293d3d9c0f6b74eb12df0cb30b7e2a4ba43357c18b284daa107f95a42e761a3dc53ed267c5ca6a99afc3082a79c7a0f832257
|
|
||||||
DIST x86-bin-libreoffice-gnome-java-5.1.2.2-r1.xd3 22321871 SHA256 795810447908122ebaa2eb1620599f5a8f5f56cf3ead73ef3fc69576c364997c SHA512 8db1affef7c4bce123940f0a872b778409017e2821c25a7727632b7b6bdc39bd967a8b3db86af89b6a8e8f32695118c8f36d1a7b0a01c340cd6a8956fb682e37 WHIRLPOOL 13ef87a22b79ac88bfe4ff7de5f8bfdb641a4f3577c466b7738de6f5bde6a536f9eaa139f9c7f79946116746865fea8d98c66d7e38dc6b9b6a1d9ca4edfdc79d
|
|
||||||
DIST x86-bin-libreoffice-gnome-java-5.1.4.2.xd3 23280545 SHA256 9cec6455f012fbcab0bb613afab8dcd9ed02272cdd68347371c765b1751fe00b SHA512 a49922cbdcf4a4be6a7b1aaae1c00d0b3b5c0266848608e1d525444c38b1b199b1a37934b2af8e3d11633b310b435895c518cbf6121fea048d749b1ed57d596d WHIRLPOOL 7bf24816a94f6a17d4bcc4ff4354c2e6a40cd0209bd1461bfcaf5219806355fe06c269057ca321a5221c0af59cb6da7e460ad88dba8fc95acb3ba262f30bbffe
|
DIST x86-bin-libreoffice-gnome-java-5.1.4.2.xd3 23280545 SHA256 9cec6455f012fbcab0bb613afab8dcd9ed02272cdd68347371c765b1751fe00b SHA512 a49922cbdcf4a4be6a7b1aaae1c00d0b3b5c0266848608e1d525444c38b1b199b1a37934b2af8e3d11633b310b435895c518cbf6121fea048d749b1ed57d596d WHIRLPOOL 7bf24816a94f6a17d4bcc4ff4354c2e6a40cd0209bd1461bfcaf5219806355fe06c269057ca321a5221c0af59cb6da7e460ad88dba8fc95acb3ba262f30bbffe
|
||||||
DIST x86-bin-libreoffice-java-5.0.5.2.xd3 22950526 SHA256 c3e30257b11b15da9b00043b12bf5fe39ea82080e7e4ba6e79a2d4494aafd54c SHA512 8434aa2c5f48ea25946ff8322e0cfaa74e632e8770c3a3fe0f61f88874475c498754812e83a2120c23fc531a0f92c2c7b7ecfbbceb1314ec7c5720b1954bb5e3 WHIRLPOOL b083a9f9ae0b9608385f30b957217ad1c544f8c58e669f61a05cdfa13b898a0d5d2ac1b1781915f0792d4036426fe2c3607a1f4165369fcaf43f132ac48ef775
|
|
||||||
DIST x86-bin-libreoffice-java-5.1.2.2-r1.xd3 22358553 SHA256 f715e537b2f8c8768b179d08f3ba22fdabac34f7cc26fd8207ce16bb6c845dc0 SHA512 4103057c610bdb4582a818c7b0c934e22bcab0f4a63483c8bf8c7c7c64c3996c90ff4d12736b9aa5ac68bfb83a367eeb099632dbe726c5d32009c566084349f1 WHIRLPOOL f1abcd3bdaaf97a3afaa0fc959024177026787e619956ac92d6b663503192fb0e702be0b212785c88575def0ec8122b2f84001fde769da8bac6e7815ef564ba6
|
|
||||||
DIST x86-bin-libreoffice-java-5.1.4.2.xd3 21912095 SHA256 c9bec31778fa4bf2d5f42b4ca40773a2b7f20df29500a784fae45ab53b56c752 SHA512 a72e9df6f44b79bc811aac13a3fb25d0506c9bf770255c965a678d822599e352b1f0453f13f75deb6efbf6bba98e6fb88981ae7dc02d489fb373d0ca99661cac WHIRLPOOL 1d6ee069e9f0c1fcfb6cede73e01400aaf62e4a98612c0e466dadc62db46a00f08e96d3c84637ce8a8f3ae221e18e994f64f08a68c6e06bc28da176196bd495f
|
DIST x86-bin-libreoffice-java-5.1.4.2.xd3 21912095 SHA256 c9bec31778fa4bf2d5f42b4ca40773a2b7f20df29500a784fae45ab53b56c752 SHA512 a72e9df6f44b79bc811aac13a3fb25d0506c9bf770255c965a678d822599e352b1f0453f13f75deb6efbf6bba98e6fb88981ae7dc02d489fb373d0ca99661cac WHIRLPOOL 1d6ee069e9f0c1fcfb6cede73e01400aaf62e4a98612c0e466dadc62db46a00f08e96d3c84637ce8a8f3ae221e18e994f64f08a68c6e06bc28da176196bd495f
|
||||||
DIST x86-bin-libreoffice-kde-5.0.5.2.xd3 3978200 SHA256 c7bee4ddf710f7dbe035e1570a96f92f75e0ebd2da74275f3b75275f497c67a3 SHA512 4167d9ecd4fc153b9cd2229bca0c3ec53e223e3a859b4aa586e8efaba882e209b180494500747e082f5ec5e2dcd2f9d7ef6de78e3e8313cb4d8b608df83510a0 WHIRLPOOL 3285286ea7537de4f798352706d15b5356a6b12028b00a33643a6e8c196e33342529dd99e9381be5fb9cf0a2d8b32794b8ffe6dd013ee2771eaec65d95180a33
|
|
||||||
DIST x86-bin-libreoffice-kde-5.1.2.2-r1.xd3 4338669 SHA256 ac91d060e4e9badfc0071d5492572555d7a884afd6c7eb6081eda2e869849451 SHA512 542191a536f682345cc8b357384000fbda7f345b6b878043d8f777ee70c1f1b3974cb221420213580537e96f288af7458f7da2b38b47fef7666dc2211cb914fa WHIRLPOOL 6884acac0e19b9cce926e10bacebc4d6a6db5fdd3921f5856250e214d6d15c77422d14b2c8e53dca47540dfa8b7f4cc9b5522c0d71289db441c28045f170ce50
|
|
||||||
DIST x86-bin-libreoffice-kde-5.1.4.2.xd3 5429489 SHA256 fb2c5837c72aabdc7f46ed26fac3d1adedaa456d444fdc855b141cd622ca6ae4 SHA512 5c294e2a58c7c567b92d160ea53ce9acfd19b3cbb45444f53795d4ecaa41ea4c9139eab1571b665935cb8b7222689eb526d94dc70b0c408cd6b708014e3fe72f WHIRLPOOL 62ac2f85a6324e41ee609c3eac10c08fc73efff656b18d86061984e02d407534f8b97a77de234b4d31f4daa48af62303e360640c110c87d2df20ec628ab3f355
|
DIST x86-bin-libreoffice-kde-5.1.4.2.xd3 5429489 SHA256 fb2c5837c72aabdc7f46ed26fac3d1adedaa456d444fdc855b141cd622ca6ae4 SHA512 5c294e2a58c7c567b92d160ea53ce9acfd19b3cbb45444f53795d4ecaa41ea4c9139eab1571b665935cb8b7222689eb526d94dc70b0c408cd6b708014e3fe72f WHIRLPOOL 62ac2f85a6324e41ee609c3eac10c08fc73efff656b18d86061984e02d407534f8b97a77de234b4d31f4daa48af62303e360640c110c87d2df20ec628ab3f355
|
||||||
DIST x86-bin-libreoffice-kde-java-5.0.5.2.xd3 23032293 SHA256 4d34852f808961a724bc51fd701b18ff814b074992e515e45eb3d35af14ffbd0 SHA512 0fe5b4d2abed920ff66f345b9e91e1bd81e6e16d7a7d904952c614258a56e65066b6089c1bde71a302748a0995e40d28714f520bc2e136a12c06d1b87d509580 WHIRLPOOL 2f72a2c15292ce54d2df82ae7fb0ac33efc8356d5114b88b103603f65074e17f54639e842917f6c7cfd4e368c5718d7c38577fafba57cd8bafd49f154054b99d
|
|
||||||
DIST x86-bin-libreoffice-kde-java-5.1.2.2-r1.xd3 22436389 SHA256 07130e76d3535b608a323857eed8568ad94ffa3bdbdcbd6c9cb74490ea0ba560 SHA512 e129257617dd01ba7b58720f81f9e9698a2f0a9128de3b22497fef7af56eb5899f36d5b984e6fe7f43f8fc1d80c828ac145e80b72b99da14b1365627687005f7 WHIRLPOOL b89f1edcf73d6c2f6526424121509d854c6fc6b3b367acde85b03077b91d22da1808801af90808f3538c237a1f70f0bcd27a5cd3c27a89eb7be19762b69cdba6
|
|
||||||
DIST x86-bin-libreoffice-kde-java-5.1.4.2.xd3 22008664 SHA256 2f355f6155abd1eb5da580e89812f5f9d4ac1b57c8eaa9732619fc37f6cd091c SHA512 d0e5818b8e00eb2fe79e2a4cd799a6b28aaae0ede8d9f8e0acd11a85e06c15cd99eeeb7891225ff66490e455137dc2d411f268656d32c4889ca214df348bbd2d WHIRLPOOL 0205739db852be7ae0e2c03b7b7d735efa61db331f644bccb938c582b49a77a07852c3aa40b5e900fb5246d68dd9ee56bb2fc5d7ef7315bd7fa35ad520762e19
|
DIST x86-bin-libreoffice-kde-java-5.1.4.2.xd3 22008664 SHA256 2f355f6155abd1eb5da580e89812f5f9d4ac1b57c8eaa9732619fc37f6cd091c SHA512 d0e5818b8e00eb2fe79e2a4cd799a6b28aaae0ede8d9f8e0acd11a85e06c15cd99eeeb7891225ff66490e455137dc2d411f268656d32c4889ca214df348bbd2d WHIRLPOOL 0205739db852be7ae0e2c03b7b7d735efa61db331f644bccb938c582b49a77a07852c3aa40b5e900fb5246d68dd9ee56bb2fc5d7ef7315bd7fa35ad520762e19
|
||||||
|
@ -1,237 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
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=( python{2_7,3_4,3_5} )
|
|
||||||
PYTHON_REQ_USE="threads,xml"
|
|
||||||
|
|
||||||
inherit kde4-base java-pkg-opt-2 python-single-r1 pax-utils prefix versionator
|
|
||||||
|
|
||||||
DESCRIPTION="A full office productivity suite. Binary package"
|
|
||||||
HOMEPAGE="http://www.libreoffice.org"
|
|
||||||
SRC_URI_AMD64="
|
|
||||||
${BASE_AMD64_URI}libreoffice-${PV}.tar.xz
|
|
||||||
kde? (
|
|
||||||
!java? ( ${BASE_AMD64_URI}libreoffice-kde-${PV}.xd3 )
|
|
||||||
java? ( ${BASE_AMD64_URI}libreoffice-kde-java-${PV}.xd3 )
|
|
||||||
)
|
|
||||||
gnome? (
|
|
||||||
!java? ( ${BASE_AMD64_URI}libreoffice-gnome-${PV}.xd3 )
|
|
||||||
java? ( ${BASE_AMD64_URI}libreoffice-gnome-java-${PV}.xd3 )
|
|
||||||
)
|
|
||||||
!kde? ( !gnome? (
|
|
||||||
java? ( ${BASE_AMD64_URI}libreoffice-java-${PV}.xd3 )
|
|
||||||
) )
|
|
||||||
"
|
|
||||||
SRC_URI_X86="
|
|
||||||
${BASE_X86_URI}libreoffice-${PV}.tar.xz
|
|
||||||
kde? (
|
|
||||||
!java? ( ${BASE_X86_URI}libreoffice-kde-${PV}.xd3 )
|
|
||||||
java? ( ${BASE_X86_URI}libreoffice-kde-java-${PV}.xd3 )
|
|
||||||
)
|
|
||||||
gnome? (
|
|
||||||
!java? ( ${BASE_X86_URI}libreoffice-gnome-${PV}.xd3 )
|
|
||||||
java? ( ${BASE_X86_URI}libreoffice-gnome-java-${PV}.xd3 )
|
|
||||||
)
|
|
||||||
!kde? ( !gnome? (
|
|
||||||
java? ( ${BASE_X86_URI}libreoffice-java-${PV}.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.3*
|
|
||||||
app-text/poppler:0/51
|
|
||||||
dev-libs/boost:0/1.56.0
|
|
||||||
dev-libs/icu:0/55
|
|
||||||
>=media-gfx/graphite2-1.2.0
|
|
||||||
media-libs/glew:0/1.10
|
|
||||||
media-libs/harfbuzz:0/0.9.18[icu]
|
|
||||||
media-libs/libpng:0/16
|
|
||||||
>=sys-devel/gcc-4.9.0
|
|
||||||
>=sys-libs/glibc-2.21-r1
|
|
||||||
virtual/jpeg:62
|
|
||||||
kde? ( >=kde-base/kdelibs-4.14.8:4 >=dev-qt/qtcore-4.8.6-r2:4 >=dev-qt/qtgui-4.8.6-r4: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/libabw-0.1.0
|
|
||||||
>=app-text/libexttextcat-3.2
|
|
||||||
>=app-text/libebook-0.1.1
|
|
||||||
>=app-text/libetonyek-0.1.2
|
|
||||||
app-text/liblangtag
|
|
||||||
>=app-text/libmspub-0.1.0
|
|
||||||
>=app-text/libmwaw-0.3.5
|
|
||||||
>=app-text/libodfgen-0.1.0
|
|
||||||
app-text/libwpd:0.10[tools]
|
|
||||||
app-text/libwpg:0.3
|
|
||||||
=app-text/libwps-0.4*
|
|
||||||
>=app-text/poppler-0.16:=[cxx]
|
|
||||||
>=dev-cpp/clucene-2.3.3.4-r2
|
|
||||||
=dev-cpp/libcmis-0.5*
|
|
||||||
dev-db/unixODBC
|
|
||||||
>=dev-libs/boost-1.55:=
|
|
||||||
dev-libs/expat
|
|
||||||
>=dev-libs/hyphen-2.7.1
|
|
||||||
>=dev-libs/icu-4.8.1.1:=
|
|
||||||
=dev-libs/liborcus-0.7*
|
|
||||||
>=dev-libs/librevenge-0.0.1
|
|
||||||
>=dev-libs/nspr-4.8.8
|
|
||||||
>=dev-libs/nss-3.12.9
|
|
||||||
>=dev-lang/perl-5.0
|
|
||||||
>=dev-libs/openssl-1.0.0d:0
|
|
||||||
>=dev-libs/redland-1.0.16
|
|
||||||
media-gfx/graphite2
|
|
||||||
>=media-libs/fontconfig-2.8.0
|
|
||||||
media-libs/freetype:2
|
|
||||||
>=media-libs/glew-1.10
|
|
||||||
>=media-libs/harfbuzz-0.9.18:=[icu(+)]
|
|
||||||
media-libs/lcms:2
|
|
||||||
>=media-libs/libpng-1.4:0=
|
|
||||||
>=media-libs/libcdr-0.1.0
|
|
||||||
>=media-libs/libfreehand-0.1.0
|
|
||||||
media-libs/libpagemaker
|
|
||||||
>=media-libs/libvisio-0.1.0
|
|
||||||
>=net-misc/curl-7.21.4
|
|
||||||
net-libs/neon
|
|
||||||
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
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
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
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
!app-office/libreoffice
|
|
||||||
!<app-office/openoffice-bin-3.4.0-r1
|
|
||||||
!app-office/openoffice
|
|
||||||
media-fonts/libertine
|
|
||||||
media-fonts/liberation-fonts
|
|
||||||
media-fonts/urw-fonts
|
|
||||||
java? ( >=virtual/jre-1.6 )
|
|
||||||
kde? ( $(add_kdeapps_dep kioclient) )
|
|
||||||
"
|
|
||||||
|
|
||||||
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"
|
|
||||||
|
|
||||||
QA_PREBUILT="/usr/*"
|
|
||||||
|
|
||||||
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-${PV}.tar.xz"
|
|
||||||
xz -cd "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.tar.xz" > "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.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-${PV}.tar using ${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PV}.xd3"
|
|
||||||
xdelta3 -d -s "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.tar" "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PV}.xd3" "${WORKDIR}/tmpdist.tar" || die
|
|
||||||
mv "${WORKDIR}/tmpdist.tar" "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.tar" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
einfo "Unpacking new ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.tar"
|
|
||||||
unpack "./${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.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,240 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
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=( python{2_7,3_4,3_5} )
|
|
||||||
PYTHON_REQ_USE="threads,xml"
|
|
||||||
|
|
||||||
inherit kde4-base java-pkg-opt-2 python-single-r1 pax-utils prefix versionator
|
|
||||||
|
|
||||||
DESCRIPTION="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.3*
|
|
||||||
app-text/poppler:0/59
|
|
||||||
dev-libs/boost:0/1.56.0
|
|
||||||
dev-libs/icu:0/57
|
|
||||||
>=media-gfx/graphite2-1.2.0
|
|
||||||
media-libs/glew:0/1.10
|
|
||||||
media-libs/harfbuzz:0/0.9.18[icu]
|
|
||||||
media-libs/libpng:0/16
|
|
||||||
>=sys-devel/gcc-4.9.3
|
|
||||||
>=sys-libs/glibc-2.22-r4
|
|
||||||
virtual/jpeg:62
|
|
||||||
kde? ( >=kde-base/kdelibs-4.14.16:4 >=dev-qt/qtcore-4.8.6-r2:4 >=dev-qt/qtgui-4.8.6-r4: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/libabw-0.1.0
|
|
||||||
>=app-text/libexttextcat-3.4.4
|
|
||||||
>=app-text/libebook-0.1
|
|
||||||
>=app-text/libetonyek-0.1
|
|
||||||
app-text/liblangtag
|
|
||||||
>=app-text/libmspub-0.1.0
|
|
||||||
>=app-text/libmwaw-0.3.1
|
|
||||||
>=app-text/libodfgen-0.1.0
|
|
||||||
app-text/libwpd:0.10[tools]
|
|
||||||
app-text/libwpg:0.3
|
|
||||||
>=app-text/libwps-0.4
|
|
||||||
>=app-text/poppler-0.16:=[cxx]
|
|
||||||
>=dev-cpp/clucene-2.3.3.4-r2
|
|
||||||
=dev-cpp/libcmis-0.5*
|
|
||||||
dev-db/unixODBC
|
|
||||||
>=dev-libs/boost-1.55:=
|
|
||||||
dev-libs/expat
|
|
||||||
>=dev-libs/hyphen-2.7.1
|
|
||||||
>=dev-libs/icu-4.8.1.1:=
|
|
||||||
=dev-libs/liborcus-0.9*
|
|
||||||
>=dev-libs/librevenge-0.0.1
|
|
||||||
>=dev-libs/nspr-4.8.8
|
|
||||||
>=dev-libs/nss-3.12.9
|
|
||||||
>=dev-lang/perl-5.0
|
|
||||||
>=dev-libs/openssl-1.0.0d:0
|
|
||||||
>=dev-libs/redland-1.0.16
|
|
||||||
media-gfx/graphite2
|
|
||||||
>=media-libs/fontconfig-2.8.0
|
|
||||||
media-libs/freetype:2
|
|
||||||
>=media-libs/glew-1.10
|
|
||||||
>=media-libs/harfbuzz-0.9.18:=[icu(+)]
|
|
||||||
media-libs/lcms:2
|
|
||||||
>=media-libs/libpng-1.4:0=
|
|
||||||
>=media-libs/libcdr-0.1.0
|
|
||||||
>=media-libs/libfreehand-0.1.0
|
|
||||||
media-libs/libpagemaker
|
|
||||||
>=media-libs/libvisio-0.1.0
|
|
||||||
>=net-misc/curl-7.21.4
|
|
||||||
net-libs/neon
|
|
||||||
net-nds/openldap
|
|
||||||
sci-mathematics/lpsolve
|
|
||||||
virtual/jpeg:0
|
|
||||||
>=x11-libs/cairo-1.10.0[X,-xlib-xcb]
|
|
||||||
x11-libs/libXinerama
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXrender
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
net-print/cups
|
|
||||||
>=dev-libs/dbus-glib-0.92
|
|
||||||
gnome? (
|
|
||||||
dev-libs/glib:2
|
|
||||||
gnome-extra/evolution-data-server
|
|
||||||
)
|
|
||||||
x11-libs/gdk-pixbuf[X]
|
|
||||||
>=x11-libs/gtk+-2.24:2
|
|
||||||
media-libs/gstreamer:1.0
|
|
||||||
media-libs/gst-plugins-base:1.0
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
!app-office/libreoffice
|
|
||||||
!<app-office/openoffice-bin-3.4.0-r1
|
|
||||||
!app-office/openoffice
|
|
||||||
media-fonts/libertine
|
|
||||||
media-fonts/liberation-fonts
|
|
||||||
media-fonts/urw-fonts
|
|
||||||
java? ( >=virtual/jre-1.6 )
|
|
||||||
kde? ( $(add_kdeapps_dep kioclient) )
|
|
||||||
"
|
|
||||||
|
|
||||||
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"
|
|
||||||
|
|
||||||
QA_PREBUILT="/usr/*"
|
|
||||||
|
|
||||||
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}
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
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,87 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
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_TESTING="http://download.documentfoundation.org/${PN/-l10n/}/testing/${MY_PV}/rpm"
|
|
||||||
BASE_SRC_URI_STABLE="http://download.documentfoundation.org/${PN/-l10n/}/stable/${MY_PV}/rpm"
|
|
||||||
|
|
||||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 ~arm x86 ~amd64-linux ~x86-linux"
|
|
||||||
IUSE="offlinehelp"
|
|
||||||
|
|
||||||
#
|
|
||||||
# when changing the language lists, please be careful to preserve the spaces (bug 491728)
|
|
||||||
#
|
|
||||||
# "en:en-US" for mapping from Gentoo "en" to upstream "en-US" etc.
|
|
||||||
LANGUAGES_HELP=" am ast bg bn-IN bn bo bs ca-valencia ca cs da de dz el en-GB en:en-US 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 gug kk kmr-Latn kn kok ks lb lo lt lv mai ml mn mni mr my nr nso oc or pa:pa-IN ro rw sa: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="offlinehelp? ( ${BASE_SRC_URI_STABLE}/x86/LibreOffice_${MY_PV}_Linux_x86_rpm_helppack_${lang#*:}.tar.gz -> LibreOffice_${PV}_Linux_x86_rpm_helppack_${lang#*:}.tar.gz ${BASE_SRC_URI_TESTING}/x86/LibreOffice_${PV}_Linux_x86_rpm_helppack_${lang#*:}.tar.gz )"
|
|
||||||
SRC_URI+=" l10n_${lang%:*}? ( ${helppack} )"
|
|
||||||
done
|
|
||||||
for lang in ${LANGUAGES}; do
|
|
||||||
if [[ ${lang%:*} != en ]]; then
|
|
||||||
langpack="${BASE_SRC_URI_STABLE}/x86/LibreOffice_${MY_PV}_Linux_x86_rpm_langpack_${lang#*:}.tar.gz -> LibreOffice_${PV}_Linux_x86_rpm_langpack_${lang#*:}.tar.gz ${BASE_SRC_URI_TESTING}/x86/LibreOffice_${PV}_Linux_x86_rpm_langpack_${lang#*:}.tar.gz"
|
|
||||||
SRC_URI+=" l10n_${lang%:*}? ( ${langpack} )"
|
|
||||||
fi
|
|
||||||
IUSE+=" l10n_${lang%:*}"
|
|
||||||
done
|
|
||||||
unset lang helppack langpack
|
|
||||||
|
|
||||||
RDEPEND+="app-text/hunspell"
|
|
||||||
|
|
||||||
RESTRICT="strip"
|
|
||||||
|
|
||||||
S="${WORKDIR}"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local lang dir rpmdir
|
|
||||||
|
|
||||||
# First remove dictionaries, we want to use system ones.
|
|
||||||
find "${S}" -name *dict*.rpm -delete || die "Failed to remove dictionaries"
|
|
||||||
|
|
||||||
for lang in ${LANGUAGES}; do
|
|
||||||
# break away if not enabled
|
|
||||||
use l10n_${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}"
|
|
||||||
rpm_unpack ./${rpmdir}/*.rpm
|
|
||||||
fi
|
|
||||||
if [[ "${LANGUAGES_HELP}" =~ " ${lang} " ]] && use offlinehelp; then
|
|
||||||
rpmdir="LibreOffice_${PV}_Linux_x86_rpm_helppack_${dir}/RPMS/"
|
|
||||||
[[ -d ${rpmdir} ]] || die "Missing directory: ${rpmdir}"
|
|
||||||
rpm_unpack ./${rpmdir}/*.rpm
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
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 l10n
|
|
||||||
# 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/ || \
|
|
||||||
die "Failed to remove extensions"
|
|
||||||
}
|
|
@ -1,89 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
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_TESTING="http://download.documentfoundation.org/${PN/-l10n/}/testing/${MY_PV}/rpm"
|
|
||||||
BASE_SRC_URI_STABLE="http://download.documentfoundation.org/${PN/-l10n/}/stable/${MY_PV}/rpm"
|
|
||||||
|
|
||||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
|
|
||||||
IUSE="offlinehelp"
|
|
||||||
|
|
||||||
#
|
|
||||||
# when changing the language lists, please be careful to preserve the spaces (bug 491728)
|
|
||||||
#
|
|
||||||
# "en:en-US" for mapping from Gentoo "en" to upstream "en-US" etc.
|
|
||||||
LANGUAGES_HELP=" am ast bg bn-IN bn bo bs ca-valencia ca cs da de dz el en-GB en:en-US 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 gug kk kmr-Latn kn kok ks lb lo lt lv mai ml mn mni mr my nr nso oc or pa:pa-IN ro rw sa: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="offlinehelp? ( ${BASE_SRC_URI_STABLE}/x86/LibreOffice_${MY_PV}_Linux_x86_rpm_helppack_${lang#*:}.tar.gz -> LibreOffice_${PV}_Linux_x86_rpm_helppack_${lang#*:}.tar.gz ${BASE_SRC_URI_TESTING}/x86/LibreOffice_${PV}_Linux_x86_rpm_helppack_${lang#*:}.tar.gz )"
|
|
||||||
SRC_URI+=" l10n_${lang%:*}? ( ${helppack} )"
|
|
||||||
done
|
|
||||||
for lang in ${LANGUAGES}; do
|
|
||||||
if [[ ${lang%:*} != en ]]; then
|
|
||||||
langpack="${BASE_SRC_URI_STABLE}/x86/LibreOffice_${MY_PV}_Linux_x86_rpm_langpack_${lang#*:}.tar.gz -> LibreOffice_${PV}_Linux_x86_rpm_langpack_${lang#*:}.tar.gz ${BASE_SRC_URI_TESTING}/x86/LibreOffice_${PV}_Linux_x86_rpm_langpack_${lang#*:}.tar.gz"
|
|
||||||
SRC_URI+=" l10n_${lang%:*}? ( ${langpack} )"
|
|
||||||
fi
|
|
||||||
IUSE+=" l10n_${lang%:*}"
|
|
||||||
done
|
|
||||||
unset lang helppack langpack
|
|
||||||
|
|
||||||
RDEPEND+="app-text/hunspell"
|
|
||||||
|
|
||||||
RESTRICT="strip"
|
|
||||||
|
|
||||||
S="${WORKDIR}"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
local lang dir rpmdir
|
|
||||||
|
|
||||||
# First remove dictionaries, we want to use system ones.
|
|
||||||
find "${S}" -name *dict*.rpm -delete || die "Failed to remove dictionaries"
|
|
||||||
|
|
||||||
for lang in ${LANGUAGES}; do
|
|
||||||
# break away if not enabled
|
|
||||||
use l10n_${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}"
|
|
||||||
rpm_unpack ./${rpmdir}/*.rpm
|
|
||||||
fi
|
|
||||||
if [[ "${LANGUAGES_HELP}" =~ " ${lang} " ]] && use offlinehelp; then
|
|
||||||
rpmdir="LibreOffice_${PV}_Linux_x86_rpm_helppack_${dir}/RPMS/"
|
|
||||||
[[ -d ${rpmdir} ]] || die "Missing directory: ${rpmdir}"
|
|
||||||
rpm_unpack ./${rpmdir}/*.rpm
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
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 l10n
|
|
||||||
# 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/ || \
|
|
||||||
die "Failed to remove extensions"
|
|
||||||
}
|
|
@ -1,89 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
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_TESTING="http://download.documentfoundation.org/${PN/-l10n/}/testing/${MY_PV}/rpm"
|
|
||||||
BASE_SRC_URI_STABLE="http://download.documentfoundation.org/${PN/-l10n/}/stable/${MY_PV}/rpm"
|
|
||||||
|
|
||||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
|
|
||||||
IUSE="offlinehelp"
|
|
||||||
|
|
||||||
#
|
|
||||||
# when changing the language lists, please be careful to preserve the spaces (bug 491728)
|
|
||||||
#
|
|
||||||
# "en:en-US" for mapping from Gentoo "en" to upstream "en-US" etc.
|
|
||||||
LANGUAGES_HELP=" am ast bg bn-IN bn bo bs ca-valencia ca cs da de dz el en-GB en:en-US 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 gug kk kmr-Latn kn kok ks lb lo lt lv mai ml mn mni mr my nr nso oc or pa:pa-IN ro rw sa: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="offlinehelp? ( ${BASE_SRC_URI_STABLE}/x86/LibreOffice_${MY_PV}_Linux_x86_rpm_helppack_${lang#*:}.tar.gz -> LibreOffice_${PV}_Linux_x86_rpm_helppack_${lang#*:}.tar.gz ${BASE_SRC_URI_TESTING}/x86/LibreOffice_${PV}_Linux_x86_rpm_helppack_${lang#*:}.tar.gz )"
|
|
||||||
SRC_URI+=" l10n_${lang%:*}? ( ${helppack} )"
|
|
||||||
done
|
|
||||||
for lang in ${LANGUAGES}; do
|
|
||||||
if [[ ${lang%:*} != en ]]; then
|
|
||||||
langpack="${BASE_SRC_URI_STABLE}/x86/LibreOffice_${MY_PV}_Linux_x86_rpm_langpack_${lang#*:}.tar.gz -> LibreOffice_${PV}_Linux_x86_rpm_langpack_${lang#*:}.tar.gz ${BASE_SRC_URI_TESTING}/x86/LibreOffice_${PV}_Linux_x86_rpm_langpack_${lang#*:}.tar.gz"
|
|
||||||
SRC_URI+=" l10n_${lang%:*}? ( ${langpack} )"
|
|
||||||
fi
|
|
||||||
IUSE+=" l10n_${lang%:*}"
|
|
||||||
done
|
|
||||||
unset lang helppack langpack
|
|
||||||
|
|
||||||
RDEPEND+="app-text/hunspell"
|
|
||||||
|
|
||||||
RESTRICT="strip"
|
|
||||||
|
|
||||||
S="${WORKDIR}"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
local lang dir rpmdir
|
|
||||||
|
|
||||||
# First remove dictionaries, we want to use system ones.
|
|
||||||
find "${S}" -name *dict*.rpm -delete || die "Failed to remove dictionaries"
|
|
||||||
|
|
||||||
for lang in ${LANGUAGES}; do
|
|
||||||
# break away if not enabled
|
|
||||||
use l10n_${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}"
|
|
||||||
rpm_unpack ./${rpmdir}/*.rpm
|
|
||||||
fi
|
|
||||||
if [[ "${LANGUAGES_HELP}" =~ " ${lang} " ]] && use offlinehelp; then
|
|
||||||
rpmdir="LibreOffice_${PV}_Linux_x86_rpm_helppack_${dir}/RPMS/"
|
|
||||||
[[ -d ${rpmdir} ]] || die "Missing directory: ${rpmdir}"
|
|
||||||
rpm_unpack ./${rpmdir}/*.rpm
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
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 l10n
|
|
||||||
# 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/ || \
|
|
||||||
die "Failed to remove extensions"
|
|
||||||
}
|
|
@ -1,608 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
KDE_REQUIRED="optional"
|
|
||||||
QT_MINIMAL="4.7.4"
|
|
||||||
KDE_SCM="git"
|
|
||||||
CMAKE_REQUIRED="never"
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
|
||||||
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-r3"
|
|
||||||
inherit multiprocessing autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic versionator ${SCM_ECLASS}
|
|
||||||
unset SCM_ECLASS
|
|
||||||
|
|
||||||
DESCRIPTION="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_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz" # modifies source code
|
|
||||||
"collada? ( ${ADDONS_URI}/4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 )"
|
|
||||||
"java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
|
|
||||||
# no release for 8 years, should we package it?
|
|
||||||
"libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
|
|
||||||
# Does not build with 1.6 rhino at all
|
|
||||||
"libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
|
|
||||||
# requirement of rhino
|
|
||||||
"libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
|
|
||||||
# not packageable
|
|
||||||
"odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
|
|
||||||
)
|
|
||||||
SRC_URI+=" ${ADDONS_SRC[*]}"
|
|
||||||
|
|
||||||
unset ADDONS_URI
|
|
||||||
unset EXT_URI
|
|
||||||
unset ADDONS_SRC
|
|
||||||
|
|
||||||
IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome gstreamer
|
|
||||||
+gtk gtk3 jemalloc kde libressl mysql odk postgres telepathy test vlc"
|
|
||||||
|
|
||||||
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 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-0.1.0
|
|
||||||
>=app-text/libexttextcat-3.2
|
|
||||||
>=app-text/libebook-0.1.1
|
|
||||||
>=app-text/libetonyek-0.1.2
|
|
||||||
app-text/liblangtag
|
|
||||||
>=app-text/libmspub-0.1.0
|
|
||||||
>=app-text/libmwaw-0.3.5
|
|
||||||
>=app-text/libodfgen-0.1.0
|
|
||||||
app-text/libwpd:0.10[tools]
|
|
||||||
app-text/libwpg:0.3
|
|
||||||
=app-text/libwps-0.4*
|
|
||||||
>=app-text/poppler-0.16:=[cxx]
|
|
||||||
>=dev-cpp/clucene-2.3.3.4-r2
|
|
||||||
=dev-cpp/libcmis-0.5*
|
|
||||||
dev-db/unixODBC
|
|
||||||
>=dev-libs/boost-1.55:=
|
|
||||||
dev-libs/expat
|
|
||||||
>=dev-libs/hyphen-2.7.1
|
|
||||||
>=dev-libs/icu-4.8.1.1:=
|
|
||||||
=dev-libs/liborcus-0.7*
|
|
||||||
>=dev-libs/librevenge-0.0.1
|
|
||||||
>=dev-libs/nspr-4.8.8
|
|
||||||
>=dev-libs/nss-3.12.9
|
|
||||||
>=dev-lang/perl-5.0
|
|
||||||
!libressl? ( >=dev-libs/openssl-1.0.0d:0 )
|
|
||||||
libressl? ( dev-libs/libressl )
|
|
||||||
>=dev-libs/redland-1.0.16
|
|
||||||
media-gfx/graphite2
|
|
||||||
>=media-libs/fontconfig-2.8.0
|
|
||||||
media-libs/freetype:2
|
|
||||||
>=media-libs/glew-1.10
|
|
||||||
>=media-libs/harfbuzz-0.9.18:=[icu(+)]
|
|
||||||
media-libs/lcms:2
|
|
||||||
>=media-libs/libpng-1.4:0=
|
|
||||||
>=media-libs/libcdr-0.1.0
|
|
||||||
>=media-libs/libfreehand-0.1.0
|
|
||||||
media-libs/libpagemaker
|
|
||||||
>=media-libs/libvisio-0.1.0
|
|
||||||
>=net-misc/curl-7.21.4
|
|
||||||
net-libs/neon
|
|
||||||
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
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
bluetooth? ( net-wireless/bluez )
|
|
||||||
coinmp? ( sci-libs/coinor-mp )
|
|
||||||
collada? ( >=media-libs/opencollada-1.2.2_p20150207 )
|
|
||||||
cups? ( net-print/cups )
|
|
||||||
dbus? ( >=dev-libs/dbus-glib-0.92 )
|
|
||||||
eds? ( gnome-extra/evolution-data-server )
|
|
||||||
firebird? ( >=dev-db/firebird-2.5 )
|
|
||||||
gltf? ( media-libs/libgltf )
|
|
||||||
gnome? ( gnome-base/gconf:2 )
|
|
||||||
gtk? (
|
|
||||||
x11-libs/gdk-pixbuf[X]
|
|
||||||
>=x11-libs/gtk+-2.24:2
|
|
||||||
)
|
|
||||||
gtk3? ( >=x11-libs/gtk+-3.8: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
|
|
||||||
)
|
|
||||||
mysql? ( >=dev-db/mysql-connector-c++-1.1.0 )
|
|
||||||
postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
|
|
||||||
telepathy? (
|
|
||||||
dev-libs/glib:2
|
|
||||||
>=net-libs/telepathy-glib-0.18.0
|
|
||||||
>=x11-libs/gtk+-2.24:2
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
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
|
|
||||||
media-fonts/liberation-fonts
|
|
||||||
media-fonts/urw-fonts
|
|
||||||
java? ( >=virtual/jre-1.6 )
|
|
||||||
kde? ( $(add_kdeapps_dep kioclient) )
|
|
||||||
vlc? ( media-video/vlc )
|
|
||||||
"
|
|
||||||
|
|
||||||
if [[ ${PV} != *9999* ]]; then
|
|
||||||
PDEPEND="=app-office/libreoffice-l10n-$(get_version_component_range 1-2)*"
|
|
||||||
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/libatomic_ops-7.2d
|
|
||||||
>=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.12.0:0=
|
|
||||||
media-libs/glm
|
|
||||||
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
|
|
||||||
virtual/pkgconfig
|
|
||||||
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 )
|
|
||||||
"
|
|
||||||
|
|
||||||
REQUIRED_USE="
|
|
||||||
${PYTHON_REQUIRED_USE}
|
|
||||||
bluetooth? ( dbus )
|
|
||||||
collada? ( gltf )
|
|
||||||
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 )
|
|
||||||
"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
# not upstreamable stuff
|
|
||||||
"${FILESDIR}/${PN}-4.4-system-pyuno.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
CHECKREQS_MEMORY="512M"
|
|
||||||
if [[ ${MERGE_TYPE} != binary ]] ; then CHECKREQS_DISK_BUILD="6G" ; fi
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
local pgslot
|
|
||||||
|
|
||||||
use java || \
|
|
||||||
ewarn "If you plan to use lbase application you should enable java or you will get various crashes."
|
|
||||||
|
|
||||||
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; then
|
|
||||||
pgslot=$(postgresql-config show)
|
|
||||||
if [[ ${pgslot//.} -lt 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
|
|
||||||
|
|
||||||
[[ -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
|
|
||||||
local base_uri branch checkout mypv
|
|
||||||
base_uri="git://anongit.freedesktop.org"
|
|
||||||
for mod in ${MODULES}; do
|
|
||||||
branch="master"
|
|
||||||
mypv=${PV/.9999}
|
|
||||||
[[ ${mypv} != ${PV} ]] && branch="${PN}-${mypv/./-}"
|
|
||||||
git-r3_fetch "${base_uri}/${PN}/${mod}" "refs/heads/${branch}"
|
|
||||||
[[ ${mod} != core ]] && checkout="${S}/${mod}"
|
|
||||||
[[ ${mod} == help ]] && checkout="helpcontent2" # doesn't match on help
|
|
||||||
git-r3_checkout "${base_uri}/${PN}/${mod}" ${checkout}
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# patchset
|
|
||||||
if [[ -n ${PATCHSET} ]]; then
|
|
||||||
EPATCH_FORCE="yes" \
|
|
||||||
EPATCH_SOURCE="${WORKDIR}/${PATCHSET/.tar.xz/}" \
|
|
||||||
EPATCH_SUFFIX="patch" \
|
|
||||||
epatch
|
|
||||||
fi
|
|
||||||
|
|
||||||
epatch "${PATCHES[@]}"
|
|
||||||
epatch_user
|
|
||||||
|
|
||||||
AT_M4DIR="m4" eautoreconf
|
|
||||||
# hack in the autogen.sh
|
|
||||||
touch autogen.lastrun
|
|
||||||
|
|
||||||
# system pyuno mess
|
|
||||||
sed -i \
|
|
||||||
-e "s:%eprefix%:${EPREFIX}:g" \
|
|
||||||
-e "s:%libdir%:$(get_libdir):g" \
|
|
||||||
pyuno/source/module/uno.py \
|
|
||||||
pyuno/source/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
|
|
||||||
|
|
||||||
# optimization flags
|
|
||||||
export GMAKE_OPTIONS="${MAKEOPTS}"
|
|
||||||
# System python 2.7 enablement:
|
|
||||||
export PYTHON_CFLAGS=$(python_get_CFLAGS)
|
|
||||||
export PYTHON_LIBS=$(python_get_LIBS)
|
|
||||||
|
|
||||||
if use collada; then
|
|
||||||
export OPENCOLLADA_CFLAGS="-I/usr/include/opencollada/COLLADABaseUtils -I/usr/include/opencollada/COLLADAFramework -I/usr/include/opencollada/COLLADASaxFrameworkLoader -I/usr/include/opencollada/GeneratedSaxParser"
|
|
||||||
export OPENCOLLADA_LIBS="-L /usr/$(get_libdir)/opencollada -lOpenCOLLADABaseUtils -lOpenCOLLADAFramework -lOpenCOLLADASaxFrameworkLoader -lGeneratedSaxParser"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 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)
|
|
||||||
"
|
|
||||||
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-{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-neon \
|
|
||||||
--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=$(makeopts_jobs) \
|
|
||||||
--with-system-ucpp \
|
|
||||||
--with-vendor="Gentoo Foundation" \
|
|
||||||
--with-x \
|
|
||||||
--without-fonts \
|
|
||||||
--without-myspell-dicts \
|
|
||||||
--without-help \
|
|
||||||
--with-helppack-integration \
|
|
||||||
--without-sun-templates \
|
|
||||||
$(use_enable bluetooth sdremote-bluetooth) \
|
|
||||||
$(use_enable coinmp) \
|
|
||||||
$(use_enable collada) \
|
|
||||||
$(use_enable cups) \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable dbus) \
|
|
||||||
$(use_enable eds evolution2) \
|
|
||||||
$(use_enable firebird firebird-sdbc) \
|
|
||||||
$(use_enable gltf) \
|
|
||||||
$(use_enable gnome gconf) \
|
|
||||||
$(use_enable gnome gio) \
|
|
||||||
$(use_enable gnome lockdown) \
|
|
||||||
$(use_enable gstreamer gstreamer-1-0) \
|
|
||||||
$(use_enable gtk) \
|
|
||||||
$(use_enable gtk3) \
|
|
||||||
$(use_enable kde kde4) \
|
|
||||||
$(use_enable mysql ext-mariadb-connector) \
|
|
||||||
$(use_enable odk) \
|
|
||||||
$(use_enable postgres postgresql-sdbc) \
|
|
||||||
$(use_enable telepathy) \
|
|
||||||
$(use_enable vlc) \
|
|
||||||
$(use_with coinmp system-coinmp) \
|
|
||||||
$(use_with collada system-opencollada) \
|
|
||||||
$(use_with gltf system-libgltf) \
|
|
||||||
$(use_with java) \
|
|
||||||
$(use_with mysql system-mysql-cppconn) \
|
|
||||||
$(use_with odk doxygen) \
|
|
||||||
${internal_libs} \
|
|
||||||
${java_opts} \
|
|
||||||
${ext_opts}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
# more and more LO stuff tries to use OpenGL, including tests during build
|
|
||||||
# bug 501508, bug 540624, bug 545974 and probably more
|
|
||||||
addpredict /dev/dri
|
|
||||||
addpredict /dev/ati
|
|
||||||
addpredict /dev/nvidiactl
|
|
||||||
|
|
||||||
# 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" || die
|
|
||||||
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}
|
|
||||||
bashcomp_alias \
|
|
||||||
libreoffice \
|
|
||||||
unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
|
|
||||||
rm -rf "${ED}"etc/ || die
|
|
||||||
|
|
||||||
if use branding; then
|
|
||||||
insinto /usr/$(get_libdir)/${PN}/program
|
|
||||||
newins "${WORKDIR}/branding-sofficerc" sofficerc
|
|
||||||
dodir /etc/env.d
|
|
||||||
echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"etc/env.d/99${PN} || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 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 -r "${ED}"usr/share/mimelnk/ || die
|
|
||||||
|
|
||||||
# FIXME: Hack add missing file
|
|
||||||
exeinto /usr/$(get_libdir)/${PN}/program
|
|
||||||
doexe "${S}"/instdir/program/libsaxlo.so
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
kde4-base_pkg_postrm
|
|
||||||
}
|
|
@ -1,580 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
KDE_REQUIRED="optional"
|
|
||||||
QT_MINIMAL="4.7.4"
|
|
||||||
KDE_SCM="git"
|
|
||||||
CMAKE_REQUIRED="never"
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
|
||||||
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-r3"
|
|
||||||
inherit multiprocessing autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic versionator ${SCM_ECLASS}
|
|
||||||
unset SCM_ECLASS
|
|
||||||
|
|
||||||
DESCRIPTION="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_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz" # modifies source code
|
|
||||||
"collada? ( ${ADDONS_URI}/4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 )"
|
|
||||||
"java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
|
|
||||||
# no release for 8 years, should we package it?
|
|
||||||
"libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
|
|
||||||
# Does not build with 1.6 rhino at all
|
|
||||||
"libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
|
|
||||||
# requirement of rhino
|
|
||||||
"libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
|
|
||||||
# not packageable
|
|
||||||
"odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
|
|
||||||
)
|
|
||||||
SRC_URI+=" ${ADDONS_SRC[*]}"
|
|
||||||
|
|
||||||
unset ADDONS_URI
|
|
||||||
unset EXT_URI
|
|
||||||
unset ADDONS_SRC
|
|
||||||
|
|
||||||
IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome gstreamer
|
|
||||||
+gtk gtk3 jemalloc kde libressl mysql odk postgres telepathy test vlc"
|
|
||||||
|
|
||||||
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 ~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-0.1.0
|
|
||||||
>=app-text/libexttextcat-3.4.4
|
|
||||||
>=app-text/libebook-0.1
|
|
||||||
>=app-text/libetonyek-0.1
|
|
||||||
app-text/liblangtag
|
|
||||||
>=app-text/libmspub-0.1.0
|
|
||||||
>=app-text/libmwaw-0.3.1
|
|
||||||
>=app-text/libodfgen-0.1.0
|
|
||||||
app-text/libwpd:0.10[tools]
|
|
||||||
app-text/libwpg:0.3
|
|
||||||
>=app-text/libwps-0.4
|
|
||||||
>=app-text/poppler-0.16:=[cxx]
|
|
||||||
>=dev-cpp/clucene-2.3.3.4-r2
|
|
||||||
=dev-cpp/libcmis-0.5*
|
|
||||||
dev-db/unixODBC
|
|
||||||
>=dev-libs/boost-1.55:=
|
|
||||||
dev-libs/expat
|
|
||||||
>=dev-libs/hyphen-2.7.1
|
|
||||||
>=dev-libs/icu-4.8.1.1:=
|
|
||||||
=dev-libs/liborcus-0.9*
|
|
||||||
>=dev-libs/librevenge-0.0.1
|
|
||||||
>=dev-libs/nspr-4.8.8
|
|
||||||
>=dev-libs/nss-3.12.9
|
|
||||||
>=dev-lang/perl-5.0
|
|
||||||
!libressl? ( >=dev-libs/openssl-1.0.0d:0 )
|
|
||||||
libressl? ( dev-libs/libressl )
|
|
||||||
>=dev-libs/redland-1.0.16
|
|
||||||
media-gfx/graphite2
|
|
||||||
>=media-libs/fontconfig-2.8.0
|
|
||||||
media-libs/freetype:2
|
|
||||||
>=media-libs/glew-1.10
|
|
||||||
>=media-libs/harfbuzz-0.9.18:=[icu(+)]
|
|
||||||
media-libs/lcms:2
|
|
||||||
>=media-libs/libpng-1.4:0=
|
|
||||||
>=media-libs/libcdr-0.1.0
|
|
||||||
>=media-libs/libfreehand-0.1.0
|
|
||||||
media-libs/libpagemaker
|
|
||||||
>=media-libs/libvisio-0.1.0
|
|
||||||
>=net-misc/curl-7.21.4
|
|
||||||
net-libs/neon
|
|
||||||
net-nds/openldap
|
|
||||||
sci-mathematics/lpsolve
|
|
||||||
virtual/jpeg:0
|
|
||||||
>=x11-libs/cairo-1.10.0[X,-xlib-xcb]
|
|
||||||
x11-libs/libXinerama
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXrender
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
bluetooth? ( net-wireless/bluez )
|
|
||||||
coinmp? ( sci-libs/coinor-mp )
|
|
||||||
collada? ( >=media-libs/opencollada-1.2.2_p20150207 )
|
|
||||||
cups? ( net-print/cups )
|
|
||||||
dbus? ( >=dev-libs/dbus-glib-0.92 )
|
|
||||||
eds? (
|
|
||||||
dev-libs/glib:2
|
|
||||||
gnome-extra/evolution-data-server
|
|
||||||
)
|
|
||||||
firebird? ( >=dev-db/firebird-2.5 )
|
|
||||||
gltf? ( media-libs/libgltf )
|
|
||||||
gtk? (
|
|
||||||
x11-libs/gdk-pixbuf[X]
|
|
||||||
>=x11-libs/gtk+-2.24:2
|
|
||||||
)
|
|
||||||
gtk3? (
|
|
||||||
dev-libs/glib:2
|
|
||||||
dev-libs/gobject-introspection
|
|
||||||
>=x11-libs/gtk+-3.8: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 )
|
|
||||||
mysql? ( >=dev-db/mysql-connector-c++-1.1.0 )
|
|
||||||
postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
|
|
||||||
telepathy? ( >=net-libs/telepathy-glib-0.18.0 )
|
|
||||||
"
|
|
||||||
|
|
||||||
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
|
|
||||||
media-fonts/liberation-fonts
|
|
||||||
media-fonts/urw-fonts
|
|
||||||
java? ( >=virtual/jre-1.6 )
|
|
||||||
kde? ( $(add_kdeapps_dep kioclient) )
|
|
||||||
vlc? ( media-video/vlc )
|
|
||||||
"
|
|
||||||
|
|
||||||
if [[ ${PV} != *9999* ]]; then
|
|
||||||
PDEPEND="=app-office/libreoffice-l10n-$(get_version_component_range 1-2)*"
|
|
||||||
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/libatomic_ops-7.2d
|
|
||||||
>=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.12.0:0=
|
|
||||||
media-libs/glm
|
|
||||||
net-misc/npapi-sdk
|
|
||||||
sys-devel/bison
|
|
||||||
sys-devel/flex
|
|
||||||
sys-devel/gettext
|
|
||||||
!<sys-devel/make-3.82
|
|
||||||
sys-devel/ucpp
|
|
||||||
sys-libs/zlib
|
|
||||||
virtual/pkgconfig
|
|
||||||
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 )
|
|
||||||
"
|
|
||||||
|
|
||||||
REQUIRED_USE="
|
|
||||||
${PYTHON_REQUIRED_USE}
|
|
||||||
bluetooth? ( dbus )
|
|
||||||
collada? ( gltf )
|
|
||||||
eds? ( gnome )
|
|
||||||
gnome? ( gtk )
|
|
||||||
telepathy? ( gtk )
|
|
||||||
libreoffice_extensions_nlpsolver? ( java )
|
|
||||||
libreoffice_extensions_scripting-beanshell? ( java )
|
|
||||||
libreoffice_extensions_scripting-javascript? ( java )
|
|
||||||
libreoffice_extensions_wiki-publisher? ( java )
|
|
||||||
"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
# not upstreamable stuff
|
|
||||||
"${FILESDIR}/${PN}-4.4-system-pyuno.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
CHECKREQS_MEMORY="512M"
|
|
||||||
|
|
||||||
if [[ ${MERGE_TYPE} != binary ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then
|
|
||||||
CHECKREQS_DISK_BUILD="22G"
|
|
||||||
elif [[ ${MERGE_TYPE} != binary ]] ; then
|
|
||||||
CHECKREQS_DISK_BUILD="6G"
|
|
||||||
fi
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
use java || \
|
|
||||||
ewarn "If you plan to use lbase application you should enable java or you will get various crashes."
|
|
||||||
|
|
||||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
|
||||||
check-reqs_pkg_pretend
|
|
||||||
|
|
||||||
if [[ $(gcc-major-version) -lt 4 ]] || {
|
|
||||||
[[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]]; }
|
|
||||||
then
|
|
||||||
eerror "Compilation with gcc older than 4.7 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; then
|
|
||||||
local pgslot=$(postgresql-config show)
|
|
||||||
if [[ ${pgslot//.} -lt 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
|
|
||||||
|
|
||||||
[[ -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
|
|
||||||
local base_uri branch checkout mypv
|
|
||||||
base_uri="git://anongit.freedesktop.org"
|
|
||||||
for mod in ${MODULES}; do
|
|
||||||
branch="master"
|
|
||||||
mypv=${PV/.9999}
|
|
||||||
[[ ${mypv} != ${PV} ]] && branch="${PN}-${mypv/./-}"
|
|
||||||
git-r3_fetch "${base_uri}/${PN}/${mod}" "refs/heads/${branch}"
|
|
||||||
[[ ${mod} != core ]] && checkout="${S}/${mod}"
|
|
||||||
[[ ${mod} == help ]] && checkout="helpcontent2" # doesn't match on help
|
|
||||||
git-r3_checkout "${base_uri}/${PN}/${mod}" ${checkout}
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
[[ -n ${PATCHSET} ]] && eapply "${WORKDIR}/${PATCHSET/.tar.xz/}"
|
|
||||||
eapply "${PATCHES[@]}"
|
|
||||||
eapply_user
|
|
||||||
|
|
||||||
AT_M4DIR="m4" eautoreconf
|
|
||||||
# hack in the autogen.sh
|
|
||||||
touch autogen.lastrun
|
|
||||||
|
|
||||||
# system pyuno mess
|
|
||||||
sed -i \
|
|
||||||
-e "s:%eprefix%:${EPREFIX}:g" \
|
|
||||||
-e "s:%libdir%:$(get_libdir):g" \
|
|
||||||
pyuno/source/module/uno.py \
|
|
||||||
pyuno/source/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 ext_opts
|
|
||||||
|
|
||||||
# optimization flags
|
|
||||||
export GMAKE_OPTIONS="${MAKEOPTS}"
|
|
||||||
# System python enablement:
|
|
||||||
export PYTHON_CFLAGS=$(python_get_CFLAGS)
|
|
||||||
export PYTHON_LIBS=$(python_get_LIBS)
|
|
||||||
|
|
||||||
if use collada; then
|
|
||||||
export OPENCOLLADA_CFLAGS="-I/usr/include/opencollada/COLLADABaseUtils -I/usr/include/opencollada/COLLADAFramework -I/usr/include/opencollada/COLLADASaxFrameworkLoader -I/usr/include/opencollada/GeneratedSaxParser"
|
|
||||||
export OPENCOLLADA_LIBS="-L /usr/$(get_libdir)/opencollada -lOpenCOLLADABaseUtils -lOpenCOLLADAFramework -lOpenCOLLADASaxFrameworkLoader -lGeneratedSaxParser"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 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)"
|
|
||||||
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-systray: quickstarter does not actually work at all so do not
|
|
||||||
# promote it
|
|
||||||
# --enable-extension-integration: enable any extension integration support
|
|
||||||
# --without-{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-neon \
|
|
||||||
--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-gstreamer-0-10 \
|
|
||||||
--disable-report-builder \
|
|
||||||
--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=$(makeopts_jobs) \
|
|
||||||
--with-system-ucpp \
|
|
||||||
--with-vendor="Gentoo Foundation" \
|
|
||||||
--with-x \
|
|
||||||
--without-fonts \
|
|
||||||
--without-myspell-dicts \
|
|
||||||
--without-help \
|
|
||||||
--with-helppack-integration \
|
|
||||||
--without-sun-templates \
|
|
||||||
$(use_enable bluetooth sdremote-bluetooth) \
|
|
||||||
$(use_enable coinmp) \
|
|
||||||
$(use_enable collada) \
|
|
||||||
$(use_enable cups) \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable dbus) \
|
|
||||||
$(use_enable eds evolution2) \
|
|
||||||
$(use_enable firebird firebird-sdbc) \
|
|
||||||
$(use_enable gltf) \
|
|
||||||
$(use_enable gnome gio) \
|
|
||||||
$(use_enable gstreamer gstreamer-1-0) \
|
|
||||||
$(use_enable gtk) \
|
|
||||||
$(use_enable gtk3) \
|
|
||||||
$(use_enable kde kde4) \
|
|
||||||
$(use_enable mysql ext-mariadb-connector) \
|
|
||||||
$(use_enable odk) \
|
|
||||||
$(use_enable postgres postgresql-sdbc) \
|
|
||||||
$(use_enable telepathy) \
|
|
||||||
$(use_enable vlc) \
|
|
||||||
$(use_with coinmp system-coinmp) \
|
|
||||||
$(use_with collada system-opencollada) \
|
|
||||||
$(use_with gltf system-libgltf) \
|
|
||||||
$(use_with java) \
|
|
||||||
$(use_with mysql system-mysql-cppconn) \
|
|
||||||
$(use_with odk doxygen) \
|
|
||||||
${internal_libs} \
|
|
||||||
${java_opts} \
|
|
||||||
${ext_opts}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
# more and more LO stuff tries to use OpenGL, including tests during build
|
|
||||||
# bug 501508, bug 540624, bug 545974 and probably more
|
|
||||||
addpredict /dev/dri
|
|
||||||
addpredict /dev/ati
|
|
||||||
addpredict /dev/nvidiactl
|
|
||||||
|
|
||||||
# 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" || die
|
|
||||||
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}
|
|
||||||
bashcomp_alias \
|
|
||||||
libreoffice \
|
|
||||||
unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
|
|
||||||
rm -rf "${ED}"etc/ || die
|
|
||||||
|
|
||||||
if use branding; then
|
|
||||||
insinto /usr/$(get_libdir)/${PN}/program
|
|
||||||
newins "${WORKDIR}/branding-sofficerc" sofficerc
|
|
||||||
dodir /etc/env.d
|
|
||||||
echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"etc/env.d/99${PN} || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 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 -r "${ED}"usr/share/mimelnk/ || die
|
|
||||||
|
|
||||||
# FIXME: Hack add missing file
|
|
||||||
exeinto /usr/$(get_libdir)/${PN}/program
|
|
||||||
doexe "${S}"/instdir/program/libsaxlo.so
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
kde4-base_pkg_postrm
|
|
||||||
}
|
|
@ -1,576 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
KDE_REQUIRED="optional"
|
|
||||||
QT_MINIMAL="4.7.4"
|
|
||||||
KDE_SCM="git"
|
|
||||||
CMAKE_REQUIRED="never"
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
|
||||||
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-r3"
|
|
||||||
inherit multiprocessing autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic versionator ${SCM_ECLASS}
|
|
||||||
unset SCM_ECLASS
|
|
||||||
|
|
||||||
DESCRIPTION="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_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz" # modifies source code
|
|
||||||
"collada? ( ${ADDONS_URI}/4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 )"
|
|
||||||
"java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
|
|
||||||
# no release for 8 years, should we package it?
|
|
||||||
"libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
|
|
||||||
# Does not build with 1.6 rhino at all
|
|
||||||
"libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
|
|
||||||
# requirement of rhino
|
|
||||||
"libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
|
|
||||||
# not packageable
|
|
||||||
"odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
|
|
||||||
)
|
|
||||||
SRC_URI+=" ${ADDONS_SRC[*]}"
|
|
||||||
|
|
||||||
unset ADDONS_URI
|
|
||||||
unset EXT_URI
|
|
||||||
unset ADDONS_SRC
|
|
||||||
|
|
||||||
# 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:
|
|
||||||
LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
|
|
||||||
|
|
||||||
IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome gstreamer
|
|
||||||
+gtk gtk3 jemalloc kde libressl mysql odk postgres telepathy test vlc
|
|
||||||
$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
|
|
||||||
|
|
||||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
[[ ${PV} == *9999* ]] || \
|
|
||||||
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
|
|
||||||
|
|
||||||
COMMON_DEPEND="
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
app-arch/zip
|
|
||||||
app-arch/unzip
|
|
||||||
app-text/hunspell
|
|
||||||
app-text/mythes
|
|
||||||
>=app-text/libabw-0.1.0
|
|
||||||
app-text/libexttextcat
|
|
||||||
>=app-text/libebook-0.1
|
|
||||||
>=app-text/libetonyek-0.1
|
|
||||||
app-text/liblangtag
|
|
||||||
>=app-text/libmspub-0.1.0
|
|
||||||
>=app-text/libmwaw-0.3.1
|
|
||||||
>=app-text/libodfgen-0.1.0
|
|
||||||
app-text/libwpd:0.10[tools]
|
|
||||||
app-text/libwpg:0.3
|
|
||||||
>=app-text/libwps-0.4
|
|
||||||
app-text/poppler:=[cxx]
|
|
||||||
>=dev-cpp/clucene-2.3.3.4-r2
|
|
||||||
=dev-cpp/libcmis-0.5*
|
|
||||||
dev-db/unixODBC
|
|
||||||
>=dev-libs/boost-1.55:=
|
|
||||||
dev-libs/expat
|
|
||||||
dev-libs/hyphen
|
|
||||||
dev-libs/icu:=
|
|
||||||
=dev-libs/liborcus-0.9*
|
|
||||||
dev-libs/librevenge
|
|
||||||
dev-libs/nspr
|
|
||||||
dev-libs/nss
|
|
||||||
>=dev-lang/perl-5.0
|
|
||||||
!libressl? ( >=dev-libs/openssl-1.0.0d:0 )
|
|
||||||
libressl? ( dev-libs/libressl )
|
|
||||||
>=dev-libs/redland-1.0.16
|
|
||||||
media-gfx/graphite2
|
|
||||||
media-libs/fontconfig
|
|
||||||
media-libs/freetype:2
|
|
||||||
>=media-libs/glew-1.10
|
|
||||||
>=media-libs/harfbuzz-0.9.18:=[icu(+)]
|
|
||||||
media-libs/lcms:2
|
|
||||||
>=media-libs/libpng-1.4:0=
|
|
||||||
>=media-libs/libcdr-0.1.0
|
|
||||||
>=media-libs/libfreehand-0.1.0
|
|
||||||
media-libs/libpagemaker
|
|
||||||
>=media-libs/libvisio-0.1.0
|
|
||||||
net-misc/curl
|
|
||||||
net-libs/neon
|
|
||||||
net-nds/openldap
|
|
||||||
sci-mathematics/lpsolve
|
|
||||||
virtual/jpeg:0
|
|
||||||
x11-libs/cairo[X,-xlib-xcb]
|
|
||||||
x11-libs/libXinerama
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXrender
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
bluetooth? ( net-wireless/bluez )
|
|
||||||
coinmp? ( sci-libs/coinor-mp )
|
|
||||||
collada? ( >=media-libs/opencollada-1.2.2_p20150207 )
|
|
||||||
cups? ( net-print/cups )
|
|
||||||
dbus? ( dev-libs/dbus-glib )
|
|
||||||
eds? (
|
|
||||||
dev-libs/glib:2
|
|
||||||
gnome-extra/evolution-data-server
|
|
||||||
)
|
|
||||||
firebird? ( >=dev-db/firebird-2.5 )
|
|
||||||
gltf? ( media-libs/libgltf )
|
|
||||||
gtk? (
|
|
||||||
x11-libs/gdk-pixbuf
|
|
||||||
>=x11-libs/gtk+-2.24:2
|
|
||||||
)
|
|
||||||
gtk3? (
|
|
||||||
dev-libs/glib:2
|
|
||||||
dev-libs/gobject-introspection
|
|
||||||
>=x11-libs/gtk+-3.8: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 )
|
|
||||||
libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
|
|
||||||
mysql? ( dev-db/mysql-connector-c++ )
|
|
||||||
postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
|
|
||||||
telepathy? ( net-libs/telepathy-glib )
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
!app-office/libreoffice-bin
|
|
||||||
!app-office/libreoffice-bin-debug
|
|
||||||
!app-office/openoffice
|
|
||||||
media-fonts/libertine
|
|
||||||
media-fonts/liberation-fonts
|
|
||||||
media-fonts/urw-fonts
|
|
||||||
java? ( >=virtual/jre-1.6 )
|
|
||||||
kde? ( $(add_kdeapps_dep kioclient) )
|
|
||||||
vlc? ( media-video/vlc )
|
|
||||||
"
|
|
||||||
|
|
||||||
if [[ ${PV} != *9999* ]]; then
|
|
||||||
PDEPEND="=app-office/libreoffice-l10n-$(get_version_component_range 1-2)*"
|
|
||||||
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/libatomic_ops-7.2d
|
|
||||||
>=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.12.0:0=
|
|
||||||
media-libs/glm
|
|
||||||
net-misc/npapi-sdk
|
|
||||||
sys-devel/bison
|
|
||||||
sys-devel/flex
|
|
||||||
sys-devel/gettext
|
|
||||||
!<sys-devel/make-3.82
|
|
||||||
sys-devel/ucpp
|
|
||||||
sys-libs/zlib
|
|
||||||
virtual/pkgconfig
|
|
||||||
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 )
|
|
||||||
"
|
|
||||||
|
|
||||||
REQUIRED_USE="
|
|
||||||
${PYTHON_REQUIRED_USE}
|
|
||||||
bluetooth? ( dbus )
|
|
||||||
collada? ( gltf )
|
|
||||||
eds? ( gnome )
|
|
||||||
gnome? ( gtk )
|
|
||||||
telepathy? ( gtk )
|
|
||||||
libreoffice_extensions_nlpsolver? ( java )
|
|
||||||
libreoffice_extensions_scripting-beanshell? ( java )
|
|
||||||
libreoffice_extensions_scripting-javascript? ( java )
|
|
||||||
libreoffice_extensions_wiki-publisher? ( java )
|
|
||||||
"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
# not upstreamable stuff
|
|
||||||
"${FILESDIR}/${PN}-4.4-system-pyuno.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
CHECKREQS_MEMORY="512M"
|
|
||||||
|
|
||||||
if [[ ${MERGE_TYPE} != binary ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then
|
|
||||||
CHECKREQS_DISK_BUILD="22G"
|
|
||||||
elif [[ ${MERGE_TYPE} != binary ]] ; then
|
|
||||||
CHECKREQS_DISK_BUILD="6G"
|
|
||||||
fi
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
use java || \
|
|
||||||
ewarn "If you plan to use lbase application you should enable java or you will get various crashes."
|
|
||||||
|
|
||||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
|
||||||
check-reqs_pkg_pretend
|
|
||||||
|
|
||||||
if [[ $(gcc-major-version) -lt 4 ]] || {
|
|
||||||
[[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]]; }
|
|
||||||
then
|
|
||||||
eerror "Compilation with gcc older than 4.7 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; then
|
|
||||||
local pgslot=$(postgresql-config show)
|
|
||||||
if [[ ${pgslot//.} -lt 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
|
|
||||||
|
|
||||||
[[ -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
|
|
||||||
local base_uri branch checkout mypv
|
|
||||||
base_uri="git://anongit.freedesktop.org"
|
|
||||||
for mod in ${MODULES}; do
|
|
||||||
branch="master"
|
|
||||||
mypv=${PV/.9999}
|
|
||||||
[[ ${mypv} != ${PV} ]] && branch="${PN}-${mypv/./-}"
|
|
||||||
git-r3_fetch "${base_uri}/${PN}/${mod}" "refs/heads/${branch}"
|
|
||||||
[[ ${mod} != core ]] && checkout="${S}/${mod}"
|
|
||||||
[[ ${mod} == help ]] && checkout="helpcontent2" # doesn't match on help
|
|
||||||
git-r3_checkout "${base_uri}/${PN}/${mod}" ${checkout}
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
[[ -n ${PATCHSET} ]] && eapply "${WORKDIR}/${PATCHSET/.tar.xz/}"
|
|
||||||
eapply "${PATCHES[@]}"
|
|
||||||
eapply_user
|
|
||||||
|
|
||||||
AT_M4DIR="m4" eautoreconf
|
|
||||||
# hack in the autogen.sh
|
|
||||||
touch autogen.lastrun
|
|
||||||
|
|
||||||
# system pyuno mess
|
|
||||||
sed -i \
|
|
||||||
-e "s:%eprefix%:${EPREFIX}:g" \
|
|
||||||
-e "s:%libdir%:$(get_libdir):g" \
|
|
||||||
pyuno/source/module/uno.py \
|
|
||||||
pyuno/source/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 ext_opts
|
|
||||||
|
|
||||||
# optimization flags
|
|
||||||
export GMAKE_OPTIONS="${MAKEOPTS}"
|
|
||||||
# System python enablement:
|
|
||||||
export PYTHON_CFLAGS=$(python_get_CFLAGS)
|
|
||||||
export PYTHON_LIBS=$(python_get_LIBS)
|
|
||||||
|
|
||||||
if use collada; then
|
|
||||||
export OPENCOLLADA_CFLAGS="-I/usr/include/opencollada/COLLADABaseUtils -I/usr/include/opencollada/COLLADAFramework -I/usr/include/opencollada/COLLADASaxFrameworkLoader -I/usr/include/opencollada/GeneratedSaxParser"
|
|
||||||
export OPENCOLLADA_LIBS="-L /usr/$(get_libdir)/opencollada -lOpenCOLLADABaseUtils -lOpenCOLLADAFramework -lOpenCOLLADASaxFrameworkLoader -lGeneratedSaxParser"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 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)"
|
|
||||||
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-systray: quickstarter does not actually work at all so do not
|
|
||||||
# promote it
|
|
||||||
# --enable-extension-integration: enable any extension integration support
|
|
||||||
# --without-{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-neon \
|
|
||||||
--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-gstreamer-0-10 \
|
|
||||||
--disable-report-builder \
|
|
||||||
--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=$(makeopts_jobs) \
|
|
||||||
--with-system-ucpp \
|
|
||||||
--with-vendor="Gentoo Foundation" \
|
|
||||||
--with-x \
|
|
||||||
--without-fonts \
|
|
||||||
--without-myspell-dicts \
|
|
||||||
--without-help \
|
|
||||||
--with-helppack-integration \
|
|
||||||
--without-sun-templates \
|
|
||||||
$(use_enable bluetooth sdremote-bluetooth) \
|
|
||||||
$(use_enable coinmp) \
|
|
||||||
$(use_enable collada) \
|
|
||||||
$(use_enable cups) \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable dbus) \
|
|
||||||
$(use_enable eds evolution2) \
|
|
||||||
$(use_enable firebird firebird-sdbc) \
|
|
||||||
$(use_enable gltf) \
|
|
||||||
$(use_enable gnome gio) \
|
|
||||||
$(use_enable gstreamer gstreamer-1-0) \
|
|
||||||
$(use_enable gtk) \
|
|
||||||
$(use_enable gtk3) \
|
|
||||||
$(use_enable kde kde4) \
|
|
||||||
$(use_enable mysql ext-mariadb-connector) \
|
|
||||||
$(use_enable odk) \
|
|
||||||
$(use_enable postgres postgresql-sdbc) \
|
|
||||||
$(use_enable telepathy) \
|
|
||||||
$(use_enable vlc) \
|
|
||||||
$(use_with coinmp system-coinmp) \
|
|
||||||
$(use_with collada system-opencollada) \
|
|
||||||
$(use_with gltf system-libgltf) \
|
|
||||||
$(use_with java) \
|
|
||||||
$(use_with mysql system-mysql-cppconn) \
|
|
||||||
$(use_with odk doxygen) \
|
|
||||||
${internal_libs} \
|
|
||||||
${java_opts} \
|
|
||||||
${ext_opts}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
# more and more LO stuff tries to use OpenGL, including tests during build
|
|
||||||
# bug 501508, bug 540624, bug 545974 and probably more
|
|
||||||
addpredict /dev/dri
|
|
||||||
addpredict /dev/ati
|
|
||||||
addpredict /dev/nvidiactl
|
|
||||||
|
|
||||||
# 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" || die
|
|
||||||
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}
|
|
||||||
bashcomp_alias \
|
|
||||||
libreoffice \
|
|
||||||
unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
|
|
||||||
rm -rf "${ED}"etc/ || die
|
|
||||||
|
|
||||||
if use branding; then
|
|
||||||
insinto /usr/$(get_libdir)/${PN}/program
|
|
||||||
newins "${WORKDIR}/branding-sofficerc" sofficerc
|
|
||||||
dodir /etc/env.d
|
|
||||||
echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"etc/env.d/99${PN} || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 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 -r "${ED}"usr/share/mimelnk/ || die
|
|
||||||
|
|
||||||
# FIXME: Hack add missing file
|
|
||||||
exeinto /usr/$(get_libdir)/${PN}/program
|
|
||||||
doexe "${S}"/instdir/program/libsaxlo.so
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
kde4-base_pkg_postrm
|
|
||||||
}
|
|
@ -1,4 +1,3 @@
|
|||||||
DIST poppler-0.32.0.tar.xz 1609624 SHA256 4963e31ba5e17530a87b16588e22928bc044e8d28d02303dded981bff6725b98 SHA512 f68355a0242ce467b9d7d7f47cc0c3b08f015c38b147eaeddc392e693239bce2b1b3832bd5e5411f25edddab6d3cea8ca0be151372a86963610a4eae3ea50eee WHIRLPOOL bb56d497f435ccb78dfeb0125ca5d003d08769fe74e11da940f6f5399194698e1908c22d815129e6d1f1a7a9855a68ad7043a3bdd4779045fcf64dd97ade3d22
|
|
||||||
DIST poppler-0.42.0.tar.xz 1674024 SHA256 9fef076ffe2a4f18a4e0da547d814ef5c5e6f8a283afe3387504a0bb1a418010 SHA512 ab8c86c28a2ac848bf118de7f20f57576ed4faa4ad06ae7d58590b951fb2b0ee8a728919ce2417592b467af7322c57ed0bff0288eced042fcf94a50d89c73c19 WHIRLPOOL 095986b44875847d471ecda35194eeb894051b689a754dc8ae55caa04100b4e2ebd57fe868008972502d27346eeb98699fa9660b414ececef4d0eafe53265736
|
DIST poppler-0.42.0.tar.xz 1674024 SHA256 9fef076ffe2a4f18a4e0da547d814ef5c5e6f8a283afe3387504a0bb1a418010 SHA512 ab8c86c28a2ac848bf118de7f20f57576ed4faa4ad06ae7d58590b951fb2b0ee8a728919ce2417592b467af7322c57ed0bff0288eced042fcf94a50d89c73c19 WHIRLPOOL 095986b44875847d471ecda35194eeb894051b689a754dc8ae55caa04100b4e2ebd57fe868008972502d27346eeb98699fa9660b414ececef4d0eafe53265736
|
||||||
DIST poppler-0.45.0.tar.xz 1674464 SHA256 96dd1a6024bcdaa4530a3b49687db3d5c24ddfd072ccb37c6de0e42599728798 SHA512 b703bed35da3572801834740bf61d59b6a3ee3b88bc1b3181bde3472264be4f6b89ceacb56179d7093329946abd6ba2501acfaf209d4f543352ff9fd38c47f1b WHIRLPOOL 687b1ba816dbff1b0a69cb05914dd7fb161bfd8c0fa4e26b77bb0ad26e27f7d7d94085a1022716a8d7a7563145f0acead9fccbbd332959d0216b81b27f3632e8
|
DIST poppler-0.45.0.tar.xz 1674464 SHA256 96dd1a6024bcdaa4530a3b49687db3d5c24ddfd072ccb37c6de0e42599728798 SHA512 b703bed35da3572801834740bf61d59b6a3ee3b88bc1b3181bde3472264be4f6b89ceacb56179d7093329946abd6ba2501acfaf209d4f543352ff9fd38c47f1b WHIRLPOOL 687b1ba816dbff1b0a69cb05914dd7fb161bfd8c0fa4e26b77bb0ad26e27f7d7d94085a1022716a8d7a7563145f0acead9fccbbd332959d0216b81b27f3632e8
|
||||||
DIST poppler-0.46.0.tar.xz 1680940 SHA256 967d35d13d61dee2fee656b80efef9e388a9e752bc79b7123f15b49c7769e487 SHA512 c303875ae8082e8cd0332ecff82e52678393d0015d092aee6fec3cc191218f155aca049ce43996c255122f550aae53ed019bb7855291d117d0b9e25ab83e9caf WHIRLPOOL 332aa78ba5a905a1c1b1fa62b20e730c7e7cde91f0a6f3c0291f85ea35188d65e496db8145c4eca8b382e8be6061bf16201603a3654c83f8c9f40e142fef0e74
|
DIST poppler-0.46.0.tar.xz 1680940 SHA256 967d35d13d61dee2fee656b80efef9e388a9e752bc79b7123f15b49c7769e487 SHA512 c303875ae8082e8cd0332ecff82e52678393d0015d092aee6fec3cc191218f155aca049ce43996c255122f550aae53ed019bb7855291d117d0b9e25ab83e9caf WHIRLPOOL 332aa78ba5a905a1c1b1fa62b20e730c7e7cde91f0a6f3c0291f85ea35188d65e496db8145c4eca8b382e8be6061bf16201603a3654c83f8c9f40e142fef0e74
|
||||||
|
@ -1,111 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
inherit cmake-utils toolchain-funcs xdg-utils
|
|
||||||
|
|
||||||
if [[ "${PV}" == "9999" ]] ; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="git://git.freedesktop.org/git/${PN}/${PN}"
|
|
||||||
KEYWORDS="alpha arm hppa ia64 ppc ppc64 sparc x86"
|
|
||||||
SLOT="0/9999"
|
|
||||||
else
|
|
||||||
SRC_URI="https://poppler.freedesktop.org/${P}.tar.xz"
|
|
||||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
SLOT="0/51" # CHECK THIS WHEN BUMPING!!! SUBSLOT IS libpoppler.so SOVERSION
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base"
|
|
||||||
HOMEPAGE="https://poppler.freedesktop.org/"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
IUSE="cairo cjk curl cxx debug doc +introspection +jpeg jpeg2k +lcms png qt4 qt5 tiff +utils"
|
|
||||||
|
|
||||||
# No test data provided
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
COMMON_DEPEND="
|
|
||||||
>=media-libs/fontconfig-2.6.0
|
|
||||||
>=media-libs/freetype-2.3.9
|
|
||||||
sys-libs/zlib
|
|
||||||
cairo? (
|
|
||||||
dev-libs/glib:2
|
|
||||||
>=x11-libs/cairo-1.10.0
|
|
||||||
introspection? ( >=dev-libs/gobject-introspection-1.32.1 )
|
|
||||||
)
|
|
||||||
curl? ( net-misc/curl )
|
|
||||||
jpeg? ( virtual/jpeg:0 )
|
|
||||||
jpeg2k? ( media-libs/openjpeg:0 )
|
|
||||||
lcms? ( media-libs/lcms:2 )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
qt4? (
|
|
||||||
dev-qt/qtcore:4
|
|
||||||
dev-qt/qtgui:4
|
|
||||||
)
|
|
||||||
qt5? (
|
|
||||||
dev-qt/qtcore:5
|
|
||||||
dev-qt/qtgui:5
|
|
||||||
dev-qt/qtxml:5
|
|
||||||
)
|
|
||||||
tiff? ( media-libs/tiff:0 )
|
|
||||||
"
|
|
||||||
DEPEND="${COMMON_DEPEND}
|
|
||||||
virtual/pkgconfig
|
|
||||||
"
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
cjk? ( >=app-text/poppler-data-0.4.4 )
|
|
||||||
"
|
|
||||||
|
|
||||||
DOCS=(AUTHORS NEWS README README-XPDF TODO)
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/${PN}-0.26.0-qt5-dependencies.patch"
|
|
||||||
"${FILESDIR}/${PN}-0.28.1-respect-cflags.patch"
|
|
||||||
"${FILESDIR}/${PN}-0.28.1-fix-multilib-configuration.patch" )
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
xdg_environment_reset
|
|
||||||
local mycmakeargs=(
|
|
||||||
-DBUILD_GTK_TESTS=OFF
|
|
||||||
-DBUILD_QT4_TESTS=OFF
|
|
||||||
-DBUILD_QT5_TESTS=OFF
|
|
||||||
-DBUILD_CPP_TESTS=OFF
|
|
||||||
-DENABLE_SPLASH=ON
|
|
||||||
-DENABLE_ZLIB=ON
|
|
||||||
-DENABLE_XPDF_HEADERS=ON
|
|
||||||
$(cmake-utils_use_enable curl LIBCURL)
|
|
||||||
$(cmake-utils_use_enable cxx CPP)
|
|
||||||
$(cmake-utils_use_enable utils)
|
|
||||||
$(cmake-utils_use_with cairo)
|
|
||||||
$(cmake-utils_use_with introspection GObjectIntrospection)
|
|
||||||
$(cmake-utils_use_with jpeg)
|
|
||||||
$(cmake-utils_use_with png)
|
|
||||||
$(cmake-utils_use_with qt4)
|
|
||||||
$(cmake-utils_use_find_package qt5 Qt5Core)
|
|
||||||
$(cmake-utils_use_with tiff)
|
|
||||||
)
|
|
||||||
if use jpeg2k; then
|
|
||||||
mycmakeargs+=(-DENABLE_LIBOPENJPEG=openjpeg1)
|
|
||||||
else
|
|
||||||
mycmakeargs+=(-DENABLE_LIBOPENJPEG=)
|
|
||||||
fi
|
|
||||||
if use lcms; then
|
|
||||||
mycmakeargs+=(-DENABLE_CMS=lcms2)
|
|
||||||
else
|
|
||||||
mycmakeargs+=(-DENABLE_CMS=)
|
|
||||||
fi
|
|
||||||
|
|
||||||
cmake-utils_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
cmake-utils_src_install
|
|
||||||
|
|
||||||
if use cairo && use doc; then
|
|
||||||
# For now install gtk-doc there
|
|
||||||
insinto /usr/share/gtk-doc/html/poppler
|
|
||||||
doins -r "${S}"/glib/reference/html/*
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,443 +0,0 @@
|
|||||||
https://www.sqlite.org/cgi/src/info/374b5108087a2eae
|
|
||||||
|
|
||||||
--- ext/fts3/fts3_tokenizer.c
|
|
||||||
+++ ext/fts3/fts3_tokenizer.c
|
|
||||||
@@ -30,6 +30,18 @@
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
/*
|
|
||||||
+** Return true if the two-argument version of fts3_tokenizer()
|
|
||||||
+** has been activated via a prior call to sqlite3_db_config(db,
|
|
||||||
+** SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER, 1, 0);
|
|
||||||
+*/
|
|
||||||
+static int fts3TokenizerEnabled(sqlite3_context *context){
|
|
||||||
+ sqlite3 *db = sqlite3_context_db_handle(context);
|
|
||||||
+ int isEnabled = 0;
|
|
||||||
+ sqlite3_db_config(db,SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER,-1,&isEnabled);
|
|
||||||
+ return isEnabled;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+/*
|
|
||||||
** Implementation of the SQL scalar function for accessing the underlying
|
|
||||||
** hash table. This function may be called as follows:
|
|
||||||
**
|
|
||||||
@@ -49,7 +61,7 @@
|
|
||||||
** is a blob containing the pointer stored as the hash data corresponding
|
|
||||||
** to string <key-name> (after the hash-table is updated, if applicable).
|
|
||||||
*/
|
|
||||||
-static void scalarFunc(
|
|
||||||
+static void fts3TokenizerFunc(
|
|
||||||
sqlite3_context *context,
|
|
||||||
int argc,
|
|
||||||
sqlite3_value **argv
|
|
||||||
@@ -67,27 +79,23 @@
|
|
||||||
nName = sqlite3_value_bytes(argv[0])+1;
|
|
||||||
|
|
||||||
if( argc==2 ){
|
|
||||||
-#ifdef SQLITE_ENABLE_FTS3_TOKENIZER
|
|
||||||
- void *pOld;
|
|
||||||
- int n = sqlite3_value_bytes(argv[1]);
|
|
||||||
- if( zName==0 || n!=sizeof(pPtr) ){
|
|
||||||
- sqlite3_result_error(context, "argument type mismatch", -1);
|
|
||||||
- return;
|
|
||||||
- }
|
|
||||||
- pPtr = *(void **)sqlite3_value_blob(argv[1]);
|
|
||||||
- pOld = sqlite3Fts3HashInsert(pHash, (void *)zName, nName, pPtr);
|
|
||||||
- if( pOld==pPtr ){
|
|
||||||
- sqlite3_result_error(context, "out of memory", -1);
|
|
||||||
+ if( fts3TokenizerEnabled(context) ){
|
|
||||||
+ void *pOld;
|
|
||||||
+ int n = sqlite3_value_bytes(argv[1]);
|
|
||||||
+ if( zName==0 || n!=sizeof(pPtr) ){
|
|
||||||
+ sqlite3_result_error(context, "argument type mismatch", -1);
|
|
||||||
+ return;
|
|
||||||
+ }
|
|
||||||
+ pPtr = *(void **)sqlite3_value_blob(argv[1]);
|
|
||||||
+ pOld = sqlite3Fts3HashInsert(pHash, (void *)zName, nName, pPtr);
|
|
||||||
+ if( pOld==pPtr ){
|
|
||||||
+ sqlite3_result_error(context, "out of memory", -1);
|
|
||||||
+ }
|
|
||||||
+ }else{
|
|
||||||
+ sqlite3_result_error(context, "fts3tokenize disabled", -1);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
-#else
|
|
||||||
- sqlite3_result_error(context, "fts3tokenize: "
|
|
||||||
- "disabled - rebuild with -DSQLITE_ENABLE_FTS3_TOKENIZER", -1
|
|
||||||
- );
|
|
||||||
- return;
|
|
||||||
-#endif /* SQLITE_ENABLE_FTS3_TOKENIZER */
|
|
||||||
- }else
|
|
||||||
- {
|
|
||||||
+ }else{
|
|
||||||
if( zName ){
|
|
||||||
pPtr = sqlite3Fts3HashFind(pHash, zName, nName);
|
|
||||||
}
|
|
||||||
@@ -98,7 +106,6 @@
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-
|
|
||||||
sqlite3_result_blob(context, (void *)&pPtr, sizeof(pPtr), SQLITE_TRANSIENT);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -336,7 +343,6 @@
|
|
||||||
Tcl_DecrRefCount(pRet);
|
|
||||||
}
|
|
||||||
|
|
||||||
-#ifdef SQLITE_ENABLE_FTS3_TOKENIZER
|
|
||||||
static
|
|
||||||
int registerTokenizer(
|
|
||||||
sqlite3 *db,
|
|
||||||
@@ -358,7 +364,6 @@
|
|
||||||
|
|
||||||
return sqlite3_finalize(pStmt);
|
|
||||||
}
|
|
||||||
-#endif /* SQLITE_ENABLE_FTS3_TOKENIZER */
|
|
||||||
|
|
||||||
|
|
||||||
static
|
|
||||||
@@ -431,13 +436,13 @@
|
|
||||||
assert( 0==strcmp(sqlite3_errmsg(db), "unknown tokenizer: nosuchtokenizer") );
|
|
||||||
|
|
||||||
/* Test the storage function */
|
|
||||||
-#ifdef SQLITE_ENABLE_FTS3_TOKENIZER
|
|
||||||
- rc = registerTokenizer(db, "nosuchtokenizer", p1);
|
|
||||||
- assert( rc==SQLITE_OK );
|
|
||||||
- rc = queryTokenizer(db, "nosuchtokenizer", &p2);
|
|
||||||
- assert( rc==SQLITE_OK );
|
|
||||||
- assert( p2==p1 );
|
|
||||||
-#endif
|
|
||||||
+ if( fts3TokenizerEnabled(context) ){
|
|
||||||
+ rc = registerTokenizer(db, "nosuchtokenizer", p1);
|
|
||||||
+ assert( rc==SQLITE_OK );
|
|
||||||
+ rc = queryTokenizer(db, "nosuchtokenizer", &p2);
|
|
||||||
+ assert( rc==SQLITE_OK );
|
|
||||||
+ assert( p2==p1 );
|
|
||||||
+ }
|
|
||||||
|
|
||||||
sqlite3_result_text(context, "ok", -1, SQLITE_STATIC);
|
|
||||||
}
|
|
||||||
@@ -453,7 +458,7 @@
|
|
||||||
** sqlite3Fts3HashInit(pHash, FTS3_HASH_STRING, 1);
|
|
||||||
**
|
|
||||||
** This function adds a scalar function (see header comment above
|
|
||||||
-** scalarFunc() in this file for details) and, if ENABLE_TABLE is
|
|
||||||
+** fts3TokenizerFunc() in this file for details) and, if ENABLE_TABLE is
|
|
||||||
** defined at compilation time, a temporary virtual table (see header
|
|
||||||
** comment above struct HashTableVtab) to the database schema. Both
|
|
||||||
** provide read/write access to the contents of *pHash.
|
|
||||||
@@ -482,10 +487,10 @@
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if( SQLITE_OK==rc ){
|
|
||||||
- rc = sqlite3_create_function(db, zName, 1, any, p, scalarFunc, 0, 0);
|
|
||||||
+ rc = sqlite3_create_function(db, zName, 1, any, p, fts3TokenizerFunc, 0, 0);
|
|
||||||
}
|
|
||||||
if( SQLITE_OK==rc ){
|
|
||||||
- rc = sqlite3_create_function(db, zName, 2, any, p, scalarFunc, 0, 0);
|
|
||||||
+ rc = sqlite3_create_function(db, zName, 2, any, p, fts3TokenizerFunc, 0, 0);
|
|
||||||
}
|
|
||||||
#ifdef SQLITE_TEST
|
|
||||||
if( SQLITE_OK==rc ){
|
|
||||||
--- src/main.c
|
|
||||||
+++ src/main.c
|
|
||||||
@@ -797,8 +797,9 @@
|
|
||||||
int op; /* The opcode */
|
|
||||||
u32 mask; /* Mask of the bit in sqlite3.flags to set/clear */
|
|
||||||
} aFlagOp[] = {
|
|
||||||
- { SQLITE_DBCONFIG_ENABLE_FKEY, SQLITE_ForeignKeys },
|
|
||||||
- { SQLITE_DBCONFIG_ENABLE_TRIGGER, SQLITE_EnableTrigger },
|
|
||||||
+ { SQLITE_DBCONFIG_ENABLE_FKEY, SQLITE_ForeignKeys },
|
|
||||||
+ { SQLITE_DBCONFIG_ENABLE_TRIGGER, SQLITE_EnableTrigger },
|
|
||||||
+ { SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER, SQLITE_Fts3Tokenizer },
|
|
||||||
};
|
|
||||||
unsigned int i;
|
|
||||||
rc = SQLITE_ERROR; /* IMP: R-42790-23372 */
|
|
||||||
@@ -2815,6 +2816,9 @@
|
|
||||||
#if defined(SQLITE_ENABLE_OVERSIZE_CELL_CHECK)
|
|
||||||
| SQLITE_CellSizeCk
|
|
||||||
#endif
|
|
||||||
+#if defined(SQLITE_ENABLE_FTS3_TOKENIZER)
|
|
||||||
+ | SQLITE_Fts3Tokenizer
|
|
||||||
+#endif
|
|
||||||
;
|
|
||||||
sqlite3HashInit(&db->aCollSeq);
|
|
||||||
#ifndef SQLITE_OMIT_VIRTUALTABLE
|
|
||||||
--- src/sqlite.h.in
|
|
||||||
+++ src/sqlite.h.in
|
|
||||||
@@ -1904,11 +1904,25 @@
|
|
||||||
** following this call. The second parameter may be a NULL pointer, in
|
|
||||||
** which case the trigger setting is not reported back. </dd>
|
|
||||||
**
|
|
||||||
+** <dt>SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER</dt>
|
|
||||||
+** <dd> ^This option is used to enable or disable the two-argument
|
|
||||||
+** version of the [fts3_tokenizer()] function which is part of the
|
|
||||||
+** [FTS3] full-text search engine extension.
|
|
||||||
+** There should be two additional arguments.
|
|
||||||
+** The first argument is an integer which is 0 to disable fts3_tokenizer() or
|
|
||||||
+** positive to enable fts3_tokenizer() or negative to leave the setting
|
|
||||||
+** unchanged.
|
|
||||||
+** The second parameter is a pointer to an integer into which
|
|
||||||
+** is written 0 or 1 to indicate whether fts3_tokenizer is disabled or enabled
|
|
||||||
+** following this call. The second parameter may be a NULL pointer, in
|
|
||||||
+** which case the new setting is not reported back. </dd>
|
|
||||||
+**
|
|
||||||
** </dl>
|
|
||||||
*/
|
|
||||||
-#define SQLITE_DBCONFIG_LOOKASIDE 1001 /* void* int int */
|
|
||||||
-#define SQLITE_DBCONFIG_ENABLE_FKEY 1002 /* int int* */
|
|
||||||
-#define SQLITE_DBCONFIG_ENABLE_TRIGGER 1003 /* int int* */
|
|
||||||
+#define SQLITE_DBCONFIG_LOOKASIDE 1001 /* void* int int */
|
|
||||||
+#define SQLITE_DBCONFIG_ENABLE_FKEY 1002 /* int int* */
|
|
||||||
+#define SQLITE_DBCONFIG_ENABLE_TRIGGER 1003 /* int int* */
|
|
||||||
+#define SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER 1004 /* int int* */
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
--- src/sqliteInt.h
|
|
||||||
+++ src/sqliteInt.h
|
|
||||||
@@ -1317,6 +1317,7 @@
|
|
||||||
#define SQLITE_VdbeEQP 0x04000000 /* Debug EXPLAIN QUERY PLAN */
|
|
||||||
#define SQLITE_Vacuum 0x08000000 /* Currently in a VACUUM */
|
|
||||||
#define SQLITE_CellSizeCk 0x10000000 /* Check btree cell sizes on load */
|
|
||||||
+#define SQLITE_Fts3Tokenizer 0x20000000 /* Enable fts3_tokenizer(2) */
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
--- src/test1.c
|
|
||||||
+++ src/test1.c
|
|
||||||
@@ -6921,6 +6921,53 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
+** tclcmd: sqlite3_db_config DB SETTING VALUE
|
|
||||||
+**
|
|
||||||
+** Invoke sqlite3_db_config() for one of the setting values.
|
|
||||||
+*/
|
|
||||||
+static int test_sqlite3_db_config(
|
|
||||||
+ void *clientData,
|
|
||||||
+ Tcl_Interp *interp,
|
|
||||||
+ int objc,
|
|
||||||
+ Tcl_Obj *CONST objv[]
|
|
||||||
+){
|
|
||||||
+ static const struct {
|
|
||||||
+ const char *zName;
|
|
||||||
+ int eVal;
|
|
||||||
+ } aSetting[] = {
|
|
||||||
+ { "FKEY", SQLITE_DBCONFIG_ENABLE_FKEY },
|
|
||||||
+ { "TRIGGER", SQLITE_DBCONFIG_ENABLE_TRIGGER },
|
|
||||||
+ { "FTS3_TOKENIZER", SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER },
|
|
||||||
+ };
|
|
||||||
+ int i;
|
|
||||||
+ int v;
|
|
||||||
+ const char *zSetting;
|
|
||||||
+ sqlite3 *db;
|
|
||||||
+
|
|
||||||
+ if( objc!=4 ){
|
|
||||||
+ Tcl_WrongNumArgs(interp, 1, objv, "DB SETTING VALUE");
|
|
||||||
+ return TCL_ERROR;
|
|
||||||
+ }
|
|
||||||
+ if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR;
|
|
||||||
+ zSetting = Tcl_GetString(objv[2]);
|
|
||||||
+ if( sqlite3_strglob("SQLITE_*", zSetting)==0 ) zSetting += 7;
|
|
||||||
+ if( sqlite3_strglob("DBCONFIG_*", zSetting)==0 ) zSetting += 9;
|
|
||||||
+ if( sqlite3_strglob("ENABLE_*", zSetting)==0 ) zSetting += 7;
|
|
||||||
+ for(i=0; i<ArraySize(aSetting); i++){
|
|
||||||
+ if( strcmp(zSetting, aSetting[i].zName)==0 ) break;
|
|
||||||
+ }
|
|
||||||
+ if( i>=ArraySize(aSetting) ){
|
|
||||||
+ Tcl_SetObjResult(interp,
|
|
||||||
+ Tcl_NewStringObj("unknown sqlite3_db_config setting", -1));
|
|
||||||
+ return TCL_ERROR;
|
|
||||||
+ }
|
|
||||||
+ if( Tcl_GetIntFromObj(interp, objv[3], &v) ) return TCL_ERROR;
|
|
||||||
+ sqlite3_db_config(db, aSetting[i].eVal, v, &v);
|
|
||||||
+ Tcl_SetObjResult(interp, Tcl_NewIntObj(v));
|
|
||||||
+ return TCL_OK;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+/*
|
|
||||||
** Register commands with the TCL interpreter.
|
|
||||||
*/
|
|
||||||
int Sqlitetest1_Init(Tcl_Interp *interp){
|
|
||||||
@@ -6989,6 +7036,7 @@
|
|
||||||
Tcl_ObjCmdProc *xProc;
|
|
||||||
void *clientData;
|
|
||||||
} aObjCmd[] = {
|
|
||||||
+ { "sqlite3_db_config", test_sqlite3_db_config, 0 },
|
|
||||||
{ "bad_behavior", test_bad_behavior, (void*)&iZero },
|
|
||||||
{ "register_dbstat_vtab", test_register_dbstat_vtab },
|
|
||||||
{ "sqlite3_connection_pointer", get_sqlite_pointer, 0 },
|
|
||||||
--- src/test_config.c
|
|
||||||
+++ src/test_config.c
|
|
||||||
@@ -370,12 +370,6 @@
|
|
||||||
Tcl_SetVar2(interp, "sqlite_options", "fts3", "0", TCL_GLOBAL_ONLY);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
-#ifdef SQLITE_ENABLE_FTS3_TOKENIZER
|
|
||||||
- Tcl_SetVar2(interp, "sqlite_options", "fts3_tokenizer", "1", TCL_GLOBAL_ONLY);
|
|
||||||
-#else
|
|
||||||
- Tcl_SetVar2(interp, "sqlite_options", "fts3_tokenizer", "0", TCL_GLOBAL_ONLY);
|
|
||||||
-#endif
|
|
||||||
-
|
|
||||||
#ifdef SQLITE_ENABLE_FTS5
|
|
||||||
Tcl_SetVar2(interp, "sqlite_options", "fts5", "1", TCL_GLOBAL_ONLY);
|
|
||||||
#else
|
|
||||||
--- test/fts3atoken.test
|
|
||||||
+++ test/fts3atoken.test
|
|
||||||
@@ -56,40 +56,41 @@
|
|
||||||
#
|
|
||||||
# 5: Test that the table created to use tokenizer 'blah' is usable.
|
|
||||||
#
|
|
||||||
-ifcapable fts3_tokenizer {
|
|
||||||
- do_test fts3atoken-1.1 {
|
|
||||||
- catchsql {
|
|
||||||
- CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize blah);
|
|
||||||
- }
|
|
||||||
- } {1 {unknown tokenizer: blah}}
|
|
||||||
- do_test fts3atoken-1.2 {
|
|
||||||
- execsql {
|
|
||||||
- SELECT fts3_tokenizer('blah', fts3_tokenizer('simple')) IS NULL;
|
|
||||||
- }
|
|
||||||
- } {0}
|
|
||||||
- do_test fts3atoken-1.3 {
|
|
||||||
- execsql {
|
|
||||||
- SELECT fts3_tokenizer('blah') == fts3_tokenizer('simple');
|
|
||||||
- }
|
|
||||||
- } {1}
|
|
||||||
- do_test fts3atoken-1.4 {
|
|
||||||
- catchsql {
|
|
||||||
- CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize blah);
|
|
||||||
- }
|
|
||||||
- } {0 {}}
|
|
||||||
- do_test fts3atoken-1.5 {
|
|
||||||
- execsql {
|
|
||||||
- INSERT INTO t1(content) VALUES('There was movement at the station');
|
|
||||||
- INSERT INTO t1(content) VALUES('For the word has passed around');
|
|
||||||
- INSERT INTO t1(content) VALUES('That the colt from ol regret had got');
|
|
||||||
- SELECT content FROM t1 WHERE content MATCH 'movement'
|
|
||||||
- }
|
|
||||||
- } {{There was movement at the station}}
|
|
||||||
-} else {
|
|
||||||
- do_catchsql_test 1.6 {
|
|
||||||
+sqlite3_db_config db SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER 1
|
|
||||||
+do_test fts3atoken-1.1 {
|
|
||||||
+ catchsql {
|
|
||||||
+ CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize blah);
|
|
||||||
+ }
|
|
||||||
+} {1 {unknown tokenizer: blah}}
|
|
||||||
+do_test fts3atoken-1.2 {
|
|
||||||
+ execsql {
|
|
||||||
SELECT fts3_tokenizer('blah', fts3_tokenizer('simple')) IS NULL;
|
|
||||||
- } {1 {fts3tokenize: disabled - rebuild with -DSQLITE_ENABLE_FTS3_TOKENIZER}}
|
|
||||||
-}
|
|
||||||
+ }
|
|
||||||
+} {0}
|
|
||||||
+do_test fts3atoken-1.3 {
|
|
||||||
+ execsql {
|
|
||||||
+ SELECT fts3_tokenizer('blah') == fts3_tokenizer('simple');
|
|
||||||
+ }
|
|
||||||
+} {1}
|
|
||||||
+do_test fts3atoken-1.4 {
|
|
||||||
+ catchsql {
|
|
||||||
+ CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize blah);
|
|
||||||
+ }
|
|
||||||
+} {0 {}}
|
|
||||||
+do_test fts3atoken-1.5 {
|
|
||||||
+ execsql {
|
|
||||||
+ INSERT INTO t1(content) VALUES('There was movement at the station');
|
|
||||||
+ INSERT INTO t1(content) VALUES('For the word has passed around');
|
|
||||||
+ INSERT INTO t1(content) VALUES('That the colt from ol regret had got');
|
|
||||||
+ SELECT content FROM t1 WHERE content MATCH 'movement'
|
|
||||||
+ }
|
|
||||||
+} {{There was movement at the station}}
|
|
||||||
+
|
|
||||||
+sqlite3_db_config db SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER 0
|
|
||||||
+do_catchsql_test 1.6 {
|
|
||||||
+ SELECT fts3_tokenizer('blah', fts3_tokenizer('simple')) IS NULL;
|
|
||||||
+} {1 {fts3tokenize disabled}}
|
|
||||||
+
|
|
||||||
|
|
||||||
#--------------------------------------------------------------------------
|
|
||||||
# Test cases fts3atoken-2.* test error cases in the scalar function based
|
|
||||||
@@ -212,14 +213,14 @@
|
|
||||||
do_catchsql_test 6.2.1 {
|
|
||||||
SELECT fts3_tokenizer(NULL);
|
|
||||||
} {1 {unknown tokenizer: }}
|
|
||||||
-ifcapable fts3_tokenizer {
|
|
||||||
- do_catchsql_test 6.2.2 {
|
|
||||||
- SELECT fts3_tokenizer(NULL, X'1234567812345678');
|
|
||||||
- } {1 {argument type mismatch}}
|
|
||||||
- do_catchsql_test 6.2.3 {
|
|
||||||
- SELECT fts3_tokenizer(NULL, X'12345678');
|
|
||||||
- } {1 {argument type mismatch}}
|
|
||||||
-}
|
|
||||||
+
|
|
||||||
+sqlite3_db_config db SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER 1
|
|
||||||
+do_catchsql_test 6.2.2 {
|
|
||||||
+ SELECT fts3_tokenizer(NULL, X'1234567812345678');
|
|
||||||
+} {1 {argument type mismatch}}
|
|
||||||
+do_catchsql_test 6.2.3 {
|
|
||||||
+ SELECT fts3_tokenizer(NULL, X'12345678');
|
|
||||||
+} {1 {argument type mismatch}}
|
|
||||||
|
|
||||||
|
|
||||||
finish_test
|
|
||||||
--- test/fts4langid.test
|
|
||||||
+++ test/fts4langid.test
|
|
||||||
@@ -358,31 +358,30 @@
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
-ifcapable fts3_tokenizer {
|
|
||||||
- do_test 4.1.0 {
|
|
||||||
- reset_db
|
|
||||||
- set ptr [fts3_test_tokenizer]
|
|
||||||
- execsql { SELECT fts3_tokenizer('testtokenizer', $ptr) }
|
|
||||||
- build_multilingual_db_2 db
|
|
||||||
- } {}
|
|
||||||
- do_execsql_test 4.1.1 {
|
|
||||||
- SELECT docid FROM t4 WHERE t4 MATCH 'quick';
|
|
||||||
- } {0}
|
|
||||||
- do_execsql_test 4.1.2 {
|
|
||||||
- SELECT docid FROM t4 WHERE t4 MATCH 'quick' AND lid=1;
|
|
||||||
- } {}
|
|
||||||
- do_execsql_test 4.1.3 {
|
|
||||||
- SELECT docid FROM t4 WHERE t4 MATCH 'Quick' AND lid=1;
|
|
||||||
- } {1}
|
|
||||||
- for {set i 0} {$i < 50} {incr i} {
|
|
||||||
- do_execsql_test 4.1.4.$i {
|
|
||||||
- SELECT count(*) FROM t4 WHERE t4 MATCH 'fox' AND lid=$i;
|
|
||||||
- } [expr 0==($i%2)]
|
|
||||||
- }
|
|
||||||
- do_catchsql_test 4.1.5 {
|
|
||||||
- INSERT INTO t4(content, lid) VALUES('hello world', 101)
|
|
||||||
- } {1 {SQL logic error or missing database}}
|
|
||||||
+do_test 4.1.0 {
|
|
||||||
+ reset_db
|
|
||||||
+ set ptr [fts3_test_tokenizer]
|
|
||||||
+ sqlite3_db_config db SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER 1
|
|
||||||
+ execsql { SELECT fts3_tokenizer('testtokenizer', $ptr) }
|
|
||||||
+ build_multilingual_db_2 db
|
|
||||||
+} {}
|
|
||||||
+do_execsql_test 4.1.1 {
|
|
||||||
+ SELECT docid FROM t4 WHERE t4 MATCH 'quick';
|
|
||||||
+} {0}
|
|
||||||
+do_execsql_test 4.1.2 {
|
|
||||||
+ SELECT docid FROM t4 WHERE t4 MATCH 'quick' AND lid=1;
|
|
||||||
+} {}
|
|
||||||
+do_execsql_test 4.1.3 {
|
|
||||||
+ SELECT docid FROM t4 WHERE t4 MATCH 'Quick' AND lid=1;
|
|
||||||
+} {1}
|
|
||||||
+for {set i 0} {$i < 50} {incr i} {
|
|
||||||
+ do_execsql_test 4.1.4.$i {
|
|
||||||
+ SELECT count(*) FROM t4 WHERE t4 MATCH 'fox' AND lid=$i;
|
|
||||||
+ } [expr 0==($i%2)]
|
|
||||||
}
|
|
||||||
+do_catchsql_test 4.1.5 {
|
|
||||||
+ INSERT INTO t4(content, lid) VALUES('hello world', 101)
|
|
||||||
+} {1 {SQL logic error or missing database}}
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
# Test cases 5.*
|
|
@ -1,232 +0,0 @@
|
|||||||
https://www.sqlite.org/cgi/src/info/374b5108087a2eae
|
|
||||||
|
|
||||||
--- sqlite3.c
|
|
||||||
+++ sqlite3.c
|
|
||||||
@@ -2121,11 +2121,25 @@
|
|
||||||
** following this call. The second parameter may be a NULL pointer, in
|
|
||||||
** which case the trigger setting is not reported back. </dd>
|
|
||||||
**
|
|
||||||
+** <dt>SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER</dt>
|
|
||||||
+** <dd> ^This option is used to enable or disable the two-argument
|
|
||||||
+** version of the [fts3_tokenizer()] function which is part of the
|
|
||||||
+** [FTS3] full-text search engine extension.
|
|
||||||
+** There should be two additional arguments.
|
|
||||||
+** The first argument is an integer which is 0 to disable fts3_tokenizer() or
|
|
||||||
+** positive to enable fts3_tokenizer() or negative to leave the setting
|
|
||||||
+** unchanged.
|
|
||||||
+** The second parameter is a pointer to an integer into which
|
|
||||||
+** is written 0 or 1 to indicate whether fts3_tokenizer is disabled or enabled
|
|
||||||
+** following this call. The second parameter may be a NULL pointer, in
|
|
||||||
+** which case the new setting is not reported back. </dd>
|
|
||||||
+**
|
|
||||||
** </dl>
|
|
||||||
*/
|
|
||||||
-#define SQLITE_DBCONFIG_LOOKASIDE 1001 /* void* int int */
|
|
||||||
-#define SQLITE_DBCONFIG_ENABLE_FKEY 1002 /* int int* */
|
|
||||||
-#define SQLITE_DBCONFIG_ENABLE_TRIGGER 1003 /* int int* */
|
|
||||||
+#define SQLITE_DBCONFIG_LOOKASIDE 1001 /* void* int int */
|
|
||||||
+#define SQLITE_DBCONFIG_ENABLE_FKEY 1002 /* int int* */
|
|
||||||
+#define SQLITE_DBCONFIG_ENABLE_TRIGGER 1003 /* int int* */
|
|
||||||
+#define SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER 1004 /* int int* */
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
@@ -12206,6 +12220,7 @@
|
|
||||||
#define SQLITE_VdbeEQP 0x04000000 /* Debug EXPLAIN QUERY PLAN */
|
|
||||||
#define SQLITE_Vacuum 0x08000000 /* Currently in a VACUUM */
|
|
||||||
#define SQLITE_CellSizeCk 0x10000000 /* Check btree cell sizes on load */
|
|
||||||
+#define SQLITE_Fts3Tokenizer 0x20000000 /* Enable fts3_tokenizer(2) */
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
@@ -133589,8 +133604,9 @@
|
|
||||||
int op; /* The opcode */
|
|
||||||
u32 mask; /* Mask of the bit in sqlite3.flags to set/clear */
|
|
||||||
} aFlagOp[] = {
|
|
||||||
- { SQLITE_DBCONFIG_ENABLE_FKEY, SQLITE_ForeignKeys },
|
|
||||||
- { SQLITE_DBCONFIG_ENABLE_TRIGGER, SQLITE_EnableTrigger },
|
|
||||||
+ { SQLITE_DBCONFIG_ENABLE_FKEY, SQLITE_ForeignKeys },
|
|
||||||
+ { SQLITE_DBCONFIG_ENABLE_TRIGGER, SQLITE_EnableTrigger },
|
|
||||||
+ { SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER, SQLITE_Fts3Tokenizer },
|
|
||||||
};
|
|
||||||
unsigned int i;
|
|
||||||
rc = SQLITE_ERROR; /* IMP: R-42790-23372 */
|
|
||||||
@@ -135607,6 +135623,9 @@
|
|
||||||
#if defined(SQLITE_ENABLE_OVERSIZE_CELL_CHECK)
|
|
||||||
| SQLITE_CellSizeCk
|
|
||||||
#endif
|
|
||||||
+#if defined(SQLITE_ENABLE_FTS3_TOKENIZER)
|
|
||||||
+ | SQLITE_Fts3Tokenizer
|
|
||||||
+#endif
|
|
||||||
;
|
|
||||||
sqlite3HashInit(&db->aCollSeq);
|
|
||||||
#ifndef SQLITE_OMIT_VIRTUALTABLE
|
|
||||||
@@ -146857,6 +146876,18 @@
|
|
||||||
/* #include <string.h> */
|
|
||||||
|
|
||||||
/*
|
|
||||||
+** Return true if the two-argument version of fts3_tokenizer()
|
|
||||||
+** has been activated via a prior call to sqlite3_db_config(db,
|
|
||||||
+** SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER, 1, 0);
|
|
||||||
+*/
|
|
||||||
+static int fts3TokenizerEnabled(sqlite3_context *context){
|
|
||||||
+ sqlite3 *db = sqlite3_context_db_handle(context);
|
|
||||||
+ int isEnabled = 0;
|
|
||||||
+ sqlite3_db_config(db,SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER,-1,&isEnabled);
|
|
||||||
+ return isEnabled;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+/*
|
|
||||||
** Implementation of the SQL scalar function for accessing the underlying
|
|
||||||
** hash table. This function may be called as follows:
|
|
||||||
**
|
|
||||||
@@ -146876,7 +146907,7 @@
|
|
||||||
** is a blob containing the pointer stored as the hash data corresponding
|
|
||||||
** to string <key-name> (after the hash-table is updated, if applicable).
|
|
||||||
*/
|
|
||||||
-static void scalarFunc(
|
|
||||||
+static void fts3TokenizerFunc(
|
|
||||||
sqlite3_context *context,
|
|
||||||
int argc,
|
|
||||||
sqlite3_value **argv
|
|
||||||
@@ -146894,27 +146925,23 @@
|
|
||||||
nName = sqlite3_value_bytes(argv[0])+1;
|
|
||||||
|
|
||||||
if( argc==2 ){
|
|
||||||
-#ifdef SQLITE_ENABLE_FTS3_TOKENIZER
|
|
||||||
- void *pOld;
|
|
||||||
- int n = sqlite3_value_bytes(argv[1]);
|
|
||||||
- if( zName==0 || n!=sizeof(pPtr) ){
|
|
||||||
- sqlite3_result_error(context, "argument type mismatch", -1);
|
|
||||||
- return;
|
|
||||||
- }
|
|
||||||
- pPtr = *(void **)sqlite3_value_blob(argv[1]);
|
|
||||||
- pOld = sqlite3Fts3HashInsert(pHash, (void *)zName, nName, pPtr);
|
|
||||||
- if( pOld==pPtr ){
|
|
||||||
- sqlite3_result_error(context, "out of memory", -1);
|
|
||||||
+ if( fts3TokenizerEnabled(context) ){
|
|
||||||
+ void *pOld;
|
|
||||||
+ int n = sqlite3_value_bytes(argv[1]);
|
|
||||||
+ if( zName==0 || n!=sizeof(pPtr) ){
|
|
||||||
+ sqlite3_result_error(context, "argument type mismatch", -1);
|
|
||||||
+ return;
|
|
||||||
+ }
|
|
||||||
+ pPtr = *(void **)sqlite3_value_blob(argv[1]);
|
|
||||||
+ pOld = sqlite3Fts3HashInsert(pHash, (void *)zName, nName, pPtr);
|
|
||||||
+ if( pOld==pPtr ){
|
|
||||||
+ sqlite3_result_error(context, "out of memory", -1);
|
|
||||||
+ }
|
|
||||||
+ }else{
|
|
||||||
+ sqlite3_result_error(context, "fts3tokenize disabled", -1);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
-#else
|
|
||||||
- sqlite3_result_error(context, "fts3tokenize: "
|
|
||||||
- "disabled - rebuild with -DSQLITE_ENABLE_FTS3_TOKENIZER", -1
|
|
||||||
- );
|
|
||||||
- return;
|
|
||||||
-#endif /* SQLITE_ENABLE_FTS3_TOKENIZER */
|
|
||||||
- }else
|
|
||||||
- {
|
|
||||||
+ }else{
|
|
||||||
if( zName ){
|
|
||||||
pPtr = sqlite3Fts3HashFind(pHash, zName, nName);
|
|
||||||
}
|
|
||||||
@@ -146925,7 +146952,6 @@
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-
|
|
||||||
sqlite3_result_blob(context, (void *)&pPtr, sizeof(pPtr), SQLITE_TRANSIENT);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -147163,7 +147189,6 @@
|
|
||||||
Tcl_DecrRefCount(pRet);
|
|
||||||
}
|
|
||||||
|
|
||||||
-#ifdef SQLITE_ENABLE_FTS3_TOKENIZER
|
|
||||||
static
|
|
||||||
int registerTokenizer(
|
|
||||||
sqlite3 *db,
|
|
||||||
@@ -147185,7 +147210,6 @@
|
|
||||||
|
|
||||||
return sqlite3_finalize(pStmt);
|
|
||||||
}
|
|
||||||
-#endif /* SQLITE_ENABLE_FTS3_TOKENIZER */
|
|
||||||
|
|
||||||
|
|
||||||
static
|
|
||||||
@@ -147258,13 +147282,13 @@
|
|
||||||
assert( 0==strcmp(sqlite3_errmsg(db), "unknown tokenizer: nosuchtokenizer") );
|
|
||||||
|
|
||||||
/* Test the storage function */
|
|
||||||
-#ifdef SQLITE_ENABLE_FTS3_TOKENIZER
|
|
||||||
- rc = registerTokenizer(db, "nosuchtokenizer", p1);
|
|
||||||
- assert( rc==SQLITE_OK );
|
|
||||||
- rc = queryTokenizer(db, "nosuchtokenizer", &p2);
|
|
||||||
- assert( rc==SQLITE_OK );
|
|
||||||
- assert( p2==p1 );
|
|
||||||
-#endif
|
|
||||||
+ if( fts3TokenizerEnabled(context) ){
|
|
||||||
+ rc = registerTokenizer(db, "nosuchtokenizer", p1);
|
|
||||||
+ assert( rc==SQLITE_OK );
|
|
||||||
+ rc = queryTokenizer(db, "nosuchtokenizer", &p2);
|
|
||||||
+ assert( rc==SQLITE_OK );
|
|
||||||
+ assert( p2==p1 );
|
|
||||||
+ }
|
|
||||||
|
|
||||||
sqlite3_result_text(context, "ok", -1, SQLITE_STATIC);
|
|
||||||
}
|
|
||||||
@@ -147280,7 +147304,7 @@
|
|
||||||
** sqlite3Fts3HashInit(pHash, FTS3_HASH_STRING, 1);
|
|
||||||
**
|
|
||||||
** This function adds a scalar function (see header comment above
|
|
||||||
-** scalarFunc() in this file for details) and, if ENABLE_TABLE is
|
|
||||||
+** fts3TokenizerFunc() in this file for details) and, if ENABLE_TABLE is
|
|
||||||
** defined at compilation time, a temporary virtual table (see header
|
|
||||||
** comment above struct HashTableVtab) to the database schema. Both
|
|
||||||
** provide read/write access to the contents of *pHash.
|
|
||||||
@@ -147309,10 +147333,10 @@
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if( SQLITE_OK==rc ){
|
|
||||||
- rc = sqlite3_create_function(db, zName, 1, any, p, scalarFunc, 0, 0);
|
|
||||||
+ rc = sqlite3_create_function(db, zName, 1, any, p, fts3TokenizerFunc, 0, 0);
|
|
||||||
}
|
|
||||||
if( SQLITE_OK==rc ){
|
|
||||||
- rc = sqlite3_create_function(db, zName, 2, any, p, scalarFunc, 0, 0);
|
|
||||||
+ rc = sqlite3_create_function(db, zName, 2, any, p, fts3TokenizerFunc, 0, 0);
|
|
||||||
}
|
|
||||||
#ifdef SQLITE_TEST
|
|
||||||
if( SQLITE_OK==rc ){
|
|
||||||
--- sqlite3.h
|
|
||||||
+++ sqlite3.h
|
|
||||||
@@ -1904,11 +1904,25 @@
|
|
||||||
** following this call. The second parameter may be a NULL pointer, in
|
|
||||||
** which case the trigger setting is not reported back. </dd>
|
|
||||||
**
|
|
||||||
+** <dt>SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER</dt>
|
|
||||||
+** <dd> ^This option is used to enable or disable the two-argument
|
|
||||||
+** version of the [fts3_tokenizer()] function which is part of the
|
|
||||||
+** [FTS3] full-text search engine extension.
|
|
||||||
+** There should be two additional arguments.
|
|
||||||
+** The first argument is an integer which is 0 to disable fts3_tokenizer() or
|
|
||||||
+** positive to enable fts3_tokenizer() or negative to leave the setting
|
|
||||||
+** unchanged.
|
|
||||||
+** The second parameter is a pointer to an integer into which
|
|
||||||
+** is written 0 or 1 to indicate whether fts3_tokenizer is disabled or enabled
|
|
||||||
+** following this call. The second parameter may be a NULL pointer, in
|
|
||||||
+** which case the new setting is not reported back. </dd>
|
|
||||||
+**
|
|
||||||
** </dl>
|
|
||||||
*/
|
|
||||||
-#define SQLITE_DBCONFIG_LOOKASIDE 1001 /* void* int int */
|
|
||||||
-#define SQLITE_DBCONFIG_ENABLE_FKEY 1002 /* int int* */
|
|
||||||
-#define SQLITE_DBCONFIG_ENABLE_TRIGGER 1003 /* int int* */
|
|
||||||
+#define SQLITE_DBCONFIG_LOOKASIDE 1001 /* void* int int */
|
|
||||||
+#define SQLITE_DBCONFIG_ENABLE_FKEY 1002 /* int int* */
|
|
||||||
+#define SQLITE_DBCONFIG_ENABLE_TRIGGER 1003 /* int int* */
|
|
||||||
+#define SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER 1004 /* int int* */
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
@ -1,38 +0,0 @@
|
|||||||
Link executables against libsqlite3.so.
|
|
||||||
Fix building with dlopen() not available.
|
|
||||||
|
|
||||||
--- Makefile.am
|
|
||||||
+++ Makefile.am
|
|
||||||
@@ -1,15 +1,16 @@
|
|
||||||
|
|
||||||
-AM_CFLAGS = @THREADSAFE_FLAGS@ @DYNAMIC_EXTENSION_FLAGS@ @FTS5_FLAGS@ @JSON1_FLAGS@ -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE
|
|
||||||
+AM_CFLAGS = @THREADSAFE_FLAGS@ @DYNAMIC_EXTENSION_FLAGS@ @FTS5_FLAGS@ @JSON1_FLAGS@ -DSQLITE_ENABLE_EXPLAIN_COMMENTS -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE
|
|
||||||
|
|
||||||
lib_LTLIBRARIES = libsqlite3.la
|
|
||||||
libsqlite3_la_SOURCES = sqlite3.c
|
|
||||||
libsqlite3_la_LDFLAGS = -no-undefined -version-info 8:6:8
|
|
||||||
|
|
||||||
bin_PROGRAMS = sqlite3
|
|
||||||
-sqlite3_SOURCES = shell.c sqlite3.c sqlite3.h
|
|
||||||
-sqlite3_LDADD = @READLINE_LIBS@
|
|
||||||
+sqlite3_SOURCES = shell.c sqlite3.h
|
|
||||||
+EXTRA_sqlite3_SOURCES = sqlite3.c
|
|
||||||
+sqlite3_LDADD = @EXTRA_SHELL_OBJ@ @READLINE_LIBS@
|
|
||||||
sqlite3_DEPENDENCIES = @EXTRA_SHELL_OBJ@
|
|
||||||
-sqlite3_CFLAGS = $(AM_CFLAGS) -DSQLITE_ENABLE_EXPLAIN_COMMENTS
|
|
||||||
+sqlite3_CFLAGS = $(AM_CFLAGS)
|
|
||||||
|
|
||||||
include_HEADERS = sqlite3.h sqlite3ext.h
|
|
||||||
|
|
||||||
--- configure.ac
|
|
||||||
+++ configure.ac
|
|
||||||
@@ -89,6 +89,9 @@
|
|
||||||
[], [enable_dynamic_extensions=yes])
|
|
||||||
if test x"$enable_dynamic_extensions" != "xno"; then
|
|
||||||
AC_SEARCH_LIBS(dlopen, dl)
|
|
||||||
+ if test "${ac_cv_search_dlopen}" = "no" ; then
|
|
||||||
+ DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1
|
|
||||||
+ fi
|
|
||||||
else
|
|
||||||
DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1
|
|
||||||
fi
|
|
@ -1,2 +1,2 @@
|
|||||||
DIST jdk-7u80-docs-all.zip 61168809 SHA256 0494bd49bc9cb3cbe3203120ae8b2c8e0aeb1579cb15c0fbd3cd780d19aa200a SHA512 c673c00e55c9a19938c42512cb9c6ae65de9803a1307d11a2043903d87cc36d9ed1f5a1e287040d8570e430cfe55f496354c1242fe6e242f1245f8271394ea1a WHIRLPOOL ad18886c401ec42735665081a0dd5ba3dc7678de0171f3aa8151c2e4ce3392e467be65c602f393da38373e589fa9800ed1afd3601d2cef4e48b06e57f491698e
|
DIST jdk-7u80-docs-all.zip 61168809 SHA256 0494bd49bc9cb3cbe3203120ae8b2c8e0aeb1579cb15c0fbd3cd780d19aa200a SHA512 c673c00e55c9a19938c42512cb9c6ae65de9803a1307d11a2043903d87cc36d9ed1f5a1e287040d8570e430cfe55f496354c1242fe6e242f1245f8271394ea1a WHIRLPOOL ad18886c401ec42735665081a0dd5ba3dc7678de0171f3aa8151c2e4ce3392e467be65c602f393da38373e589fa9800ed1afd3601d2cef4e48b06e57f491698e
|
||||||
DIST jdk-8u92-docs-all.zip 93424002 SHA256 b071f66dba0a5b41f3e9b5168bea6ca49ab9e45604c20a625661dec6d0a7bd1e SHA512 ca7aa37c44897275d54fd89275b7927235e4758a8687f1c091818c1d5eb652c47e6ef9c60a7ca1b9e66184c599452071b0c71de6aadf9614fd76be34331ead1f WHIRLPOOL 662cfacd61e2fa213756344dfeebe165937a6e0ecb9984411b84c915122a576fd2a82e0b62092f10b8ef900d8cf3a19ac49ff03963feeb6e4554255c6ddae775
|
DIST jdk-8u102-docs-all.zip 93442717 SHA256 4fda7a905f4e4d6ec39bf6352e3c95a7ad0d00dca30e212919cbcd96b0c757c6 SHA512 f6c32cf36895711a399f054f25f0a8f58be2bc5db082ade951a0f4a9f9cb2b90158d7477b6dea75c1cb8043e0d900b841e7bfb3656748571be9d151d505c1ba6 WHIRLPOOL 907410052034f765bb2aac2ce2ac6a0c273df40d70fea987012256e3eac194266184abf09a7eaf7d21e8c7cb6ff36ac256b2791169e65715abbef8bf8eb1270d
|
||||||
|
@ -1,366 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit eutils java-vm-2 prefix versionator
|
|
||||||
|
|
||||||
# This URIs need to be updated when bumping!
|
|
||||||
JDK_URI="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html"
|
|
||||||
JCE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html"
|
|
||||||
|
|
||||||
# This is a list of archs supported by this update.
|
|
||||||
# Currently arm comes and goes.
|
|
||||||
AT_AVAILABLE=( amd64 x86 x64-solaris sparc64-solaris x64-macos )
|
|
||||||
|
|
||||||
# Sometimes some or all of the demos are missing, this is to not have to rewrite half
|
|
||||||
# the ebuild when it happens.
|
|
||||||
DEMOS_AVAILABLE=( amd64 x86 x64-solaris sparc64-solaris x64-macos )
|
|
||||||
|
|
||||||
if [[ "$(get_version_component_range 4)" == 0 ]] ; then
|
|
||||||
S_PV="$(get_version_component_range 1-3)"
|
|
||||||
else
|
|
||||||
MY_PV_EXT="u$(get_version_component_range 4)"
|
|
||||||
S_PV="$(get_version_component_range 1-4)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
MY_PV="$(get_version_component_range 2)${MY_PV_EXT}"
|
|
||||||
|
|
||||||
AT_amd64="jdk-${MY_PV}-linux-x64.tar.gz"
|
|
||||||
AT_arm="jdk-${MY_PV}-linux-arm32-vfp-hflt.tar.gz"
|
|
||||||
AT_arm64="jdk-${MY_PV}-linux-arm64-vfp-hflt.tar.gz"
|
|
||||||
AT_x86="jdk-${MY_PV}-linux-i586.tar.gz"
|
|
||||||
AT_x64_solaris="jdk-${MY_PV}-solaris-x64.tar.gz"
|
|
||||||
AT_sparc64_solaris="${AT_sparc_solaris} jdk-${MY_PV}-solaris-sparcv9.tar.gz"
|
|
||||||
AT_x64_macos="jdk-${MY_PV}-macosx-x64.dmg"
|
|
||||||
|
|
||||||
DEMOS_amd64="jdk-${MY_PV}-linux-x64-demos.tar.gz"
|
|
||||||
DEMOS_arm="jdk-${MY_PV}-linux-arm32-vfp-hflt-demos.tar.gz"
|
|
||||||
DEMOS_arm64="jdk-${MY_PV}-linux-arm64-vfp-hflt-demos.tar.gz"
|
|
||||||
DEMOS_x86="jdk-${MY_PV}-linux-i586-demos.tar.gz"
|
|
||||||
DEMOS_x64_solaris="jdk-${MY_PV}-solaris-x64-demos.tar.gz"
|
|
||||||
DEMOS_sparc64_solaris="jdk-${MY_PV}-solaris-sparcv9-demos.tar.gz"
|
|
||||||
DEMOS_x64_macos="jdk-${MY_PV}-macosx-x86_64-demos.zip"
|
|
||||||
|
|
||||||
JCE_DIR="UnlimitedJCEPolicyJDK8"
|
|
||||||
JCE_FILE="jce_policy-8.zip"
|
|
||||||
|
|
||||||
DESCRIPTION="Oracle's Java SE Development Kit"
|
|
||||||
HOMEPAGE="http://www.oracle.com/technetwork/java/javase/"
|
|
||||||
for d in "${AT_AVAILABLE[@]}"; do
|
|
||||||
SRC_URI+=" ${d}? ( $(eval "echo \${$(echo AT_${d/-/_})}")"
|
|
||||||
if has ${d} "${DEMOS_AVAILABLE[@]}"; then
|
|
||||||
SRC_URI+=" examples? ( $(eval "echo \${$(echo DEMOS_${d/-/_})}") )"
|
|
||||||
fi
|
|
||||||
SRC_URI+=" )"
|
|
||||||
done
|
|
||||||
unset d
|
|
||||||
SRC_URI+=" jce? ( ${JCE_FILE} )"
|
|
||||||
|
|
||||||
LICENSE="Oracle-BCLA-JavaSE examples? ( BSD )"
|
|
||||||
SLOT="1.8"
|
|
||||||
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~x64-macos ~sparc64-solaris ~x64-solaris"
|
|
||||||
IUSE="alsa cups derby doc examples +fontconfig headless-awt javafx jce nsplugin pax_kernel selinux source"
|
|
||||||
REQUIRED_USE="javafx? ( alsa fontconfig )"
|
|
||||||
|
|
||||||
RESTRICT="fetch preserve-libs strip"
|
|
||||||
QA_PREBUILT="*"
|
|
||||||
|
|
||||||
# NOTES:
|
|
||||||
#
|
|
||||||
# * cups is dlopened.
|
|
||||||
#
|
|
||||||
# * libpng is also dlopened but only by libsplashscreen, which isn't
|
|
||||||
# important, so we can exclude that.
|
|
||||||
#
|
|
||||||
# * We still need to work out the exact AWT and JavaFX dependencies
|
|
||||||
# under MacOS. It doesn't appear to use many, if any, of the
|
|
||||||
# dependencies below.
|
|
||||||
#
|
|
||||||
RDEPEND="!x64-macos? (
|
|
||||||
!headless-awt? (
|
|
||||||
x11-libs/libX11
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXrender
|
|
||||||
x11-libs/libXtst
|
|
||||||
)
|
|
||||||
javafx? (
|
|
||||||
dev-libs/glib:2
|
|
||||||
dev-libs/libxml2:2
|
|
||||||
dev-libs/libxslt
|
|
||||||
media-libs/freetype:2
|
|
||||||
x11-libs/cairo
|
|
||||||
x11-libs/gtk+:2
|
|
||||||
x11-libs/libX11
|
|
||||||
x11-libs/libXtst
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
x11-libs/pango
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
)
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups )
|
|
||||||
doc? ( dev-java/java-sdk-docs:${SLOT} )
|
|
||||||
fontconfig? ( media-libs/fontconfig:1.0 )
|
|
||||||
!prefix? ( sys-libs/glibc:* )
|
|
||||||
selinux? ( sec-policy/selinux-java )"
|
|
||||||
|
|
||||||
# A PaX header isn't created by scanelf so depend on paxctl to avoid
|
|
||||||
# fallback marking. See bug #427642.
|
|
||||||
DEPEND="app-arch/zip
|
|
||||||
jce? ( app-arch/unzip )
|
|
||||||
examples? ( x64-macos? ( app-arch/unzip ) )
|
|
||||||
pax_kernel? ( sys-apps/paxctl )"
|
|
||||||
|
|
||||||
S="${WORKDIR}/jdk"
|
|
||||||
|
|
||||||
check_tarballs_available() {
|
|
||||||
local uri=$1; shift
|
|
||||||
local dl= unavailable=
|
|
||||||
for dl in "${@}" ; do
|
|
||||||
[[ ! -f "${DISTDIR}/${dl}" ]] && unavailable+=" ${dl}"
|
|
||||||
done
|
|
||||||
|
|
||||||
if [[ -n "${unavailable}" ]] ; then
|
|
||||||
if [[ -z ${_check_tarballs_available_once} ]] ; then
|
|
||||||
einfo
|
|
||||||
einfo "Oracle requires you to download the needed files manually after"
|
|
||||||
einfo "accepting their license through a javascript capable web browser."
|
|
||||||
einfo
|
|
||||||
_check_tarballs_available_once=1
|
|
||||||
fi
|
|
||||||
einfo "Download the following files:"
|
|
||||||
for dl in ${unavailable}; do
|
|
||||||
einfo " ${dl}"
|
|
||||||
done
|
|
||||||
einfo "at '${uri}'"
|
|
||||||
einfo "and move them to '${DISTDIR}'"
|
|
||||||
einfo
|
|
||||||
einfo "If the above mentioned urls do not point to the correct version anymore,"
|
|
||||||
einfo "please download the files from Oracle's java download archive:"
|
|
||||||
einfo
|
|
||||||
einfo " http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html#jdk-${MY_PV}-oth-JPR"
|
|
||||||
einfo
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_nofetch() {
|
|
||||||
local distfiles=( $(eval "echo \${$(echo AT_${ARCH/-/_})}") )
|
|
||||||
if use examples && has ${ARCH} "${DEMOS_AVAILABLE[@]}"; then
|
|
||||||
distfiles+=( $(eval "echo \${$(echo DEMOS_${ARCH/-/_})}") )
|
|
||||||
fi
|
|
||||||
check_tarballs_available "${JDK_URI}" "${distfiles[@]}"
|
|
||||||
|
|
||||||
use jce && check_tarballs_available "${JCE_URI}" "${JCE_FILE}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if use x64-macos ; then
|
|
||||||
pushd "${T}" > /dev/null
|
|
||||||
mkdir dmgmount
|
|
||||||
hdiutil attach "${DISTDIR}"/jdk-${MY_PV}-macosx-x64.dmg \
|
|
||||||
-mountpoint "${T}"/dmgmount
|
|
||||||
local update=$(get_version_component_range 4)
|
|
||||||
[[ ${#update} == 1 ]] && update="0${update}"
|
|
||||||
xar -xf dmgmount/JDK\ $(get_version_component_range 2)\ Update\ ${update}.pkg
|
|
||||||
hdiutil detach "${T}"/dmgmount
|
|
||||||
zcat jdk1${MY_PV%u*}0${update}.pkg/Payload | cpio -idv
|
|
||||||
mv Contents/Home "${WORKDIR}"/jdk${MY_PV}
|
|
||||||
popd > /dev/null
|
|
||||||
use jce && unpack "${JCE_FILE}"
|
|
||||||
else
|
|
||||||
default
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Upstream is changing their versioning scheme every release around 1.8.0.*;
|
|
||||||
# to stop having to change it over and over again, just wildcard match and
|
|
||||||
# live a happy life instead of trying to get this new jdk1.8.0_05 to work.
|
|
||||||
mv "${WORKDIR}"/jdk* "${S}" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
if use jce ; then
|
|
||||||
mv "${WORKDIR}"/${JCE_DIR} jre/lib/security/ || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n ${JAVA_PKG_STRICT} ]] ; then
|
|
||||||
# Mark this binary early to run it now.
|
|
||||||
pax-mark Cm ./bin/javap
|
|
||||||
|
|
||||||
eqawarn "Ensure that this only calls trackJavaUsage(). If not, see bug #559936."
|
|
||||||
eqawarn
|
|
||||||
eqawarn "$(./bin/javap -J-Duser.home=${T} -c sun.misc.PostVMInitHook || die)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Remove the hook that calls Oracle's evil usage tracker. Not just
|
|
||||||
# because it's evil but because it breaks the sandbox during builds
|
|
||||||
# and we can't find any other feasible way to disable it or make it
|
|
||||||
# write somewhere else. See bug #559936 for details.
|
|
||||||
zip -d jre/lib/rt.jar sun/misc/PostVMInitHook.class || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local dest="/opt/${P}"
|
|
||||||
local ddest="${ED}${dest#/}"
|
|
||||||
|
|
||||||
# Create files used as storage for system preferences.
|
|
||||||
mkdir jre/.systemPrefs || die
|
|
||||||
touch jre/.systemPrefs/.system.lock || die
|
|
||||||
touch jre/.systemPrefs/.systemRootModFile || die
|
|
||||||
|
|
||||||
if ! use alsa ; then
|
|
||||||
rm -vf jre/lib/*/libjsoundalsa.* || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use headless-awt ; then
|
|
||||||
rm -vf {,jre/}lib/*/lib*{[jx]awt,splashscreen}* \
|
|
||||||
{,jre/}bin/{javaws,policytool} \
|
|
||||||
bin/appletviewer || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use javafx ; then
|
|
||||||
rm -vf jre/lib/*/lib*{decora,fx,glass,prism}* \
|
|
||||||
jre/lib/*/libgstreamer-lite.* {,jre/}lib/{,ext/}*fx* \
|
|
||||||
bin/*javafx* bin/javapackager || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use nsplugin ; then
|
|
||||||
rm -vf jre/lib/*/libnpjp2.* || die
|
|
||||||
else
|
|
||||||
local nsplugin=$(echo jre/lib/*/libnpjp2.*)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Even though plugins linked against multiple ffmpeg versions are
|
|
||||||
# provided, they generally lag behind what Gentoo has available.
|
|
||||||
rm -vf jre/lib/*/libavplugin* || die
|
|
||||||
|
|
||||||
dodoc COPYRIGHT
|
|
||||||
dodir "${dest}"
|
|
||||||
cp -pPR bin include jre lib man "${ddest}" || die
|
|
||||||
|
|
||||||
if use derby ; then
|
|
||||||
cp -pPR db "${ddest}" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use examples && has ${ARCH} "${DEMOS_AVAILABLE[@]}" ; then
|
|
||||||
cp -pPR demo sample "${ddest}" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use jce ; then
|
|
||||||
dodir "${dest}"/jre/lib/security/strong-jce
|
|
||||||
mv "${ddest}"/jre/lib/security/US_export_policy.jar \
|
|
||||||
"${ddest}"/jre/lib/security/strong-jce || die
|
|
||||||
mv "${ddest}"/jre/lib/security/local_policy.jar \
|
|
||||||
"${ddest}"/jre/lib/security/strong-jce || die
|
|
||||||
dosym "${dest}"/jre/lib/security/${JCE_DIR}/US_export_policy.jar \
|
|
||||||
"${dest}"/jre/lib/security/US_export_policy.jar
|
|
||||||
dosym "${dest}"/jre/lib/security/${JCE_DIR}/local_policy.jar \
|
|
||||||
"${dest}"/jre/lib/security/local_policy.jar
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use nsplugin ; then
|
|
||||||
local nsplugin_link=${nsplugin##*/}
|
|
||||||
nsplugin_link=${nsplugin_link/./-${PN}-${SLOT}.}
|
|
||||||
dosym "${dest}/${nsplugin}" "/usr/$(get_libdir)/nsbrowser/plugins/${nsplugin_link}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use source ; then
|
|
||||||
cp -v src.zip "${ddest}" || die
|
|
||||||
|
|
||||||
if use javafx ; then
|
|
||||||
cp -v javafx-src.zip "${ddest}" || die
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -d jre/lib/desktop ]] ; then
|
|
||||||
# Install desktop file for the Java Control Panel.
|
|
||||||
# Using ${PN}-${SLOT} to prevent file collision with jre and or
|
|
||||||
# other slots. make_desktop_entry can't be used as ${P} would
|
|
||||||
# end up in filename.
|
|
||||||
newicon jre/lib/desktop/icons/hicolor/48x48/apps/sun-jcontrol.png \
|
|
||||||
sun-jcontrol-${PN}-${SLOT}.png || die
|
|
||||||
sed -e "s#Name=.*#Name=Java Control Panel for Oracle JDK ${SLOT}#" \
|
|
||||||
-e "s#Exec=.*#Exec=/opt/${P}/jre/bin/jcontrol#" \
|
|
||||||
-e "s#Icon=.*#Icon=sun-jcontrol-${PN}-${SLOT}#" \
|
|
||||||
-e "s#Application;##" \
|
|
||||||
-e "/Encoding/d" \
|
|
||||||
jre/lib/desktop/applications/sun_java.desktop \
|
|
||||||
> "${T}"/jcontrol-${PN}-${SLOT}.desktop || die
|
|
||||||
domenu "${T}"/jcontrol-${PN}-${SLOT}.desktop
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Prune all fontconfig files so libfontconfig will be used and only install
|
|
||||||
# a Gentoo specific one if fontconfig is disabled.
|
|
||||||
# http://docs.oracle.com/javase/8/docs/technotes/guides/intl/fontconfig.html
|
|
||||||
rm "${ddest}"/jre/lib/fontconfig.*
|
|
||||||
if ! use fontconfig ; then
|
|
||||||
cp "${FILESDIR}"/fontconfig.Gentoo.properties "${T}"/fontconfig.properties || die
|
|
||||||
eprefixify "${T}"/fontconfig.properties
|
|
||||||
insinto "${dest}"/jre/lib/
|
|
||||||
doins "${T}"/fontconfig.properties
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This needs to be done before CDS - #215225
|
|
||||||
java-vm_set-pax-markings "${ddest}"
|
|
||||||
|
|
||||||
# see bug #207282
|
|
||||||
einfo "Creating the Class Data Sharing archives"
|
|
||||||
case ${ARCH} in
|
|
||||||
arm|ia64)
|
|
||||||
${ddest}/bin/java -client -Xshare:dump || die
|
|
||||||
;;
|
|
||||||
x86)
|
|
||||||
${ddest}/bin/java -client -Xshare:dump || die
|
|
||||||
# limit heap size for large memory on x86 #467518
|
|
||||||
# this is a workaround and shouldn't be needed.
|
|
||||||
${ddest}/bin/java -server -Xms64m -Xmx64m -Xshare:dump || die
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
${ddest}/bin/java -server -Xshare:dump || die
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Remove empty dirs we might have copied.
|
|
||||||
find "${D}" -type d -empty -exec rmdir -v {} + || die
|
|
||||||
|
|
||||||
if use x64-macos ; then
|
|
||||||
# Fix miscellaneous install_name issues.
|
|
||||||
pushd "${ddest}"/jre/lib > /dev/null || die
|
|
||||||
local lib needed nlib npath
|
|
||||||
for lib in decora_sse glass prism_{common,es2,sw} ; do
|
|
||||||
lib=lib${lib}.dylib
|
|
||||||
einfo "Fixing self-reference of ${lib}"
|
|
||||||
install_name_tool \
|
|
||||||
-id "${EPREFIX}${dest}/jre/lib/${lib}" \
|
|
||||||
"${lib}"
|
|
||||||
done
|
|
||||||
popd > /dev/null
|
|
||||||
|
|
||||||
# This is still jdk1{5,6}, even on Java 8, so don't change it
|
|
||||||
# until you know different.
|
|
||||||
for nlib in jdk1{5,6} ; do
|
|
||||||
install_name_tool -change \
|
|
||||||
/usr/lib/libgcc_s_ppc64.1.dylib \
|
|
||||||
/usr/lib/libSystem.B.dylib \
|
|
||||||
"${ddest}"/lib/visualvm/profiler/lib/deployed/${nlib}/mac/libprofilerinterface.jnilib
|
|
||||||
install_name_tool -id \
|
|
||||||
"${EPREFIX}${dest}"/lib/visualvm/profiler/lib/deployed/${nlib}/mac/libprofilerinterface.jnilib \
|
|
||||||
"${ddest}"/lib/visualvm/profiler/lib/deployed/${nlib}/mac/libprofilerinterface.jnilib
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
set_java_env
|
|
||||||
java-vm_revdep-mask
|
|
||||||
java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
java-vm-2_pkg_postinst
|
|
||||||
|
|
||||||
if ! use headless-awt && ! use javafx; then
|
|
||||||
ewarn "You have disabled the javafx flag. Some modern desktop Java applications"
|
|
||||||
ewarn "require this and they may fail with a confusing error message."
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,249 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit eutils java-vm-2 prefix versionator
|
|
||||||
|
|
||||||
# This URIs need updating when bumping!
|
|
||||||
JRE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html"
|
|
||||||
JCE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html"
|
|
||||||
|
|
||||||
if [[ "$(get_version_component_range 4)" == 0 ]] ; then
|
|
||||||
S_PV="$(get_version_component_range 1-3)"
|
|
||||||
else
|
|
||||||
MY_PV_EXT="u$(get_version_component_range 4)"
|
|
||||||
S_PV="$(get_version_component_range 1-4)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
MY_PV="$(get_version_component_range 2)${MY_PV_EXT}"
|
|
||||||
|
|
||||||
AT_amd64="jre-${MY_PV}-linux-x64.tar.gz"
|
|
||||||
AT_x86="jre-${MY_PV}-linux-i586.tar.gz"
|
|
||||||
|
|
||||||
JCE_DIR="UnlimitedJCEPolicyJDK8"
|
|
||||||
JCE_FILE="jce_policy-8.zip"
|
|
||||||
|
|
||||||
DESCRIPTION="Oracle's Java SE Runtime Environment"
|
|
||||||
HOMEPAGE="http://www.oracle.com/technetwork/java/javase/"
|
|
||||||
SRC_URI="
|
|
||||||
amd64? ( ${AT_amd64} )
|
|
||||||
x86? ( ${AT_x86} )
|
|
||||||
jce? ( ${JCE_FILE} )"
|
|
||||||
|
|
||||||
LICENSE="Oracle-BCLA-JavaSE"
|
|
||||||
SLOT="1.8"
|
|
||||||
KEYWORDS="amd64 x86"
|
|
||||||
IUSE="alsa cups +fontconfig headless-awt javafx jce nsplugin pax_kernel selinux"
|
|
||||||
|
|
||||||
RESTRICT="fetch preserve-libs strip"
|
|
||||||
QA_PREBUILT="*"
|
|
||||||
|
|
||||||
# NOTES:
|
|
||||||
#
|
|
||||||
# * cups is dlopened.
|
|
||||||
#
|
|
||||||
# * libpng is also dlopened but only by libsplashscreen, which isn't
|
|
||||||
# important, so we can exclude that.
|
|
||||||
#
|
|
||||||
# * We still need to work out the exact AWT and JavaFX dependencies
|
|
||||||
# under MacOS. It doesn't appear to use many, if any, of the
|
|
||||||
# dependencies below.
|
|
||||||
#
|
|
||||||
RDEPEND="!x64-macos? (
|
|
||||||
!headless-awt? (
|
|
||||||
x11-libs/libX11
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXrender
|
|
||||||
x11-libs/libXtst
|
|
||||||
)
|
|
||||||
javafx? (
|
|
||||||
dev-libs/glib:2
|
|
||||||
dev-libs/libxml2:2
|
|
||||||
dev-libs/libxslt
|
|
||||||
media-libs/freetype:2
|
|
||||||
x11-libs/cairo
|
|
||||||
x11-libs/gtk+:2
|
|
||||||
x11-libs/libX11
|
|
||||||
x11-libs/libXtst
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
x11-libs/pango
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
)
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups )
|
|
||||||
fontconfig? ( media-libs/fontconfig:1.0 )
|
|
||||||
!prefix? ( sys-libs/glibc:* )
|
|
||||||
selinux? ( sec-policy/selinux-java )"
|
|
||||||
|
|
||||||
# A PaX header isn't created by scanelf so depend on paxctl to avoid
|
|
||||||
# fallback marking. See bug #427642.
|
|
||||||
DEPEND="app-arch/zip
|
|
||||||
jce? ( app-arch/unzip )
|
|
||||||
pax_kernel? ( sys-apps/paxctl )"
|
|
||||||
|
|
||||||
S="${WORKDIR}/jre"
|
|
||||||
|
|
||||||
pkg_nofetch() {
|
|
||||||
local AT_ARCH="AT_${ARCH}"
|
|
||||||
local AT="${!AT_ARCH}"
|
|
||||||
|
|
||||||
einfo "Please download '${AT}' from:"
|
|
||||||
einfo "'${JRE_URI}'"
|
|
||||||
einfo "and move it to '${DISTDIR}'"
|
|
||||||
|
|
||||||
if use jce; then
|
|
||||||
einfo "Also download '${JCE_FILE}' from:"
|
|
||||||
einfo "'${JCE_URI}'"
|
|
||||||
einfo "and move it to '${DISTDIR}'"
|
|
||||||
fi
|
|
||||||
|
|
||||||
einfo
|
|
||||||
einfo "If the above mentioned urls do not point to the correct version anymore,"
|
|
||||||
einfo "please download the files from Oracle's java download archive:"
|
|
||||||
einfo
|
|
||||||
einfo " http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html#jre-${MY_PV}-oth-JPR"
|
|
||||||
einfo
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
default
|
|
||||||
|
|
||||||
# Upstream is changing their versioning scheme every release around 1.8.0.*;
|
|
||||||
# to stop having to change it over and over again, just wildcard match and
|
|
||||||
# live a happy life instead of trying to get this new jre1.8.0_05 to work.
|
|
||||||
mv "${WORKDIR}"/jre* "${S}" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
if use jce ; then
|
|
||||||
mv "${WORKDIR}"/${JCE_DIR} lib/security/ || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Remove the hook that calls Oracle's evil usage tracker. Not just
|
|
||||||
# because it's evil but because it breaks the sandbox during builds
|
|
||||||
# and we can't find any other feasible way to disable it or make it
|
|
||||||
# write somewhere else. See bug #559936 for details.
|
|
||||||
zip -d lib/rt.jar sun/misc/PostVMInitHook.class || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local dest="/opt/${P}"
|
|
||||||
local ddest="${ED}${dest#/}"
|
|
||||||
|
|
||||||
# Create files used as storage for system preferences.
|
|
||||||
mkdir .systemPrefs || die
|
|
||||||
touch .systemPrefs/.system.lock || die
|
|
||||||
touch .systemPrefs/.systemRootModFile || die
|
|
||||||
|
|
||||||
if ! use alsa ; then
|
|
||||||
rm -vf lib/*/libjsoundalsa.* || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use headless-awt ; then
|
|
||||||
rm -vf lib/*/lib*{[jx]awt,splashscreen}* \
|
|
||||||
bin/{javaws,policytool} || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use javafx ; then
|
|
||||||
rm -vf lib/*/lib*{decora,fx,glass,prism}* \
|
|
||||||
lib/*/libgstreamer-lite.* lib/{,ext/}*fx* || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use nsplugin ; then
|
|
||||||
rm -vf lib/*/libnpjp2.* || die
|
|
||||||
else
|
|
||||||
local nsplugin=$(echo lib/*/libnpjp2.*)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Even though plugins linked against multiple ffmpeg versions are
|
|
||||||
# provided, they generally lag behind what Gentoo has available.
|
|
||||||
rm -vf lib/*/libavplugin* || die
|
|
||||||
|
|
||||||
dodoc COPYRIGHT
|
|
||||||
dodir "${dest}"
|
|
||||||
cp -pPR bin lib man "${ddest}" || die
|
|
||||||
|
|
||||||
if use jce ; then
|
|
||||||
dodir ${dest}/lib/security/strong-jce
|
|
||||||
mv "${ddest}"/lib/security/US_export_policy.jar \
|
|
||||||
"${ddest}"/lib/security/strong-jce || die
|
|
||||||
mv "${ddest}"/lib/security/local_policy.jar \
|
|
||||||
"${ddest}"/lib/security/strong-jce || die
|
|
||||||
dosym "${dest}"/lib/security/${JCE_DIR}/US_export_policy.jar \
|
|
||||||
"${dest}"/lib/security/US_export_policy.jar
|
|
||||||
dosym "${dest}"/lib/security/${JCE_DIR}/local_policy.jar \
|
|
||||||
"${dest}"/lib/security/local_policy.jar
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use nsplugin ; then
|
|
||||||
local nsplugin_link=${nsplugin##*/}
|
|
||||||
nsplugin_link=${nsplugin_link/./-${PN}-${SLOT}.}
|
|
||||||
dosym "${dest}/${nsplugin}" "/usr/$(get_libdir)/nsbrowser/plugins/${nsplugin_link}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Install desktop file for the Java Control Panel.
|
|
||||||
# Using ${PN}-${SLOT} to prevent file collision with jre and or other slots.
|
|
||||||
# make_desktop_entry can't be used as ${P} would end up in filename.
|
|
||||||
newicon lib/desktop/icons/hicolor/48x48/apps/sun-jcontrol.png \
|
|
||||||
sun-jcontrol-${PN}-${SLOT}.png || die
|
|
||||||
sed -e "s#Name=.*#Name=Java Control Panel for Oracle JRE ${SLOT}#" \
|
|
||||||
-e "s#Exec=.*#Exec=/opt/${P}/bin/jcontrol#" \
|
|
||||||
-e "s#Icon=.*#Icon=sun-jcontrol-${PN}-${SLOT}#" \
|
|
||||||
-e "s#Application;##" \
|
|
||||||
-e "/Encoding/d" \
|
|
||||||
lib/desktop/applications/sun_java.desktop > \
|
|
||||||
"${T}"/jcontrol-${PN}-${SLOT}.desktop || die
|
|
||||||
domenu "${T}"/jcontrol-${PN}-${SLOT}.desktop
|
|
||||||
|
|
||||||
# Prune all fontconfig files so libfontconfig will be used and only install
|
|
||||||
# a Gentoo specific one if fontconfig is disabled.
|
|
||||||
# http://docs.oracle.com/javase/8/docs/technotes/guides/intl/fontconfig.html
|
|
||||||
rm "${ddest}"/lib/fontconfig.* || die
|
|
||||||
if ! use fontconfig ; then
|
|
||||||
cp "${FILESDIR}"/fontconfig.Gentoo.properties "${T}"/fontconfig.properties || die
|
|
||||||
eprefixify "${T}"/fontconfig.properties
|
|
||||||
insinto "${dest}"/lib/
|
|
||||||
doins "${T}"/fontconfig.properties
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This needs to be done before CDS - #215225
|
|
||||||
java-vm_set-pax-markings "${ddest}"
|
|
||||||
|
|
||||||
# see bug #207282
|
|
||||||
einfo "Creating the Class Data Sharing archives"
|
|
||||||
case ${ARCH} in
|
|
||||||
arm|ia64)
|
|
||||||
${ddest}/bin/java -client -Xshare:dump || die
|
|
||||||
;;
|
|
||||||
x86)
|
|
||||||
${ddest}/bin/java -client -Xshare:dump || die
|
|
||||||
# limit heap size for large memory on x86 #467518
|
|
||||||
# this is a workaround and shouldn't be needed.
|
|
||||||
${ddest}/bin/java -server -Xms64m -Xmx64m -Xshare:dump || die
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
${ddest}/bin/java -server -Xshare:dump || die
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Remove empty dirs we might have copied.
|
|
||||||
find "${D}" -type d -empty -exec rmdir -v {} + || die
|
|
||||||
|
|
||||||
set_java_env
|
|
||||||
java-vm_revdep-mask
|
|
||||||
java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
java-vm-2_pkg_postinst
|
|
||||||
|
|
||||||
if ! use headless-awt && ! use javafx; then
|
|
||||||
ewarn "You have disabled the javafx flag. Some modern desktop Java applications"
|
|
||||||
ewarn "require this and they may fail with a confusing error message."
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
diff --git a/src/runtime/runtime-gdb_test.go b/src/runtime/runtime-gdb_test.go
|
|
||||||
index 6ebc69a..648092a 100644
|
|
||||||
--- a/src/runtime/runtime-gdb_test.go
|
|
||||||
+++ b/src/runtime/runtime-gdb_test.go
|
|
||||||
@@ -87,6 +87,7 @@ func TestGdbPython(t *testing.T) {
|
|
||||||
|
|
||||||
args := []string{"-nx", "-q", "--batch", "-iex",
|
|
||||||
fmt.Sprintf("add-auto-load-safe-path %s/src/runtime", runtime.GOROOT()),
|
|
||||||
+ "-ex", "set startup-with-shell off",
|
|
||||||
"-ex", "info auto-load python-scripts",
|
|
||||||
"-ex", "br main.go:10",
|
|
||||||
"-ex", "run",
|
|
@ -1,12 +0,0 @@
|
|||||||
diff --git a/src/runtime/runtime-gdb_test.go b/src/runtime/runtime-gdb_test.go
|
|
||||||
index 6ebc69a..648092a 100644
|
|
||||||
--- a/src/runtime/runtime-gdb_test.go
|
|
||||||
+++ b/src/runtime/runtime-gdb_test.go
|
|
||||||
@@ -87,6 +87,7 @@ func TestGdbPython(t *testing.T) {
|
|
||||||
|
|
||||||
args := []string{"-nx", "-q", "--batch", "-iex",
|
|
||||||
fmt.Sprintf("add-auto-load-safe-path %s/src/runtime", runtime.GOROOT()),
|
|
||||||
+ "-ex", "set startup-with-shell off",
|
|
||||||
"-ex", "info auto-load python-scripts",
|
|
||||||
"-ex", "br main.go:10",
|
|
||||||
"-ex", "run",
|
|
@ -1,243 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
export CBUILD=${CBUILD:-${CHOST}}
|
|
||||||
export CTARGET=${CTARGET:-${CHOST}}
|
|
||||||
|
|
||||||
MY_PV=${PV/_/}
|
|
||||||
|
|
||||||
inherit toolchain-funcs
|
|
||||||
|
|
||||||
BOOTSTRAP_DIST="https://dev.gentoo.org/~williamh/dist"
|
|
||||||
SRC_URI="
|
|
||||||
kernel_Darwin? (
|
|
||||||
x64-macos? ( ${BOOTSTRAP_DIST}/go-darwin-amd64-bootstrap.tbz )
|
|
||||||
)
|
|
||||||
kernel_FreeBSD? (
|
|
||||||
amd64-fbsd? ( ${BOOTSTRAP_DIST}/go-freebsd-amd64-bootstrap.tbz )
|
|
||||||
x86-fbsd? ( ${BOOTSTRAP_DIST}/go-freebsd-386-bootstrap-1.tbz )
|
|
||||||
)
|
|
||||||
kernel_linux? (
|
|
||||||
amd64? ( ${BOOTSTRAP_DIST}/go-linux-amd64-bootstrap.tbz )
|
|
||||||
arm? ( ${BOOTSTRAP_DIST}/go-linux-arm-bootstrap.tbz )
|
|
||||||
arm64? ( ${BOOTSTRAP_DIST}/go-linux-arm64-bootstrap.tbz )
|
|
||||||
ppc64? ( ${BOOTSTRAP_DIST}/go-linux-ppc64-bootstrap.tbz )
|
|
||||||
x86? ( ${BOOTSTRAP_DIST}/go-linux-386-bootstrap-1.tbz )
|
|
||||||
)
|
|
||||||
kernel_SunOS? (
|
|
||||||
x64-solaris? ( ${BOOTSTRAP_DIST}/go-solaris-amd64-bootstrap.tbz )
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
if [[ ${PV} = 9999 ]]; then
|
|
||||||
EGIT_REPO_URI="git://github.com/golang/go.git"
|
|
||||||
inherit git-r3
|
|
||||||
else
|
|
||||||
SRC_URI+="https://storage.googleapis.com/golang/go${MY_PV}.src.tar.gz"
|
|
||||||
# go-bootstrap-1.4 only supports go on amd64, arm and x86 architectures.
|
|
||||||
# Allowing other bootstrap options would enable arm64 and ppc64 builds.
|
|
||||||
case ${PV} in
|
|
||||||
*9999*|*_rc*) ;;
|
|
||||||
*)
|
|
||||||
KEYWORDS="-* amd64 arm ~arm64 ~ppc64 x86 ~amd64-fbsd ~x86-fbsd ~x64-macos ~x64-solaris"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="A concurrent garbage collected and typesafe programming language"
|
|
||||||
HOMEPAGE="http://www.golang.org"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0/${PV}"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND=""
|
|
||||||
RDEPEND="!<dev-go/go-tools-0_pre20150902"
|
|
||||||
|
|
||||||
# These test data objects have writable/executable stacks.
|
|
||||||
QA_EXECSTACK="usr/lib/go/src/debug/elf/testdata/*.obj"
|
|
||||||
|
|
||||||
# Do not complain about CFLAGS, etc, since Go doesn't use them.
|
|
||||||
QA_FLAGS_IGNORED='.*'
|
|
||||||
|
|
||||||
REQUIRES_EXCLUDE="/usr/lib/go/src/debug/elf/testdata/*"
|
|
||||||
|
|
||||||
# The tools in /usr/lib/go should not cause the multilib-strict check to fail.
|
|
||||||
QA_MULTILIB_PATHS="usr/lib/go/pkg/tool/.*/.*"
|
|
||||||
|
|
||||||
# The go language uses *.a files which are _NOT_ libraries and should not be
|
|
||||||
# stripped. The test data objects should also be left alone and unstripped.
|
|
||||||
STRIP_MASK="/usr/lib/go/pkg/*.a
|
|
||||||
/usr/lib/go/src/debug/elf/testdata/*
|
|
||||||
/usr/lib/go/src/debug/dwarf/testdata/*
|
|
||||||
/usr/lib/go/src/runtime/race/*.syso"
|
|
||||||
|
|
||||||
if [[ ${PV} != 9999 ]]; then
|
|
||||||
S="${WORKDIR}"/go
|
|
||||||
fi
|
|
||||||
|
|
||||||
go_arch()
|
|
||||||
{
|
|
||||||
# By chance most portage arch names match Go
|
|
||||||
local portage_arch=$(tc-arch $@)
|
|
||||||
case "${portage_arch}" in
|
|
||||||
x86) echo 386;;
|
|
||||||
x64-*) echo amd64;;
|
|
||||||
*) echo "${portage_arch}";;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
go_arm()
|
|
||||||
{
|
|
||||||
case "${1:-${CHOST}}" in
|
|
||||||
armv5*) echo 5;;
|
|
||||||
armv6*) echo 6;;
|
|
||||||
armv7*) echo 7;;
|
|
||||||
*)
|
|
||||||
die "unknown GOARM for ${1:-${CHOST}}"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
go_os()
|
|
||||||
{
|
|
||||||
case "${1:-${CHOST}}" in
|
|
||||||
*-linux*) echo linux;;
|
|
||||||
*-darwin*) echo darwin;;
|
|
||||||
*-freebsd*) echo freebsd;;
|
|
||||||
*-netbsd*) echo netbsd;;
|
|
||||||
*-openbsd*) echo openbsd;;
|
|
||||||
*-solaris*) echo solaris;;
|
|
||||||
*-cygwin*|*-interix*|*-winnt*)
|
|
||||||
echo windows
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
die "unknown GOOS for ${1:-${CHOST}}"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
go_tuple()
|
|
||||||
{
|
|
||||||
echo "$(go_os $@)_$(go_arch $@)"
|
|
||||||
}
|
|
||||||
|
|
||||||
go_cross_compile()
|
|
||||||
{
|
|
||||||
[[ $(go_tuple ${CBUILD}) != $(go_tuple) ]]
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend()
|
|
||||||
{
|
|
||||||
# make.bash does not understand cross-compiling a cross-compiler
|
|
||||||
if [[ $(go_tuple) != $(go_tuple ${CTARGET}) ]]; then
|
|
||||||
die "CHOST CTARGET pair unsupported: CHOST=${CHOST} CTARGET=${CTARGET}"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack()
|
|
||||||
{
|
|
||||||
if [[ ${PV} = 9999 ]]; then
|
|
||||||
git-r3_src_unpack
|
|
||||||
fi
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile()
|
|
||||||
{
|
|
||||||
export GOROOT_BOOTSTRAP="${WORKDIR}"/go-$(go_os)-$(go_arch)-bootstrap
|
|
||||||
export GOROOT_FINAL="${EPREFIX}"/usr/lib/go
|
|
||||||
export GOROOT="$(pwd)"
|
|
||||||
export GOBIN="${GOROOT}/bin"
|
|
||||||
|
|
||||||
# Go's build script does not use BUILD/HOST/TARGET consistently. :(
|
|
||||||
export GOHOSTARCH=$(go_arch ${CBUILD})
|
|
||||||
export GOHOSTOS=$(go_os ${CBUILD})
|
|
||||||
export CC=$(tc-getBUILD_CC)
|
|
||||||
|
|
||||||
export GOARCH=$(go_arch)
|
|
||||||
export GOOS=$(go_os)
|
|
||||||
export CC_FOR_TARGET=$(tc-getCC)
|
|
||||||
export CXX_FOR_TARGET=$(tc-getCXX)
|
|
||||||
if [[ ${ARCH} == arm ]]; then
|
|
||||||
export GOARM=$(go_arm)
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd src
|
|
||||||
./make.bash || die "build failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test()
|
|
||||||
{
|
|
||||||
go_cross_compile && return 0
|
|
||||||
|
|
||||||
cd src
|
|
||||||
PATH="${GOBIN}:${PATH}" \
|
|
||||||
./run.bash -no-rebuild || die "tests failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install()
|
|
||||||
{
|
|
||||||
local bin_path f x
|
|
||||||
|
|
||||||
dodir /usr/lib/go
|
|
||||||
insinto /usr/lib/go
|
|
||||||
|
|
||||||
# There is a known issue which requires the source tree to be installed [1].
|
|
||||||
# Once this is fixed, we can consider using the doc use flag to control
|
|
||||||
# installing the doc and src directories.
|
|
||||||
# [1] https://golang.org/issue/2775
|
|
||||||
doins -r bin doc lib pkg src
|
|
||||||
fperms -R +x /usr/lib/go/bin /usr/lib/go/pkg/tool
|
|
||||||
|
|
||||||
cp -a misc "${D}"/usr/lib/go/misc
|
|
||||||
|
|
||||||
if go_cross_compile; then
|
|
||||||
bin_path="bin/$(go_tuple)"
|
|
||||||
else
|
|
||||||
bin_path=bin
|
|
||||||
fi
|
|
||||||
for x in ${bin_path}/*; do
|
|
||||||
f=${x##*/}
|
|
||||||
dosym ../lib/go/${bin_path}/${f} /usr/bin/${f}
|
|
||||||
done
|
|
||||||
dodoc AUTHORS CONTRIBUTORS PATENTS README.md
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst()
|
|
||||||
{
|
|
||||||
has_version '<dev-lang/go-1.4' &&
|
|
||||||
export had_support_files=true ||
|
|
||||||
export had_support_files=false
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst()
|
|
||||||
{
|
|
||||||
# If the go tool sees a package file timestamped older than a dependancy it
|
|
||||||
# will rebuild that file. So, in order to stop go from rebuilding lots of
|
|
||||||
# packages for every build we need to fix the timestamps. The compiler and
|
|
||||||
# linker are also checked - so we need to fix them too.
|
|
||||||
ebegin "fixing timestamps to avoid unnecessary rebuilds"
|
|
||||||
tref="usr/lib/go/pkg/*/runtime.a"
|
|
||||||
find "${EROOT}"usr/lib/go -type f \
|
|
||||||
-exec touch -r "${EROOT}"${tref} {} \;
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
if [[ ${PV} != 9999 && -n ${REPLACING_VERSIONS} &&
|
|
||||||
${REPLACING_VERSIONS} != ${PV} ]]; then
|
|
||||||
elog "Release notes are located at http://golang.org/doc/go${PV}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if $had_support_files; then
|
|
||||||
ewarn
|
|
||||||
ewarn "All editor support, IDE support, shell completion"
|
|
||||||
ewarn "support, etc has been removed from the go package"
|
|
||||||
ewarn "upstream."
|
|
||||||
ewarn "For more information on which support is available, see"
|
|
||||||
ewarn "the following URL:"
|
|
||||||
ewarn "https://github.com/golang/go/wiki/IDEsAndTextEditorPlugins"
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,257 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
export CBUILD=${CBUILD:-${CHOST}}
|
|
||||||
export CTARGET=${CTARGET:-${CHOST}}
|
|
||||||
|
|
||||||
MY_PV=${PV/_/}
|
|
||||||
|
|
||||||
inherit toolchain-funcs
|
|
||||||
|
|
||||||
BOOTSTRAP_DIST="https://dev.gentoo.org/~williamh/dist"
|
|
||||||
SRC_URI="!gccgo? (
|
|
||||||
kernel_Darwin? (
|
|
||||||
x64-macos? ( ${BOOTSTRAP_DIST}/go-darwin-amd64-bootstrap.tbz )
|
|
||||||
)
|
|
||||||
kernel_FreeBSD? (
|
|
||||||
amd64-fbsd? ( ${BOOTSTRAP_DIST}/go-freebsd-amd64-bootstrap.tbz )
|
|
||||||
x86-fbsd? ( ${BOOTSTRAP_DIST}/go-freebsd-386-bootstrap-1.tbz )
|
|
||||||
)
|
|
||||||
kernel_linux? (
|
|
||||||
amd64? ( ${BOOTSTRAP_DIST}/go-linux-amd64-bootstrap.tbz )
|
|
||||||
arm? ( ${BOOTSTRAP_DIST}/go-linux-arm-bootstrap.tbz )
|
|
||||||
arm64? ( ${BOOTSTRAP_DIST}/go-linux-arm64-bootstrap.tbz )
|
|
||||||
ppc64? ( ${BOOTSTRAP_DIST}/go-linux-ppc64-bootstrap.tbz )
|
|
||||||
x86? ( ${BOOTSTRAP_DIST}/go-linux-386-bootstrap-1.tbz )
|
|
||||||
)
|
|
||||||
kernel_SunOS? (
|
|
||||||
x64-solaris? ( ${BOOTSTRAP_DIST}/go-solaris-amd64-bootstrap.tbz )
|
|
||||||
)
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
if [[ ${PV} = 9999 ]]; then
|
|
||||||
EGIT_REPO_URI="git://github.com/golang/go.git"
|
|
||||||
inherit git-r3
|
|
||||||
else
|
|
||||||
SRC_URI+="https://storage.googleapis.com/golang/go${MY_PV}.src.tar.gz"
|
|
||||||
# go-bootstrap-1.4 only supports go on amd64, arm and x86 architectures.
|
|
||||||
# Allowing other bootstrap options would enable arm64 and ppc64 builds.
|
|
||||||
case ${PV} in
|
|
||||||
*9999*|*_rc*) ;;
|
|
||||||
*)
|
|
||||||
KEYWORDS="-* amd64 ~arm ~arm64 ~ppc64 x86 ~amd64-fbsd ~x86-fbsd ~x64-macos ~x64-solaris"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="A concurrent garbage collected and typesafe programming language"
|
|
||||||
HOMEPAGE="http://www.golang.org"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0/${PV}"
|
|
||||||
IUSE="gccgo"
|
|
||||||
|
|
||||||
DEPEND="gccgo? ( >=sys-devel/gcc-5[go] )"
|
|
||||||
RDEPEND="!<dev-go/go-tools-0_pre20150902"
|
|
||||||
|
|
||||||
# These test data objects have writable/executable stacks.
|
|
||||||
QA_EXECSTACK="usr/lib/go/src/debug/elf/testdata/*.obj"
|
|
||||||
|
|
||||||
# Do not complain about CFLAGS, etc, since Go doesn't use them.
|
|
||||||
QA_FLAGS_IGNORED='.*'
|
|
||||||
|
|
||||||
REQUIRES_EXCLUDE="/usr/lib/go/src/debug/elf/testdata/*"
|
|
||||||
|
|
||||||
# The tools in /usr/lib/go should not cause the multilib-strict check to fail.
|
|
||||||
QA_MULTILIB_PATHS="usr/lib/go/pkg/tool/.*/.*"
|
|
||||||
|
|
||||||
# The go language uses *.a files which are _NOT_ libraries and should not be
|
|
||||||
# stripped. The test data objects should also be left alone and unstripped.
|
|
||||||
STRIP_MASK="/usr/lib/go/pkg/*.a
|
|
||||||
/usr/lib/go/src/debug/elf/testdata/*
|
|
||||||
/usr/lib/go/src/debug/dwarf/testdata/*
|
|
||||||
/usr/lib/go/src/runtime/race/*.syso"
|
|
||||||
|
|
||||||
if [[ ${PV} != 9999 ]]; then
|
|
||||||
S="${WORKDIR}"/go
|
|
||||||
fi
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
# patch for #581072
|
|
||||||
"${FILESDIR}"/${P}-gdb-no-shell.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
go_arch()
|
|
||||||
{
|
|
||||||
# By chance most portage arch names match Go
|
|
||||||
local portage_arch=$(tc-arch $@)
|
|
||||||
case "${portage_arch}" in
|
|
||||||
x86) echo 386;;
|
|
||||||
x64-*) echo amd64;;
|
|
||||||
*) echo "${portage_arch}";;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
go_arm()
|
|
||||||
{
|
|
||||||
case "${1:-${CHOST}}" in
|
|
||||||
armv5*) echo 5;;
|
|
||||||
armv6*) echo 6;;
|
|
||||||
armv7*) echo 7;;
|
|
||||||
*)
|
|
||||||
die "unknown GOARM for ${1:-${CHOST}}"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
go_os()
|
|
||||||
{
|
|
||||||
case "${1:-${CHOST}}" in
|
|
||||||
*-linux*) echo linux;;
|
|
||||||
*-darwin*) echo darwin;;
|
|
||||||
*-freebsd*) echo freebsd;;
|
|
||||||
*-netbsd*) echo netbsd;;
|
|
||||||
*-openbsd*) echo openbsd;;
|
|
||||||
*-solaris*) echo solaris;;
|
|
||||||
*-cygwin*|*-interix*|*-winnt*)
|
|
||||||
echo windows
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
die "unknown GOOS for ${1:-${CHOST}}"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
go_tuple()
|
|
||||||
{
|
|
||||||
echo "$(go_os $@)_$(go_arch $@)"
|
|
||||||
}
|
|
||||||
|
|
||||||
go_cross_compile()
|
|
||||||
{
|
|
||||||
[[ $(go_tuple ${CBUILD}) != $(go_tuple) ]]
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend()
|
|
||||||
{
|
|
||||||
# make.bash does not understand cross-compiling a cross-compiler
|
|
||||||
if [[ $(go_tuple) != $(go_tuple ${CTARGET}) ]]; then
|
|
||||||
die "CHOST CTARGET pair unsupported: CHOST=${CHOST} CTARGET=${CTARGET}"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack()
|
|
||||||
{
|
|
||||||
if [[ ${PV} = 9999 ]]; then
|
|
||||||
git-r3_src_unpack
|
|
||||||
fi
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile()
|
|
||||||
{
|
|
||||||
export GOROOT_BOOTSTRAP="${WORKDIR}"/go-$(go_os)-$(go_arch)-bootstrap
|
|
||||||
if use gccgo; then
|
|
||||||
mkdir -p "${GOROOT_BOOTSTRAP}/bin" || die
|
|
||||||
local go_binary=$(gcc-config --get-bin-path)/go-5
|
|
||||||
[[ -x ${go_binary} ]] || go_binary=$(
|
|
||||||
find "${EPREFIX}"/usr/${CHOST}/gcc-bin/*/go-5 | sort -V | tail -n1)
|
|
||||||
[[ -x ${go_binary} ]] || die "go-5: command not found"
|
|
||||||
ln -s "${go_binary}" "${GOROOT_BOOTSTRAP}/bin/go" || die
|
|
||||||
fi
|
|
||||||
export GOROOT_FINAL="${EPREFIX}"/usr/lib/go
|
|
||||||
export GOROOT="$(pwd)"
|
|
||||||
export GOBIN="${GOROOT}/bin"
|
|
||||||
|
|
||||||
# Go's build script does not use BUILD/HOST/TARGET consistently. :(
|
|
||||||
export GOHOSTARCH=$(go_arch ${CBUILD})
|
|
||||||
export GOHOSTOS=$(go_os ${CBUILD})
|
|
||||||
export CC=$(tc-getBUILD_CC)
|
|
||||||
|
|
||||||
export GOARCH=$(go_arch)
|
|
||||||
export GOOS=$(go_os)
|
|
||||||
export CC_FOR_TARGET=$(tc-getCC)
|
|
||||||
export CXX_FOR_TARGET=$(tc-getCXX)
|
|
||||||
if [[ ${ARCH} == arm ]]; then
|
|
||||||
export GOARM=$(go_arm)
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd src
|
|
||||||
./make.bash || die "build failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test()
|
|
||||||
{
|
|
||||||
go_cross_compile && return 0
|
|
||||||
|
|
||||||
cd src
|
|
||||||
PATH="${GOBIN}:${PATH}" \
|
|
||||||
./run.bash -no-rebuild || die "tests failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install()
|
|
||||||
{
|
|
||||||
local bin_path f x
|
|
||||||
|
|
||||||
dodir /usr/lib/go
|
|
||||||
insinto /usr/lib/go
|
|
||||||
|
|
||||||
# There is a known issue which requires the source tree to be installed [1].
|
|
||||||
# Once this is fixed, we can consider using the doc use flag to control
|
|
||||||
# installing the doc and src directories.
|
|
||||||
# [1] https://golang.org/issue/2775
|
|
||||||
doins -r bin doc lib pkg src
|
|
||||||
fperms -R +x /usr/lib/go/bin /usr/lib/go/pkg/tool
|
|
||||||
|
|
||||||
cp -a misc "${D}"/usr/lib/go/misc
|
|
||||||
|
|
||||||
if go_cross_compile; then
|
|
||||||
bin_path="bin/$(go_tuple)"
|
|
||||||
else
|
|
||||||
bin_path=bin
|
|
||||||
fi
|
|
||||||
for x in ${bin_path}/*; do
|
|
||||||
f=${x##*/}
|
|
||||||
dosym ../lib/go/${bin_path}/${f} /usr/bin/${f}
|
|
||||||
done
|
|
||||||
dodoc AUTHORS CONTRIBUTORS PATENTS README.md
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst()
|
|
||||||
{
|
|
||||||
has_version '<dev-lang/go-1.4' &&
|
|
||||||
export had_support_files=true ||
|
|
||||||
export had_support_files=false
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst()
|
|
||||||
{
|
|
||||||
# If the go tool sees a package file timestamped older than a dependancy it
|
|
||||||
# will rebuild that file. So, in order to stop go from rebuilding lots of
|
|
||||||
# packages for every build we need to fix the timestamps. The compiler and
|
|
||||||
# linker are also checked - so we need to fix them too.
|
|
||||||
ebegin "fixing timestamps to avoid unnecessary rebuilds"
|
|
||||||
tref="usr/lib/go/pkg/*/runtime.a"
|
|
||||||
find "${EROOT}"usr/lib/go -type f \
|
|
||||||
-exec touch -r "${EROOT}"${tref} {} \;
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
if [[ ${PV} != 9999 && -n ${REPLACING_VERSIONS} &&
|
|
||||||
${REPLACING_VERSIONS} != ${PV} ]]; then
|
|
||||||
elog "Release notes are located at http://golang.org/doc/go${PV}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if $had_support_files; then
|
|
||||||
ewarn
|
|
||||||
ewarn "All editor support, IDE support, shell completion"
|
|
||||||
ewarn "support, etc has been removed from the go package"
|
|
||||||
ewarn "upstream."
|
|
||||||
ewarn "For more information on which support is available, see"
|
|
||||||
ewarn "the following URL:"
|
|
||||||
ewarn "https://github.com/golang/go/wiki/IDEsAndTextEditorPlugins"
|
|
||||||
fi
|
|
||||||
}
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue