parent
af22401bc3
commit
73beb4022c
Binary file not shown.
Binary file not shown.
@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit bash-completion-r1 distutils-r1
|
||||
|
||||
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||
HOMEPAGE="https://pypi.org/project/awscli/"
|
||||
#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
SRC_URI="https://github.com/aws/aws-cli/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/aws-cli-${PV}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
|
||||
# botocore is x.(y+1).z
|
||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 1)).$(ver_cut 3-)"
|
||||
RDEPEND="
|
||||
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||
dev-python/colorama[${PYTHON_USEDEP}]
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/rsa[${PYTHON_USEDEP}]
|
||||
>=dev-python/s3transfer-0.4.0[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
distutils_enable_tests --install pytest
|
||||
|
||||
src_prepare() {
|
||||
# do not rely on bundled deps in botocore (sic!)
|
||||
find -name '*.py' -exec sed -i \
|
||||
-e 's:from botocore[.]vendored import:import:' \
|
||||
-e 's:from botocore[.]vendored[.]:from :' \
|
||||
{} + || die
|
||||
# strip overzealous upper bounds on requirements
|
||||
sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
distutils_install_for_testing
|
||||
# integration tests require AWS credentials and Internet access
|
||||
epytest tests/{functional,unit}
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp bin/aws_bash_completer aws
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins bin/aws_zsh_completer.sh _aws
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
||||
}
|
@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit bash-completion-r1 distutils-r1
|
||||
|
||||
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||
HOMEPAGE="https://pypi.org/project/awscli/"
|
||||
#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
SRC_URI="https://github.com/aws/aws-cli/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/aws-cli-${PV}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
|
||||
# botocore is x.(y+1).z
|
||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 1)).$(ver_cut 3-)"
|
||||
RDEPEND="
|
||||
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||
dev-python/colorama[${PYTHON_USEDEP}]
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/rsa[${PYTHON_USEDEP}]
|
||||
>=dev-python/s3transfer-0.4.0[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
distutils_enable_tests --install pytest
|
||||
|
||||
src_prepare() {
|
||||
# do not rely on bundled deps in botocore (sic!)
|
||||
find -name '*.py' -exec sed -i \
|
||||
-e 's:from botocore[.]vendored import:import:' \
|
||||
-e 's:from botocore[.]vendored[.]:from :' \
|
||||
{} + || die
|
||||
# strip overzealous upper bounds on requirements
|
||||
sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
distutils_install_for_testing
|
||||
# integration tests require AWS credentials and Internet access
|
||||
epytest tests/{functional,unit}
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp bin/aws_bash_completer aws
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins bin/aws_zsh_completer.sh _aws
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
DIST hashcat-6.2.1.tar.gz 5815254 BLAKE2B b6ce0edf7a7fe725570e557b6b414c8aad02e24933b2610be2607c895778d635543a90806aa40c3521f83f93de3b7556f04274d4f9893dacb53af82974df0be2 SHA512 435d8c66e1de14a4a95364eb06f41d10d221c4cf3286bed5ce333d3d07fe7ec2097fa57a3f925ef108a0c17091a65dc18b9c782f69ab8c0575061c14c9354563
|
||||
DIST hashcat-6.2.4.tar.gz 6269444 BLAKE2B 15d774253841350710e89bb6358f5fd615ef6e0645f271507d5bfc3e814be1533f78b83b90c11b24c7088ac60f2bb9098cf3410c4bedb5d53b0ccff4d840664c SHA512 bb18646794e168616e6f018b41c1a17c26bb0d8625aaeec0bd0d734efbc331008f432efde7b3d08e8838c995c771a406670812edaf7d605e7fdff9ef001aa954
|
||||
DIST hashcat-6.2.5.tar.gz 6341872 BLAKE2B e55a0aac0cb28041f92fc6685fb004058744e150d84d9b690bdb16bb7f4612edd12b987debcfc5d39d0c4e87bdd799148cae6974d47904c1e3d2953ceb32f076 SHA512 2b881146c625172c91cb74b33851473155dcde2421fba1b4acfba28116499b9cff832a62c4dbc24e16df06a827494f30699a7d0e5195d5ed107704f525255383
|
||||
|
@ -0,0 +1,115 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit pax-utils toolchain-funcs
|
||||
|
||||
DESCRIPTION="World's fastest and most advanced password recovery utility"
|
||||
HOMEPAGE="https://github.com/hashcat/hashcat"
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/hashcat/hashcat.git"
|
||||
else
|
||||
KEYWORDS="~amd64"
|
||||
SRC_URI="https://github.com/hashcat/hashcat/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="brain video_cards_nvidia"
|
||||
|
||||
DEPEND="app-arch/lzma
|
||||
app-arch/unrar
|
||||
sys-libs/zlib[minizip]
|
||||
brain? ( dev-libs/xxhash )
|
||||
video_cards_nvidia? (
|
||||
>x11-drivers/nvidia-drivers-440.64
|
||||
|| (
|
||||
dev-util/nvidia-cuda-toolkit
|
||||
virtual/opencl
|
||||
)
|
||||
)
|
||||
!video_cards_nvidia? ( virtual/opencl )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
# Remove bundled stuff
|
||||
rm -r deps/OpenCL-Headers || die "Failed to remove bundled OpenCL Headers"
|
||||
rm -r deps/xxHash || die "Failed to remove bundled xxHash"
|
||||
|
||||
# TODO: Gentoo's app-arch/lzma doesn't install the needed files
|
||||
#rm -r deps/LZMA-SDK || die "Failed to remove bundled LZMA-SDK"
|
||||
#rm -r deps || die "Failed to remove bundled deps"
|
||||
|
||||
# Do not strip
|
||||
sed -i "/LFLAGS += -s/d" src/Makefile || die
|
||||
|
||||
# Do not add random CFLAGS
|
||||
sed -i "s/-O2//" src/Makefile || die
|
||||
|
||||
#sed -i "#LZMA_SDK_INCLUDE#d" src/Makefile || die
|
||||
|
||||
# Respect CC, CXX, AR
|
||||
sed -i \
|
||||
-e 's/:= gcc/:= $(CC)/' \
|
||||
-e 's/:= g++/:= $(CXX)/' \
|
||||
-e 's/:= ar/:= $(AR)/' \
|
||||
src/Makefile || die
|
||||
|
||||
export PREFIX="${EPREFIX}"/usr
|
||||
export LIBRARY_FOLDER="/usr/$(get_libdir)"
|
||||
export DOCUMENT_FOLDER="/usr/share/doc/${PF}"
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC CXX AR
|
||||
|
||||
# Use bundled unrar for now, bug #792720
|
||||
emake \
|
||||
SHARED=1 \
|
||||
PRODUCTION=1 \
|
||||
ENABLE_BRAIN=$(usex brain 1 0) \
|
||||
USE_SYSTEM_LZMA=0 \
|
||||
USE_SYSTEM_OPENCL=1 \
|
||||
USE_SYSTEM_UNRAR=0 \
|
||||
USE_SYSTEM_ZLIB=1 \
|
||||
USE_SYSTEM_XXHASH=1 \
|
||||
VERSION_PURE="${PV}"
|
||||
|
||||
pax-mark -mr hashcat
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if use video_cards_nvidia; then
|
||||
addwrite /dev/nvidia0
|
||||
addwrite /dev/nvidiactl
|
||||
addwrite /dev/nvidia-uvm
|
||||
|
||||
if [[ ! -w /dev/nvidia0 ]]; then
|
||||
einfo "To run these tests, portage likely must be in the video group."
|
||||
einfo "Please run \"gpasswd -a portage video\" if the tests will fail"
|
||||
fi
|
||||
fi
|
||||
|
||||
# This always exits with 255 despite success
|
||||
#./hashcat -b -m 2500 || die "Test failed"
|
||||
LD_PRELOAD=./libhashcat.so.${PV} ./hashcat -a 3 -m 1500 nQCk49SiErOgk || die "Test failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
DESTDIR="${ED}" \
|
||||
SHARED=1 \
|
||||
PRODUCTION=1 \
|
||||
ENABLE_BRAIN=$(usex brain 1 0) \
|
||||
USE_SYSTEM_LZMA=0 \
|
||||
USE_SYSTEM_OPENCL=1 \
|
||||
USE_SYSTEM_UNRAR=1 \
|
||||
USE_SYSTEM_ZLIB=1 \
|
||||
USE_SYSTEM_XXHASH=1 \
|
||||
VERSION_PURE="${PV}" \
|
||||
install
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST john-1.9.0-jumbo-1.tar.xz 33638768 BLAKE2B 2fd6813e234308408d42581705ee8b25f9217a3dfb43f05483156f7bb67d0ce0d6de9c3ce8c2e4a17bb99bb377119dae2897bc08c800e7bc80bc6cf245400df6 SHA512 c5cb5dc739ee4c666f8479cdf10511fddc391b590c59f90c060d3ccd8449b794ac7b831a6d1f7553883892499e709a66578cfa4d62caef9b7e0a831eb827e808
|
||||
DIST johntheripper-jumbo-1.9.0_p20210920.tar.gz 47758128 BLAKE2B e85255dc218c43e6358f76eac1e79af01d437a7a1fcddd608a390734fdc4070cbf949b8abc080b82decf4a1f5e32d2baa6d2a09d385a31913d8e988c8732e85e SHA512 5121434ad275921fe6288c51fd9dfd36ed3162387e70e8089bbc266d4a17ea461b72ce26b2004acfb62d95a9ee2d570ef3b3f00c1d031abd8cff2f20c3ab480a
|
||||
DIST johntheripper-jumbo-1.9.0_p20211129.tar.gz 47758087 BLAKE2B de57218151fbc3bed79322d065ef73deb99b73fb1ce55924197793a320600cc1189dabae43fe5848014c2e72dcb7e1c2a91f2aaba64bd8c7314ded37e23a34c9 SHA512 f8fc6bf102d900bb32c5714bd595a71f67f73a1f0a237d9f851b2f250046307bf1177f3782023cd1bbcc55f9d54fd7b4946e09c7dc1fd908ba6a6bad90b233d6
|
||||
|
@ -0,0 +1,111 @@
|
||||
https://github.com/openwall/john/pull/4908
|
||||
https://bugs.gentoo.org/763828
|
||||
|
||||
From 7a843229dff28cf0851fe3130c74b38dfaf38411 Mon Sep 17 00:00:00 2001
|
||||
From: Sam James <sam@gentoo.org>
|
||||
Date: Fri, 3 Dec 2021 03:40:00 +0000
|
||||
Subject: [PATCH 1/2] configure: check for 'strings' and respect $STRINGS
|
||||
variable
|
||||
|
||||
It's possible to want a ${CHOST}-prefixed copy of strings,
|
||||
so add a check for 'strings' in configure.ac and respect
|
||||
$STRINGS within jtr_asm_magic.
|
||||
|
||||
Signed-off-by: Sam James <sam@gentoo.org>
|
||||
---
|
||||
src/configure.ac | 1 +
|
||||
src/m4/jtr_asm_magic.m4 | 2 +-
|
||||
3 files changed, 98 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/configure.ac b/src/configure.ac
|
||||
index 53b6a62592..98b28be202 100644
|
||||
--- a/src/configure.ac
|
||||
+++ b/src/configure.ac
|
||||
@@ -346,6 +346,7 @@ AS_IF([test -z "$AS"], [AS="$CC"])
|
||||
AS_IF([test -z "$LD"], [LD="$CC"])
|
||||
AS_IF([test -z "$AR"], [AC_CHECK_TOOL([AR], [ar])])
|
||||
AS_IF([test -z "$STRIP"], [AC_CHECK_TOOL([STRIP], [strip])])
|
||||
+AS_IF([test -z "$STRINGS"], [AC_CHECK_TOOL([STRINGS], [strings])])
|
||||
|
||||
dnl Check if we have this at all
|
||||
PKG_PROG_PKG_CONFIG
|
||||
diff --git a/src/m4/jtr_asm_magic.m4 b/src/m4/jtr_asm_magic.m4
|
||||
index 469a944589..162736d855 100644
|
||||
--- a/src/m4/jtr_asm_magic.m4
|
||||
+++ b/src/m4/jtr_asm_magic.m4
|
||||
@@ -19,7 +19,7 @@ EXTRA_AS_FLAGS=
|
||||
AC_MSG_CHECKING([for extra ASFLAGS])
|
||||
CC="$CC_BACKUP"
|
||||
CFLAGS="$CFLAGS -O0"
|
||||
-AS_IF([echo "int long_ident;" > conftest.c && ${CC} -c conftest.c && strings - conftest.${OBJEXT} | ${GREP} _long_ident > conftest.out],
|
||||
+AS_IF([echo "int long_ident;" > conftest.c && ${CC} -c conftest.c && ${STRINGS} - conftest.${OBJEXT} | ${GREP} _long_ident > conftest.out],
|
||||
[JTR_LIST_ADD(EXTRA_AS_FLAGS, [-DUNDERSCORES])])
|
||||
|
||||
AC_LINK_IFELSE([AC_LANG_SOURCE(
|
||||
|
||||
From 8c43ed0c2f7fdb793978d90306d6f6a118122e39 Mon Sep 17 00:00:00 2001
|
||||
From: Sam James <sam@gentoo.org>
|
||||
Date: Fri, 3 Dec 2021 03:46:44 +0000
|
||||
Subject: [PATCH 2/2] configure: fix bashisms
|
||||
|
||||
'==' isn't recognised by POSIX-compliant shells, so let's use = too.
|
||||
|
||||
No functional change.
|
||||
|
||||
Signed-off-by: Sam James <sam@gentoo.org>
|
||||
---
|
||||
src/configure.ac | 8 ++++----
|
||||
src/m4/jtr_utility_macros.m4 | 4 ++--
|
||||
3 files changed, 12 insertions(+), 12 deletions(-)
|
||||
|
||||
--- a/src/configure.ac
|
||||
+++ b/src/configure.ac
|
||||
@@ -339,7 +339,7 @@ AC_CACHE_SAVE
|
||||
AC_PATH_PROG([SORT], [sort])
|
||||
AC_PATH_PROG([FIND], [find])
|
||||
AC_PATH_PROG([PERL], [perl])
|
||||
-if test "x$PERL" == x ; then
|
||||
+if test "x$PERL" = x ; then
|
||||
AC_MSG_FAILURE([No perl executable found])
|
||||
fi
|
||||
AS_IF([test -z "$AS"], [AS="$CC"])
|
||||
@@ -370,7 +370,7 @@ dnl to succeeed.
|
||||
dnl
|
||||
if ( test -e ../run/john.pot ) ; then
|
||||
AC_MSG_CHECKING([if potcheck.pl succeeds])
|
||||
-if test "x$PERL" == x ; then
|
||||
+if test "x$PERL" = x ; then
|
||||
AC_MSG_RESULT([no Perl (unable to check)])
|
||||
else
|
||||
$PERL ../run/potcheck.pl -validate < ../run/john.pot
|
||||
@@ -677,10 +677,10 @@ if test "x$enable_rexgen" != xno ; then
|
||||
AC_MSG_RESULT([TOO old. Rexgen not usable!]))]
|
||||
)]
|
||||
)
|
||||
- if test "x$using_rexgen" == "xyes" ; then
|
||||
+ if test "x$using_rexgen" = "xyes" ; then
|
||||
AC_DEFINE(HAVE_LIBREXGEN,1,[Define to 1 if you have the `rexgen' library (-lrexgen).])
|
||||
else
|
||||
- if test "x$enable_rexgen" == "xyes" ; then
|
||||
+ if test "x$enable_rexgen" = "xyes" ; then
|
||||
AC_MSG_FAILURE([rexgen not installed, or unusable version])
|
||||
fi
|
||||
fi
|
||||
diff --git a/src/m4/jtr_utility_macros.m4 b/src/m4/jtr_utility_macros.m4
|
||||
index 33501eeb71..6b5c58e2b7 100644
|
||||
--- a/src/m4/jtr_utility_macros.m4
|
||||
+++ b/src/m4/jtr_utility_macros.m4
|
||||
@@ -189,11 +189,11 @@ dnl will be xno, xyes, xauto, etc. forced_fail_msg is a message that
|
||||
dnl will be output, and the script will abort, IF forced is xyes which
|
||||
dnl means the user used --enable-foobar
|
||||
AC_DEFUN([JTR_MSG_RESULT_FAILIF_FORCED], [
|
||||
- if test "$1" == xyes; then
|
||||
+ if test "$1" = xyes; then
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
- if test "$2" == xyes; then
|
||||
+ if test "$2" = xyes; then
|
||||
AC_MSG_FAILURE([$3])
|
||||
fi
|
||||
fi
|
@ -0,0 +1,155 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit autotools flag-o-matic toolchain-funcs pax-utils
|
||||
|
||||
DESCRIPTION="Fast password cracker"
|
||||
HOMEPAGE="http://www.openwall.com/john/"
|
||||
|
||||
MY_PN="JohnTheRipper"
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="https://github.com/magnumripper/${MY_PN}.git"
|
||||
inherit git-r3
|
||||
else
|
||||
JUMBO="jumbo-1.1"
|
||||
MY_PV="${PV}-${JUMBO}"
|
||||
MY_P="john-${MY_PV}"
|
||||
HASH_COMMIT="5d0c85f16f96ca7b6dd06640e95a5801081d6e20"
|
||||
|
||||
SRC_URI="https://github.com/openwall/john/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/john-${HASH_COMMIT}"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="custom-cflags kerberos mpi opencl openmp pcap"
|
||||
|
||||
DEPEND=">=dev-libs/openssl-1.0.1:=
|
||||
virtual/libcrypt:=
|
||||
mpi? ( virtual/mpi )
|
||||
opencl? ( virtual/opencl )
|
||||
kerberos? ( virtual/krb5 )
|
||||
pcap? ( net-libs/libpcap )
|
||||
dev-libs/gmp:=
|
||||
sys-libs/zlib
|
||||
app-arch/bzip2"
|
||||
# Missing (unpackaged):
|
||||
# - Digest::Haval256
|
||||
# - Digest::x
|
||||
# See bug #777369.
|
||||
RDEPEND="${DEPEND}
|
||||
dev-perl/Digest-MD2
|
||||
virtual/perl-Digest-MD5
|
||||
dev-perl/Digest-SHA3
|
||||
dev-perl/Digest-GOST
|
||||
!app-crypt/johntheripper"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-fix-bashism.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
if use openmp && [[ ${MERGE_TYPE} != binary ]]; then
|
||||
tc-has-openmp || die "Please switch to an OpenMP compatible compiler"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
cd src || die
|
||||
eautoreconf
|
||||
|
||||
sed -i 's#$prefix/share/john#/etc/john#' configure || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
cd src || die
|
||||
|
||||
use custom-cflags || strip-flags
|
||||
|
||||
econf \
|
||||
--enable-pkg-config \
|
||||
--disable-native-march \
|
||||
--disable-native-tests \
|
||||
--disable-rexgen \
|
||||
--with-openssl \
|
||||
--with-systemwide \
|
||||
$(use_enable mpi) \
|
||||
$(use_enable opencl) \
|
||||
$(use_enable openmp) \
|
||||
$(use_enable pcap)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Uses default LD=$(CC) but if the user's set LD, it'll call it
|
||||
# bug #729432.
|
||||
emake LD=$(tc-getCC) -C src
|
||||
}
|
||||
|
||||
src_test() {
|
||||
pax-mark -mr run/john
|
||||
|
||||
#if use opencl; then
|
||||
# GPU tests fail in portage, so run cpu only tests
|
||||
# ./run/john --device=cpu --test=0 --verbosity=2 || die
|
||||
#else
|
||||
# Weak tests
|
||||
#./run/john --test=0 --verbosity=2 || die
|
||||
# Strong tests
|
||||
#./run/john --test=1 --verbosity=2 || die
|
||||
#fi
|
||||
|
||||
ewarn "When built systemwide, john can't run tests without reading files in /etc."
|
||||
ewarn "Don't bother opening a bug for this unless you include a patch to fix it"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Executables
|
||||
dosbin run/john
|
||||
newsbin run/mailer john-mailer
|
||||
|
||||
pax-mark -mr "${ED}/usr/sbin/john"
|
||||
|
||||
# grep '$(LN)' Makefile.in | head -n-3 | tail -n+2 | cut -d' ' -f3 | cut -d/ -f3
|
||||
local s
|
||||
for s in \
|
||||
unshadow unafs undrop unique ssh2john putty2john pfx2john keepass2john keyring2john \
|
||||
zip2john gpg2john rar2john racf2john keychain2john kwallet2john pwsafe2john dmg2john \
|
||||
hccap2john base64conv truecrypt_volume2john keystore2john
|
||||
do
|
||||
dosym john /usr/sbin/${s}
|
||||
done
|
||||
|
||||
# Scripts
|
||||
exeinto /usr/share/john
|
||||
doexe run/*.pl
|
||||
doexe run/*.py
|
||||
cd run || die
|
||||
|
||||
local s
|
||||
for s in *.pl *.py; do
|
||||
dosym ../share/john/${s} /usr/bin/${s}
|
||||
done
|
||||
cd .. || die
|
||||
|
||||
if use opencl; then
|
||||
insinto /etc/john
|
||||
doins -r run/opencl
|
||||
fi
|
||||
|
||||
# Config files
|
||||
insinto /etc/john
|
||||
doins run/*.chr run/password.lst
|
||||
doins run/*.conf
|
||||
doins -r run/rules run/ztex
|
||||
|
||||
# Documentation
|
||||
rm -f doc/README || die
|
||||
dodoc -r README.md doc/*
|
||||
}
|
@ -0,0 +1,71 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="8"
|
||||
|
||||
inherit xdg-utils
|
||||
|
||||
DESCRIPTION="A GUI to OpenSSL, RSA public keys, certificates, signing requests etc"
|
||||
HOMEPAGE="https://hohnstaedt.de/xca/"
|
||||
SRC_URI="https://github.com/chris2511/${PN}/releases/download/RELEASE.${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
IUSE="doc"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libltdl:0=
|
||||
dev-qt/qthelp:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtsql:5[sqlite]
|
||||
dev-qt/qtwidgets:5
|
||||
>=dev-libs/openssl-1.1.0:=
|
||||
doc? ( app-text/linuxdoc-tools )"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-qt/linguist-tools:5"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.0.0-desktop.patch"
|
||||
"${FILESDIR}/${P}-bug-733000.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--with-qt-version=5 \
|
||||
$(use_enable doc) \
|
||||
STRIP=true
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed '/^CFLAGS/s@-O2 -ggdb@@' -i Local.mak.in || die
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# enforce all to avoid the automatic silent rules
|
||||
emake all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
insinto /etc/xca
|
||||
doins misc/*.txt
|
||||
|
||||
ewarn "Make a backup copy of your database!"
|
||||
ewarn "Version 2 completely changes the database format to SQL(ite)"
|
||||
ewarn "Don't try to open it with older versions of XCA (< 1.4.0). They will corrupt the database."
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
Binary file not shown.
@ -1,2 +1,2 @@
|
||||
DIST kicad-doc-5.1.11.tar.bz2 74199831 BLAKE2B c7ea4fc89e002399afd46456e4d7481fa0c599ebce26a9602726c129c27054a19ba63a183e8e7359ac9950dc9310cdcf8fe1ecc2faf90bb728ffe18658a495f1 SHA512 dae4d6fe9ad08787f9cac05251205dec4c2b08bd4214da92a3fe8717a85fcb1cc65af3defa85b872c9a7a44314742dafae75624129d3e461950d0d6847dc2c5b
|
||||
DIST kicad-doc-5.1.12.tar.bz2 74217615 BLAKE2B f0906fdb0cf697348e06b63ef0003630a9035d47732c9a22ed3c4fee2f21c02f85fda51eee5149291b72326adc4899b31198178ee6e6ac0d494361cec6c06208 SHA512 db678d91ea5f564ca3f266829c297362cfd6cf35a5dced2ede5e7c9c38a37ca1037b264ee9314fa5c4a9d8197fcd92484ad4cae3668ea9741947d38c7ac7f910
|
||||
DIST kicad-doc-6.0.0_rc1.tar.gz 79671406 BLAKE2B 7ab224ea2ec376c6c073018bc97f932e4097bed205ce8d92ac6b9db5db85fafd6de97a41026d890d3c38073cf410be0490f5e81f97e77c7e63d53a55ddc67527 SHA512 b8dc91daa72f46c2311675a3a4a4317fd2da5c877317e49e4f43ae85f9e1ac859405a3ec35a5fa6fa400825ea5b45350565803efdbf459f5c87844d534cf9bee
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,3 +1,2 @@
|
||||
DIST transient-0.3.4.tar.gz 100193 BLAKE2B 0dd91cf1af22cfd6c3b6fefaa1b84ba3a241e269aef5165befa9408171f8b5477b04e2886e690cfd8d20af31e83fe669e05f0bf40c3391aab353d33a59345689 SHA512 feb24bf9045c9212a45cbc0a99805bdad6f4f5871279d44c64a883ad5d33a40128189525ee546d6cff14bf2d60d3c1e684cf8894fefc01860e363073eafea220
|
||||
DIST transient-0.3.5.tar.gz 100274 BLAKE2B ffb7f5823552eb3e84fd1d8c3842c8e49f7ce0fa79fae72ab6088f2af3ef19f27a327a15136f69a9173c742ed4c984d1d7106eda476f3e1a7d751337d19711ad SHA512 cfe30b95022d6f88569f7601cd3994255b613477b3886a42a87ad297edb656ba8968d285cd9b80e98ba18725334cb7b02fac27cb0f9717d344e5af3db8cf77a5
|
||||
DIST transient-0.3.6.tar.gz 100905 BLAKE2B cc7a78104b77a7ff49d2ee686a780db7509744b1f737e4f995d5e5f8ada18828ccf1b6ae5d995fb8aa09e9fc16895226e5e8cf3cf50a79c246c5d07d5f467ce0 SHA512 c1b43046f07f9efce1720f6e151d8223922574262d4e5436b0c81453b0a21a404f1c555a5bc92a201c71beb1b2f95aafb38b88203cd08c1d3a9d80f45ed0d0c9
|
||||
DIST transient-0.3.7.tar.gz 103105 BLAKE2B 3253529af82116881b6fdbb5465d3e0ffa8246e017a266fe0868d31e9c576a3927ed7b8d968d95f7e84e31859705f08582260d074f7f55cf10e535177df761f4 SHA512 93d1e00db3f483d830c9e636de1ae752c43bada580209c4839e89941507be5fd7ebbd31cf597436f13448b29085453742a0623dad9dcc1d343e29a5d47d76987
|
||||
|
@ -1,29 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
NEED_EMACS=25
|
||||
|
||||
inherit elisp
|
||||
|
||||
DESCRIPTION="Use the Emacsclient as the \$EDITOR of child processes"
|
||||
HOMEPAGE="https://magit.vc/manual/transient"
|
||||
SRC_URI="https://github.com/magit/transient/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
SITEFILE="50${PN}-gentoo.el"
|
||||
ELISP_TEXINFO="docs/*.texi"
|
||||
DOCS="README.md docs/transient.org"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
DEPEND="${DEPEND} sys-apps/texinfo"
|
||||
|
||||
src_prepare() {
|
||||
mv lisp/*.el . || die
|
||||
|
||||
default
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
EAPI=8
|
||||
NEED_EMACS=25
|
||||
|
||||
inherit elisp
|
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
DIST snapd-2.53.1.tar.xz 4713180 BLAKE2B 8c46c7257eeb7794d082833448ea30dbeee5ebec3b36dcec1e3d6c9e8b00121319829ceaf354c055a0edd9032f3d74b66823be0f640860b931c461e607b89485 SHA512 167c84fdf5df151c9d06774677649c365a6fd1fbbc68900c060c775fffaa51bf7bfee5a62900035fae3bd5ad1d637bb381fe15e8277a93acc6409028b36ef780
|
||||
DIST snapd-2.53.2.tar.xz 4714868 BLAKE2B 8ce0358a31c095e90c17b01a0229b665655949f91b4094b6b426f6df07794c1633497ee9edbb9d175aa920e7ac3b39316631a985b1e57f6cb15ef2fa56fd3321 SHA512 414f819b1590e6324c3f5141ccfa60141fd42f0e0160ad78d1937ad57bc2313de54af9b7718d956a9db9981954fcbe75e80556c6544bff99ac6da9db5142c014
|
||||
DIST snapd-2.53.4.tar.xz 4722696 BLAKE2B c4347db8d5a14b30f1e8811e9425dd7419dd2dcad02fc1cb6a51968cd7fa6a58da2b172c041de02202cbdba1072cb0a7a92d7f92def5c5dc1e253cbcbad86aae SHA512 0b4164d3c3c3ccc99b3fa1e25d9e7e3184a5f94deca5fd83bd6d4c7761b41d6ebd5fefd1e87432a5e18c716b3330b3991134f179e1b03326edd9511ebea4ef9a
|
||||
|
@ -0,0 +1,180 @@
|
||||
# Copyright 2020-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
EGO_PN="github.com/snapcore/${PN}"
|
||||
inherit autotools bash-completion-r1 golang-vcs-snapshot linux-info readme.gentoo-r1 systemd xdg-utils
|
||||
|
||||
DESCRIPTION="Service and tools for management of snap packages"
|
||||
HOMEPAGE="http://snapcraft.io/"
|
||||
|
||||
MY_S="${S}/src/github.com/snapcore/${PN}"
|
||||
|
||||
SRC_URI="https://github.com/snapcore/${PN}/releases/download/${PV}/${PN}_${PV}.vendor.tar.xz -> ${P}.tar.xz"
|
||||
MY_PV=${PV}
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
LICENSE="GPL-3 Apache-2.0 BSD BSD-2 LGPL-3-with-linking-exception MIT"
|
||||
SLOT="0"
|
||||
IUSE="apparmor +cgroup-hybrid +forced-devmode gtk kde systemd"
|
||||
REQUIRED_USE="!forced-devmode? ( apparmor cgroup-hybrid ) systemd"
|
||||
|
||||
CONFIG_CHECK="~CGROUPS
|
||||
~CGROUP_DEVICE
|
||||
~CGROUP_FREEZER
|
||||
~NAMESPACES
|
||||
~SQUASHFS
|
||||
~SQUASHFS_ZLIB
|
||||
~SQUASHFS_LZO
|
||||
~SQUASHFS_XZ
|
||||
~BLK_DEV_LOOP
|
||||
~SECCOMP
|
||||
~SECCOMP_FILTER"
|
||||
|
||||
RDEPEND="
|
||||
sys-libs/libseccomp:=
|
||||
apparmor? (
|
||||
sec-policy/apparmor-profiles
|
||||
sys-apps/apparmor:=
|
||||
)
|
||||
dev-libs/glib
|
||||
virtual/libudev
|
||||
systemd? ( sys-apps/systemd[cgroup-hybrid(+)?] )
|
||||
sys-libs/libcap:=
|
||||
sys-fs/squashfs-tools[lzma]"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
BDEPEND="
|
||||
>=dev-lang/go-1.9
|
||||
dev-python/docutils
|
||||
sys-devel/gettext
|
||||
sys-fs/xfsprogs"
|
||||
|
||||
PDEPEND="sys-auth/polkit[gtk?,kde?]"
|
||||
|
||||
README_GENTOO_SUFFIX=""
|
||||
|
||||
pkg_setup() {
|
||||
if use apparmor; then
|
||||
CONFIG_CHECK+=" ~SECURITY_APPARMOR"
|
||||
fi
|
||||
linux-info_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# Update apparmor profile to allow libtinfow.so*
|
||||
sed -i 's/libtinfo/libtinfo{,w}/' \
|
||||
"${MY_S}/cmd/snap-confine/snap-confine.apparmor.in" || die
|
||||
|
||||
if ! use forced-devmode; then
|
||||
sed -e 's#return !apparmorFull#if !apparmorFull {\n\t\tpanic("USE=forced-devmode is disabled")\n\t}\n\treturn false#' \
|
||||
-i "${MY_S}/sandbox/forcedevmode.go" || die
|
||||
grep -q 'panic("USE=forced-devmode is disabled")' "${MY_S}/sandbox/forcedevmode.go" || die "failed to disable forced-devmode"
|
||||
fi
|
||||
|
||||
sed -i 's:command -v git >/dev/null:false:' -i "${MY_S}/mkversion.sh" || die
|
||||
|
||||
pushd "${MY_S}" >/dev/null || die
|
||||
./mkversion.sh "${PV}"
|
||||
popd >/dev/null || die
|
||||
pushd "${MY_S}/cmd" >/dev/null || die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
SNAPD_MAKEARGS=(
|
||||
"BINDIR=${EPREFIX}/usr/bin"
|
||||
"DBUSSERVICESDIR=${EPREFIX}/usr/share/dbus-1/services"
|
||||
"LIBEXECDIR=${EPREFIX}/usr/lib"
|
||||
"SNAP_MOUNT_DIR=${EPREFIX}/var/lib/snapd/snap"
|
||||
"SYSTEMDSYSTEMUNITDIR=$(systemd_get_systemunitdir)"
|
||||
)
|
||||
export CGO_ENABLED="1"
|
||||
export CGO_CFLAGS="${CFLAGS}"
|
||||
export CGO_CPPFLAGS="${CPPFLAGS}"
|
||||
export CGO_CXXFLAGS="${CXXFLAGS}"
|
||||
|
||||
pushd "${MY_S}/cmd" >/dev/null || die
|
||||
econf --libdir="${EPREFIX}/usr/lib" \
|
||||
--libexecdir="${EPREFIX}/usr/lib/snapd" \
|
||||
$(use_enable apparmor) \
|
||||
--enable-nvidia-biarch \
|
||||
--with-snap-mount-dir="${EPREFIX}/var/lib/snapd/snap"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export -n GOCACHE XDG_CACHE_HOME
|
||||
export GO111MODULE=off GOBIN="${S}/bin" GOPATH="${S}"
|
||||
|
||||
local file
|
||||
for file in "${MY_S}/po/"*.po; do
|
||||
msgfmt "${file}" -o "${file%.po}.mo" || die
|
||||
done
|
||||
|
||||
emake -C "${MY_S}/data" "${SNAPD_MAKEARGS[@]}"
|
||||
|
||||
local -a flags=(-buildmode=pie -ldflags "-s -linkmode external -extldflags '${LDFLAGS}'" -trimpath)
|
||||
local -a staticflags=(-buildmode=pie -ldflags "-s -linkmode external -extldflags '${LDFLAGS} -static'" -trimpath)
|
||||
|
||||
local cmd
|
||||
for cmd in snap snapd snap-bootstrap snap-failure snap-preseed snap-recovery-chooser snap-repair snap-seccomp; do
|
||||
go build -o "${GOBIN}/${cmd}" "${flags[@]}" \
|
||||
-v -x "github.com/snapcore/${PN}/cmd/${cmd}"
|
||||
[[ -e "${GOBIN}/${cmd}" ]] || die "failed to build ${cmd}"
|
||||
done
|
||||
for cmd in snapctl snap-exec snap-update-ns; do
|
||||
go build -o "${GOBIN}/${cmd}" "${staticflags[@]}" \
|
||||
-v -x "github.com/snapcore/${PN}/cmd/${cmd}"
|
||||
[[ -e "${GOBIN}/${cmd}" ]] || die "failed to build ${cmd}"
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -C "${MY_S}/data" install "${SNAPD_MAKEARGS[@]}" DESTDIR="${D}"
|
||||
emake -C "${MY_S}/cmd" install "${SNAPD_MAKEARGS[@]}" DESTDIR="${D}"
|
||||
|
||||
if use apparmor; then
|
||||
mv "${ED}/etc/apparmor.d/usr.lib.snapd.snap-confine"{,.real} || die
|
||||
keepdir /var/lib/snapd/apparmor/profiles
|
||||
fi
|
||||
keepdir /var/lib/snapd/{apparmor/snap-confine,cache,cookie,snap,void}
|
||||
fperms 700 /var/lib/snapd/{cache,cookie}
|
||||
|
||||
dobin "${GOBIN}/"{snap,snapctl}
|
||||
ln "${ED}/usr/bin/snapctl" "${ED}/usr/lib/snapd/snapctl" || die
|
||||
|
||||
exeinto /usr/lib/snapd
|
||||
doexe "${GOBIN}/"{snapd,snap-bootstrap,snap-failure,snap-exec,snap-preseed,snap-recovery-chooser,snap-repair,snap-seccomp,snap-update-ns} \
|
||||
"${MY_S}/"{cmd/snap-discard-ns/snap-discard-ns,cmd/snap-gdb-shim/snap-gdb-shim,cmd/snap-mgmt/snap-mgmt} \
|
||||
"${MY_S}/data/completion/bash/"{complete.sh,etelpmoc.sh,}
|
||||
|
||||
dobashcomp "${MY_S}/data/completion/bash/snap"
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
doins "${MY_S}/data/completion/zsh/_snap"
|
||||
|
||||
insinto "/usr/share/polkit-1/actions"
|
||||
doins "${MY_S}/data/polkit/io.snapcraft.snapd.policy"
|
||||
|
||||
dodoc "${MY_S}/packaging/ubuntu-16.04/changelog"
|
||||
domo "${MY_S}/po/"*.mo
|
||||
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
readme.gentoo_print_elog
|
||||
xdg_desktop_database_update
|
||||
|
||||
if use apparmor && [[ -z ${ROOT} && -e /sys/kernel/security/apparmor/profiles &&
|
||||
$(wc -l < /sys/kernel/security/apparmor/profiles) -gt 0 ]]; then
|
||||
apparmor_parser -r "${EPREFIX}/etc/apparmor.d/usr.lib.snapd.snap-confine.real"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
}
|
@ -1,10 +1,10 @@
|
||||
DIST gentoo-wine-patches-20210925.tar.xz 59836 BLAKE2B c6d41db309bf0470d0e8ef771d791240209f77d967031943232218e8e737987a4a74847d89d6bf8739ff0698b28b656a8b9ac830ee1da457be2aab27ededb123 SHA512 721d4d7b6a2c4336555a7faed7202a8ad6872ee37e4daea6fab2b5ff5bf5d73ce41f25d0bd4fd9b45e2c522cb19c1349144a40be32ccdd7ded7f61055d6d85c8
|
||||
DIST gentoo-wine-patches-20211122.tar.xz 59796 BLAKE2B 21460e6adf4934a52f8841f76f234a764c2dc1ac77eeed1cee10adafec3aa723640ebd4b51559e9ef433070ac731c4648620bd9e75e99f31b2e2f494cf01f02d SHA512 a18cb320617e2157977032c38c322177a2d248f14e43051d38de595af171495546c93d5e71e0dbe1a4f326a2dc819bb03dcfd04454ac85bbcd6b1975ae5d9d96
|
||||
DIST wine-6.19.tar.xz 24894356 BLAKE2B 227424c5ff4887b8adca1452ded242d20793d8b5ea8cc8fc94d73f18d294bda5674d48102d6f61e6a5b0e1f76aaa4885ec530bd96b1ea70923bae479254d59d2 SHA512 6d58bca9a4b8ed94f34a532da6403341f325a30d8e1b78997de009ecaafad655d15733823d7d1c8bd906efc568a649f8b7bee5c10f2e271e449d6e1eaa8f7ce4
|
||||
DIST wine-6.20.tar.xz 26921644 BLAKE2B 2db2bdd0b0c65855d96bc407ea54aa289dd0324715eb7fc068dd57b6b90ee7b331997fd9f68942f02ef45ef9f6eb10e7efaad79d0f97721626fc50ef2e47cc49 SHA512 dc0c29194ffd0ddcc2e34d8f7ac236f039e21cdde8cb959ddf16b4b67eb1d6332c9d1a780d0872669a1083db55e105eebaf3d7a6cc5aa749e91efab88bd1f958
|
||||
DIST wine-6.21.tar.xz 26973172 BLAKE2B 7e73e04419d50b12269c281b68b002fb7ef29519c63e6c45074fa919b067ee145d328aad6507578db84940c3ac379c0469758d1a211d7d213d1833ee8c15c096 SHA512 2c6d58c8c5c37497b2b3935f71afd636c274d1d4ad3f9ca2fd9982a9ed5910888cc20841bd9175446aab2fef7813d7700458edbaad6028ad34e7444a887a9220
|
||||
DIST wine-6.22.tar.xz 27031604 BLAKE2B ed1cf0499f8f827e88a1a899db3c5243d016696fdb1189b321cac398749f9360956f0cd473b2ee04052f0db750550a983b089c4f151edac535b7d440c9a2e048 SHA512 5326d500a2c5884e3ff004557a0360f8ff5c29ae42fdc256a13012ab746371dd403c87715efa00e43bf181fbc6d0647372e3e40944e5673b069f6e4f4cc700b5
|
||||
DIST wine-staging-6.19.tar.gz 9690585 BLAKE2B de5c172b600e8de59241e93a8938d4f6a943f97d1cccaba2aa2551886893848f43df5d2e375b588deabe722ff34d80ff62dfed376d41d309c6a36e03678b771e SHA512 f46d82dc034b0c701d00c70395edc306f6dcd3cd70091bb544c86c035e4221a370f6a1c39de4575e6cbb4eb587f5257d50ad5ada51fb6fee9f57b90dc0358034
|
||||
DIST wine-6.23.tar.xz 27057236 BLAKE2B 9e438a1f2200c59517b05eb4ea6d6c26594b3fd442caa11d9ccabd8e0c016d1a721f2579c36fcfb18bb1185edfb11480d65d732d435d44f5dea0bcb345fa1476 SHA512 3e459b305f472ece00cbf467e14e6cfa7422381cb9242d05e9624487d559f438039aa8c780986469591c9d0f05e384380133dc6fb4ed694355ae42744a78d9b7
|
||||
DIST wine-staging-6.20.tar.gz 9643278 BLAKE2B b5f0a74c575541303eaf12e9706f8917b795fc0d5f065e7292329cec7da145f9c7db25bebfcf4d703bf561206f22c9a49a95e8471629009dac4679c6f028b918 SHA512 9b5650d065976ab5b0bcb2f65895bf7b6bf139d376fc5cff421d493a6f6a849cb57e33243d1fad9ca1943cfbfdee8d8a3a4d530722163b15a0830d616f06e1e3
|
||||
DIST wine-staging-6.21.tar.gz 9627829 BLAKE2B b743b67c6f26871894b16d8cd9e7ed39a1d1dd6204516453628435ee23df7644433508edc7c7dd2881686926427e683c36a29acdc744c89d2c2bd4c5f50a13ea SHA512 b74ad7f96f2831b2635557c16cb616754e31c490b5b935d1d197d6cc8e61ca75805f801e22223b936a3794af57be94344d3a06dcfce92db7e036b6c3751ef294
|
||||
DIST wine-staging-6.22.tar.gz 9608891 BLAKE2B b1fb62e82ea746a4872c4dcb8e243a44248732e4d3512e8c489e230422fc51861b5a8f1996ae12e432c5ef7eeb8cae693f9afe862d2bde150f1d6eab46534f6a SHA512 3839cdcd7ffead2cf933b59eb038856eccde7b28e599b61e10e2745ff4d2bfeefcc43262bbc96c97510560584de759ef0616b0f5e391de608fb08176502cb830
|
||||
DIST wine-staging-6.23.tar.gz 9609149 BLAKE2B abc9f4134293c91759311fbc91230f3a7f41455cc35a70bda4bf61f088520cb520b139b1c92bf2f18c6f885caf9397835a01f6bfa9d46c1d1bd49a4918ba330d SHA512 32bee187b9c7bdd026e64263083f3d92eb01c72f2d29a7d006616fb0713a0668c3d5ce3b5d523e09b650cfe77c1080e0478113afabd02352d66af53e60e0b31e
|
||||
|
Binary file not shown.
@ -1 +1 @@
|
||||
DIST eselect-iptables-20200508.tar.xz 2152 BLAKE2B e28e566d15116134308ae122443dddb8e66bcbdbbe6f6448bab0b7061710cb3b5610a9f058f43c41c3b130150c5046a6b00b0697d28fea6f2c9049485486c3c4 SHA512 b76734a53a8d1a14e662758516e0bd6d5eefbf8bca5718dae67c912365e21aecc800d63ab9dee626807db8e065469d4019f9b5369937a5b123e25f91faa43d2e
|
||||
DIST eselect-iptables-20211203.tar.xz 2144 BLAKE2B 9a53784a0831e7d2c150a974faba6c9dc124b0eafdd22cd8a56d342f77d9d4741fb0ff289e429351b8cff2e7576d00ba7e66d36c73ebe7c43c9d42cf56c13292 SHA512 5a670d72f20722df12bae7baa9ad68175e9678610657e24c4182ef83f30cc356b7af2f3bd8ea22e16aa83ba34cf5c407761c6dc2b937a4488b2da47dcb9eca97
|
||||
|
Binary file not shown.
@ -1,2 +1,2 @@
|
||||
DIST ibus-typing-booster-2.14.13.tar.gz 10239396 BLAKE2B 1c4db896f28f3f1b58bd3071fb6f2d5c1b2b4e0fbad43568ae25d69f301d4ce408ca6c2fb829818f6981c2f212c499c1dfabc3511f09f7a9f5c3d4ae2d08a212 SHA512 4e1f1c39fea030f1f056966007127afeb5c6c098a66ecd6fe0b4ea60f302438e072d6d409ef2bee9ea5b0d1048b5a22d7e4fad9f7f509362e2af251855f6e535
|
||||
DIST ibus-typing-booster-2.15.7.tar.gz 10249949 BLAKE2B da2a24f66e3e8b57a91a71d521dc8c5d271bdba226d37870f0db0fb60ed9bb8f5fa1a752c6afdddb7044bd82b334d5a53810d7a64f5dbd439aaa19ab4a29117e SHA512 012e0ea8adf4f1f6ee02df05a306c0efd30cc6dd83b09496319390aa48a700a089e52d0ca46a6f3e077e39e4903b77e5c34715d33e7bf724d03c682c53bcb5e5
|
||||
DIST ibus-typing-booster-2.15.11.tar.gz 10250973 BLAKE2B 1285d34535fc7087d19c1e01f70ace3aacc4a45ae04d7ab32c2af7b61eab7b547fa901ee01ddd1b1356de7fcb1f30d8c0dce58692b8b9448442eb5bdcdd9f7bd SHA512 38e74e6b95bff13f7b166158c145aa9d2180ba70380dad428fce322535b959cd3b8980ed499c2aec4a9701f1398b4ce793b99ce0af30c1eb2ce015bd35b990a7
|
||||
|
Binary file not shown.
@ -1,261 +0,0 @@
|
||||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
CRATES="
|
||||
adler-1.0.2
|
||||
adler32-1.2.0
|
||||
ahash-0.4.7
|
||||
ahash-0.7.4
|
||||
aho-corasick-0.7.18
|
||||
ansi_colours-1.0.4
|
||||
ansi_term-0.11.0
|
||||
anyhow-1.0.42
|
||||
argh-0.1.5
|
||||
argh_derive-0.1.5
|
||||
argh_shared-0.1.5
|
||||
atty-0.2.14
|
||||
autocfg-1.0.1
|
||||
base64-0.13.0
|
||||
bet-1.0.0
|
||||
bincode-1.3.3
|
||||
bitflags-1.2.1
|
||||
bstr-0.2.16
|
||||
bytemuck-1.7.2
|
||||
byteorder-1.4.3
|
||||
cc-1.0.69
|
||||
cfg-if-1.0.0
|
||||
char_reader-0.1.0
|
||||
chrono-0.4.19
|
||||
clap-2.33.3
|
||||
cli-log-0.1.0
|
||||
cli-log-2.0.0
|
||||
clipboard-win-4.2.1
|
||||
color_quant-1.1.0
|
||||
crc32fast-1.2.1
|
||||
crossbeam-0.8.1
|
||||
crossbeam-channel-0.5.1
|
||||
crossbeam-deque-0.8.1
|
||||
crossbeam-epoch-0.9.5
|
||||
crossbeam-queue-0.3.2
|
||||
crossbeam-utils-0.8.5
|
||||
crossterm-0.19.0
|
||||
crossterm-0.21.0
|
||||
crossterm_winapi-0.7.0
|
||||
crossterm_winapi-0.8.0
|
||||
csv-1.1.6
|
||||
csv-core-0.1.10
|
||||
csv2svg-0.1.5
|
||||
custom_error-1.9.2
|
||||
deflate-0.8.6
|
||||
deser-hjson-1.0.2
|
||||
directories-3.0.2
|
||||
directories-next-2.0.0
|
||||
dirs-sys-0.3.6
|
||||
dirs-sys-next-0.1.2
|
||||
either-1.6.1
|
||||
error-code-2.3.0
|
||||
fallible-iterator-0.2.0
|
||||
fallible-streaming-iterator-0.1.9
|
||||
file-size-1.0.3
|
||||
flate2-1.0.20
|
||||
fnv-1.0.7
|
||||
form_urlencoded-1.0.1
|
||||
getrandom-0.2.3
|
||||
gif-0.11.2
|
||||
git2-0.13.20
|
||||
glassbench-0.3.0
|
||||
glob-0.3.0
|
||||
hashbrown-0.9.1
|
||||
hashbrown-0.11.2
|
||||
hashlink-0.6.0
|
||||
heck-0.3.3
|
||||
hermit-abi-0.1.19
|
||||
id-arena-2.2.1
|
||||
idna-0.2.3
|
||||
image-0.23.14
|
||||
indexmap-1.7.0
|
||||
instant-0.1.10
|
||||
is_executable-1.0.1
|
||||
itoa-0.4.7
|
||||
jobserver-0.1.22
|
||||
jpeg-decoder-0.1.22
|
||||
lazy-regex-2.2.2
|
||||
lazy-regex-proc_macros-2.2.2
|
||||
lazy_static-1.4.0
|
||||
lazycell-1.3.0
|
||||
lfs-core-0.4.2
|
||||
libc-0.2.98
|
||||
libgit2-sys-0.12.21+1.1.0
|
||||
libsqlite3-sys-0.20.1
|
||||
libz-sys-1.1.3
|
||||
line-wrap-0.1.1
|
||||
linked-hash-map-0.5.4
|
||||
lock_api-0.4.4
|
||||
log-0.4.14
|
||||
matches-0.1.8
|
||||
memchr-2.4.0
|
||||
memmap-0.7.0
|
||||
memoffset-0.6.4
|
||||
minimad-0.7.1
|
||||
minimad-0.9.0
|
||||
miniz_oxide-0.3.7
|
||||
miniz_oxide-0.4.4
|
||||
mio-0.7.13
|
||||
miow-0.3.7
|
||||
ntapi-0.3.6
|
||||
num-integer-0.1.44
|
||||
num-iter-0.1.42
|
||||
num-rational-0.3.2
|
||||
num-traits-0.2.14
|
||||
num_cpus-1.13.0
|
||||
once_cell-1.8.0
|
||||
onig-6.2.0
|
||||
onig_sys-69.7.0
|
||||
open-1.7.1
|
||||
open-2.0.0
|
||||
parking_lot-0.11.1
|
||||
parking_lot_core-0.8.3
|
||||
pathdiff-0.2.0
|
||||
percent-encoding-2.1.0
|
||||
phf-0.9.0
|
||||
phf_generator-0.9.0
|
||||
phf_macros-0.9.0
|
||||
phf_shared-0.9.0
|
||||
pkg-config-0.3.19
|
||||
plist-1.2.0
|
||||
png-0.16.8
|
||||
ppv-lite86-0.2.10
|
||||
proc-macro-hack-0.5.19
|
||||
proc-macro2-1.0.28
|
||||
proc-status-0.1.1
|
||||
quick-xml-0.22.0
|
||||
quote-1.0.9
|
||||
rand-0.8.4
|
||||
rand_chacha-0.3.1
|
||||
rand_core-0.6.3
|
||||
rand_hc-0.3.1
|
||||
rayon-1.5.1
|
||||
rayon-core-1.9.1
|
||||
redox_syscall-0.2.9
|
||||
redox_users-0.4.0
|
||||
regex-1.5.4
|
||||
regex-automata-0.1.10
|
||||
regex-syntax-0.6.25
|
||||
remove_dir_all-0.5.3
|
||||
rusqlite-0.24.2
|
||||
ryu-1.0.5
|
||||
safemem-0.3.3
|
||||
same-file-1.0.6
|
||||
scoped_threadpool-0.1.9
|
||||
scopeguard-1.1.0
|
||||
secular-1.0.1
|
||||
serde-1.0.127
|
||||
serde_derive-1.0.127
|
||||
serde_json-1.0.66
|
||||
signal-hook-0.1.17
|
||||
signal-hook-0.3.9
|
||||
signal-hook-mio-0.2.1
|
||||
signal-hook-registry-1.4.0
|
||||
siphasher-0.3.6
|
||||
smallvec-1.6.1
|
||||
splitty-0.1.0
|
||||
str-buf-1.0.5
|
||||
strict-0.1.4
|
||||
strsim-0.8.0
|
||||
svg-0.8.2
|
||||
syn-1.0.74
|
||||
syntect-4.6.0
|
||||
tempfile-3.2.0
|
||||
termimad-0.10.3
|
||||
termimad-0.17.0
|
||||
terminal-clipboard-0.3.0
|
||||
termux-clipboard-0.1.0
|
||||
textwrap-0.11.0
|
||||
thiserror-1.0.26
|
||||
thiserror-impl-1.0.26
|
||||
tiff-0.6.1
|
||||
time-0.1.43
|
||||
tinyvec-1.3.1
|
||||
tinyvec_macros-0.1.0
|
||||
toml-0.5.8
|
||||
umask-1.0.0
|
||||
unicode-bidi-0.3.5
|
||||
unicode-normalization-0.1.19
|
||||
unicode-segmentation-1.8.0
|
||||
unicode-width-0.1.8
|
||||
unicode-xid-0.2.2
|
||||
url-2.2.2
|
||||
users-0.11.0
|
||||
vcpkg-0.2.15
|
||||
vec_map-0.8.2
|
||||
version_check-0.9.3
|
||||
walkdir-2.3.2
|
||||
wasi-0.10.2+wasi-snapshot-preview1
|
||||
weezl-0.1.5
|
||||
winapi-0.3.9
|
||||
winapi-i686-pc-windows-gnu-0.4.0
|
||||
winapi-util-0.1.5
|
||||
winapi-x86_64-pc-windows-gnu-0.4.0
|
||||
x11-clipboard-0.5.3
|
||||
xcb-0.10.1
|
||||
xml-rs-0.8.4
|
||||
yaml-rust-0.4.5
|
||||
"
|
||||
|
||||
inherit bash-completion-r1 cargo
|
||||
|
||||
DESCRIPTION="A new way to see and navigate directory trees"
|
||||
HOMEPAGE="https://dystroy.org/broot/ https://github.com/Canop/broot"
|
||||
SRC_URI="https://github.com/Canop/broot/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
$(cargo_crate_uris)"
|
||||
|
||||
LICENSE="Apache-2.0 BSD-2 BSD LGPL-3+ MIT ZLIB"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="X"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libgit2:=
|
||||
X? ( x11-libs/libxcb:= )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND=">=virtual/rust-1.56"
|
||||
|
||||
QA_FLAGS_IGNORED="usr/bin/broot"
|
||||
|
||||
src_configure() {
|
||||
local myfeatures=( $(usev X clipboard) )
|
||||
|
||||
cargo_src_configure --no-default-features
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
local mandate=$(date -r man/page +'%Y/%m/%d' || die)
|
||||
sed -e "s|#version|${PV}|" \
|
||||
-e "s|#date|${mandate}|" \
|
||||
man/page > "${T}"/${PN}.1 || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cargo_src_install
|
||||
|
||||
doman "${T}"/${PN}.1
|
||||
|
||||
local build_dir=( target/$(usex debug{,} release)/build/${PN}-*/out )
|
||||
cd ${build_dir[0]} || die
|
||||
|
||||
newbashcomp ${PN}.bash ${PN}
|
||||
newbashcomp br.bash br
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
doins _${PN}
|
||||
doins _br
|
||||
|
||||
insinto /usr/share/fish/vendor_completions.d
|
||||
doins ${PN}.fish
|
||||
doins br.fish
|
||||
}
|
@ -1,133 +0,0 @@
|
||||
# Copyright 2019-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
CRATES="
|
||||
aho-corasick-0.7.18
|
||||
ansi_term-0.11.0
|
||||
approx-0.5.0
|
||||
arrayref-0.3.6
|
||||
arrayvec-0.5.2
|
||||
assert_cmd-1.0.7
|
||||
atty-0.2.14
|
||||
autocfg-1.0.1
|
||||
base64-0.13.0
|
||||
bitflags-1.2.1
|
||||
blake2b_simd-0.5.11
|
||||
bstr-0.2.16
|
||||
byteorder-1.4.3
|
||||
cfg-if-1.0.0
|
||||
clap-2.33.3
|
||||
constant_time_eq-0.1.5
|
||||
crossbeam-utils-0.8.5
|
||||
csv-1.1.6
|
||||
csv-core-0.1.10
|
||||
difference-2.0.0
|
||||
difflib-0.4.0
|
||||
dirs-1.0.5
|
||||
dirs-next-2.0.0
|
||||
dirs-sys-next-0.1.2
|
||||
doc-comment-0.3.3
|
||||
downcast-0.10.0
|
||||
dtoa-0.4.8
|
||||
either-1.6.1
|
||||
encode_unicode-0.3.6
|
||||
float-cmp-0.8.0
|
||||
fragile-1.0.0
|
||||
getrandom-0.1.16
|
||||
getrandom-0.2.3
|
||||
heck-0.3.3
|
||||
hermit-abi-0.1.19
|
||||
itertools-0.10.1
|
||||
itoa-0.4.7
|
||||
lazy_static-1.4.0
|
||||
libc-0.2.98
|
||||
libm-0.2.1
|
||||
linked-hash-map-0.5.4
|
||||
matrixmultiply-0.3.1
|
||||
memchr-2.4.0
|
||||
mockall-0.10.2
|
||||
mockall_derive-0.10.2
|
||||
nalgebra-0.27.1
|
||||
nalgebra-macros-0.1.0
|
||||
normalize-line-endings-0.3.0
|
||||
num-complex-0.4.0
|
||||
num-integer-0.1.44
|
||||
num-rational-0.4.0
|
||||
num-traits-0.2.14
|
||||
paste-1.0.5
|
||||
ppv-lite86-0.2.10
|
||||
predicates-1.0.8
|
||||
predicates-2.0.1
|
||||
predicates-core-1.0.2
|
||||
predicates-tree-1.0.2
|
||||
prettytable-rs-0.8.0
|
||||
proc-macro-error-1.0.4
|
||||
proc-macro-error-attr-1.0.4
|
||||
proc-macro2-1.0.28
|
||||
quote-1.0.9
|
||||
rand-0.8.4
|
||||
rand_chacha-0.3.1
|
||||
rand_core-0.6.3
|
||||
rand_distr-0.4.1
|
||||
rand_hc-0.3.1
|
||||
rawpointer-0.2.1
|
||||
redox_syscall-0.1.57
|
||||
redox_syscall-0.2.9
|
||||
redox_users-0.3.5
|
||||
redox_users-0.4.0
|
||||
regex-1.5.4
|
||||
regex-automata-0.1.10
|
||||
regex-syntax-0.6.25
|
||||
remove_dir_all-0.5.3
|
||||
rpick-0.8.5
|
||||
rust-argon2-0.8.3
|
||||
ryu-1.0.5
|
||||
serde-1.0.126
|
||||
serde_derive-1.0.126
|
||||
serde_yaml-0.8.17
|
||||
simba-0.5.1
|
||||
statrs-0.15.0
|
||||
strsim-0.8.0
|
||||
structopt-0.3.22
|
||||
structopt-derive-0.4.15
|
||||
syn-1.0.74
|
||||
tempfile-3.2.0
|
||||
term-0.5.2
|
||||
textwrap-0.11.0
|
||||
thiserror-1.0.26
|
||||
thiserror-impl-1.0.26
|
||||
treeline-0.1.0
|
||||
typenum-1.13.0
|
||||
unicode-segmentation-1.8.0
|
||||
unicode-width-0.1.8
|
||||
unicode-xid-0.2.2
|
||||
vec_map-0.8.2
|
||||
version_check-0.9.3
|
||||
wait-timeout-0.2.0
|
||||
wasi-0.9.0+wasi-snapshot-preview1
|
||||
wasi-0.10.2+wasi-snapshot-preview1
|
||||
winapi-0.3.9
|
||||
winapi-i686-pc-windows-gnu-0.4.0
|
||||
winapi-x86_64-pc-windows-gnu-0.4.0
|
||||
yaml-rust-0.4.5
|
||||
"
|
||||
|
||||
inherit cargo
|
||||
|
||||
DESCRIPTION="Helps you pick items from a list by various algorithms"
|
||||
HOMEPAGE="https://github.com/bowlofeggs/rpick"
|
||||
SRC_URI="$(cargo_crate_uris)"
|
||||
|
||||
LICENSE="GPL-3 Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2 Boost-1.0 CC0-1.0 MIT Unlicense"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc64 x86"
|
||||
|
||||
QA_FLAGS_IGNORED="usr/bin/rpick"
|
||||
|
||||
src_install() {
|
||||
cargo_src_install
|
||||
|
||||
dodoc CHANGELOG.md README.md
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST yq-2.11.1.tar.gz 20660 BLAKE2B 4b51652958121c16462304d21ebe545cca835b6c189a6d7550c7ea0ffc8b7088a02eb61ee412295d85d502a339ec3ccbc67b8dc12cd45a07246cbafa7d7feaf7 SHA512 a59a0b12ac70724bb1b857618a66b8fa38ecd35f37adce0495e74ef194f4547be8adce345f29644d43c3b32c0e680512bfcb527310e17746965f9c1db2b612c1
|
||||
DIST yq-2.12.0.tar.gz 20796 BLAKE2B a314b54628e1865df68dadcbec8e59e16c1e57205e2b9f2b364bb6bee91563dc3da30c1e3a7ac9e2656899ee8ad004600291a845f59fbe13356f0cfb69de3e79 SHA512 3d6e26b674e5496e3a60678fb5b0389a6d83f4fdb519b40f5e6092f1df0023bbfb0e3b5e95dfac9b44e6001b8b35d7104aeeea6c347862313e57cc579110178d
|
||||
DIST yq-2.13.0.tar.gz 21695 BLAKE2B e6d75cde2c298c19616647aeb14f1e34b1a68bb4db1b7e6f4e2619166ef10142ebd405d3c21492e4f5880c46a8d42222ce22b08afec492e97102923e6b838e2d SHA512 fd2722450606175b7d6674407c992f1f542b8b2309fcb33d4eb7d6e3dbc6dbc9e04b3dae7c4c649d814fdffaa18cbd50472672f1d1357fc58c5306de082b353a
|
||||
DIST yq-2.9.2.tar.gz 19177 BLAKE2B 038d813679d3583eb863577f317d834f78f614d6be595c96601a06b40c3af5d9b04234381529012328a45984b183376e0647a6b09b8a87642f8e688e39ec7a7f SHA512 a526407f4f34e9c2a0acccaf38207bbe328468419450efaf30171493123b7715c2e6dd6799679220b07bfa7bc9081ac5f758f833ddf05dfb5e1fe14286baf45c
|
||||
|
@ -0,0 +1,13 @@
|
||||
diff --git a/test/test.py b/test/test.py
|
||||
index 6ec5e78..558187b 100755
|
||||
--- a/test/test.py
|
||||
+++ b/test/test.py
|
||||
@@ -121,7 +121,7 @@ class TestYq(unittest.TestCase):
|
||||
self.assertEqual(self.run_yq("{}", ["--indentless", "-y", ".a=$ARGS.positional", "--args", "a", "b"]),
|
||||
"a:\n- a\n- b\n")
|
||||
self.assertEqual(self.run_yq("{}", ["-y", ".a=$ARGS.positional", "--args", "a", "b"]), "a:\n - a\n - b\n")
|
||||
- self.assertEqual(self.run_yq("{}", [".", "--jsonargs", "a", "b"]), "")
|
||||
+ #self.assertEqual(self.run_yq("{}", [".", "--jsonargs", "a", "b"]), "")
|
||||
|
||||
def test_short_option_separation(self):
|
||||
# self.assertEqual(self.run_yq('{"a": 1}', ["-yCcC", "."]), "a: 1\n") - Fails on 2.7 and 3.8
|
@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
PYTHON_COMPAT=( python3_{7..10} pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Command-line YAML processor - jq wrapper for YAML documents"
|
||||
HOMEPAGE="https://yq.readthedocs.io/ https://github.com/kislyuk/yq/ https://pypi.org/project/yq/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
app-misc/jq
|
||||
dev-python/argcomplete[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyyaml-5.3.1[${PYTHON_USEDEP}]
|
||||
dev-python/toml[${PYTHON_USEDEP}]
|
||||
dev-python/xmltodict[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
test? (
|
||||
dev-python/wheel[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/yq-2.13.0-tests.patch"
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
sed -e 's:unittest.main():unittest.main(verbosity=2):' \
|
||||
-i test/test.py || die
|
||||
|
||||
sed -r -i 's:[[:space:]]*"coverage",:: ; s:[[:space:]]*"flake8",::' \
|
||||
setup.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${EPYTHON}" test/test.py </dev/null || die "tests failed under ${EPYTHON}"
|
||||
}
|
Binary file not shown.
@ -1,4 +1,6 @@
|
||||
DIST scrcpy-1.19.tar.gz 314821 BLAKE2B 526d494efbc90ee23a1adc62e8658e0b7c0d10dc51f7a2ffdb85246afb7b8bae3dce9821cc969f57a52706bfa1829eba6e9505739a3f3c89f26226571085edae SHA512 be6b5a662aa7f0e5f75d9e66298ac0905e296d84cfbf8ff7e34ed20fdbbe14ebd7c759bc5a7bcde1e0a86c990d0f2c2fc5b0155d6dd011371e5ca48bf35d4a03
|
||||
DIST scrcpy-1.20.tar.gz 343592 BLAKE2B a91a6e360ed708ef9a3da626f6d373739f69115cfc07f37043a8586b92518f1896a49c639403f5e66062ed2e6d21c79fe4b7865784ed4ee1c86508e743b0a27c SHA512 55950e596840676b86239e604784a4eaf759ec2942120e2b8213c781149c049e6cd9bf40392f2dc23679a9fae74d47e2ebae58491b55b6ac6f9b23f83de64fc9
|
||||
DIST scrcpy-1.21.tar.gz 360667 BLAKE2B c7228ada86c41f2ba460759ad0701a08a11a71992b517366afa5130a3c69fc01d5aabf6710e289e47a7042bd11bfb58482305214ee937191daa43ffb6c12788a SHA512 74f85cd60e6a3655bbf11adda408d40e242212068a566be9eabbacc3c0e9e3c9a1421b77fa2fcca4fc8951ae5b3a2ace5d8f90e436f20df8fe37b9dbfffdbc19
|
||||
DIST scrcpy-server-v1.19 37330 BLAKE2B 63296a4cab39b55106d0ae9f1df1b7cfa1993f2fdcf937d0fb0fc6b6afd181a1a068f53b6e75b8e80f3e05e7125fb76d57cacd366cfe76113bbb10527dc8a82b SHA512 8befe774fc7caa02c408af57f30b7eaf0009f542d8998363c8fb55c229ff53b2049ed7259404f6262cac4afd5a7077006b1d136fa1b319c8195d0c3ee9ba2dbe
|
||||
DIST scrcpy-server-v1.20 37139 BLAKE2B d8779c916545c336bc147b5d5f9fd958275eb178e50f00fd68c6504d3cdfd5e7e1fabd8c0f1a27986b786540e396f465bb38602343bc4a0bb1d254181635f799 SHA512 39c8cd7a2879272902c97dc5ec7fba57f8b4b021f44d5f12ab9ee3153056484b0ebe056b7ce55dd9eb7b14a14f2c71604b7eeb6e895ee83d295578b9e096f69f
|
||||
DIST scrcpy-server-v1.21 40067 BLAKE2B 92d90606a04adb67ac956feffb4ff2e658d294304d0bade42d08660bac312cb447a713f052d353ba9fa454a55fac5334a08fe7a847f758c27bf50589ab0926b5 SHA512 946ca16bf4147facdc4a70df7593971f230d4b74dac3cad052ffadae79248ea1613de5d988d6daea865474bbcf314c84bd94ba6d7ef852383be601a189bb032e
|
||||
|
@ -0,0 +1,43 @@
|
||||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit meson xdg
|
||||
|
||||
DESCRIPTION="Display and control your Android device"
|
||||
HOMEPAGE="https://github.com/Genymobile/scrcpy"
|
||||
# Source code and server part on Android device
|
||||
SRC_URI="https://github.com/Genymobile/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://github.com/Genymobile/${PN}/releases/download/v${PV}/${PN}-server-v${PV}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc64 ~x86"
|
||||
|
||||
RDEPEND="media-libs/libsdl2[X]
|
||||
media-video/ffmpeg
|
||||
virtual/libusb:1"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND=""
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
-Db_lto=true
|
||||
-Dprebuilt_server="${DISTDIR}/${PN}-server-v${PV}"
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postrm
|
||||
|
||||
elog "If scrcpy returns an error like"
|
||||
elog ""
|
||||
elog "[server] ERROR: Exception on thread Thread[main,5,main]"
|
||||
elog "java.lang.IllegalArgumentException"
|
||||
elog "at android.media.MediaCodec.native_configure(Native Method)"
|
||||
elog ""
|
||||
elog "Just try with a lower definition:"
|
||||
elog "scrcpy -m 1920 or scrcpy -m 1024"
|
||||
}
|
Binary file not shown.
@ -1,18 +1,9 @@
|
||||
DIST amd64-debug-libreoffice-7.1.5.2.tar.xz 1437063320 BLAKE2B 1d09fe48dbae806f97b6d9d9e83c50d924b35a2344f769066f1d38eb78f12360803deb1fb7a0fb42375bd5e01cfb13a4d3e23a8c4b0e503ad1cbd8e50acd3350 SHA512 3542ae47b91d55088939ff0f7044b139cce51844c383c0c86ad73c05869c28d860681d87fa7db492068fee50a6be79fe5f315b925e8eab3c75dd965d4480e4e7
|
||||
DIST amd64-debug-libreoffice-7.1.7.2.tar.xz 1441939592 BLAKE2B 207d3522d3fca71d9e0fbffcc0186b429e444aed4a7495b708526321273ccee7054bcb7cec3138ebe4e20c4921fd78287af4be6ea5077898c4adf0bdf0520d4e SHA512 2e319688317442fad66ff2a77d92ac4b9ed5e2f5b9722a569eecd842a1d38d1fd98dd4b3ac2f9dc5e91feae79c2431da7e4baef164b7248a432406008e2d6d0b
|
||||
DIST amd64-debug-libreoffice-gnome-7.1.5.2.xd3 1371566 BLAKE2B 5351af652fc8f9dbbc1137bf8b3e1f582ebe95ace4206f9087d15c654707b30db807d9804ef48fd086fb962841b307a28ae748f18a3350e8c3d316270c4afdc6 SHA512 33eb76918014537ead16ddbc107c43c65896bf963d0be3668cd4dfe141cde2d3cb94ae78451788d19ea5d99c1c9a380c7feb4ed223268f8f12c4b57cff056fa2
|
||||
DIST amd64-debug-libreoffice-gnome-7.1.7.2.xd3 1380242 BLAKE2B 5c69abece7929c5dee0b5c0a37f75bf1006ac6eaaf6d61c77c0e733e7ed7b3aca063c6a949388c6200d09a6a17661a8e95066416f4b47b011c7be786405bf99f SHA512 f08b7bc561ef3e8cbb06ec8cab0f507c6f2a20f2c6ca859b72aebb04d41007eddb1d41a3908129568c34915119bc884005687ec102c123906c25bc1627a0e93d
|
||||
DIST amd64-debug-libreoffice-gnome-java-7.1.5.2.xd3 732827556 BLAKE2B 54c02c804a2d985657917b6cd4381f872e8e3dab295341b47bc9ed10ac06c934880b92a22f87ea3e62daf5dfb35691d1aa136e4c001b6cf7ae847b8eee39783f SHA512 a3a6f3e0a223ae09a4babe07d62effc61c0610eda0f7259684714909d693553f77f8e55ed79f6949bc79f35eea59584fe39f2a3ff6b969c684b3dff5aeb4031b
|
||||
DIST amd64-debug-libreoffice-gnome-java-7.1.7.2.xd3 731690461 BLAKE2B a2f7af005c86bb754d3bc86d5c1abcb043d78f023adef3f0a3e347dd66e9b8f7bd086014e28aaf2a4cb3c8555eb6ee54171f634ea57f6576ca552cb77306aea1 SHA512 882f62f2557cc39d68de80f15beb33eeea21af357d2bd87d5943bb635734180e922676a0e04d0152a6b3f80d43a3ff8d47efeead59ef1f7d9db23d8b62f792a5
|
||||
DIST amd64-debug-libreoffice-java-7.1.5.2.xd3 731460990 BLAKE2B e63a9208e6f43fbc714d2c7eeab1bc214eb1e69fda77cfbe233f77969b7c56e0ebb4860b3e47f382b1c1838dcac23c8d7c241d5d47f1fbab90d5053540ff781f SHA512 558ef24638b6354228090721876967cc5fb4210f13d75b547048f82e76c1eafd9879f0cc66ba4f003c8c47e557aeb3dadc4712b1d77d1fcb0ad4b3b6fb62a7d1
|
||||
DIST amd64-debug-libreoffice-java-7.1.7.2.xd3 730327939 BLAKE2B 0b2bee88dacc1c186355645ffcae7aa7f6b96ac0e28f8ecdebcda878133709dddd1f53df955adb64b7e3a5738361a0c661961ed36f7fc7658e4718aab4a1d2ff SHA512 3e417a5d31028f2ffc9995c742d620f96aa88123ad75ffb70d52b12718b83ca56ffee184b08194530753876654a041426c7b9531c1775743dad903a246260de2
|
||||
DIST amd64-debug-libreoffice-kde-7.1.5.2.xd3 476457589 BLAKE2B 4cce5ad6f903c1730174757cb9206f9180a47a991444e509416640d9100a917ffc92d00c27fb86f4d5d001a8c9030f6f46183cf17f8e5aa06f3a1092e4034119 SHA512 9a78a78dc205c09123fc197b47650e2ee6eede6581b5d7b5bf74f2b81944bbbb9ad59ee3e93e1050017892e417dfa07814fde28d2c54ed4eafc946be3c6e8df4
|
||||
DIST amd64-debug-libreoffice-kde-7.1.7.2.xd3 476280495 BLAKE2B db7457b75111ca0a55eb0cae888f9d8e9322ed882bf5a7786d214c09ba8cc7c327d6cea1bd1a02508d71f25e8a3c29ffe49d1d95845b45c486cb8f9061ae3bfd SHA512 ba216570e618101cb5f09c951600574454bf5d7a124168bfbb5857e5a2a8aff0c6ebcaf97eb546a121814ba99820f845da98081b125d74a4d62b0e1b21d3dc0a
|
||||
DIST amd64-debug-libreoffice-kde-java-7.1.5.2.xd3 735257243 BLAKE2B 0c99b81768758179ede9650d9537ad0c1a4b5c7eba7619327372c4cd9f07aa6531e50a4c5422eea44d9af43779c70b456a1385384947557de103088391b72fcb SHA512 acb9b3576c5720d8bfef56855ea3f0cfc6e4b2e08fd8a4e18eb9fba429930eb43ff6b47bdf38b0e916db40b372ad82f373b59922afe383e6908f9b2adac966de
|
||||
DIST amd64-debug-libreoffice-kde-java-7.1.7.2.xd3 734480017 BLAKE2B 8854d13e7001e40b2202a0bcc149851f600ef5ed7bdfd96fa50d84066819a8425410860125b593fdbedc9dd8443a759946a15586d683c08bf4a55e56a9d3ed56 SHA512 bbff8c1b3c3d01d0b33967dcf40f36d5a746ba373cef535431047dc7eb4c3437c825228a62e6fafefa3bbca4c68c39b322a9de0c7ac5264efe3fcf0372346e58
|
||||
DIST x86-debug-libreoffice-7.1.5.2.tar.xz 1402266416 BLAKE2B 5501f4e243a89c87b98ac81df771a36b6a2d35e0f8d11a9a67d551e51bd277bb9102ca7e702a856a666fcf093c8a4f622d76d70627c24d18f4a12b2bce74924b SHA512 bef41ec678d64acae302b64cd8d8da80972d625807051b0f954053e20fa30a80f73930d7b7e7a245393fd3c31017e9b751c70d67bb471751eb2edece040aadd8
|
||||
DIST x86-debug-libreoffice-7.1.7.2.tar.xz 1410535408 BLAKE2B 286a778236dee80a2e8079a612613c0197970847b51a98d041bcf7705ee0b17b0d1489e60e8747ca9aa4b5150928ae020a5d9d761b73e2dba7b59be494a9fdb7 SHA512 050295166f081e5b7f24d100a751862fd4e279a7fb0ab8f8388dd21caa93e60b5a40eb723233c799117b5fa574b9ffec5ead91761af7c521b137e035f582813c
|
||||
DIST x86-debug-libreoffice-gnome-7.1.5.2.xd3 1320792 BLAKE2B 9434e7dc88e20296b38733513c18d8784ceb18e6fa0d2961d3c57f58d3a2527148af24050976339e14994f6d4acff56814e4731fd706c3171e0905dc7aeae4f6 SHA512 8ddc526ef18fe2f17fdb1ca61241a0b9d98d960ca4d9dfd3b60029a18c80b023d44b08702f9dc4a02ed58676a9fbd0783a906076ba697d1483bab653c077ad57
|
||||
DIST x86-debug-libreoffice-gnome-7.1.7.2.xd3 1338001 BLAKE2B 15cff9f5b02b45c7eb9d7504476748ff034b34dac599526a20b0538ddc745b86c40953ce7f3b16bc15425b1336e70766fee51f6b4bf778d71171d0f5d619cd54 SHA512 f0eb6469b3cfbd5bd6e76d5b9b225303c52c25dd1c9c3ddb10c1a0cad3df9bd39f1efd814697b4fa4d749189d88b199f0ca0328d99a1cb6f110fafb7d55208cf
|
||||
DIST x86-debug-libreoffice-kde-7.1.5.2.xd3 452499073 BLAKE2B d172637d88bd41be1dcb531acb7651cf15a5c60c62f75c02adf750bf4036b9364271f6644ab1013c16cf72c97b8bb3eacea715646e4d08859ac1741cefed9bee SHA512 03f416f5813109701ef5982da96747f8f48da29d3b08d12581177f01ae9a845849256361d305a9b997bda15c126c64fc440c925b2e199746496f8b2cd866adcd
|
||||
DIST x86-debug-libreoffice-kde-7.1.7.2.xd3 454011246 BLAKE2B 62ec25f753eacec0a729fd35bfc2f7286a19bd17d97f0463574303e7b9fe74e0d987de19d3956967caebc0efe2fe444062e6aea7a9b2ea8145b7123aceb419d0 SHA512 f6fce013620d5fb1fe96b60e5c41ab61436182751323af354c9b0cb34610c294b175cc131d7e07d472702475b100ea9362086aaa463f0055c304d2a803084f57
|
||||
|
@ -1,84 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
BASE_PACKAGENAME="debug"
|
||||
BASE_AMD64_URI="https://tamiko.43-1.org/distfiles/amd64-${BASE_PACKAGENAME}-"
|
||||
BASE_X86_URI="https://tamiko.43-1.org/distfiles/x86-${BASE_PACKAGENAME}-"
|
||||
|
||||
DESCRIPTION="LibreOffice, a full office productivity suite. Binary package, debug info"
|
||||
HOMEPAGE="https://www.libreoffice.org"
|
||||
SRC_URI_AMD64="
|
||||
${BASE_AMD64_URI}libreoffice-${PV}.tar.xz
|
||||
kde? (
|
||||
!java? ( ${BASE_AMD64_URI}libreoffice-kde-${PV}.xd3 )
|
||||
java? ( ${BASE_AMD64_URI}libreoffice-kde-java-${PV}.xd3 )
|
||||
)
|
||||
gnome? (
|
||||
!java? ( ${BASE_AMD64_URI}libreoffice-gnome-${PV}.xd3 )
|
||||
java? ( ${BASE_AMD64_URI}libreoffice-gnome-java-${PV}.xd3 )
|
||||
)
|
||||
!kde? ( !gnome? (
|
||||
java? ( ${BASE_AMD64_URI}libreoffice-java-${PV}.xd3 )
|
||||
) )
|
||||
"
|
||||
SRC_URI_X86="
|
||||
${BASE_X86_URI}libreoffice-${PV}.tar.xz
|
||||
kde? (
|
||||
${BASE_X86_URI}libreoffice-kde-${PV}.xd3
|
||||
)
|
||||
gnome? (
|
||||
${BASE_X86_URI}libreoffice-gnome-${PV}.xd3
|
||||
)
|
||||
"
|
||||
|
||||
SRC_URI="
|
||||
amd64? ( ${SRC_URI_AMD64} )
|
||||
x86? ( ${SRC_URI_X86} )
|
||||
"
|
||||
|
||||
IUSE="gnome java kde"
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* amd64 x86"
|
||||
|
||||
RDEPEND="~app-office/${PN/-debug}-${PV}[gnome=,java=,kde=]"
|
||||
|
||||
DEPEND="dev-util/xdelta:3"
|
||||
|
||||
RESTRICT="test strip"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
QA_PREBUILT="/usr/*"
|
||||
|
||||
src_unpack() {
|
||||
einfo "Uncompressing distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.tar.xz"
|
||||
xz -cd "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.tar.xz" > "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.tar" || die
|
||||
|
||||
use x86 && use java && die "There is no build for x86 with Java support."
|
||||
|
||||
local patchname
|
||||
use kde && patchname="-kde"
|
||||
use gnome && patchname="-gnome"
|
||||
use java && patchname="${patchname}-java"
|
||||
|
||||
if [[ -n "${patchname}" ]]; then
|
||||
einfo "Patching distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.tar using ${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PV}.xd3"
|
||||
xdelta3 -d -s "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.tar" "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PV}.xd3" "${WORKDIR}/tmpdist.tar" || die
|
||||
mv "${WORKDIR}/tmpdist.tar" "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.tar" || die
|
||||
fi
|
||||
|
||||
einfo "Unpacking new ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.tar"
|
||||
unpack "./${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.tar"
|
||||
}
|
||||
|
||||
src_configure() { :; }
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
dodir /usr
|
||||
cp -aR "${S}"/usr/* "${ED}"/usr/ || die
|
||||
}
|
@ -1,18 +1,9 @@
|
||||
DIST amd64-bin-libreoffice-7.1.5.2.tar.xz 135632188 BLAKE2B 0c7740d0687cd1585e31d58f6e65c9597ea3e29c1a185ffea92f356afdfb6f0d05a4fc5d8d563d100267591d7421ddc76a68a296b61abc9de32aa88defae723f SHA512 add324021d7aeba8bdd4991db690102d810d78e19d4e99132f1b2dd8ca5e8df6baacc302c3ffe16fca04fa47e4a03eb1b6e173665f8faaef3c1745654264160b
|
||||
DIST amd64-bin-libreoffice-7.1.7.2.tar.xz 136085032 BLAKE2B ef4493c580726d26d3bf05a289acc2f030ba77f7924bab265e9c74f22f79616b61f3f51380526d934f1e3c9d697765f427676ffb483a5547f0fa79b99de17d7d SHA512 b45503b8e8105ede3e02c32ea50c602bdf79238cdd8e1d7c8abb503538ecfe9d359f59c174666cab3d4621e740525d6e2f002fa28c9f77989cbc3c963cb10135
|
||||
DIST amd64-bin-libreoffice-gnome-7.1.5.2.xd3 1452639 BLAKE2B 346b6f36595b72bec1fd1cef254f9ba754eccdbc2125607bd0724d40f37d73e5ae4442e0c3d2d28f131d78da738e7ddfaa463e08e3ad20df1d0209367b36a397 SHA512 0669b6212d46dd9b255dfa5af4b668914b88e7fd5f3a0941a9a33c1823adacbb8788a159a5767269a53c57895bdc364d62fcc46aa48258dea8e98ea780f18200
|
||||
DIST amd64-bin-libreoffice-gnome-7.1.7.2.xd3 1468305 BLAKE2B 117776d451dd580af3448fc109475d09fd4f8cec2e3d7d8d2b628a4bc469aaa18b96c1217e69a43197553b373a1eeee314100ba90e6283c938cbaf9f8029f667 SHA512 6a989daac6215de1029136b5723bdead79afa3f420d4f4a1149c31ce1a6ec69a38443f7ff74f9d87cb594895810009a110a758323a3ccf1d1f8c7160377aacb4
|
||||
DIST amd64-bin-libreoffice-gnome-java-7.1.5.2.xd3 31245709 BLAKE2B 273ced503b234cbb1b263729c1ee371b3877e6317c7bd6627767623ab5402ccb62bc7bc0a7a436452d51800ee1af702f939d5fdd210819044ba27d4f4fa6237d SHA512 2d1b507d1976acc9012829c321171642a425879c9220e9222ab04296a6975ab1e309589c131436f0f81dd670fc43c57f61712a11ec0c01afff6328d8656027dc
|
||||
DIST amd64-bin-libreoffice-gnome-java-7.1.7.2.xd3 31065813 BLAKE2B c7a561fb69a79a5da02b52db989e36baa2e158cc81b4a03c77484b0191feb6a4b21aeefbc17a5242c0b8817483476ea089791d14682f342d30bc44e587aff004 SHA512 71b8b0ccc93bef2da88c481c6f832147f542af41d9858ad4c7763de6b35fa95d971db28609a6ef0d03bd98b5c27d23e0196889b94f9150ff337853ce2b4665c6
|
||||
DIST amd64-bin-libreoffice-java-7.1.5.2.xd3 31129840 BLAKE2B 08340ae6b6d1398fca8a4b9f68e59e9636563daa5e2fc36e61ee9132762d607b38a6fe9aaedee164353d78027ea24372f929f509d26add72ac999f62597c9112 SHA512 7252a332b2aa632b6672ffe566edbf5795112823b6598877674c5a1c810f6f2cdcedfa8421e345dfd62e69af38c946a926c3990f17873747f3f78c4005317b05
|
||||
DIST amd64-bin-libreoffice-java-7.1.7.2.xd3 30876880 BLAKE2B ab1eebacd6f338a5d17a71f04fb04ee485fb68cac54bf008b58675013c77dd0be407fa053a48821d6fc98ebd2f22fd58a21f4c646c49d5c31431e073cd308ac1 SHA512 2ab214cb5f776d15b420adee25ae529acff785735e0f3af2af700769952c41b299d4aa2becd8804d11b48c96b7ff093884b62de758e69574ee829a89ce16c8ea
|
||||
DIST amd64-bin-libreoffice-kde-7.1.5.2.xd3 21940401 BLAKE2B b0b6ea5325f300eafb3265f6ebd08d72fceb73da9aed75d0caef01ead7ce6ecf08420023a2c69c43f6e76b32b65fd5fb1f0855445e2086e2856cd61e4dc108f9 SHA512 78b080d31d247b23cc4464ca1f8cfddde074f604a77b695d20d14c734a83116c7d8d77ef5ccac1e5048c7a54056b6efdfd03673d6c289fee2b2e303575fbd9fe
|
||||
DIST amd64-bin-libreoffice-kde-7.1.7.2.xd3 21776147 BLAKE2B aa3b38ee9254199f3e23241697340650608786db2789723a0ab306b260a27b12a2171d1218434b7cc9d79a39a4335881fc8f1607da46dac643e6ef4f50afa3b9 SHA512 35f016d5b7b06cbc85c754588e074e5eda5f3f0aa92a36659381bff18c493bcb3ee7c2b366364928b1a3716c0b4819b8b5b17013c84862a93331c9bed92287f2
|
||||
DIST amd64-bin-libreoffice-kde-java-7.1.5.2.xd3 31235891 BLAKE2B f069f037fc0cde082601db96ff70f13d6fdd65472793566bb29abbc03e46a3ae1c8539fdc054f9fb8302987946b7a1858e83705326d94847dba7d71f721d8539 SHA512 9040ed351c5ded0a0b50720edd1629f569b8bd455c8691340387ff77a99b2ef9f1d787696615a1255a235c3efc9adea62abd3d854f68997cc0b78dd1bb554d04
|
||||
DIST amd64-bin-libreoffice-kde-java-7.1.7.2.xd3 31001312 BLAKE2B 7fa7e30a355cdda02fcbb138a8898fe4251643480e7b82290f50186e57837e6b9ea9f59c7b6314aa9b64ca8a80be3a337e90bb262fb986d93e530cf83ba04d79 SHA512 d680c553f899ca3af5b76bf33d40e548e435016a7b3d5c0ee24cfde57b0ec4ef0362a302123ce79d0cd6b686ea60523e0320e8041e37538e52f68b9c62ce9929
|
||||
DIST x86-bin-libreoffice-7.1.5.2.tar.xz 137121580 BLAKE2B 2b45ff087a34f60af638baa0f1a603e50e06083ad8f4518213d3f6a603e410ae3778b02a0edd9de0554c5f21e4d7500cd98c4d58168417660275bb6027bf2a4d SHA512 9b20ffff147ccb0cd307faa6ed683b3f8f30b6129237ef0ec733f71132aa36266aec37b948dbdbe9e70c6a08c4f84f3ff9dd8f7bee84ed4f9d50c38dcc3aa0fb
|
||||
DIST x86-bin-libreoffice-7.1.7.2.tar.xz 137617724 BLAKE2B 919be7e29ac3f5c6eb11ac26a10b5005ab64e31a8873cdc5eae896afd3b6ca197c18f90d55c5ec2f6e02e1a03e8929076df9f55d78b356fc13f40fc8ac62c5d1 SHA512 ace271ded273c9b081193d7d31a82ee4474c9b070969d9e848415fa47caf0b314342335cf5dac7a14ae758641f9073ad56057dc5d7e3bc6683bf4e2285b6642f
|
||||
DIST x86-bin-libreoffice-gnome-7.1.5.2.xd3 1459130 BLAKE2B c53851d71ae61aa34c3b00e31e7a9218c4f8a7762febb798f2e3ab5c809c523afc978be8d6dedbdb79d9f67d60cfb28c709a477c103c2e2d1afbea8d70f798bc SHA512 b875d0b1b17ed34662eb5974d4696f0208bcca80d0a07301f2d67f6351330496e1cab472618e590459baf2f66bce24aac7247d803e0e5e3b09945f61e12d7895
|
||||
DIST x86-bin-libreoffice-gnome-7.1.7.2.xd3 1455549 BLAKE2B cfe2c9bb8ef2b237b8f672c54d2a4a062cf2d4385a3268d17610334eaf43f7fa1c669ae0e7562a4c551ef757a60fb533af14bcde425fd70a96bdf3bbc1090c4b SHA512 63262258b34cd10b0f2adf528a8d3368552c975b6f40cab2db1f86e768d721d4d78ff6559165928d2f6d920daaaee14234abc1588106a00634cc8b4f7b57315f
|
||||
DIST x86-bin-libreoffice-kde-7.1.5.2.xd3 18984437 BLAKE2B b5072ff8240a61cdcf593dcb3e3b04108f9fb7b309c38b9eb84d8f09a15e76c1a1f68d007b27220923be837f14c6bb1def6461336dc2693ceafd6852c8488704 SHA512 995dbb120d76ef31ce0fa8c3f7354799d9bab929aebe8120842e58c0e06eee21314059f6bdf3789b029d69f44df9a5c8fe5151f7e1cc9cd1101177af1e4ad7c0
|
||||
DIST x86-bin-libreoffice-kde-7.1.7.2.xd3 20180804 BLAKE2B 2db3f8240f3bcfa1c719f98dd8fcdf9f93bf0e755211d06ffdbb456743dcaba05a5062563c7b6fd0b92e29f9a73c2752e532e7479cc7dc33f608a81fc10025c6 SHA512 0383a87693a09ddea3466ef60e98df2838852cb32c136ffa7c68687f637d7a056f426bd3cf478d6552be511cd7dc3824d95ce070fc7e14bc56f0c46ed19a389b
|
||||
|
@ -1,253 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
BASE_PACKAGENAME="bin"
|
||||
BASE_AMD64_URI="https://tamiko.43-1.org/distfiles/amd64-${BASE_PACKAGENAME}-"
|
||||
BASE_X86_URI="https://tamiko.43-1.org/distfiles/x86-${BASE_PACKAGENAME}-"
|
||||
|
||||
PYTHON_COMPAT=( python3_9 )
|
||||
PYTHON_REQ_USE="xml"
|
||||
|
||||
inherit java-pkg-opt-2 python-single-r1 prefix toolchain-funcs xdg-utils
|
||||
|
||||
DESCRIPTION="A full office productivity suite. Binary package"
|
||||
HOMEPAGE="https://www.libreoffice.org"
|
||||
SRC_URI_AMD64="
|
||||
${BASE_AMD64_URI}libreoffice-${PV}.tar.xz
|
||||
kde? (
|
||||
!java? ( ${BASE_AMD64_URI}libreoffice-kde-${PV}.xd3 )
|
||||
java? ( ${BASE_AMD64_URI}libreoffice-kde-java-${PV}.xd3 )
|
||||
)
|
||||
gnome? (
|
||||
!java? ( ${BASE_AMD64_URI}libreoffice-gnome-${PV}.xd3 )
|
||||
java? ( ${BASE_AMD64_URI}libreoffice-gnome-java-${PV}.xd3 )
|
||||
)
|
||||
!kde? ( !gnome? (
|
||||
java? ( ${BASE_AMD64_URI}libreoffice-java-${PV}.xd3 )
|
||||
) )
|
||||
"
|
||||
SRC_URI_X86="
|
||||
${BASE_X86_URI}libreoffice-${PV}.tar.xz
|
||||
kde? (
|
||||
${BASE_X86_URI}libreoffice-kde-${PV}.xd3
|
||||
)
|
||||
gnome? (
|
||||
${BASE_X86_URI}libreoffice-gnome-${PV}.xd3
|
||||
)
|
||||
"
|
||||
|
||||
SRC_URI="
|
||||
amd64? ( ${SRC_URI_AMD64} )
|
||||
x86? ( ${SRC_URI_X86} )
|
||||
"
|
||||
|
||||
IUSE="gnome java kde"
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* amd64 x86"
|
||||
|
||||
BIN_COMMON_DEPEND="
|
||||
app-text/hunspell:0/1.7
|
||||
=app-text/libexttextcat-3.4*
|
||||
=app-text/libmwaw-0.3*
|
||||
dev-libs/boost:0/1.76.0
|
||||
dev-libs/icu:0/69.1
|
||||
dev-libs/liborcus:0/0.16
|
||||
>=media-gfx/graphite2-1.3.10
|
||||
media-libs/harfbuzz:0/0.9.18[icu]
|
||||
media-libs/libpng:0/16
|
||||
>=sys-devel/gcc-10.3.0
|
||||
>=sys-libs/glibc-2.33
|
||||
virtual/jpeg-compat:62
|
||||
"
|
||||
|
||||
# PLEASE place any restrictions that are specific to the binary builds
|
||||
# into the BIN_COMMON_DEPEND block above.
|
||||
# All dependencies below this point should remain identical to those in
|
||||
# the source ebuilds.
|
||||
|
||||
COMMON_DEPEND="
|
||||
${BIN_COMMON_DEPEND}
|
||||
${PYTHON_DEPS}
|
||||
app-arch/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-1.0.6
|
||||
>=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.2
|
||||
dev-db/unixODBC
|
||||
>=games-engines/box2d-2.4.1:0
|
||||
dev-lang/perl
|
||||
>=dev-libs/boost-1.72.0:=[nls]
|
||||
dev-libs/expat
|
||||
dev-libs/hyphen
|
||||
dev-libs/icu:=
|
||||
dev-libs/libassuan
|
||||
dev-libs/libgpg-error
|
||||
dev-libs/liborcus:0/0.16
|
||||
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.28[nss]
|
||||
media-gfx/fontforge
|
||||
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-0.31.1:=
|
||||
net-misc/curl
|
||||
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
|
||||
net-print/cups
|
||||
sys-apps/dbus[X]
|
||||
gnome? (
|
||||
dev-libs/glib:2
|
||||
gnome-base/dconf
|
||||
gnome-extra/evolution-data-server
|
||||
)
|
||||
media-libs/gstreamer:1.0
|
||||
media-libs/gst-plugins-base:1.0
|
||||
!kde? (
|
||||
dev-libs/glib:2
|
||||
dev-libs/gobject-introspection
|
||||
gnome-base/dconf
|
||||
media-libs/mesa[egl(+)]
|
||||
x11-libs/gtk+:3[X]
|
||||
x11-libs/pango
|
||||
)
|
||||
kde? (
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
dev-qt/qtx11extras:5
|
||||
kde-frameworks/kconfig:5
|
||||
kde-frameworks/kcoreaddons:5
|
||||
kde-frameworks/ki18n:5
|
||||
kde-frameworks/kio:5
|
||||
kde-frameworks/kwindowsystem:5
|
||||
)
|
||||
dev-db/mariadb-connector-c
|
||||
"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
!app-office/libreoffice
|
||||
!app-office/openoffice
|
||||
media-fonts/liberation-fonts
|
||||
|| ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
|
||||
java? ( || (
|
||||
dev-java/openjdk:11
|
||||
dev-java/openjdk-jre-bin:11
|
||||
>=virtual/jre-1.8
|
||||
) )
|
||||
kde? ( kde-frameworks/breeze-icons:* )
|
||||
"
|
||||
|
||||
PDEPEND="
|
||||
=app-office/libreoffice-l10n-$(ver_cut 1-4)*
|
||||
"
|
||||
|
||||
DEPEND="dev-util/xdelta:3"
|
||||
|
||||
# only one flavor at a time
|
||||
REQUIRED_USE="kde? ( !gnome ) gnome? ( !kde ) ${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RESTRICT="test strip"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
PYTHON_UPDATER_IGNORE="1"
|
||||
|
||||
QA_PREBUILT="/usr/*"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
einfo "Uncompressing distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.tar.xz"
|
||||
xz -cd "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.tar.xz" > "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.tar" || die
|
||||
|
||||
use x86 && use java && die "There is no build for x86 with Java support."
|
||||
|
||||
local patchname
|
||||
use kde && patchname="-kde"
|
||||
use gnome && patchname="-gnome"
|
||||
use java && patchname="${patchname}-java"
|
||||
|
||||
if [[ -n "${patchname}" ]]; then
|
||||
einfo "Patching distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.tar using ${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PV}.xd3"
|
||||
xdelta3 -d -s "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.tar" "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PV}.xd3" "${WORKDIR}/tmpdist.tar" || die
|
||||
mv "${WORKDIR}/tmpdist.tar" "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.tar" || die
|
||||
fi
|
||||
|
||||
einfo "Unpacking new ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.tar"
|
||||
unpack "./${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PV}.tar"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cp "${FILESDIR}"/50-${PN} "${T}"
|
||||
eprefixify "${T}"/50-${PN}
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() { :; }
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
dodir /usr
|
||||
cp -aR "${S}"/usr/* "${ED}"/usr/
|
||||
|
||||
# prevent revdep-rebuild from attempting to rebuild all the time
|
||||
insinto /etc/revdep-rebuild && doins "${T}/50-${PN}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
|
||||
ewarn 'If you plan to use the Base application you should use a source build and enable java and firebird.'
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
@ -1,91 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit rpm
|
||||
|
||||
BASE_PV=$(ver_cut 1-3)
|
||||
MY_PV="${PV/_alpha/.alpha}"
|
||||
MY_PV="${MY_PV/_beta/.beta}"
|
||||
[[ ${PV} == *alpha* || ${PV} == *beta* ]] && PN_DEV="Dev"
|
||||
|
||||
DESCRIPTION="Translations for the Libreoffice suite"
|
||||
HOMEPAGE="https://www.libreoffice.org"
|
||||
BASE_SRC_URI_TESTING="https://download.documentfoundation.org/${PN/-l10n/}/testing/${BASE_PV}/rpm"
|
||||
BASE_SRC_URI_STABLE="https://download.documentfoundation.org/${PN/-l10n/}/stable/${BASE_PV}/rpm"
|
||||
|
||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86 ~amd64-linux"
|
||||
IUSE="offlinehelp"
|
||||
|
||||
#
|
||||
# when changing the language lists, please be careful to preserve the spaces (bug 491728)
|
||||
#
|
||||
# "en:en-US" for mapping from Gentoo "en" to upstream "en-US" etc.
|
||||
LANGUAGES_HELP=" am ar ast bg bn-IN bn bo bs ca-valencia ca cs da de dz el en-GB en:en-US en-ZA eo es et eu fi fr gl gu he hi hr hu id is it ja ka km ko lo lt lv mk nb ne nl nn om pl pt-BR pt ro ru si sid sk sl sq sv ta tg tr ug uk vi zh-CN zh-TW "
|
||||
LANGUAGES="${LANGUAGES_HELP}af as be br brx ckb cy dgo dsb fa fur fy ga gd gug hsb kab kk kmr-Latn kn kok ks lb mai ml mn mni mr my nr nso oc or pa:pa-IN rw sa:sa-IN sat sd sr-Latn sr ss st sw-TZ szl te th tn ts tt uz ve vec xh zu "
|
||||
|
||||
for lang in ${LANGUAGES_HELP}; do
|
||||
helppack="offlinehelp? ( ${BASE_SRC_URI_STABLE}/x86_64/LibreOffice${PN_DEV}_${BASE_PV}_Linux_x86-64_rpm_helppack_${lang#*:}.tar.gz -> LibreOffice_${MY_PV}_Linux_x86-64_rpm_helppack_${lang#*:}.tar.gz ${BASE_SRC_URI_TESTING}/x86_64/LibreOffice${PN_DEV}_${MY_PV}_Linux_x86-64_rpm_helppack_${lang#*:}.tar.gz -> LibreOffice_${MY_PV}_Linux_x86-64_rpm_helppack_${lang#*:}.tar.gz )"
|
||||
SRC_URI+=" l10n_${lang%:*}? ( ${helppack} )"
|
||||
done
|
||||
for lang in ${LANGUAGES}; do
|
||||
if [[ ${lang%:*} != en ]]; then
|
||||
langpack="${BASE_SRC_URI_STABLE}/x86_64/LibreOffice${PN_DEV}_${BASE_PV}_Linux_x86-64_rpm_langpack_${lang#*:}.tar.gz -> LibreOffice_${MY_PV}_Linux_x86-64_rpm_langpack_${lang#*:}.tar.gz ${BASE_SRC_URI_TESTING}/x86_64/LibreOffice${PN_DEV}_${MY_PV}_Linux_x86-64_rpm_langpack_${lang#*:}.tar.gz -> LibreOffice_${MY_PV}_Linux_x86-64_rpm_langpack_${lang#*:}.tar.gz"
|
||||
SRC_URI+=" l10n_${lang%:*}? ( ${langpack} )"
|
||||
fi
|
||||
IUSE+=" l10n_${lang%:*}"
|
||||
done
|
||||
unset lang helppack langpack
|
||||
|
||||
RDEPEND+="app-text/hunspell"
|
||||
|
||||
RESTRICT="strip"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
local lang dir rpmdir
|
||||
|
||||
# First remove dictionaries, we want to use system ones.
|
||||
find "${S}" -name *dict*.rpm -delete || die "Failed to remove dictionaries"
|
||||
|
||||
for lang in ${LANGUAGES}; do
|
||||
# break away if not enabled
|
||||
use l10n_${lang%:*} || continue
|
||||
|
||||
dir=${lang#*:}
|
||||
|
||||
# for english we provide just helppack, as translation is always there
|
||||
if [[ ${lang%:*} != en ]]; then
|
||||
rpmdir="LibreOffice_${MY_PV}_Linux_x86-64_rpm_langpack_${dir}/RPMS/"
|
||||
[[ -d ${rpmdir} ]] || die "Missing directory: ${rpmdir}"
|
||||
rpm_unpack ./${rpmdir}/*.rpm
|
||||
fi
|
||||
if [[ "${LANGUAGES_HELP}" =~ " ${lang} " ]] && use offlinehelp; then
|
||||
rpmdir="LibreOffice_${MY_PV}_Linux_x86-64_rpm_helppack_${dir}/RPMS/"
|
||||
[[ -d ${rpmdir} ]] || die "Missing directory: ${rpmdir}"
|
||||
rpm_unpack ./${rpmdir}/*.rpm
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_configure() { :; }
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
local dir="${S}"/opt/${PN/-l10n/}$(ver_cut 1-2)/
|
||||
# Condition required for people who do not install anything e.g. no l10n
|
||||
# or just english with no offlinehelp.
|
||||
if [[ -d "${dir}" ]] ; then
|
||||
insinto /usr/$(get_libdir)/${PN/-l10n/}/
|
||||
doins -r "${dir}"/*
|
||||
fi
|
||||
# remove extensions that are in l10n for some weird reason
|
||||
rm -rf "${ED}"/usr/$(get_libdir)/${PN/-l10n/}/share/extensions/ || \
|
||||
die "Failed to remove extensions"
|
||||
}
|
@ -1,53 +0,0 @@
|
||||
From 45227d9b79dc4f2a2aa6874cd4e3c02b7934b197 Mon Sep 17 00:00:00 2001
|
||||
From: Stephan Bergmann <sbergman@redhat.com>
|
||||
Date: Tue, 14 Sep 2021 12:20:48 +0200
|
||||
Subject: Adapt to Bison 3.8 internal yyn -> yyrule rename
|
||||
|
||||
see
|
||||
<https://git.savannah.gnu.org/cgit/bison.git/commit/?id=f30067ed51f23802fc91761ede1506dfa72b2865>
|
||||
"glr2.cc: log the execution of deferred actions" including "Rename argument yyn
|
||||
as yyrule for clarity."
|
||||
|
||||
YYBISON was defined as 1 rather than as a representation of the Bison version
|
||||
prior to
|
||||
<https://git.savannah.gnu.org/cgit/bison.git/commit/?id=21c147b6e5372563b7c4741deadaddb9354f4b09>
|
||||
"yacc.c: provide the Bison version as an integral macro", which shouldn't be a
|
||||
problem here. And YYBISON is apparently completely undefined with
|
||||
/usr/bin/bison on macOS.
|
||||
|
||||
(The preceding comment always mentioned "yyi" and "yyrmap" in apparent mismatch
|
||||
with the actually used "yyn" and "yyr1" ever since
|
||||
c25ec0608a167bcf1d891043f02273761c351701 "initial import", so just leave it
|
||||
untouched.)
|
||||
|
||||
Change-Id: I4f901407aa21ed4abec84e661d813ee7599f02f0
|
||||
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122082
|
||||
Tested-by: Jenkins
|
||||
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
|
||||
---
|
||||
connectivity/source/parse/sqlbison.y | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
diff --git a/connectivity/source/parse/sqlbison.y b/connectivity/source/parse/sqlbison.y
|
||||
index d14f36e7794f..c4be0bc00bd0 100644
|
||||
--- a/connectivity/source/parse/sqlbison.y
|
||||
+++ b/connectivity/source/parse/sqlbison.y
|
||||
@@ -74,9 +74,15 @@ inline connectivity::OSQLInternalNode* newNode(const OUString& _newValue,
|
||||
|
||||
// yyi is the internal number of the rule that is currently being reduced
|
||||
// This can be mapped to external rule number via the yyrmap.
|
||||
+#if defined YYBISON && YYBISON >= 30800
|
||||
+#define SQL_NEW_RULE newNode("", SQLNodeType::Rule, yyr1[yyrule])
|
||||
+#define SQL_NEW_LISTRULE newNode("", SQLNodeType::ListRule, yyr1[yyrule])
|
||||
+#define SQL_NEW_COMMALISTRULE newNode("", SQLNodeType::CommaListRule, yyr1[yyrule])
|
||||
+#else
|
||||
#define SQL_NEW_RULE newNode("", SQLNodeType::Rule, yyr1[yyn])
|
||||
#define SQL_NEW_LISTRULE newNode("", SQLNodeType::ListRule, yyr1[yyn])
|
||||
#define SQL_NEW_COMMALISTRULE newNode("", SQLNodeType::CommaListRule, yyr1[yyn])
|
||||
+#endif
|
||||
|
||||
|
||||
extern connectivity::OSQLParser* xxx_pGLOBAL_SQLPARSER;
|
||||
--
|
||||
cgit v1.2.1
|
||||
|
@ -1,665 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
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 eapi8-dosym flag-o-matic java-pkg-opt-2 multiprocessing 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=(
|
||||
# not packaged in Gentoo, https://www.netlib.org/fp/dtoa.c
|
||||
"${ADDONS_URI}/dtoa-20180411.tgz"
|
||||
# not packaged in Gentoo, https://skia.org/
|
||||
"${ADDONS_URI}/skia-m88-59bafeeaa7de9eb753e3778c414e01dcf013dcd8.tar.xz"
|
||||
# QR code generating library for >=libreoffice-6.4, bug #691740
|
||||
"${ADDONS_URI}/QR-Code-generator-1.4.0.tar.gz"
|
||||
"base? (
|
||||
${ADDONS_URI}/commons-logging-1.2-src.tar.gz
|
||||
${ADDONS_URI}/ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip
|
||||
${ADDONS_URI}/d8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip
|
||||
${ADDONS_URI}/eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip
|
||||
${ADDONS_URI}/3bdf40c0d199af31923e900d082ca2dd-libfonts-1.1.6.zip
|
||||
${ADDONS_URI}/3404ab6b1792ae5f16bbd603bd1e1d03-libformula-1.1.7.zip
|
||||
${ADDONS_URI}/db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip
|
||||
${ADDONS_URI}/97b2d4dba862397f446b217e2b623e71-libloader-1.1.6.zip
|
||||
${ADDONS_URI}/8ce2fcd72becf06c41f7201d15373ed9-librepository-1.1.6.zip
|
||||
${ADDONS_URI}/f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip
|
||||
${ADDONS_URI}/ace6ab49184e329db254e454a010f56d-libxml-1.1.7.zip
|
||||
${ADDONS_URI}/39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip
|
||||
)"
|
||||
"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 base bluetooth +branding clang coinmp +cups custom-cflags +dbus debug eds firebird
|
||||
googledrive gstreamer +gtk kde ldap +mariadb odk pdfimport postgres test vulkan
|
||||
$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
||||
base? ( firebird java )
|
||||
bluetooth? ( dbus )
|
||||
gtk? ( dbus )
|
||||
libreoffice_extensions_nlpsolver? ( java )
|
||||
libreoffice_extensions_scripting-beanshell? ( java )
|
||||
libreoffice_extensions_scripting-javascript? ( java )
|
||||
libreoffice_extensions_wiki-publisher? ( java )
|
||||
"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
||||
SLOT="0"
|
||||
|
||||
[[ ${MY_PV} == *9999* ]] || \
|
||||
KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86 ~amd64-linux"
|
||||
|
||||
BDEPEND="
|
||||
dev-util/intltool
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
odk? ( >=app-doc/doxygen-1.8.4 )
|
||||
"
|
||||
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-1.0.6
|
||||
>=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.2
|
||||
dev-db/unixODBC
|
||||
>=games-engines/box2d-2.4.1:0
|
||||
dev-lang/perl
|
||||
>=dev-libs/boost-1.72.0:=[nls]
|
||||
dev-libs/expat
|
||||
dev-libs/hyphen
|
||||
dev-libs/icu:=
|
||||
dev-libs/libassuan
|
||||
dev-libs/libgpg-error
|
||||
dev-libs/liborcus:0/0.16
|
||||
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.28[nss]
|
||||
media-gfx/fontforge
|
||||
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-0.31.1:=
|
||||
net-misc/curl
|
||||
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? (
|
||||
$(python_gen_cond_dep 'dev-python/lxml[${PYTHON_USEDEP}]')
|
||||
)
|
||||
bluetooth? (
|
||||
dev-libs/glib:2
|
||||
net-wireless/bluez
|
||||
)
|
||||
clang? (
|
||||
|| (
|
||||
( sys-devel/clang:12
|
||||
sys-devel/llvm:12
|
||||
=sys-devel/lld-12* )
|
||||
( sys-devel/clang:11
|
||||
sys-devel/llvm:11
|
||||
=sys-devel/lld-11* )
|
||||
( sys-devel/clang:10
|
||||
sys-devel/llvm:10
|
||||
=sys-devel/lld-10* )
|
||||
)
|
||||
)
|
||||
coinmp? ( sci-libs/coinor-mp )
|
||||
cups? ( net-print/cups )
|
||||
dbus? ( sys-apps/dbus[X] )
|
||||
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[X]
|
||||
x11-libs/pango
|
||||
)
|
||||
kde? (
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
dev-qt/qtx11extras:5
|
||||
kde-frameworks/kconfig:5
|
||||
kde-frameworks/kcoreaddons:5
|
||||
kde-frameworks/ki18n:5
|
||||
kde-frameworks/kio:5
|
||||
kde-frameworks/kwindowsystem:5
|
||||
)
|
||||
ldap? ( net-nds/openldap )
|
||||
libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
|
||||
libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
|
||||
mariadb? ( dev-db/mariadb-connector-c )
|
||||
!mariadb? ( dev-db/mysql-connector-c )
|
||||
pdfimport? ( app-text/poppler:=[cxx] )
|
||||
postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
|
||||
"
|
||||
# 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.1
|
||||
dev-util/mdds:1/1.5
|
||||
media-libs/glm
|
||||
sys-devel/ucpp
|
||||
x11-base/xorg-proto
|
||||
x11-libs/libXt
|
||||
x11-libs/libXtst
|
||||
java? (
|
||||
dev-java/ant-core
|
||||
|| (
|
||||
dev-java/openjdk:11
|
||||
dev-java/openjdk-bin:11
|
||||
)
|
||||
)
|
||||
test? (
|
||||
app-crypt/gnupg
|
||||
dev-util/cppunit
|
||||
media-fonts/dejavu
|
||||
media-fonts/liberation-fonts
|
||||
)
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
!app-office/libreoffice-bin
|
||||
!app-office/libreoffice-bin-debug
|
||||
media-fonts/liberation-fonts
|
||||
|| ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
|
||||
java? ( || (
|
||||
dev-java/openjdk:11
|
||||
dev-java/openjdk-jre-bin:11
|
||||
>=virtual/jre-1.8
|
||||
) )
|
||||
kde? ( kde-frameworks/breeze-icons:* )
|
||||
"
|
||||
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
|
||||
|
||||
PATCHES=(
|
||||
# "${WORKDIR}"/${PATCHSET/.tar.xz/}
|
||||
|
||||
# not upstreamable stuff
|
||||
"${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
|
||||
"${FILESDIR}/${PN}-6.1-nomancompress.patch"
|
||||
"${FILESDIR}/${PN}-7.0.3.1-qt5detect.patch"
|
||||
|
||||
# master branch
|
||||
"${FILESDIR}/${PN}-7.1.3.2-bashism.patch" # bug 780432
|
||||
"${FILESDIR}/${P}-bison-3.8.patch" # bug 812923
|
||||
)
|
||||
|
||||
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() {
|
||||
if use x86; then
|
||||
elog "Unfortunately for packaging reasons on x86, various Java-based wizards,"
|
||||
elog "most notably Report Builder in LibreOffice Base, will not be available."
|
||||
elog "See also: https://bugs.gentoo.org/785640"
|
||||
else
|
||||
use base ||
|
||||
ewarn "If you plan to use Base application you must enable USE base."
|
||||
use java ||
|
||||
ewarn "Without USE java, several wizards are not going to be available."
|
||||
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
|
||||
|
||||
# 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"
|
||||
|
||||
# Show flags set at the beginning
|
||||
einfo "Preset CFLAGS: ${CFLAGS}"
|
||||
einfo "Preset LDFLAGS: ${LDFLAGS}"
|
||||
|
||||
if use clang ; then
|
||||
# Force clang
|
||||
einfo "Enforcing the use of clang due to USE=clang ..."
|
||||
AR=llvm-ar
|
||||
CC=${CHOST}-clang
|
||||
CXX=${CHOST}-clang++
|
||||
NM=llvm-nm
|
||||
RANLIB=llvm-ranlib
|
||||
LDFLAGS+=" -fuse-ld=lld"
|
||||
else
|
||||
# Force gcc
|
||||
einfo "Enforcing the use of gcc due to USE=-clang ..."
|
||||
AR=gcc-ar
|
||||
CC=${CHOST}-gcc
|
||||
CXX=${CHOST}-g++
|
||||
NM=gcc-nm
|
||||
RANLIB=gcc-ranlib
|
||||
fi
|
||||
|
||||
if use custom-cflags ; then
|
||||
elog "USE=custom-cflags has been selected. You are on your own to make sure that"
|
||||
elog "the build succeeds. Good luck!"
|
||||
else
|
||||
strip-flags
|
||||
fi
|
||||
|
||||
export LO_CLANG_CC=${CC}
|
||||
export LO_CLANG_CXX=${CXX}
|
||||
|
||||
# Show flags set at the end
|
||||
einfo " Used CFLAGS: ${CFLAGS}"
|
||||
einfo " Used LDFLAGS: ${LDFLAGS}"
|
||||
|
||||
# Ensure we use correct toolchain
|
||||
tc-export CC CXX LD AR NM OBJDUMP RANLIB PKG_CONFIG
|
||||
|
||||
if use vulkan && ! use clang ; then
|
||||
ewarn "Building skia with gcc may lead to performance issues. Disable vulkan or enable clang."
|
||||
fi
|
||||
|
||||
# optimization flags
|
||||
export GMAKE_OPTIONS="${MAKEOPTS}"
|
||||
# System python enablement:
|
||||
export PYTHON_CFLAGS=$(python_get_CFLAGS)
|
||||
export PYTHON_LIBS=$(python_get_LIBS)
|
||||
|
||||
use kde && export QT5DIR="$(qt5_get_bindir)/.."
|
||||
|
||||
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
|
||||
# --without-system-qrcodegen: has no real build system and LO is the only user
|
||||
local myeconfargs=(
|
||||
--with-system-dicts
|
||||
--with-system-epoxy
|
||||
--with-system-headers
|
||||
--with-system-jars
|
||||
--with-system-libs
|
||||
--enable-build-opensymbol
|
||||
--enable-cairo-canvas
|
||||
--enable-largefile
|
||||
--enable-mergelibs
|
||||
--enable-neon
|
||||
--enable-python=system
|
||||
--enable-randr
|
||||
--enable-release-build
|
||||
--disable-breakpad
|
||||
--disable-bundle-mariadb
|
||||
--disable-ccache
|
||||
--disable-epm
|
||||
--disable-fetch-external
|
||||
--disable-gtk3-kde5
|
||||
--disable-online-update
|
||||
--disable-openssl
|
||||
--disable-pdfium
|
||||
--disable-vlc
|
||||
--with-extra-buildid="${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
|
||||
--with-help="html"
|
||||
--without-helppack-integration
|
||||
--with-system-gpgmepp
|
||||
--without-system-jfreereport
|
||||
--without-system_apache_commons
|
||||
--without-system-sane
|
||||
--without-system-qrcodegen
|
||||
$(use_enable base report-builder)
|
||||
$(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 kde kf5)
|
||||
$(use_enable kde qt5)
|
||||
$(use_enable ldap)
|
||||
$(use_enable odk)
|
||||
$(use_enable pdfimport)
|
||||
$(use_enable postgres postgresql-sdbc)
|
||||
$(use_enable vulkan skia)
|
||||
$(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 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}"
|
||||
)
|
||||
if has_version "dev-java/openjdk:11"; then
|
||||
myeconfargs+=( -with-jdk-home="${EPREFIX}/usr/$(get_libdir)/openjdk-11" )
|
||||
elif has_version "dev-java/openjdk-bin:11"; then
|
||||
myeconfargs+=( --with-jdk-home="/opt/openjdk-bin-11" )
|
||||
fi
|
||||
|
||||
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 )
|
||||
|
||||
MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \
|
||||
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
|
||||
|
||||
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
|
||||
emake DESTDIR="${D}" distro-pack-install -o build -o check
|
||||
|
||||
# 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
|
||||
|
||||
# bug 703474
|
||||
insinto /usr/include
|
||||
doins -r include/LibreOfficeKit
|
||||
|
||||
local lodir=/usr/$(get_libdir)/libreoffice
|
||||
# patching this would break tests
|
||||
cat <<-EOF > "${T}"/uno.py
|
||||
import sys, os
|
||||
sys.path.append('${EPREFIX}${lodir}/program')
|
||||
os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:${EPREFIX}${lodir}/program/fundamentalrc')
|
||||
EOF
|
||||
sed -e "/^import sys/d" -e "/^import os/d" \
|
||||
-i "${D}"${lodir}/program/uno.py || die "cleanup dupl imports failed"
|
||||
cat "${D}"${lodir}/program/uno.py >> "${T}"/uno.py || die
|
||||
cp "${T}"/uno.py "${D}"${lodir}/program/uno.py || die
|
||||
|
||||
# more system pyuno mess
|
||||
sed -e "/sOffice = \"\" # lets hope for the best/s:\"\":\"${EPREFIX}${lodir}/program\":" \
|
||||
-i "${D}"${lodir}/program/officehelper.py || die
|
||||
|
||||
python_optimize "${D}"${lodir}/program
|
||||
# link python bridge in site-packages, bug 667802
|
||||
local py pyc loprogdir=/usr/$(get_libdir)/libreoffice/program
|
||||
for py in uno.py unohelper.py officehelper.py; do
|
||||
dosym8 -r ${loprogdir}/${py} $(python_get_sitedir)/${py}
|
||||
while IFS="" read -d $'\0' -r pyc; do
|
||||
pyc=${pyc//*\/}
|
||||
dosym8 -r ${loprogdir}/__pycache__/${pyc} $(python_get_sitedir)/__pycache__/${pyc}
|
||||
done < <(find "${D}"${lodir}/program -type f -name ${py/.py/*.pyc} -print0)
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST iwdevtools-0.8.0.tar.gz 57529 BLAKE2B b8068c7781b8b164b9b5d191f8a33a4a89854edb7c78c56d4f1312dd0d051d0b033f21611066303acb7efdf8403d6869458db98e7b1b2a293c779cca2bdcdd36 SHA512 df39fa02d7f4f72334286305bfa9c2db6d5db90bddc47194e3383a99492366796c7ae2e751bcf8af01d14cfa0bac88ea8d9c8678b7891f85aaa1b20e4a9e91cb
|
||||
DIST iwdevtools-0.8.1.tar.gz 58058 BLAKE2B b9f17f68bb073ecf2d8a94fc8b97d95f7188e7526dd6a32cf33aa3b01fe82bf25c696cc2be9cbdc0aaa3a8279532e506ab287d3e25da5d5fb55789064d47aec6 SHA512 cb365e7010d620f2a255db0244ee1a38fd5714a17093b2e2a71627155764165853f99a4477b281b92061f7fe184297a222a8c79c2c62beb8e0656761feee859b
|
||||
|
@ -0,0 +1,65 @@
|
||||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit meson optfeature
|
||||
|
||||
DESCRIPTION="Small tools to aid with Gentoo development, primarily intended for QA"
|
||||
HOMEPAGE="https://github.com/ionenwks/iwdevtools"
|
||||
SRC_URI="https://github.com/ionenwks/iwdevtools/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
app-misc/pax-utils
|
||||
app-portage/portage-utils
|
||||
sys-apps/diffutils
|
||||
sys-apps/file
|
||||
sys-apps/portage
|
||||
sys-apps/util-linux"
|
||||
BDEPEND="
|
||||
sys-apps/help2man
|
||||
test? ( ${RDEPEND} )"
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
-Ddocdir=${PF}
|
||||
-Deprefix="${EPREFIX}"
|
||||
-Dshellcheck=false
|
||||
$(meson_use test)
|
||||
)
|
||||
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "detecting potential ABI issues using abidiff" dev-util/libabigail
|
||||
|
||||
if [[ ! ${REPLACING_VERSIONS} ]]; then
|
||||
elog "Optional portage integration relies on using /etc/portage/bashrc."
|
||||
elog "The example bashrc can be used as-is if not already using one:"
|
||||
elog
|
||||
elog " ln -s ../../usr/share/${PN}/bashrc ${EROOT}/etc/portage/bashrc"
|
||||
elog
|
||||
elog "Otherwise, inspect the tools' --help output and the example to integrate"
|
||||
elog "(if not defining the same phase functions, the example can be sourced)."
|
||||
elog
|
||||
elog "Note that \`eqawarn\` is used for portage output by default. QA messages"
|
||||
elog "aren't logged / shown post-emerge unless e.g. in /etc/portage/make.conf:"
|
||||
elog
|
||||
elog ' PORTAGE_ELOG_CLASSES="${PORTAGE_ELOG_CLASSES} qa"'
|
||||
elog
|
||||
elog "See ${EROOT}/usr/share/doc/${PF}/README.rst* for information on tools."
|
||||
fi
|
||||
|
||||
if [[ ${REPLACING_VERSIONS} ]] &&
|
||||
ver_test ${REPLACING_VERSIONS} -le 0.7.0; then
|
||||
elog "qa-* bashrcs now use \`eqawarn\` for portage output. If no longer"
|
||||
elog "seeing messages post-emerge, ensure 'qa' is in PORTAGE_ELOG_CLASSES."
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1,3 +1,4 @@
|
||||
DIST loksh-6.8.1.tar.xz 210424 BLAKE2B e02c51bbf3679c1c81ba66207576758f035bd2b666ceabdcdea6ec8cffb1dba7da2d4f4e812004ccfdb148f2615e239b3bee98e23f68a4e82b7bb364ca6b4e4e SHA512 e771e9bb91bf7ca11a41b5af71d6d62eec8205d111513461d20b7aeb029e9457868598508fbe7395c860f12a9dc8eff47f8ed913e5701ae5974777f7caffb861
|
||||
DIST loksh-6.8.tar.xz 210440 BLAKE2B 438181e3fa5b95bc15d5cd2d5a42d09d595aefa45b8598532835f5df2464c40c6ebcab8febeee55f20272cbe3acc57f02d1408bf726cc9fc3435b7b35fae6e4a SHA512 bc862c4aa0796b0fde14c5c3067fc48c6325741bf7e62dcd99faa2ed0ddb80a8fcce79819ff599395f88ee8e5958ce4a451f777d0105fd8ea0ec513977d4e715
|
||||
DIST loksh-6.9.tar.xz 211408 BLAKE2B a8e1eb0e94b3f76246a4add7f66eae850d2e951994b2d79ce81423047696ab03221cdc7906e2ed46c4b8a8eec1b5b686cd828d9db36eb3d8e7a76f8f8046e12b SHA512 c4f74de049313adc9b0aae378435b9d3b259a6fd050f68b92b33551e3219840101c391f4cac3744deb8d121d9f6738ba66e76e029322303843bcc1b677bd3e9a
|
||||
DIST loksh-7.0.tar.xz 211536 BLAKE2B 7633b89f6f3659cbe714f9dc3ab5b1a8a537d7ddf47bf34ee79617e4a3aa4238067d04be715b6abc2ce37212edb40e841006ec1e2b8e560236075eec364250f6 SHA512 d6eb0e0a639afb79b0d7df85477ded0d48d3ad27dbbd2068c24b81705000501c4542034586222a490a49443da36e7d1c64b5d714c94f942f507a14b89a0c389e
|
||||
|
@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit meson
|
||||
|
||||
DESCRIPTION="Linux port of OpenBSD's ksh"
|
||||
HOMEPAGE="https://github.com/dimkr/loksh"
|
||||
SRC_URI="https://github.com/dimkr/loksh/releases/download/${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
|
||||
|
||||
DEPEND="sys-libs/ncurses:="
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
!app-shells/ksh
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i "/install_dir/s@loksh@${PF}@" meson.build || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# we want it as /bin/ksh
|
||||
meson_src_configure --bindir=../bin
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DIST_AUTHOR="SHLOMIF"
|
||||
DIST_VERSION="0.1003"
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="A Perl-based tool to Render DocBook/XML"
|
||||
HOMEPAGE="https://www.shlomifish.org/open-source/projects/docmake/"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc64 ~x86"
|
||||
|
||||
RDEPEND="dev-perl/Class-XSAccessor
|
||||
virtual/perl-Getopt-Long
|
||||
virtual/perl-File-Path
|
||||
dev-perl/Path-Tiny
|
||||
dev-perl/Test-Trap"
|
||||
BDEPEND="dev-perl/Module-Build
|
||||
test? (
|
||||
virtual/perl-File-Spec
|
||||
)"
|
@ -0,0 +1 @@
|
||||
DIST App-XML-DocBook-Builder-0.1003.tar.gz 18414 BLAKE2B d9a9442c46e171fdd8cd11cb997b8f1dd6ddd92c1ca03f0430be01828c0b46439a3aa14f6d68c2550f21bdee17871a8b314c2f1712b7810344d3a8385e9fea8d SHA512 421fdb84c2d9373ccdefa6b490bba1a78660414d27f470fbad48ac48178e3cb383345cd63a232bcf4ce13561e6775ff97397f5ab06c6142e1d8da34a92d6dcbb
|
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>games@gentoo.org</email>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>perl@gentoo.org</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">shlomif/docmake</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Binary file not shown.
@ -0,0 +1,315 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..9} )
|
||||
PYTHON_REQ_USE="ipv6(+),sqlite,ssl"
|
||||
|
||||
inherit toolchain-funcs python-single-r1 xdg-utils
|
||||
|
||||
DESCRIPTION="Ebook management application"
|
||||
HOMEPAGE="https://calibre-ebook.com/"
|
||||
SRC_URI="https://download.calibre-ebook.com/${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="
|
||||
GPL-3+
|
||||
GPL-3
|
||||
GPL-2+
|
||||
GPL-2
|
||||
GPL-1+
|
||||
LGPL-3+
|
||||
LGPL-2.1+
|
||||
LGPL-2.1
|
||||
BSD
|
||||
MIT
|
||||
Old-MIT
|
||||
Apache-2.0
|
||||
public-domain
|
||||
|| ( Artistic GPL-1+ )
|
||||
CC-BY-3.0
|
||||
OFL-1.1
|
||||
PSF-2
|
||||
"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
SLOT="0"
|
||||
IUSE="ios +udisks"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
COMMON_DEPEND="${PYTHON_DEPS}
|
||||
>=app-text/hunspell-1.7:=
|
||||
>=app-text/podofo-0.9.6_pre20171027:=
|
||||
>=app-text/poppler-0.26.5[qt5]
|
||||
dev-libs/glib:2=
|
||||
dev-libs/hyphen:=
|
||||
>=dev-libs/icu-57.1:=
|
||||
dev-libs/libinput:=
|
||||
>=dev-libs/dbus-glib-0.106
|
||||
dev-libs/snowball-stemmer:=
|
||||
>=sys-apps/dbus-1.10.8
|
||||
$(python_gen_cond_dep '
|
||||
app-accessibility/speech-dispatcher[python,${PYTHON_USEDEP}]
|
||||
>=dev-python/apsw-3.25.2_p1[${PYTHON_USEDEP}]
|
||||
dev-python/beautifulsoup4[${PYTHON_USEDEP}]
|
||||
dev-python/cchardet[${PYTHON_USEDEP}]
|
||||
>=dev-python/chardet-3.0.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/cssselect-0.7.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/css-parser-1.0.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/dbus-python-1.2.4[${PYTHON_USEDEP}]
|
||||
dev-python/dnspython[${PYTHON_USEDEP}]
|
||||
>=dev-python/feedparser-5.2.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/html2text-2019.8.11[${PYTHON_USEDEP}]
|
||||
>=dev-python/html5-parser-0.4.9[${PYTHON_USEDEP}]
|
||||
dev-python/jeepney[${PYTHON_USEDEP}]
|
||||
>=dev-python/lxml-3.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/markdown-3.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/mechanize-0.3.5[${PYTHON_USEDEP}]
|
||||
>=dev-python/msgpack-0.6.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/netifaces-0.10.5[${PYTHON_USEDEP}]
|
||||
>=dev-python/pillow-3.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/psutil-4.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pychm-0.8.6[${PYTHON_USEDEP}]
|
||||
dev-python/pycryptodome[${PYTHON_USEDEP}]
|
||||
>=dev-python/pygments-2.3.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-dateutil-2.5.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/PyQt5-5.15.5_pre2107091435[gui,svg,widgets,network,printsupport,${PYTHON_USEDEP}]
|
||||
>=dev-python/PyQt-builder-1.10.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/PyQtWebEngine-5.15.5_pre2108100905[${PYTHON_USEDEP}]
|
||||
dev-python/regex[${PYTHON_USEDEP}]
|
||||
dev-python/zeroconf[${PYTHON_USEDEP}]
|
||||
')
|
||||
dev-qt/qtcore:5=
|
||||
dev-qt/qtdbus:5=
|
||||
dev-qt/qtgui:5=[jpeg]
|
||||
>=dev-qt/qtwebengine-5.12
|
||||
dev-qt/qtwidgets:5=
|
||||
dev-util/desktop-file-utils
|
||||
dev-util/gtk-update-icon-cache
|
||||
media-fonts/liberation-fonts
|
||||
media-libs/fontconfig:=
|
||||
>=media-libs/freetype-2:=
|
||||
>=media-libs/libmtp-1.1.11:=
|
||||
>=media-libs/libwmf-0.2.8
|
||||
>=media-gfx/optipng-0.7.6
|
||||
>=sys-libs/zlib-1.2.11:=
|
||||
virtual/libusb:1=
|
||||
x11-libs/libxkbcommon:=
|
||||
x11-libs/libX11:=
|
||||
x11-libs/libXext:=
|
||||
x11-libs/libXrender:=
|
||||
x11-misc/shared-mime-info
|
||||
>=x11-misc/xdg-utils-1.0.2-r2
|
||||
ios? (
|
||||
>=app-pda/usbmuxd-1.0.8
|
||||
>=app-pda/libimobiledevice-1.2.0
|
||||
)
|
||||
udisks? ( virtual/libudev )"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
udisks? ( sys-fs/udisks:2 )"
|
||||
DEPEND="${COMMON_DEPEND}"
|
||||
BDEPEND="$(python_gen_cond_dep '
|
||||
>=dev-python/setuptools-23.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/sip-5[${PYTHON_USEDEP}]
|
||||
')
|
||||
>=virtual/podofo-build-0.9.6_pre20171027
|
||||
virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
# Don't prompt the user for updates - they've installed via
|
||||
# an ebuild.
|
||||
"${FILESDIR}/${PN}-2.9.0-no_updates_dialog.patch"
|
||||
|
||||
# Skip calling a binary (JxrDecApp) from libjxr which is used for tests
|
||||
# We don't (yet?) package libjxr and it seems to be dead upstream
|
||||
# (last commit in 2017)
|
||||
"${FILESDIR}/${PN}-5.31.0-jxr-test.patch"
|
||||
|
||||
# TODO:
|
||||
# test_qt tries to load a bunch of images using Qt and it currently fails
|
||||
# due to some presumably missing dependencies. This is important and
|
||||
# we need to look into it, but at time of writing, none of the tests
|
||||
# are even bring run, so I'd like to return to this later.
|
||||
# We don't want to skip test_qt entirely, so just skip this particular
|
||||
# assert for now.
|
||||
"${FILESDIR}/${PN}-5.31.0-qt-image-test.patch"
|
||||
)
|
||||
|
||||
pkg_pretend() {
|
||||
if [[ ${MERGE_TYPE} != binary ]] && tc-is-gcc && [[ $(gcc-major-version) -lt 6 ]]; then
|
||||
eerror "Calibre cannot be built with this version of gcc."
|
||||
eerror "You need at least gcc-6.0"
|
||||
die "Your C compiler is too old for this package."
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Warning:
|
||||
#
|
||||
# While it might be rather tempting to add yet another sed here,
|
||||
# please don't. There have been several bugs in Gentoo's packaging
|
||||
# of calibre from seds-which-become-stale. Please consider
|
||||
# creating a patch instead, but in any case, run the test suite
|
||||
# and ensure it passes.
|
||||
#
|
||||
# If in doubt about a problem, checking Fedora or Arch Linux's packaging
|
||||
# is recommended, as Arch Linux's PKGBUILD is maintained by a Calibre
|
||||
# contributor. Or just ask them.
|
||||
|
||||
# Fix outdated version constant.
|
||||
#sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \
|
||||
# -i src/calibre/constants.py || \
|
||||
# die "sed failed to patch constants.py"
|
||||
|
||||
# Avoid sandbox violation in /usr/share/gnome/apps when linux.py
|
||||
# calls xdg-* (bug #258938).
|
||||
sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \
|
||||
-e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
|
||||
-e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \
|
||||
-e "s|, PreserveMIMEDefaults():|:|" \
|
||||
-e "s|'xdg-icon-resource', 'install'|\\0, '--mode', 'user'|" \
|
||||
-e "s|cmd\[2\]|cmd[4]|" \
|
||||
-e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
|
||||
-e "s|'xdg-mime', 'install'|\\0, '--mode', 'user'|" \
|
||||
-i src/calibre/linux.py || die "sed failed to patch linux.py"
|
||||
|
||||
# Disable unnecessary privilege dropping for bug #287067.
|
||||
sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \
|
||||
-i setup/install.py || die "sed failed to patch install.py"
|
||||
sed -e "/^ os.chdir(os.path.join(src_dir, 'build'))$/a\
|
||||
\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \
|
||||
'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \
|
||||
'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \
|
||||
'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \
|
||||
'-i', os.path.join(os.path.basename(src_dir), 'Makefile')])" \
|
||||
-e "s|open(self.j(bdir, '.qmake.conf'), 'wb').close()|open(self.j(bdir, '.qmake.conf'), 'wb').write(b'QMAKE_LFLAGS += ${LDFLAGS}')|" \
|
||||
-i setup/build.py || die "sed failed to patch build.py"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# TODO: get qmake called by setup.py to respect CC and CXX too
|
||||
tc-export CC CXX
|
||||
|
||||
# bug 821871
|
||||
local MY_LIBDIR="${ESYSROOT}/usr/$(get_libdir)"
|
||||
export FT_LIB_DIR="${MY_LIBDIR}" HUNSPELL_LIB_DIR="${MY_LIBDIR}" PODOFO_LIB_DIR="${MY_LIBDIR}"
|
||||
|
||||
PATH="${T}/bin:${PATH}" ${EPYTHON} setup.py build || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Skipped tests:
|
||||
# - 7z (unpackaged Python dependency: py7zr)
|
||||
# - test_unrar (unpackaged Python dependency: unrardll)
|
||||
#
|
||||
# Note that we currently have a hack to skip one part of test_qt!
|
||||
# See PATCHES for more.
|
||||
CALIBRE_PY3_PORT=1 ${PYTHON} setup.py test \
|
||||
--exclude-test-name 7z \
|
||||
--exclude-test-name test_searching \
|
||||
--exclude-test-name test_unrar || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# calibre works with python 3, so remove the python 2 constraint
|
||||
export CALIBRE_PY3_PORT=1
|
||||
|
||||
# Bypass kbuildsycoca and update-mime-database in order to
|
||||
# avoid sandbox violations if xdg-mime tries to call them.
|
||||
mkdir "${T}/bin" || die
|
||||
cat - > "${T}/bin/kbuildsycoca" <<-EOF
|
||||
#!${BASH}
|
||||
echo $0 : $@
|
||||
exit 0
|
||||
EOF
|
||||
|
||||
cp "${T}"/bin/{kbuildsycoca,update-mime-database} || die
|
||||
chmod +x "${T}"/bin/{kbuildsycoca,update-mime-database} || die
|
||||
|
||||
export QMAKE="${EPREFIX}/usr/$(get_libdir)/qt5/bin/qmake"
|
||||
|
||||
# Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox
|
||||
# violation with kbuildsycoca as in bug #287067, comment #13.
|
||||
export -n DISPLAY
|
||||
|
||||
# Bug #352625 - Some LANGUAGE values can trigger the following ValueError:
|
||||
# File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale
|
||||
# return _parse_localename(localename)
|
||||
# File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename
|
||||
# raise ValueError, 'unknown locale: %s' % localename
|
||||
#ValueError: unknown locale: 46
|
||||
export -n LANG LANGUAGE ${!LC_*}
|
||||
export LC_ALL=C.utf8 #709682
|
||||
|
||||
# Bug #295672 - Avoid sandbox violation in ~/.config by forcing
|
||||
# variables to point to our fake temporary $HOME.
|
||||
export HOME="${T}/fake_homedir"
|
||||
export XDG_CONFIG_HOME="${HOME}/.config"
|
||||
export XDG_DATA_HOME="${HOME}/.local/share"
|
||||
export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre"
|
||||
mkdir -p "${XDG_DATA_HOME}" "${CALIBRE_CONFIG_DIRECTORY}" || die
|
||||
|
||||
tc-export CC CXX
|
||||
# Bug #334243 - respect LDFLAGS when building extensions
|
||||
export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS"
|
||||
local libdir=$(get_libdir)
|
||||
[[ -n $libdir ]] || die "get_libdir returned an empty string"
|
||||
|
||||
addpredict /dev/dri #665310
|
||||
|
||||
PATH=${T}/bin:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \
|
||||
"${PYTHON}" setup.py install \
|
||||
--root="${D}" \
|
||||
--prefix="${EPREFIX}/usr" \
|
||||
--libdir="${EPREFIX}/usr/${libdir}" \
|
||||
--staging-root="${ED}/usr" \
|
||||
--staging-libdir="${ED}/usr/${libdir}" || die
|
||||
|
||||
find "${ED}"/usr/share -type d -empty -delete
|
||||
|
||||
cd "${ED}"/usr/share/calibre/fonts/liberation || die
|
||||
local x
|
||||
for x in * ; do
|
||||
[[ -f ${EPREFIX}/usr/share/fonts/liberation-fonts/${x} ]] || continue
|
||||
ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die
|
||||
done
|
||||
|
||||
einfo "Converting python shebangs"
|
||||
python_fix_shebang --force "${ED}"
|
||||
|
||||
einfo "Compiling python modules"
|
||||
python_optimize "${ED}"/usr/$(get_libdir)/calibre "${D}/$(python_get_sitedir)"
|
||||
|
||||
newinitd "${FILESDIR}"/calibre-server-3.init calibre-server
|
||||
newconfd "${FILESDIR}"/calibre-server-3.conf calibre-server
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# Indentify stray directories from upstream's "Binary install"
|
||||
# method (see bug 622728).
|
||||
CALIBRE_LIB_DIR=/usr/$(get_libdir)/calibre
|
||||
CALIBRE_LIB_CONTENT=$(for x in "${ED}${CALIBRE_LIB_DIR}"/*; do
|
||||
printf -- "${x##*/} "; done) || die "Failed to list ${ED}${CALIBRE_LIB_DIR}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
[[ -n ${CALIBRE_LIB_DIR} ]] || die "CALIBRE_LIB_DIR is unset"
|
||||
local x
|
||||
for x in "${EROOT}${CALIBRE_LIB_DIR}"/*; do
|
||||
if [[ " ${CALIBRE_LIB_CONTENT} " != *" ${x##*/} "* ]]; then
|
||||
elog "Purging '${x}'"
|
||||
rm -rf "${x}"
|
||||
fi
|
||||
done
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
xdg_icon_cache_update
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST mupdf-1.18.0-source.tar.xz 53621544 BLAKE2B d0057f4240bd4f6b4b6d9381ae1c3871c56b97604d5c6ea6438a8bde72d4696c10a9f0e8e2ed8f43d63a04bb1d973bade8a708327c00b0d0c6802b28af697a55 SHA512 7551f18b9bac6e2dc1cf073741cbc975ce3a16dc7e37c9d5a58254c67bf2c07bb36185d6585e435d4126f3ae351f67d7432d19a986c9b47b15105ca43db0edb8
|
||||
DIST mupdf-1.19.0-source.tar.xz 64077324 BLAKE2B 4c30cfc004b4f354ae349e5460327775a4dbdd689e561888c156e9e69e22b45ea1f260dfed8d2d8c017fe65a1e83cabc8ff29dad8de47a2c541f9e335bf11285 SHA512 421e8e49f83cf00bfb2c86b5425939056fe866a048cf18e4c8f5764cdee9829974eea655c944d0f3f5a9407347cceaef34030f4079aa399e798da3ff849230e7
|
||||
|
@ -0,0 +1,37 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 7fa74b3..e842374 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -3,7 +3,7 @@
|
||||
-include user.make
|
||||
|
||||
ifndef build
|
||||
- build := release
|
||||
+ build := debug
|
||||
endif
|
||||
|
||||
default: all
|
||||
@@ -252,17 +252,19 @@ $(THIRD_GLUT_LIB) : $(THIRD_GLUT_OBJ)
|
||||
$(THREAD_LIB) : $(THREAD_OBJ)
|
||||
$(PKCS7_LIB) : $(PKCS7_OBJ)
|
||||
else
|
||||
-MUPDF_LIB = $(OUT)/libmupdf.a
|
||||
+MUPDF_LIB = libmupdf.so.$(GENTOO_PV)
|
||||
LIBS_TO_INSTALL_IN_LIB = $(MUPDF_LIB) $(THIRD_LIB)
|
||||
-THIRD_LIB = $(OUT)/libmupdf-third.a
|
||||
+THIRD_LIB =
|
||||
+MUPDF_STATIC = $(OUT)/libmupdf.a
|
||||
ifneq ($(USE_SYSTEM_GLUT),yes)
|
||||
THIRD_GLUT_LIB = $(OUT)/libmupdf-glut.a
|
||||
endif
|
||||
THREAD_LIB = $(OUT)/libmupdf-threads.a
|
||||
PKCS7_LIB = $(OUT)/libmupdf-pkcs7.a
|
||||
|
||||
-$(MUPDF_LIB) : $(MUPDF_OBJ)
|
||||
-$(THIRD_LIB) : $(THIRD_OBJ)
|
||||
+$(MUPDF_LIB) : $(MUPDF_OBJ) $(THIRD_OBJ)
|
||||
+ $(QUIET_LINK) $(CC) $(LDFLAGS) --shared -Wl,-soname -Wl,$(MUPDF_LIB) -o $@ $^ $(THIRD_LIBS) $(LIBS)
|
||||
+$(MUPDF_STATIC): $(MUPDF_OBJ) $(THIRD_OBJ)
|
||||
$(THIRD_GLUT_LIB) : $(THIRD_GLUT_OBJ)
|
||||
$(THREAD_LIB) : $(THREAD_OBJ)
|
||||
$(PKCS7_LIB) : $(PKCS7_OBJ)
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue