parent
61a0ce672f
commit
4c489cc1da
Binary file not shown.
Binary file not shown.
@ -1,3 +1,2 @@
|
|||||||
DIST ansible-2.4.1.0.tar.gz 6675552 BLAKE2B 00497b33e833149510669c9e481b0893a2d016caf2949fa064ca0a2e4f62a6c5a3f94597673822418253b85abaf380308115dfaa4c1acd88f0c73322d87822d4 SHA512 86bda43d912fc6b9cbf662e7e9e3ca3178ac577bc7857c5dfc0e68a7083d76ad405b0ca9b34f680a0d635b87e0bf5dc8cbdeefb93174242e1942eabb74b07f1d
|
|
||||||
DIST ansible-2.4.2.0.tar.gz 6503595 BLAKE2B df4ec4e24671f1488950f2d9eb7705fbad4e035d6ac67d5017417281455cc44cde1290976a9ed16675c0cc19a9190200b95b29890725c56df5f2699398accd6b SHA512 32a075959dca01e184d9c3988fc9c491e904e7627a38e3527c37a8b26340f331bd294cacfe7353d339d15488857ba5ee1b36d9ae4ebeb8b5827934a73f4b42b0
|
DIST ansible-2.4.2.0.tar.gz 6503595 BLAKE2B df4ec4e24671f1488950f2d9eb7705fbad4e035d6ac67d5017417281455cc44cde1290976a9ed16675c0cc19a9190200b95b29890725c56df5f2699398accd6b SHA512 32a075959dca01e184d9c3988fc9c491e904e7627a38e3527c37a8b26340f331bd294cacfe7353d339d15488857ba5ee1b36d9ae4ebeb8b5827934a73f4b42b0
|
||||||
DIST ansible-2.4.3.0.tar.gz 6511115 BLAKE2B d43679c651f6aa5fd86c797a204645a8ee98efbcde9abaa25385aeb6f1d7c8b4ad74185434bfd159dbf673fe9339ef8f915f78238f8b8a5caf924b54cb9bdd52 SHA512 a7cda358c67c519c7e5ba248bf47070f21a27203fb29d70d9d75ecf027ba1275d71c0f96493e047281211d172a3be8273d7e08144446284695fb0bc8b94daa82
|
DIST ansible-2.4.3.0.tar.gz 6511115 BLAKE2B d43679c651f6aa5fd86c797a204645a8ee98efbcde9abaa25385aeb6f1d7c8b4ad74185434bfd159dbf673fe9339ef8f915f78238f8b8a5caf924b54cb9bdd52 SHA512 a7cda358c67c519c7e5ba248bf47070f21a27203fb29d70d9d75ecf027ba1275d71c0f96493e047281211d172a3be8273d7e08144446284695fb0bc8b94daa82
|
||||||
|
@ -1,57 +0,0 @@
|
|||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 python3_5 )
|
|
||||||
|
|
||||||
inherit distutils-r1 eutils versionator
|
|
||||||
|
|
||||||
DESCRIPTION="Model-driven deployment, config management, and command execution framework"
|
|
||||||
HOMEPAGE="http://ansible.com/"
|
|
||||||
SRC_URI="http://releases.ansible.com/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 x86 ~x64-macos"
|
|
||||||
IUSE="test"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
|
||||||
dev-python/jinja[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
|
||||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
||||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
|
||||||
dev-python/httplib2[${PYTHON_USEDEP}]
|
|
||||||
dev-python/six[${PYTHON_USEDEP}]
|
|
||||||
dev-python/netaddr[${PYTHON_USEDEP}]
|
|
||||||
net-misc/sshpass
|
|
||||||
virtual/ssh
|
|
||||||
"
|
|
||||||
DEPEND="
|
|
||||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/packaging-16.6[${PYTHON_USEDEP}]
|
|
||||||
test? (
|
|
||||||
${RDEPEND}
|
|
||||||
dev-python/nose[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
|
|
||||||
<dev-python/mock-1.1[${PYTHON_USEDEP}]
|
|
||||||
dev-python/passlib[${PYTHON_USEDEP}]
|
|
||||||
dev-python/coverage[${PYTHON_USEDEP}]
|
|
||||||
dev-python/unittest2[${PYTHON_USEDEP}]
|
|
||||||
dev-vcs/git
|
|
||||||
)"
|
|
||||||
|
|
||||||
# not included in release tarball
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
nosetests -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches || die
|
|
||||||
}
|
|
||||||
|
|
||||||
python_install_all() {
|
|
||||||
distutils-r1_python_install_all
|
|
||||||
|
|
||||||
doman docs/man/man1/*.1
|
|
||||||
dodoc -r examples
|
|
||||||
}
|
|
@ -1,2 +1,3 @@
|
|||||||
DIST glance-15.0.0.tar.gz 1803491 BLAKE2B 70e0f1f7eab6aa0066d16e30e9325ac45d9c0eb9df875e3b26e90463e10299d6c7c272c0b070137f27332bdfcb33abeda68e3375e2562c83942ca72fcb24de38 SHA512 beb5744f9e8b296356cb731c79f1efd7b60408c1282e8a64ab7d414929c447c4f2ff0562a0d59c0a05f828d420ba190946866543a37dbd2df73ae322cbcabab5
|
DIST glance-15.0.0.tar.gz 1803491 BLAKE2B 70e0f1f7eab6aa0066d16e30e9325ac45d9c0eb9df875e3b26e90463e10299d6c7c272c0b070137f27332bdfcb33abeda68e3375e2562c83942ca72fcb24de38 SHA512 beb5744f9e8b296356cb731c79f1efd7b60408c1282e8a64ab7d414929c447c4f2ff0562a0d59c0a05f828d420ba190946866543a37dbd2df73ae322cbcabab5
|
||||||
DIST glance-15.0.1.tar.gz 1815463 BLAKE2B ec6e51340fc4d737e2bd777baf03163a0b515d19c1dc8e5203918e07b304a9539f47ba763207e26def985c6a384d21250ffe1386b433d8b606b55d3d70e4431a SHA512 2da3ada256424a7817d0c49aac0940443cbefcfff3df77a623d7099badf356808b5df59f109ac233f84ac561b7310d3b8d53cafd6c9955a8e2b296a1655cedd3
|
DIST glance-15.0.1.tar.gz 1815463 BLAKE2B ec6e51340fc4d737e2bd777baf03163a0b515d19c1dc8e5203918e07b304a9539f47ba763207e26def985c6a384d21250ffe1386b433d8b606b55d3d70e4431a SHA512 2da3ada256424a7817d0c49aac0940443cbefcfff3df77a623d7099badf356808b5df59f109ac233f84ac561b7310d3b8d53cafd6c9955a8e2b296a1655cedd3
|
||||||
|
DIST glance-16.0.0.tar.gz 1956293 BLAKE2B 457f18412885287d8a3ea1b702af0e7b826eeeaf93ce8b1b7456a42d3a84594cfe270670ac35e9c63d8fbb464a3ed0db823a6949fbfa37f993b260681222d9c1 SHA512 20ff8ba74eee3a5b69f7e357f69870398e96341831bea56bbad61314d3eff9d6767dfd48634d04f96cfbc4cc96c7eff3ab900748461ecaa14e2cf329aec40481
|
||||||
|
@ -0,0 +1,145 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
PYTHON_COMPAT=( python2_7 python3_4 python3_5 )
|
||||||
|
|
||||||
|
inherit distutils-r1 user
|
||||||
|
|
||||||
|
DESCRIPTION="Services for discovering, registering, and retrieving VM images"
|
||||||
|
HOMEPAGE="https://launchpad.net/glance"
|
||||||
|
|
||||||
|
if [[ ${PV} == *9999 ]];then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/openstack/glance.git"
|
||||||
|
EGIT_BRANCH="stable/queens"
|
||||||
|
else
|
||||||
|
SRC_URI="https://tarballs.openstack.org/${PN}/${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="doc mysql postgres +sqlite +swift"
|
||||||
|
REQUIRED_USE="|| ( mysql postgres sqlite )"
|
||||||
|
|
||||||
|
CDEPEND=">=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
|
||||||
|
!~dev-python/pbr-2.1.0"
|
||||||
|
DEPEND="
|
||||||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||||
|
${CDEPEND}"
|
||||||
|
|
||||||
|
#note to self, wsgiref is a python builtin, no need to package it
|
||||||
|
#>=dev-python/wsgiref-0.1.2[${PYTHON_USEDEP}]
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
${CDEPEND}
|
||||||
|
>=dev-python/defusedxml-0.5.0[${PYTHON_USEDEP}]
|
||||||
|
sqlite? (
|
||||||
|
>=dev-python/sqlalchemy-1.0.10[sqlite,${PYTHON_USEDEP}]
|
||||||
|
!~dev-python/sqlalchemy-1.1.5[sqlite,${PYTHON_USEDEP}]
|
||||||
|
!~dev-python/sqlalchemy-1.1.6[sqlite,${PYTHON_USEDEP}]
|
||||||
|
!~dev-python/sqlalchemy-1.1.7[sqlite,${PYTHON_USEDEP}]
|
||||||
|
!~dev-python/sqlalchemy-1.1.8[sqlite,${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
mysql? (
|
||||||
|
>=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}]
|
||||||
|
!~dev-python/pymysql-0.7.7[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}]
|
||||||
|
!~dev-python/sqlalchemy-1.1.5[${PYTHON_USEDEP}]
|
||||||
|
!~dev-python/sqlalchemy-1.1.6[${PYTHON_USEDEP}]
|
||||||
|
!~dev-python/sqlalchemy-1.1.7[${PYTHON_USEDEP}]
|
||||||
|
!~dev-python/sqlalchemy-1.1.8[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
postgres? (
|
||||||
|
>=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}]
|
||||||
|
!~dev-python/sqlalchemy-1.1.5[${PYTHON_USEDEP}]
|
||||||
|
!~dev-python/sqlalchemy-1.1.6[${PYTHON_USEDEP}]
|
||||||
|
!~dev-python/sqlalchemy-1.1.7[${PYTHON_USEDEP}]
|
||||||
|
!~dev-python/sqlalchemy-1.1.8[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
>=dev-python/eventlet-0.18.4[${PYTHON_USEDEP}]
|
||||||
|
!~dev-python/eventlet-0.20.1[${PYTHON_USEDEP}]
|
||||||
|
<dev-python/eventlet-0.21.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/routes-2.3.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/webob-1.7.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/sqlalchemy-migrate-0.11.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/python-sqlparse-0.2.2[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/alembic-0.8.10[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/oslo-config-5.1.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/oslo-concurrency-3.25.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/oslo-context-2.19.2[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/oslo-utils-3.33.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/futurist-1.2.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/taskflow-2.16.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/keystoneauth-3.3.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/keystonemiddleware-4.17.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/WSME-0.8.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/prettytable-0.7.0[${PYTHON_USEDEP}]
|
||||||
|
<dev-python/prettytable-0.8.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/paste-2.0.2[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/jsonschema-2.6.0[${PYTHON_USEDEP}]
|
||||||
|
<dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/python-keystoneclient-3.8.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pyopenssl-16.2.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/six-1.10.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/oslo-db-4.27.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/oslo-i18n-3.15.3[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/oslo-log-3.36.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/oslo-messaging-5.29.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/oslo-middleware-3.31.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/oslo-policy-1.30.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/retrying-1.2.3[${PYTHON_USEDEP}]
|
||||||
|
!~dev-python/retrying-1.3.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/osprofiler-1.4.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/glance_store-0.22.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/debtcollector-1.2.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/cryptography-1.9[${PYTHON_USEDEP}]
|
||||||
|
!~dev-python/cryptography-2.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/cursive-0.2.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/monotonic-0.6[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
|
||||||
|
#PATCHES=(
|
||||||
|
#)
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
enewgroup glance
|
||||||
|
enewuser glance -1 -1 /var/lib/glance glance
|
||||||
|
}
|
||||||
|
|
||||||
|
python_prepare_all() {
|
||||||
|
sed -i '/xattr/d' test-requirements.txt || die
|
||||||
|
sed -i '/pysendfile/d' test-requirements.txt || die
|
||||||
|
sed -i '/^hacking/d' test-requirements.txt || die
|
||||||
|
distutils-r1_python_prepare_all
|
||||||
|
}
|
||||||
|
|
||||||
|
python_compile_all() {
|
||||||
|
use doc && "${PYTHON}" setup.py build_sphinx
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
|
||||||
|
newinitd "${FILESDIR}/glance.initd" glance-api
|
||||||
|
|
||||||
|
diropts -m 0750 -o glance -g glance
|
||||||
|
dodir /var/log/glance /var/lib/glance/images /var/lib/glance/scrubber
|
||||||
|
keepdir /etc/glance
|
||||||
|
keepdir /var/log/glance
|
||||||
|
keepdir /var/lib/glance/images
|
||||||
|
keepdir /var/lib/glance/scrubber
|
||||||
|
|
||||||
|
insinto /etc/glance
|
||||||
|
insopts -m 0640 -o glance -g glance
|
||||||
|
doins -r etc/*.ini etc/*.conf etc/*.sample etc/*.json etc/meta*
|
||||||
|
|
||||||
|
use doc && local HTML_DOCS=( doc/build/html/. )
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
}
|
@ -1,3 +1,3 @@
|
|||||||
DIST keepassxc-2.1.4.tar.gz 3345520 BLAKE2B d599321a412abc05ad0a911b8fe4d14e840d491e59d3f33172a5e6b10812fe8e00d03f23abcc9637be1b8c16b5c7ec640bbc2af63059dc0dd25c99f0bdacfce9 SHA512 48030eb6df595c73644f43d6222654c5f76962ae5aa2f44ca4dc9c8e45726380c6be4300af7a8279b07c06b70912da444f2b17c5b6c37a91cb239d695e7518d8
|
DIST keepassxc-2.1.4.tar.gz 3345520 BLAKE2B d599321a412abc05ad0a911b8fe4d14e840d491e59d3f33172a5e6b10812fe8e00d03f23abcc9637be1b8c16b5c7ec640bbc2af63059dc0dd25c99f0bdacfce9 SHA512 48030eb6df595c73644f43d6222654c5f76962ae5aa2f44ca4dc9c8e45726380c6be4300af7a8279b07c06b70912da444f2b17c5b6c37a91cb239d695e7518d8
|
||||||
DIST keepassxc-2.2.2.tar.gz 3885990 BLAKE2B 2eb70217a4b73daac3f8eaf797c2c5c5dc6b2d8b7a76a91f45a036da034335937f3f21e48590d8493dcaa4f6079897440338650f14e75fa1884585d36d946bb4 SHA512 73a167a79af56d4b6dbef7ce4050ca599f2c107a5c8af3b9e28241504572988b2d8b258135b7a34dfceae5a18cbda26b97ed513bbde14fe3d38e3f41b882d34b
|
|
||||||
DIST keepassxc-2.2.4.tar.gz 3895421 BLAKE2B 0de35f394dae8cf8d70f75d73783965826cc03ac9f0921afa547d02e61cb04be167891d92aa0db09f007c47e96a5a7e5793772c50de14bf65a7f80a603ca6611 SHA512 f3308138d63b65a8b384a52f4723507be921d7bbf19031724886fcd12266bf2683326f5531c8f665b0e98ff63cd97251694199ef748191e59a5a8cceb3710025
|
DIST keepassxc-2.2.4.tar.gz 3895421 BLAKE2B 0de35f394dae8cf8d70f75d73783965826cc03ac9f0921afa547d02e61cb04be167891d92aa0db09f007c47e96a5a7e5793772c50de14bf65a7f80a603ca6611 SHA512 f3308138d63b65a8b384a52f4723507be921d7bbf19031724886fcd12266bf2683326f5531c8f665b0e98ff63cd97251694199ef748191e59a5a8cceb3710025
|
||||||
|
DIST keepassxc-2.3.0-src.tar.xz 3803400 BLAKE2B 1e9d72bb71e3db0f7f4662bca22affe68c0ac857ce3b7b67924949622edf3a4d2f54717c1c629d79c2cfeccd29d0f1906a8f43e49483980d11afbb654a132f4f SHA512 44721a4dd9364898c69a10d73ceb3fce9b8e83bbe261d9bc656897bc01f37e9b65b923867e18d3c3269773075ad846a0e1195d8b7bf574fcbce7bef9a5778888
|
||||||
|
Binary file not shown.
@ -1,3 +1,4 @@
|
|||||||
DIST lz4-1.7.5.tar.gz 208019 BLAKE2B a3d79d622eb0be2447cc6b0459bd81ae22b44ebe536ebd34b1c394bf1ff560c9b53e3f9203d5c94d046101a48d9b1ea7db74c39875d0a67b3a5f71d9633aa3b7 SHA512 b4e5b17fe06805e676608e636a45f0b480b79a02c6b7ffce84dc4d607861cb2652b2852493ab9d9249e7caeae6f00b6834801fdc39f58d901cbc1c7347915295
|
DIST lz4-1.7.5.tar.gz 208019 BLAKE2B a3d79d622eb0be2447cc6b0459bd81ae22b44ebe536ebd34b1c394bf1ff560c9b53e3f9203d5c94d046101a48d9b1ea7db74c39875d0a67b3a5f71d9633aa3b7 SHA512 b4e5b17fe06805e676608e636a45f0b480b79a02c6b7ffce84dc4d607861cb2652b2852493ab9d9249e7caeae6f00b6834801fdc39f58d901cbc1c7347915295
|
||||||
DIST lz4-1.8.0.tar.gz 222840 BLAKE2B 0b33f920f59a5ec9576051baa9ba887b320d424f8f64e1a752124371797d3f8bf2dbf13ee2e7268ef363d70697b8358e7ad627489c6843c61bdba004df80c5ec SHA512 aea46d4a900a3ede7dd7b498ee938ecd98397d3277c5b3a85b4236a44777cba85cd68a2f32c993b872afda96c5dafe0cb3dd391101fe8181e17c9f48884c1535
|
DIST lz4-1.8.0.tar.gz 222840 BLAKE2B 0b33f920f59a5ec9576051baa9ba887b320d424f8f64e1a752124371797d3f8bf2dbf13ee2e7268ef363d70697b8358e7ad627489c6843c61bdba004df80c5ec SHA512 aea46d4a900a3ede7dd7b498ee938ecd98397d3277c5b3a85b4236a44777cba85cd68a2f32c993b872afda96c5dafe0cb3dd391101fe8181e17c9f48884c1535
|
||||||
|
DIST lz4-1.8.1.2.tar.gz 228640 BLAKE2B e5e7176dcce5319e2dcb1f6d69c47749976fd7e8c53c2379bdd0ef4c6f60bf426b2b58d606407f69d0b91e6835c9740265299107d11554e7a13963cdc855e8e5 SHA512 f4ed450bc05477cc6c2b42e6fe1fbb1fb0907f1d05b68b1d69d975b555ddb385550f204258e6d91642e14ce373815141dc218cda03b711793935d5458bc45c7f
|
||||||
DIST lz4-r131.tar.gz 133784 BLAKE2B f072d1f97ac6f804140c3896dfa95c16eb3c2c2208cfeb35a07535bb345fa100e4169ea91b2aa05655fb61f6f2d64a7c25444778b99841d3e3d0f09b10f570d8 SHA512 60bd95d529691ffee2c43f0d8a62484c3cff74c0154094f073192606806ac8182dced61e0534ffa7e0ccf5f18e9a8cfd2738883a83814c0711a6d7f1d1b252e5
|
DIST lz4-r131.tar.gz 133784 BLAKE2B f072d1f97ac6f804140c3896dfa95c16eb3c2c2208cfeb35a07535bb345fa100e4169ea91b2aa05655fb61f6f2d64a7c25444778b99841d3e3d0f09b10f570d8 SHA512 60bd95d529691ffee2c43f0d8a62484c3cff74c0154094f073192606806ac8182dced61e0534ffa7e0ccf5f18e9a8cfd2738883a83814c0711a6d7f1d1b252e5
|
||||||
|
@ -0,0 +1,37 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit cmake-multilib
|
||||||
|
|
||||||
|
if [[ ${PV} == 9999 ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/lz4/lz4.git"
|
||||||
|
EGIT_BRANCH=dev
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/Cyan4973/lz4/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~x64-macos"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="Extremely Fast Compression algorithm"
|
||||||
|
HOMEPAGE="https://github.com/lz4/lz4"
|
||||||
|
|
||||||
|
LICENSE="BSD-2 GPL-2"
|
||||||
|
# https://abi-laboratory.pro/tracker/timeline/lz4/
|
||||||
|
# 1.7.5->1.8.0 has some minor changes; the only really incompatible
|
||||||
|
# would be removing 'const' from LZ4F_freeDecompressionContext() arg
|
||||||
|
# however, it is extremely unlikely that this 'const' would actually
|
||||||
|
# be relied on
|
||||||
|
SLOT="0/r131"
|
||||||
|
IUSE="static-libs"
|
||||||
|
|
||||||
|
CMAKE_USE_DIR=${S}/contrib/cmake_unofficial
|
||||||
|
|
||||||
|
multilib_src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DBUILD_STATIC_LIBS=$(usex static-libs)
|
||||||
|
)
|
||||||
|
|
||||||
|
cmake-utils_src_configure
|
||||||
|
}
|
@ -0,0 +1,60 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
inherit autotools toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="build a self-extracting and self-installing binary package"
|
||||||
|
HOMEPAGE="https://sourceforge.net/projects/pdv"
|
||||||
|
SRC_URI="mirror://sourceforge/pdv/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~hppa ~ppc ~x86 ~x86-linux ~ppc-macos"
|
||||||
|
IUSE="X"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
X? (
|
||||||
|
>=x11-libs/motif-2.3:0
|
||||||
|
>=x11-libs/libX11-1.0.0
|
||||||
|
>=x11-libs/libXt-1.0.0
|
||||||
|
>=x11-libs/libXext-1.0.0 )
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# fix a size-of-variable bug
|
||||||
|
eapply "${FILESDIR}"/${P}-opt.patch
|
||||||
|
# fix a free-before-use bug
|
||||||
|
eapply "${FILESDIR}"/${P}-early-free.patch
|
||||||
|
# fix a configure script bug
|
||||||
|
eapply "${FILESDIR}"/${P}-x-config.patch
|
||||||
|
# fix default args bug from assuming 'char' is signed
|
||||||
|
eapply "${FILESDIR}"/${P}-default-args.patch
|
||||||
|
# prevent pre-stripped binaries
|
||||||
|
eapply "${FILESDIR}"/${P}-no-strip.patch
|
||||||
|
|
||||||
|
# re-build configure script since patch was applied to configure.in
|
||||||
|
cd "${S}"/X11
|
||||||
|
mv configure.in configure.ac || die
|
||||||
|
eautoreconf
|
||||||
|
tc-export CC
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myconf=""
|
||||||
|
use X || myconf="--without-x" # configure script is broken, cant use use_with
|
||||||
|
econf ${myconf}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin pdv pdvmkpkg
|
||||||
|
doman pdv.1 pdvmkpkg.1
|
||||||
|
if use X ; then
|
||||||
|
dobin X11/xmpdvmkpkg
|
||||||
|
doman xmpdvmkpkg.1
|
||||||
|
fi
|
||||||
|
dodoc AUTHORS ChangeLog NEWS README pdv.lsm
|
||||||
|
}
|
Binary file not shown.
@ -1,6 +1 @@
|
|||||||
DIST ubuntu-keyring_2012.05.19.tar.gz 18495 BLAKE2B 8bc9e0c8a112e50b686db7224b88aafd3bf7336071d404ef70f5007ea2be8c9b1e6fe07dc0744e540f948c42e9730ed3accd49dbd9a9a324d43bf4b8012b1a9f SHA512 3f33099255af9aad1ae8ae845074e714dc846134f49934b221a74c21ef35af5172dc1d845d3819cb28f353abd23df690b15fa0e7f74f8e2a882ddef1ab150f54
|
DIST ubuntu-keyring_2018.02.28.tar.gz 30181 BLAKE2B 1dc1232aa3ddbbb4a908e2b0deb035fd2ae61ddad4ebba99cce43c636af30760a09bf46f05c35c8205ccfaf526ed8b0a3b9daa308ae5d7272da078903ee15557 SHA512 60f3a792d095206466f4c39672affb261b4520fb7b5b9df47487741e0d6613cd1076fde0e30120bcbe161b170c41f7ec1bbb2c36cddf13ee69a457df00c36fa8
|
||||||
DIST ubuntu-keyring_2016.09.01.tar.gz 18251 BLAKE2B 223982d494c7f455e834b8ed1763bd84fe0929af3a556143b7a166160ac056fc07bad5c52dafb170df0ab232bed6816479e2dad549bc90becdf7d847345523ae SHA512 ae48fb7a57c95140abb38fa3ed0484acf5374ecc562b54ca321a1c33e76178c3f9e5869ceca1f529686135d601f5738d4426589e558f65923271ca5d2f16ebe2
|
|
||||||
DIST ubuntu-keyring_2016.09.19.tar.gz 20282 BLAKE2B bfe9af3dd25b2f35f27bd421b5b03d94f018fc02af0f3dfb95441260b31ec48ea406c869305f99a1599661bc4862e40c9258d5fe39c2b84e8a3534f3ae807e1c SHA512 2dec94d99502730f455ca9832a0f20a027fbcbd896124b93f79dbf0b2c15e73641719626c08caaf9d35922d569929097f2e2189bad855d12bf4cddd2e4379d19
|
|
||||||
DIST ubuntu-keyring_2016.10.27.tar.gz 19182 BLAKE2B 2a3f67be4f2e14e15747f497ffb6a5d784010ae4532b4b3990103cc461f7e2af8a00957fb173ab98e7e44e3fab843c611c33a88cd68c462e09b70a54acfe3cce SHA512 ac4b4353a89bd15f8511ba1cecccb6597c407b67b4642c24ae1e461b2be2a5b2989bf5bc033cb2a265217688a366d2c2907b52bc1e484061348cb218ee5cb6a2
|
|
||||||
DIST ubuntu-keyring_2018.02.05.tar.gz 27788 BLAKE2B 6d11ad002063eb0663316a157058fe4733bae42af4bb6620c20f0230b0f3f0c7a7760b90401c7fe711f0177de9302f13814245dff4476e8781912e08fa35a8d3 SHA512 cbed6d444f9d83c46f9d4a3351dec7da2ae9746fc56fa66f74c95719fa0ecdb84edb90c74acec26ffecae3741c9c460c84208bdbd3a1ec006b735acf90a7fe99
|
|
||||||
DIST ubuntu-keyring_2018.02.06.tar.gz 29977 BLAKE2B 0ea4fc1ab191ee1c04eb1df1675ce3b1a432415c726e2778d9dd7e2bf7eb6b122d39438d07217279172ad19c3618e95b378516cd8bca63fe860b0e721678db07 SHA512 bd87412686dbdc5ca25bad5d810a7410f3d9472cc254d8dc8936d45fd65b559ed5b4f103058192afd8db8b9fc01adb9a71125e998bbeb939b01c732e5c1f03b6
|
|
||||||
|
@ -1,20 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
DESCRIPTION="GnuPG archive keys of the Ubuntu archive"
|
|
||||||
HOMEPAGE="http://packages.ubuntu.com/vivid/ubuntu-keyring"
|
|
||||||
SRC_URI="mirror://ubuntu/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2+"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto /usr/share/keyrings/
|
|
||||||
doins keyrings/*.gpg
|
|
||||||
|
|
||||||
dodoc changelog README
|
|
||||||
}
|
|
@ -1,20 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
DESCRIPTION="GnuPG archive keys of the Ubuntu archive"
|
|
||||||
HOMEPAGE="http://packages.ubuntu.com/yakkety/ubuntu-keyring"
|
|
||||||
SRC_URI="mirror://ubuntu/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2+"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto /usr/share/keyrings/
|
|
||||||
doins keyrings/*.gpg
|
|
||||||
|
|
||||||
dodoc changelog README
|
|
||||||
}
|
|
@ -1,22 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
DESCRIPTION="GnuPG archive keys of the Ubuntu archive"
|
|
||||||
HOMEPAGE="http://packages.ubuntu.com/yakkety/ubuntu-keyring"
|
|
||||||
SRC_URI="mirror://ubuntu/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2+"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
S="${WORKDIR}"/${PN}-2016.09.01
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto /usr/share/keyrings/
|
|
||||||
doins keyrings/*.gpg
|
|
||||||
|
|
||||||
dodoc changelog README
|
|
||||||
}
|
|
@ -1,20 +0,0 @@
|
|||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
DESCRIPTION="GnuPG archive keys of the Ubuntu archive"
|
|
||||||
HOMEPAGE="http://packages.ubuntu.com/zesty/ubuntu-keyring"
|
|
||||||
SRC_URI="mirror://ubuntu/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2+"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto /usr/share/keyrings/
|
|
||||||
doins keyrings/*.gpg
|
|
||||||
|
|
||||||
dodoc changelog README
|
|
||||||
}
|
|
@ -1,22 +0,0 @@
|
|||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
DESCRIPTION="GnuPG archive keys of the Ubuntu archive"
|
|
||||||
HOMEPAGE="http://packages.ubuntu.com/zesty/ubuntu-keyring"
|
|
||||||
SRC_URI="mirror://ubuntu/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2+"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
S="${WORKDIR}"/${PN}-2018.01.17
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto /usr/share/keyrings/
|
|
||||||
doins keyrings/*.gpg
|
|
||||||
|
|
||||||
dodoc changelog README
|
|
||||||
}
|
|
Binary file not shown.
@ -0,0 +1,10 @@
|
|||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -198,6 +198,7 @@
|
||||||
|
fi
|
||||||
|
HT_LIBS="$HT_LIBS -l$CURSES_LIB"
|
||||||
|
fi
|
||||||
|
+AC_SEARCH_LIBS(stdscr,tinfo)
|
||||||
|
|
||||||
|
dnl Makefile vars.
|
||||||
|
AC_SUBST(IO_DIR)
|
Binary file not shown.
@ -1 +1 @@
|
|||||||
DIST libdsk-1.5.6.tar.gz 1212346 BLAKE2B 4b456fa4cba759898e045706ee13b3b7a8b520adc559d28541217e208788aaddee79bde949b71d2af4100c2696768e9568d73faaa7d900dc8ad52a58f593b922 SHA512 042d876dbc7598ea54a8acec44ad3417ddf69e96000219fd3effc5e0f76a9571839fbd15107578e312759cca732b86e68bc9fd2cef28cc41b0ae094ea9667a89
|
DIST libdsk-1.5.8.tar.gz 1212684 BLAKE2B 52a2687d8ade0378096215d362df21b6eb477b3304910bb98c56264fb05bec6ad2d2b7254dd132fe50e60d5179b4875a1a91088f8ed93f68886054bf1df060f4 SHA512 6bb332dcd58b88272130a950ed686852f66a1e97030aaa280db3bc65a7f82513d57055c2cc3e653e1e06843c453e46a52ce280b45b42c0bb671d1e0f6d7c9520
|
||||||
|
@ -0,0 +1,78 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
inherit toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="MIPS Simulator"
|
||||||
|
HOMEPAGE="http://spimsimulator.sourceforge.net/"
|
||||||
|
SRC_URI="http://www.cs.wisc.edu/~larus/SPIM/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||||
|
IUSE="doc X"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
X? (
|
||||||
|
media-fonts/font-adobe-100dpi
|
||||||
|
x11-libs/libXaw )
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
X? ( x11-misc/imake
|
||||||
|
x11-proto/xproto )
|
||||||
|
sys-devel/bison
|
||||||
|
"
|
||||||
|
# test hangs forever, disabling it
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# fix bugs 240005 and 243588
|
||||||
|
eapply "${FILESDIR}/${P}-r1-respect_env.patch"
|
||||||
|
|
||||||
|
#fix bug 330389
|
||||||
|
sed -i -e 's:-12-\*-75-:-14-\*-100-:g' xspim/xspim.c || die
|
||||||
|
|
||||||
|
default
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
tc-export CC
|
||||||
|
emake -C spim configuration
|
||||||
|
|
||||||
|
if use X; then
|
||||||
|
emake -C xspim configuration
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake DESTDIR="${EPREFIX}" -C spim
|
||||||
|
|
||||||
|
if use X; then
|
||||||
|
emake DESTDIR="${EPREFIX}" EXCEPTION_DIR=/var/lib/spim \
|
||||||
|
-C xspim -j1 xspim
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake DESTDIR="${ED}" -C spim install
|
||||||
|
newman Documentation/spim.man spim.1
|
||||||
|
|
||||||
|
if use X; then
|
||||||
|
emake DESTDIR="${ED}" -C xspim install
|
||||||
|
newman Documentation/xspim.man xspim.1
|
||||||
|
fi
|
||||||
|
|
||||||
|
doicon "${FILESDIR}"/xspim.svg
|
||||||
|
make_desktop_entry xspim xSPIM xspim "ComputerScience;Science;Education"
|
||||||
|
|
||||||
|
dodoc Documentation/SPIM.html
|
||||||
|
dodoc ChangeLog Documentation/BLURB README VERSION
|
||||||
|
if use doc ; then
|
||||||
|
dodoc Documentation/TeX/{cycle,spim}.ps
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
emake -C spim test
|
||||||
|
}
|
@ -0,0 +1,547 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
|
||||||
|
PLOCALE_BACKUP="en"
|
||||||
|
|
||||||
|
inherit autotools estack eutils flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx versionator xdg-utils
|
||||||
|
|
||||||
|
MY_PN="${PN%%-*}"
|
||||||
|
MY_P="${MY_PN}-${PV}"
|
||||||
|
|
||||||
|
if [[ ${PV} == "9999" ]] ; then
|
||||||
|
EGIT_REPO_URI="https://source.winehq.org/git/wine.git"
|
||||||
|
EGIT_BRANCH="master"
|
||||||
|
inherit git-r3
|
||||||
|
SRC_URI=""
|
||||||
|
#KEYWORDS=""
|
||||||
|
else
|
||||||
|
MAJOR_V=$(get_version_component_range 1)
|
||||||
|
SRC_URI="https://dl.winehq.org/wine/source/${MAJOR_V}.x/${MY_P}.tar.xz"
|
||||||
|
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
||||||
|
fi
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
|
GWP_V="20180120"
|
||||||
|
PATCHDIR="${WORKDIR}/gentoo-wine-patches"
|
||||||
|
|
||||||
|
DESCRIPTION="Free implementation of Windows(tm) on Unix, without external patchsets"
|
||||||
|
HOMEPAGE="https://www.winehq.org/"
|
||||||
|
SRC_URI="${SRC_URI}
|
||||||
|
https://dev.gentoo.org/~np-hardass/distfiles/wine/gentoo-wine-patches-${GWP_V}.tar.xz
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2.1"
|
||||||
|
SLOT="${PV}"
|
||||||
|
IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gssapi gstreamer +jpeg kerberos kernel_FreeBSD +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap +png prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype udev +udisks v4l +X +xcomposite xinerama +xml"
|
||||||
|
REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
|
||||||
|
X? ( truetype )
|
||||||
|
elibc_glibc? ( threads )
|
||||||
|
osmesa? ( opengl )
|
||||||
|
test? ( abi_x86_32 )" # osmesa-opengl #286560 # X-truetype #551124
|
||||||
|
|
||||||
|
# FIXME: the test suite is unsuitable for us; many tests require net access
|
||||||
|
# or fail due to Xvfb's opengl limitations.
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
COMMON_DEPEND="
|
||||||
|
X? (
|
||||||
|
x11-libs/libXcursor[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXext[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXfixes[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXi[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
|
||||||
|
)
|
||||||
|
alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
|
||||||
|
capi? ( net-libs/libcapi[${MULTILIB_USEDEP}] )
|
||||||
|
cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
|
||||||
|
fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
|
||||||
|
gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
|
||||||
|
gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
|
||||||
|
gssapi? ( virtual/krb5[${MULTILIB_USEDEP}] )
|
||||||
|
gstreamer? (
|
||||||
|
media-libs/gstreamer:1.0[${MULTILIB_USEDEP}]
|
||||||
|
media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}]
|
||||||
|
)
|
||||||
|
jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
|
||||||
|
kerberos? ( virtual/krb5[${MULTILIB_USEDEP}] )
|
||||||
|
lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
|
||||||
|
ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
|
||||||
|
mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
|
||||||
|
ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
|
||||||
|
netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
|
||||||
|
nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
|
||||||
|
odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
|
||||||
|
openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
|
||||||
|
opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
|
||||||
|
opengl? (
|
||||||
|
virtual/glu[${MULTILIB_USEDEP}]
|
||||||
|
virtual/opengl[${MULTILIB_USEDEP}]
|
||||||
|
)
|
||||||
|
osmesa? ( >=media-libs/mesa-13[osmesa,${MULTILIB_USEDEP}] )
|
||||||
|
pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
|
||||||
|
png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
|
||||||
|
pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
|
||||||
|
scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
|
||||||
|
ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
|
||||||
|
truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
|
||||||
|
udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] )
|
||||||
|
udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
|
||||||
|
v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
|
||||||
|
xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
|
||||||
|
xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
|
||||||
|
xml? (
|
||||||
|
dev-libs/libxml2[${MULTILIB_USEDEP}]
|
||||||
|
dev-libs/libxslt[${MULTILIB_USEDEP}]
|
||||||
|
)
|
||||||
|
abi_x86_32? (
|
||||||
|
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||||
|
!<app-emulation/emul-linux-x86-baselibs-20140508-r14
|
||||||
|
!app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
|
||||||
|
!<app-emulation/emul-linux-x86-db-20140508-r3
|
||||||
|
!app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
|
||||||
|
!<app-emulation/emul-linux-x86-medialibs-20140508-r6
|
||||||
|
!app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
|
||||||
|
!<app-emulation/emul-linux-x86-opengl-20140508-r1
|
||||||
|
!app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
|
||||||
|
!<app-emulation/emul-linux-x86-sdl-20140508-r1
|
||||||
|
!app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
|
||||||
|
!<app-emulation/emul-linux-x86-soundlibs-20140508
|
||||||
|
!app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
|
||||||
|
!<app-emulation/emul-linux-x86-xlibs-20140508
|
||||||
|
)"
|
||||||
|
|
||||||
|
RDEPEND="${COMMON_DEPEND}
|
||||||
|
app-emulation/wine-desktop-common
|
||||||
|
>app-eselect/eselect-wine-0.3
|
||||||
|
!app-emulation/wine:0
|
||||||
|
dos? ( >=games-emulation/dosbox-0.74_p20160629 )
|
||||||
|
gecko? ( app-emulation/wine-gecko:2.47[abi_x86_32?,abi_x86_64?] )
|
||||||
|
mono? ( app-emulation/wine-mono:4.7.1 )
|
||||||
|
perl? (
|
||||||
|
dev-lang/perl
|
||||||
|
dev-perl/XML-Simple
|
||||||
|
)
|
||||||
|
pulseaudio? (
|
||||||
|
realtime? ( sys-auth/rtkit )
|
||||||
|
)
|
||||||
|
samba? ( >=net-fs/samba-3.0.25[winbind] )
|
||||||
|
selinux? ( sec-policy/selinux-wine )
|
||||||
|
udisks? ( sys-fs/udisks:2 )"
|
||||||
|
|
||||||
|
# tools/make_requests requires perl
|
||||||
|
DEPEND="${COMMON_DEPEND}
|
||||||
|
sys-devel/flex
|
||||||
|
>=sys-kernel/linux-headers-2.6
|
||||||
|
virtual/pkgconfig
|
||||||
|
virtual/yacc
|
||||||
|
X? (
|
||||||
|
x11-proto/inputproto
|
||||||
|
x11-proto/xextproto
|
||||||
|
x11-proto/xf86vidmodeproto
|
||||||
|
)
|
||||||
|
prelink? ( sys-devel/prelink )
|
||||||
|
xinerama? ( x11-proto/xineramaproto )"
|
||||||
|
|
||||||
|
# These use a non-standard "Wine" category, which is provided by
|
||||||
|
# /etc/xdg/applications-merged/wine.menu
|
||||||
|
QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
|
||||||
|
usr/share/applications/wine-notepad.desktop
|
||||||
|
usr/share/applications/wine-uninstaller.desktop
|
||||||
|
usr/share/applications/wine-winecfg.desktop"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${PATCHDIR}/patches/${MY_PN}-1.5.26-winegcc.patch" #260726
|
||||||
|
"${PATCHDIR}/patches/${MY_PN}-1.9.5-multilib-portage.patch" #395615
|
||||||
|
"${PATCHDIR}/patches/${MY_PN}-1.6-memset-O3.patch" #480508
|
||||||
|
"${PATCHDIR}/patches/${MY_PN}-2.0-multislot-apploader.patch" #310611
|
||||||
|
"${PATCHDIR}/patches/${MY_PN}-2.0-rearrange-manpages.patch" #469418 #617864
|
||||||
|
)
|
||||||
|
PATCHES_BIN=()
|
||||||
|
|
||||||
|
# https://bugs.gentoo.org/show_bug.cgi?id=635222
|
||||||
|
if [[ ${#PATCHES_BIN[@]} -ge 1 ]] || [[ ${PV} == 9999 ]]; then
|
||||||
|
DEPEND+=" dev-util/patchbin"
|
||||||
|
fi
|
||||||
|
|
||||||
|
wine_compiler_check() {
|
||||||
|
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
||||||
|
|
||||||
|
# GCC-specific bugs
|
||||||
|
if tc-is-gcc; then
|
||||||
|
# bug #549768
|
||||||
|
if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
|
||||||
|
ebegin "Checking for gcc-5 ms_abi compiler bug"
|
||||||
|
$(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die
|
||||||
|
# Run in subshell to prevent "Aborted" message
|
||||||
|
( "${T}"/pr66838 || false ) >/dev/null 2>&1
|
||||||
|
if ! eend $?; then
|
||||||
|
eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
|
||||||
|
eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
|
||||||
|
eerror "or use gcc-config to select a different compiler version."
|
||||||
|
eerror "See https://bugs.gentoo.org/549768"
|
||||||
|
eerror
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
# bug #574044
|
||||||
|
if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then
|
||||||
|
ebegin "Checking for gcc-5-3 stack realignment compiler bug"
|
||||||
|
# Compile in subshell to prevent "Aborted" message
|
||||||
|
( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1
|
||||||
|
if ! eend $?; then
|
||||||
|
eerror "Wine cannot be built with this version of gcc-5.3"
|
||||||
|
eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild,"
|
||||||
|
eerror "or use gcc-config to select a different compiler version."
|
||||||
|
eerror "See https://bugs.gentoo.org/574044"
|
||||||
|
eerror
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Ensure compiler support
|
||||||
|
if use abi_x86_64; then
|
||||||
|
ebegin "Checking for 64-bit compiler with builtin_ms_va_list support"
|
||||||
|
# Compile in subshell to prevent "Aborted" message
|
||||||
|
( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1)
|
||||||
|
if ! eend $?; then
|
||||||
|
eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine"
|
||||||
|
eerror
|
||||||
|
eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine"
|
||||||
|
eerror
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
wine_build_environment_check() {
|
||||||
|
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
||||||
|
|
||||||
|
if use abi_x86_64; then
|
||||||
|
if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
|
||||||
|
eerror "You need gcc-4.4+ to compile 64-bit wine"
|
||||||
|
die
|
||||||
|
elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
|
||||||
|
eerror "You need clang-3.8+ to compile 64-bit wine"
|
||||||
|
die
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
|
||||||
|
ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
|
||||||
|
ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
|
||||||
|
ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
|
||||||
|
fi
|
||||||
|
if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then
|
||||||
|
if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then
|
||||||
|
ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work"
|
||||||
|
ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine."
|
||||||
|
ewarn "See package.env in man 5 portage for more information on how to do this."
|
||||||
|
ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
|
||||||
|
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
||||||
|
eerror "See https://bugs.gentoo.org/487864 for more details."
|
||||||
|
eerror
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
wine_env_vcs_vars() {
|
||||||
|
local pn_live_var="${PN//[-+]/_}_LIVE_COMMIT"
|
||||||
|
local pn_live_val="${pn_live_var}"
|
||||||
|
eval pn_live_val='$'${pn_live_val}
|
||||||
|
if [[ ! -z ${EGIT_COMMIT} ]]; then
|
||||||
|
eerror "Commits must now be specified using the environmental variables"
|
||||||
|
eerror "WINE_COMMIT"
|
||||||
|
eerror
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
wine_build_environment_check || die
|
||||||
|
|
||||||
|
# Verify OSS support
|
||||||
|
if use oss && ! use kernel_FreeBSD; then
|
||||||
|
if ! has_version ">=media-sound/oss-4"; then
|
||||||
|
eerror "You cannot build wine with USE=oss without having support from a"
|
||||||
|
eerror "FreeBSD kernel or >=media-sound/oss-4 (only available through external repos)"
|
||||||
|
eerror
|
||||||
|
die
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
wine_build_environment_check || die
|
||||||
|
wine_env_vcs_vars || die
|
||||||
|
|
||||||
|
WINE_VARIANT="${PN#wine}-${PV}"
|
||||||
|
WINE_VARIANT="${WINE_VARIANT#-}"
|
||||||
|
|
||||||
|
MY_PREFIX="${EPREFIX}/usr/lib/wine-${WINE_VARIANT}"
|
||||||
|
MY_DATAROOTDIR="${EPREFIX}/usr/share/wine-${WINE_VARIANT}"
|
||||||
|
MY_DATADIR="${MY_DATAROOTDIR}"
|
||||||
|
MY_DOCDIR="${EPREFIX}/usr/share/doc/${PF}"
|
||||||
|
MY_INCLUDEDIR="${EPREFIX}/usr/include/wine-${WINE_VARIANT}"
|
||||||
|
MY_LIBEXECDIR="${EPREFIX}/usr/libexec/wine-${WINE_VARIANT}"
|
||||||
|
MY_LOCALSTATEDIR="${EPREFIX}/var/wine-${WINE_VARIANT}"
|
||||||
|
MY_MANDIR="${MY_DATADIR}/man"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
if [[ ${PV} == "9999" ]] ; then
|
||||||
|
EGIT_CHECKOUT_DIR="${S}" EGIT_COMMIT="${WINE_COMMIT}" git-r3_src_unpack
|
||||||
|
fi
|
||||||
|
|
||||||
|
default
|
||||||
|
|
||||||
|
l10n_find_plocales_changes "${S}/po" "" ".po"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
|
||||||
|
eapply_bin(){
|
||||||
|
local patch
|
||||||
|
for patch in ${PATCHES_BIN[@]}; do
|
||||||
|
patchbin --nogit < "${patch}" || die
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
local md5="$(md5sum server/protocol.def)"
|
||||||
|
|
||||||
|
default
|
||||||
|
eapply_bin
|
||||||
|
eautoreconf
|
||||||
|
|
||||||
|
# Modification of the server protocol requires regenerating the server requests
|
||||||
|
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
||||||
|
einfo "server/protocol.def was patched; running tools/make_requests"
|
||||||
|
tools/make_requests || die #432348
|
||||||
|
fi
|
||||||
|
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
||||||
|
if ! use run-exes; then
|
||||||
|
sed -i '/^MimeType/d' loader/wine.desktop || die #117785
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Edit wine.desktop to work for specific variant
|
||||||
|
sed -e "/^Exec=/s/wine /wine-${WINE_VARIANT} /" -i loader/wine.desktop || die
|
||||||
|
|
||||||
|
# hi-res default icon, #472990, https://bugs.winehq.org/show_bug.cgi?id=24652
|
||||||
|
cp "${PATCHDIR}/files/oic_winlogo.ico" dlls/user32/resources/ || die
|
||||||
|
|
||||||
|
l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect LINGUAS
|
||||||
|
|
||||||
|
# Fix manpage generation for locales #469418 and abi_x86_64 #617864
|
||||||
|
# Requires wine-2.0-rearrange-manpages.patch
|
||||||
|
|
||||||
|
# Duplicate manpages input files for wine64
|
||||||
|
local f
|
||||||
|
for f in loader/*.man.in; do
|
||||||
|
cp ${f} ${f/wine/wine64} || die
|
||||||
|
done
|
||||||
|
# Add wine64 manpages to Makefile
|
||||||
|
if use abi_x86_64; then
|
||||||
|
sed -i "/wine.man.in/i \
|
||||||
|
\\\twine64.man.in \\\\" loader/Makefile.in || die
|
||||||
|
sed -i -E 's/(.*wine)(.*\.UTF-8\.man\.in.*)/&\
|
||||||
|
\164\2/' loader/Makefile.in || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm_man_file(){
|
||||||
|
local file="${1}"
|
||||||
|
loc=${2}
|
||||||
|
sed -i "/${loc}\.UTF-8\.man\.in/d" "${file}" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
while read f; do
|
||||||
|
l10n_for_each_disabled_locale_do rm_man_file "${f}"
|
||||||
|
done < <(find -name "Makefile.in" -exec grep -q "UTF-8.man.in" "{}" \; -print)
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
wine_compiler_check || die
|
||||||
|
|
||||||
|
export LDCONFIG=/bin/true
|
||||||
|
use custom-cflags || strip-flags
|
||||||
|
|
||||||
|
multilib-minimal_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_configure() {
|
||||||
|
local myconf=(
|
||||||
|
--prefix="${MY_PREFIX}"
|
||||||
|
--datarootdir="${MY_DATAROOTDIR}"
|
||||||
|
--datadir="${MY_DATADIR}"
|
||||||
|
--docdir="${MY_DOCDIR}"
|
||||||
|
--includedir="${MY_INCLUDEDIR}"
|
||||||
|
--libdir="${EPREFIX}/usr/$(get_libdir)/wine-${WINE_VARIANT}"
|
||||||
|
--libexecdir="${MY_LIBEXECDIR}"
|
||||||
|
--localstatedir="${MY_LOCALSTATEDIR}"
|
||||||
|
--mandir="${MY_MANDIR}"
|
||||||
|
--sysconfdir=/etc/wine
|
||||||
|
$(use_with alsa)
|
||||||
|
$(use_with capi)
|
||||||
|
$(use_with lcms cms)
|
||||||
|
$(use_with cups)
|
||||||
|
$(use_with ncurses curses)
|
||||||
|
$(use_with udisks dbus)
|
||||||
|
$(use_with fontconfig)
|
||||||
|
$(use_with ssl gnutls)
|
||||||
|
$(use_enable gecko mshtml)
|
||||||
|
$(use_with gphoto2 gphoto)
|
||||||
|
$(use_with gsm)
|
||||||
|
$(use_with gssapi)
|
||||||
|
$(use_with gstreamer)
|
||||||
|
--without-hal
|
||||||
|
$(use_with jpeg)
|
||||||
|
$(use_with kerberos krb5)
|
||||||
|
$(use_with ldap)
|
||||||
|
$(use_enable mono mscoree)
|
||||||
|
$(use_with mp3 mpg123)
|
||||||
|
$(use_with netapi)
|
||||||
|
$(use_with nls gettext)
|
||||||
|
$(use_with openal)
|
||||||
|
$(use_with opencl)
|
||||||
|
$(use_with opengl)
|
||||||
|
$(use_with osmesa)
|
||||||
|
$(use_with oss)
|
||||||
|
$(use_with pcap)
|
||||||
|
$(use_with png)
|
||||||
|
$(use_with pulseaudio pulse)
|
||||||
|
$(use_with threads pthread)
|
||||||
|
$(use_with scanner sane)
|
||||||
|
$(use_enable test tests)
|
||||||
|
$(use_with truetype freetype)
|
||||||
|
$(use_with udev)
|
||||||
|
$(use_with v4l)
|
||||||
|
$(use_with X x)
|
||||||
|
$(use_with X xfixes)
|
||||||
|
$(use_with xcomposite)
|
||||||
|
$(use_with xinerama)
|
||||||
|
$(use_with xml)
|
||||||
|
$(use_with xml xslt)
|
||||||
|
)
|
||||||
|
|
||||||
|
local PKG_CONFIG AR RANLIB
|
||||||
|
# Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
|
||||||
|
# set AR and RANLIB to make QA scripts happy; #483342
|
||||||
|
tc-export PKG_CONFIG AR RANLIB
|
||||||
|
|
||||||
|
if use amd64; then
|
||||||
|
if [[ ${ABI} == amd64 ]]; then
|
||||||
|
myconf+=( --enable-win64 )
|
||||||
|
else
|
||||||
|
myconf+=( --disable-win64 )
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Note: using --with-wine64 results in problems with multilib.eclass
|
||||||
|
# CC/LD hackery. We're using separate tools instead.
|
||||||
|
fi
|
||||||
|
|
||||||
|
ECONF_SOURCE=${S} \
|
||||||
|
econf "${myconf[@]}"
|
||||||
|
emake depend
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_test() {
|
||||||
|
# FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
|
||||||
|
if [[ ${ABI} == x86 ]]; then
|
||||||
|
if [[ $(id -u) == 0 ]]; then
|
||||||
|
ewarn "Skipping tests since they cannot be run under the root user."
|
||||||
|
ewarn "To run the test ${MY_PN} suite, add userpriv to FEATURES in make.conf"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
WINEPREFIX="${T}/.wine-${ABI}" \
|
||||||
|
Xemake test
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install_all() {
|
||||||
|
local DOCS=( ANNOUNCE AUTHORS README )
|
||||||
|
add_locale_docs() {
|
||||||
|
local locale_doc="documentation/README.$1"
|
||||||
|
[[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
|
||||||
|
}
|
||||||
|
l10n_for_each_locale_do add_locale_docs
|
||||||
|
|
||||||
|
einstalldocs
|
||||||
|
prune_libtool_files --all
|
||||||
|
|
||||||
|
if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
|
||||||
|
rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} \
|
||||||
|
"${D%/}${MY_MANDIR}"/man1/wine{dump,maker}.1 || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Remove wineconsole if neither backend is installed #551124
|
||||||
|
if ! use X && ! use ncurses; then
|
||||||
|
rm "${D%/}${MY_PREFIX}"/bin/wineconsole* || die
|
||||||
|
rm "${D%/}${MY_MANDIR}"/man1/wineconsole* || die
|
||||||
|
rm_wineconsole() {
|
||||||
|
rm "${D%/}${MY_PREFIX}/$(get_libdir)"/wine/{,fakedlls/}wineconsole.exe* || die
|
||||||
|
}
|
||||||
|
multilib_foreach_abi rm_wineconsole
|
||||||
|
fi
|
||||||
|
|
||||||
|
use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055
|
||||||
|
use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader}
|
||||||
|
|
||||||
|
if use abi_x86_64 && ! use abi_x86_32; then
|
||||||
|
dosym wine64 "${MY_PREFIX}"/bin/wine # 404331
|
||||||
|
dosym wine64-preloader "${MY_PREFIX}"/bin/wine-preloader
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Failglob for binloops, shouldn't be necessary, but including to stay safe
|
||||||
|
eshopts_push -s failglob #615218
|
||||||
|
# Make wrappers for binaries for handling multiple variants
|
||||||
|
# Note: wrappers instead of symlinks because some are shell which use basename
|
||||||
|
local b
|
||||||
|
for b in "${D%/}${MY_PREFIX}"/bin/*; do
|
||||||
|
make_wrapper "${b##*/}-${WINE_VARIANT}" "${MY_PREFIX}/bin/${b##*/}"
|
||||||
|
done
|
||||||
|
eshopts_pop
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
eselect wine register ${P}
|
||||||
|
if [[ ${PN} == "wine-vanilla" ]]; then
|
||||||
|
eselect wine register --vanilla ${P} || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
eselect wine update --all --if-unset || die
|
||||||
|
|
||||||
|
xdg_desktop_database_update
|
||||||
|
|
||||||
|
if ! use gecko; then
|
||||||
|
ewarn "Without Wine Gecko, wine prefixes will not have a default"
|
||||||
|
ewarn "implementation of iexplore. Many older windows applications"
|
||||||
|
ewarn "rely upon the existence of an iexplore implementation, so"
|
||||||
|
ewarn "you will likely need to install an external one, like via winetricks"
|
||||||
|
fi
|
||||||
|
if ! use mono; then
|
||||||
|
ewarn "Without Wine Mono, wine prefixes will not have a default"
|
||||||
|
ewarn "implementation of .NET. Many windows applications rely upon"
|
||||||
|
ewarn "the existence of a .NET implementation, so you will likely need"
|
||||||
|
ewarn "to install an external one, like via winetricks"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_prerm() {
|
||||||
|
eselect wine deregister ${P}
|
||||||
|
if [[ ${PN} == "wine-vanilla" ]]; then
|
||||||
|
eselect wine deregister --vanilla ${P} || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
eselect wine update --all --if-unset || die
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
xdg_desktop_database_update
|
||||||
|
}
|
@ -0,0 +1,547 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
|
||||||
|
PLOCALE_BACKUP="en"
|
||||||
|
|
||||||
|
inherit autotools estack eutils flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx versionator xdg-utils
|
||||||
|
|
||||||
|
MY_PN="${PN%%-*}"
|
||||||
|
MY_P="${MY_PN}-${PV}"
|
||||||
|
|
||||||
|
if [[ ${PV} == "9999" ]] ; then
|
||||||
|
EGIT_REPO_URI="https://source.winehq.org/git/wine.git"
|
||||||
|
EGIT_BRANCH="master"
|
||||||
|
inherit git-r3
|
||||||
|
SRC_URI=""
|
||||||
|
#KEYWORDS=""
|
||||||
|
else
|
||||||
|
MAJOR_V=$(get_version_component_range 1)
|
||||||
|
SRC_URI="https://dl.winehq.org/wine/source/${MAJOR_V}.x/${MY_P}.tar.xz"
|
||||||
|
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
||||||
|
fi
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
|
GWP_V="20180120"
|
||||||
|
PATCHDIR="${WORKDIR}/gentoo-wine-patches"
|
||||||
|
|
||||||
|
DESCRIPTION="Free implementation of Windows(tm) on Unix, without external patchsets"
|
||||||
|
HOMEPAGE="https://www.winehq.org/"
|
||||||
|
SRC_URI="${SRC_URI}
|
||||||
|
https://dev.gentoo.org/~np-hardass/distfiles/wine/gentoo-wine-patches-${GWP_V}.tar.xz
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2.1"
|
||||||
|
SLOT="${PV}"
|
||||||
|
IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gssapi gstreamer +jpeg kerberos kernel_FreeBSD +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap +png prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype udev +udisks v4l +X +xcomposite xinerama +xml"
|
||||||
|
REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
|
||||||
|
X? ( truetype )
|
||||||
|
elibc_glibc? ( threads )
|
||||||
|
osmesa? ( opengl )
|
||||||
|
test? ( abi_x86_32 )" # osmesa-opengl #286560 # X-truetype #551124
|
||||||
|
|
||||||
|
# FIXME: the test suite is unsuitable for us; many tests require net access
|
||||||
|
# or fail due to Xvfb's opengl limitations.
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
COMMON_DEPEND="
|
||||||
|
X? (
|
||||||
|
x11-libs/libXcursor[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXext[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXfixes[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXi[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
|
||||||
|
)
|
||||||
|
alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
|
||||||
|
capi? ( net-libs/libcapi[${MULTILIB_USEDEP}] )
|
||||||
|
cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
|
||||||
|
fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
|
||||||
|
gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
|
||||||
|
gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
|
||||||
|
gssapi? ( virtual/krb5[${MULTILIB_USEDEP}] )
|
||||||
|
gstreamer? (
|
||||||
|
media-libs/gstreamer:1.0[${MULTILIB_USEDEP}]
|
||||||
|
media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}]
|
||||||
|
)
|
||||||
|
jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
|
||||||
|
kerberos? ( virtual/krb5[${MULTILIB_USEDEP}] )
|
||||||
|
lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
|
||||||
|
ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
|
||||||
|
mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
|
||||||
|
ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
|
||||||
|
netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
|
||||||
|
nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
|
||||||
|
odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
|
||||||
|
openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
|
||||||
|
opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
|
||||||
|
opengl? (
|
||||||
|
virtual/glu[${MULTILIB_USEDEP}]
|
||||||
|
virtual/opengl[${MULTILIB_USEDEP}]
|
||||||
|
)
|
||||||
|
osmesa? ( >=media-libs/mesa-13[osmesa,${MULTILIB_USEDEP}] )
|
||||||
|
pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
|
||||||
|
png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
|
||||||
|
pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
|
||||||
|
scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
|
||||||
|
ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
|
||||||
|
truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
|
||||||
|
udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] )
|
||||||
|
udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
|
||||||
|
v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
|
||||||
|
xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
|
||||||
|
xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
|
||||||
|
xml? (
|
||||||
|
dev-libs/libxml2[${MULTILIB_USEDEP}]
|
||||||
|
dev-libs/libxslt[${MULTILIB_USEDEP}]
|
||||||
|
)
|
||||||
|
abi_x86_32? (
|
||||||
|
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||||
|
!<app-emulation/emul-linux-x86-baselibs-20140508-r14
|
||||||
|
!app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
|
||||||
|
!<app-emulation/emul-linux-x86-db-20140508-r3
|
||||||
|
!app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
|
||||||
|
!<app-emulation/emul-linux-x86-medialibs-20140508-r6
|
||||||
|
!app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
|
||||||
|
!<app-emulation/emul-linux-x86-opengl-20140508-r1
|
||||||
|
!app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
|
||||||
|
!<app-emulation/emul-linux-x86-sdl-20140508-r1
|
||||||
|
!app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
|
||||||
|
!<app-emulation/emul-linux-x86-soundlibs-20140508
|
||||||
|
!app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
|
||||||
|
!<app-emulation/emul-linux-x86-xlibs-20140508
|
||||||
|
)"
|
||||||
|
|
||||||
|
RDEPEND="${COMMON_DEPEND}
|
||||||
|
app-emulation/wine-desktop-common
|
||||||
|
>app-eselect/eselect-wine-0.3
|
||||||
|
!app-emulation/wine:0
|
||||||
|
dos? ( >=games-emulation/dosbox-0.74_p20160629 )
|
||||||
|
gecko? ( app-emulation/wine-gecko:2.47[abi_x86_32?,abi_x86_64?] )
|
||||||
|
mono? ( app-emulation/wine-mono:4.7.1 )
|
||||||
|
perl? (
|
||||||
|
dev-lang/perl
|
||||||
|
dev-perl/XML-Simple
|
||||||
|
)
|
||||||
|
pulseaudio? (
|
||||||
|
realtime? ( sys-auth/rtkit )
|
||||||
|
)
|
||||||
|
samba? ( >=net-fs/samba-3.0.25[winbind] )
|
||||||
|
selinux? ( sec-policy/selinux-wine )
|
||||||
|
udisks? ( sys-fs/udisks:2 )"
|
||||||
|
|
||||||
|
# tools/make_requests requires perl
|
||||||
|
DEPEND="${COMMON_DEPEND}
|
||||||
|
sys-devel/flex
|
||||||
|
>=sys-kernel/linux-headers-2.6
|
||||||
|
virtual/pkgconfig
|
||||||
|
virtual/yacc
|
||||||
|
X? (
|
||||||
|
x11-proto/inputproto
|
||||||
|
x11-proto/xextproto
|
||||||
|
x11-proto/xf86vidmodeproto
|
||||||
|
)
|
||||||
|
prelink? ( sys-devel/prelink )
|
||||||
|
xinerama? ( x11-proto/xineramaproto )"
|
||||||
|
|
||||||
|
# These use a non-standard "Wine" category, which is provided by
|
||||||
|
# /etc/xdg/applications-merged/wine.menu
|
||||||
|
QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
|
||||||
|
usr/share/applications/wine-notepad.desktop
|
||||||
|
usr/share/applications/wine-uninstaller.desktop
|
||||||
|
usr/share/applications/wine-winecfg.desktop"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${PATCHDIR}/patches/${MY_PN}-1.5.26-winegcc.patch" #260726
|
||||||
|
"${PATCHDIR}/patches/${MY_PN}-1.9.5-multilib-portage.patch" #395615
|
||||||
|
"${PATCHDIR}/patches/${MY_PN}-1.6-memset-O3.patch" #480508
|
||||||
|
"${PATCHDIR}/patches/${MY_PN}-2.0-multislot-apploader.patch" #310611
|
||||||
|
"${PATCHDIR}/patches/${MY_PN}-2.0-rearrange-manpages.patch" #469418 #617864
|
||||||
|
)
|
||||||
|
PATCHES_BIN=()
|
||||||
|
|
||||||
|
# https://bugs.gentoo.org/show_bug.cgi?id=635222
|
||||||
|
if [[ ${#PATCHES_BIN[@]} -ge 1 ]] || [[ ${PV} == 9999 ]]; then
|
||||||
|
DEPEND+=" dev-util/patchbin"
|
||||||
|
fi
|
||||||
|
|
||||||
|
wine_compiler_check() {
|
||||||
|
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
||||||
|
|
||||||
|
# GCC-specific bugs
|
||||||
|
if tc-is-gcc; then
|
||||||
|
# bug #549768
|
||||||
|
if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
|
||||||
|
ebegin "Checking for gcc-5 ms_abi compiler bug"
|
||||||
|
$(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die
|
||||||
|
# Run in subshell to prevent "Aborted" message
|
||||||
|
( "${T}"/pr66838 || false ) >/dev/null 2>&1
|
||||||
|
if ! eend $?; then
|
||||||
|
eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
|
||||||
|
eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
|
||||||
|
eerror "or use gcc-config to select a different compiler version."
|
||||||
|
eerror "See https://bugs.gentoo.org/549768"
|
||||||
|
eerror
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
# bug #574044
|
||||||
|
if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then
|
||||||
|
ebegin "Checking for gcc-5-3 stack realignment compiler bug"
|
||||||
|
# Compile in subshell to prevent "Aborted" message
|
||||||
|
( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1
|
||||||
|
if ! eend $?; then
|
||||||
|
eerror "Wine cannot be built with this version of gcc-5.3"
|
||||||
|
eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild,"
|
||||||
|
eerror "or use gcc-config to select a different compiler version."
|
||||||
|
eerror "See https://bugs.gentoo.org/574044"
|
||||||
|
eerror
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Ensure compiler support
|
||||||
|
if use abi_x86_64; then
|
||||||
|
ebegin "Checking for 64-bit compiler with builtin_ms_va_list support"
|
||||||
|
# Compile in subshell to prevent "Aborted" message
|
||||||
|
( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1)
|
||||||
|
if ! eend $?; then
|
||||||
|
eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine"
|
||||||
|
eerror
|
||||||
|
eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine"
|
||||||
|
eerror
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
wine_build_environment_check() {
|
||||||
|
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
||||||
|
|
||||||
|
if use abi_x86_64; then
|
||||||
|
if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
|
||||||
|
eerror "You need gcc-4.4+ to compile 64-bit wine"
|
||||||
|
die
|
||||||
|
elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
|
||||||
|
eerror "You need clang-3.8+ to compile 64-bit wine"
|
||||||
|
die
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
|
||||||
|
ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
|
||||||
|
ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
|
||||||
|
ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
|
||||||
|
fi
|
||||||
|
if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then
|
||||||
|
if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then
|
||||||
|
ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work"
|
||||||
|
ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine."
|
||||||
|
ewarn "See package.env in man 5 portage for more information on how to do this."
|
||||||
|
ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
|
||||||
|
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
||||||
|
eerror "See https://bugs.gentoo.org/487864 for more details."
|
||||||
|
eerror
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
wine_env_vcs_vars() {
|
||||||
|
local pn_live_var="${PN//[-+]/_}_LIVE_COMMIT"
|
||||||
|
local pn_live_val="${pn_live_var}"
|
||||||
|
eval pn_live_val='$'${pn_live_val}
|
||||||
|
if [[ ! -z ${EGIT_COMMIT} ]]; then
|
||||||
|
eerror "Commits must now be specified using the environmental variables"
|
||||||
|
eerror "WINE_COMMIT"
|
||||||
|
eerror
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
wine_build_environment_check || die
|
||||||
|
|
||||||
|
# Verify OSS support
|
||||||
|
if use oss && ! use kernel_FreeBSD; then
|
||||||
|
if ! has_version ">=media-sound/oss-4"; then
|
||||||
|
eerror "You cannot build wine with USE=oss without having support from a"
|
||||||
|
eerror "FreeBSD kernel or >=media-sound/oss-4 (only available through external repos)"
|
||||||
|
eerror
|
||||||
|
die
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
wine_build_environment_check || die
|
||||||
|
wine_env_vcs_vars || die
|
||||||
|
|
||||||
|
WINE_VARIANT="${PN#wine}-${PV}"
|
||||||
|
WINE_VARIANT="${WINE_VARIANT#-}"
|
||||||
|
|
||||||
|
MY_PREFIX="${EPREFIX}/usr/lib/wine-${WINE_VARIANT}"
|
||||||
|
MY_DATAROOTDIR="${EPREFIX}/usr/share/wine-${WINE_VARIANT}"
|
||||||
|
MY_DATADIR="${MY_DATAROOTDIR}"
|
||||||
|
MY_DOCDIR="${EPREFIX}/usr/share/doc/${PF}"
|
||||||
|
MY_INCLUDEDIR="${EPREFIX}/usr/include/wine-${WINE_VARIANT}"
|
||||||
|
MY_LIBEXECDIR="${EPREFIX}/usr/libexec/wine-${WINE_VARIANT}"
|
||||||
|
MY_LOCALSTATEDIR="${EPREFIX}/var/wine-${WINE_VARIANT}"
|
||||||
|
MY_MANDIR="${MY_DATADIR}/man"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
if [[ ${PV} == "9999" ]] ; then
|
||||||
|
EGIT_CHECKOUT_DIR="${S}" EGIT_COMMIT="${WINE_COMMIT}" git-r3_src_unpack
|
||||||
|
fi
|
||||||
|
|
||||||
|
default
|
||||||
|
|
||||||
|
l10n_find_plocales_changes "${S}/po" "" ".po"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
|
||||||
|
eapply_bin(){
|
||||||
|
local patch
|
||||||
|
for patch in ${PATCHES_BIN[@]}; do
|
||||||
|
patchbin --nogit < "${patch}" || die
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
local md5="$(md5sum server/protocol.def)"
|
||||||
|
|
||||||
|
default
|
||||||
|
eapply_bin
|
||||||
|
eautoreconf
|
||||||
|
|
||||||
|
# Modification of the server protocol requires regenerating the server requests
|
||||||
|
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
||||||
|
einfo "server/protocol.def was patched; running tools/make_requests"
|
||||||
|
tools/make_requests || die #432348
|
||||||
|
fi
|
||||||
|
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
||||||
|
if ! use run-exes; then
|
||||||
|
sed -i '/^MimeType/d' loader/wine.desktop || die #117785
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Edit wine.desktop to work for specific variant
|
||||||
|
sed -e "/^Exec=/s/wine /wine-${WINE_VARIANT} /" -i loader/wine.desktop || die
|
||||||
|
|
||||||
|
# hi-res default icon, #472990, https://bugs.winehq.org/show_bug.cgi?id=24652
|
||||||
|
cp "${PATCHDIR}/files/oic_winlogo.ico" dlls/user32/resources/ || die
|
||||||
|
|
||||||
|
l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect LINGUAS
|
||||||
|
|
||||||
|
# Fix manpage generation for locales #469418 and abi_x86_64 #617864
|
||||||
|
# Requires wine-2.0-rearrange-manpages.patch
|
||||||
|
|
||||||
|
# Duplicate manpages input files for wine64
|
||||||
|
local f
|
||||||
|
for f in loader/*.man.in; do
|
||||||
|
cp ${f} ${f/wine/wine64} || die
|
||||||
|
done
|
||||||
|
# Add wine64 manpages to Makefile
|
||||||
|
if use abi_x86_64; then
|
||||||
|
sed -i "/wine.man.in/i \
|
||||||
|
\\\twine64.man.in \\\\" loader/Makefile.in || die
|
||||||
|
sed -i -E 's/(.*wine)(.*\.UTF-8\.man\.in.*)/&\
|
||||||
|
\164\2/' loader/Makefile.in || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm_man_file(){
|
||||||
|
local file="${1}"
|
||||||
|
loc=${2}
|
||||||
|
sed -i "/${loc}\.UTF-8\.man\.in/d" "${file}" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
while read f; do
|
||||||
|
l10n_for_each_disabled_locale_do rm_man_file "${f}"
|
||||||
|
done < <(find -name "Makefile.in" -exec grep -q "UTF-8.man.in" "{}" \; -print)
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
wine_compiler_check || die
|
||||||
|
|
||||||
|
export LDCONFIG=/bin/true
|
||||||
|
use custom-cflags || strip-flags
|
||||||
|
|
||||||
|
multilib-minimal_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_configure() {
|
||||||
|
local myconf=(
|
||||||
|
--prefix="${MY_PREFIX}"
|
||||||
|
--datarootdir="${MY_DATAROOTDIR}"
|
||||||
|
--datadir="${MY_DATADIR}"
|
||||||
|
--docdir="${MY_DOCDIR}"
|
||||||
|
--includedir="${MY_INCLUDEDIR}"
|
||||||
|
--libdir="${EPREFIX}/usr/$(get_libdir)/wine-${WINE_VARIANT}"
|
||||||
|
--libexecdir="${MY_LIBEXECDIR}"
|
||||||
|
--localstatedir="${MY_LOCALSTATEDIR}"
|
||||||
|
--mandir="${MY_MANDIR}"
|
||||||
|
--sysconfdir=/etc/wine
|
||||||
|
$(use_with alsa)
|
||||||
|
$(use_with capi)
|
||||||
|
$(use_with lcms cms)
|
||||||
|
$(use_with cups)
|
||||||
|
$(use_with ncurses curses)
|
||||||
|
$(use_with udisks dbus)
|
||||||
|
$(use_with fontconfig)
|
||||||
|
$(use_with ssl gnutls)
|
||||||
|
$(use_enable gecko mshtml)
|
||||||
|
$(use_with gphoto2 gphoto)
|
||||||
|
$(use_with gsm)
|
||||||
|
$(use_with gssapi)
|
||||||
|
$(use_with gstreamer)
|
||||||
|
--without-hal
|
||||||
|
$(use_with jpeg)
|
||||||
|
$(use_with kerberos krb5)
|
||||||
|
$(use_with ldap)
|
||||||
|
$(use_enable mono mscoree)
|
||||||
|
$(use_with mp3 mpg123)
|
||||||
|
$(use_with netapi)
|
||||||
|
$(use_with nls gettext)
|
||||||
|
$(use_with openal)
|
||||||
|
$(use_with opencl)
|
||||||
|
$(use_with opengl)
|
||||||
|
$(use_with osmesa)
|
||||||
|
$(use_with oss)
|
||||||
|
$(use_with pcap)
|
||||||
|
$(use_with png)
|
||||||
|
$(use_with pulseaudio pulse)
|
||||||
|
$(use_with threads pthread)
|
||||||
|
$(use_with scanner sane)
|
||||||
|
$(use_enable test tests)
|
||||||
|
$(use_with truetype freetype)
|
||||||
|
$(use_with udev)
|
||||||
|
$(use_with v4l)
|
||||||
|
$(use_with X x)
|
||||||
|
$(use_with X xfixes)
|
||||||
|
$(use_with xcomposite)
|
||||||
|
$(use_with xinerama)
|
||||||
|
$(use_with xml)
|
||||||
|
$(use_with xml xslt)
|
||||||
|
)
|
||||||
|
|
||||||
|
local PKG_CONFIG AR RANLIB
|
||||||
|
# Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
|
||||||
|
# set AR and RANLIB to make QA scripts happy; #483342
|
||||||
|
tc-export PKG_CONFIG AR RANLIB
|
||||||
|
|
||||||
|
if use amd64; then
|
||||||
|
if [[ ${ABI} == amd64 ]]; then
|
||||||
|
myconf+=( --enable-win64 )
|
||||||
|
else
|
||||||
|
myconf+=( --disable-win64 )
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Note: using --with-wine64 results in problems with multilib.eclass
|
||||||
|
# CC/LD hackery. We're using separate tools instead.
|
||||||
|
fi
|
||||||
|
|
||||||
|
ECONF_SOURCE=${S} \
|
||||||
|
econf "${myconf[@]}"
|
||||||
|
emake depend
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_test() {
|
||||||
|
# FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
|
||||||
|
if [[ ${ABI} == x86 ]]; then
|
||||||
|
if [[ $(id -u) == 0 ]]; then
|
||||||
|
ewarn "Skipping tests since they cannot be run under the root user."
|
||||||
|
ewarn "To run the test ${MY_PN} suite, add userpriv to FEATURES in make.conf"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
WINEPREFIX="${T}/.wine-${ABI}" \
|
||||||
|
Xemake test
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install_all() {
|
||||||
|
local DOCS=( ANNOUNCE AUTHORS README )
|
||||||
|
add_locale_docs() {
|
||||||
|
local locale_doc="documentation/README.$1"
|
||||||
|
[[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
|
||||||
|
}
|
||||||
|
l10n_for_each_locale_do add_locale_docs
|
||||||
|
|
||||||
|
einstalldocs
|
||||||
|
prune_libtool_files --all
|
||||||
|
|
||||||
|
if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
|
||||||
|
rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} \
|
||||||
|
"${D%/}${MY_MANDIR}"/man1/wine{dump,maker}.1 || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Remove wineconsole if neither backend is installed #551124
|
||||||
|
if ! use X && ! use ncurses; then
|
||||||
|
rm "${D%/}${MY_PREFIX}"/bin/wineconsole* || die
|
||||||
|
rm "${D%/}${MY_MANDIR}"/man1/wineconsole* || die
|
||||||
|
rm_wineconsole() {
|
||||||
|
rm "${D%/}${MY_PREFIX}/$(get_libdir)"/wine/{,fakedlls/}wineconsole.exe* || die
|
||||||
|
}
|
||||||
|
multilib_foreach_abi rm_wineconsole
|
||||||
|
fi
|
||||||
|
|
||||||
|
use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055
|
||||||
|
use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader}
|
||||||
|
|
||||||
|
if use abi_x86_64 && ! use abi_x86_32; then
|
||||||
|
dosym wine64 "${MY_PREFIX}"/bin/wine # 404331
|
||||||
|
dosym wine64-preloader "${MY_PREFIX}"/bin/wine-preloader
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Failglob for binloops, shouldn't be necessary, but including to stay safe
|
||||||
|
eshopts_push -s failglob #615218
|
||||||
|
# Make wrappers for binaries for handling multiple variants
|
||||||
|
# Note: wrappers instead of symlinks because some are shell which use basename
|
||||||
|
local b
|
||||||
|
for b in "${D%/}${MY_PREFIX}"/bin/*; do
|
||||||
|
make_wrapper "${b##*/}-${WINE_VARIANT}" "${MY_PREFIX}/bin/${b##*/}"
|
||||||
|
done
|
||||||
|
eshopts_pop
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
eselect wine register ${P}
|
||||||
|
if [[ ${PN} == "wine-vanilla" ]]; then
|
||||||
|
eselect wine register --vanilla ${P} || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
eselect wine update --all --if-unset || die
|
||||||
|
|
||||||
|
xdg_desktop_database_update
|
||||||
|
|
||||||
|
if ! use gecko; then
|
||||||
|
ewarn "Without Wine Gecko, wine prefixes will not have a default"
|
||||||
|
ewarn "implementation of iexplore. Many older windows applications"
|
||||||
|
ewarn "rely upon the existence of an iexplore implementation, so"
|
||||||
|
ewarn "you will likely need to install an external one, like via winetricks"
|
||||||
|
fi
|
||||||
|
if ! use mono; then
|
||||||
|
ewarn "Without Wine Mono, wine prefixes will not have a default"
|
||||||
|
ewarn "implementation of .NET. Many windows applications rely upon"
|
||||||
|
ewarn "the existence of a .NET implementation, so you will likely need"
|
||||||
|
ewarn "to install an external one, like via winetricks"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_prerm() {
|
||||||
|
eselect wine deregister ${P}
|
||||||
|
if [[ ${PN} == "wine-vanilla" ]]; then
|
||||||
|
eselect wine deregister --vanilla ${P} || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
eselect wine update --all --if-unset || die
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
xdg_desktop_database_update
|
||||||
|
}
|
Binary file not shown.
@ -0,0 +1,18 @@
|
|||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -86,6 +86,7 @@
|
||||||
|
|
||||||
|
AC_CHECK_LIB(ncursesw, initscr,
|
||||||
|
[LIBS="$LIBS -lncursesw"
|
||||||
|
+ AC_SEARCH_LIBS(cbreak, tinfo)
|
||||||
|
if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
|
||||||
|
CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
|
||||||
|
fi
|
||||||
|
@@ -93,6 +94,7 @@
|
||||||
|
ac_widec_possible=no
|
||||||
|
AC_CHECK_LIB(ncurses, initscr,
|
||||||
|
[LIBS="$LIBS -lncurses"
|
||||||
|
+ AC_SEARCH_LIBS(cbreak, tinfo)
|
||||||
|
if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
|
||||||
|
CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
|
||||||
|
fi
|
@ -1,2 +1,3 @@
|
|||||||
DIST dateutils-0.4.1.tar.xz 611460 BLAKE2B f6dc70388e1cd269e5b666dfb23d8eace3dd98408538e102e220344e71670084fb6591dd213d625b33a57adde929f7ee5aa064950742b38c29fa4bec1cd3b9f3 SHA512 c13461de6dad483b0014692a2319a7bf9ed1677415b8ee168131b397086f75725eb8b4e833d8b4a22f4aa726d6aca74be2597c2e07ef75a036cfea9bf67ccf1b
|
DIST dateutils-0.4.1.tar.xz 611460 BLAKE2B f6dc70388e1cd269e5b666dfb23d8eace3dd98408538e102e220344e71670084fb6591dd213d625b33a57adde929f7ee5aa064950742b38c29fa4bec1cd3b9f3 SHA512 c13461de6dad483b0014692a2319a7bf9ed1677415b8ee168131b397086f75725eb8b4e833d8b4a22f4aa726d6aca74be2597c2e07ef75a036cfea9bf67ccf1b
|
||||||
DIST dateutils-0.4.2.tar.xz 620196 BLAKE2B b2aa265db45c92e68ed2fa51d824eb2c5bef2cf1d663fcb1033cde4e8a818ac8c024554dd42c030aa0e3bbba1c07717c3040b9573291edb3bc740e92113f9406 SHA512 0b6e98bd9402dc3629122c3d68ab54df547ce779806661cc01df3625ab7cedb429d943ef46e151653283c1ac6c557f4bf14b3b5adaafbcac1d0a86c6d12895fd
|
DIST dateutils-0.4.2.tar.xz 620196 BLAKE2B b2aa265db45c92e68ed2fa51d824eb2c5bef2cf1d663fcb1033cde4e8a818ac8c024554dd42c030aa0e3bbba1c07717c3040b9573291edb3bc740e92113f9406 SHA512 0b6e98bd9402dc3629122c3d68ab54df547ce779806661cc01df3625ab7cedb429d943ef46e151653283c1ac6c557f4bf14b3b5adaafbcac1d0a86c6d12895fd
|
||||||
|
DIST dateutils-0.4.3.tar.xz 631216 BLAKE2B 1c9184e589eb01ff1da8be941afa5abb8095ef4b61a22d14e5c06f4faad175e2e9d8cf7077655f170033a125b7594d554e6996bbd0dd6f6508c16076d069e285 SHA512 0210ad1f47aec77b8b87a520da9155430b52068e53733ef7bb26dfa10e8651f2190171537d4317adf888733e9377f961d5ed070efacd8ca18139225fa8c185ca
|
||||||
|
@ -0,0 +1,31 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
DESCRIPTION="command line date and time utilities"
|
||||||
|
HOMEPAGE="https://hroptatyr.github.com/dateutils/"
|
||||||
|
SRC_URI="https://bitbucket.org/hroptatyr/${PN}/downloads/${P}.tar.xz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
|
||||||
|
DEPEND="app-arch/xz-utils
|
||||||
|
sys-libs/timezone-data"
|
||||||
|
|
||||||
|
# bug 429810
|
||||||
|
RDEPEND="!sys-fabric/dapl"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
econf --docdir=/usr/share/doc/${PF}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake CFLAGS="${CFLAGS}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
# parallel tests failure
|
||||||
|
emake CFLAGS="${CFLAGS}" -j1 check
|
||||||
|
}
|
Binary file not shown.
@ -0,0 +1,88 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit rpm versionator
|
||||||
|
|
||||||
|
MY_PV=$(get_version_component_range 1-3)
|
||||||
|
|
||||||
|
DESCRIPTION="Translations for the Libreoffice suite"
|
||||||
|
HOMEPAGE="https://www.libreoffice.org"
|
||||||
|
BASE_SRC_URI_TESTING="https://download.documentfoundation.org/${PN/-l10n/}/testing/${MY_PV}/rpm"
|
||||||
|
BASE_SRC_URI_STABLE="https://download.documentfoundation.org/${PN/-l10n/}/stable/${MY_PV}/rpm"
|
||||||
|
|
||||||
|
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
IUSE="offlinehelp"
|
||||||
|
|
||||||
|
#
|
||||||
|
# when changing the language lists, please be careful to preserve the spaces (bug 491728)
|
||||||
|
#
|
||||||
|
# "en:en-US" for mapping from Gentoo "en" to upstream "en-US" etc.
|
||||||
|
LANGUAGES_HELP=" am ast bg bn-IN bn bo bs ca-valencia ca cs da de dz el en-GB en:en-US en-ZA eo es et eu fi fr gl gu he hi hr hu id is it ja ka km ko mk nb ne nl nn om pl pt-BR pt ru si sk sl sq sv tg tr ug uk vi zh-CN zh-TW "
|
||||||
|
LANGUAGES="${LANGUAGES_HELP}af ar as be br brx cy dgo fa ga gd gug kk kmr-Latn kn kok ks lb lo lt lv mai ml mn mni mr my nr nso oc or pa:pa-IN ro rw sa:sa-IN sat sd sid sr-Latn sr ss st sw-TZ ta te th tn ts tt uz ve xh zu "
|
||||||
|
|
||||||
|
for lang in ${LANGUAGES_HELP}; do
|
||||||
|
helppack="offlinehelp? ( ${BASE_SRC_URI_STABLE}/x86/LibreOffice_${MY_PV}_Linux_x86_rpm_helppack_${lang#*:}.tar.gz -> LibreOffice_${PV}_Linux_x86_rpm_helppack_${lang#*:}.tar.gz ${BASE_SRC_URI_TESTING}/x86/LibreOffice_${PV}_Linux_x86_rpm_helppack_${lang#*:}.tar.gz )"
|
||||||
|
SRC_URI+=" l10n_${lang%:*}? ( ${helppack} )"
|
||||||
|
done
|
||||||
|
for lang in ${LANGUAGES}; do
|
||||||
|
if [[ ${lang%:*} != en ]]; then
|
||||||
|
langpack="${BASE_SRC_URI_STABLE}/x86/LibreOffice_${MY_PV}_Linux_x86_rpm_langpack_${lang#*:}.tar.gz -> LibreOffice_${PV}_Linux_x86_rpm_langpack_${lang#*:}.tar.gz ${BASE_SRC_URI_TESTING}/x86/LibreOffice_${PV}_Linux_x86_rpm_langpack_${lang#*:}.tar.gz"
|
||||||
|
SRC_URI+=" l10n_${lang%:*}? ( ${langpack} )"
|
||||||
|
fi
|
||||||
|
IUSE+=" l10n_${lang%:*}"
|
||||||
|
done
|
||||||
|
unset lang helppack langpack
|
||||||
|
|
||||||
|
RDEPEND+="app-text/hunspell"
|
||||||
|
|
||||||
|
RESTRICT="strip"
|
||||||
|
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
local lang dir rpmdir
|
||||||
|
|
||||||
|
# First remove dictionaries, we want to use system ones.
|
||||||
|
find "${S}" -name *dict*.rpm -delete || die "Failed to remove dictionaries"
|
||||||
|
|
||||||
|
for lang in ${LANGUAGES}; do
|
||||||
|
# break away if not enabled
|
||||||
|
use l10n_${lang%:*} || continue
|
||||||
|
|
||||||
|
dir=${lang#*:}
|
||||||
|
|
||||||
|
# for english we provide just helppack, as translation is always there
|
||||||
|
if [[ ${lang%:*} != en ]]; then
|
||||||
|
rpmdir="LibreOffice_${PV}_Linux_x86_rpm_langpack_${dir}/RPMS/"
|
||||||
|
[[ -d ${rpmdir} ]] || die "Missing directory: ${rpmdir}"
|
||||||
|
rpm_unpack ./${rpmdir}/*.rpm
|
||||||
|
fi
|
||||||
|
if [[ "${LANGUAGES_HELP}" =~ " ${lang} " ]] && use offlinehelp; then
|
||||||
|
rpmdir="LibreOffice_${PV}_Linux_x86_rpm_helppack_${dir}/RPMS/"
|
||||||
|
[[ -d ${rpmdir} ]] || die "Missing directory: ${rpmdir}"
|
||||||
|
rpm_unpack ./${rpmdir}/*.rpm
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() { :; }
|
||||||
|
src_compile() { :; }
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local dir="${S}"/opt/${PN/-l10n/}$(get_version_component_range 1-2)/
|
||||||
|
# Condition required for people that do not install anything eg no l10n
|
||||||
|
# or just english with no offlinehelp.
|
||||||
|
if [[ -d "${dir}" ]] ; then
|
||||||
|
insinto /usr/$(get_libdir)/${PN/-l10n/}/
|
||||||
|
doins -r "${dir}"/*
|
||||||
|
fi
|
||||||
|
# remove extensions that are in the l10n for some weird reason
|
||||||
|
rm -rf "${ED}"usr/$(get_libdir)/${PN/-l10n/}/share/extensions/ || \
|
||||||
|
die "Failed to remove extensions"
|
||||||
|
}
|
@ -0,0 +1,567 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
|
||||||
|
PYTHON_REQ_USE="threads,xml"
|
||||||
|
|
||||||
|
# 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/${PV:0:5}/
|
||||||
|
https://downloadarchive.documentfoundation.org/libreoffice/old/${PV}/src
|
||||||
|
"
|
||||||
|
ADDONS_URI="https://dev-www.libreoffice.org/src/"
|
||||||
|
|
||||||
|
BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
|
||||||
|
PATCHSET="${PN}-6.0.2.1-patchset-01.tar.xz"
|
||||||
|
|
||||||
|
[[ ${PV} == *9999* ]] && SCM_ECLASS="git-r3"
|
||||||
|
inherit multiprocessing autotools bash-completion-r1 check-reqs gnome2-utils java-pkg-opt-2 pax-utils python-single-r1 toolchain-funcs flag-o-matic versionator xdg-utils qmake-utils ${SCM_ECLASS}
|
||||||
|
unset SCM_ECLASS
|
||||||
|
|
||||||
|
DESCRIPTION="A full office productivity suite"
|
||||||
|
HOMEPAGE="https://www.libreoffice.org"
|
||||||
|
SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
|
||||||
|
[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}"
|
||||||
|
|
||||||
|
# Split modules following git/tarballs
|
||||||
|
# Core MUST be first!
|
||||||
|
# Help is used for the image generator
|
||||||
|
# Only release has the tarballs
|
||||||
|
if [[ ${PV} != *9999* ]]; then
|
||||||
|
for i in ${DEV_URI}; do
|
||||||
|
SRC_URI+=" ${i}/${P}.tar.xz"
|
||||||
|
SRC_URI+=" ${i}/${PN}-help-${PV}.tar.xz"
|
||||||
|
done
|
||||||
|
unset i
|
||||||
|
fi
|
||||||
|
unset DEV_URI
|
||||||
|
|
||||||
|
# Really required addons
|
||||||
|
# These are bundles that can't be removed for now due to huge patchsets.
|
||||||
|
# If you want them gone, patches are welcome.
|
||||||
|
ADDONS_SRC=(
|
||||||
|
"java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
|
||||||
|
# no release for 8 years, should we package it?
|
||||||
|
"libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
|
||||||
|
# Does not build with 1.6 rhino at all
|
||||||
|
"libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
|
||||||
|
# requirement of rhino
|
||||||
|
"libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
|
||||||
|
# not packageable
|
||||||
|
"odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
|
||||||
|
)
|
||||||
|
SRC_URI+=" ${ADDONS_SRC[*]}"
|
||||||
|
|
||||||
|
unset ADDONS_URI
|
||||||
|
unset ADDONS_SRC
|
||||||
|
|
||||||
|
# Extensions that need extra work:
|
||||||
|
LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
|
||||||
|
|
||||||
|
IUSE="bluetooth +branding coinmp +cups dbus debug eds firebird googledrive
|
||||||
|
gstreamer +gtk gtk2 jemalloc kde libressl mysql odk pdfimport postgres test vlc
|
||||||
|
$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
|
||||||
|
|
||||||
|
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
||||||
|
SLOT="0"
|
||||||
|
[[ ${PV} == *9999* ]] || \
|
||||||
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
|
||||||
|
COMMON_DEPEND="${PYTHON_DEPS}
|
||||||
|
app-arch/unzip
|
||||||
|
app-arch/zip
|
||||||
|
app-crypt/gpgme[cxx]
|
||||||
|
app-text/hunspell:=
|
||||||
|
>=app-text/libabw-0.1.0
|
||||||
|
>=app-text/libebook-0.1
|
||||||
|
app-text/libepubgen
|
||||||
|
>=app-text/libetonyek-0.1
|
||||||
|
app-text/libexttextcat
|
||||||
|
app-text/liblangtag
|
||||||
|
>=app-text/libmspub-0.1.0
|
||||||
|
>=app-text/libmwaw-0.3.1
|
||||||
|
>=app-text/libodfgen-0.1.0
|
||||||
|
app-text/libqxp
|
||||||
|
app-text/libstaroffice
|
||||||
|
app-text/libwpd:0.10[tools]
|
||||||
|
app-text/libwpg:0.3
|
||||||
|
>=app-text/libwps-0.4
|
||||||
|
app-text/mythes
|
||||||
|
>=dev-cpp/clucene-2.3.3.4-r2
|
||||||
|
=dev-cpp/libcmis-0.5*
|
||||||
|
dev-db/unixODBC
|
||||||
|
dev-lang/perl
|
||||||
|
dev-libs/boost:=[nls]
|
||||||
|
dev-libs/expat
|
||||||
|
dev-libs/hyphen
|
||||||
|
dev-libs/icu:=
|
||||||
|
dev-libs/libassuan
|
||||||
|
dev-libs/libgpg-error
|
||||||
|
=dev-libs/liborcus-0.13*
|
||||||
|
dev-libs/librevenge
|
||||||
|
dev-libs/nspr
|
||||||
|
dev-libs/nss
|
||||||
|
!libressl? ( >=dev-libs/openssl-1.0.0d:0 )
|
||||||
|
libressl? ( dev-libs/libressl )
|
||||||
|
>=dev-libs/redland-1.0.16
|
||||||
|
>=dev-libs/xmlsec-1.2.24[nss]
|
||||||
|
media-gfx/graphite2
|
||||||
|
media-libs/fontconfig
|
||||||
|
media-libs/freetype:2
|
||||||
|
>=media-libs/harfbuzz-0.9.42:=[graphite,icu]
|
||||||
|
media-libs/lcms:2
|
||||||
|
>=media-libs/libcdr-0.1.0
|
||||||
|
>=media-libs/libepoxy-1.3.1[X]
|
||||||
|
>=media-libs/libfreehand-0.1.0
|
||||||
|
media-libs/libpagemaker
|
||||||
|
>=media-libs/libpng-1.4:0=
|
||||||
|
>=media-libs/libvisio-0.1.0
|
||||||
|
media-libs/libzmf
|
||||||
|
net-libs/neon
|
||||||
|
net-misc/curl
|
||||||
|
net-nds/openldap
|
||||||
|
sci-mathematics/lpsolve
|
||||||
|
virtual/glu
|
||||||
|
virtual/jpeg:0
|
||||||
|
virtual/opengl
|
||||||
|
x11-libs/cairo[X]
|
||||||
|
x11-libs/libXinerama
|
||||||
|
x11-libs/libXrandr
|
||||||
|
x11-libs/libXrender
|
||||||
|
bluetooth? ( net-wireless/bluez )
|
||||||
|
coinmp? ( sci-libs/coinor-mp )
|
||||||
|
cups? ( net-print/cups )
|
||||||
|
dbus? ( dev-libs/dbus-glib )
|
||||||
|
eds? (
|
||||||
|
dev-libs/glib:2
|
||||||
|
gnome-base/dconf
|
||||||
|
gnome-extra/evolution-data-server
|
||||||
|
)
|
||||||
|
firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1 )
|
||||||
|
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
|
||||||
|
x11-libs/gtk+:3
|
||||||
|
)
|
||||||
|
gtk2? (
|
||||||
|
x11-libs/gdk-pixbuf
|
||||||
|
>=x11-libs/gtk+-2.24:2
|
||||||
|
)
|
||||||
|
kde? (
|
||||||
|
dev-qt/qtcore:5
|
||||||
|
dev-qt/qtgui:5
|
||||||
|
dev-qt/qtx11extras:5
|
||||||
|
dev-qt/qtwidgets:5
|
||||||
|
kde-frameworks/kconfig:5
|
||||||
|
kde-frameworks/kcoreaddons:5
|
||||||
|
kde-frameworks/ki18n:5
|
||||||
|
kde-frameworks/kio:5
|
||||||
|
kde-frameworks/kwindowsystem:5
|
||||||
|
)
|
||||||
|
jemalloc? ( dev-libs/jemalloc )
|
||||||
|
libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
|
||||||
|
libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
|
||||||
|
mysql? ( dev-db/mysql-connector-c++ )
|
||||||
|
pdfimport? ( app-text/poppler:=[cxx] )
|
||||||
|
postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPEND="${COMMON_DEPEND}
|
||||||
|
!app-office/libreoffice-bin
|
||||||
|
!app-office/libreoffice-bin-debug
|
||||||
|
!app-office/openoffice
|
||||||
|
media-fonts/dejavu
|
||||||
|
media-fonts/liberation-fonts
|
||||||
|
media-fonts/libertine
|
||||||
|
|| ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
|
||||||
|
java? ( >=virtual/jre-1.6 )
|
||||||
|
kde? ( kde-frameworks/oxygen-icons:* )
|
||||||
|
vlc? ( media-video/vlc )
|
||||||
|
"
|
||||||
|
|
||||||
|
if [[ ${PV} != *9999* ]]; then
|
||||||
|
PDEPEND="=app-office/libreoffice-l10n-$(get_version_component_range 1-2)*"
|
||||||
|
else
|
||||||
|
# Translations are not reliable on live ebuilds
|
||||||
|
# rather force people to use english only.
|
||||||
|
PDEPEND="!app-office/libreoffice-l10n"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# FIXME: cppunit should be moved to test conditional
|
||||||
|
# after everything upstream is under gbuild
|
||||||
|
# as dmake execute tests right away
|
||||||
|
DEPEND="${COMMON_DEPEND}
|
||||||
|
!<sys-devel/make-3.82
|
||||||
|
>=dev-libs/libatomic_ops-7.2d
|
||||||
|
>=dev-libs/libxml2-2.7.8
|
||||||
|
dev-libs/libxslt
|
||||||
|
dev-perl/Archive-Zip
|
||||||
|
>=dev-util/cppunit-1.14.0
|
||||||
|
>=dev-util/gperf-3
|
||||||
|
dev-util/intltool
|
||||||
|
>=dev-util/mdds-1.2.3:1=
|
||||||
|
media-libs/glm
|
||||||
|
sys-devel/bison
|
||||||
|
sys-devel/flex
|
||||||
|
sys-devel/gettext
|
||||||
|
sys-devel/ucpp
|
||||||
|
sys-libs/zlib
|
||||||
|
virtual/pkgconfig
|
||||||
|
x11-libs/libXt
|
||||||
|
x11-libs/libXtst
|
||||||
|
x11-proto/randrproto
|
||||||
|
x11-proto/xextproto
|
||||||
|
x11-proto/xineramaproto
|
||||||
|
x11-proto/xproto
|
||||||
|
java? (
|
||||||
|
dev-java/ant-core
|
||||||
|
>=virtual/jdk-1.6
|
||||||
|
)
|
||||||
|
odk? ( >=app-doc/doxygen-1.8.4 )
|
||||||
|
test? (
|
||||||
|
dev-util/cppunit
|
||||||
|
media-fonts/dejavu
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
||||||
|
bluetooth? ( dbus )
|
||||||
|
kde? ( gtk )
|
||||||
|
libreoffice_extensions_nlpsolver? ( java )
|
||||||
|
libreoffice_extensions_scripting-beanshell? ( java )
|
||||||
|
libreoffice_extensions_scripting-javascript? ( java )
|
||||||
|
libreoffice_extensions_wiki-publisher? ( java )
|
||||||
|
"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
# not upstreamable stuff
|
||||||
|
"${FILESDIR}/${PN}-5.4-system-pyuno.patch"
|
||||||
|
"${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
|
||||||
|
|
||||||
|
# TODO: upstream
|
||||||
|
"${FILESDIR}/${PN}-5.2.5.1-glibc-2.24.patch"
|
||||||
|
|
||||||
|
# gtk3-kde5 vcl plugin backported from master
|
||||||
|
"${WORKDIR}"/${PATCHSET/.tar.xz/}
|
||||||
|
)
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
use java || \
|
||||||
|
ewarn "If you plan to use Base application you should enable java or you will get various crashes."
|
||||||
|
|
||||||
|
if has_version "<app-office/libreoffice-5.3.0[firebird]"; then
|
||||||
|
ewarn "Firebird has been upgraded to version 3. It is unable to read back Firebird 2.5 data, so"
|
||||||
|
ewarn "embedded firebird odb files created in LibreOffice pre-5.3 can't be opened with this version."
|
||||||
|
ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ${MERGE_TYPE} != binary ]]; then
|
||||||
|
CHECKREQS_MEMORY="512M"
|
||||||
|
if is-flagq "-g*" && ! is-flagq "-g*0" ; then
|
||||||
|
CHECKREQS_DISK_BUILD="22G"
|
||||||
|
else
|
||||||
|
CHECKREQS_DISK_BUILD="6G"
|
||||||
|
fi
|
||||||
|
check-reqs_pkg_pretend
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
java-pkg-opt-2_pkg_setup
|
||||||
|
python-single-r1_pkg_setup
|
||||||
|
xdg_environment_reset
|
||||||
|
|
||||||
|
if [[ ${MERGE_TYPE} != binary ]]; then
|
||||||
|
CHECKREQS_MEMORY="512M"
|
||||||
|
if is-flagq "-g*" && ! is-flagq "-g*0" ; then
|
||||||
|
CHECKREQS_DISK_BUILD="22G"
|
||||||
|
else
|
||||||
|
CHECKREQS_DISK_BUILD="6G"
|
||||||
|
fi
|
||||||
|
check-reqs_pkg_setup
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
default
|
||||||
|
|
||||||
|
if [[ ${PV} = *9999* ]]; then
|
||||||
|
local base_uri branch mypv
|
||||||
|
base_uri="https://anongit.freedesktop.org/git"
|
||||||
|
branch="master"
|
||||||
|
mypv=${PV/.9999}
|
||||||
|
[[ ${mypv} != ${PV} ]] && branch="${PN}-${mypv/./-}"
|
||||||
|
git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}"
|
||||||
|
git-r3_checkout "${base_uri}/${PN}/core"
|
||||||
|
|
||||||
|
git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master"
|
||||||
|
git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
AT_M4DIR="m4" eautoreconf
|
||||||
|
# hack in the autogen.sh
|
||||||
|
touch autogen.lastrun
|
||||||
|
|
||||||
|
# system pyuno mess
|
||||||
|
sed -i \
|
||||||
|
-e "s:%eprefix%:${EPREFIX}:g" \
|
||||||
|
-e "s:%libdir%:$(get_libdir):g" \
|
||||||
|
pyuno/source/module/uno.py \
|
||||||
|
pyuno/source/officehelper.py || die
|
||||||
|
# sed in the tests
|
||||||
|
sed -i \
|
||||||
|
-e "s#all : build unitcheck#all : build#g" \
|
||||||
|
solenv/gbuild/Module.mk || die
|
||||||
|
sed -i \
|
||||||
|
-e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
|
||||||
|
-e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
|
||||||
|
Makefile.in || die
|
||||||
|
|
||||||
|
sed -i \
|
||||||
|
-e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
|
||||||
|
-e "s,\$INSTALLDIRNAME.sh,${PN}," \
|
||||||
|
bin/distro-install-desktop-integration || die
|
||||||
|
|
||||||
|
if use branding; then
|
||||||
|
# hack...
|
||||||
|
mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Don't list pdfimport support in desktop when built with none, bug # 605464
|
||||||
|
if ! use pdfimport; then
|
||||||
|
sed -i \
|
||||||
|
-e ":MimeType: s:application/pdf;::" \
|
||||||
|
-e ":Keywords: s:pdf;::" \
|
||||||
|
sysui/desktop/menus/draw.desktop || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
# Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys
|
||||||
|
# Note: these are for Gentoo use ONLY. For your own distribution, please get
|
||||||
|
# your own set of keys. Feel free to contact chromium@gentoo.org for more info.
|
||||||
|
local google_default_client_id="329227923882.apps.googleusercontent.com"
|
||||||
|
local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
|
||||||
|
|
||||||
|
# optimization flags
|
||||||
|
export GMAKE_OPTIONS="${MAKEOPTS}"
|
||||||
|
# System python enablement:
|
||||||
|
export PYTHON_CFLAGS=$(python_get_CFLAGS)
|
||||||
|
export PYTHON_LIBS=$(python_get_LIBS)
|
||||||
|
|
||||||
|
if use kde; then
|
||||||
|
export QT_SELECT=5 # bug 639620 needs proper fix though
|
||||||
|
export QT5DIR="$(qt5_get_bindir)/../"
|
||||||
|
export MOC5="$(qt5_get_bindir)/moc"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# system headers/libs/...: enforce using system packages
|
||||||
|
# --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad
|
||||||
|
# --enable-cairo: ensure that cairo is always required
|
||||||
|
# --enable-*-link: link to the library rather than just dlopen on runtime
|
||||||
|
# --enable-release-build: build the libreoffice as release
|
||||||
|
# --disable-fetch-external: prevent dowloading during compile phase
|
||||||
|
# --enable-extension-integration: enable any extension integration support
|
||||||
|
# --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
|
||||||
|
# --disable-report-builder: too much java packages pulled in without pkgs
|
||||||
|
# --without-system-sane: just sane.h header that is used for scan in writer,
|
||||||
|
# not linked or anything else, worthless to depend on
|
||||||
|
# --disable-pdfium: not yet packaged
|
||||||
|
local myeconfargs=(
|
||||||
|
--with-system-dicts
|
||||||
|
--with-system-epoxy
|
||||||
|
--with-system-headers
|
||||||
|
--with-system-jars
|
||||||
|
--with-system-libs
|
||||||
|
--enable-cairo-canvas
|
||||||
|
--enable-largefile
|
||||||
|
--enable-mergelibs
|
||||||
|
--enable-neon
|
||||||
|
--enable-python=system
|
||||||
|
--enable-randr
|
||||||
|
--enable-release-build
|
||||||
|
--disable-breakpad
|
||||||
|
--disable-ccache
|
||||||
|
--disable-dependency-tracking
|
||||||
|
--disable-epm
|
||||||
|
--disable-fetch-external
|
||||||
|
--disable-gstreamer-0-10
|
||||||
|
--disable-online-update
|
||||||
|
--disable-pdfium
|
||||||
|
--disable-report-builder
|
||||||
|
--with-alloc=$(use jemalloc && echo "jemalloc" || echo "system")
|
||||||
|
--with-build-version="Gentoo official package"
|
||||||
|
--enable-extension-integration
|
||||||
|
--with-external-dict-dir="${EPREFIX}/usr/share/myspell"
|
||||||
|
--with-external-hyph-dir="${EPREFIX}/usr/share/myspell"
|
||||||
|
--with-external-thes-dir="${EPREFIX}/usr/share/myspell"
|
||||||
|
--with-external-tar="${DISTDIR}"
|
||||||
|
--with-lang=""
|
||||||
|
--with-parallelism=$(makeopts_jobs)
|
||||||
|
--with-system-ucpp
|
||||||
|
--with-vendor="Gentoo Foundation"
|
||||||
|
--with-x
|
||||||
|
--without-fonts
|
||||||
|
--without-myspell-dicts
|
||||||
|
--without-help
|
||||||
|
--with-helppack-integration
|
||||||
|
--with-system-gpgmepp
|
||||||
|
--without-system-sane
|
||||||
|
$(use_enable bluetooth sdremote-bluetooth)
|
||||||
|
$(use_enable coinmp)
|
||||||
|
$(use_enable cups)
|
||||||
|
$(use_enable dbus)
|
||||||
|
$(use_enable debug)
|
||||||
|
$(use_enable eds evolution2)
|
||||||
|
$(use_enable firebird firebird-sdbc)
|
||||||
|
$(use_enable gstreamer gstreamer-1-0)
|
||||||
|
$(use_enable gtk gtk3)
|
||||||
|
$(use_enable gtk2 gtk)
|
||||||
|
$(use_enable kde gtk3-kde5)
|
||||||
|
$(use_enable kde qt5)
|
||||||
|
$(use_enable mysql ext-mariadb-connector)
|
||||||
|
$(use_enable odk)
|
||||||
|
$(use_enable pdfimport)
|
||||||
|
$(use_enable postgres postgresql-sdbc)
|
||||||
|
$(use_enable vlc)
|
||||||
|
$(use_with coinmp system-coinmp)
|
||||||
|
$(use_with googledrive gdrive-client-id ${google_default_client_id})
|
||||||
|
$(use_with googledrive gdrive-client-secret ${google_default_client_secret})
|
||||||
|
$(use_with java)
|
||||||
|
$(use_with mysql system-mysql-cppconn)
|
||||||
|
$(use_with odk doxygen)
|
||||||
|
)
|
||||||
|
|
||||||
|
if use eds || use gtk; then
|
||||||
|
myeconfargs+=( --enable-dconf --enable-gio )
|
||||||
|
else
|
||||||
|
myeconfargs+=( --disable-dconf --disable-gio )
|
||||||
|
fi
|
||||||
|
|
||||||
|
# libreoffice extensions handling
|
||||||
|
for lo_xt in ${LO_EXTS}; do
|
||||||
|
if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
|
||||||
|
myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) )
|
||||||
|
else
|
||||||
|
myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) )
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if use java; then
|
||||||
|
# hsqldb: system one is too new
|
||||||
|
myeconfargs+=(
|
||||||
|
--without-junit
|
||||||
|
--without-system-hsqldb
|
||||||
|
--with-ant-home="${ANT_HOME}"
|
||||||
|
--with-jdk-home=$(java-config --jdk-home 2>/dev/null)
|
||||||
|
--with-jvm-path="${EPREFIX}/usr/lib/"
|
||||||
|
)
|
||||||
|
|
||||||
|
use libreoffice_extensions_scripting-beanshell && \
|
||||||
|
myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) )
|
||||||
|
|
||||||
|
use libreoffice_extensions_scripting-javascript && \
|
||||||
|
myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) )
|
||||||
|
fi
|
||||||
|
|
||||||
|
econf "${myeconfargs[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
# more and more LO stuff tries to use OpenGL, including tests during build
|
||||||
|
# bug 501508, bug 540624, bug 545974 and probably more
|
||||||
|
addpredict /dev/dri
|
||||||
|
addpredict /dev/ati
|
||||||
|
addpredict /dev/nvidiactl
|
||||||
|
|
||||||
|
# hack for offlinehelp, this needs fixing upstream at some point
|
||||||
|
# it is broken because we send --without-help
|
||||||
|
# https://bugs.freedesktop.org/show_bug.cgi?id=46506
|
||||||
|
(
|
||||||
|
grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" || die
|
||||||
|
source "${T}/config_host.mk" 2&> /dev/null
|
||||||
|
|
||||||
|
local path="${WORKDIR}/helpcontent2/source/auxiliary/"
|
||||||
|
mkdir -p "${path}" || die
|
||||||
|
|
||||||
|
echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=helpcontent2/source/media/helpimg > \"${path}/helpimg.ilst\""
|
||||||
|
perl "${S}/helpcontent2/helpers/create_ilst.pl" \
|
||||||
|
-dir=helpcontent2/source/media/helpimg \
|
||||||
|
> "${path}/helpimg.ilst"
|
||||||
|
[[ -s "${path}/helpimg.ilst" ]] || \
|
||||||
|
ewarn "The help images list is empty, something is fishy, report a bug."
|
||||||
|
)
|
||||||
|
|
||||||
|
local target
|
||||||
|
use test && target="build" || target="build-nocheck"
|
||||||
|
|
||||||
|
# this is not a proper make script
|
||||||
|
make ${target} || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
make unitcheck || die
|
||||||
|
make slowcheck || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
# This is not Makefile so no buildserver
|
||||||
|
make DESTDIR="${D}" distro-pack-install -o build -o check || die
|
||||||
|
|
||||||
|
# bug 593514
|
||||||
|
if use gtk; then
|
||||||
|
dosym libreoffice/program/liblibreofficekitgtk.so \
|
||||||
|
/usr/$(get_libdir)/liblibreofficekitgtk.so
|
||||||
|
fi
|
||||||
|
|
||||||
|
# bash completion aliases
|
||||||
|
bashcomp_alias \
|
||||||
|
libreoffice \
|
||||||
|
unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
|
||||||
|
|
||||||
|
if use branding; then
|
||||||
|
insinto /usr/$(get_libdir)/${PN}/program
|
||||||
|
newins "${WORKDIR}/branding-sofficerc" sofficerc
|
||||||
|
dodir /etc/env.d
|
||||||
|
echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"etc/env.d/99${PN} || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Hack for offlinehelp, this needs fixing upstream at some point.
|
||||||
|
# It is broken because we send --without-help
|
||||||
|
# https://bugs.freedesktop.org/show_bug.cgi?id=46506
|
||||||
|
insinto /usr/$(get_libdir)/libreoffice/help
|
||||||
|
doins xmlhelp/util/*.xsl
|
||||||
|
|
||||||
|
pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/soffice.bin
|
||||||
|
pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/unopkg.bin
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
gnome2_icon_savelist
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
gnome2_icon_cache_update
|
||||||
|
xdg_desktop_database_update
|
||||||
|
xdg_mimeinfo_database_update
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
gnome2_icon_cache_update
|
||||||
|
xdg_desktop_database_update
|
||||||
|
xdg_mimeinfo_database_update
|
||||||
|
}
|
Binary file not shown.
@ -1,3 +1,2 @@
|
|||||||
DIST eclass-manpages-20170905.tar.xz 453248 BLAKE2B dee13d3db8d685903bcaa4e54eb2b1167cac5f4b16fa639b4ddf37e4e33037cb12035b752f2bf12ccd886df38342a32d4e6e64a9ec2e1eea1c38db95b1e13bc8 SHA512 a6e8732f7a06e3a7bfd009a25d91f7f3c6721283c0265361029ee25cdaa20198a7b273e5825d7ac3f66c7ccfa7eea20c2c3ff23dc08bab22a32c2325a413e6b5
|
|
||||||
DIST eclass-manpages-20180101.tar.xz 459156 BLAKE2B 1bddc6e20da2b037968eed722e6121ae8adeb90a80d5bbcd6c04528eefbeaa6e08b6a9dda08d2e677dfa140d0b978db51c450121a017360ce05b97709e4f8863 SHA512 7f9d843bd3b41e8a0993981a92aca69cfc423121db132d081d28487f83351a8b5b273eb9576c9610ec96e81b8e9a664d2089f30a0e94720baf07a28313627644
|
|
||||||
DIST eclass-manpages-20180119.tar.xz 459484 BLAKE2B 99464007c42b3d9ccc98e991b9872f32450927e6fbf46aa85023c86689e0db5bc5e87788bc69a7306846f55341045acf81ff409768dcce9af2695699d93873df SHA512 dd5c05eb195fe1d895b397b4a165169abf68c6f3abadb40720ac3a8134e55efb2f623e2b5892e88a128c456ca36321863571a1929b76204b432c5dc710094c0e
|
DIST eclass-manpages-20180119.tar.xz 459484 BLAKE2B 99464007c42b3d9ccc98e991b9872f32450927e6fbf46aa85023c86689e0db5bc5e87788bc69a7306846f55341045acf81ff409768dcce9af2695699d93873df SHA512 dd5c05eb195fe1d895b397b4a165169abf68c6f3abadb40720ac3a8134e55efb2f623e2b5892e88a128c456ca36321863571a1929b76204b432c5dc710094c0e
|
||||||
|
DIST eclass-manpages-20180302.tar.xz 454568 BLAKE2B 2d09a44e33efe0a302d4bdfaa3189e6ca0d373c84518e58bfb62824c00f83e865660c42cb0df597902d253241d9cbdac468add16ad19f94edd925460701c9f4f SHA512 17878001c9d70c69b9260541ac87cf642da0f0c5adbb77b3df2f614331e29af6af90b64950c9d95a2bc76d4b24180b46575d02a602956b721e3b03b93ee251e0
|
||||||
|
@ -1,34 +0,0 @@
|
|||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
DESCRIPTION="collection of Gentoo eclass manpages"
|
|
||||||
HOMEPAGE="https://www.gentoo.org/"
|
|
||||||
SRC_URI="https://dev.gentoo.org/~titanofold/dist/${P}.tar.xz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
# Keep the keywords stabled. No need to change to ~arch.
|
|
||||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-solaris"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="app-arch/xz-utils"
|
|
||||||
|
|
||||||
# How to create a snapshot and upload it to your dev-space:
|
|
||||||
#
|
|
||||||
# mkdir eclass-manpages-$(date +%Y%m%d)
|
|
||||||
# cp "$(portageq get_repo_path / gentoo)"/eclass/*.eclass eclass-manpages-$(date +%Y%m%d)/
|
|
||||||
# tar -cf eclass-manpages-$(date +%Y%m%d).tar eclass-manpages-$(date +%Y%m%d)
|
|
||||||
# xz -9e eclass-manpages-$(date +%Y%m%d).tar
|
|
||||||
# scp eclass-manpages-$(date +%Y%m%d).tar.xz dev.gentoo.org:public_html/dist/
|
|
||||||
#
|
|
||||||
# Then copy the ebuild and update your name in SRC_URI ;-).
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
env ECLASSDIR="${S}" bash "${FILESDIR}"/eclass-to-manpage.sh || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
doman *.5
|
|
||||||
}
|
|
@ -0,0 +1 @@
|
|||||||
|
DIST hashgen-1.0.c 36299 BLAKE2B 4419ffd2b4c8435b05b0cf2d9e54e2df5c539f945166da8305c910ec267e5d93cd26822ef189777cf952bb8644193fbfeaafefa4e98c5b7561845fb9a1f40c0a SHA512 4f8df94e91b02ebc611553d2dd9776de4ba77989869ed1ce411b91cc7fed224c3d8715d15cce6234caa25f2143962949dfd59da79d8f1ab211c287c604c22fff
|
@ -0,0 +1,53 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="Manifest generation and verification tool written in C"
|
||||||
|
HOMEPAGE="https://prefix.gentoo.org/"
|
||||||
|
GITHASH="7fc3cf2b4baddc8b98c994b8ee024330d8f29956"
|
||||||
|
SRC_URI="https://gitweb.gentoo.org/repo/proj/prefix.git/plain/scripts/rsync-generation/hashgen.c?id=${GITHASH} -> ${P}.c"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~ppc64 ~x64-macos ~sparc-solaris ~x64-solaris"
|
||||||
|
IUSE="+openmp"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
openmp? (
|
||||||
|
|| ( >=sys-devel/gcc-4.2:*[openmp] sys-devel/clang-runtime:*[openmp] )
|
||||||
|
)
|
||||||
|
app-crypt/libb2
|
||||||
|
dev-libs/openssl:*
|
||||||
|
sys-libs/zlib
|
||||||
|
app-crypt/gpgme
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
mkdir "${S}" || die
|
||||||
|
cp "${DISTDIR}"/${P}.c "${S}"/${PN}.c || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
v() {
|
||||||
|
echo "$@"
|
||||||
|
"$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
local openmp=
|
||||||
|
use openmp && tc-has-openmp && openmp=-fopenmp
|
||||||
|
|
||||||
|
v $(tc-getCC) -o hashgen ${openmp} ${CFLAGS} \
|
||||||
|
$(pkg-config openssl --libs) \
|
||||||
|
$(gpgme-config --libs) \
|
||||||
|
-lb2 -lz ${LDFLAGS} ${PN}.c || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin hashgen
|
||||||
|
cd "${ED}"/usr/bin || die
|
||||||
|
ln -s hashgen hashverify || die
|
||||||
|
}
|
@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<maintainer type="project">
|
<maintainer type="person">
|
||||||
<email>sound@gentoo.org</email>
|
<email>grobian@gentoo.org</email>
|
||||||
<name>Gentoo Sound project</name>
|
<name>Fabian Groffen</name>
|
||||||
</maintainer>
|
</maintainer>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
Binary file not shown.
@ -0,0 +1,27 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit bash-completion-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Gentoo-specific bash command-line completions (emerge, ebuild, equery, etc)"
|
||||||
|
HOMEPAGE="https://www.gentoo.org/"
|
||||||
|
SRC_URI="https://dev.gentoo.org/~mgorny/dist/${P}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# resolve openrc file collsions for bug 649144
|
||||||
|
rm completions/rc-{service,status,update} || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake DESTDIR="${D}" install \
|
||||||
|
completionsdir="$(get_bashcompdir)" \
|
||||||
|
helpersdir="$(get_bashhelpersdir)" \
|
||||||
|
compatdir="${EPREFIX}/etc/bash_completion.d"
|
||||||
|
}
|
Binary file not shown.
@ -1,2 +1,2 @@
|
|||||||
DIST libmspub-0.1.2.tar.xz 345556 BLAKE2B a3b47fb188fc859abf54e3375514d31a1fafa21fb57fe0ac4a20013741a223a7011adf8ce7784b61346b49e9f4c0b6c353138dc12a5035f7bcc24576a508aa50 SHA512 c19025a2b887c33f5966b0972204ab2a8ae841b82df38eaf53c0cdc8f99d93cccab5e1c78143a79d5aef9c7a7387bd6f2cf34833a00861058e0e4687f48be714
|
DIST libmspub-0.1.2.tar.xz 345556 BLAKE2B a3b47fb188fc859abf54e3375514d31a1fafa21fb57fe0ac4a20013741a223a7011adf8ce7784b61346b49e9f4c0b6c353138dc12a5035f7bcc24576a508aa50 SHA512 c19025a2b887c33f5966b0972204ab2a8ae841b82df38eaf53c0cdc8f99d93cccab5e1c78143a79d5aef9c7a7387bd6f2cf34833a00861058e0e4687f48be714
|
||||||
DIST libmspub-0.1.3.tar.xz 377716 BLAKE2B 6b6592f92523d009b1e6c8b1d24ae2efd36efd692cde53e221fcd701aca3246004d20aa8d584271ef6c75add4251e62c93c5a2896d1d3cc5e65f8389dc88ae65 SHA512 3d3680a732c84f7817cf079ae458f56e1eac14663014d48c29f54a6b4dfee887c2cc296a6d6e00d2e05329126414e6513cd7d1187c760ce952c72c27a7ccda46
|
DIST libmspub-0.1.4.tar.xz 377472 BLAKE2B 89bd994a5aa2b3a22681dfe78fcea19561ea6057210e61630fa904ded12cca4694d715dd8f2fe8f687a91951bfa2f7aec1ff11d0b978a517476545bb07f654dd SHA512 7275f890645961b3fd56df4584788962e8c064fe3f99f5834c6ba6177ce76d00d544fbe9a25b7ab2f4180d2f3a90c609fe0bb68d61ea24e95b086190390fff31
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,58 @@
|
|||||||
|
--- a/include/sys_main.h 2018-01-19 05:36:38.000000000 -0500
|
||||||
|
+++ b/include/sys_main.h 2018-03-01 11:40:04.554713079 -0500
|
||||||
|
@@ -20,6 +20,8 @@
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#include "sys/mysql/psi/psi_memory.h"
|
||||||
|
+
|
||||||
|
#define MY_FAE 8 /* Fatal if any error */
|
||||||
|
#define MY_WME 16 /* Write message on error */
|
||||||
|
#define MY_ZEROFILL 32 /* my_malloc(), fill array with zero */
|
||||||
|
--- a/driver/connect.c 2018-01-19 05:36:38.000000000 -0500
|
||||||
|
+++ b/driver/connect.c 2018-03-01 11:39:51.458676373 -0500
|
||||||
|
@@ -179,7 +179,7 @@
|
||||||
|
/* Set other connection options */
|
||||||
|
|
||||||
|
if (ds->allow_big_results || ds->safe)
|
||||||
|
-#if MYSQL_VERSION_ID >= 50709
|
||||||
|
+#if MYSQL_VERSION_ID >= 50709 && !defined(MARIADB_BASE_VERSION)
|
||||||
|
mysql_options(mysql, MYSQL_OPT_MAX_ALLOWED_PACKET, &max_long);
|
||||||
|
#else
|
||||||
|
/* max_allowed_packet is a magical mysql macro. */
|
||||||
|
@@ -252,7 +252,7 @@
|
||||||
|
ds_get_utf8attr(ds->rsakey, &ds->rsakey8));
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
-#if MYSQL_VERSION_ID >= 50710
|
||||||
|
+#if MYSQL_VERSION_ID >= 50710 && !defined(MARIADB_BASE_VERSION)
|
||||||
|
{
|
||||||
|
char tls_options[128] = { 0 };
|
||||||
|
if (!ds->no_tls_1)
|
||||||
|
@@ -323,7 +323,7 @@
|
||||||
|
#endif
|
||||||
|
|
||||||
|
mysql->options.use_ssl = !ds->disable_ssl_default;
|
||||||
|
-#if MYSQL_VERSION_ID >= 50703
|
||||||
|
+#if MYSQL_VERSION_ID >= 50703 && !defined(MARIADB_BASE_VERSION)
|
||||||
|
{
|
||||||
|
if (ds->ssl_enforce)
|
||||||
|
{
|
||||||
|
@@ -332,7 +332,7 @@
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-#if MYSQL_VERSION_ID >= 50711
|
||||||
|
+#if MYSQL_VERSION_ID >= 50711 && !defined(MARIADB_BASE_VERSION)
|
||||||
|
if (ds->sslmode)
|
||||||
|
{
|
||||||
|
unsigned int mode = 0;
|
||||||
|
@@ -510,7 +510,7 @@
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
-#if MYSQL_VERSION_ID >= 50709
|
||||||
|
+#if MYSQL_VERSION_ID >= 50709 && !defined(MARIADB_BASE_VERSION)
|
||||||
|
mysql_get_option(mysql, MYSQL_OPT_NET_BUFFER_LENGTH, &dbc->net_buffer_len);
|
||||||
|
#else
|
||||||
|
// for older versions just use net_buffer_length() macro
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue