parent
ef3ed62bc7
commit
e020ea9f5d
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,2 +1 @@
|
|||||||
DIST dict-de_de-1901_oldspell_2012-09-29.oxt 4807281 BLAKE2B 39998a25f9361be7ac1b6374178efd213b349fc5965f81a532d833d4f5a32e7fdf4b1c89d6e927a87cb5b93e165491545e8b859ae8ff85e1d261d077d780b0ea SHA512 15afe6157c6a1fbd723610440f98e823217d91fd0accf54975797ca20b3f47d6beb14c2ce118a44d17815c05e6dab923ea1ec3759237c6c4758344d805776cde
|
|
||||||
DIST dict-de_de-1901_oldspell_2016-04-03.oxt 8197279 BLAKE2B 5f930ee3d727ad7e6ce37ca1062a200b09d3a922a446dde201c192842c898e5754b7405cf92dd58f9981bb4445d7223131f30f336a39d1c84001f8a61cd08eca SHA512 af6a353e52505895e4084378d91578956452d7db402a14073e6b2387d7b5377bcf652414bf90e113d976f24e082adf138ba138d54fa321c55bcb2c4d93c83cdc
|
DIST dict-de_de-1901_oldspell_2016-04-03.oxt 8197279 BLAKE2B 5f930ee3d727ad7e6ce37ca1062a200b09d3a922a446dde201c192842c898e5754b7405cf92dd58f9981bb4445d7223131f30f336a39d1c84001f8a61cd08eca SHA512 af6a353e52505895e4084378d91578956452d7db402a14073e6b2387d7b5377bcf652414bf90e113d976f24e082adf138ba138d54fa321c55bcb2c4d93c83cdc
|
||||||
|
@ -1,36 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
MYSPELL_DICT=(
|
|
||||||
"de_DE_1901.aff"
|
|
||||||
"de_DE_1901.dic"
|
|
||||||
)
|
|
||||||
|
|
||||||
MYSPELL_HYPH=(
|
|
||||||
"hyph_de_DE_1901.dic"
|
|
||||||
)
|
|
||||||
|
|
||||||
MYSPELL_THES=(
|
|
||||||
)
|
|
||||||
|
|
||||||
inherit myspell-r2
|
|
||||||
|
|
||||||
DESCRIPTION="German (traditional orthography) dictionaries for myspell/hunspell"
|
|
||||||
HOMEPAGE="http://www.j3e.de/myspell/
|
|
||||||
http://extensions.libreoffice.org/extension-center/german-de-de-1901-old-spelling-dictionaries"
|
|
||||||
SRC_URI="http://extensions.libreoffice.org/extension-center/german-de-de-1901-old-spelling-dictionaries/pscreleasefolder.2011-11-04.1209635399/${PV:0:4}.${PV:4:2}.${PV:6:2}/dict-de_de-1901_oldspell_${PV:0:4}-${PV:4:2}-${PV:6:2}.oxt"
|
|
||||||
|
|
||||||
LICENSE="|| ( GPL-2 GPL-3 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Nicely rename; http://www.iana.org/assignments/language-subtag-registry
|
|
||||||
mv de_DE_OLDSPELL.aff de_DE_1901.aff || die
|
|
||||||
mv de_DE_OLDSPELL.dic de_DE_1901.dic || die
|
|
||||||
mv hyph_de_DE_OLDSPELL.dic hyph_de_DE_1901.dic || die
|
|
||||||
# Remove thesaurus for new spelling to avoid installing its readme file
|
|
||||||
rm th_de_DE_v2* || die
|
|
||||||
}
|
|
Binary file not shown.
@ -1,2 +1,3 @@
|
|||||||
DIST gnucash-docs-3.2.tar.gz 92387447 BLAKE2B dac502975f885b777c1e91a7ea574789947e1dddfd3239c05973ce57fec41a6d78e605ef37aaf721db4aa4d2bc8f2dda7ed76cc4dc97dd49e30618414e262f15 SHA512 a58a583a457377f529223ced083fb64460b3b0c75a423db08c7f9542711be98fd59bd776bf77309ff91d1c46f22a5ae882d8c0a8ec3fc834d7a8028a95028aad
|
DIST gnucash-docs-3.2.tar.gz 92387447 BLAKE2B dac502975f885b777c1e91a7ea574789947e1dddfd3239c05973ce57fec41a6d78e605ef37aaf721db4aa4d2bc8f2dda7ed76cc4dc97dd49e30618414e262f15 SHA512 a58a583a457377f529223ced083fb64460b3b0c75a423db08c7f9542711be98fd59bd776bf77309ff91d1c46f22a5ae882d8c0a8ec3fc834d7a8028a95028aad
|
||||||
DIST gnucash-docs-3.3.tar.gz 92417386 BLAKE2B 200f9b8d3006589eac5f0d66300d658f69f5c55078371c5b416e34784835350de9bd40fc5d85e59116022874294f74e259a034d6ebcaf315b1ea9942b8350c7b SHA512 5887171cbe95f545eb6e647aee2d04a26ab9102643acd8d3e5754000613a7fb08e4470777f7dfbfd0d1ed7609de7a6241cd82f5c7d62f632b2e3751b005bc01e
|
DIST gnucash-docs-3.3.tar.gz 92417386 BLAKE2B 200f9b8d3006589eac5f0d66300d658f69f5c55078371c5b416e34784835350de9bd40fc5d85e59116022874294f74e259a034d6ebcaf315b1ea9942b8350c7b SHA512 5887171cbe95f545eb6e647aee2d04a26ab9102643acd8d3e5754000613a7fb08e4470777f7dfbfd0d1ed7609de7a6241cd82f5c7d62f632b2e3751b005bc01e
|
||||||
|
DIST gnucash-docs-3.4.tar.gz 92762652 BLAKE2B 1aad3f1e7fe5b6ec11b38dc778e8994544d50f9549450b4632e5fcbd370332f05c7c68f9f6bf0e274b654dee6304924d17089b61318e0e4356bf01133ad47508 SHA512 0a64c8fcc88988a08d5b2f7c472356c580dff17b1a2a37b66a6bed790fba9d7bb437955050656656a0be399b2ce1635902f4548f44b62233c1fcd1d75fbb38ec
|
||||||
|
@ -0,0 +1,85 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
PLOCALES="C de it ja pt ru"
|
||||||
|
PLOCALE_BACKUP="C"
|
||||||
|
|
||||||
|
inherit autotools gnome2 l10n
|
||||||
|
|
||||||
|
DESCRIPTION="Documentation package for GnuCash"
|
||||||
|
HOMEPAGE="http://www.gnucash.org/"
|
||||||
|
SRC_URI="https://github.com/Gnucash/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
SLOT="0"
|
||||||
|
LICENSE="GPL-2 FDL-1.1"
|
||||||
|
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||||
|
|
||||||
|
for my_locale in ${PLOCALES}; do
|
||||||
|
IUSE+=" l10n_${my_locale}"
|
||||||
|
done
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
app-text/docbook-xml-dtd
|
||||||
|
app-text/docbook-xsl-stylesheets
|
||||||
|
app-text/rarian
|
||||||
|
dev-libs/libxml2
|
||||||
|
dev-libs/libxslt
|
||||||
|
"
|
||||||
|
|
||||||
|
my_l10n_get_locales() {
|
||||||
|
local l locales
|
||||||
|
for l in ${PLOCALES[@]}; do
|
||||||
|
use "l10n_${l}" && locales+=( $l )
|
||||||
|
done
|
||||||
|
if [[ ${#locales[@]} -gt 0 ]]; then
|
||||||
|
echo ${locales[@]}
|
||||||
|
else
|
||||||
|
echo $PLOCALE_BACKUP
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
:
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local doc_type my_lang
|
||||||
|
|
||||||
|
for doc_type in help guide; do
|
||||||
|
for my_lang in $(my_l10n_get_locales); do
|
||||||
|
case $my_lang in
|
||||||
|
# Both help and guides translated
|
||||||
|
C|de|it|pt) ;;
|
||||||
|
ru|ja) # Only guides translated
|
||||||
|
if [[ ${doc_type} = "help" ]] ; then
|
||||||
|
elog "Help documentation hasn't been translated for $my_lang"
|
||||||
|
elog "Will do English instead."
|
||||||
|
my_lang=C
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
die "Invalid locale: $my_lang"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
cd "${S}/${doc_type}/${my_lang}" || die
|
||||||
|
emake DESTDIR="${D}" install
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
|
cd "${S}" || die
|
||||||
|
einstalldocs
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
gnome2_pkg_postinst
|
||||||
|
optfeature "You need dev-java/fop to generate pdf files." dev-java/fop
|
||||||
|
optfeature "You need gnome-extra/yelp to view the docs." gnome-extra/yelp
|
||||||
|
}
|
Binary file not shown.
@ -0,0 +1,94 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit cmake-utils xdg-utils
|
||||||
|
|
||||||
|
DESCRIPTION="Vim-fork focused on extensibility and agility."
|
||||||
|
HOMEPAGE="https://neovim.io"
|
||||||
|
|
||||||
|
if [[ ${PV} == 9999 ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/neovim/neovim.git"
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/neovim/neovim/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0 vim"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="+clipboard +luajit +nvimpager python remote ruby +tui +jemalloc"
|
||||||
|
|
||||||
|
CDEPEND=">=dev-libs/libuv-1.2.0:0=
|
||||||
|
>=dev-libs/msgpack-1.0.0:0=
|
||||||
|
luajit? ( dev-lang/luajit:2 )
|
||||||
|
!luajit? (
|
||||||
|
dev-lang/lua:=
|
||||||
|
dev-lua/LuaBitOp
|
||||||
|
)
|
||||||
|
tui? (
|
||||||
|
>=dev-libs/libtermkey-0.19
|
||||||
|
>=dev-libs/unibilium-2.0.0:0=
|
||||||
|
)
|
||||||
|
dev-libs/libvterm
|
||||||
|
dev-lua/lpeg[luajit=]
|
||||||
|
dev-lua/mpack[luajit=]
|
||||||
|
jemalloc? ( dev-libs/jemalloc )
|
||||||
|
net-libs/libnsl"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
${CDEPEND}
|
||||||
|
dev-util/gperf
|
||||||
|
virtual/libiconv
|
||||||
|
virtual/libintl"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
${CDEPEND}
|
||||||
|
python? ( dev-python/neovim-python-client )
|
||||||
|
ruby? ( dev-ruby/neovim-ruby-client )
|
||||||
|
remote? ( dev-python/neovim-remote )
|
||||||
|
clipboard? ( || ( x11-misc/xsel x11-misc/xclip ) )"
|
||||||
|
|
||||||
|
CMAKE_BUILD_TYPE=Release
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# use our system vim dir
|
||||||
|
sed -e '/^# define SYS_VIMRC_FILE/s|$VIM|'"${EPREFIX}"'/etc/vim|' \
|
||||||
|
-i src/nvim/globals.h || die
|
||||||
|
|
||||||
|
# add eclass to bash filetypes
|
||||||
|
sed -e 's|*.ebuild|*.ebuild,*.eclass|' -i runtime/filetype.vim || die
|
||||||
|
|
||||||
|
cmake-utils_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DFEAT_TUI=$(usex tui)
|
||||||
|
-DENABLE_JEMALLOC=$(usex jemalloc)
|
||||||
|
-DPREFER_LUA=$(usex luajit no yes)
|
||||||
|
)
|
||||||
|
cmake-utils_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cmake-utils_src_install
|
||||||
|
|
||||||
|
# install a default configuration file
|
||||||
|
insinto /etc/vim
|
||||||
|
doins "${FILESDIR}"/sysinit.vim
|
||||||
|
|
||||||
|
# conditionally install a symlink for nvimpager
|
||||||
|
if use nvimpager; then
|
||||||
|
dosym ../share/nvim/runtime/macros/less.sh /usr/bin/nvimpager
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
xdg_desktop_database_update
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
xdg_desktop_database_update
|
||||||
|
}
|
Binary file not shown.
@ -0,0 +1,56 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
EGO_PN="github.com/containerd/${PN}"
|
||||||
|
|
||||||
|
inherit toolchain-funcs
|
||||||
|
|
||||||
|
if [[ ${PV} == *9999 ]]; then
|
||||||
|
inherit golang-vcs
|
||||||
|
else
|
||||||
|
MY_PV="${PV/_rc/-rc.}"
|
||||||
|
EGIT_COMMIT="v${MY_PV}"
|
||||||
|
CONTAINERD_COMMIT="9754871865f7fe2f4e74d43e2fc7ccd237edcbce"
|
||||||
|
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64"
|
||||||
|
inherit golang-vcs-snapshot
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="A daemon to control runC"
|
||||||
|
HOMEPAGE="https://containerd.tools"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="apparmor +btrfs +cri hardened +seccomp"
|
||||||
|
|
||||||
|
DEPEND="btrfs? ( sys-fs/btrfs-progs )
|
||||||
|
seccomp? ( sys-libs/libseccomp )"
|
||||||
|
RDEPEND=">=app-emulation/runc-1.0.0_rc5
|
||||||
|
seccomp? ( sys-libs/libseccomp )"
|
||||||
|
|
||||||
|
S=${WORKDIR}/${P}/src/${EGO_PN}
|
||||||
|
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
if [[ ${PV} != *9999* ]]; then
|
||||||
|
sed -i -e "s/git describe --match.*$/echo ${PV})/"\
|
||||||
|
-e "s/git rev-parse HEAD.*$/echo $CONTAINERD_COMMIT)/"\
|
||||||
|
-e "s/-s -w//" \
|
||||||
|
Makefile || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local options=( $(usex btrfs "" "no_btrfs") $(usex cri "" "no_cri") $(usex seccomp "seccomp" "") $(usex apparmor "apparmor" "") )
|
||||||
|
export GOPATH="${WORKDIR}/${P}" # ${PWD}/vendor
|
||||||
|
LDFLAGS=$(usex hardened '-extldflags -fno-PIC' '') BUILDTAGS="${options[@]}" emake
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
||||||
|
keepdir /var/lib/containerd
|
||||||
|
dobin bin/containerd{-shim,-stress,} bin/ctr
|
||||||
|
}
|
@ -1,2 +1,3 @@
|
|||||||
DIST vagrant-2.1.5.tar.gz 1238788 BLAKE2B 8e3dfeb4d830fde1984c08b16422c99b51ce455fcc63e1fad0eca7860efccbf2e77edc13537bfa495345e585b559fe5462ae872decce036b45c1f54c453983ea SHA512 544216eb25c06a1ebddbadcc9d2d6a6dd9932e33d2554e3d51dba0e24a339b9afe0b85d1322bdb67c5de3d070aa4c854f1ccc931b23ea80f0625eb4d1f120238
|
DIST vagrant-2.1.5.tar.gz 1238788 BLAKE2B 8e3dfeb4d830fde1984c08b16422c99b51ce455fcc63e1fad0eca7860efccbf2e77edc13537bfa495345e585b559fe5462ae872decce036b45c1f54c453983ea SHA512 544216eb25c06a1ebddbadcc9d2d6a6dd9932e33d2554e3d51dba0e24a339b9afe0b85d1322bdb67c5de3d070aa4c854f1ccc931b23ea80f0625eb4d1f120238
|
||||||
DIST vagrant-2.2.2.tar.gz 1223645 BLAKE2B 595d26a11f27a23a9e66386820dec7c23fbafe079e9e9750e7cbc928cac2e965782abbb062f6b04efd367b56297d040af2b4f4f56d6df06e604f018110e10329 SHA512 70c83fcd896ae3b84fac22c539eb85db9bf08c8f75108d5f2b86841821cf7a885b72565814519b6f2ef3422d84d2f67fc402b983b1a15c1edfd0dc78196cd957
|
DIST vagrant-2.2.2.tar.gz 1223645 BLAKE2B 595d26a11f27a23a9e66386820dec7c23fbafe079e9e9750e7cbc928cac2e965782abbb062f6b04efd367b56297d040af2b4f4f56d6df06e604f018110e10329 SHA512 70c83fcd896ae3b84fac22c539eb85db9bf08c8f75108d5f2b86841821cf7a885b72565814519b6f2ef3422d84d2f67fc402b983b1a15c1edfd0dc78196cd957
|
||||||
|
DIST vagrant-2.2.3.tar.gz 1236158 BLAKE2B 083b153bc723b94aa543e02b275d1864dba5b2d7408266f8fe3813ba19302725aabc25e20e5b4df004055ea1ffa937f16f27307626cec137a253a6dab2b8f972 SHA512 ff3d95968a51a37a397342c013ebcc3bbfe7ff5b76fb35fead92e9a3b770c85f2f4720514aa68878b0b6e4fbd92629832dc1ddf925691529adf0c84c8f44d84c
|
||||||
|
@ -0,0 +1,90 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
USE_RUBY="ruby23 ruby24 ruby25"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
|
||||||
|
RUBY_FAKEGEM_GEMSPEC="vagrant.gemspec"
|
||||||
|
RUBY_FAKEGEM_EXTRAINSTALL="keys plugins templates version.txt"
|
||||||
|
RUBY_FAKEGEM_TASK_DOC=""
|
||||||
|
|
||||||
|
inherit bash-completion-r1 ruby-fakegem
|
||||||
|
|
||||||
|
DESCRIPTION="A tool for building and distributing development environments"
|
||||||
|
HOMEPAGE="https://vagrantup.com/"
|
||||||
|
SRC_URI="https://github.com/hashicorp/vagrant/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE="+virtualbox"
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
RDEPEND="${RDEPEND}
|
||||||
|
app-arch/libarchive
|
||||||
|
net-misc/curl
|
||||||
|
virtualbox? ( || ( app-emulation/virtualbox app-emulation/virtualbox-bin ) )"
|
||||||
|
|
||||||
|
ruby_add_rdepend "
|
||||||
|
>=dev-ruby/bcrypt_pbkdf-1.0.0
|
||||||
|
>=dev-ruby/childprocess-0.6.0
|
||||||
|
>=dev-ruby/ed25519-1.2.4
|
||||||
|
>=dev-ruby/erubis-2.7.0
|
||||||
|
>=dev-ruby/hashicorp-checkpoint-0.1.5
|
||||||
|
>=dev-ruby/i18n-1.1.1:1
|
||||||
|
>=dev-ruby/listen-3.1.5
|
||||||
|
<dev-ruby/log4r-1.1.11
|
||||||
|
<dev-ruby/mime-types-3:*
|
||||||
|
>=dev-ruby/net-ssh-5.1.0:*
|
||||||
|
>=dev-ruby/net-sftp-2.1
|
||||||
|
>=dev-ruby/net-scp-1.2.0
|
||||||
|
dev-ruby/rest-client:2
|
||||||
|
>=dev-ruby/rubyzip-1.2.2
|
||||||
|
>=dev-ruby/vagrant_cloud-2.0.2
|
||||||
|
"
|
||||||
|
|
||||||
|
# upstream specifies rake>=12 but it apparently doesn't need something this
|
||||||
|
# recent. Because vagrant builds fine with rake 10 and because stabilizing rake
|
||||||
|
# is tricky, we specify a lower dependency requirement here. This way, we'll be
|
||||||
|
# able to stabilize vagrant sooner.
|
||||||
|
ruby_add_bdepend "
|
||||||
|
>=dev-ruby/rake-10.5.0
|
||||||
|
"
|
||||||
|
|
||||||
|
all_ruby_prepare() {
|
||||||
|
# remove bundler support
|
||||||
|
sed -i '/[Bb]undler/d' Rakefile || die
|
||||||
|
rm Gemfile || die
|
||||||
|
|
||||||
|
# loosen dependencies
|
||||||
|
sed -e '/hashicorp-checkpoint\|i18n\|listen\|net-ssh\|net-scp\|rake\|childprocess/s/~>/>=/' \
|
||||||
|
-e '/ruby_dep/s/<=/>=/' \
|
||||||
|
-i ${PN}.gemspec || die
|
||||||
|
|
||||||
|
# remove windows-specific gems
|
||||||
|
sed -e '/wdm\|winrm/d' \
|
||||||
|
-i ${PN}.gemspec || die
|
||||||
|
|
||||||
|
# remove bsd-specific gems
|
||||||
|
sed -e '/rb-kqueue/d' \
|
||||||
|
-i ${PN}.gemspec || die
|
||||||
|
|
||||||
|
sed -e "s/@VAGRANT_VERSION@/${PV}/g" "${FILESDIR}/${PN}.in" > "${PN}" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
all_ruby_install() {
|
||||||
|
all_fakegem_install
|
||||||
|
|
||||||
|
newbashcomp contrib/bash/completion.sh ${PN}
|
||||||
|
|
||||||
|
# provide executable similar to upstream:
|
||||||
|
# https://github.com/hashicorp/vagrant-installers/blob/master/substrate/modules/vagrant_installer/templates/vagrant.erb
|
||||||
|
dobin "${PN}"
|
||||||
|
|
||||||
|
# directory for plugins.json
|
||||||
|
keepdir /var/lib/vagrant
|
||||||
|
|
||||||
|
insinto /usr/share/vim/vimfiles/syntax/
|
||||||
|
doins contrib/vim/vagrantfile.vim
|
||||||
|
}
|
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
DIST nginx-lua-prometheus-0.1_pre20170610.tar.gz 10307 BLAKE2B b08fcb126a6d7034c143c7e96709f3f2751d90f60f6b9225f55ed46f7f211ebcf5f1688bd8b2c82286e329dd23e09a5163ad316ba6568755936253e8e55590f1 SHA512 df1022a88e82e388e68146f81e51a53f9b0c1a14a43d58e468d258ac0ca9875c1c88af44c46c91d89dc7fc1fef0ffebdb9163f886d85fde995e61e2cac3b5c81
|
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>williamh@gentoo.org</email>
|
||||||
|
<name>William Hubbs</name>
|
||||||
|
</maintainer>
|
||||||
|
</pkgmetadata>
|
@ -0,0 +1,33 @@
|
|||||||
|
# Copyright 2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
# This is the upstream tag which corresponds to this release.
|
||||||
|
# It needs to be updated with every bump.
|
||||||
|
TAG="0.1-20170610"
|
||||||
|
|
||||||
|
inherit toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="Library that exports Nginx metrics to Prometheus"
|
||||||
|
HOMEPAGE="https://github.com/knyar/nginx-lua-prometheus"
|
||||||
|
SRC_URI="https://github.com/knyar/${PN}/archive/${TAG}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
COMMON_DEPEND=">=dev-lang/lua-5.1:="
|
||||||
|
DEPEND="${COMMON_DEPEND}"
|
||||||
|
RDEPEND="${COMMON_DEPEND}
|
||||||
|
www-servers/nginx[nginx_modules_http_lua]"
|
||||||
|
BDEPEND="${COMMON_DEPEND}
|
||||||
|
virtual/pkgconfig"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${PN}-${TAG}"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)"/${PN}
|
||||||
|
doins prometheus.lua
|
||||||
|
dodoc *.md
|
||||||
|
}
|
Binary file not shown.
@ -1,3 +1,4 @@
|
|||||||
DIST gramps-4.2.5.tar.gz 18694912 BLAKE2B f91bc665ab4a970e7de193ba3bea4250e99b692cb92e76fae4a37cfa2c46280e6a45ff6712c7a68213735b6e7016f2caa3180971976c92aaa7e61d73ad2e3d5a SHA512 20a8ebff7ea2e3a80248830e55d58ebe0b5a350e1ac31efb3f2b900af38c134037bae91a58fb441be54f9fac8226555a3f5771cc358d3a4a92e89af911433b9c
|
DIST gramps-4.2.5.tar.gz 18694912 BLAKE2B f91bc665ab4a970e7de193ba3bea4250e99b692cb92e76fae4a37cfa2c46280e6a45ff6712c7a68213735b6e7016f2caa3180971976c92aaa7e61d73ad2e3d5a SHA512 20a8ebff7ea2e3a80248830e55d58ebe0b5a350e1ac31efb3f2b900af38c134037bae91a58fb441be54f9fac8226555a3f5771cc358d3a4a92e89af911433b9c
|
||||||
DIST gramps-4.2.8.tar.gz 18704769 BLAKE2B 795febcc2c93a0c9b72aceeba1ac4c4f10953c2bf3b23dd8d38f662a231e21967e6f263e14d2344ef2f422e170617b7b80be4fafc2cb20c4a659366836b0e641 SHA512 c814914eb3a650dd5753d83e492d91d5db11b55321f63bd460e4eb8d80a36dd727a3792a203e3061dfaa89fd13549f51809bb83cc65b2a494c1fb8f42dcb4b8f
|
DIST gramps-4.2.8.tar.gz 18704769 BLAKE2B 795febcc2c93a0c9b72aceeba1ac4c4f10953c2bf3b23dd8d38f662a231e21967e6f263e14d2344ef2f422e170617b7b80be4fafc2cb20c4a659366836b0e641 SHA512 c814914eb3a650dd5753d83e492d91d5db11b55321f63bd460e4eb8d80a36dd727a3792a203e3061dfaa89fd13549f51809bb83cc65b2a494c1fb8f42dcb4b8f
|
||||||
DIST gramps-5.0.0.tar.gz 16773759 BLAKE2B 603a73b448fd41e4d491ca681c0177112541ff780566756f26a2bca7614a4699b90006d321e7925dd936a32367ccfd9b4b93d6ce70af5b750de641b17dd9c2d8 SHA512 95d775fc48a8165b14431a76cd9e60a80df5db0256c98d953fd1a270849446748d8630e0b5ff1b823345fcc7992b48a7c9d577c81a28e10ba0a6177f2501b6e3
|
DIST gramps-5.0.0.tar.gz 16773759 BLAKE2B 603a73b448fd41e4d491ca681c0177112541ff780566756f26a2bca7614a4699b90006d321e7925dd936a32367ccfd9b4b93d6ce70af5b750de641b17dd9c2d8 SHA512 95d775fc48a8165b14431a76cd9e60a80df5db0256c98d953fd1a270849446748d8630e0b5ff1b823345fcc7992b48a7c9d577c81a28e10ba0a6177f2501b6e3
|
||||||
|
DIST gramps-5.0.1.tar.gz 16718439 BLAKE2B 75b4a70275f7e6e181ba948df6fe44cbb9221436c2e860db8ef83bcc02b916aa3921ae09fa8ed18876f28551ed10b5047ae1aef0967b48532b54ad97c8af6d8a SHA512 68b905a8e59eedb620329b05bdd4cca842a79f885645140d31b637fc82ec7470892ebf0fd899aeb6a1205473f79e7f13d6c5e05b36da94b9049dcbb78e07aa76
|
||||||
|
@ -0,0 +1,71 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
PYTHON_COMPAT=( python3_{4,5,6} )
|
||||||
|
PYTHON_REQ_USE="sqlite"
|
||||||
|
|
||||||
|
DISTUTILS_SINGLE_IMPL=1
|
||||||
|
inherit distutils-r1 xdg-utils
|
||||||
|
|
||||||
|
DESCRIPTION="Genealogical Research and Analysis Management Programming System"
|
||||||
|
HOMEPAGE="https://gramps-project.org/"
|
||||||
|
SRC_URI="https://github.com/gramps-project/${PN}/archive/v${PV}.tar.gz
|
||||||
|
-> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2+"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="+rcs +reports exif geo postscript spell"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-python/bsddb3[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pygobject-3.12:3[cairo,${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyicu[${PYTHON_USEDEP}]
|
||||||
|
gnome-base/librsvg:2
|
||||||
|
>x11-libs/gtk+-3.14.8:3[introspection]
|
||||||
|
x11-libs/pango[introspection]
|
||||||
|
x11-misc/xdg-utils
|
||||||
|
reports? ( media-gfx/graphviz[postscript?] )
|
||||||
|
exif? ( >=media-libs/gexiv2-0.5[${PYTHON_USEDEP},introspection] )
|
||||||
|
geo? ( >=sci-geosciences/osm-gps-map-1.1.0 )
|
||||||
|
spell? ( app-text/gtkspell:3[introspection] )
|
||||||
|
rcs? ( dev-vcs/rcs )
|
||||||
|
"
|
||||||
|
|
||||||
|
python_prepare_all() {
|
||||||
|
# Install documentation to the proper location. This can't be done
|
||||||
|
# easily with a patch because we substitute in the $PF variable,
|
||||||
|
# and that changes with every revision.
|
||||||
|
sed -i "s:share/doc/gramps:share/doc/${PF}:g" setup.py || die
|
||||||
|
distutils-r1_python_prepare_all
|
||||||
|
}
|
||||||
|
|
||||||
|
python_configure_all() {
|
||||||
|
mydistutilsargs=(
|
||||||
|
--resourcepath=/usr/share
|
||||||
|
--no-compress-manpages
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test_all() {
|
||||||
|
# GRAMPS builds just fine out of tree but it confuses its test suite.
|
||||||
|
# The following might be an ugly hack but at least it lets the tests
|
||||||
|
# run properly until either I or upstream have come up with something
|
||||||
|
# better.
|
||||||
|
rm -rf "${S}/build" && ln -s "${BUILD_DIR}" "${S}"/build || \
|
||||||
|
die "Failed to symlink build directory to source directory"
|
||||||
|
|
||||||
|
esetup.py test
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
xdg_desktop_database_update
|
||||||
|
xdg_mimeinfo_database_update
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
xdg_desktop_database_update
|
||||||
|
xdg_mimeinfo_database_update
|
||||||
|
}
|
Binary file not shown.
@ -1,3 +1,4 @@
|
|||||||
DIST gnucash-3.2.tar.bz2 13383942 BLAKE2B ce4beb9eab290bbc85c4b3bf68b205a8ebb274056bf10ef1721bce48ec18e4df4b488ce885dc767b4f1e951dabcdc2ba702cb5fe239f249ec50c8d2d1d12a434 SHA512 ef74cbf396096a71316e14500a5b4e57670f9e9c0c5d46f3afe051ccbae2e46a5f14edd8dd805dfb61276b934db286d48ae044160699df82689e2718ed2f7573
|
DIST gnucash-3.2.tar.bz2 13383942 BLAKE2B ce4beb9eab290bbc85c4b3bf68b205a8ebb274056bf10ef1721bce48ec18e4df4b488ce885dc767b4f1e951dabcdc2ba702cb5fe239f249ec50c8d2d1d12a434 SHA512 ef74cbf396096a71316e14500a5b4e57670f9e9c0c5d46f3afe051ccbae2e46a5f14edd8dd805dfb61276b934db286d48ae044160699df82689e2718ed2f7573
|
||||||
DIST gnucash-3.3.tar.bz2 13440713 BLAKE2B a308af90d8a8e50eb732d29c7eadac1fb75b63006da5bbaa9044039c43c1c17976c6b6fdb1706a08a527b75b1300df3a8ed469151370097b0308a173a170e41b SHA512 4bf0369ca9b3c91c98a0d916f0befc7e5675a246559a6a72dba6592b64f56f3cbd1885b0711e44e8d9cca290be742812763691ae2f639ea31ec534e52e17b3f9
|
DIST gnucash-3.3.tar.bz2 13440713 BLAKE2B a308af90d8a8e50eb732d29c7eadac1fb75b63006da5bbaa9044039c43c1c17976c6b6fdb1706a08a527b75b1300df3a8ed469151370097b0308a173a170e41b SHA512 4bf0369ca9b3c91c98a0d916f0befc7e5675a246559a6a72dba6592b64f56f3cbd1885b0711e44e8d9cca290be742812763691ae2f639ea31ec534e52e17b3f9
|
||||||
|
DIST gnucash-3.4.tar.bz2 13564432 BLAKE2B 478d8e2e4acbd0725ceaf997a1e62ba3875e9d4a003e8a3e69111a9d29118447fb2da8ef3e5dd5274d83a3adef1ee9f4a153cdfd17cabe69864b53bab8c7e813 SHA512 4cebef0ba70e59a82d3b2b7b0b138ddb22e8866dc761e156ff1f15920145d12923719effef21ad4c65ccd62fbd14a1529cf0bfcaab70c5b33d103761d08062e0
|
||||||
DIST gtest-1.8.0.tar.gz 1281617 BLAKE2B ac052b4d0eb0d8ded03a8c7dff05177818627b8a51f2dbc2c162b2ee2a5d1323539e7d0d02236d9ebb799995e018f0171c2fdaeb4de3bb339548265e50de79e6 SHA512 1dbece324473e53a83a60601b02c92c089f5d314761351974e097b2cf4d24af4296f9eb8653b6b03b1e363d9c5f793897acae1f0c7ac40149216035c4d395d9d
|
DIST gtest-1.8.0.tar.gz 1281617 BLAKE2B ac052b4d0eb0d8ded03a8c7dff05177818627b8a51f2dbc2c162b2ee2a5d1323539e7d0d02236d9ebb799995e018f0171c2fdaeb4de3bb339548265e50de79e6 SHA512 1dbece324473e53a83a60601b02c92c089f5d314761351974e097b2cf4d24af4296f9eb8653b6b03b1e363d9c5f793897acae1f0c7ac40149216035c4d395d9d
|
||||||
|
@ -0,0 +1,315 @@
|
|||||||
|
(use-modules (ice-9 textual-ports))
|
||||||
|
(use-modules (ice-9 popen))
|
||||||
|
(use-modules (gnucash utilities))
|
||||||
|
(use-modules (gnucash gnc-module))
|
||||||
|
(gnc:module-begin-syntax (gnc:module-load "gnucash/app-utils" 0))
|
||||||
|
(use-modules (gnucash engine test test-extras))
|
||||||
|
(use-modules (gnucash report standard-reports))
|
||||||
|
(use-modules (gnucash report business-reports))
|
||||||
|
(use-modules (gnucash report view-column))
|
||||||
|
(use-modules (gnucash report stylesheets))
|
||||||
|
(use-modules (gnucash report taxinvoice))
|
||||||
|
(use-modules (gnucash report report-system))
|
||||||
|
(use-modules (gnucash report report-system test test-extras))
|
||||||
|
(use-modules (srfi srfi-64))
|
||||||
|
(use-modules (srfi srfi-98))
|
||||||
|
(use-modules (gnucash engine test srfi64-extras))
|
||||||
|
(use-modules (sxml simple))
|
||||||
|
(use-modules (sxml xpath))
|
||||||
|
|
||||||
|
;; NOTE
|
||||||
|
;; ----
|
||||||
|
;; SIMPLE stress tests by default
|
||||||
|
;;
|
||||||
|
;; PAIRWISE COMBINATORICS are enabled by setting environment variable COMBINATORICS
|
||||||
|
;; to the fullpath for the compiled jenny from http://burtleburtle.net/bob/math/jenny.html
|
||||||
|
;;
|
||||||
|
;; e.g. COMBINATORICS=/home/user/jenny/jenny ninja check
|
||||||
|
|
||||||
|
(define optionslist '())
|
||||||
|
|
||||||
|
(define (generate-optionslist)
|
||||||
|
(gnc:report-templates-for-each
|
||||||
|
(lambda (report-id template)
|
||||||
|
(let* ((options-generator (gnc:report-template-options-generator template))
|
||||||
|
(name (gnc:report-template-name template))
|
||||||
|
(options (options-generator)))
|
||||||
|
(set! optionslist
|
||||||
|
(cons (list (cons 'report-id report-id)
|
||||||
|
(cons 'report-name (gnc:report-template-name template))
|
||||||
|
(cons 'options (let ((report-options-tested '()))
|
||||||
|
(gnc:options-for-each
|
||||||
|
(lambda (option)
|
||||||
|
(when (memq (gnc:option-type option)
|
||||||
|
'(multichoice boolean))
|
||||||
|
(set! report-options-tested
|
||||||
|
(cons (vector
|
||||||
|
(gnc:option-section option)
|
||||||
|
(gnc:option-name option)
|
||||||
|
(gnc:option-type option)
|
||||||
|
(case (gnc:option-type option)
|
||||||
|
((multichoice) (map (lambda (d) (vector-ref d 0))
|
||||||
|
(gnc:option-data option)))
|
||||||
|
((boolean) (list #t #f))))
|
||||||
|
report-options-tested))))
|
||||||
|
options)
|
||||||
|
report-options-tested)))
|
||||||
|
optionslist))))))
|
||||||
|
|
||||||
|
;; Explicitly set locale to make the report output predictable
|
||||||
|
(setlocale LC_ALL "C")
|
||||||
|
|
||||||
|
(define (run-test)
|
||||||
|
(test-runner-factory gnc:test-runner)
|
||||||
|
(test-begin "stress options")
|
||||||
|
(generate-optionslist)
|
||||||
|
(tests)
|
||||||
|
(test-end "stress options"))
|
||||||
|
|
||||||
|
(define jennypath
|
||||||
|
(get-environment-variable "COMBINATORICS"))
|
||||||
|
|
||||||
|
(define jenny-exists?
|
||||||
|
;; this is a simple test for presence of jenny - will check
|
||||||
|
;; COMBINATORICS env exists, and running it produces exit-code of
|
||||||
|
;; zero, and tests the first few letters of its output.
|
||||||
|
(and (string? jennypath)
|
||||||
|
(zero? (system jennypath))
|
||||||
|
(string=? (string-take (get-string-all (open-input-pipe jennypath)) 6)
|
||||||
|
"jenny:")))
|
||||||
|
|
||||||
|
(define (set-option! options section name value)
|
||||||
|
(let ((option (gnc:lookup-option options section name)))
|
||||||
|
(if option
|
||||||
|
(gnc:option-set-value option value))))
|
||||||
|
|
||||||
|
(define (mnemonic->commodity sym)
|
||||||
|
(gnc-commodity-table-lookup
|
||||||
|
(gnc-commodity-table-get-table (gnc-get-current-book))
|
||||||
|
(gnc-commodity-get-namespace (gnc-default-report-currency))
|
||||||
|
sym))
|
||||||
|
|
||||||
|
(define structure
|
||||||
|
(list "Root" (list (cons 'type ACCT-TYPE-ASSET))
|
||||||
|
(list "Asset"
|
||||||
|
(list "Bank")
|
||||||
|
(list "GBP Bank" (list (cons 'commodity (mnemonic->commodity "GBP"))))
|
||||||
|
(list "Wallet"))
|
||||||
|
(list "Income" (list (cons 'type ACCT-TYPE-INCOME)))
|
||||||
|
(list "Income-GBP" (list (cons 'type ACCT-TYPE-INCOME)
|
||||||
|
(cons 'commodity (mnemonic->commodity "GBP"))))
|
||||||
|
(list "Expenses" (list (cons 'type ACCT-TYPE-EXPENSE)))
|
||||||
|
(list "Liabilities" (list (cons 'type ACCT-TYPE-LIABILITY)))
|
||||||
|
(list "Equity" (list (cons 'type ACCT-TYPE-EQUITY)))
|
||||||
|
))
|
||||||
|
|
||||||
|
(define (simple-stress-test report-name uuid report-options)
|
||||||
|
(let ((options (gnc:make-report-options uuid)))
|
||||||
|
(test-assert (format #f "basic test ~a" report-name)
|
||||||
|
(gnc:options->render uuid options (string-append "stress-" report-name) "test"))
|
||||||
|
(format #t "Testing SIMPLE combinations for:\n~a" report-name)
|
||||||
|
(for-each
|
||||||
|
(lambda (option)
|
||||||
|
(format #t ",~a/~a"
|
||||||
|
(vector-ref option 0)
|
||||||
|
(vector-ref option 1)))
|
||||||
|
report-options)
|
||||||
|
(newline)
|
||||||
|
(for-each
|
||||||
|
(lambda (idx)
|
||||||
|
(display report-name)
|
||||||
|
(for-each
|
||||||
|
(lambda (option)
|
||||||
|
(let* ((section (vector-ref option 0))
|
||||||
|
(name (vector-ref option 1))
|
||||||
|
(value (list-ref (vector-ref option 3)
|
||||||
|
(modulo idx (length (vector-ref option 3))))))
|
||||||
|
(set-option! options section name value)
|
||||||
|
(format #t ",~a"
|
||||||
|
(cond
|
||||||
|
((boolean? value) (if value 't 'f))
|
||||||
|
(else value)))))
|
||||||
|
report-options)
|
||||||
|
(catch #t
|
||||||
|
(lambda ()
|
||||||
|
(gnc:options->render uuid options "stress-test" "test")
|
||||||
|
(display "[pass]\n"))
|
||||||
|
(lambda (k . args)
|
||||||
|
(format #t "[fail]... error: (~s . ~s) options-list are:\n~a"
|
||||||
|
k args
|
||||||
|
(gnc:html-render-options-changed options #t))
|
||||||
|
(test-assert "logging test failure as above..."
|
||||||
|
#f))))
|
||||||
|
(iota
|
||||||
|
(apply max
|
||||||
|
(map (lambda (opt) (length (vector-ref opt 3)))
|
||||||
|
report-options)))
|
||||||
|
)))
|
||||||
|
|
||||||
|
(define (combinatorial-stress-test report-name uuid report-options)
|
||||||
|
(let* ((options (gnc:make-report-options uuid))
|
||||||
|
(render #f))
|
||||||
|
(test-assert (format #f "basic test ~a" report-name)
|
||||||
|
(set! render
|
||||||
|
(gnc:options->render
|
||||||
|
uuid options (string-append "stress-" report-name) "test")))
|
||||||
|
(if render
|
||||||
|
(begin
|
||||||
|
(format #t "Testing n-tuple combinatorics for:\n~a" report-name)
|
||||||
|
(for-each
|
||||||
|
(lambda (option)
|
||||||
|
(format #t ",~a/~a"
|
||||||
|
(vector-ref option 0)
|
||||||
|
(vector-ref option 1)))
|
||||||
|
report-options)
|
||||||
|
(newline)
|
||||||
|
;; generate combinatorics
|
||||||
|
(let* ((option-lengths (map (lambda (report-option)
|
||||||
|
(length (vector-ref report-option 3)))
|
||||||
|
report-options))
|
||||||
|
(jennyargs (string-join (map number->string option-lengths) " "))
|
||||||
|
(n-tuple (min
|
||||||
|
;; the following is the n-tuple
|
||||||
|
2
|
||||||
|
(length report-options)))
|
||||||
|
(cmdline (format #f "~a -n~a ~a"
|
||||||
|
jennypath n-tuple jennyargs))
|
||||||
|
(jennyout (get-string-all (open-input-pipe cmdline)))
|
||||||
|
(test-cases (string-split jennyout #\newline)))
|
||||||
|
(for-each
|
||||||
|
(lambda (case)
|
||||||
|
(unless (string-null? case)
|
||||||
|
(let* ((choices-str (string-filter char-alphabetic? case))
|
||||||
|
(choices-alpha (map char->integer (string->list choices-str)))
|
||||||
|
(choices (map (lambda (n)
|
||||||
|
(- n (if (> n 96) 97 39))) ; a-z -> 0-25, and A-Z -> 26-51
|
||||||
|
choices-alpha)))
|
||||||
|
(let loop ((option-idx (1- (length report-options)))
|
||||||
|
(option-summary '()))
|
||||||
|
(if (negative? option-idx)
|
||||||
|
(catch #t
|
||||||
|
(lambda ()
|
||||||
|
(gnc:options->render uuid options "stress-test" "test")
|
||||||
|
(format #t "[pass] ~a:~a \n"
|
||||||
|
report-name
|
||||||
|
(string-join option-summary ",")))
|
||||||
|
(lambda (k . args)
|
||||||
|
(format #t "[fail]... error (~s . ~s) options-list are:\n~a"
|
||||||
|
k args
|
||||||
|
(gnc:html-render-options-changed options #t))
|
||||||
|
(test-assert "logging test failure as above..."
|
||||||
|
#f)))
|
||||||
|
(let* ((option (list-ref report-options option-idx))
|
||||||
|
(section (vector-ref option 0))
|
||||||
|
(name (vector-ref option 1))
|
||||||
|
(value (list-ref (vector-ref option 3)
|
||||||
|
(list-ref choices option-idx))))
|
||||||
|
(set-option! options section name value)
|
||||||
|
(loop (1- option-idx)
|
||||||
|
(cons (format #f "~a"
|
||||||
|
(cond
|
||||||
|
((boolean? value) (if value 't 'f))
|
||||||
|
(else value)))
|
||||||
|
option-summary))))))))
|
||||||
|
test-cases)))
|
||||||
|
(display "...aborted due to basic test failure"))))
|
||||||
|
|
||||||
|
(define test
|
||||||
|
;; what strategy are we using here? simple stress test (ie tests as
|
||||||
|
;; many times as the maximum number of options) or combinatorial
|
||||||
|
;; tests (using jenny)
|
||||||
|
(if jenny-exists?
|
||||||
|
combinatorial-stress-test
|
||||||
|
simple-stress-test))
|
||||||
|
|
||||||
|
(define (create-test-data)
|
||||||
|
(let* ((env (create-test-env))
|
||||||
|
(account-alist (env-create-account-structure-alist env structure))
|
||||||
|
(bank (cdr (assoc "Bank" account-alist)))
|
||||||
|
(gbp-bank (cdr (assoc "GBP Bank" account-alist)))
|
||||||
|
(wallet (cdr (assoc "Wallet" account-alist)))
|
||||||
|
(income (cdr (assoc "Income" account-alist)))
|
||||||
|
(gbp-income (cdr (assoc "Income-GBP" account-alist)))
|
||||||
|
(expense (cdr (assoc "Expenses" account-alist)))
|
||||||
|
(liability (cdr (assoc "Liabilities" account-alist)))
|
||||||
|
(equity (cdr (assoc "Equity" account-alist))))
|
||||||
|
;; populate datafile with old transactions
|
||||||
|
(env-transfer env 01 01 1970 bank expense 5 #:description "desc-1" #:num "trn1" #:memo "memo-3")
|
||||||
|
(env-transfer env 31 12 1969 income bank 10 #:description "desc-2" #:num "trn2" #:void-reason "void" #:notes "notes3")
|
||||||
|
(env-transfer env 31 12 1969 income bank 29 #:description "desc-3" #:num "trn3"
|
||||||
|
#:reconcile (cons #\c (gnc-dmy2time64 01 03 1970)))
|
||||||
|
(env-transfer env 01 02 1970 bank expense 15 #:description "desc-4" #:num "trn4" #:notes "notes2" #:memo "memo-1")
|
||||||
|
(env-transfer env 10 01 1970 liability expense 10 #:description "desc-5" #:num "trn5" #:void-reason "any")
|
||||||
|
(env-transfer env 10 01 1970 liability expense 11 #:description "desc-6" #:num "trn6" #:notes "notes1")
|
||||||
|
(env-transfer env 10 02 1970 bank liability 8 #:description "desc-7" #:num "trn7" #:notes "notes1" #:memo "memo-2"
|
||||||
|
#:reconcile (cons #\y (gnc-dmy2time64 01 03 1970)))
|
||||||
|
(let ((txn (xaccMallocTransaction (gnc-get-current-book)))
|
||||||
|
(split-1 (xaccMallocSplit (gnc-get-current-book)))
|
||||||
|
(split-2 (xaccMallocSplit (gnc-get-current-book)))
|
||||||
|
(split-3 (xaccMallocSplit (gnc-get-current-book))))
|
||||||
|
(xaccTransBeginEdit txn)
|
||||||
|
(xaccTransSetDescription txn "$100bank -> $80expenses + $20wallet")
|
||||||
|
(xaccTransSetCurrency txn (xaccAccountGetCommodity bank))
|
||||||
|
(xaccTransSetDate txn 14 02 1971)
|
||||||
|
(xaccSplitSetParent split-1 txn)
|
||||||
|
(xaccSplitSetParent split-2 txn)
|
||||||
|
(xaccSplitSetParent split-3 txn)
|
||||||
|
(xaccSplitSetAccount split-1 bank)
|
||||||
|
(xaccSplitSetAccount split-2 expense)
|
||||||
|
(xaccSplitSetAccount split-3 wallet)
|
||||||
|
(xaccSplitSetValue split-1 -100)
|
||||||
|
(xaccSplitSetValue split-2 80)
|
||||||
|
(xaccSplitSetValue split-3 20)
|
||||||
|
(xaccSplitSetAmount split-1 -100)
|
||||||
|
(xaccSplitSetAmount split-2 80)
|
||||||
|
(xaccSplitSetAmount split-3 20)
|
||||||
|
(xaccTransSetNotes txn "multisplit")
|
||||||
|
(xaccTransCommitEdit txn))
|
||||||
|
(let ((closing-txn (env-transfer env 31 12 1977 expense equity 111 #:description "Closing")))
|
||||||
|
(xaccTransSetIsClosingTxn closing-txn #t))
|
||||||
|
(env-transfer-foreign env 15 01 2000 gbp-bank bank 10 14 #:description "GBP 10 to USD 14")
|
||||||
|
(env-transfer-foreign env 15 02 2000 bank gbp-bank 9 6 #:description "USD 9 to GBP 6")
|
||||||
|
(for-each (lambda (m)
|
||||||
|
(env-transfer env 08 (1+ m) 1978 gbp-income gbp-bank 51 #:description "#51 income")
|
||||||
|
(env-transfer env 03 (1+ m) 1978 income bank 103 #:description "$103 income")
|
||||||
|
(env-transfer env 15 (1+ m) 1978 bank expense 22 #:description "$22 expense")
|
||||||
|
(env-transfer env 09 (1+ m) 1978 income bank 109 #:description "$109 income"))
|
||||||
|
(iota 12))
|
||||||
|
(let ((mid (floor (/ (+ (gnc-accounting-period-fiscal-start)
|
||||||
|
(gnc-accounting-period-fiscal-end)) 2))))
|
||||||
|
(env-create-transaction env mid bank income 200))))
|
||||||
|
|
||||||
|
(define (run-tests prefix)
|
||||||
|
(for-each
|
||||||
|
(lambda (option-set)
|
||||||
|
(let ((report-name (assq-ref option-set 'report-name))
|
||||||
|
(report-guid (assq-ref option-set 'report-id))
|
||||||
|
(report-options (assq-ref option-set 'options)))
|
||||||
|
(if (member report-name
|
||||||
|
;; these reports seem to cause problems when running...
|
||||||
|
'(
|
||||||
|
;; eguile-based reports
|
||||||
|
"Tax Invoice"
|
||||||
|
"Receipt"
|
||||||
|
"Australian Tax Invoice"
|
||||||
|
"Balance Sheet (eguile)"
|
||||||
|
|
||||||
|
;; tax-schedule - locale-dependent?
|
||||||
|
"Tax Schedule Report/TXF Export"
|
||||||
|
|
||||||
|
;; unusual reports
|
||||||
|
"Welcome to GnuCash"
|
||||||
|
"Hello, World"
|
||||||
|
"Multicolumn View"
|
||||||
|
"General Journal"
|
||||||
|
))
|
||||||
|
(format #t "\nSkipping ~a ~a...\n" report-name prefix)
|
||||||
|
(begin
|
||||||
|
(format #t "\nTesting ~a ~a...\n" report-name prefix)
|
||||||
|
(test report-name report-guid report-options)))))
|
||||||
|
optionslist))
|
||||||
|
|
||||||
|
(define (tests)
|
||||||
|
(run-tests "with empty book")
|
||||||
|
(create-test-data)
|
||||||
|
(run-tests "on a populated book"))
|
@ -0,0 +1,25 @@
|
|||||||
|
From 95bee405cf5568f5899287ba62058cf894361676 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Christopher Lam <christopher.lck@gmail.com>
|
||||||
|
Date: Wed, 2 Jan 2019 00:00:56 +0800
|
||||||
|
Subject: [PATCH] [test-transaction] fix a test which was hardcoded to 2018.
|
||||||
|
|
||||||
|
This test was hard-coded to pass in 2018. Fix.
|
||||||
|
---
|
||||||
|
gnucash/report/standard-reports/test/test-transaction.scm | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/gnucash/report/standard-reports/test/test-transaction.scm b/gnucash/report/standard-reports/test/test-transaction.scm
|
||||||
|
index 755aba2983..2f428e24e9 100644
|
||||||
|
--- a/gnucash/report/standard-reports/test/test-transaction.scm
|
||||||
|
+++ b/gnucash/report/standard-reports/test/test-transaction.scm
|
||||||
|
@@ -652,8 +652,8 @@
|
||||||
|
(list "Grand Total" "$2,280.00" "$2,280.00")
|
||||||
|
(get-row-col sxml -1 #f))
|
||||||
|
(test-equal "dual amount column, first transaction correct"
|
||||||
|
- (list "01/03/18" "$103 income" "Root.Asset.Bank" "$103.00" "$103.00")
|
||||||
|
- (get-row-col sxml 1 #f)))
|
||||||
|
+ (list "$103 income" "Root.Asset.Bank" "$103.00" "$103.00")
|
||||||
|
+ (cdr (get-row-col sxml 1 #f))))
|
||||||
|
)
|
||||||
|
|
||||||
|
(test-end "display options")
|
@ -0,0 +1,178 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
# google{test,mock} version
|
||||||
|
GV="1.8.0"
|
||||||
|
PYTHON_COMPAT=( python3_{4,5,6} )
|
||||||
|
|
||||||
|
inherit cmake-utils gnome2-utils python-single-r1 xdg-utils
|
||||||
|
|
||||||
|
DESCRIPTION="A personal finance manager"
|
||||||
|
HOMEPAGE="http://www.gnucash.org/"
|
||||||
|
SRC_URI="https://github.com/Gnucash/${PN}/releases/download/${PV}/${P}.tar.bz2
|
||||||
|
https://github.com/google/googletest/archive/release-${GV}.tar.gz -> gtest-${GV}.tar.gz"
|
||||||
|
|
||||||
|
SLOT="0"
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||||
|
|
||||||
|
IUSE="aqbanking chipcard debug doc examples gnome-keyring +gui mysql nls ofx
|
||||||
|
postgres python quotes -register2 sqlite"
|
||||||
|
|
||||||
|
REQUIRED_USE="
|
||||||
|
chipcard? ( aqbanking )
|
||||||
|
python? ( ${PYTHON_REQUIRED_USE} )"
|
||||||
|
|
||||||
|
# libdbi version requirement for sqlite taken from bug #455134
|
||||||
|
#
|
||||||
|
# dev-libs/boost must always be built with nls enabled.
|
||||||
|
# guile[deprecated] because of SCM_LIST*() use
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-libs/glib-2.46.0:2
|
||||||
|
>=dev-libs/libxml2-2.7.0:2
|
||||||
|
>=sys-libs/zlib-1.1.4
|
||||||
|
>=dev-scheme/guile-2.2.0:12=[deprecated,regex]
|
||||||
|
dev-libs/boost:=[icu,nls]
|
||||||
|
dev-libs/icu:=
|
||||||
|
dev-libs/libxslt
|
||||||
|
aqbanking? (
|
||||||
|
>=net-libs/aqbanking-5[gtk,ofx?]
|
||||||
|
sys-libs/gwenhywfar[gtk]
|
||||||
|
chipcard? ( sys-libs/libchipcard )
|
||||||
|
)
|
||||||
|
gnome-keyring? ( >=app-crypt/libsecret-0.18 )
|
||||||
|
gui? (
|
||||||
|
gnome-base/dconf
|
||||||
|
net-libs/webkit-gtk:4=
|
||||||
|
>=x11-libs/gtk+-3.14.0:3
|
||||||
|
)
|
||||||
|
mysql? (
|
||||||
|
dev-db/libdbi
|
||||||
|
dev-db/libdbi-drivers[mysql]
|
||||||
|
)
|
||||||
|
ofx? ( >=dev-libs/libofx-0.9.1 )
|
||||||
|
postgres? (
|
||||||
|
dev-db/libdbi
|
||||||
|
dev-db/libdbi-drivers[postgres]
|
||||||
|
)
|
||||||
|
python? ( ${PYTHON_DEPS} )
|
||||||
|
quotes? (
|
||||||
|
>=dev-perl/Finance-Quote-1.11
|
||||||
|
dev-perl/Date-Manip
|
||||||
|
dev-perl/HTML-TableExtract
|
||||||
|
)
|
||||||
|
sqlite? (
|
||||||
|
>=dev-db/libdbi-0.9.0
|
||||||
|
>=dev-db/libdbi-drivers-0.9.0[sqlite]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
~dev-cpp/gtest-${GV}
|
||||||
|
>=sys-devel/gettext-0.19.6
|
||||||
|
dev-lang/perl
|
||||||
|
dev-perl/XML-Parser
|
||||||
|
sys-devel/libtool
|
||||||
|
virtual/pkgconfig
|
||||||
|
"
|
||||||
|
|
||||||
|
PDEPEND="doc? (
|
||||||
|
~app-doc/gnucash-docs-${PV}
|
||||||
|
gnome-extra/yelp
|
||||||
|
)"
|
||||||
|
|
||||||
|
PATCHES=( "${FILESDIR}"/${PN}-3.2-no-gui.patch
|
||||||
|
# Fixed in 3.5
|
||||||
|
"${FILESDIR}"/${PN}-3.4-test-transaction.patch )
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
use python && python-single-r1_pkg_setup
|
||||||
|
xdg_environment_reset
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
default
|
||||||
|
cp "${FILESDIR}"/gnucash-3.4-test-stress-options.scm \
|
||||||
|
${PN}-${PV}/${PN}/report/standard-reports/test/test-stress-options.scm \
|
||||||
|
|| die "Failed copying scm"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local sql_on_off="OFF"
|
||||||
|
if use mysql || use postgres || use sqlite ; then
|
||||||
|
sql_on_off="ON"
|
||||||
|
fi
|
||||||
|
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DGMOCK_ROOT="${WORKDIR}"/googletest-release-${GV}/googlemock
|
||||||
|
-DGTEST_ROOT="${WORKDIR}"/googletest-release-${GV}/googletest
|
||||||
|
# Disable fallback to guile-2.0
|
||||||
|
-DCMAKE_DISABLE_FIND_PACKAGE_GUILE2=ON
|
||||||
|
-DCOMPILE_GSCHEMAS=OFF
|
||||||
|
-DDISABLE_NLS=$(usex !nls)
|
||||||
|
-DENABLE_REGISTER2=$(usex register2)
|
||||||
|
-DWITH_AQBANKING=$(usex aqbanking)
|
||||||
|
-DWITH_OFX=$(usex ofx)
|
||||||
|
-DWITH_PYTHON=$(usex python)
|
||||||
|
-DWITH_SQL=${sql_on_off}
|
||||||
|
-DWITH_GNUCASH=$(usex gui)
|
||||||
|
)
|
||||||
|
|
||||||
|
cmake-utils_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
if use python ; then
|
||||||
|
cp common/test-core/unittest_support.py \
|
||||||
|
"${BUILD_DIR}"/common/test-core/ || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd "${BUILD_DIR}" || die
|
||||||
|
XDG_DATA_HOME="${T}/$(whoami)" emake check
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cmake-utils_src_install
|
||||||
|
|
||||||
|
rm "${ED%/}"/usr/share/doc/${PF}/README.dependencies || die
|
||||||
|
|
||||||
|
if use examples ; then
|
||||||
|
mv "${ED%/}"/usr/share/doc/gnucash \
|
||||||
|
"${ED%/}"/usr/share/doc/${PF}/examples || die
|
||||||
|
pushd "${ED%/}"/usr/share/doc/${PF}/examples/ > /dev/null || die
|
||||||
|
rm AUTHORS DOCUMENTERS LICENSE NEWS projects.html ChangeLog* \
|
||||||
|
*win32-bin.txt || die
|
||||||
|
popd > /dev/null || die
|
||||||
|
docompress -x /usr/share/doc/${PF}/examples/
|
||||||
|
else
|
||||||
|
rm -r "${ED%/}"/usr/share/doc/gnucash || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
use aqbanking && dodoc doc/README.HBCI
|
||||||
|
use ofx && dodoc doc/README.OFX
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
if use gui ; then
|
||||||
|
gnome2_icon_cache_update
|
||||||
|
gnome2_schemas_update
|
||||||
|
fi
|
||||||
|
xdg_desktop_database_update
|
||||||
|
xdg_mimeinfo_database_update
|
||||||
|
|
||||||
|
ewarn "Backup all financial files or databases before using GnuCash >=2.7.0!"
|
||||||
|
ewarn
|
||||||
|
ewarn "GnuCash 2.7.0 introduced large changes in its file format and database"
|
||||||
|
ewarn "schema that WILL prevent you from reverting back to GnuCash 2.6."
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
if use gui ; then
|
||||||
|
gnome2_icon_cache_update
|
||||||
|
gnome2_schemas_update
|
||||||
|
fi
|
||||||
|
xdg_desktop_database_update
|
||||||
|
xdg_mimeinfo_database_update
|
||||||
|
}
|
@ -1,10 +0,0 @@
|
|||||||
--- libreoffice-5.2.5.1.orig/desktop/unx/source/pagein.c 2017-01-11 16:54:33.000000000 -0800
|
|
||||||
+++ libreoffice-5.2.5.1/desktop/unx/source/pagein.c 2017-02-03 10:22:51.697673613 -0800
|
|
||||||
@@ -26,6 +26,7 @@
|
|
||||||
#include <string.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
+#include <sys/sysmacros.h>
|
|
||||||
|
|
||||||
/* do_pagein */
|
|
||||||
static void do_pagein (const char * filename)
|
|
@ -1,216 +0,0 @@
|
|||||||
Kindly borrowed from Debian.
|
|
||||||
|
|
||||||
14:13 < mst__> _rene_, the toolkit unoapi tests are known to be flaky (in some
|
|
||||||
system dependent way) e.g. on the Win@6 tinderbox it always
|
|
||||||
crashes
|
|
||||||
14:14 < mst__> _rene_, sc.ScAccessible* tests also fail on some systems some of
|
|
||||||
the time
|
|
||||||
|
|
||||||
diff --git a/toolkit/Module_toolkit.mk b/toolkit/Module_toolkit.mk
|
|
||||||
index 25db0b6..14e507c 100644
|
|
||||||
--- a/toolkit/Module_toolkit.mk
|
|
||||||
+++ b/toolkit/Module_toolkit.mk
|
|
||||||
@@ -26,11 +26,11 @@ $(eval $(call gb_Module_add_targets,toolkit,\
|
|
||||||
ifneq ($(OOO_JUNIT_JAR),)
|
|
||||||
$(eval $(call gb_Module_add_subsequentcheck_targets,toolkit,\
|
|
||||||
JunitTest_toolkit_complex \
|
|
||||||
- JunitTest_toolkit_unoapi_1 \
|
|
||||||
- JunitTest_toolkit_unoapi_2 \
|
|
||||||
- JunitTest_toolkit_unoapi_3 \
|
|
||||||
- JunitTest_toolkit_unoapi_4 \
|
|
||||||
))
|
|
||||||
endif
|
|
||||||
+# JunitTest_toolkit_unoapi_1 \
|
|
||||||
+# JunitTest_toolkit_unoapi_2 \
|
|
||||||
+# JunitTest_toolkit_unoapi_3 \
|
|
||||||
+# JunitTest_toolkit_unoapi_4 \
|
|
||||||
|
|
||||||
# vim: set noet sw=4 ts=4:
|
|
||||||
diff --git a/sc/qa/unoapi/sc_1.sce b/sc/qa/unoapi/sc_1.sce
|
|
||||||
index fa1684c..cc8e1a5 100644
|
|
||||||
--- a/sc/qa/unoapi/sc_1.sce
|
|
||||||
+++ b/sc/qa/unoapi/sc_1.sce
|
|
||||||
@@ -24,10 +24,3 @@
|
|
||||||
# i84554 -o sc.AccessibleEditableTextPara_PreviewNote
|
|
||||||
# i88241 -o sc.AccessibleEditableTextPara_HeaderFooter
|
|
||||||
-o sc.AccessibleEditableTextPara_PreviewCell
|
|
||||||
--o sc.ScAccessibleCell
|
|
||||||
-# i91044 -o sc.ScAccessibleCsvCell
|
|
||||||
-# i91044 -o sc.ScAccessibleCsvGrid
|
|
||||||
-# i84641 -o sc.ScAccessibleCsvRuler
|
|
||||||
-# i88330 -o sc.ScAccessibleDocument
|
|
||||||
-# i91045 -o sc.ScAccessibleDocumentPagePreview
|
|
||||||
--o sc.ScAccessiblePageHeader
|
|
||||||
diff --git a/sc/qa/unoapi/sc_2.sce b/sc/qa/unoapi/sc_2.sce
|
|
||||||
index dbfc3e1..d235c5d 100644
|
|
||||||
--- a/sc/qa/unoapi/sc_2.sce
|
|
||||||
+++ b/sc/qa/unoapi/sc_2.sce
|
|
||||||
@@ -15,11 +15,6 @@
|
|
||||||
# except in compliance with the License. You may obtain a copy of
|
|
||||||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
||||||
#
|
|
||||||
-# fdo#FOO -o sc.ScAccessiblePageHeaderArea
|
|
||||||
--o sc.ScAccessiblePreviewCell
|
|
||||||
--o sc.ScAccessiblePreviewHeaderCell
|
|
||||||
--o sc.ScAccessiblePreviewTable
|
|
||||||
-# fdo#45337 -o sc.ScAccessibleSpreadsheet
|
|
||||||
# FIXME_REMOVE_WHEN_RE_BASE_COMPLETE
|
|
||||||
# -o sc.ScAnnotationObj
|
|
||||||
# -o sc.ScAnnotationShapeObj
|
|
||||||
|
|
||||||
12:18 < _rene_> chris_wot: ping?
|
|
||||||
12:18 < chris_wot> heya
|
|
||||||
12:18 < chris_wot> you pinged?
|
|
||||||
12:19 < _rene_> chris_wot: any news on
|
|
||||||
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815292?
|
|
||||||
12:20 < _rene_> (of course the this-night-uploaded rc3 also failed)
|
|
||||||
12:21 < chris_wot> ah, sorry - I've looked at an EMF regression, but I've not
|
|
||||||
gotten any further on that one
|
|
||||||
12:22 < chris_wot> I honestly think that for this one just disable the test for
|
|
||||||
now
|
|
||||||
12:22 < chris_wot> I'll ping the ML
|
|
||||||
|
|
||||||
This seems fixed when opening the original doc.
|
|
||||||
|
|
||||||
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx
|
|
||||||
index 54eed4d..78019bd 100644
|
|
||||||
--- a/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx
|
|
||||||
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx
|
|
||||||
@@ -1128,30 +1128,30 @@ DECLARE_OOXMLEXPORT_TEST(testTDF93675, "no-numlevel-but-indented.odt")
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-DECLARE_OOXMLEXPORT_TEST(testFlipAndRotateCustomShape, "flip_and_rotate.odt")
|
|
||||||
-{
|
|
||||||
- xmlDocPtr pXmlDoc = parseExport("word/document.xml");
|
|
||||||
- if (!pXmlDoc)
|
|
||||||
- return;
|
|
||||||
- // there should be no flipH and flipV attributes in this case
|
|
||||||
- assertXPathNoAttribute(pXmlDoc, "//a:xfrm", "flipH");
|
|
||||||
- assertXPathNoAttribute(pXmlDoc, "//a:xfrm", "flipV");
|
|
||||||
- // check rotation angle
|
|
||||||
- assertXPath(pXmlDoc, "//a:xfrm", "rot", "13500000");
|
|
||||||
- // check the first few coordinates of the polygon
|
|
||||||
-#ifndef MACOSX /* Retina-related rounding roundtrip error
|
|
||||||
- * hard to smooth out due to the use of string compare
|
|
||||||
- * instead of number */
|
|
||||||
-#if !defined(_WIN32)
|
|
||||||
- assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[1]/a:pt", "x", "2351");
|
|
||||||
- assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[1]/a:pt", "y", "3171");
|
|
||||||
- assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[2]/a:pt", "x", "1695");
|
|
||||||
- assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[2]/a:pt", "y", "3171");
|
|
||||||
- assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[3]/a:pt", "x", "1695");
|
|
||||||
- assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[3]/a:pt", "y", "1701");
|
|
||||||
-#endif
|
|
||||||
-#endif
|
|
||||||
-}
|
|
||||||
+//DECLARE_OOXMLEXPORT_TEST(testFlipAndRotateCustomShape, "flip_and_rotate.odt")
|
|
||||||
+//{
|
|
||||||
+// xmlDocPtr pXmlDoc = parseExport("word/document.xml");
|
|
||||||
+// if (!pXmlDoc)
|
|
||||||
+// return;
|
|
||||||
+// // there should be no flipH and flipV attributes in this case
|
|
||||||
+// assertXPathNoAttribute(pXmlDoc, "//a:xfrm", "flipH");
|
|
||||||
+// assertXPathNoAttribute(pXmlDoc, "//a:xfrm", "flipV");
|
|
||||||
+// // check rotation angle
|
|
||||||
+// assertXPath(pXmlDoc, "//a:xfrm", "rot", "13500000");
|
|
||||||
+// // check the first few coordinates of the polygon
|
|
||||||
+//#ifndef MACOSX /* Retina-related rounding roundtrip error
|
|
||||||
+// * hard to smooth out due to the use of string compare
|
|
||||||
+// * instead of number */
|
|
||||||
+//#if !defined(_WIN32)
|
|
||||||
+// assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[1]/a:pt", "x", "2351");
|
|
||||||
+// assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[1]/a:pt", "y", "3171");
|
|
||||||
+// assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[2]/a:pt", "x", "1695");
|
|
||||||
+// assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[2]/a:pt", "y", "3171");
|
|
||||||
+// assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[3]/a:pt", "x", "1695");
|
|
||||||
+// assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[3]/a:pt", "y", "1701");
|
|
||||||
+//#endif
|
|
||||||
+//#endif
|
|
||||||
+//}
|
|
||||||
|
|
||||||
|
|
||||||
CPPUNIT_PLUGIN_IMPLEMENT();
|
|
||||||
diff --git a/svx/qa/unoapi/svx.sce b/svx/qa/unoapi/svx.sce
|
|
||||||
index 1c3925f..a16f001 100644
|
|
||||||
--- a/svx/qa/unoapi/svx.sce
|
|
||||||
+++ b/svx/qa/unoapi/svx.sce
|
|
||||||
@@ -25,7 +25,7 @@
|
|
||||||
#i111216 -o svx.AccessiblePresentationGraphicShape
|
|
||||||
#i111216 -o svx.AccessiblePresentationOLEShape
|
|
||||||
#i85539 -o svx.AccessiblePresentationShape
|
|
||||||
--o svx.AccessibleShape
|
|
||||||
+#-o svx.AccessibleShape
|
|
||||||
#i90294 -o svx.GraphicExporter
|
|
||||||
-o svx.SvxDrawPage
|
|
||||||
#i85501 -o svx.SvxGraphCtrlAccessibleContext
|
|
||||||
|
|
||||||
19:26 <@x1sc0> _rene_, since that test is using exact dimensions, it seems it
|
|
||||||
fails on your side probably because the paragraph style is
|
|
||||||
different. 1. I will change the test to avoid the exact
|
|
||||||
dimensions. 2. meantime you can skip that test:
|
|
||||||
https://cgit.freedesktop.org/libreoffice/core/commit/?id=e05f16e6bf36efbaab16dd2ed1427a750ce7cafd
|
|
||||||
19:26 < IZBot> core - disable UI test that does exact comparison
|
|
||||||
19:27 < _rene_> mmh, ok, saw that but that was for a different test, so.. :)
|
|
||||||
19:27 -!- jacobo [~jaragunde@fanzine.igalia.com] has quit [Quit: Leaving.]
|
|
||||||
19:27 < _rene_> thanks, will do
|
|
||||||
|
|
||||||
diff --git a/uitest/writer_tests/tdf79236.py b/uitest/writer_tests/tdf79236.py
|
|
||||||
index 8585e48d8c64..704f42c009a1 100644
|
|
||||||
--- a/uitest/writer_tests/tdf79236.py
|
|
||||||
+++ b/uitest/writer_tests/tdf79236.py
|
|
||||||
@@ -8,8 +8,11 @@ from uitest.framework import UITestCase
|
|
||||||
import time
|
|
||||||
from uitest.uihelper.common import get_state_as_dict, type_text
|
|
||||||
|
|
||||||
+import unittest
|
|
||||||
+
|
|
||||||
class tdf79236(UITestCase):
|
|
||||||
|
|
||||||
+ @unittest.skip("Currently broken")
|
|
||||||
def test_paragraph(self):
|
|
||||||
|
|
||||||
self.ui_test.create_doc_in_start_center("writer")
|
|
||||||
|
|
||||||
14:39 < ztamas> _rene_: chart2dump is used to fail because of font size differences, just use a bigger delta or disable it if it
|
|
||||||
fails for you.
|
|
||||||
14:40 <@sberg_> noelgrandin, no
|
|
||||||
14:40 < noelgrandin> sberg_, sure seems that way both in the debugger and in the resulting SAL_WARN output
|
|
||||||
14:42 < ztamas> _rene_: there were some work on making font rendering consistent on different platforms, but it's not finished
|
|
||||||
yet, I guess
|
|
||||||
diff --git a/chart2/Module_chart2.mk b/chart2/Module_chart2.mk
|
|
||||||
index 3273055d5373..cb452139170c 100644
|
|
||||||
--- a/chart2/Module_chart2.mk
|
|
||||||
+++ b/chart2/Module_chart2.mk
|
|
||||||
@@ -33,9 +33,9 @@ $(eval $(call gb_Module_add_slowcheck_targets,chart2,\
|
|
||||||
CppunitTest_chart2_export \
|
|
||||||
CppunitTest_chart2_import \
|
|
||||||
CppunitTest_chart2_trendcalculators \
|
|
||||||
- CppunitTest_chart2_dump \
|
|
||||||
CppunitTest_chart2_pivot_chart_test \
|
|
||||||
))
|
|
||||||
+# CppunitTest_chart2_dump \
|
|
||||||
|
|
||||||
ifeq ($(ENABLE_CHART_TESTS),TRUE)
|
|
||||||
ifeq ($(WITH_FONTS), TRUE)
|
|
||||||
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
|
|
||||||
index 4d65beeb90c4..f3d71501c41a 100644
|
|
||||||
--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
|
|
||||||
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
|
|
||||||
@@ -1559,14 +1559,14 @@ DECLARE_OOXMLIMPORT_TEST(testTdf43017, "tdf43017.docx")
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
-DECLARE_OOXMLIMPORT_TEST(testTdf112443, "tdf112443.docx")
|
|
||||||
+/*DECLARE_OOXMLIMPORT_TEST(testTdf112443, "tdf112443.docx")
|
|
||||||
{
|
|
||||||
// the position of the flying text frame should be off page
|
|
||||||
// 30624 below its anchor
|
|
||||||
OUString aTop = parseDump("//fly[1]/infos/bounds", "top");
|
|
||||||
CPPUNIT_ASSERT_EQUAL( OUString("30624"), aTop );
|
|
||||||
|
|
||||||
-}
|
|
||||||
+}*/
|
|
||||||
|
|
||||||
DECLARE_OOXMLIMPORT_TEST(testTdf113946, "tdf113946.docx")
|
|
||||||
{
|
|
@ -1,13 +0,0 @@
|
|||||||
diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx
|
|
||||||
index 457aedce0acb..4f02cf2b4040 100644
|
|
||||||
--- a/sw/qa/extras/rtfimport/rtfimport.cxx
|
|
||||||
+++ b/sw/qa/extras/rtfimport/rtfimport.cxx
|
|
||||||
@@ -1352,7 +1352,7 @@ DECLARE_RTFIMPORT_TEST(testImportHeaderFooter, "tdf108055.rtf")
|
|
||||||
DECLARE_RTFIMPORT_TEST(testTdf108947, "tdf108947.rtf")
|
|
||||||
{
|
|
||||||
//Check page count
|
|
||||||
- CPPUNIT_ASSERT_EQUAL(2, getPages());
|
|
||||||
+ CPPUNIT_ASSERT_EQUAL(1, getPages());
|
|
||||||
|
|
||||||
//Check if Headers/Footers contain what they should in this document
|
|
||||||
uno::Reference<text::XText> xHeaderTextRight = getProperty<uno::Reference<text::XText>>(
|
|
@ -1,568 +0,0 @@
|
|||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
|
|
||||||
PYTHON_REQ_USE="threads,xml"
|
|
||||||
|
|
||||||
MY_PV="${PV/_alpha/.alpha}"
|
|
||||||
MY_PV="${MY_PV/_beta/.beta}"
|
|
||||||
# experimental ; release ; old
|
|
||||||
# Usually the tarballs are moved a lot so this should make everyone happy.
|
|
||||||
DEV_URI="
|
|
||||||
https://dev-builds.libreoffice.org/pre-releases/src
|
|
||||||
https://download.documentfoundation.org/libreoffice/src/${MY_PV:0:5}/
|
|
||||||
https://downloadarchive.documentfoundation.org/libreoffice/old/${MY_PV}/src
|
|
||||||
"
|
|
||||||
ADDONS_URI="https://dev-www.libreoffice.org/src/"
|
|
||||||
|
|
||||||
BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
|
|
||||||
PATCHSET="${PN}-6.0.5.2-patchset-01.tar.xz"
|
|
||||||
|
|
||||||
[[ ${MY_PV} == *9999* ]] && SCM_ECLASS="git-r3"
|
|
||||||
inherit autotools bash-completion-r1 check-reqs eapi7-ver flag-o-matic gnome2-utils java-pkg-opt-2 multiprocessing pax-utils python-single-r1 qmake-utils toolchain-funcs xdg-utils ${SCM_ECLASS}
|
|
||||||
unset SCM_ECLASS
|
|
||||||
|
|
||||||
DESCRIPTION="A full office productivity suite"
|
|
||||||
HOMEPAGE="https://www.libreoffice.org"
|
|
||||||
SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
|
|
||||||
[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}"
|
|
||||||
|
|
||||||
# Split modules following git/tarballs; Core MUST be first!
|
|
||||||
# Help is used for the image generator
|
|
||||||
# Only release has the tarballs
|
|
||||||
if [[ ${MY_PV} != *9999* ]]; then
|
|
||||||
for i in ${DEV_URI}; do
|
|
||||||
SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz"
|
|
||||||
SRC_URI+=" ${i}/${PN}-help-${MY_PV}.tar.xz"
|
|
||||||
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=(
|
|
||||||
"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 ADDONS_SRC
|
|
||||||
|
|
||||||
# Extensions that need extra work:
|
|
||||||
LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
|
|
||||||
|
|
||||||
IUSE="bluetooth +branding coinmp +cups dbus debug eds firebird googledrive
|
|
||||||
gstreamer +gtk gtk2 jemalloc kde mysql odk pdfimport postgres test vlc
|
|
||||||
$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
|
|
||||||
|
|
||||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
|
||||||
bluetooth? ( dbus )
|
|
||||||
kde? ( gtk )
|
|
||||||
libreoffice_extensions_nlpsolver? ( java )
|
|
||||||
libreoffice_extensions_scripting-beanshell? ( java )
|
|
||||||
libreoffice_extensions_scripting-javascript? ( java )
|
|
||||||
libreoffice_extensions_wiki-publisher? ( java )
|
|
||||||
"
|
|
||||||
|
|
||||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
[[ ${MY_PV} == *9999* ]] || \
|
|
||||||
KEYWORDS="amd64 ~arm ~arm64 x86 ~amd64-linux ~x86-linux"
|
|
||||||
|
|
||||||
COMMON_DEPEND="${PYTHON_DEPS}
|
|
||||||
app-arch/unzip
|
|
||||||
app-arch/zip
|
|
||||||
app-crypt/gpgme[cxx]
|
|
||||||
app-text/hunspell:=
|
|
||||||
>=app-text/libabw-0.1.0
|
|
||||||
>=app-text/libebook-0.1
|
|
||||||
app-text/libepubgen
|
|
||||||
>=app-text/libetonyek-0.1
|
|
||||||
app-text/libexttextcat
|
|
||||||
app-text/liblangtag
|
|
||||||
>=app-text/libmspub-0.1.0
|
|
||||||
>=app-text/libmwaw-0.3.1
|
|
||||||
>=app-text/libodfgen-0.1.0
|
|
||||||
app-text/libqxp
|
|
||||||
app-text/libstaroffice
|
|
||||||
app-text/libwpd:0.10[tools]
|
|
||||||
app-text/libwpg:0.3
|
|
||||||
>=app-text/libwps-0.4
|
|
||||||
app-text/mythes
|
|
||||||
>=dev-cpp/clucene-2.3.3.4-r2
|
|
||||||
=dev-cpp/libcmis-0.5*
|
|
||||||
dev-db/unixODBC
|
|
||||||
dev-lang/perl
|
|
||||||
dev-libs/boost:=[nls]
|
|
||||||
dev-libs/expat
|
|
||||||
dev-libs/hyphen
|
|
||||||
dev-libs/icu:=
|
|
||||||
dev-libs/libassuan
|
|
||||||
dev-libs/libgpg-error
|
|
||||||
>=dev-libs/liborcus-0.13.3
|
|
||||||
dev-libs/librevenge
|
|
||||||
dev-libs/libxml2
|
|
||||||
dev-libs/libxslt
|
|
||||||
dev-libs/nspr
|
|
||||||
dev-libs/nss
|
|
||||||
>=dev-libs/redland-1.0.16
|
|
||||||
>=dev-libs/xmlsec-1.2.24[nss]
|
|
||||||
media-gfx/graphite2
|
|
||||||
media-libs/fontconfig
|
|
||||||
media-libs/freetype:2
|
|
||||||
>=media-libs/harfbuzz-0.9.42:=[graphite,icu]
|
|
||||||
media-libs/lcms:2
|
|
||||||
>=media-libs/libcdr-0.1.0
|
|
||||||
>=media-libs/libepoxy-1.3.1[X]
|
|
||||||
>=media-libs/libfreehand-0.1.0
|
|
||||||
media-libs/libpagemaker
|
|
||||||
>=media-libs/libpng-1.4:0=
|
|
||||||
>=media-libs/libvisio-0.1.0
|
|
||||||
media-libs/libzmf
|
|
||||||
net-libs/neon
|
|
||||||
net-misc/curl
|
|
||||||
net-nds/openldap
|
|
||||||
sci-mathematics/lpsolve
|
|
||||||
sys-libs/zlib:=
|
|
||||||
virtual/glu
|
|
||||||
virtual/jpeg:0
|
|
||||||
virtual/opengl
|
|
||||||
x11-libs/cairo[X]
|
|
||||||
x11-libs/libXinerama
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXrender
|
|
||||||
bluetooth? ( net-wireless/bluez )
|
|
||||||
coinmp? ( sci-libs/coinor-mp )
|
|
||||||
cups? ( net-print/cups )
|
|
||||||
dbus? ( dev-libs/dbus-glib )
|
|
||||||
eds? (
|
|
||||||
dev-libs/glib:2
|
|
||||||
gnome-base/dconf
|
|
||||||
gnome-extra/evolution-data-server
|
|
||||||
)
|
|
||||||
firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] )
|
|
||||||
gstreamer? (
|
|
||||||
media-libs/gstreamer:1.0
|
|
||||||
media-libs/gst-plugins-base:1.0
|
|
||||||
)
|
|
||||||
gtk? (
|
|
||||||
dev-libs/glib:2
|
|
||||||
dev-libs/gobject-introspection
|
|
||||||
gnome-base/dconf
|
|
||||||
media-libs/mesa[egl]
|
|
||||||
x11-libs/gtk+:3
|
|
||||||
x11-libs/pango
|
|
||||||
)
|
|
||||||
gtk2? (
|
|
||||||
x11-libs/gdk-pixbuf
|
|
||||||
>=x11-libs/gtk+-2.24:2
|
|
||||||
x11-libs/pango
|
|
||||||
)
|
|
||||||
jemalloc? ( dev-libs/jemalloc )
|
|
||||||
kde? (
|
|
||||||
dev-qt/qtcore:5
|
|
||||||
dev-qt/qtgui:5
|
|
||||||
dev-qt/qtx11extras:5
|
|
||||||
dev-qt/qtwidgets:5
|
|
||||||
kde-frameworks/kconfig:5
|
|
||||||
kde-frameworks/kcoreaddons:5
|
|
||||||
kde-frameworks/ki18n:5
|
|
||||||
kde-frameworks/kio:5
|
|
||||||
kde-frameworks/kwindowsystem:5
|
|
||||||
)
|
|
||||||
libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
|
|
||||||
libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
|
|
||||||
mysql? ( dev-db/mysql-connector-c++ )
|
|
||||||
pdfimport? ( app-text/poppler:=[cxx] )
|
|
||||||
postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
!app-office/libreoffice-bin
|
|
||||||
!app-office/libreoffice-bin-debug
|
|
||||||
!app-office/openoffice
|
|
||||||
media-fonts/dejavu
|
|
||||||
media-fonts/liberation-fonts
|
|
||||||
media-fonts/libertine
|
|
||||||
|| ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
|
|
||||||
java? ( >=virtual/jre-1.6 )
|
|
||||||
kde? ( kde-frameworks/breeze-icons:* )
|
|
||||||
vlc? ( media-video/vlc )
|
|
||||||
"
|
|
||||||
|
|
||||||
if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then
|
|
||||||
PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 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-perl/Archive-Zip
|
|
||||||
>=dev-util/cppunit-1.14.0
|
|
||||||
>=dev-util/gperf-3
|
|
||||||
dev-util/intltool
|
|
||||||
>=dev-util/mdds-1.2.3:1=
|
|
||||||
media-libs/glm
|
|
||||||
sys-devel/bison
|
|
||||||
sys-devel/flex
|
|
||||||
sys-devel/gettext
|
|
||||||
sys-devel/ucpp
|
|
||||||
virtual/pkgconfig
|
|
||||||
x11-base/xorg-proto
|
|
||||||
x11-libs/libXt
|
|
||||||
x11-libs/libXtst
|
|
||||||
java? (
|
|
||||||
dev-java/ant-core
|
|
||||||
>=virtual/jdk-1.6
|
|
||||||
)
|
|
||||||
odk? ( >=app-doc/doxygen-1.8.4 )
|
|
||||||
test? (
|
|
||||||
app-crypt/gnupg
|
|
||||||
dev-util/cppunit
|
|
||||||
media-fonts/dejavu
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
# not upstreamable stuff
|
|
||||||
"${FILESDIR}/${PN}-5.4-system-pyuno.patch"
|
|
||||||
"${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
|
|
||||||
"${FILESDIR}/${PN}-6.0.3.2-disable-flaky-tests-1.patch" #bug 656676
|
|
||||||
|
|
||||||
# TODO: upstream
|
|
||||||
"${FILESDIR}/${PN}-5.2.5.1-glibc-2.24.patch"
|
|
||||||
"${FILESDIR}/${PN}-6.0.3.2-testTdf108947.patch" #bug 656600
|
|
||||||
|
|
||||||
# gtk3-kde5 vcl plugin backported from master
|
|
||||||
"${WORKDIR}"/${PATCHSET/.tar.xz/}
|
|
||||||
)
|
|
||||||
|
|
||||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
|
||||||
|
|
||||||
_check_reqs() {
|
|
||||||
CHECKREQS_MEMORY="512M"
|
|
||||||
if is-flagq "-g*" && ! is-flagq "-g*0" ; then
|
|
||||||
CHECKREQS_DISK_BUILD="22G"
|
|
||||||
else
|
|
||||||
CHECKREQS_DISK_BUILD="6G"
|
|
||||||
fi
|
|
||||||
check-reqs_$1
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
use java || \
|
|
||||||
ewarn "If you plan to use Base application you should enable java or you will get various crashes."
|
|
||||||
|
|
||||||
if has_version "<app-office/libreoffice-5.3.0[firebird]"; then
|
|
||||||
ewarn "Firebird has been upgraded to version 3. It is unable to read back Firebird 2.5 data, so"
|
|
||||||
ewarn "embedded firebird odb files created in LibreOffice pre-5.3 can't be opened with this version."
|
|
||||||
ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base"
|
|
||||||
fi
|
|
||||||
|
|
||||||
[[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
java-pkg-opt-2_pkg_setup
|
|
||||||
python-single-r1_pkg_setup
|
|
||||||
xdg_environment_reset
|
|
||||||
|
|
||||||
[[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
default
|
|
||||||
|
|
||||||
if [[ ${MY_PV} = *9999* ]]; then
|
|
||||||
local base_uri branch mypv
|
|
||||||
base_uri="https://anongit.freedesktop.org/git"
|
|
||||||
branch="master"
|
|
||||||
mypv=${MY_PV/.9999}
|
|
||||||
[[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}"
|
|
||||||
git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}"
|
|
||||||
git-r3_checkout "${base_uri}/${PN}/core"
|
|
||||||
|
|
||||||
git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master"
|
|
||||||
git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
# sandbox violations on many systems, we don't need it. Bug #646406
|
|
||||||
sed -i \
|
|
||||||
-e "/KF5_CONFIG/s/kf5-config/no/" \
|
|
||||||
configure.ac || die "Failed to disable kf5-config"
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
sed -i \
|
|
||||||
-e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
|
|
||||||
-e "s,\$INSTALLDIRNAME.sh,${PN}," \
|
|
||||||
bin/distro-install-desktop-integration || die
|
|
||||||
|
|
||||||
if use branding; then
|
|
||||||
# hack...
|
|
||||||
mv -v "${WORKDIR}/branding-intro.png" "icon-themes/galaxy/brand/intro.png" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Don't list pdfimport support in desktop when built with none, bug # 605464
|
|
||||||
if ! use pdfimport; then
|
|
||||||
sed -i \
|
|
||||||
-e ":MimeType: s:application/pdf;::" \
|
|
||||||
-e ":Keywords: s:pdf;::" \
|
|
||||||
sysui/desktop/menus/draw.desktop || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
# Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys
|
|
||||||
# Note: these are for Gentoo use ONLY. For your own distribution, please get
|
|
||||||
# your own set of keys. Feel free to contact chromium@gentoo.org for more info.
|
|
||||||
local google_default_client_id="329227923882.apps.googleusercontent.com"
|
|
||||||
local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
|
|
||||||
|
|
||||||
# optimization flags
|
|
||||||
export GMAKE_OPTIONS="${MAKEOPTS}"
|
|
||||||
# System python enablement:
|
|
||||||
export PYTHON_CFLAGS=$(python_get_CFLAGS)
|
|
||||||
export PYTHON_LIBS=$(python_get_LIBS)
|
|
||||||
|
|
||||||
if use kde; then
|
|
||||||
export QT_SELECT=5 # bug 639620 needs proper fix though
|
|
||||||
export QT5DIR="$(qt5_get_bindir)/../"
|
|
||||||
export MOC5="$(qt5_get_bindir)/moc"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# system headers/libs/...: enforce using system packages
|
|
||||||
# --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad
|
|
||||||
# --enable-cairo: ensure that cairo is always required
|
|
||||||
# --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
|
|
||||||
# --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
|
|
||||||
# --without-system-sane: just sane.h header that is used for scan in writer,
|
|
||||||
# not linked or anything else, worthless to depend on
|
|
||||||
# --disable-pdfium: not yet packaged
|
|
||||||
local myeconfargs=(
|
|
||||||
--with-system-dicts
|
|
||||||
--with-system-epoxy
|
|
||||||
--with-system-headers
|
|
||||||
--with-system-jars
|
|
||||||
--with-system-libs
|
|
||||||
--enable-cairo-canvas
|
|
||||||
--enable-largefile
|
|
||||||
--enable-mergelibs
|
|
||||||
--enable-neon
|
|
||||||
--enable-python=system
|
|
||||||
--enable-randr
|
|
||||||
--enable-release-build
|
|
||||||
--disable-breakpad
|
|
||||||
--disable-ccache
|
|
||||||
--disable-dependency-tracking
|
|
||||||
--disable-epm
|
|
||||||
--disable-fetch-external
|
|
||||||
--disable-gstreamer-0-10
|
|
||||||
--disable-online-update
|
|
||||||
--disable-openssl
|
|
||||||
--disable-pdfium
|
|
||||||
--disable-report-builder
|
|
||||||
--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-tls=nss
|
|
||||||
--with-vendor="Gentoo Foundation"
|
|
||||||
--with-x
|
|
||||||
--without-fonts
|
|
||||||
--without-myspell-dicts
|
|
||||||
--without-help
|
|
||||||
--with-helppack-integration
|
|
||||||
--with-system-gpgmepp
|
|
||||||
--without-system-sane
|
|
||||||
$(use_enable bluetooth sdremote-bluetooth)
|
|
||||||
$(use_enable coinmp)
|
|
||||||
$(use_enable cups)
|
|
||||||
$(use_enable dbus)
|
|
||||||
$(use_enable debug)
|
|
||||||
$(use_enable eds evolution2)
|
|
||||||
$(use_enable firebird firebird-sdbc)
|
|
||||||
$(use_enable gstreamer gstreamer-1-0)
|
|
||||||
$(use_enable gtk gtk3)
|
|
||||||
$(use_enable gtk2 gtk)
|
|
||||||
$(use_enable kde gtk3-kde5)
|
|
||||||
$(use_enable kde qt5)
|
|
||||||
$(use_enable mysql ext-mariadb-connector)
|
|
||||||
$(use_enable odk)
|
|
||||||
$(use_enable pdfimport)
|
|
||||||
$(use_enable postgres postgresql-sdbc)
|
|
||||||
$(use_enable vlc)
|
|
||||||
$(use_with coinmp system-coinmp)
|
|
||||||
$(use_with googledrive gdrive-client-id ${google_default_client_id})
|
|
||||||
$(use_with googledrive gdrive-client-secret ${google_default_client_secret})
|
|
||||||
$(use_with java)
|
|
||||||
$(use_with mysql system-mysql-cppconn)
|
|
||||||
$(use_with odk doxygen)
|
|
||||||
)
|
|
||||||
|
|
||||||
if use eds || use gtk; then
|
|
||||||
myeconfargs+=( --enable-dconf --enable-gio )
|
|
||||||
else
|
|
||||||
myeconfargs+=( --disable-dconf --disable-gio )
|
|
||||||
fi
|
|
||||||
|
|
||||||
# libreoffice extensions handling
|
|
||||||
for lo_xt in ${LO_EXTS}; do
|
|
||||||
if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
|
|
||||||
myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) )
|
|
||||||
else
|
|
||||||
myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) )
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if use java; then
|
|
||||||
# hsqldb: system one is too new
|
|
||||||
myeconfargs+=(
|
|
||||||
--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 && \
|
|
||||||
myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) )
|
|
||||||
|
|
||||||
use libreoffice_extensions_scripting-javascript && \
|
|
||||||
myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) )
|
|
||||||
fi
|
|
||||||
|
|
||||||
is-flagq "-flto*" && myeconfargs+=( --enable-lto )
|
|
||||||
|
|
||||||
econf "${myeconfargs[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
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=helpcontent2/source/media/helpimg > \"${path}/helpimg.ilst\""
|
|
||||||
perl "${S}/helpcontent2/helpers/create_ilst.pl" \
|
|
||||||
-dir=helpcontent2/source/media/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
|
|
||||||
|
|
||||||
# bug 593514
|
|
||||||
if use gtk; then
|
|
||||||
dosym libreoffice/program/liblibreofficekitgtk.so \
|
|
||||||
/usr/$(get_libdir)/liblibreofficekitgtk.so
|
|
||||||
fi
|
|
||||||
|
|
||||||
# bash completion aliases
|
|
||||||
bashcomp_alias \
|
|
||||||
libreoffice \
|
|
||||||
unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/soffice.bin
|
|
||||||
pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/unopkg.bin
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
xdg_desktop_database_update
|
|
||||||
xdg_mimeinfo_database_update
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
xdg_desktop_database_update
|
|
||||||
xdg_mimeinfo_database_update
|
|
||||||
}
|
|
@ -1,571 +0,0 @@
|
|||||||
# Copyright 1999-2018 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
|
|
||||||
PYTHON_REQ_USE="threads(+),xml"
|
|
||||||
|
|
||||||
MY_PV="${PV/_alpha/.alpha}"
|
|
||||||
MY_PV="${MY_PV/_beta/.beta}"
|
|
||||||
# experimental ; release ; old
|
|
||||||
# Usually the tarballs are moved a lot so this should make everyone happy.
|
|
||||||
DEV_URI="
|
|
||||||
https://dev-builds.libreoffice.org/pre-releases/src
|
|
||||||
https://download.documentfoundation.org/libreoffice/src/${MY_PV:0:5}/
|
|
||||||
https://downloadarchive.documentfoundation.org/libreoffice/old/${MY_PV}/src
|
|
||||||
"
|
|
||||||
ADDONS_URI="https://dev-www.libreoffice.org/src/"
|
|
||||||
|
|
||||||
BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
|
|
||||||
# PATCHSET="${P}-patchset-01.tar.xz"
|
|
||||||
|
|
||||||
[[ ${MY_PV} == *9999* ]] && inherit git-r3
|
|
||||||
inherit autotools bash-completion-r1 check-reqs eapi7-ver flag-o-matic gnome2-utils java-pkg-opt-2 multiprocessing pax-utils python-single-r1 qmake-utils toolchain-funcs xdg-utils
|
|
||||||
|
|
||||||
DESCRIPTION="A full office productivity suite"
|
|
||||||
HOMEPAGE="https://www.libreoffice.org"
|
|
||||||
SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
|
|
||||||
[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}"
|
|
||||||
|
|
||||||
# Split modules following git/tarballs; Core MUST be first!
|
|
||||||
# Help is used for the image generator
|
|
||||||
# Only release has the tarballs
|
|
||||||
if [[ ${MY_PV} != *9999* ]]; then
|
|
||||||
for i in ${DEV_URI}; do
|
|
||||||
SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz"
|
|
||||||
SRC_URI+=" ${i}/${PN}-help-${MY_PV}.tar.xz"
|
|
||||||
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=(
|
|
||||||
"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 ADDONS_SRC
|
|
||||||
|
|
||||||
# Extensions that need extra work:
|
|
||||||
LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
|
|
||||||
|
|
||||||
IUSE="accessibility bluetooth +branding coinmp +cups dbus debug eds firebird
|
|
||||||
googledrive gstreamer +gtk gtk2 kde mysql odk pdfimport postgres test vlc
|
|
||||||
$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
|
|
||||||
|
|
||||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
|
||||||
bluetooth? ( dbus )
|
|
||||||
kde? ( gtk )
|
|
||||||
libreoffice_extensions_nlpsolver? ( java )
|
|
||||||
libreoffice_extensions_scripting-beanshell? ( java )
|
|
||||||
libreoffice_extensions_scripting-javascript? ( java )
|
|
||||||
libreoffice_extensions_wiki-publisher? ( java )
|
|
||||||
"
|
|
||||||
|
|
||||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
[[ ${MY_PV} == *9999* ]] || \
|
|
||||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
|
||||||
|
|
||||||
COMMON_DEPEND="${PYTHON_DEPS}
|
|
||||||
app-arch/unzip
|
|
||||||
app-arch/zip
|
|
||||||
app-crypt/gpgme[cxx]
|
|
||||||
app-text/hunspell:=
|
|
||||||
>=app-text/libabw-0.1.0
|
|
||||||
>=app-text/libebook-0.1
|
|
||||||
app-text/libepubgen
|
|
||||||
>=app-text/libetonyek-0.1
|
|
||||||
app-text/libexttextcat
|
|
||||||
app-text/liblangtag
|
|
||||||
>=app-text/libmspub-0.1.0
|
|
||||||
>=app-text/libmwaw-0.3.1
|
|
||||||
app-text/libnumbertext
|
|
||||||
>=app-text/libodfgen-0.1.0
|
|
||||||
app-text/libqxp
|
|
||||||
app-text/libstaroffice
|
|
||||||
app-text/libwpd:0.10[tools]
|
|
||||||
app-text/libwpg:0.3
|
|
||||||
>=app-text/libwps-0.4
|
|
||||||
app-text/mythes
|
|
||||||
>=dev-cpp/clucene-2.3.3.4-r2
|
|
||||||
=dev-cpp/libcmis-0.5*
|
|
||||||
dev-db/unixODBC
|
|
||||||
dev-lang/perl
|
|
||||||
dev-libs/boost:=[nls]
|
|
||||||
dev-libs/expat
|
|
||||||
dev-libs/hyphen
|
|
||||||
dev-libs/icu:=
|
|
||||||
dev-libs/libassuan
|
|
||||||
dev-libs/libgpg-error
|
|
||||||
=dev-libs/liborcus-0.13*
|
|
||||||
dev-libs/librevenge
|
|
||||||
dev-libs/libxml2
|
|
||||||
dev-libs/libxslt
|
|
||||||
dev-libs/nspr
|
|
||||||
dev-libs/nss
|
|
||||||
>=dev-libs/redland-1.0.16
|
|
||||||
>=dev-libs/xmlsec-1.2.24[nss]
|
|
||||||
media-gfx/graphite2
|
|
||||||
media-libs/fontconfig
|
|
||||||
media-libs/freetype:2
|
|
||||||
>=media-libs/harfbuzz-0.9.42:=[graphite,icu]
|
|
||||||
media-libs/lcms:2
|
|
||||||
>=media-libs/libcdr-0.1.0
|
|
||||||
>=media-libs/libepoxy-1.3.1[X]
|
|
||||||
>=media-libs/libfreehand-0.1.0
|
|
||||||
media-libs/libpagemaker
|
|
||||||
>=media-libs/libpng-1.4:0=
|
|
||||||
>=media-libs/libvisio-0.1.0
|
|
||||||
media-libs/libzmf
|
|
||||||
net-libs/neon
|
|
||||||
net-misc/curl
|
|
||||||
net-nds/openldap
|
|
||||||
sci-mathematics/lpsolve
|
|
||||||
sys-libs/zlib
|
|
||||||
virtual/glu
|
|
||||||
virtual/jpeg:0
|
|
||||||
virtual/opengl
|
|
||||||
x11-libs/cairo[X]
|
|
||||||
x11-libs/libXinerama
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXrender
|
|
||||||
accessibility? ( dev-python/lxml[${PYTHON_USEDEP}] )
|
|
||||||
bluetooth? ( net-wireless/bluez )
|
|
||||||
coinmp? ( sci-libs/coinor-mp )
|
|
||||||
cups? ( net-print/cups )
|
|
||||||
dbus? ( dev-libs/dbus-glib )
|
|
||||||
eds? (
|
|
||||||
dev-libs/glib:2
|
|
||||||
gnome-base/dconf
|
|
||||||
gnome-extra/evolution-data-server
|
|
||||||
)
|
|
||||||
firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] )
|
|
||||||
gstreamer? (
|
|
||||||
media-libs/gstreamer:1.0
|
|
||||||
media-libs/gst-plugins-base:1.0
|
|
||||||
)
|
|
||||||
gtk? (
|
|
||||||
dev-libs/glib:2
|
|
||||||
dev-libs/gobject-introspection
|
|
||||||
gnome-base/dconf
|
|
||||||
media-libs/mesa[egl]
|
|
||||||
x11-libs/gtk+:3
|
|
||||||
x11-libs/pango
|
|
||||||
)
|
|
||||||
gtk2? (
|
|
||||||
x11-libs/gdk-pixbuf
|
|
||||||
>=x11-libs/gtk+-2.24:2
|
|
||||||
x11-libs/pango
|
|
||||||
)
|
|
||||||
kde? (
|
|
||||||
dev-qt/qtcore:5
|
|
||||||
dev-qt/qtgui:5
|
|
||||||
dev-qt/qtx11extras:5
|
|
||||||
dev-qt/qtwidgets:5
|
|
||||||
kde-frameworks/kconfig:5
|
|
||||||
kde-frameworks/kcoreaddons:5
|
|
||||||
kde-frameworks/ki18n:5
|
|
||||||
kde-frameworks/kio:5
|
|
||||||
kde-frameworks/kwindowsystem:5
|
|
||||||
)
|
|
||||||
libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
|
|
||||||
libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
|
|
||||||
mysql? ( dev-db/mysql-connector-c++ )
|
|
||||||
pdfimport? ( app-text/poppler:=[cxx] )
|
|
||||||
postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
!app-office/libreoffice-bin
|
|
||||||
!app-office/libreoffice-bin-debug
|
|
||||||
!app-office/openoffice
|
|
||||||
media-fonts/liberation-fonts
|
|
||||||
|| ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
|
|
||||||
java? ( >=virtual/jre-1.6 )
|
|
||||||
kde? ( kde-frameworks/breeze-icons:* )
|
|
||||||
vlc? ( media-video/vlc )
|
|
||||||
"
|
|
||||||
|
|
||||||
if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then
|
|
||||||
PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 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
|
|
||||||
# tests apparently also need google-carlito-fonts (not packaged)
|
|
||||||
DEPEND="${COMMON_DEPEND}
|
|
||||||
>=dev-libs/libatomic_ops-7.2d
|
|
||||||
dev-perl/Archive-Zip
|
|
||||||
>=dev-util/cppunit-1.14.0
|
|
||||||
>=dev-util/gperf-3
|
|
||||||
dev-util/intltool
|
|
||||||
=dev-util/mdds-1.3*:1=
|
|
||||||
media-libs/glm
|
|
||||||
sys-devel/bison
|
|
||||||
sys-devel/flex
|
|
||||||
sys-devel/gettext
|
|
||||||
sys-devel/ucpp
|
|
||||||
virtual/pkgconfig
|
|
||||||
x11-base/xorg-proto
|
|
||||||
x11-libs/libXt
|
|
||||||
x11-libs/libXtst
|
|
||||||
java? (
|
|
||||||
dev-java/ant-core
|
|
||||||
>=virtual/jdk-1.6
|
|
||||||
)
|
|
||||||
odk? ( >=app-doc/doxygen-1.8.4 )
|
|
||||||
test? (
|
|
||||||
app-crypt/gnupg
|
|
||||||
dev-util/cppunit
|
|
||||||
media-fonts/dejavu
|
|
||||||
media-fonts/liberation-fonts
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
# "${WORKDIR}"/${PATCHSET/.tar.xz/}
|
|
||||||
|
|
||||||
# not upstreamable stuff
|
|
||||||
"${FILESDIR}/${PN}-5.4-system-pyuno.patch"
|
|
||||||
"${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
|
|
||||||
"${FILESDIR}/${PN}-6.1-nomancompress.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
|
||||||
|
|
||||||
_check_reqs() {
|
|
||||||
CHECKREQS_MEMORY="512M"
|
|
||||||
if is-flagq "-g*" && ! is-flagq "-g*0" ; then
|
|
||||||
CHECKREQS_DISK_BUILD="22G"
|
|
||||||
else
|
|
||||||
CHECKREQS_DISK_BUILD="6G"
|
|
||||||
fi
|
|
||||||
check-reqs_$1
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
use java || \
|
|
||||||
ewarn "If you plan to use Base application you should enable java or you will get various crashes."
|
|
||||||
|
|
||||||
if has_version "<app-office/libreoffice-5.3.0[firebird]"; then
|
|
||||||
ewarn "Firebird has been upgraded to version 3. It is unable to read back Firebird 2.5 data, so"
|
|
||||||
ewarn "embedded firebird odb files created in LibreOffice pre-5.3 can't be opened with this version."
|
|
||||||
ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base"
|
|
||||||
fi
|
|
||||||
|
|
||||||
[[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
java-pkg-opt-2_pkg_setup
|
|
||||||
python-single-r1_pkg_setup
|
|
||||||
xdg_environment_reset
|
|
||||||
|
|
||||||
[[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
default
|
|
||||||
|
|
||||||
if [[ ${MY_PV} = *9999* ]]; then
|
|
||||||
local base_uri branch mypv
|
|
||||||
base_uri="https://anongit.freedesktop.org/git"
|
|
||||||
branch="master"
|
|
||||||
mypv=${MY_PV/.9999}
|
|
||||||
[[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}"
|
|
||||||
git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}"
|
|
||||||
git-r3_checkout "${base_uri}/${PN}/core"
|
|
||||||
LOCOREGIT_VERSION=${EGIT_VERSION}
|
|
||||||
|
|
||||||
git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master"
|
|
||||||
git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
# sandbox violations on many systems, we don't need it. Bug #646406
|
|
||||||
sed -i \
|
|
||||||
-e "/KF5_CONFIG/s/kf5-config/no/" \
|
|
||||||
configure.ac || die "Failed to disable kf5-config"
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
sed -i \
|
|
||||||
-e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
|
|
||||||
-e "s,\$INSTALLDIRNAME.sh,${PN}," \
|
|
||||||
bin/distro-install-desktop-integration || die
|
|
||||||
|
|
||||||
if use branding; then
|
|
||||||
# hack...
|
|
||||||
mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Don't list pdfimport support in desktop when built with none, bug # 605464
|
|
||||||
if ! use pdfimport; then
|
|
||||||
sed -i \
|
|
||||||
-e ":MimeType: s:application/pdf;::" \
|
|
||||||
-e ":Keywords: s:pdf;::" \
|
|
||||||
sysui/desktop/menus/draw.desktop || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
# Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys
|
|
||||||
# Note: these are for Gentoo use ONLY. For your own distribution, please get
|
|
||||||
# your own set of keys. Feel free to contact chromium@gentoo.org for more info.
|
|
||||||
local google_default_client_id="329227923882.apps.googleusercontent.com"
|
|
||||||
local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
|
|
||||||
|
|
||||||
# optimization flags
|
|
||||||
export GMAKE_OPTIONS="${MAKEOPTS}"
|
|
||||||
# System python enablement:
|
|
||||||
export PYTHON_CFLAGS=$(python_get_CFLAGS)
|
|
||||||
export PYTHON_LIBS=$(python_get_LIBS)
|
|
||||||
|
|
||||||
if use kde; then
|
|
||||||
export QT_SELECT=5 # bug 639620 needs proper fix though
|
|
||||||
export QT5DIR="$(qt5_get_bindir)/../"
|
|
||||||
export MOC5="$(qt5_get_bindir)/moc"
|
|
||||||
fi
|
|
||||||
|
|
||||||
local gentoo_buildid="Gentoo official package"
|
|
||||||
if [[ -n ${LOCOREGIT_VERSION} ]]; then
|
|
||||||
gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# system headers/libs/...: enforce using system packages
|
|
||||||
# --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad
|
|
||||||
# --enable-cairo: ensure that cairo is always required
|
|
||||||
# --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
|
|
||||||
# --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
|
|
||||||
# --without-system-sane: just sane.h header that is used for scan in writer,
|
|
||||||
# not linked or anything else, worthless to depend on
|
|
||||||
# --disable-pdfium: not yet packaged
|
|
||||||
local myeconfargs=(
|
|
||||||
--with-system-dicts
|
|
||||||
--with-system-epoxy
|
|
||||||
--with-system-headers
|
|
||||||
--with-system-jars
|
|
||||||
--with-system-libs
|
|
||||||
--enable-cairo-canvas
|
|
||||||
--enable-largefile
|
|
||||||
--enable-mergelibs
|
|
||||||
--enable-neon
|
|
||||||
--enable-python=system
|
|
||||||
--enable-randr
|
|
||||||
--enable-release-build
|
|
||||||
--disable-breakpad
|
|
||||||
--disable-ccache
|
|
||||||
--disable-dependency-tracking
|
|
||||||
--disable-epm
|
|
||||||
--disable-fetch-external
|
|
||||||
--disable-gstreamer-0-10
|
|
||||||
--disable-kde5
|
|
||||||
--disable-online-update
|
|
||||||
--disable-openssl
|
|
||||||
--disable-pdfium
|
|
||||||
--disable-qt5
|
|
||||||
--disable-report-builder
|
|
||||||
--with-alloc=system
|
|
||||||
--with-build-version="${gentoo_buildid}"
|
|
||||||
--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-tls=nss
|
|
||||||
--with-vendor="Gentoo Foundation"
|
|
||||||
--with-x
|
|
||||||
--without-fonts
|
|
||||||
--without-myspell-dicts
|
|
||||||
--without-help
|
|
||||||
--with-helppack-integration
|
|
||||||
--with-system-gpgmepp
|
|
||||||
--without-system-sane
|
|
||||||
$(use_enable bluetooth sdremote-bluetooth)
|
|
||||||
$(use_enable coinmp)
|
|
||||||
$(use_enable cups)
|
|
||||||
$(use_enable dbus)
|
|
||||||
$(use_enable debug)
|
|
||||||
$(use_enable eds evolution2)
|
|
||||||
$(use_enable firebird firebird-sdbc)
|
|
||||||
$(use_enable gstreamer gstreamer-1-0)
|
|
||||||
$(use_enable gtk gtk3)
|
|
||||||
$(use_enable gtk2 gtk)
|
|
||||||
$(use_enable kde gtk3-kde5)
|
|
||||||
$(use_enable mysql ext-mariadb-connector)
|
|
||||||
$(use_enable odk)
|
|
||||||
$(use_enable pdfimport)
|
|
||||||
$(use_enable postgres postgresql-sdbc)
|
|
||||||
$(use_enable vlc)
|
|
||||||
$(use_with accessibility lxml)
|
|
||||||
$(use_with coinmp system-coinmp)
|
|
||||||
$(use_with googledrive gdrive-client-id ${google_default_client_id})
|
|
||||||
$(use_with googledrive gdrive-client-secret ${google_default_client_secret})
|
|
||||||
$(use_with java)
|
|
||||||
$(use_with mysql system-mysql-cppconn)
|
|
||||||
$(use_with odk doxygen)
|
|
||||||
)
|
|
||||||
|
|
||||||
if use eds || use gtk; then
|
|
||||||
myeconfargs+=( --enable-dconf --enable-gio )
|
|
||||||
else
|
|
||||||
myeconfargs+=( --disable-dconf --disable-gio )
|
|
||||||
fi
|
|
||||||
|
|
||||||
# libreoffice extensions handling
|
|
||||||
for lo_xt in ${LO_EXTS}; do
|
|
||||||
if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
|
|
||||||
myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) )
|
|
||||||
else
|
|
||||||
myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) )
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if use java; then
|
|
||||||
# hsqldb: system one is too new
|
|
||||||
myeconfargs+=(
|
|
||||||
--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 && \
|
|
||||||
myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) )
|
|
||||||
|
|
||||||
use libreoffice_extensions_scripting-javascript && \
|
|
||||||
myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) )
|
|
||||||
fi
|
|
||||||
|
|
||||||
is-flagq "-flto*" && myeconfargs+=( --enable-lto )
|
|
||||||
|
|
||||||
econf "${myeconfargs[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
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=helpcontent2/source/media/helpimg > \"${path}/helpimg.ilst\""
|
|
||||||
perl "${S}/helpcontent2/helpers/create_ilst.pl" \
|
|
||||||
-dir=helpcontent2/source/media/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
|
|
||||||
|
|
||||||
# bug 593514
|
|
||||||
if use gtk; then
|
|
||||||
dosym libreoffice/program/liblibreofficekitgtk.so \
|
|
||||||
/usr/$(get_libdir)/liblibreofficekitgtk.so
|
|
||||||
fi
|
|
||||||
|
|
||||||
# bash completion aliases
|
|
||||||
bashcomp_alias \
|
|
||||||
libreoffice \
|
|
||||||
unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/soffice.bin
|
|
||||||
pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/unopkg.bin
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
xdg_desktop_database_update
|
|
||||||
xdg_mimeinfo_database_update
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
xdg_desktop_database_update
|
|
||||||
xdg_mimeinfo_database_update
|
|
||||||
}
|
|
Binary file not shown.
@ -0,0 +1,133 @@
|
|||||||
|
*** ../bash-5.0/bashline.c 2018-11-27 13:20:16.000000000 -0500
|
||||||
|
--- bashline.c 2019-01-09 09:44:26.000000000 -0500
|
||||||
|
***************
|
||||||
|
*** 232,235 ****
|
||||||
|
--- 232,236 ----
|
||||||
|
static int bash_possible_command_completions __P((int, int));
|
||||||
|
|
||||||
|
+ static int completion_glob_pattern __P((const char *));
|
||||||
|
static char *glob_complete_word __P((const char *, int));
|
||||||
|
static int bash_glob_completion_internal __P((int));
|
||||||
|
***************
|
||||||
|
*** 1742,1746 ****
|
||||||
|
/* This could be a globbing pattern, so try to expand it using pathname
|
||||||
|
expansion. */
|
||||||
|
! if (!matches && glob_pattern_p (text))
|
||||||
|
{
|
||||||
|
matches = rl_completion_matches (text, glob_complete_word);
|
||||||
|
--- 1743,1747 ----
|
||||||
|
/* This could be a globbing pattern, so try to expand it using pathname
|
||||||
|
expansion. */
|
||||||
|
! if (!matches && completion_glob_pattern (text))
|
||||||
|
{
|
||||||
|
matches = rl_completion_matches (text, glob_complete_word);
|
||||||
|
***************
|
||||||
|
*** 1851,1855 ****
|
||||||
|
}
|
||||||
|
|
||||||
|
! globpat = glob_pattern_p (hint_text);
|
||||||
|
|
||||||
|
/* If this is an absolute program name, do not check it against
|
||||||
|
--- 1852,1856 ----
|
||||||
|
}
|
||||||
|
|
||||||
|
! globpat = completion_glob_pattern (hint_text);
|
||||||
|
|
||||||
|
/* If this is an absolute program name, do not check it against
|
||||||
|
***************
|
||||||
|
*** 3714,3717 ****
|
||||||
|
--- 3715,3773 ----
|
||||||
|
}
|
||||||
|
|
||||||
|
+ static int
|
||||||
|
+ completion_glob_pattern (string)
|
||||||
|
+ const char *string;
|
||||||
|
+ {
|
||||||
|
+ register int c;
|
||||||
|
+ char *send;
|
||||||
|
+ int open;
|
||||||
|
+
|
||||||
|
+ DECLARE_MBSTATE;
|
||||||
|
+
|
||||||
|
+ open = 0;
|
||||||
|
+ send = string + strlen (string);
|
||||||
|
+
|
||||||
|
+ while (c = *string++)
|
||||||
|
+ {
|
||||||
|
+ switch (c)
|
||||||
|
+ {
|
||||||
|
+ case '?':
|
||||||
|
+ case '*':
|
||||||
|
+ return (1);
|
||||||
|
+
|
||||||
|
+ case '[':
|
||||||
|
+ open++;
|
||||||
|
+ continue;
|
||||||
|
+
|
||||||
|
+ case ']':
|
||||||
|
+ if (open)
|
||||||
|
+ return (1);
|
||||||
|
+ continue;
|
||||||
|
+
|
||||||
|
+ case '+':
|
||||||
|
+ case '@':
|
||||||
|
+ case '!':
|
||||||
|
+ if (*string == '(') /*)*/
|
||||||
|
+ return (1);
|
||||||
|
+ continue;
|
||||||
|
+
|
||||||
|
+ case '\\':
|
||||||
|
+ if (*string == 0)
|
||||||
|
+ return (0);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ /* Advance one fewer byte than an entire multibyte character to
|
||||||
|
+ account for the auto-increment in the loop above. */
|
||||||
|
+ #ifdef HANDLE_MULTIBYTE
|
||||||
|
+ string--;
|
||||||
|
+ ADVANCE_CHAR_P (string, send - string);
|
||||||
|
+ string++;
|
||||||
|
+ #else
|
||||||
|
+ ADVANCE_CHAR_P (string, send - string);
|
||||||
|
+ #endif
|
||||||
|
+ }
|
||||||
|
+ return (0);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
static char *globtext;
|
||||||
|
static char *globorig;
|
||||||
|
***************
|
||||||
|
*** 3878,3882 ****
|
||||||
|
}
|
||||||
|
|
||||||
|
! if (t && glob_pattern_p (t) == 0)
|
||||||
|
rl_explicit_arg = 1; /* XXX - force glob_complete_word to append `*' */
|
||||||
|
FREE (t);
|
||||||
|
--- 3934,3938 ----
|
||||||
|
}
|
||||||
|
|
||||||
|
! if (t && completion_glob_pattern (t) == 0)
|
||||||
|
rl_explicit_arg = 1; /* XXX - force glob_complete_word to append `*' */
|
||||||
|
FREE (t);
|
||||||
|
*** ../bash-5.0/lib/glob/glob_loop.c 2018-12-31 13:35:15.000000000 -0500
|
||||||
|
--- lib/glob/glob_loop.c 2019-01-09 09:44:36.000000000 -0500
|
||||||
|
***************
|
||||||
|
*** 55,59 ****
|
||||||
|
|
||||||
|
case L('\\'):
|
||||||
|
- #if 0
|
||||||
|
/* Don't let the pattern end in a backslash (GMATCH returns no match
|
||||||
|
if the pattern ends in a backslash anyway), but otherwise return 1,
|
||||||
|
--- 55,58 ----
|
||||||
|
***************
|
||||||
|
*** 61,69 ****
|
||||||
|
and it can be removed. */
|
||||||
|
return (*p != L('\0'));
|
||||||
|
- #else
|
||||||
|
- /* The pattern may not end with a backslash. */
|
||||||
|
- if (*p++ == L('\0'))
|
||||||
|
- return 0;
|
||||||
|
- #endif
|
||||||
|
}
|
||||||
|
|
||||||
|
--- 60,63 ----
|
Binary file not shown.
@ -1,2 +1 @@
|
|||||||
DIST libodfgen-0.1.6.tar.xz 359988 BLAKE2B 89ef70762780efa70ea044758d3c5e677024897bcd1f031c15544dc2e5cc0115bd286ca21051b8223768a2253eb681bdea534230c517de9c00a0a1f5b320eaf3 SHA512 bc5e6908ee14c576adececdf8a94ae01f2ed487e6f2490e41aab787e1e8f72a3fb2a786f51ceeefa327710af215741ce13bcf4bb3d99d2aaf403f568c5db75a5
|
|
||||||
DIST libodfgen-0.1.7.tar.xz 384760 BLAKE2B 93066e52c0651e3714843764f0d023178cf0ddb52c1185f085c70180f4123cd26d79b9ea2c211a82f2681c42c8795c3f062f081161effa7fe821b64b54b82cd8 SHA512 eaf5c6646a9cacf54cb0416b08526f35d18d0618f3f64cf14f4b24537b0285da2786d2f6d6e2c204c8248f900d37287b2c5af79720b0d49452f67b14c86ea36e
|
DIST libodfgen-0.1.7.tar.xz 384760 BLAKE2B 93066e52c0651e3714843764f0d023178cf0ddb52c1185f085c70180f4123cd26d79b9ea2c211a82f2681c42c8795c3f062f081161effa7fe821b64b54b82cd8 SHA512 eaf5c6646a9cacf54cb0416b08526f35d18d0618f3f64cf14f4b24537b0285da2786d2f6d6e2c204c8248f900d37287b2c5af79720b0d49452f67b14c86ea36e
|
||||||
|
@ -1,45 +0,0 @@
|
|||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
EGIT_REPO_URI="git://git.code.sf.net/p/libwpd/libodfgen"
|
|
||||||
[[ ${PV} == 9999 ]] && inherit autotools git-r3
|
|
||||||
|
|
||||||
DESCRIPTION="Library to generate ODF documents from libwpd and libwpg"
|
|
||||||
HOMEPAGE="http://libwpd.sf.net"
|
|
||||||
[[ ${PV} == 9999 ]] || SRC_URI="mirror://sourceforge/libwpd/${P}.tar.xz"
|
|
||||||
|
|
||||||
LICENSE="|| ( LGPL-2.1 MPL-2.0 )"
|
|
||||||
SLOT="0"
|
|
||||||
|
|
||||||
[[ ${PV} == 9999 ]] || \
|
|
||||||
KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86 ~amd64-linux ~x86-linux"
|
|
||||||
|
|
||||||
IUSE="doc"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
dev-libs/librevenge
|
|
||||||
"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
virtual/pkgconfig
|
|
||||||
doc? ( app-doc/doxygen )
|
|
||||||
"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
[[ ${PV} == 9999 ]] && eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
econf \
|
|
||||||
--disable-static \
|
|
||||||
--disable-werror \
|
|
||||||
--with-sharedptr=c++11 \
|
|
||||||
$(use_with doc docs)
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
find "${D}" -name '*.la' -delete || die
|
|
||||||
}
|
|
Binary file not shown.
@ -1,5 +1,4 @@
|
|||||||
DIST antlr-3.4-complete.jar 2388361 BLAKE2B 561c1dffe464bbc387075df6d95bbdcab27315ba5679cfa10f85d6449baad3d05f4daa45af93d9b127d9fedb8c7e44c45537f1a84b4c4d877c40b9812620f669 SHA512 04be4dfba3a21f3ab9d9e439a64958bd8e844a9f151b798383bd9e0dd6ebc416783ae7cb1d1dbb27fb7288ab9756b13b8338cdb8ceb41a10949c852ad45ab1f2
|
DIST antlr-3.4-complete.jar 2388361 BLAKE2B 561c1dffe464bbc387075df6d95bbdcab27315ba5679cfa10f85d6449baad3d05f4daa45af93d9b127d9fedb8c7e44c45537f1a84b4c4d877c40b9812620f669 SHA512 04be4dfba3a21f3ab9d9e439a64958bd8e844a9f151b798383bd9e0dd6ebc416783ae7cb1d1dbb27fb7288ab9756b13b8338cdb8ceb41a10949c852ad45ab1f2
|
||||||
DIST antlr-4.7.1-complete.jar 2240116 BLAKE2B 3acf99b3701b2092cad2fb6e91f27791cbedd82f26888d7329e481be29fce4ec644eb57f663e515b92dea46c24222d4fb090aae5cae30c57c412a38932ea72ed SHA512 de1c230d7294e05ac7b451cbc639bab9d416a674b281e21092fb4a9329ca8b6d4b92b9ad78a9771cff475a1610f1d0419819c4619bdff36c683019da67ef13b1
|
DIST antlr-4.7.1-complete.jar 2240116 BLAKE2B 3acf99b3701b2092cad2fb6e91f27791cbedd82f26888d7329e481be29fce4ec644eb57f663e515b92dea46c24222d4fb090aae5cae30c57c412a38932ea72ed SHA512 de1c230d7294e05ac7b451cbc639bab9d416a674b281e21092fb4a9329ca8b6d4b92b9ad78a9771cff475a1610f1d0419819c4619bdff36c683019da67ef13b1
|
||||||
DIST mysql-workbench-community-6.3.10-src.tar.gz 14969443 BLAKE2B 57f7b0d661bc8211e123a027ce12e71be5637c189cc6e3b949df4f8e5a7edfc8c78f3c6e85b7292347dce2b720ee79070ac8fb91224396a3afae4104583d4325 SHA512 f892853a5f8b000c424b945c38680e17b041699fe2b03743b71c803de6cedeb12e3f69ad94d1c737e23f26d8608026e18fb29d31be6b3a2ffea1d78229212a4d
|
DIST mysql-workbench-community-6.3.10-src.tar.gz 14969443 BLAKE2B 57f7b0d661bc8211e123a027ce12e71be5637c189cc6e3b949df4f8e5a7edfc8c78f3c6e85b7292347dce2b720ee79070ac8fb91224396a3afae4104583d4325 SHA512 f892853a5f8b000c424b945c38680e17b041699fe2b03743b71c803de6cedeb12e3f69ad94d1c737e23f26d8608026e18fb29d31be6b3a2ffea1d78229212a4d
|
||||||
DIST mysql-workbench-community-6.3.4-src.tar.gz 14954524 BLAKE2B 54941a760cc44b745039a59d0ad88e109605c47285b34098d7ebc9e7a32758027c07219f7b8dc96fad198fbc68086582ccfa5ba7e7a35fa1fff8ff57b467f91f SHA512 8d7eacd46fd3cac912dac2fdbc0669759f9411796507cca76b0ad47228381b15b7f88e60a7a5a8763e704b456884828783cb0c7ed218025edb35aa5033d7d02f
|
|
||||||
DIST mysql-workbench-community-8.0.13-src.tar.gz 16047080 BLAKE2B c31560a978620ae04210b452bcf90b75e7eb2ec20335470054b2640220ed29c3476f5ee1bacd86575f9b42481de5452e94b8d7a5e8f56eb17ea0770be19dc296 SHA512 d6f7aeb85e1bb59474d432f8088fd5603e5b539f3fce9c78db2aeaa8de3bc9356de09a6486138e07a29dd62b971e7601cce12a2e4a9f7309364081ee5db4b55d
|
DIST mysql-workbench-community-8.0.13-src.tar.gz 16047080 BLAKE2B c31560a978620ae04210b452bcf90b75e7eb2ec20335470054b2640220ed29c3476f5ee1bacd86575f9b42481de5452e94b8d7a5e8f56eb17ea0770be19dc296 SHA512 d6f7aeb85e1bb59474d432f8088fd5603e5b539f3fce9c78db2aeaa8de3bc9356de09a6486138e07a29dd62b971e7601cce12a2e4a9f7309364081ee5db4b55d
|
||||||
|
@ -1,106 +0,0 @@
|
|||||||
# Copyright 1999-2018 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
GCONF_DEBUG="no"
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 )
|
|
||||||
PYTHON_REQ_USE="sqlite"
|
|
||||||
|
|
||||||
inherit gnome2 eutils flag-o-matic python-single-r1 cmake-utils
|
|
||||||
|
|
||||||
MY_P="${PN}-community-${PV}-src"
|
|
||||||
|
|
||||||
DESCRIPTION="MySQL Workbench"
|
|
||||||
HOMEPAGE="http://dev.mysql.com/workbench/"
|
|
||||||
SRC_URI="mirror://mysql/Downloads/MySQLGUITools/${MY_P}.tar.gz https://github.com/antlr/website-antlr3/blob/gh-pages/download/antlr-3.4-complete.jar?raw=true -> antlr-3.4-complete.jar"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
|
|
||||||
IUSE="debug doc gnome-keyring"
|
|
||||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
|
||||||
|
|
||||||
# glibc: deprecated mutex functions, removed in 2.36.0
|
|
||||||
CDEPEND="${PYTHON_DEPS}
|
|
||||||
dev-libs/glib:2
|
|
||||||
dev-cpp/atkmm
|
|
||||||
dev-cpp/pangomm
|
|
||||||
>=dev-cpp/glibmm-2.14:2
|
|
||||||
>=dev-cpp/gtkmm-2.14:2.4
|
|
||||||
dev-libs/atk
|
|
||||||
x11-libs/pango
|
|
||||||
>=x11-libs/gtk+-2.20:2
|
|
||||||
gnome-base/libglade:2.0
|
|
||||||
>=x11-libs/cairo-1.5.12[glib,svg]
|
|
||||||
dev-libs/libsigc++:2
|
|
||||||
>=dev-libs/boost-1.55.0[nls]
|
|
||||||
>=dev-cpp/ctemplate-0.95
|
|
||||||
>=dev-libs/libxml2-2.6.2:2
|
|
||||||
dev-libs/libzip
|
|
||||||
dev-libs/libpcre[cxx]
|
|
||||||
>=sci-libs/gdal-1.11.1-r1[-mdb]
|
|
||||||
virtual/opengl
|
|
||||||
>=dev-lang/lua-5.1:0[deprecated]
|
|
||||||
|| ( sys-libs/e2fsprogs-libs dev-libs/ossp-uuid )
|
|
||||||
dev-libs/tinyxml[stl]
|
|
||||||
dev-db/mysql-connector-c++
|
|
||||||
dev-db/vsqlite++
|
|
||||||
|| ( dev-db/libiodbc dev-db/unixODBC )
|
|
||||||
gnome-keyring? ( gnome-base/libgnome-keyring )
|
|
||||||
dev-python/pexpect
|
|
||||||
>=dev-python/paramiko-1.7.4
|
|
||||||
"
|
|
||||||
|
|
||||||
# lua perhaps no longer needed? Was used via libgrt only
|
|
||||||
|
|
||||||
RDEPEND="${CDEPEND}
|
|
||||||
app-admin/sudo
|
|
||||||
>=sys-apps/net-tools-1.60_p20120127084908"
|
|
||||||
|
|
||||||
DEPEND="${CDEPEND}
|
|
||||||
dev-lang/swig
|
|
||||||
virtual/jre
|
|
||||||
virtual/pkgconfig"
|
|
||||||
|
|
||||||
S="${WORKDIR}"/"${MY_P}"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
unpack ${PN}-community-${PV}-src.tar.gz
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
## Patch CMakeLists.txt
|
|
||||||
epatch "${FILESDIR}/${PN}-6.2.3-CMakeLists.patch" \
|
|
||||||
"${FILESDIR}/${PN}-6.2.5-wbcopytables.patch" \
|
|
||||||
"${FILESDIR}/${PN}-6.3.3-mysql_options4.patch" \
|
|
||||||
"${FILESDIR}/${PN}-6.3.4-cxx11.patch" \
|
|
||||||
"${FILESDIR}/${PN}-6.3.4-gtk.patch"
|
|
||||||
|
|
||||||
sed -i -e '/target_link_libraries/ s/sqlparser.grt/sqlparser.grt sqlparser/' \
|
|
||||||
modules/db.mysql.sqlparser/CMakeLists.txt
|
|
||||||
|
|
||||||
## remove hardcoded CXXFLAGS
|
|
||||||
sed -i -e 's/-O0 -g3//' ext/scintilla/gtk/CMakeLists.txt || die
|
|
||||||
|
|
||||||
## package is very fragile...
|
|
||||||
strip-flags
|
|
||||||
|
|
||||||
cmake-utils_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
append-cxxflags -std=c++11
|
|
||||||
local mycmakeargs=(
|
|
||||||
$(cmake-utils_use_use gnome-keyring GNOME_KEYRING)
|
|
||||||
-DLIB_INSTALL_DIR="/usr/$(get_libdir)"
|
|
||||||
-DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
|
|
||||||
-DPYTHON_LIBRARY="$(python_get_library_path)"
|
|
||||||
)
|
|
||||||
ANTLR_JAR_PATH="${DISTDIR}/antlr-3.4-complete.jar" cmake-utils_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
# Work around parallel build issues, bug 507838
|
|
||||||
cmake-utils_src_compile -j1
|
|
||||||
}
|
|
Binary file not shown.
@ -0,0 +1,24 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit rebar
|
||||||
|
|
||||||
|
DESCRIPTION="TLS/SSL native driver for Erlang and Elixir"
|
||||||
|
HOMEPAGE="https://github.com/processone/fast_tls"
|
||||||
|
SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
|
||||||
|
-> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
|
||||||
|
IUSE="libressl"
|
||||||
|
|
||||||
|
DEPEND=">=dev-erlang/p1_utils-1.0.13
|
||||||
|
>=dev-lang/erlang-17.1
|
||||||
|
!libressl? ( dev-libs/openssl:0= )
|
||||||
|
libressl? ( dev-libs/libressl:0= )"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
DOCS=( CHANGELOG.md README.md )
|
Binary file not shown.
@ -0,0 +1,109 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux"
|
||||||
|
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
IUSE="nls minimal pax_kernel xen doc"
|
||||||
|
|
||||||
|
inherit autotools eutils linux-info mono-env flag-o-matic pax-utils multilib-minimal
|
||||||
|
|
||||||
|
DESCRIPTION="Mono runtime and class libraries, a C# compiler/interpreter"
|
||||||
|
HOMEPAGE="http://www.mono-project.com/Main_Page"
|
||||||
|
LICENSE="MIT LGPL-2.1 GPL-2 BSD-4 NPL-1.1 Ms-PL GPL-2-with-linking-exception IDPL"
|
||||||
|
|
||||||
|
SRC_URI="http://download.mono-project.com/sources/mono/${P}.tar.bz2"
|
||||||
|
|
||||||
|
COMMONDEPEND="
|
||||||
|
!minimal? ( >=dev-dotnet/libgdiplus-2.10 )
|
||||||
|
ia64? ( sys-libs/libunwind )
|
||||||
|
nls? ( sys-devel/gettext )
|
||||||
|
"
|
||||||
|
RDEPEND="${COMMONDEPEND}
|
||||||
|
|| ( www-client/links www-client/lynx )
|
||||||
|
"
|
||||||
|
DEPEND="${COMMONDEPEND}
|
||||||
|
sys-devel/bc
|
||||||
|
virtual/yacc
|
||||||
|
pax_kernel? ( sys-apps/elfix )
|
||||||
|
dev-util/cmake
|
||||||
|
"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-5.0.1.1-x86_32.patch
|
||||||
|
"${FILESDIR}"/mono-5.12-try-catch.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
linux-info_pkg_setup
|
||||||
|
if use kernel_linux; then
|
||||||
|
if linux_config_exists; then
|
||||||
|
linux_chkconfig_builtin SYSVIPC || die "SYSVIPC not enabled in the kernel"
|
||||||
|
else
|
||||||
|
# https://github.com/gentoo/gentoo/blob/f200e625bda8de696a28338318c9005b69e34710/eclass/linux-info.eclass#L686
|
||||||
|
ewarn "kernel config not found"
|
||||||
|
ewarn "If CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling."
|
||||||
|
ewarn "See https://bugs.gentoo.org/261869 for more info."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
mono-env_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# we need to sed in the paxctl-ng -mr in the runtime/mono-wrapper.in so it don't
|
||||||
|
# get killed in the build proces when MPROTECT is enable. #286280
|
||||||
|
# RANDMMAP kill the build proces to #347365
|
||||||
|
# use paxmark.sh to get PT/XT logic #532244
|
||||||
|
if use pax_kernel ; then
|
||||||
|
ewarn "We are disabling MPROTECT on the mono binary."
|
||||||
|
|
||||||
|
# issue 9 : https://github.com/Heather/gentoo-dotnet/issues/9
|
||||||
|
sed '/exec "/ i\paxmark.sh -mr "$r/@mono_runtime@"' -i "${S}"/runtime/mono-wrapper.in || die "Failed to sed mono-wrapper.in"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# mono build system can fail otherwise
|
||||||
|
strip-flags
|
||||||
|
|
||||||
|
# prebuilt files were left in tarball by accident:
|
||||||
|
rm -rv external/corefx/src/Native/Unix/System.Native/.libs || die
|
||||||
|
rm -rv external/corefx/src/Native/Unix/System.Native/*.{o,lo} || die
|
||||||
|
|
||||||
|
default
|
||||||
|
# PATCHES contains configure.ac patch
|
||||||
|
eautoreconf
|
||||||
|
multilib_copy_sources
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_configure() {
|
||||||
|
local myeconfargs=(
|
||||||
|
--disable-silent-rules
|
||||||
|
$(use_with xen xen_opt)
|
||||||
|
--without-ikvm-native
|
||||||
|
--disable-dtrace
|
||||||
|
$(use_with doc mcs-docs)
|
||||||
|
$(use_enable nls)
|
||||||
|
)
|
||||||
|
|
||||||
|
econf "${myeconfargs[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_test() {
|
||||||
|
cd mcs/tests || die
|
||||||
|
emake check
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install() {
|
||||||
|
default_src_install
|
||||||
|
|
||||||
|
# Remove files not respecting LDFLAGS and that we are not supposed to provide, see Fedora
|
||||||
|
# mono.spec and http://www.mail-archive.com/mono-devel-list@lists.ximian.com/msg24870.html
|
||||||
|
# for reference.
|
||||||
|
rm -f "${ED}"/usr/lib/mono/{2.0,4.5}/mscorlib.dll.so || die
|
||||||
|
rm -f "${ED}"/usr/lib/mono/{2.0,4.5}/mcs.exe.so || die
|
||||||
|
}
|
Binary file not shown.
@ -0,0 +1,26 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
DIST_AUTHOR=MIKEM
|
||||||
|
DIST_VERSION=0.08
|
||||||
|
inherit perl-module
|
||||||
|
|
||||||
|
DESCRIPTION="OpenSSL ECDSA (Elliptic Curve Digital Signature Algorithm) Perl extension"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="libressl"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-perl/Crypt-OpenSSL-EC-0.50.0
|
||||||
|
!libressl? ( dev-libs/openssl:0 )
|
||||||
|
libressl? ( dev-libs/libressl )
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
virtual/perl-ExtUtils-MakeMaker
|
||||||
|
"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${P}-0001-Port-to-OpenSSL-1.1.0.patch"
|
||||||
|
)
|
@ -0,0 +1,193 @@
|
|||||||
|
From 7a707a2bb0b0c6de1eb98cef74a5d1016f0e8c9a Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
||||||
|
Date: Tue, 11 Oct 2016 16:15:43 +0200
|
||||||
|
Subject: [PATCH] Port to OpenSSL 1.1.0
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
OpenSSL 1.1.0 hid ECDSA structure internals and provided methods
|
||||||
|
instead.
|
||||||
|
|
||||||
|
This patch uses the methods and provides their copies in the case of
|
||||||
|
older OpenSSL. Because the new OpenSSL API, ECDSA_SIG_set0(), cannot
|
||||||
|
set curve parameters individually and ECDSA_SIG_get0() returns yet
|
||||||
|
another reference, it's necessary to duplicate the other unchanged
|
||||||
|
paramater when calling set_r() or set_s().
|
||||||
|
|
||||||
|
This patch also stops exporting ECDSA_METHOD functions that were
|
||||||
|
removed from the new OpenSSL.
|
||||||
|
|
||||||
|
CPAN RT#118330
|
||||||
|
|
||||||
|
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
||||||
|
---
|
||||||
|
ECDSA.xs | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++--------------
|
||||||
|
1 file changed, 61 insertions(+), 17 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/ECDSA.xs b/ECDSA.xs
|
||||||
|
index 4016368..648303e 100644
|
||||||
|
--- a/ECDSA.xs
|
||||||
|
+++ b/ECDSA.xs
|
||||||
|
@@ -7,9 +7,34 @@
|
||||||
|
|
||||||
|
#include <openssl/ecdsa.h>
|
||||||
|
#include <openssl/err.h>
|
||||||
|
+#include <openssl/bn.h>
|
||||||
|
|
||||||
|
#include "const-c.inc"
|
||||||
|
|
||||||
|
+
|
||||||
|
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) || LIBRESSL_VERSION_NUMBER >= 0x2070000fL
|
||||||
|
+#include <openssl/ec.h>
|
||||||
|
+#else
|
||||||
|
+static void ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **pr,
|
||||||
|
+ const BIGNUM **ps) {
|
||||||
|
+ if (pr != NULL)
|
||||||
|
+ *pr = sig->r;
|
||||||
|
+ if (ps != NULL)
|
||||||
|
+ *ps = sig->s;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+static int ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s)
|
||||||
|
+{
|
||||||
|
+ if (r == NULL || s == NULL)
|
||||||
|
+ return 0;
|
||||||
|
+ BN_clear_free(sig->r);
|
||||||
|
+ BN_clear_free(sig->s);
|
||||||
|
+ sig->r = r;
|
||||||
|
+ sig->s = s;
|
||||||
|
+ return 1;
|
||||||
|
+}
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
MODULE = Crypt::OpenSSL::ECDSA PACKAGE = Crypt::OpenSSL::ECDSA
|
||||||
|
|
||||||
|
PROTOTYPES: ENABLE
|
||||||
|
@@ -17,7 +42,9 @@ INCLUDE: const-xs.inc
|
||||||
|
|
||||||
|
BOOT:
|
||||||
|
ERR_load_crypto_strings();
|
||||||
|
+#if OPENSSL_VERSION_NUMBER >= 0x10002000L && OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||||
|
ERR_load_ECDSA_strings();
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
#ECDSA_SIG *
|
||||||
|
#ECDSA_SIG_new()
|
||||||
|
@@ -61,10 +88,16 @@ ECDSA_do_verify(const unsigned char *dgst, const ECDSA_SIG *sig, EC_KEY* eckey);
|
||||||
|
OUTPUT:
|
||||||
|
RETVAL
|
||||||
|
|
||||||
|
-# These ECDSA_METHOD functions only became available in 1.0.2
|
||||||
|
+# These ECDSA_METHOD functions only became available in 1.0.2,
|
||||||
|
+# but some of them removed again in 1.1.0.
|
||||||
|
|
||||||
|
#if OPENSSL_VERSION_NUMBER >= 0x10002000L
|
||||||
|
|
||||||
|
+int
|
||||||
|
+ECDSA_size(const EC_KEY *eckey)
|
||||||
|
+
|
||||||
|
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||||
|
+
|
||||||
|
const ECDSA_METHOD *
|
||||||
|
ECDSA_OpenSSL()
|
||||||
|
|
||||||
|
@@ -77,9 +110,6 @@ ECDSA_get_default_method()
|
||||||
|
int
|
||||||
|
ECDSA_set_method(EC_KEY *eckey, const ECDSA_METHOD *meth)
|
||||||
|
|
||||||
|
-int
|
||||||
|
-ECDSA_size(const EC_KEY *eckey)
|
||||||
|
-
|
||||||
|
ECDSA_METHOD *
|
||||||
|
ECDSA_METHOD_new(ECDSA_METHOD *ecdsa_method=0)
|
||||||
|
|
||||||
|
@@ -95,7 +125,7 @@ ECDSA_METHOD_set_name(ECDSA_METHOD *ecdsa_method, char *name)
|
||||||
|
void
|
||||||
|
ERR_load_ECDSA_strings()
|
||||||
|
|
||||||
|
-
|
||||||
|
+#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@@ -135,11 +165,13 @@ SV *
|
||||||
|
get_r(ecdsa_sig)
|
||||||
|
ECDSA_SIG *ecdsa_sig
|
||||||
|
PREINIT:
|
||||||
|
+ const BIGNUM *r;
|
||||||
|
unsigned char *to;
|
||||||
|
STRLEN len;
|
||||||
|
CODE:
|
||||||
|
to = malloc(sizeof(char) * 128);
|
||||||
|
- len = BN_bn2bin(ecdsa_sig->r, to);
|
||||||
|
+ ECDSA_SIG_get0(ecdsa_sig, &r, NULL);
|
||||||
|
+ len = BN_bn2bin(r, to);
|
||||||
|
RETVAL = newSVpvn((const char*)to, len);
|
||||||
|
free(to);
|
||||||
|
OUTPUT:
|
||||||
|
@@ -149,11 +181,13 @@ SV *
|
||||||
|
get_s(ecdsa_sig)
|
||||||
|
ECDSA_SIG *ecdsa_sig
|
||||||
|
PREINIT:
|
||||||
|
+ const BIGNUM *s;
|
||||||
|
unsigned char *to;
|
||||||
|
STRLEN len;
|
||||||
|
CODE:
|
||||||
|
to = malloc(sizeof(char) * 128);
|
||||||
|
- len = BN_bn2bin(ecdsa_sig->s, to);
|
||||||
|
+ ECDSA_SIG_get0(ecdsa_sig, NULL, &s);
|
||||||
|
+ len = BN_bn2bin(s, to);
|
||||||
|
RETVAL = newSVpvn((const char*)to, len);
|
||||||
|
free(to);
|
||||||
|
OUTPUT:
|
||||||
|
@@ -164,26 +198,36 @@ set_r(ecdsa_sig, r_SV)
|
||||||
|
ECDSA_SIG *ecdsa_sig
|
||||||
|
SV * r_SV
|
||||||
|
PREINIT:
|
||||||
|
- char *s;
|
||||||
|
+ char *string;
|
||||||
|
STRLEN len;
|
||||||
|
+ BIGNUM *r;
|
||||||
|
+ BIGNUM *s;
|
||||||
|
CODE:
|
||||||
|
- s = SvPV(r_SV, len);
|
||||||
|
- if (ecdsa_sig->r)
|
||||||
|
- BN_free(ecdsa_sig->r);
|
||||||
|
- ecdsa_sig->r = BN_bin2bn((const unsigned char *)s, len, NULL);
|
||||||
|
+ string = SvPV(r_SV, len);
|
||||||
|
+ r = BN_bin2bn((const unsigned char *)string, len, NULL);
|
||||||
|
+ ECDSA_SIG_get0(ecdsa_sig, NULL, (const BIGNUM**)&s);
|
||||||
|
+ s = BN_dup(s);
|
||||||
|
+ if (NULL == s)
|
||||||
|
+ croak("Could not duplicate unchanged ECDSA paramater");
|
||||||
|
+ ECDSA_SIG_set0(ecdsa_sig, r, s);
|
||||||
|
|
||||||
|
void
|
||||||
|
set_s(ecdsa_sig, s_SV)
|
||||||
|
ECDSA_SIG *ecdsa_sig
|
||||||
|
SV * s_SV
|
||||||
|
PREINIT:
|
||||||
|
- char *s;
|
||||||
|
+ char *string;
|
||||||
|
STRLEN len;
|
||||||
|
+ BIGNUM *r;
|
||||||
|
+ BIGNUM *s;
|
||||||
|
CODE:
|
||||||
|
- s = SvPV(s_SV, len);
|
||||||
|
- if (ecdsa_sig->s)
|
||||||
|
- BN_free(ecdsa_sig->s);
|
||||||
|
- ecdsa_sig->s = BN_bin2bn((const unsigned char *)s, len, NULL);
|
||||||
|
+ string = SvPV(s_SV, len);
|
||||||
|
+ s = BN_bin2bn((const unsigned char *)string, len, NULL);
|
||||||
|
+ ECDSA_SIG_get0(ecdsa_sig, (const BIGNUM**)&r, NULL);
|
||||||
|
+ r = BN_dup(r);
|
||||||
|
+ if (NULL == r)
|
||||||
|
+ croak("Could not duplicate unchanged ECDSA paramater");
|
||||||
|
+ ECDSA_SIG_set0(ecdsa_sig, r, s);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
2.7.4
|
||||||
|
|
Binary file not shown.
@ -1 +1,2 @@
|
|||||||
DIST Net-SSLeay-1.82.tar.gz 399194 BLAKE2B 0c8aeb3085b102b71284266904ee88a8558070644aaa6dd0c5f78db0bfccb0e7456c8ba62a549d7ab245a02ddc7e856bc326d503f63268ee0761290e41b97e4d SHA512 758c41f4916a55b5085167e5c6a2732a5ee70dbeb8f42e791cd957957ba4a59f724c072d3fa50a6b42ae3b22cf3ecb8738c3f8963990a7030117b73c2dcc0716
|
DIST Net-SSLeay-1.82.tar.gz 399194 BLAKE2B 0c8aeb3085b102b71284266904ee88a8558070644aaa6dd0c5f78db0bfccb0e7456c8ba62a549d7ab245a02ddc7e856bc326d503f63268ee0761290e41b97e4d SHA512 758c41f4916a55b5085167e5c6a2732a5ee70dbeb8f42e791cd957957ba4a59f724c072d3fa50a6b42ae3b22cf3ecb8738c3f8963990a7030117b73c2dcc0716
|
||||||
|
DIST Net-SSLeay-1.85.tar.gz 418349 BLAKE2B 0f639145e5be9406264cc7ef6240a30e0d62e631bfe29b8d1cbc85ab3bf721e8d344a8472faaa87816a5d148cedd7f13faeec925d0632fc1b75ecd1c5c44f6d1 SHA512 74e0f2f56b707f1ff845c78c1fa7ce26a71b8f943bb99e994d4e065d1f42259fe4cd1a6a17d333459727534158f9541f116dbc8515122380807d9450b0faa26b
|
||||||
|
@ -0,0 +1,62 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
DIST_AUTHOR=MIKEM
|
||||||
|
DIST_VERSION=1.85
|
||||||
|
DIST_EXAMPLES=("examples/*")
|
||||||
|
inherit multilib perl-module
|
||||||
|
|
||||||
|
DESCRIPTION="Perl extension for using OpenSSL"
|
||||||
|
|
||||||
|
LICENSE="openssl"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
IUSE="libressl test minimal examples"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
!libressl? ( dev-libs/openssl:0= )
|
||||||
|
libressl? ( dev-libs/libressl:0= )
|
||||||
|
virtual/perl-MIME-Base64
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
virtual/perl-ExtUtils-MakeMaker
|
||||||
|
test? (
|
||||||
|
!minimal? (
|
||||||
|
dev-perl/Test-Exception
|
||||||
|
dev-perl/Test-Warn
|
||||||
|
dev-perl/Test-NoWarnings
|
||||||
|
)
|
||||||
|
virtual/perl-Test-Simple
|
||||||
|
)
|
||||||
|
"
|
||||||
|
export OPTIMIZE="$CFLAGS"
|
||||||
|
export OPENSSL_PREFIX=${EPREFIX}/usr
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${PN}-1.82-respect-cflags.patch"
|
||||||
|
"${FILESDIR}/${PN}-1.82-fix-libdir.patch"
|
||||||
|
"${FILESDIR}/${PN}-1.82-fix-network-tests.patch"
|
||||||
|
)
|
||||||
|
PERL_RM_FILES=(
|
||||||
|
# Hateful author tests
|
||||||
|
't/local/01_pod.t'
|
||||||
|
't/local/02_pod_coverage.t'
|
||||||
|
't/local/kwalitee.t'
|
||||||
|
# Broken under FEATURES="network-sandbox"
|
||||||
|
# https://rt.cpan.org/Ticket/Display.html?id=128207
|
||||||
|
't/local/06_tcpecho.t'
|
||||||
|
't/local/07_sslecho.t'
|
||||||
|
)
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
if use test && has network ${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}}; then
|
||||||
|
export NETWORK_TESTS=yes
|
||||||
|
else
|
||||||
|
use test && einfo "Network tests will be skipped without DIST_TEST_OVERRIDE=~network"
|
||||||
|
export NETWORK_TESTS=no
|
||||||
|
fi
|
||||||
|
export LIBDIR=$(get_libdir)
|
||||||
|
perl-module_src_configure
|
||||||
|
}
|
Binary file not shown.
@ -1,2 +1,3 @@
|
|||||||
DIST CherryPy-13.1.0.tar.gz 687221 BLAKE2B ab9c8f50026e26d171877e4e68f1c5a53fa8519190bcc577e12999cdf8a7f52be37f4ba9ed83a276a9f33676839ec63bff68aa8f9f51ddf15557e09123bf2530 SHA512 c32cf009d6a5b557560a00cde0f47a01ae481c7f60b7f340e5c99bf2d7c757e7c7cbf3ef2f4f71c172057aa09ca332f2d211cc97623ea29ba9f17287c7bc42dd
|
DIST CherryPy-13.1.0.tar.gz 687221 BLAKE2B ab9c8f50026e26d171877e4e68f1c5a53fa8519190bcc577e12999cdf8a7f52be37f4ba9ed83a276a9f33676839ec63bff68aa8f9f51ddf15557e09123bf2530 SHA512 c32cf009d6a5b557560a00cde0f47a01ae481c7f60b7f340e5c99bf2d7c757e7c7cbf3ef2f4f71c172057aa09ca332f2d211cc97623ea29ba9f17287c7bc42dd
|
||||||
|
DIST CherryPy-18.1.0.tar.gz 682792 BLAKE2B 0e072bf21656778ff8d64e87a6b19c8c5e9a3057312ebd3155b3b876432709f6f205f267cd9a105727153d458daab3e7113ffe9b3c49f911bd956bf72a19086c SHA512 58ae40ef62efeda051bf5dd35768a599094792d06a0e7c6e34c21cc5b003b700f43a02460d38a00067d255939e341fc438d248e3499fad76ccc8100f8eac94d3
|
||||||
DIST CherryPy-3.8.0.tar.gz 433711 BLAKE2B e1b4a554138a61e8c6313c3055723583d812e573a352d67bd5448f799e4f2f22694b800810b53cd041c665e46d9555b471d1da91c252ade96459778d7a5c07fa SHA512 25f84093e30d814c0980f7d77b98492113470c3297c66ee8652e40650757f8e2b7db01bb8de6d7a1ea9b4bed8b764502b1f563ac6f0d082970bc2d46739d19c2
|
DIST CherryPy-3.8.0.tar.gz 433711 BLAKE2B e1b4a554138a61e8c6313c3055723583d812e573a352d67bd5448f799e4f2f22694b800810b53cd041c665e46d9555b471d1da91c252ade96459778d7a5c07fa SHA512 25f84093e30d814c0980f7d77b98492113470c3297c66ee8652e40650757f8e2b7db01bb8de6d7a1ea9b4bed8b764502b1f563ac6f0d082970bc2d46739d19c2
|
||||||
|
@ -0,0 +1,44 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy3 )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
MY_P="CherryPy-${PV}"
|
||||||
|
|
||||||
|
DESCRIPTION="CherryPy is a pythonic, object-oriented HTTP framework"
|
||||||
|
HOMEPAGE="https://www.cherrypy.org https://pypi.org/project/CherryPy/"
|
||||||
|
SRC_URI="mirror://pypi/C/CherryPy/${MY_P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~x86"
|
||||||
|
IUSE="test"
|
||||||
|
|
||||||
|
RDEPEND=">=dev-python/cheroot-5.9.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/portend-2.1.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/six-1.11.0[${PYTHON_USEDEP}]"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||||
|
dev-python/setuptools_scm[${PYTHON_USEDEP}]
|
||||||
|
test? (
|
||||||
|
dev-python/backports-unittest-mock[${PYTHON_USEDEP}]
|
||||||
|
dev-python/path-py[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest-cov[${PYTHON_USEDEP}]
|
||||||
|
)"
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
|
python_prepare_all() {
|
||||||
|
# UnicodeEncodeError: 'ascii' codec can't encode character u'\u2603' in position 0: ordinal not in range(128)
|
||||||
|
sed -e 's|@pytest.mark.xfail(py27_on_windows|@pytest.mark.xfail(sys.version_info < (3,)|' \
|
||||||
|
-i cherrypy/test/test_static.py || die
|
||||||
|
distutils-r1_python_prepare_all
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
py.test -v || die "tests failed under ${EPTYHON}"
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
DIST PyICU-2.0.2.tar.gz 194525 BLAKE2B 9ef0c5defdebfd65760c6de5782308eac5433fd8474b9802ed1a79db494a259c88f22286b0a98b25bdcec22cbf78a3a7e411d8a9a7a81b07a2112204d6b44141 SHA512 b3715a0f88227a41b56988ee98e795fe398867c2788b2929e0d4f83bfe9519ff01648eb23cfe8d1d9073930a4d7220c0ad5ebcf2652d8fa3ec43e4c4a4bcf091
|
DIST PyICU-2.0.2.tar.gz 194525 BLAKE2B 9ef0c5defdebfd65760c6de5782308eac5433fd8474b9802ed1a79db494a259c88f22286b0a98b25bdcec22cbf78a3a7e411d8a9a7a81b07a2112204d6b44141 SHA512 b3715a0f88227a41b56988ee98e795fe398867c2788b2929e0d4f83bfe9519ff01648eb23cfe8d1d9073930a4d7220c0ad5ebcf2652d8fa3ec43e4c4a4bcf091
|
||||||
DIST PyICU-2.0.3.tar.gz 201076 BLAKE2B cb388e4e6d6df2417312820cbe8482a8b02c5cfd639950b32d5ab5e1b1815f85e8fc870a2808042f085bee6ec93c6cb6dbea4466e745e93166714421d7d4ef25 SHA512 a08a34772fc8205660320d7ea1bea52cd9c21ff9edf0aef1059c9439406d4b69ab434b35347dce8928cff8051600d55cb71bcc74eb89f203037be629d83e044e
|
DIST PyICU-2.0.3.tar.gz 201076 BLAKE2B cb388e4e6d6df2417312820cbe8482a8b02c5cfd639950b32d5ab5e1b1815f85e8fc870a2808042f085bee6ec93c6cb6dbea4466e745e93166714421d7d4ef25 SHA512 a08a34772fc8205660320d7ea1bea52cd9c21ff9edf0aef1059c9439406d4b69ab434b35347dce8928cff8051600d55cb71bcc74eb89f203037be629d83e044e
|
||||||
DIST PyICU-2.1.tar.gz 203402 BLAKE2B 47541bd2f59553cc577b726b41585df6a639deff79c0c48d9ec2388bc8c9d69b9eef2cad642418961c255a36c7b43e255c5487a9dcac2a695267f29a790bb630 SHA512 35477cd960828d6ce853286e2de8e14a3b4cdc8d6975fd7eaf7e262f252c298f235d569d02a3844432e19dccffed13395c80074623ad196fab6c87f55f3d560d
|
DIST PyICU-2.1.tar.gz 203402 BLAKE2B 47541bd2f59553cc577b726b41585df6a639deff79c0c48d9ec2388bc8c9d69b9eef2cad642418961c255a36c7b43e255c5487a9dcac2a695267f29a790bb630 SHA512 35477cd960828d6ce853286e2de8e14a3b4cdc8d6975fd7eaf7e262f252c298f235d569d02a3844432e19dccffed13395c80074623ad196fab6c87f55f3d560d
|
||||||
|
DIST PyICU-2.2.tar.gz 211135 BLAKE2B f56e590ec4aefb61b6d3b37c807a018698ee97a632ccdd08f5f879cdccc576a6da1d31bb0ede54813be640ebdf600fe522a5c35ff417ac8e157c516a1b3bd7cc SHA512 30cce676fa502040e20fd4303baeebf0d83730abfedf79fdf3b69c1a3b52032a3337168b6e8902286dd4b46dda5bf894795995c6f1ef2a237fdabc374bb5ffcf
|
||||||
|
@ -0,0 +1,40 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
|
||||||
|
|
||||||
|
inherit distutils-r1 flag-o-matic
|
||||||
|
|
||||||
|
MY_PN="PyICU"
|
||||||
|
MY_P="${MY_PN}-${PV}"
|
||||||
|
|
||||||
|
DESCRIPTION="Python bindings for dev-libs/icu"
|
||||||
|
HOMEPAGE="https://github.com/ovalhub/pyicu"
|
||||||
|
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="test"
|
||||||
|
|
||||||
|
RDEPEND="${PYTHON_DEPS}
|
||||||
|
dev-libs/icu"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
test? ( dev-python/pytest
|
||||||
|
dev-python/six )"
|
||||||
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
|
DOCS=(CHANGES CREDITS README.md)
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
if [[ ${EPYTHON} == python2* ]]; then
|
||||||
|
# See Bug #644226
|
||||||
|
ewarn "Skipping tests for ${EPYTHON} because they are known to fail"
|
||||||
|
else
|
||||||
|
esetup.py test
|
||||||
|
fi
|
||||||
|
}
|
@ -1,6 +1,4 @@
|
|||||||
DIST pytest-3.10.1.tar.gz 892420 BLAKE2B 38849ae69bf4380bc1a99aa105cac04be078da4460373dfc16fa555238b2830fa2f5ae6c19de8aa2af9ac18d87c5d2705d62f7b2e67e4a62d843f6a28bbd76fd SHA512 30ff79c0fdcbeef68e1191ff400a20428e391717f06957f554b694b94baaaa565dca01346fe989c3e443c4402f3b2bdbd5564f6303a4447f933fb54cba45628f
|
DIST pytest-3.10.1.tar.gz 892420 BLAKE2B 38849ae69bf4380bc1a99aa105cac04be078da4460373dfc16fa555238b2830fa2f5ae6c19de8aa2af9ac18d87c5d2705d62f7b2e67e4a62d843f6a28bbd76fd SHA512 30ff79c0fdcbeef68e1191ff400a20428e391717f06957f554b694b94baaaa565dca01346fe989c3e443c4402f3b2bdbd5564f6303a4447f933fb54cba45628f
|
||||||
DIST pytest-3.2.2.tar.gz 786396 BLAKE2B e669da930890e902b0323ec3a6685080ddd889e74655f7b4cb08ec421651f987597021a31471aab5a32d637b99620ce7792cbdf8f85561db3bb10ff06a446ba1 SHA512 6df3a50e7d1efeaf7a283920b16d1daf800798f422bc851b0aacd2bbd5cb0a88c95f9057fae49943b9dfe6527ed552cdf8d983b944ab91d0af252ee4f6eb82db
|
DIST pytest-3.2.2.tar.gz 786396 BLAKE2B e669da930890e902b0323ec3a6685080ddd889e74655f7b4cb08ec421651f987597021a31471aab5a32d637b99620ce7792cbdf8f85561db3bb10ff06a446ba1 SHA512 6df3a50e7d1efeaf7a283920b16d1daf800798f422bc851b0aacd2bbd5cb0a88c95f9057fae49943b9dfe6527ed552cdf8d983b944ab91d0af252ee4f6eb82db
|
||||||
DIST pytest-3.4.2.tar.gz 812719 BLAKE2B 96623d6cdea4bd79778175c18c949938505f1862010f700f9a8cb85f445910381af391a5b69e664fbbfc254bf46502c798c72026772070236a0a3bca7aeeb3d6 SHA512 787065ab76d4482799bb2da9f024c9c383e68cc1cc01f3b80f6ed9444ca6383d20953615696ed4dd01668777b094cf5002b23c4ce51828879dcf8ebf2170c71b
|
DIST pytest-3.4.2.tar.gz 812719 BLAKE2B 96623d6cdea4bd79778175c18c949938505f1862010f700f9a8cb85f445910381af391a5b69e664fbbfc254bf46502c798c72026772070236a0a3bca7aeeb3d6 SHA512 787065ab76d4482799bb2da9f024c9c383e68cc1cc01f3b80f6ed9444ca6383d20953615696ed4dd01668777b094cf5002b23c4ce51828879dcf8ebf2170c71b
|
||||||
DIST pytest-3.6.3.tar.gz 830949 BLAKE2B 4c0df5d157b8bb0ac6261a793aac2a8074c869b1a7cbda3eda600c79648b3722eaf2a57514c1fece60e0aac324b8ed09e8e889dda268619204e9e1f1637e1c9b SHA512 e18d8e972cb1b05b037b9441eea5981ce036d8e2c2bab80f6e50f283df9bd08740296133990424cf78449f6d3d2fbd1d59709770aa972af99fe061583f2d79a7
|
DIST pytest-4.1.0.tar.gz 902235 BLAKE2B 6289d13f6d81130fe4a1ea25dbe93c76206cd61c11e3c18bb5febd92539f37f45144565680a6df097667a5e940e545e7973193abd214bff7b9287d9b42b00e56 SHA512 30cbefa066728b72063b21190df74b7cbf56d045e87307915af45e3ff5cdbb76c79dd0c2428425c2db9f8f0ba99a116d787526dc806801787b89a7862dd9e56e
|
||||||
DIST pytest-3.8.2.tar.gz 869668 BLAKE2B 91d75481e4ef36ab06654b340751a33a96b9f6187cdfc65694973e2d4d7ddc5806fe673c87f0aa442c6c657a953b36c22d288eee8f61cc002be4be803bc98111 SHA512 5420de07ff741f64bcb7fce7bf3b5097cf63be2539c2e694c168bd824ba468ca87cb17be801b72b972ab417da98d1b5473f319afd642bf5c6c0270e3a697d016
|
|
||||||
DIST pytest-4.0.2.tar.gz 904958 BLAKE2B ea245fab1363350d6e9aa0eab4aa5cd732561c6f4192e90f2fdc68b1a31941b91bde23b9840c3df7804a4712b8d26bd3b65d2789988e2994ad7c61a272184804 SHA512 6c77024cdd0a14ad417d7acece89e6b06530ceec1d6950a7cae265bddff44182d1839ced59c34ed9add8eb55214d69f01bd77499b8d3b483ada5ba47bca28802
|
|
||||||
|
@ -1,29 +0,0 @@
|
|||||||
https://salsa.debian.org/python-team/modules/pytest/commit/405c05a0827592515de76e23c94de1f7773273e6.patch
|
|
||||||
|
|
||||||
(updated by mgorny for 3.6.3 -- upstream quoting changes)
|
|
||||||
|
|
||||||
From 405c05a0827592515de76e23c94de1f7773273e6 Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Ond=C5=99ej=20Nov=C3=BD?= <onovy@debian.org>
|
|
||||||
Date: Thu, 10 May 2018 11:42:56 +0200
|
|
||||||
Subject: [PATCH] Fix PyPy SyntaxError offset in tests
|
|
||||||
|
|
||||||
---
|
|
||||||
testing/code/test_source.py | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/testing/code/test_source.py b/testing/code/test_source.py
|
|
||||||
index fcce3fa..22278d8 100644
|
|
||||||
--- a/testing/code/test_source.py
|
|
||||||
+++ b/testing/code/test_source.py
|
|
||||||
@@ -117,7 +117,7 @@ def test_source_strip_multiline():
|
|
||||||
def test_syntaxerror_rerepresentation():
|
|
||||||
ex = pytest.raises(SyntaxError, _pytest._code.compile, "xyz xyz")
|
|
||||||
assert ex.value.lineno == 1
|
|
||||||
- assert ex.value.offset in (4, 7) # XXX pypy/jython versus cpython?
|
|
||||||
+ assert ex.value.offset in (4, 5, 7) # XXX pypy/jython versus cpython?
|
|
||||||
assert ex.value.text.strip(), "x x"
|
|
||||||
|
|
||||||
|
|
||||||
--
|
|
||||||
2.18.0
|
|
||||||
|
|
@ -1,85 +0,0 @@
|
|||||||
# Copyright 1999-2018 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy{,3} )
|
|
||||||
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="Simple powerful testing with Python"
|
|
||||||
HOMEPAGE="http://pytest.org/"
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc64 ~sparc ~x86 ~amd64-fbsd"
|
|
||||||
# doc apparently requires sphinxcontrib_trio, not yet packaged
|
|
||||||
IUSE="test" # doc
|
|
||||||
|
|
||||||
# When bumping, please check setup.py for the proper py version
|
|
||||||
PY_VER="1.5.0"
|
|
||||||
COMMON_DEPEND="
|
|
||||||
>=dev-python/atomicwrites-1.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/attrs-17.2.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/more-itertools-4.0.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pluggy-0.5[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/py-${PY_VER}[${PYTHON_USEDEP}]
|
|
||||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/six-1.10.0[${PYTHON_USEDEP}]
|
|
||||||
virtual/python-funcsigs[${PYTHON_USEDEP}]"
|
|
||||||
|
|
||||||
# doc? (
|
|
||||||
# dev-python/pyyaml[${PYTHON_USEDEP}]
|
|
||||||
# dev-python/sphinx[${PYTHON_USEDEP}]
|
|
||||||
# )"
|
|
||||||
|
|
||||||
# flake & pytest-capturelog cause a number of tests to fail
|
|
||||||
DEPEND="${COMMON_DEPEND}
|
|
||||||
dev-python/setuptools_scm[${PYTHON_USEDEP}]
|
|
||||||
test? (
|
|
||||||
>=dev-python/hypothesis-3.5.2[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pytest-xdist-1.22.2[${PYTHON_USEDEP}]
|
|
||||||
dev-python/nose[${PYTHON_USEDEP}]
|
|
||||||
dev-python/mock[${PYTHON_USEDEP}]
|
|
||||||
dev-python/requests[${PYTHON_USEDEP}]
|
|
||||||
!!dev-python/flaky
|
|
||||||
!!dev-python/pytest-capturelog
|
|
||||||
)"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
${COMMON_DEPEND}
|
|
||||||
!<dev-python/logilab-common-1.3.0"
|
|
||||||
|
|
||||||
python_prepare_all() {
|
|
||||||
local PATCHES=(
|
|
||||||
"${FILESDIR}"/pytest-3.6.3-pypy-syntaxerror-offset.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
grep -qF "py>=${PY_VER}" setup.py || die "Incorrect dev-python/py dependency"
|
|
||||||
|
|
||||||
# Something in the ebuild environment causes this to hang/error.
|
|
||||||
# https://bugs.gentoo.org/598442
|
|
||||||
rm testing/test_pdb.py || die
|
|
||||||
|
|
||||||
# those tests appear to hang with python3.5+; TODO: investigate why
|
|
||||||
sed -i -e 's:test_runtest_location_shown_before_test_starts:_&:' \
|
|
||||||
testing/test_terminal.py || die
|
|
||||||
sed -i -e 's:test_trial_pdb:_&:' testing/test_unittest.py || die
|
|
||||||
|
|
||||||
distutils-r1_python_prepare_all
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
"${PYTHON}" "${BUILD_DIR}"/lib/pytest.py --lsof -rfsxX \
|
|
||||||
-vv testing || die "tests failed with ${EPYTHON}"
|
|
||||||
}
|
|
||||||
|
|
||||||
#python_compile_all() {
|
|
||||||
# use doc && emake -C doc/en html
|
|
||||||
#}
|
|
||||||
#
|
|
||||||
#python_install_all() {
|
|
||||||
# use doc && HTML_DOCS=( doc/en/_build/html/. )
|
|
||||||
# distutils-r1_python_install_all
|
|
||||||
#}
|
|
@ -1,81 +0,0 @@
|
|||||||
# Copyright 1999-2018 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy{,3} )
|
|
||||||
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="Simple powerful testing with Python"
|
|
||||||
HOMEPAGE="http://pytest.org/"
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc64 ~sparc ~x86 ~amd64-fbsd ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
# doc apparently requires sphinxcontrib_trio, not yet packaged
|
|
||||||
IUSE="test" # doc
|
|
||||||
|
|
||||||
# When bumping, please check setup.py for the proper py version
|
|
||||||
PY_VER="1.5.0"
|
|
||||||
|
|
||||||
# pathlib2 has been added to stdlib before py3.6, but pytest needs __fspath__
|
|
||||||
# support, which only came in py3.6.
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-python/atomicwrites-1.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/attrs-17.4.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/more-itertools-4.0.0[${PYTHON_USEDEP}]
|
|
||||||
$(python_gen_cond_dep 'dev-python/pathlib2[${PYTHON_USEDEP}]' python2_7 python3_{4,5} )
|
|
||||||
>=dev-python/pluggy-0.7[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/py-${PY_VER}[${PYTHON_USEDEP}]
|
|
||||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/six-1.10.0[${PYTHON_USEDEP}]
|
|
||||||
virtual/python-funcsigs[${PYTHON_USEDEP}]"
|
|
||||||
|
|
||||||
# doc? (
|
|
||||||
# dev-python/pyyaml[${PYTHON_USEDEP}]
|
|
||||||
# dev-python/sphinx[${PYTHON_USEDEP}]
|
|
||||||
# )"
|
|
||||||
|
|
||||||
# flake & pytest-capturelog cause a number of tests to fail
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
dev-python/setuptools_scm[${PYTHON_USEDEP}]
|
|
||||||
test? (
|
|
||||||
>=dev-python/hypothesis-3.56[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pytest-xdist-1.22.2[${PYTHON_USEDEP}]
|
|
||||||
dev-python/nose[${PYTHON_USEDEP}]
|
|
||||||
dev-python/mock[${PYTHON_USEDEP}]
|
|
||||||
dev-python/requests[${PYTHON_USEDEP}]
|
|
||||||
!!dev-python/flaky
|
|
||||||
!!dev-python/pytest-capturelog
|
|
||||||
)"
|
|
||||||
|
|
||||||
python_prepare_all() {
|
|
||||||
grep -qF "py>=${PY_VER}" setup.py || die "Incorrect dev-python/py dependency"
|
|
||||||
|
|
||||||
# Something in the ebuild environment causes this to hang/error.
|
|
||||||
# https://bugs.gentoo.org/598442
|
|
||||||
rm testing/test_pdb.py || die
|
|
||||||
|
|
||||||
# those tests appear to hang with python3.5+; TODO: investigate why
|
|
||||||
sed -i -e 's:test_runtest_location_shown_before_test_starts:_&:' \
|
|
||||||
testing/test_terminal.py || die
|
|
||||||
sed -i -e 's:test_trial_pdb:_&:' testing/test_unittest.py || die
|
|
||||||
|
|
||||||
distutils-r1_python_prepare_all
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
"${PYTHON}" "${BUILD_DIR}"/lib/pytest.py --lsof -rfsxX \
|
|
||||||
-vv testing || die "tests failed with ${EPYTHON}"
|
|
||||||
}
|
|
||||||
|
|
||||||
#python_compile_all() {
|
|
||||||
# use doc && emake -C doc/en html
|
|
||||||
#}
|
|
||||||
#
|
|
||||||
#python_install_all() {
|
|
||||||
# use doc && HTML_DOCS=( doc/en/_build/html/. )
|
|
||||||
# distutils-r1_python_install_all
|
|
||||||
#}
|
|
@ -1,4 +1,4 @@
|
|||||||
# Copyright 1999-2018 Gentoo Authors
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=7
|
EAPI=7
|
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue