parent
a209cb8215
commit
98e14c95e7
@ -1,3 +1,2 @@
|
||||
DIST glance-12.0.0.tar.gz 1746851 SHA256 42213a4cd59bbcaa5f34d09ff48494a4d9831de9f27fc8541726a685a4c4f509 SHA512 c0a4327bb091dca52a125dbc314c8fe13b2914ed0191ee8a39a36a7ccc5324fc8910f4c2af5a615f7783e3acee0f46a9a5370de278af53f80ce45b08c15ace48 WHIRLPOOL 1a23d1629f1be1b13b2c45ff77b7777d9cd011c01c45e1e6e5457d12b7b5cf6dcdfc757a36fde4cc84d34872be3fb1941e8cd158e2734215cab4f753f154a78e
|
||||
DIST glance-13.0.0.tar.gz 1742124 SHA256 3ef3594018469ba36425afafa61ae31487b6025e6f8d9d14febcedfa7136160f SHA512 2f49af5c462a10f8132bb50ad62a45026e77db1324384299551cfe2097b166ccb6fab82eacb092ab6c157f27cdb7253062e62881af795b15d8fd400c1fa096d8 WHIRLPOOL 0c859bbe9e87d2658118bdc111fd052ef088489d83d30574ec07271a50674d18b93d80de05a6282f7d43a8630d980340445b7eeee926bda84572df40086e5e5c
|
||||
DIST glance-14.0.0.tar.gz 1788173 SHA256 360a9ef92121ed355ea812478933ac4b020adc6ae3bb5440b05cbdf06a2f9f46 SHA512 4d0b6654dc6a9848e164422d138d4f6c1ec3711a7eb56a3c437202aa5c8cf86bf341201c9007b2f12173189f18beb73eadbaaade936ececf705a31e8b6eac155 WHIRLPOOL 40c7959e052cb3f1d93f3542669b3009b83004cce7dbdcbe67651e69af93e01969f70f4586a022ffc60127ce70037d4887ab0d8de4e11de98519bef578632265
|
||||
|
@ -1,135 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1 user
|
||||
|
||||
DESCRIPTION="Services for discovering, registering, and retrieving VM images"
|
||||
HOMEPAGE="https://launchpad.net/glance"
|
||||
SRC_URI="https://tarballs.openstack.org/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 x86"
|
||||
IUSE="doc mysql postgres +sqlite +swift"
|
||||
REQUIRED_USE="|| ( mysql postgres sqlite )"
|
||||
|
||||
CDEPEND=">=dev-python/pbr-1.6.0[${PYTHON_USEDEP}]"
|
||||
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}
|
||||
sqlite? (
|
||||
>=dev-python/sqlalchemy-1.0.10[sqlite,${PYTHON_USEDEP}]
|
||||
<dev-python/sqlalchemy-1.1.0[sqlite,${PYTHON_USEDEP}]
|
||||
)
|
||||
mysql? (
|
||||
dev-python/mysql-python
|
||||
>=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}]
|
||||
<dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
postgres? (
|
||||
dev-python/psycopg:2[${PYTHON_USEDEP}]
|
||||
>=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}]
|
||||
<dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
>=dev-python/eventlet-0.18.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/routes-1.12.3[${PYTHON_USEDEP}]
|
||||
!~dev-python/routes-2.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/routes-2.1[$(python_gen_usedep 'python2_7')]
|
||||
>=dev-python/webob-1.2.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/sqlalchemy-migrate-0.9.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/httplib2-0.7.5[${PYTHON_USEDEP}]
|
||||
>=dev-python/pycrypto-2.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-config-3.7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-concurrency-3.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-context-0.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-service-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-utils-3.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/stevedore-1.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/futurist-0.11.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/taskflow-1.16.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/keystoneauth-2.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/keystonemiddleware-4.0.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/keystonemiddleware-4.1.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[${PYTHON_USEDEP}]
|
||||
>=dev-python/jsonschema-2.0.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/jsonschema-2.5.0[${PYTHON_USEDEP}]
|
||||
<dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-keystoneclient-1.6.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/python-keystoneclient-1.8.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/python-keystoneclient-2.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyopenssl-0.14[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-db-4.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-i18n-2.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-log-1.14.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-messaging-4.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-middleware-3.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-policy-0.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-serialization-1.10.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/retrying-1.2.3[${PYTHON_USEDEP}]
|
||||
!~dev-python/retrying-1.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/osprofiler-1.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/glance_store-0.13.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/semantic_version-2.3.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/castellan-0.3.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/cryptography-1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/debtcollector-1.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/iso8601-0.1.9[${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() {
|
||||
distutils-r1_python_install
|
||||
|
||||
for svc in api glare registry scrubber; do
|
||||
newinitd "${FILESDIR}/glance.initd" glance-${svc}
|
||||
done
|
||||
|
||||
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*
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( doc/build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,136 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1 git-r3 user
|
||||
|
||||
DESCRIPTION="Services for discovering, registering, and retrieving VM images"
|
||||
HOMEPAGE="https://launchpad.net/glance"
|
||||
EGIT_REPO_URI="https://github.com/openstack/glance.git"
|
||||
EGIT_BRANCH="stable/mitaka"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE="doc mysql postgres +sqlite +swift"
|
||||
REQUIRED_USE="|| ( mysql postgres sqlite )"
|
||||
|
||||
CDEPEND=">=dev-python/pbr-1.6.0[${PYTHON_USEDEP}]"
|
||||
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}
|
||||
sqlite? (
|
||||
>=dev-python/sqlalchemy-1.0.10[sqlite,${PYTHON_USEDEP}]
|
||||
<dev-python/sqlalchemy-1.1.0[sqlite,${PYTHON_USEDEP}]
|
||||
)
|
||||
mysql? (
|
||||
dev-python/mysql-python
|
||||
>=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}]
|
||||
<dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
postgres? (
|
||||
dev-python/psycopg:2[${PYTHON_USEDEP}]
|
||||
>=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}]
|
||||
<dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
>=dev-python/eventlet-0.18.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/routes-1.12.3[${PYTHON_USEDEP}]
|
||||
!~dev-python/routes-2.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/routes-2.1[$(python_gen_usedep 'python2_7')]
|
||||
>=dev-python/webob-1.2.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/sqlalchemy-migrate-0.9.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/httplib2-0.7.5[${PYTHON_USEDEP}]
|
||||
>=dev-python/pycrypto-2.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-config-3.7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-concurrency-3.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-context-0.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-service-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-utils-3.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/stevedore-1.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/futurist-0.11.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/taskflow-1.16.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/keystoneauth-2.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/keystonemiddleware-4.0.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/keystonemiddleware-4.1.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[${PYTHON_USEDEP}]
|
||||
>=dev-python/jsonschema-2.0.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/jsonschema-2.5.0[${PYTHON_USEDEP}]
|
||||
<dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-keystoneclient-1.6.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/python-keystoneclient-1.8.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/python-keystoneclient-2.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyopenssl-0.14[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-db-4.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-i18n-2.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-log-1.14.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-messaging-4.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-middleware-3.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-policy-0.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-serialization-1.10.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/retrying-1.2.3[${PYTHON_USEDEP}]
|
||||
!~dev-python/retrying-1.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/osprofiler-1.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/glance_store-0.13.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/semantic_version-2.3.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/castellan-0.3.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/cryptography-1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/debtcollector-1.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/iso8601-0.1.9[${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() {
|
||||
distutils-r1_python_install
|
||||
|
||||
for svc in api glare registry scrubber; do
|
||||
newinitd "${FILESDIR}/glance.initd" glance-${svc}
|
||||
done
|
||||
|
||||
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*
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( doc/build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
EGO_PN="github.com/docker/${PN}"
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit golang-vcs
|
||||
else
|
||||
MY_PV="${PV/_/-}"
|
||||
EGIT_COMMIT="v${MY_PV}"
|
||||
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~ppc64"
|
||||
inherit golang-vcs-snapshot
|
||||
fi
|
||||
|
||||
DESCRIPTION="A daemon to control runC"
|
||||
HOMEPAGE="https://containerd.tools"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="hardened +seccomp"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=">=app-emulation/docker-runc-1.0.0_rc2
|
||||
seccomp? ( sys-libs/libseccomp )"
|
||||
|
||||
S=${WORKDIR}/${P}/src/${EGO_PN}
|
||||
|
||||
src_compile() {
|
||||
local options=( $(usex seccomp "seccomp") )
|
||||
export GOPATH="${WORKDIR}/${P}" # ${PWD}/vendor
|
||||
LDFLAGS=$(usex hardened '-extldflags -fno-PIC' '') emake GIT_COMMIT="$EGIT_COMMIT" BUILDTAGS="${options[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/containerd* bin/ctr
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
EGO_PN="github.com/docker/${PN}"
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit golang-vcs
|
||||
else
|
||||
MY_PV="${PV/_/-}"
|
||||
EGIT_COMMIT="v${MY_PV}"
|
||||
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~ppc64"
|
||||
inherit golang-vcs-snapshot
|
||||
fi
|
||||
|
||||
DESCRIPTION="A daemon to control runC"
|
||||
HOMEPAGE="https://containerd.tools"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="hardened +seccomp"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=">=app-emulation/docker-runc-1.0.0_rc2
|
||||
seccomp? ( sys-libs/libseccomp )"
|
||||
|
||||
S=${WORKDIR}/${P}/src/${EGO_PN}
|
||||
|
||||
src_compile() {
|
||||
local options=( $(usex seccomp "seccomp") )
|
||||
export GOPATH="${WORKDIR}/${P}" # ${PWD}/vendor
|
||||
LDFLAGS=$(usex hardened '-extldflags -fno-PIC' '') emake GIT_COMMIT="$EGIT_COMMIT" BUILDTAGS="${options[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/containerd* bin/ctr
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST qemu-2.8.0-CVE-2016-9602-patches.tar.xz 16264 SHA256 18ac829c6003a3f997db4030a46b422028c58fead158f0c5ffe36ad65acb84e0 SHA512 a56694d1600e4fd1ffd6bbe031a0db226fc5c88306797cc4e42d1dc6127b83d1791cb4e026988b3aad82eab84382e41077ae71e532d1d3489e179730185c0964 WHIRLPOOL 22057b001c478b2b0d97ad70393c973aefc6277d89bb5a1ae03c3c39b5182ddfbe541964761f512ed5735dc442e1f40d0a955ad5b270758e21ce815be86b24bd
|
||||
DIST qemu-2.8.0.tar.bz2 28368517 SHA256 dafd5d7f649907b6b617b822692f4c82e60cf29bc0fc58bc2036219b591e5e62 SHA512 50f2988d822388ba9fd1bf5dbe68359033ed7432d7f0f9790299f32f63faa6dc72979256b5632ba572d47ee3e74ed40e3e8e331dc6303ec1599f1b4367cb78c2 WHIRLPOOL 0ce4e0539657eb832e4039819e7360c792b6aa41c718f0e0d762f4933217f0d370af94b1d6d9776853575b4a6811d8c85db069bf09d21bd15399ac8b50440ff5
|
||||
DIST qemu-2.8.1.tar.bz2 28366270 SHA256 018e4c7ed22c220395cf41f835d01505e49d0e579a548bd3d72b03809442bbcd SHA512 0397b4029cdcb77ed053c44b3579a3f34894038e6fc6b4aa88de14515f5a78bf2f41c5e865f37111529f567c85d2f1c4deefae47dde54f76eac79410e5b2bdda WHIRLPOOL c41f53f18fac44efd1c81ba9d95204d23e9a70dc9c21624177be2fe92a327428fd5704b25bc334229fa36ae395fb4c82ba3955db39719c4458343978a4d3141a
|
||||
DIST qemu-2.9.0.tar.bz2 28720490 SHA256 00bfb217b1bb03c7a6c3261b819cfccbfb5a58e3e2ceff546327d271773c6c14 SHA512 4b28966eec0ca44681e35fcfb64a4eaef7c280b8d65c91d03f2efa37f76278fd8c1680e5798c7a30dbfcc8f3c05f4a803f48b8a2dfec3a4181bac079b2a5e422 WHIRLPOOL d79fe89eb271a56aee0cbd328e5f96999176b711afb5683d164b7b99d91e6dd2bfaf6e2ff4cd820a941c94f28116765cb07ffd5809d75c2f9654a67d56bfc0c1
|
||||
|
@ -0,0 +1,64 @@
|
||||
From 9c6b899f7a46893ab3b671e341a2234e9c0c060e Mon Sep 17 00:00:00 2001
|
||||
From: Greg Kurz <groug@kaod.org>
|
||||
Date: Mon, 17 Apr 2017 10:53:23 +0200
|
||||
Subject: [PATCH] 9pfs: local: set the path of the export root to "."
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
The local backend was recently converted to using "at*()" syscalls in order
|
||||
to ensure all accesses happen below the shared directory. This requires that
|
||||
we only pass relative paths, otherwise the dirfd argument to the "at*()"
|
||||
syscalls is ignored and the path is treated as an absolute path in the host.
|
||||
This is actually the case for paths in all fids, with the notable exception
|
||||
of the root fid, whose path is "/". This causes the following backend ops to
|
||||
act on the "/" directory of the host instead of the virtfs shared directory
|
||||
when the export root is involved:
|
||||
- lstat
|
||||
- chmod
|
||||
- chown
|
||||
- utimensat
|
||||
|
||||
ie, chmod /9p_mount_point in the guest will be converted to chmod / in the
|
||||
host for example. This could cause security issues with a privileged QEMU.
|
||||
|
||||
All "*at()" syscalls are being passed an open file descriptor. In the case
|
||||
of the export root, this file descriptor points to the path in the host that
|
||||
was passed to -fsdev.
|
||||
|
||||
The fix is thus as simple as changing the path of the export root fid to be
|
||||
"." instead of "/".
|
||||
|
||||
This is CVE-2017-7471.
|
||||
|
||||
Cc: qemu-stable@nongnu.org
|
||||
Reported-by: Léo Gaspard <leo@gaspard.io>
|
||||
Signed-off-by: Greg Kurz <groug@kaod.org>
|
||||
Reviewed-by: Eric Blake <eblake@redhat.com>
|
||||
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
|
||||
---
|
||||
hw/9pfs/9p-local.c | 7 ++++++-
|
||||
1 file changed, 6 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/hw/9pfs/9p-local.c b/hw/9pfs/9p-local.c
|
||||
index 45e9a1f..f3ebca4 100644
|
||||
--- a/hw/9pfs/9p-local.c
|
||||
+++ b/hw/9pfs/9p-local.c
|
||||
@@ -1098,8 +1098,13 @@ static int local_name_to_path(FsContext *ctx, V9fsPath *dir_path,
|
||||
{
|
||||
if (dir_path) {
|
||||
v9fs_path_sprintf(target, "%s/%s", dir_path->data, name);
|
||||
- } else {
|
||||
+ } else if (strcmp(name, "/")) {
|
||||
v9fs_path_sprintf(target, "%s", name);
|
||||
+ } else {
|
||||
+ /* We want the path of the export root to be relative, otherwise
|
||||
+ * "*at()" syscalls would treat it as "/" in the host.
|
||||
+ */
|
||||
+ v9fs_path_sprintf(target, "%s", ".");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
--
|
||||
2.10.2
|
||||
|
@ -0,0 +1,28 @@
|
||||
From 4ffcdef4277a91af15a3c09f7d16af072c29f3f2 Mon Sep 17 00:00:00 2001
|
||||
From: Li Qiang <liq3ea@gmail.com>
|
||||
Date: Fri, 7 Apr 2017 03:48:52 -0700
|
||||
Subject: [PATCH] 9pfs: xattr: fix memory leak in v9fs_list_xattr
|
||||
|
||||
Free 'orig_value' in error path.
|
||||
|
||||
Signed-off-by: Li Qiang <liqiang6-s@360.cn>
|
||||
Signed-off-by: Greg Kurz <groug@kaod.org>
|
||||
---
|
||||
hw/9pfs/9p-xattr.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/hw/9pfs/9p-xattr.c b/hw/9pfs/9p-xattr.c
|
||||
index eec160b..d05c1a1 100644
|
||||
--- a/hw/9pfs/9p-xattr.c
|
||||
+++ b/hw/9pfs/9p-xattr.c
|
||||
@@ -108,6 +108,7 @@ ssize_t v9fs_list_xattr(FsContext *ctx, const char *path,
|
||||
g_free(name);
|
||||
close_preserve_errno(dirfd);
|
||||
if (xattr_len < 0) {
|
||||
+ g_free(orig_value);
|
||||
return -1;
|
||||
}
|
||||
|
||||
--
|
||||
2.10.2
|
||||
|
@ -0,0 +1,742 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE="ncurses,readline"
|
||||
|
||||
PLOCALES="bg de_DE fr_FR hu it tr zh_CN"
|
||||
|
||||
inherit eutils flag-o-matic linux-info toolchain-funcs multilib python-r1 \
|
||||
user udev fcaps readme.gentoo-r1 pax-utils l10n
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
EGIT_REPO_URI="git://git.qemu.org/qemu.git"
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
else
|
||||
SRC_URI="http://wiki.qemu-project.org/download/${P}.tar.bz2"
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
|
||||
fi
|
||||
|
||||
DESCRIPTION="QEMU + Kernel-based Virtual Machine userland tools"
|
||||
HOMEPAGE="http://www.qemu.org http://www.linux-kvm.org"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2 BSD-2"
|
||||
SLOT="0"
|
||||
IUSE="accessibility +aio alsa bluetooth bzip2 +caps +curl debug +fdt
|
||||
glusterfs gnutls gtk gtk2 infiniband iscsi +jpeg kernel_linux
|
||||
kernel_FreeBSD lzo ncurses nfs nls numa opengl +pin-upstream-blobs +png
|
||||
pulseaudio python rbd sasl +seccomp sdl sdl2 selinux smartcard snappy
|
||||
spice ssh static static-user systemtap tci test usb usbredir vde
|
||||
+vhost-net virgl virtfs +vnc vte xattr xen xfs"
|
||||
|
||||
COMMON_TARGETS="aarch64 alpha arm cris i386 m68k microblaze microblazeel
|
||||
mips mips64 mips64el mipsel nios2 or1k ppc ppc64 s390x sh4 sh4eb sparc
|
||||
sparc64 x86_64"
|
||||
IUSE_SOFTMMU_TARGETS="${COMMON_TARGETS}
|
||||
lm32 moxie ppcemb tricore unicore32 xtensa xtensaeb"
|
||||
IUSE_USER_TARGETS="${COMMON_TARGETS}
|
||||
armeb hppa mipsn32 mipsn32el ppc64abi32 ppc64le sparc32plus tilegx"
|
||||
|
||||
use_softmmu_targets=$(printf ' qemu_softmmu_targets_%s' ${IUSE_SOFTMMU_TARGETS})
|
||||
use_user_targets=$(printf ' qemu_user_targets_%s' ${IUSE_USER_TARGETS})
|
||||
IUSE+=" ${use_softmmu_targets} ${use_user_targets}"
|
||||
|
||||
# Allow no targets to be built so that people can get a tools-only build.
|
||||
# Block USE flag configurations known to not work.
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
||||
gtk2? ( gtk )
|
||||
qemu_softmmu_targets_arm? ( fdt )
|
||||
qemu_softmmu_targets_microblaze? ( fdt )
|
||||
qemu_softmmu_targets_ppc? ( fdt )
|
||||
qemu_softmmu_targets_ppc64? ( fdt )
|
||||
sdl2? ( sdl )
|
||||
static? ( static-user !alsa !bluetooth !gtk !gtk2 !opengl !pulseaudio )
|
||||
virtfs? ( xattr )
|
||||
vte? ( gtk )"
|
||||
|
||||
# Dependencies required for qemu tools (qemu-nbd, qemu-img, qemu-io, ...)
|
||||
# and user/softmmu targets (qemu-*, qemu-system-*).
|
||||
#
|
||||
# Yep, you need both libcap and libcap-ng since virtfs only uses libcap.
|
||||
#
|
||||
# The attr lib isn't always linked in (although the USE flag is always
|
||||
# respected). This is because qemu supports using the C library's API
|
||||
# when available rather than always using the extranl library.
|
||||
ALL_DEPEND="
|
||||
>=dev-libs/glib-2.0[static-libs(+)]
|
||||
sys-libs/zlib[static-libs(+)]
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
systemtap? ( dev-util/systemtap )
|
||||
xattr? ( sys-apps/attr[static-libs(+)] )"
|
||||
|
||||
# Dependencies required for qemu tools (qemu-nbd, qemu-img, qemu-io, ...)
|
||||
# softmmu targets (qemu-system-*).
|
||||
SOFTMMU_TOOLS_DEPEND="
|
||||
>=x11-libs/pixman-0.28.0[static-libs(+)]
|
||||
accessibility? (
|
||||
app-accessibility/brltty[api]
|
||||
app-accessibility/brltty[static-libs(+)]
|
||||
)
|
||||
aio? ( dev-libs/libaio[static-libs(+)] )
|
||||
alsa? ( >=media-libs/alsa-lib-1.0.13 )
|
||||
bluetooth? ( net-wireless/bluez )
|
||||
bzip2? ( app-arch/bzip2[static-libs(+)] )
|
||||
caps? ( sys-libs/libcap-ng[static-libs(+)] )
|
||||
curl? ( >=net-misc/curl-7.15.4[static-libs(+)] )
|
||||
fdt? ( >=sys-apps/dtc-1.4.0[static-libs(+)] )
|
||||
glusterfs? ( >=sys-cluster/glusterfs-3.4.0[static-libs(+)] )
|
||||
gnutls? (
|
||||
dev-libs/nettle:=[static-libs(+)]
|
||||
>=net-libs/gnutls-3.0:=[static-libs(+)]
|
||||
)
|
||||
gtk? (
|
||||
gtk2? (
|
||||
x11-libs/gtk+:2
|
||||
vte? ( x11-libs/vte:0 )
|
||||
)
|
||||
!gtk2? (
|
||||
x11-libs/gtk+:3
|
||||
vte? ( x11-libs/vte:2.91 )
|
||||
)
|
||||
)
|
||||
infiniband? ( sys-fabric/librdmacm:=[static-libs(+)] )
|
||||
iscsi? ( net-libs/libiscsi )
|
||||
jpeg? ( virtual/jpeg:0=[static-libs(+)] )
|
||||
lzo? ( dev-libs/lzo:2[static-libs(+)] )
|
||||
ncurses? (
|
||||
sys-libs/ncurses:0=[unicode]
|
||||
sys-libs/ncurses:0=[static-libs(+)]
|
||||
)
|
||||
nfs? ( >=net-fs/libnfs-1.9.3[static-libs(+)] )
|
||||
numa? ( sys-process/numactl[static-libs(+)] )
|
||||
opengl? (
|
||||
virtual/opengl
|
||||
media-libs/libepoxy[static-libs(+)]
|
||||
media-libs/mesa[static-libs(+)]
|
||||
media-libs/mesa[egl,gbm]
|
||||
)
|
||||
png? ( media-libs/libpng:0=[static-libs(+)] )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
rbd? ( sys-cluster/ceph[static-libs(+)] )
|
||||
sasl? ( dev-libs/cyrus-sasl[static-libs(+)] )
|
||||
sdl? (
|
||||
!sdl2? (
|
||||
media-libs/libsdl[X]
|
||||
>=media-libs/libsdl-1.2.11[static-libs(+)]
|
||||
)
|
||||
sdl2? (
|
||||
media-libs/libsdl2[X]
|
||||
media-libs/libsdl2[static-libs(+)]
|
||||
)
|
||||
)
|
||||
seccomp? ( >=sys-libs/libseccomp-2.1.0[static-libs(+)] )
|
||||
smartcard? ( >=app-emulation/libcacard-2.5.0[static-libs(+)] )
|
||||
snappy? ( app-arch/snappy[static-libs(+)] )
|
||||
spice? (
|
||||
>=app-emulation/spice-protocol-0.12.3
|
||||
>=app-emulation/spice-0.12.0[static-libs(+)]
|
||||
)
|
||||
ssh? ( >=net-libs/libssh2-1.2.8[static-libs(+)] )
|
||||
usb? ( >=virtual/libusb-1-r2[static-libs(+)] )
|
||||
usbredir? ( >=sys-apps/usbredir-0.6[static-libs(+)] )
|
||||
vde? ( net-misc/vde[static-libs(+)] )
|
||||
virgl? ( media-libs/virglrenderer[static-libs(+)] )
|
||||
virtfs? ( sys-libs/libcap )
|
||||
xen? ( app-emulation/xen-tools:= )
|
||||
xfs? ( sys-fs/xfsprogs[static-libs(+)] )"
|
||||
|
||||
X86_FIRMWARE_DEPEND="
|
||||
>=sys-firmware/ipxe-1.0.0_p20130624
|
||||
pin-upstream-blobs? (
|
||||
~sys-firmware/seabios-1.10.1
|
||||
~sys-firmware/sgabios-0.1_pre8
|
||||
~sys-firmware/vgabios-0.7a
|
||||
)
|
||||
!pin-upstream-blobs? (
|
||||
sys-firmware/seabios
|
||||
sys-firmware/sgabios
|
||||
sys-firmware/vgabios
|
||||
)"
|
||||
|
||||
CDEPEND="
|
||||
!static? (
|
||||
${ALL_DEPEND//\[static-libs(+)]}
|
||||
${SOFTMMU_TOOLS_DEPEND//\[static-libs(+)]}
|
||||
)
|
||||
qemu_softmmu_targets_i386? ( ${X86_FIRMWARE_DEPEND} )
|
||||
qemu_softmmu_targets_x86_64? ( ${X86_FIRMWARE_DEPEND} )"
|
||||
DEPEND="${CDEPEND}
|
||||
dev-lang/perl
|
||||
=dev-lang/python-2*
|
||||
sys-apps/texinfo
|
||||
virtual/pkgconfig
|
||||
kernel_linux? ( >=sys-kernel/linux-headers-2.6.35 )
|
||||
gtk? ( nls? ( sys-devel/gettext ) )
|
||||
static? (
|
||||
${ALL_DEPEND}
|
||||
${SOFTMMU_TOOLS_DEPEND}
|
||||
)
|
||||
static-user? ( ${ALL_DEPEND} )
|
||||
test? (
|
||||
dev-libs/glib[utils]
|
||||
sys-devel/bc
|
||||
)"
|
||||
RDEPEND="${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-qemu )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.5.0-cflags.patch
|
||||
"${FILESDIR}"/${PN}-2.5.0-sysmacros.patch
|
||||
)
|
||||
|
||||
STRIP_MASK="/usr/share/qemu/palcode-clipper"
|
||||
|
||||
QA_PREBUILT="
|
||||
usr/share/qemu/openbios-ppc
|
||||
usr/share/qemu/openbios-sparc64
|
||||
usr/share/qemu/openbios-sparc32
|
||||
usr/share/qemu/palcode-clipper
|
||||
usr/share/qemu/s390-ccw.img
|
||||
usr/share/qemu/u-boot.e500"
|
||||
|
||||
QA_WX_LOAD="usr/bin/qemu-i386
|
||||
usr/bin/qemu-x86_64
|
||||
usr/bin/qemu-alpha
|
||||
usr/bin/qemu-arm
|
||||
usr/bin/qemu-cris
|
||||
usr/bin/qemu-m68k
|
||||
usr/bin/qemu-microblaze
|
||||
usr/bin/qemu-microblazeel
|
||||
usr/bin/qemu-mips
|
||||
usr/bin/qemu-mipsel
|
||||
usr/bin/qemu-or1k
|
||||
usr/bin/qemu-ppc
|
||||
usr/bin/qemu-ppc64
|
||||
usr/bin/qemu-ppc64abi32
|
||||
usr/bin/qemu-sh4
|
||||
usr/bin/qemu-sh4eb
|
||||
usr/bin/qemu-sparc
|
||||
usr/bin/qemu-sparc64
|
||||
usr/bin/qemu-armeb
|
||||
usr/bin/qemu-sparc32plus
|
||||
usr/bin/qemu-s390x
|
||||
usr/bin/qemu-unicore32"
|
||||
|
||||
DOC_CONTENTS="If you don't have kvm compiled into the kernel, make sure you have the
|
||||
kernel module loaded before running kvm. The easiest way to ensure that the
|
||||
kernel module is loaded is to load it on boot.
|
||||
For AMD CPUs the module is called 'kvm-amd'.
|
||||
For Intel CPUs the module is called 'kvm-intel'.
|
||||
Please review /etc/conf.d/modules for how to load these.
|
||||
|
||||
Make sure your user is in the 'kvm' group. Just run
|
||||
$ gpasswd -a <USER> kvm
|
||||
then have <USER> re-login.
|
||||
|
||||
For brand new installs, the default permissions on /dev/kvm might not let
|
||||
you access it. You can tell udev to reset ownership/perms:
|
||||
$ udevadm trigger -c add /dev/kvm
|
||||
|
||||
If you want to register binfmt handlers for qemu user targets:
|
||||
For openrc:
|
||||
# rc-update add qemu-binfmt
|
||||
For systemd:
|
||||
# ln -s /usr/share/qemu/binfmt.d/qemu.conf /etc/binfmt.d/qemu.conf"
|
||||
|
||||
pkg_pretend() {
|
||||
if use kernel_linux && kernel_is lt 2 6 25; then
|
||||
eerror "This version of KVM requres a host kernel of 2.6.25 or higher."
|
||||
elif use kernel_linux; then
|
||||
if ! linux_config_exists; then
|
||||
eerror "Unable to check your kernel for KVM support"
|
||||
else
|
||||
CONFIG_CHECK="~KVM ~TUN ~BRIDGE"
|
||||
ERROR_KVM="You must enable KVM in your kernel to continue"
|
||||
ERROR_KVM_AMD="If you have an AMD CPU, you must enable KVM_AMD in"
|
||||
ERROR_KVM_AMD+=" your kernel configuration."
|
||||
ERROR_KVM_INTEL="If you have an Intel CPU, you must enable"
|
||||
ERROR_KVM_INTEL+=" KVM_INTEL in your kernel configuration."
|
||||
ERROR_TUN="You will need the Universal TUN/TAP driver compiled"
|
||||
ERROR_TUN+=" into your kernel or loaded as a module to use the"
|
||||
ERROR_TUN+=" virtual network device if using -net tap."
|
||||
ERROR_BRIDGE="You will also need support for 802.1d"
|
||||
ERROR_BRIDGE+=" Ethernet Bridging for some network configurations."
|
||||
use vhost-net && CONFIG_CHECK+=" ~VHOST_NET"
|
||||
ERROR_VHOST_NET="You must enable VHOST_NET to have vhost-net"
|
||||
ERROR_VHOST_NET+=" support"
|
||||
|
||||
if use amd64 || use x86 || use amd64-linux || use x86-linux; then
|
||||
CONFIG_CHECK+=" ~KVM_AMD ~KVM_INTEL"
|
||||
fi
|
||||
|
||||
use python && CONFIG_CHECK+=" ~DEBUG_FS"
|
||||
ERROR_DEBUG_FS="debugFS support required for kvm_stat"
|
||||
|
||||
# Now do the actual checks setup above
|
||||
check_extra_config
|
||||
fi
|
||||
fi
|
||||
|
||||
if grep -qs '/usr/bin/qemu-kvm' "${EROOT}"/etc/libvirt/qemu/*.xml; then
|
||||
eerror "The kvm/qemu-kvm wrappers no longer exist, but your libvirt"
|
||||
eerror "instances are still pointing to it. Please update your"
|
||||
eerror "configs in /etc/libvirt/qemu/ to use the -enable-kvm flag"
|
||||
eerror "and the right system binary (e.g. qemu-system-x86_64)."
|
||||
die "update your virt configs to not use qemu-kvm"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup kvm 78
|
||||
}
|
||||
|
||||
# Sanity check to make sure target lists are kept up-to-date.
|
||||
check_targets() {
|
||||
local var=$1 mak=$2
|
||||
local detected sorted
|
||||
|
||||
pushd "${S}"/default-configs >/dev/null || die
|
||||
|
||||
# Force C locale until glibc is updated. #564936
|
||||
detected=$(echo $(printf '%s\n' *-${mak}.mak | sed "s:-${mak}.mak::" | LC_COLLATE=C sort -u))
|
||||
sorted=$(echo $(printf '%s\n' ${!var} | LC_COLLATE=C sort -u))
|
||||
if [[ ${sorted} != "${detected}" ]] ; then
|
||||
eerror "The ebuild needs to be kept in sync."
|
||||
eerror "${var}: ${sorted}"
|
||||
eerror "$(printf '%-*s' ${#var} configure): ${detected}"
|
||||
die "sync ${var} to the list of targets"
|
||||
fi
|
||||
|
||||
popd >/dev/null
|
||||
}
|
||||
|
||||
handle_locales() {
|
||||
# Make sure locale list is kept up-to-date.
|
||||
local detected sorted
|
||||
detected=$(echo $(cd po && printf '%s\n' *.po | grep -v messages.po | sed 's:.po$::' | sort -u))
|
||||
sorted=$(echo $(printf '%s\n' ${PLOCALES} | sort -u))
|
||||
if [[ ${sorted} != "${detected}" ]] ; then
|
||||
eerror "The ebuild needs to be kept in sync."
|
||||
eerror "PLOCALES: ${sorted}"
|
||||
eerror " po/*.po: ${detected}"
|
||||
die "sync PLOCALES"
|
||||
fi
|
||||
|
||||
# Deal with selective install of locales.
|
||||
if use nls ; then
|
||||
# Delete locales the user does not want. #577814
|
||||
rm_loc() { rm po/$1.po || die; }
|
||||
l10n_for_each_disabled_locale_do rm_loc
|
||||
else
|
||||
# Cheap hack to disable gettext .mo generation.
|
||||
rm -f po/*.po
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
check_targets IUSE_SOFTMMU_TARGETS softmmu
|
||||
check_targets IUSE_USER_TARGETS linux-user
|
||||
|
||||
# Alter target makefiles to accept CFLAGS set via flag-o
|
||||
sed -i -r \
|
||||
-e 's/^(C|OP_C|HELPER_C)FLAGS=/\1FLAGS+=/' \
|
||||
Makefile Makefile.target || die
|
||||
|
||||
default
|
||||
|
||||
# Fix ld and objcopy being called directly
|
||||
tc-export AR LD OBJCOPY
|
||||
|
||||
# Verbose builds
|
||||
MAKEOPTS+=" V=1"
|
||||
|
||||
# Run after we've applied all patches.
|
||||
handle_locales
|
||||
}
|
||||
|
||||
##
|
||||
# configures qemu based on the build directory and the build type
|
||||
# we are using.
|
||||
#
|
||||
qemu_src_configure() {
|
||||
debug-print-function ${FUNCNAME} "$@"
|
||||
|
||||
local buildtype=$1
|
||||
local builddir="${S}/${buildtype}-build"
|
||||
|
||||
mkdir "${builddir}"
|
||||
|
||||
local conf_opts=(
|
||||
--prefix=/usr
|
||||
--sysconfdir=/etc
|
||||
--libdir=/usr/$(get_libdir)
|
||||
--docdir=/usr/share/doc/${PF}/html
|
||||
--disable-bsd-user
|
||||
--disable-guest-agent
|
||||
--disable-strip
|
||||
--disable-werror
|
||||
# We support gnutls/nettle for crypto operations. It is possible
|
||||
# to use gcrypt when gnutls/nettle are disabled (but not when they
|
||||
# are enabled), but it's not really worth the hassle. Disable it
|
||||
# all the time to avoid automatically detecting it. #568856
|
||||
--disable-gcrypt
|
||||
--python="${PYTHON}"
|
||||
--cc="$(tc-getCC)"
|
||||
--cxx="$(tc-getCXX)"
|
||||
--host-cc="$(tc-getBUILD_CC)"
|
||||
$(use_enable debug debug-info)
|
||||
$(use_enable debug debug-tcg)
|
||||
--enable-docs
|
||||
$(use_enable tci tcg-interpreter)
|
||||
$(use_enable xattr attr)
|
||||
)
|
||||
|
||||
# Disable options not used by user targets. This simplifies building
|
||||
# static user targets (USE=static-user) considerably.
|
||||
conf_notuser() {
|
||||
if [[ ${buildtype} == "user" ]] ; then
|
||||
echo "--disable-${2:-$1}"
|
||||
else
|
||||
use_enable "$@"
|
||||
fi
|
||||
}
|
||||
conf_opts+=(
|
||||
$(conf_notuser accessibility brlapi)
|
||||
$(conf_notuser aio linux-aio)
|
||||
$(conf_notuser bzip2)
|
||||
$(conf_notuser bluetooth bluez)
|
||||
$(conf_notuser caps cap-ng)
|
||||
$(conf_notuser curl)
|
||||
$(conf_notuser fdt)
|
||||
$(conf_notuser glusterfs)
|
||||
$(conf_notuser gnutls)
|
||||
$(conf_notuser gnutls nettle)
|
||||
$(conf_notuser gtk)
|
||||
$(conf_notuser infiniband rdma)
|
||||
$(conf_notuser iscsi libiscsi)
|
||||
$(conf_notuser jpeg vnc-jpeg)
|
||||
$(conf_notuser kernel_linux kvm)
|
||||
$(conf_notuser lzo)
|
||||
$(conf_notuser ncurses curses)
|
||||
$(conf_notuser nfs libnfs)
|
||||
$(conf_notuser numa)
|
||||
$(conf_notuser opengl)
|
||||
$(conf_notuser png vnc-png)
|
||||
$(conf_notuser rbd)
|
||||
$(conf_notuser sasl vnc-sasl)
|
||||
$(conf_notuser sdl)
|
||||
$(conf_notuser seccomp)
|
||||
$(conf_notuser smartcard)
|
||||
$(conf_notuser snappy)
|
||||
$(conf_notuser spice)
|
||||
$(conf_notuser ssh libssh2)
|
||||
$(conf_notuser usb libusb)
|
||||
$(conf_notuser usbredir usb-redir)
|
||||
$(conf_notuser vde)
|
||||
$(conf_notuser vhost-net)
|
||||
$(conf_notuser virgl virglrenderer)
|
||||
$(conf_notuser virtfs)
|
||||
$(conf_notuser vnc)
|
||||
$(conf_notuser vte)
|
||||
$(conf_notuser xen)
|
||||
$(conf_notuser xen xen-pci-passthrough)
|
||||
$(conf_notuser xfs xfsctl)
|
||||
)
|
||||
|
||||
if [[ ! ${buildtype} == "user" ]] ; then
|
||||
# audio options
|
||||
local audio_opts="oss"
|
||||
use alsa && audio_opts="alsa,${audio_opts}"
|
||||
use sdl && audio_opts="sdl,${audio_opts}"
|
||||
use pulseaudio && audio_opts="pa,${audio_opts}"
|
||||
conf_opts+=(
|
||||
--audio-drv-list="${audio_opts}"
|
||||
)
|
||||
use gtk && conf_opts+=( --with-gtkabi=$(usex gtk2 2.0 3.0) )
|
||||
use sdl && conf_opts+=( --with-sdlabi=$(usex sdl2 2.0 1.2) )
|
||||
fi
|
||||
|
||||
case ${buildtype} in
|
||||
user)
|
||||
conf_opts+=(
|
||||
--enable-linux-user
|
||||
--disable-system
|
||||
--disable-blobs
|
||||
--disable-tools
|
||||
)
|
||||
local static_flag="static-user"
|
||||
;;
|
||||
softmmu)
|
||||
conf_opts+=(
|
||||
--disable-linux-user
|
||||
--enable-system
|
||||
--disable-tools
|
||||
--with-system-pixman
|
||||
)
|
||||
local static_flag="static"
|
||||
;;
|
||||
tools)
|
||||
conf_opts+=(
|
||||
--disable-linux-user
|
||||
--disable-system
|
||||
--disable-blobs
|
||||
--enable-tools
|
||||
)
|
||||
local static_flag="static"
|
||||
;;
|
||||
esac
|
||||
|
||||
local targets="${buildtype}_targets"
|
||||
[[ -n ${targets} ]] && conf_opts+=( --target-list="${!targets}" )
|
||||
|
||||
# Add support for SystemTAP
|
||||
use systemtap && conf_opts+=( --enable-trace-backend=dtrace )
|
||||
|
||||
# We always want to attempt to build with PIE support as it results
|
||||
# in a more secure binary. But it doesn't work with static or if
|
||||
# the current GCC doesn't have PIE support.
|
||||
if use ${static_flag}; then
|
||||
conf_opts+=( --static --disable-pie )
|
||||
else
|
||||
gcc-specs-pie && conf_opts+=( --enable-pie )
|
||||
fi
|
||||
|
||||
echo "../configure ${conf_opts[*]}"
|
||||
cd "${builddir}"
|
||||
../configure "${conf_opts[@]}" || die "configure failed"
|
||||
|
||||
# FreeBSD's kernel does not support QEMU assigning/grabbing
|
||||
# host USB devices yet
|
||||
use kernel_FreeBSD && \
|
||||
sed -i -E -e "s|^(HOST_USB=)bsd|\1stub|" "${S}"/config-host.mak
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local target
|
||||
|
||||
python_setup
|
||||
|
||||
softmmu_targets= softmmu_bins=()
|
||||
user_targets= user_bins=()
|
||||
|
||||
for target in ${IUSE_SOFTMMU_TARGETS} ; do
|
||||
if use "qemu_softmmu_targets_${target}"; then
|
||||
softmmu_targets+=",${target}-softmmu"
|
||||
softmmu_bins+=( "qemu-system-${target}" )
|
||||
fi
|
||||
done
|
||||
|
||||
for target in ${IUSE_USER_TARGETS} ; do
|
||||
if use "qemu_user_targets_${target}"; then
|
||||
user_targets+=",${target}-linux-user"
|
||||
user_bins+=( "qemu-${target}" )
|
||||
fi
|
||||
done
|
||||
|
||||
softmmu_targets=${softmmu_targets#,}
|
||||
user_targets=${user_targets#,}
|
||||
|
||||
[[ -n ${softmmu_targets} ]] && qemu_src_configure "softmmu"
|
||||
[[ -n ${user_targets} ]] && qemu_src_configure "user"
|
||||
qemu_src_configure "tools"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if [[ -n ${user_targets} ]]; then
|
||||
cd "${S}/user-build"
|
||||
default
|
||||
fi
|
||||
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
cd "${S}/softmmu-build"
|
||||
default
|
||||
fi
|
||||
|
||||
cd "${S}/tools-build"
|
||||
default
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
cd "${S}/softmmu-build"
|
||||
pax-mark m */qemu-system-* #515550
|
||||
emake -j1 check
|
||||
emake -j1 check-report.html
|
||||
fi
|
||||
}
|
||||
|
||||
qemu_python_install() {
|
||||
python_domodule "${S}/scripts/qmp/qmp.py"
|
||||
|
||||
python_doscript "${S}/scripts/kvm/vmxcap"
|
||||
python_doscript "${S}/scripts/qmp/qmp-shell"
|
||||
python_doscript "${S}/scripts/qmp/qemu-ga-client"
|
||||
}
|
||||
|
||||
# Generate binfmt support files.
|
||||
# - /etc/init.d/qemu-binfmt script which registers the user handlers (openrc)
|
||||
# - /usr/share/qemu/binfmt.d/qemu.conf (for use with systemd-binfmt)
|
||||
generate_initd() {
|
||||
local out="${T}/qemu-binfmt"
|
||||
local out_systemd="${T}/qemu.conf"
|
||||
local d="${T}/binfmt.d"
|
||||
|
||||
einfo "Generating qemu binfmt scripts and configuration files"
|
||||
|
||||
# Generate the debian fragments first.
|
||||
mkdir -p "${d}"
|
||||
"${S}"/scripts/qemu-binfmt-conf.sh \
|
||||
--debian \
|
||||
--exportdir "${d}" \
|
||||
--qemu-path "${EPREFIX}/usr/bin" \
|
||||
|| die
|
||||
# Then turn the fragments into a shell script we can source.
|
||||
sed -E -i \
|
||||
-e 's:^([^ ]+) (.*)$:\1="\2":' \
|
||||
"${d}"/* || die
|
||||
|
||||
# Generate the init.d script by assembling the fragments from above.
|
||||
local f qcpu package interpreter magic mask
|
||||
cat "${FILESDIR}"/qemu-binfmt.initd.head >"${out}" || die
|
||||
for f in "${d}"/qemu-* ; do
|
||||
source "${f}"
|
||||
|
||||
# Normalize the cpu logic like we do in the init.d for the native cpu.
|
||||
qcpu=${package#qemu-}
|
||||
case ${qcpu} in
|
||||
arm*) qcpu="arm";;
|
||||
mips*) qcpu="mips";;
|
||||
ppc*) qcpu="ppc";;
|
||||
s390*) qcpu="s390";;
|
||||
sh*) qcpu="sh";;
|
||||
sparc*) qcpu="sparc";;
|
||||
esac
|
||||
|
||||
cat <<EOF >>"${out}"
|
||||
if [ "\${cpu}" != "${qcpu}" -a -x "${interpreter}" ] ; then
|
||||
echo ':${package}:M::${magic}:${mask}:${interpreter}:'"\${QEMU_BINFMT_FLAGS}" >/proc/sys/fs/binfmt_misc/register
|
||||
fi
|
||||
EOF
|
||||
|
||||
echo ":${package}:M::${magic}:${mask}:${interpreter}:OC" >>"${out_systemd}"
|
||||
|
||||
done
|
||||
cat "${FILESDIR}"/qemu-binfmt.initd.tail >>"${out}" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if [[ -n ${user_targets} ]]; then
|
||||
cd "${S}/user-build"
|
||||
emake DESTDIR="${ED}" install
|
||||
|
||||
# Install binfmt handler init script for user targets.
|
||||
generate_initd
|
||||
doinitd "${T}/qemu-binfmt"
|
||||
|
||||
# Install binfmt/qemu.conf.
|
||||
insinto "/usr/share/qemu/binfmt.d"
|
||||
doins "${T}/qemu.conf"
|
||||
fi
|
||||
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
cd "${S}/softmmu-build"
|
||||
emake DESTDIR="${ED}" install
|
||||
|
||||
# This might not exist if the test failed. #512010
|
||||
[[ -e check-report.html ]] && dohtml check-report.html
|
||||
|
||||
if use kernel_linux; then
|
||||
udev_newrules "${FILESDIR}"/65-kvm.rules-r1 65-kvm.rules
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
python_foreach_impl qemu_python_install
|
||||
fi
|
||||
fi
|
||||
|
||||
cd "${S}/tools-build"
|
||||
emake DESTDIR="${ED}" install
|
||||
|
||||
# Disable mprotect on the qemu binaries as they use JITs to be fast #459348
|
||||
pushd "${ED}"/usr/bin >/dev/null
|
||||
pax-mark mr "${softmmu_bins[@]}" "${user_bins[@]}" # bug 575594
|
||||
popd >/dev/null
|
||||
|
||||
# Install config file example for qemu-bridge-helper
|
||||
insinto "/etc/qemu"
|
||||
doins "${FILESDIR}/bridge.conf"
|
||||
|
||||
cd "${S}"
|
||||
dodoc Changelog MAINTAINERS docs/specs/pci-ids.txt
|
||||
newdoc pc-bios/README README.pc-bios
|
||||
dodoc docs/qmp-*.txt
|
||||
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
# Remove SeaBIOS since we're using the SeaBIOS packaged one
|
||||
rm "${ED}/usr/share/qemu/bios.bin"
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
||||
dosym ../seabios/bios.bin /usr/share/qemu/bios.bin
|
||||
fi
|
||||
|
||||
# Remove vgabios since we're using the vgabios packaged one
|
||||
rm "${ED}/usr/share/qemu/vgabios.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-cirrus.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-qxl.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-stdvga.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-vmware.bin"
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
||||
dosym ../vgabios/vgabios.bin /usr/share/qemu/vgabios.bin
|
||||
dosym ../vgabios/vgabios-cirrus.bin /usr/share/qemu/vgabios-cirrus.bin
|
||||
dosym ../vgabios/vgabios-qxl.bin /usr/share/qemu/vgabios-qxl.bin
|
||||
dosym ../vgabios/vgabios-stdvga.bin /usr/share/qemu/vgabios-stdvga.bin
|
||||
dosym ../vgabios/vgabios-vmware.bin /usr/share/qemu/vgabios-vmware.bin
|
||||
fi
|
||||
|
||||
# Remove sgabios since we're using the sgabios packaged one
|
||||
rm "${ED}/usr/share/qemu/sgabios.bin"
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
||||
dosym ../sgabios/sgabios.bin /usr/share/qemu/sgabios.bin
|
||||
fi
|
||||
|
||||
# Remove iPXE since we're using the iPXE packaged one
|
||||
rm "${ED}"/usr/share/qemu/pxe-*.rom
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
||||
dosym ../ipxe/8086100e.rom /usr/share/qemu/pxe-e1000.rom
|
||||
dosym ../ipxe/80861209.rom /usr/share/qemu/pxe-eepro100.rom
|
||||
dosym ../ipxe/10500940.rom /usr/share/qemu/pxe-ne2k_pci.rom
|
||||
dosym ../ipxe/10222000.rom /usr/share/qemu/pxe-pcnet.rom
|
||||
dosym ../ipxe/10ec8139.rom /usr/share/qemu/pxe-rtl8139.rom
|
||||
dosym ../ipxe/1af41000.rom /usr/share/qemu/pxe-virtio.rom
|
||||
fi
|
||||
fi
|
||||
|
||||
DISABLE_AUTOFORMATTING=true
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
DISABLE_AUTOFORMATTING=true
|
||||
readme.gentoo_print_elog
|
||||
|
||||
if [[ -n ${softmmu_targets} ]] && use kernel_linux; then
|
||||
udev_reload
|
||||
fi
|
||||
|
||||
fcaps cap_net_admin /usr/libexec/qemu-bridge-helper
|
||||
}
|
||||
|
||||
pkg_info() {
|
||||
echo "Using:"
|
||||
echo " $(best_version app-emulation/spice-protocol)"
|
||||
echo " $(best_version sys-firmware/ipxe)"
|
||||
echo " $(best_version sys-firmware/seabios)"
|
||||
if has_version 'sys-firmware/seabios[binary]'; then
|
||||
echo " USE=binary"
|
||||
else
|
||||
echo " USE=''"
|
||||
fi
|
||||
echo " $(best_version sys-firmware/vgabios)"
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST binwalk-2.0.1.tar.gz 2234469 SHA256 90ee8426d71e91b62dfe4a1446c457bc7835b475b28717859e275a0494403959 SHA512 de223f61a0a212469c21b8e36d02cadc83f1cdb96a0f6114490d15d8dc12c93a86b46ef74379acb96b32b305e75ca66e940d7a18a8dc3b5036ebe8946dcca0f3 WHIRLPOOL c66ea461132417629f59e3f7562330f038263a0d522aca1db1e85f0bad5e9564d8baa27125acfb67404f0ee8045bd8da71faedcf3d2e352303ca8b0295a2767d
|
||||
DIST binwalk-2.1.1.tar.gz 263977 SHA256 1b70a5b03489d29f60fef18008a2164974234874faab48a4f47ec53d461d284a SHA512 373e276a4d6ec845952f1091f85f953d3b0d52d561d9b74a54000ebdef85d13cafc997a4f8f76f25842db8b76fdcd1e602d4d81792a3ea01c9dea6c6ed5c2168 WHIRLPOOL 3cb8faedd02c6a4859467c285efe00e73ea3e52c48ce2b55e0344853e8a5b7884f9d15eb502ab16bba7262e38dfdb0cbcfadc7d3af4015e4357d9d2d248e6113
|
||||
|
@ -1,42 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_7,3_4} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A tool for identifying files embedded inside firmware images"
|
||||
HOMEPAGE="https://github.com/devttys0/binwalk"
|
||||
SRC_URI="https://github.com/devttys0/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="graph"
|
||||
|
||||
RDEPEND="
|
||||
app-crypt/ssdeep
|
||||
sys-apps/file[${PYTHON_USEDEP}]
|
||||
graph? ( dev-python/pyqtgraph[opengl,${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-makefile.patch
|
||||
"${FILESDIR}"/${P}-libs.patch
|
||||
)
|
||||
|
||||
python_configure_all() {
|
||||
econf --disable-bundles
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
emake
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local DOCS=( API.md INSTALL.md )
|
||||
distutils-r1_python_install_all
|
||||
|
||||
dolib.so src/C/*/*.so
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="https://github.com/devttys0/binwalk.git"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://github.com/devttys0/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="A tool for identifying files embedded inside firmware images"
|
||||
HOMEPAGE="https://github.com/devttys0/binwalk"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="graph"
|
||||
|
||||
RDEPEND="
|
||||
$(python_gen_cond_dep 'dev-python/backports-lzma[${PYTHON_USEDEP}]' python2_7)
|
||||
graph? ( dev-python/pyqtgraph[opengl,${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
python_install_all() {
|
||||
local DOCS=( API.md INSTALL.md README.md )
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z ${REPLACING_VERSIONS} ]]; then
|
||||
elog "binwalk has many optional dependencies to automatically"
|
||||
elog "extract/decompress data, see INSTALL.md for more details."
|
||||
fi
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
From 95bce4edcc6e92c9517b80ccb1fb956f591e0738 Mon Sep 17 00:00:00 2001
|
||||
From: Craig Heffner <heffnercj@gmail.com>
|
||||
Date: Tue, 5 Jan 2016 13:28:24 -0500
|
||||
Subject: [PATCH] Added check for backports.lzma when importing lzma module
|
||||
|
||||
---
|
||||
src/binwalk/modules/compression.py | 5 ++++-
|
||||
src/binwalk/plugins/lzmaextract.py | 6 +++++-
|
||||
src/binwalk/plugins/lzmavalid.py | 5 ++++-
|
||||
3 files changed, 13 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/binwalk/modules/compression.py b/src/binwalk/modules/compression.py
|
||||
index 97ca68d..e919f7e 100644
|
||||
--- a/src/binwalk/modules/compression.py
|
||||
+++ b/src/binwalk/modules/compression.py
|
||||
@@ -2,11 +2,14 @@
|
||||
|
||||
import os
|
||||
import zlib
|
||||
-import lzma
|
||||
import struct
|
||||
import binwalk.core.compat
|
||||
import binwalk.core.common
|
||||
from binwalk.core.module import Option, Kwarg, Module
|
||||
+try:
|
||||
+ import lzma
|
||||
+except ImportError:
|
||||
+ from backports import lzma
|
||||
|
||||
class LZMAHeader(object):
|
||||
def __init__(self, **kwargs):
|
||||
diff --git a/src/binwalk/plugins/lzmaextract.py b/src/binwalk/plugins/lzmaextract.py
|
||||
index 137b4cc..93f6240 100755
|
||||
--- a/src/binwalk/plugins/lzmaextract.py
|
||||
+++ b/src/binwalk/plugins/lzmaextract.py
|
||||
@@ -12,7 +12,11 @@ class LZMAExtractPlugin(binwalk.core.plugin.Plugin):
|
||||
# lzma package in Python 2.0 decompress() does not handle multiple
|
||||
# compressed streams, only first stream is extracted.
|
||||
# backports.lzma package could be used to keep consistent behaviour.
|
||||
- import lzma
|
||||
+ try:
|
||||
+ import lzma
|
||||
+ except ImportError:
|
||||
+ from backports import lzma
|
||||
+
|
||||
self.decompressor = lzma.decompress
|
||||
|
||||
# If the extractor is enabled for the module we're currently loaded
|
||||
diff --git a/src/binwalk/plugins/lzmavalid.py b/src/binwalk/plugins/lzmavalid.py
|
||||
index a343656..62e15b9 100644
|
||||
--- a/src/binwalk/plugins/lzmavalid.py
|
||||
+++ b/src/binwalk/plugins/lzmavalid.py
|
||||
@@ -17,7 +17,10 @@ class LZMAPlugin(binwalk.core.plugin.Plugin):
|
||||
|
||||
def init(self):
|
||||
try:
|
||||
- import lzma
|
||||
+ try:
|
||||
+ import lzma
|
||||
+ except ImportError:
|
||||
+ from backports import lzma
|
||||
self.decompressor = lzma.decompress
|
||||
except ImportError as e:
|
||||
self.decompressor = None
|
||||
--
|
||||
2.12.2
|
||||
|
@ -1,14 +0,0 @@
|
||||
Don't install C libs by default since we don't need to install them for
|
||||
every python version since they aren't linked with libpython.
|
||||
|
||||
--- binwalk-2.0.1/setup.py
|
||||
+++ binwalk-2.0.1/setup.py
|
||||
@@ -134,7 +134,7 @@
|
||||
|
||||
# The data files to install along with the module
|
||||
data_dirs = ["magic", "config", "plugins", "modules", "core"]
|
||||
-install_data_files = [os.path.join("libs", "*.so")]
|
||||
+install_data_files = []
|
||||
|
||||
for data_dir in data_dirs:
|
||||
install_data_files.append("%s%s*" % (data_dir, os.path.sep))
|
@ -1,61 +0,0 @@
|
||||
Don't build python via the makefile and fix parallel make jobs.
|
||||
|
||||
--- binwalk-2.0.1/Makefile.in
|
||||
+++ binwalk-2.0.1/Makefile.in
|
||||
@@ -33,21 +33,20 @@
|
||||
$(PYTHON) ./setup.py install $(PREFIX)
|
||||
|
||||
build:
|
||||
- if [ "$(BUILD_C_LIBS)" -eq "1" ]; then make -C $(SRC_C_DIR); fi
|
||||
- if [ "$(BUILD_BUNDLES)" -eq "1" ]; then make -C $(SRC_BUNDLES_DIR); fi
|
||||
- $(PYTHON) ./setup.py build
|
||||
+ if [ "$(BUILD_C_LIBS)" -eq "1" ]; then $(MAKE) -C $(SRC_C_DIR); fi
|
||||
+ if [ "$(BUILD_BUNDLES)" -eq "1" ]; then $(MAKE) -C $(SRC_BUNDLES_DIR); fi
|
||||
|
||||
deps:
|
||||
./deps.sh
|
||||
|
||||
clean:
|
||||
- if [ "$(BUILD_C_LIBS)" -eq "1" ]; then make -C $(SRC_C_DIR) clean; fi
|
||||
- if [ "$(BUILD_BUNDLES)" -eq "1" ]; then make -C $(SRC_BUNDLES_DIR) clean; fi
|
||||
+ if [ "$(BUILD_C_LIBS)" -eq "1" ]; then $(MAKE) -C $(SRC_C_DIR) clean; fi
|
||||
+ if [ "$(BUILD_BUNDLES)" -eq "1" ]; then $(MAKE) -C $(SRC_BUNDLES_DIR) clean; fi
|
||||
$(PYTHON) ./setup.py clean
|
||||
|
||||
distclean: clean
|
||||
- if [ "$(BUILD_C_LIBS)" -eq "1" ]; then make -C $(SRC_C_DIR) distclean; fi
|
||||
- if [ "$(BUILD_BUNDLES)" -eq "1" ]; then make -C $(SRC_BUNDLES_DIR) distclean; fi
|
||||
+ if [ "$(BUILD_C_LIBS)" -eq "1" ]; then $(MAKE) -C $(SRC_C_DIR) distclean; fi
|
||||
+ if [ "$(BUILD_BUNDLES)" -eq "1" ]; then $(MAKE) -C $(SRC_BUNDLES_DIR) distclean; fi
|
||||
rm -rf Makefile config.* *.cache
|
||||
|
||||
uninstall:
|
||||
--- binwalk-2.0.1/src/C/Makefile
|
||||
+++ binwalk-2.0.1/src/C/Makefile
|
||||
@@ -3,9 +3,9 @@
|
||||
.PHONY: all clean_libs clean distclean
|
||||
|
||||
all:
|
||||
- make -C miniz
|
||||
+ $(MAKE) -C miniz
|
||||
cp miniz/*.$(SOEXT) $(LIB_DIR)
|
||||
- make -C compress
|
||||
+ $(MAKE) -C compress
|
||||
cp compress/*.$(SOEXT) $(LIB_DIR)
|
||||
|
||||
clean_libs:
|
||||
@@ -13,10 +13,10 @@
|
||||
rm -f $(LIB_DIR)/libcompress42.$(SOEXT)
|
||||
|
||||
clean: clean_libs
|
||||
- make -C miniz clean
|
||||
- make -C compress clean
|
||||
+ $(MAKE) -C miniz clean
|
||||
+ $(MAKE) -C compress clean
|
||||
|
||||
distclean: clean_libs
|
||||
- make -C miniz distclean
|
||||
- make -C compress distclean
|
||||
+ $(MAKE) -C miniz distclean
|
||||
+ $(MAKE) -C compress distclean
|
||||
|
@ -1 +1,2 @@
|
||||
DIST ranger-1.8.1.tar.gz 227415 SHA256 1433f9f9958b104c97d4b23ab77a2ac37d3f98b826437b941052a55c01c721b4 SHA512 40450d4e80017ac62d60ea6de231c10496fec1680f15a14006d3b87aae7f34cb2dbb6b810ced89527a4cba2975dcd6c037217e86fa806a0ba3cd39dc7dee8f04 WHIRLPOOL 29c6613befff82e883b9dcdf04f789338992d79a5cd6dcee46b19c21e80bd61b6de89567794d60c42696a4e7ed599e3606dfa9460558432a10169a2201a4e937
|
||||
DIST ranger-1.9.0_beta5.tar.gz 235886 SHA256 d7319511f9014fc2949d563e895a7314d1da0cc2ad2efa370c28a90710345d8f SHA512 728efd93630e9c8bba67f7d567200a0cb21d19d8d1b5dc4ec63a454b1169de9427c1b0477754eea1ce5b0d0ed8e79d964b4804587152e30205c1e5a73f938e0a WHIRLPOOL c753631a6ea689ebb64ee20e64017b026ad975855d843d0e6d80ddec64837edadc5ee3a80feeab4fee0cd32c22da7e5beedf0b125b3dd8d65c79d1ccc7f28abb
|
||||
|
@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
|
||||
PYTHON_REQ_USE="ncurses"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PV=${PV/_beta/b}
|
||||
MY_P=${PN}-${MY_PV}
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="https://github.com/ranger/ranger.git"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="A vim-inspired file manager for the console"
|
||||
HOMEPAGE="http://ranger.nongnu.org/"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="virtual/pager"
|
||||
DEPEND="test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_prepare() {
|
||||
# use versioned doc path
|
||||
sed -i "s|share/doc/ranger|share/doc/${PF}|" setup.py doc/ranger.1 || die
|
||||
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
py.test -v || die "Tests failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z ${REPLACING_VERSIONS} ]]; then
|
||||
elog "Ranger has many optional dependencies to support enhanced file previews."
|
||||
elog "See the README or homepage for more details."
|
||||
fi
|
||||
}
|
@ -1,54 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils cmake-utils bash-completion-r1
|
||||
|
||||
DESCRIPTION="Taskwarrior is a command-line todo list manager"
|
||||
HOMEPAGE="http://taskwarrior.org/"
|
||||
SRC_URI="http://taskwarrior.org/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm x86 ~x64-macos"
|
||||
IUSE="gnutls vim-syntax zsh-completion"
|
||||
|
||||
DEPEND="sys-libs/readline:0
|
||||
gnutls? ( net-libs/gnutls )
|
||||
elibc_glibc? ( sys-apps/util-linux )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
# don't automatically install scripts
|
||||
sed -i '/scripts/d' CMakeLists.txt || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
mycmakeargs=(
|
||||
$(cmake-utils_use_use gnutls GNUTLS)
|
||||
-DTASK_DOCDIR=share/doc/${PF}
|
||||
-DTASK_RCDIR=share/${PN}/rc
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
newbashcomp scripts/bash/task.sh task
|
||||
|
||||
if use vim-syntax ; then
|
||||
rm scripts/vim/README
|
||||
insinto /usr/share/vim/vimfiles
|
||||
doins -r scripts/vim/*
|
||||
fi
|
||||
|
||||
if use zsh-completion ; then
|
||||
insinto /usr/share/zsh/site-functions
|
||||
doins scripts/zsh/*
|
||||
fi
|
||||
|
||||
exeinto /usr/share/${PN}/scripts
|
||||
doexe scripts/add-ons/*
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST gnatmem-gpl-2016-src.tar.gz 80104 SHA256 bd39c7b18e4f52fdd029b999f7e1af52d01c975063c28ae1ef6875e4fc5e224f SHA512 bc711af9eda55e89a22fee9dbe506a60fbdd718a9f47141a8d13ad4b97c4520c3988e3a55b6c85bb53098e542f655de9572aeefc99d88c41a2645d9f01b2828b WHIRLPOOL 8aee794c18efcbdbb50a4d58b9f247de30dea8d5b0a41034b1e20ad7786eefab5dfd14bf99994340a993d67989eab939ba78097d46933d841686d1bbc68fce0b
|
@ -0,0 +1,85 @@
|
||||
--- 1/configure.in.old 2016-12-08 20:57:53.942004080 +0100
|
||||
+++ 1/configure.in 2016-12-08 21:00:10.393677257 +0100
|
||||
@@ -6,19 +6,14 @@
|
||||
if test ${GNATBIND} = "no"; then
|
||||
AC_MSG_ERROR(Ada compiler needed,1)
|
||||
fi
|
||||
+AC_CONFIG_HEADERS(config.h:config.in)
|
||||
+AC_DEFINE_UNQUOTED(TARGET, "${target}", [Configured target name.])
|
||||
AC_ARG_WITH(binutils-buildtree,
|
||||
[AC_HELP_STRING(
|
||||
[--with-binutils-buildtree=<dir>],
|
||||
[Specifify location of binutils build tree])],
|
||||
BINUTILS_OBJDIR=$withval,
|
||||
BINUTILS_OBJDIR=no)
|
||||
-AC_MSG_CHECKING([for binutils build tree validity])
|
||||
-if test -f "$BINUTILS_OBJDIR/bfd/libbfd.a"; then
|
||||
- AC_MSG_RESULT(yes)
|
||||
-else
|
||||
- AC_MSG_RESULT(no)
|
||||
- AC_MSG_FAILURE([need valid binutils build tree directory (got $BINUTILS_OBJDIR)])
|
||||
-fi
|
||||
|
||||
AC_ARG_WITH(binutils-sources,
|
||||
[AC_HELP_STRING(
|
||||
@@ -26,21 +21,6 @@
|
||||
[Specifify location of binutils sources])],
|
||||
BINUTILS_SRCDIR=$withval,
|
||||
BINUTILS_SRCDIR=auto)
|
||||
-if test "$BINUTILS_SRCDIR" = "auto"; then
|
||||
- BINUTILS_SRCDIR=`cat "$BINUTILS_OBJDIR/Makefile" | sed -n -e "/^ *srcdir *=/ s/^ *srcdir *= *// p"`
|
||||
- case "$BINUTILS_SRC_DIR" in
|
||||
- /*) ;;
|
||||
- *) # assume we have relative path
|
||||
- BINUTILS_SRCDIR="$BINUTILS_OBJDIR/$BINUTILS_SRCDIR";;
|
||||
- esac
|
||||
-fi
|
||||
-AC_MSG_CHECKING([for binutils source dir validity])
|
||||
-if test -f "$BINUTILS_SRCDIR/bfd/Makefile.in"; then
|
||||
- AC_MSG_RESULT(yes)
|
||||
-else
|
||||
- AC_MSG_RESULT(no)
|
||||
- AC_MSG_FAILURE([need valid binutils sources directory])
|
||||
-fi
|
||||
|
||||
AC_SUBST(BINUTILS_OBJDIR)
|
||||
AC_SUBST(BINUTILS_SRCDIR)
|
||||
--- gnatmem-gpl-2016-src/gnatmem.gpr.in.old 2017-02-02 22:15:30.247906007 +0100
|
||||
+++ gnatmem-gpl-2016-src/gnatmem.gpr.in 2017-02-02 22:17:22.604974363 +0100
|
||||
@@ -10,8 +10,10 @@
|
||||
for Languages use ("ada", "c");
|
||||
|
||||
package Compiler is
|
||||
+ for Driver ("C") use External ("CC", "gcc");
|
||||
for Default_Switches ("ada") use ("-O2", "-W", "-Wall", "-gnatpg");
|
||||
for Default_Switches ("c") use ("-O2",
|
||||
+ "-I..",
|
||||
"-I" & BINUTILS_OBJDIR & "/binutils",
|
||||
"-I" & BINUTILS_OBJDIR & "/bfd",
|
||||
"-I" & BINUTILS_SRCDIR & "/include");
|
||||
@@ -19,8 +21,8 @@
|
||||
|
||||
package Linker is
|
||||
for Default_Switches ("ada") use
|
||||
- (BINUTILS_OBJDIR & "/bfd/libbfd.a",
|
||||
- BINUTILS_OBJDIR & "/libiberty/libiberty.a",
|
||||
+ ("-lbfd",
|
||||
+ "-liberty",
|
||||
"@LIBDL@",
|
||||
"@LIBZ@");
|
||||
end Linker;
|
||||
--- gnatmem-gpl-2015-src/src/libaddr2line.c.old 2017-01-04 21:03:36.185233702 +0100
|
||||
+++ gnatmem-gpl-2015-src/src/libaddr2line.c 2017-01-04 21:04:17.680455390 +0100
|
||||
@@ -23,9 +23,9 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
-#include "bfd.h"
|
||||
-#include "libiberty.h"
|
||||
-#include "demangle.h"
|
||||
+#include <bfd.h>
|
||||
+#include <libiberty/libiberty.h>
|
||||
+#include <libiberty/demangle.h>
|
||||
|
||||
static asymbol **cur_syms; /* Symbol table. */
|
||||
static bfd *cur_bfd;
|
@ -0,0 +1,50 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit multiprocessing autotools
|
||||
|
||||
MYP=${PN}-gpl-${PV}-src
|
||||
|
||||
DESCRIPTION="Monitors dynamic allocation and deallocation activity in a program"
|
||||
HOMEPAGE="http://libre.adacore.com/"
|
||||
SRC_URI="http://mirrors.cdn.adacore.com/art/573995c8c7a447658e0affa2 -> ${MYP}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="dev-ada/gprbuild"
|
||||
|
||||
S="${WORKDIR}"/${MYP}
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
|
||||
|
||||
pkg_setup() {
|
||||
GCC=${ADA:-$(tc-getCC)}
|
||||
export GNATBIND="${GCC/gcc/gnatbind}"
|
||||
if [[ -z "$(type ${GNATBIND} 2>/dev/null)" ]] ; then
|
||||
eerror "You need a gcc compiler that provides the Ada Compiler:"
|
||||
eerror "1) use gcc-config to select the right compiler or"
|
||||
eerror "2) set ADA=gcc-4.9.4 in make.conf"
|
||||
die "ada compiler not available"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
mv configure.in configure.ac
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
gprbuild -Pgnatmem.gpr -j$(makeopts_jobs) \
|
||||
-cargs:C ${CFLAGS} -cargs:Ada ${ADAFLAGS}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin obj/gnatmem
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>tupone@gentoo.org</email>
|
||||
<name>Tupone Alfredo</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
The gnatmem utility monitors dynamic allocation and deallocation activity in a program, and displays information about incorrect deallocations and possible sources of memory leaks. It provides three type of information:
|
||||
|
||||
General information concerning memory management, such as the total number of allocations and deallocations, the amount of allocated memory and the high water mark, i.e. the largest amount of allocated memory in the course of program execution.
|
||||
Backtraces for all incorrect deallocations, that is to say deallocations which do not correspond to a valid allocation.
|
||||
Information on each allocation that is potentially the origin of a memory leak.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
@ -1,3 +1,4 @@
|
||||
DIST etcd-2.3.7.tar.gz 2209051 SHA256 aa3a6340bb08d072d1d2ecfbe3c1e02235251760d031a2b699ee1710510ee883 SHA512 a551287ebf6e881e2c6a56a7e75c273d125ed2b4b3ea58533e4481bc12ca21167de02820aaa1f4775b81385e96e65f882e97121920be02d72abe82f43652daf9 WHIRLPOOL e01bf51978b9287e9e662f8689630d80eb79aace43fe0c81f1898718ccec1a0a93e53543c3df001dfc12dac2a3844f5a4fe2de28d97654b671648ad93681185a
|
||||
DIST etcd-2.3.8.tar.gz 2206562 SHA256 6a138b2005e42b0961a12886cc641b792e991cd631fdb502ec5c614b65231cd1 SHA512 4268de32797cab23e9e47784d31d5abd6982068c53d3cc9735a06719740dba45b73f4e067cbc7aa8aef5ca7c56d8be067f1076685ac82f64012b760d8b7f2bfc WHIRLPOOL 4db1b4fe6d0ff917adfc53bd959bb7ac2937da794483e4a4a95e5fb557cf4fbfd43d5bb3c5e21e499432f80f6606407accaa69bc03a3982621276deb529c07da
|
||||
DIST etcd-3.0.17.tar.gz 2208002 SHA256 c56c68a8cd5d120a51432f3a79a2c19082a6824493e4bb08c4e440aefbf73d8f SHA512 6eb6a61210f225b6fe7e911ad135e5014f80f71a04adccc3f382ca7b5e1b1b692b12dde26335ecac176cb8b8f4586732cb6e650b32730ec68ef7fbcbba7ab160 WHIRLPOOL 102dc47d120a1f4173b67168e5e51f64025da280ca41161131a6bd2ef9521605ef19e03166848f6c32862a3adbfc0a026f547dc7764018e85f6ac28f89c8d256
|
||||
DIST etcd-3.1.0.tar.gz 2516872 SHA256 62ecb70a470b45436814e2882d36742a4035e1d62e6634450e71ca0ed951919b SHA512 b377ac492dd842a0f24d2816cd37bb40e692289efbbab63ab54e1b31e7999f26c6c0f2887249f5fd775266919a614699e561ecfc82c8a687d2cf1b25fdb7478f WHIRLPOOL b47a81ea597617a4eab6ee29d51b964f942b8dc324063e6633e2818320ce3b19e1907975a28ca3186cc112553b4e8580c210ad4854945484dcc26f359d0c60e6
|
||||
|
@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit user systemd
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
DESCRIPTION="Highly-available key value store for shared configuration and service discovery"
|
||||
HOMEPAGE="https://github.com/coreos/etcd/"
|
||||
SRC_URI="https://github.com/coreos/etcd/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="doc"
|
||||
DEPEND=">=dev-lang/go-1.4:="
|
||||
RDEPEND="!dev-db/etcdctl"
|
||||
|
||||
#pkg_setup() {
|
||||
# enewgroup ${PN}
|
||||
# enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
|
||||
#}
|
||||
|
||||
src_prepare() {
|
||||
sed -e 's|GIT_SHA=.*|GIT_SHA=v${PV}|'\
|
||||
-e 's|-ldflags "-s.*"|-v -x|' \
|
||||
-e 's|-ldflags "-s|-v -x "|' \
|
||||
-i build || die
|
||||
sed -e 's|go test|\0 -v|'\
|
||||
-i test || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
./build || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /etc/${PN}
|
||||
doins "${FILESDIR}/${PN}.conf"
|
||||
dobin bin/*
|
||||
dodoc README.md
|
||||
use doc && dodoc -r Documentation
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d.conf" ${PN}.conf
|
||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
||||
newconfd "${FILESDIR}"/${PN}.confd ${PN}
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/${PN}.logrotated" "${PN}"
|
||||
dodir /var/lib/${PN}
|
||||
fowners ${PN}:${PN} /var/lib/${PN}
|
||||
fperms 755 /var/lib/${PN}
|
||||
dodir /var/log/${PN}
|
||||
fowners ${PN}:${PN} /var/log/${PN}
|
||||
fperms 755 /var/log/${PN}
|
||||
}
|
||||
|
||||
src_test() {
|
||||
./test || die
|
||||
}
|
@ -1,13 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/coreos/etcd/issues</bugs-to>
|
||||
<changelog>https://raw.githubusercontent.com/coreos/etcd/master/CHANGELOG</changelog>
|
||||
<doc>https://github.com/coreos/etcd/blob/master/README.md/</doc>
|
||||
<remote-id type="github">coreos/etcd</remote-id>
|
||||
</upstream>
|
||||
<maintainer type="person">
|
||||
<email>zmedico@gentoo.org</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/coreos/etcd/issues</bugs-to>
|
||||
<changelog>https://raw.githubusercontent.com/coreos/etcd/master/CHANGELOG</changelog>
|
||||
<doc>https://github.com/coreos/etcd/blob/master/README.md/</doc>
|
||||
<remote-id type="github">coreos/etcd</remote-id>
|
||||
</upstream>
|
||||
<maintainer type="person">
|
||||
<email>zmedico@gentoo.org</email>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<name>Manuel Rüger</name>
|
||||
<email>mrueg@gentoo.org</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
@ -1,3 +1,4 @@
|
||||
DIST sqldeveloper-4.0.2.15.21-no-jre.zip 235443867 SHA256 b23aca1d256002cdc19a0b3136ae13ebf9064feacc45a131be229a88fe9faed7 SHA512 e67b0f3d127adbc6cb77b3eb822834a6c41be7039c54eceb85e8c882704684a02dd036f078408192ad2cbcb963dfb0ba583e99a9f7b7db36b1e9a1f96e555880 WHIRLPOOL 31b32713f116193036dc5dd9b63c9b6c321763e2273227c51d70bd3db93575e4f12150a045f8615fb6086ee1d464af4d112be5824f9bf22b4f5917ae5a15b724
|
||||
DIST sqldeveloper-4.1.3.20.78-no-jre.zip 331401110 SHA256 10caec7183f4075033598faf272d2be82207261442abf3bc3bd899246968b8de SHA512 828a751bc9df7bdc59f9b89b317189826e328671d081df24d39a102aeefaf5a0a56e01e066802da1ee92617bf1fdb77ad598b448043dd7f4239f2103efb4427b WHIRLPOOL 8eee4fbc34617f721893ab880be9c7c27ac8d5378491ba97bcd0084660ad500e2c0e4812ea5b25f8cd907e2c689168af08bbccfdc0b51f04cc0d74bf0760e009
|
||||
DIST sqldeveloper-4.1.5.21.78-no-jre.zip 349775471 SHA256 1b6a5ea4f12306eaa41e4ad961d2cae4e4ccbdcb4b89d85f3d8f88a883f06967 SHA512 06535a2d60ce140fa08cf937e9bb38d0a8ecefcb1b68675b547d4682c2e514ba62121e4363cf655c10de149e39a5e7d1d4a61c8cf79d7388b2998bf9b0098601 WHIRLPOOL ceb60934100a9184c734d2d07bdde752a384f807934186f54618479de6af19a114a879edee52214bce71509e4b2a22dca8fa988f4f91202d29bceaaf8cbe67e9
|
||||
DIST sqldeveloper-4.2.0.17.089.1709-no-jre.zip 348604841 SHA256 866042c85f66ef022c256d726b4e2e0e8014be7b41346cfd84a56fe677d78b6a SHA512 4d1e270376ae125a60146228e35fcb2cb615d593c0e9f2ca98e4deef4d8fd1ddff59cf15064d63e33e77125f49e8da9fe317ed1fd96a9b00a699bf6c5e739874 WHIRLPOOL 695130acfed58678d92521cc86a6b6aaa51d400c6bec61b6e95eecb156cc4925483a2f687b2b942fb88dfbc7440a02d0444a9a4d242258ebad605a5fa589afbf
|
||||
|
@ -0,0 +1,97 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils java-pkg-2
|
||||
|
||||
DESCRIPTION="Oracle SQL Developer is a graphical tool for database development"
|
||||
HOMEPAGE="http://www.oracle.com/technetwork/developer-tools/sql-developer/overview/index.html"
|
||||
SRC_URI="${P}-no-jre.zip"
|
||||
|
||||
RESTRICT="fetch"
|
||||
|
||||
LICENSE="OTN"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="mssql mysql sybase"
|
||||
|
||||
DEPEND="mssql? ( dev-java/jtds:1.3 )
|
||||
mysql? ( dev-java/jdbc-mysql:0 )
|
||||
sybase? ( dev-java/jtds:1.3 )"
|
||||
RDEPEND=">=virtual/jdk-1.8
|
||||
${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
QA_PREBUILT="
|
||||
opt/${PN}/netbeans/platform/modules/lib/amd64/linux/*.so
|
||||
opt/${PN}/netbeans/platform/modules/lib/i386/linux/*.so
|
||||
"
|
||||
|
||||
pkg_nofetch() {
|
||||
eerror "Please go to"
|
||||
eerror " ${HOMEPAGE}"
|
||||
eerror "and download"
|
||||
eerror " Oracle SQL Developer for other platforms"
|
||||
eerror " ${SRC_URI}"
|
||||
eerror "and move it to ${DISTDIR}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# we don't need these, do we?
|
||||
find ./ \( -iname "*.exe" -or -iname "*.dll" -or -iname "*.bat" \) -exec rm {} +
|
||||
|
||||
# they both use jtds, enabling one of them also enables the other one
|
||||
if use mssql && ! use sybase; then
|
||||
einfo "You requested MSSQL support, this also enables Sybase support."
|
||||
fi
|
||||
if use sybase && ! use mssql; then
|
||||
einfo "You requested Sybase support, this also enables MSSQL support."
|
||||
fi
|
||||
|
||||
if use mssql || use sybase; then
|
||||
echo "AddJavaLibFile $(java-pkg_getjars jtds-1.3)" >> sqldeveloper/bin/sqldeveloper.conf || die
|
||||
fi
|
||||
|
||||
if use mysql; then
|
||||
echo "AddJavaLibFile $(java-pkg_getjars jdbc-mysql)" >> sqldeveloper/bin/sqldeveloper.conf || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir /opt/${PN}
|
||||
# NOTE For future version to get that line (what to copy) go to the unpacked sources dir
|
||||
# using `bash` and press Meta+_ (i.e. Meta+Shift+-) -- that is a builtin bash feature ;-)
|
||||
cp -r {configuration,d{ataminer,ropins,vt},e{quinox,xternal},ide,j{avavm,d{bc,ev},lib,views},modules,netbeans,ords,rdbms,s{leepycat,ql{developer,j},vnkit}} \
|
||||
"${D}"/opt/${PN}/ || die "Install failed"
|
||||
|
||||
newbin "${FILESDIR}"/${PN}-r1 ${PN}
|
||||
|
||||
newicon icon.png ${PN}-32x32.png
|
||||
make_desktop_entry ${PN} "Oracle SQL Developer" ${PN}-32x32
|
||||
|
||||
# This is normally called automatically by java-pkg_dojar, which
|
||||
# hasn't been used above. We need to create package.env to help the
|
||||
# launcher select the correct VM.
|
||||
java-pkg_do_write_
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# this temporary fixes FileNotFoundException with datamodeler
|
||||
# this is more like a workaround than permanent fix
|
||||
mkdir -p /opt/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler/log || die
|
||||
touch /opt/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler/log/datamodeler.log || die
|
||||
chmod -R 1777 /opt/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler/log/datamodeler.log || die
|
||||
|
||||
# this fixes another datamodeler FileNotFoundException
|
||||
# also more like a workaround than permanent fix
|
||||
chmod 1777 /opt/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler/types/dr_custom_scripts.xml || die
|
||||
|
||||
echo
|
||||
einfo "If you want to use the TNS connection type you need to set up the"
|
||||
einfo "TNS_ADMIN environment variable to point to the directory your"
|
||||
einfo "tnsnames.ora resides in."
|
||||
echo
|
||||
}
|
@ -0,0 +1,355 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils java-vm-2 prefix versionator
|
||||
|
||||
# This URIs need to be updated when bumping!
|
||||
JDK_URI="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html"
|
||||
JCE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html"
|
||||
|
||||
# This is a list of archs supported by this update.
|
||||
# Currently arm comes and goes.
|
||||
AT_AVAILABLE=( amd64 arm arm64 x86 x64-solaris sparc64-solaris x64-macos )
|
||||
|
||||
# Sometimes some or all of the demos are missing, this is to not have to rewrite half
|
||||
# the ebuild when it happens.
|
||||
DEMOS_AVAILABLE=( amd64 arm arm64 x86 x64-solaris sparc64-solaris x64-macos )
|
||||
|
||||
if [[ "$(get_version_component_range 4)" == 0 ]] ; then
|
||||
S_PV="$(get_version_component_range 1-3)"
|
||||
else
|
||||
MY_PV_EXT="u$(get_version_component_range 4)"
|
||||
S_PV="$(get_version_component_range 1-4)"
|
||||
fi
|
||||
|
||||
MY_PV="$(get_version_component_range 2)${MY_PV_EXT}"
|
||||
|
||||
AT_amd64="jdk-${MY_PV}-linux-x64.tar.gz"
|
||||
AT_arm="jdk-${MY_PV}-linux-arm32-vfp-hflt.tar.gz"
|
||||
AT_arm64="jdk-${MY_PV}-linux-arm64-vfp-hflt.tar.gz"
|
||||
AT_x86="jdk-${MY_PV}-linux-i586.tar.gz"
|
||||
AT_x64_solaris="jdk-${MY_PV}-solaris-x64.tar.gz"
|
||||
AT_sparc64_solaris="${AT_sparc_solaris} jdk-${MY_PV}-solaris-sparcv9.tar.gz"
|
||||
AT_x64_macos="jdk-${MY_PV}-macosx-x64.dmg"
|
||||
|
||||
DEMOS_amd64="jdk-${MY_PV}-linux-x64-demos.tar.gz"
|
||||
DEMOS_arm="jdk-${MY_PV}-linux-arm32-vfp-hflt-demos.tar.gz"
|
||||
DEMOS_arm64="jdk-${MY_PV}-linux-arm64-vfp-hflt-demos.tar.gz"
|
||||
DEMOS_x86="jdk-${MY_PV}-linux-i586-demos.tar.gz"
|
||||
DEMOS_x64_solaris="jdk-${MY_PV}-solaris-x64-demos.tar.gz"
|
||||
DEMOS_sparc64_solaris="jdk-${MY_PV}-solaris-sparcv9-demos.tar.gz"
|
||||
DEMOS_x64_macos="jdk-${MY_PV}-macosx-x86_64-demos.zip"
|
||||
|
||||
JCE_DIR="UnlimitedJCEPolicyJDK8"
|
||||
JCE_FILE="jce_policy-8.zip"
|
||||
|
||||
DESCRIPTION="Oracle's Java SE Development Kit"
|
||||
HOMEPAGE="http://www.oracle.com/technetwork/java/javase/"
|
||||
for d in "${AT_AVAILABLE[@]}"; do
|
||||
SRC_URI+=" ${d}? ( $(eval "echo \${$(echo AT_${d/-/_})}")"
|
||||
if has ${d} "${DEMOS_AVAILABLE[@]}"; then
|
||||
SRC_URI+=" examples? ( $(eval "echo \${$(echo DEMOS_${d/-/_})}") )"
|
||||
fi
|
||||
SRC_URI+=" )"
|
||||
done
|
||||
unset d
|
||||
SRC_URI+=" jce? ( ${JCE_FILE} )"
|
||||
|
||||
LICENSE="Oracle-BCLA-JavaSE examples? ( BSD )"
|
||||
SLOT="1.8"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~sparc64-solaris ~x64-solaris"
|
||||
IUSE="alsa commercial cups derby doc examples +fontconfig headless-awt javafx jce nsplugin selinux source visualvm"
|
||||
REQUIRED_USE="javafx? ( alsa fontconfig )"
|
||||
|
||||
RESTRICT="fetch preserve-libs strip"
|
||||
QA_PREBUILT="*"
|
||||
|
||||
# NOTES:
|
||||
#
|
||||
# * cups is dlopened.
|
||||
#
|
||||
# * libpng is also dlopened but only by libsplashscreen, which isn't
|
||||
# important, so we can exclude that.
|
||||
#
|
||||
# * We still need to work out the exact AWT and JavaFX dependencies
|
||||
# under MacOS. It doesn't appear to use many, if any, of the
|
||||
# dependencies below.
|
||||
#
|
||||
RDEPEND="!x64-macos? (
|
||||
!headless-awt? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXi
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXtst
|
||||
)
|
||||
javafx? (
|
||||
dev-libs/glib:2
|
||||
dev-libs/libxml2:2
|
||||
dev-libs/libxslt
|
||||
media-libs/freetype:2
|
||||
x11-libs/cairo
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/libX11
|
||||
x11-libs/libXtst
|
||||
x11-libs/libXxf86vm
|
||||
x11-libs/pango
|
||||
virtual/opengl
|
||||
)
|
||||
)
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
cups? ( net-print/cups )
|
||||
doc? ( dev-java/java-sdk-docs:${SLOT} )
|
||||
fontconfig? ( media-libs/fontconfig:1.0 )
|
||||
!prefix? ( sys-libs/glibc:* )
|
||||
selinux? ( sec-policy/selinux-java )"
|
||||
|
||||
DEPEND="app-arch/zip
|
||||
jce? ( app-arch/unzip )
|
||||
examples? ( x64-macos? ( app-arch/unzip ) )"
|
||||
|
||||
S="${WORKDIR}/jdk"
|
||||
|
||||
check_tarballs_available() {
|
||||
local uri=$1; shift
|
||||
local dl= unavailable=
|
||||
for dl in "${@}" ; do
|
||||
[[ ! -f "${DISTDIR}/${dl}" ]] && unavailable+=" ${dl}"
|
||||
done
|
||||
|
||||
if [[ -n "${unavailable}" ]] ; then
|
||||
if [[ -z ${_check_tarballs_available_once} ]] ; then
|
||||
einfo
|
||||
einfo "Oracle requires you to download the needed files manually after"
|
||||
einfo "accepting their license through a javascript capable web browser."
|
||||
einfo
|
||||
_check_tarballs_available_once=1
|
||||
fi
|
||||
einfo "Download the following files:"
|
||||
for dl in ${unavailable}; do
|
||||
einfo " ${dl}"
|
||||
done
|
||||
einfo "at '${uri}'"
|
||||
einfo "and move them to '${DISTDIR}'"
|
||||
einfo
|
||||
einfo "If the above mentioned urls do not point to the correct version anymore,"
|
||||
einfo "please download the files from Oracle's java download archive:"
|
||||
einfo
|
||||
einfo " http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html#jdk-${MY_PV}-oth-JPR"
|
||||
einfo
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_nofetch() {
|
||||
local distfiles=( $(eval "echo \${$(echo AT_${ARCH/-/_})}") )
|
||||
if use examples && has ${ARCH} "${DEMOS_AVAILABLE[@]}"; then
|
||||
distfiles+=( $(eval "echo \${$(echo DEMOS_${ARCH/-/_})}") )
|
||||
fi
|
||||
check_tarballs_available "${JDK_URI}" "${distfiles[@]}"
|
||||
use jce && check_tarballs_available "${JCE_URI}" "${JCE_FILE}"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if use x64-macos ; then
|
||||
pushd "${T}" > /dev/null || die
|
||||
mkdir dmgmount || die
|
||||
hdiutil attach "${DISTDIR}"/jdk-${MY_PV}-macosx-x64.dmg \
|
||||
-mountpoint "${T}"/dmgmount || die
|
||||
printf -v update "%02d" $(get_version_component_range 4) || die
|
||||
xar -xf dmgmount/JDK\ $(get_version_component_range 2)\ Update\ ${update}.pkg || die
|
||||
hdiutil detach "${T}"/dmgmount || die
|
||||
zcat jdk1${MY_PV%u*}0${update}.pkg/Payload | cpio -idv || die
|
||||
mv Contents/Home "${WORKDIR}"/jdk${MY_PV} || die
|
||||
popd > /dev/null || die
|
||||
use jce && unpack "${JCE_FILE}"
|
||||
else
|
||||
default
|
||||
fi
|
||||
|
||||
# Upstream is changing their versioning scheme every release around 1.8.0.*;
|
||||
# to stop having to change it over and over again, just wildcard match and
|
||||
# live a happy life instead of trying to get this new jdk1.8.0_05 to work.
|
||||
mv "${WORKDIR}"/jdk* "${S}" || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if use jce ; then
|
||||
mv "${WORKDIR}"/${JCE_DIR} jre/lib/security/ || die
|
||||
fi
|
||||
|
||||
default
|
||||
|
||||
if [[ -n ${JAVA_PKG_STRICT} ]] ; then
|
||||
# Mark this binary early to run it now.
|
||||
pax-mark m ./bin/javap
|
||||
|
||||
eqawarn "Ensure that this only calls trackJavaUsage(). If not, see bug #559936."
|
||||
eqawarn
|
||||
eqawarn "$(./bin/javap -J-Duser.home=${T} -c sun.misc.PostVMInitHook || die)"
|
||||
fi
|
||||
|
||||
# Remove the hook that calls Oracle's evil usage tracker. Not just
|
||||
# because it's evil but because it breaks the sandbox during builds
|
||||
# and we can't find any other feasible way to disable it or make it
|
||||
# write somewhere else. See bug #559936 for details.
|
||||
zip -d jre/lib/rt.jar sun/misc/PostVMInitHook.class || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local dest="/opt/${P}"
|
||||
local ddest="${ED}${dest#/}"
|
||||
|
||||
# Create files used as storage for system preferences.
|
||||
mkdir jre/.systemPrefs || die
|
||||
touch jre/.systemPrefs/.system.lock || die
|
||||
touch jre/.systemPrefs/.systemRootModFile || die
|
||||
|
||||
if ! use alsa ; then
|
||||
rm -vf jre/lib/*/libjsoundalsa.* || die
|
||||
fi
|
||||
|
||||
if ! use commercial; then
|
||||
rm -vfr lib/missioncontrol jre/lib/jfr* || die
|
||||
fi
|
||||
|
||||
if use headless-awt ; then
|
||||
rm -vf {,jre/}lib/*/lib*{[jx]awt,splashscreen}* \
|
||||
{,jre/}bin/{javaws,policytool} \
|
||||
bin/appletviewer || die
|
||||
fi
|
||||
|
||||
if ! use javafx ; then
|
||||
rm -vf jre/lib/*/lib*{decora,fx,glass,prism}* \
|
||||
jre/lib/*/libgstreamer-lite.* {,jre/}lib/{,ext/}*fx* \
|
||||
bin/*javafx* bin/javapackager || die
|
||||
fi
|
||||
|
||||
if ! use nsplugin ; then
|
||||
rm -vf jre/lib/*/libnpjp2.* || die
|
||||
else
|
||||
local nsplugin=$(echo jre/lib/*/libnpjp2.*)
|
||||
fi
|
||||
|
||||
# Even though plugins linked against multiple ffmpeg versions are
|
||||
# provided, they generally lag behind what Gentoo has available.
|
||||
rm -vf jre/lib/*/libavplugin* || die
|
||||
|
||||
# Packaged as dev-util/visualvm but some users prefer this version.
|
||||
use visualvm || find -name "*visualvm*" -exec rm -vfr {} + || die
|
||||
|
||||
dodoc COPYRIGHT
|
||||
dodir "${dest}"
|
||||
cp -pPR bin include jre lib man "${ddest}" || die
|
||||
|
||||
if use derby ; then
|
||||
cp -pPR db "${ddest}" || die
|
||||
fi
|
||||
|
||||
if use examples && has ${ARCH} "${DEMOS_AVAILABLE[@]}" ; then
|
||||
cp -pPR demo sample "${ddest}" || die
|
||||
fi
|
||||
|
||||
if use jce ; then
|
||||
dodir "${dest}"/jre/lib/security/strong-jce
|
||||
mv "${ddest}"/jre/lib/security/US_export_policy.jar \
|
||||
"${ddest}"/jre/lib/security/strong-jce || die
|
||||
mv "${ddest}"/jre/lib/security/local_policy.jar \
|
||||
"${ddest}"/jre/lib/security/strong-jce || die
|
||||
dosym "${dest}"/jre/lib/security/${JCE_DIR}/US_export_policy.jar \
|
||||
"${dest}"/jre/lib/security/US_export_policy.jar
|
||||
dosym "${dest}"/jre/lib/security/${JCE_DIR}/local_policy.jar \
|
||||
"${dest}"/jre/lib/security/local_policy.jar
|
||||
fi
|
||||
|
||||
if use nsplugin ; then
|
||||
local nsplugin_link=${nsplugin##*/}
|
||||
nsplugin_link=${nsplugin_link/./-${PN}-${SLOT}.}
|
||||
dosym "${dest}/${nsplugin}" "/usr/$(get_libdir)/nsbrowser/plugins/${nsplugin_link}"
|
||||
fi
|
||||
|
||||
if use source ; then
|
||||
cp -v src.zip "${ddest}" || die
|
||||
|
||||
if use javafx ; then
|
||||
cp -v javafx-src.zip "${ddest}" || die
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ -d jre/lib/desktop ]] ; then
|
||||
# Install desktop file for the Java Control Panel.
|
||||
# Using ${PN}-${SLOT} to prevent file collision with jre and or
|
||||
# other slots. make_desktop_entry can't be used as ${P} would
|
||||
# end up in filename.
|
||||
newicon jre/lib/desktop/icons/hicolor/48x48/apps/sun-jcontrol.png \
|
||||
sun-jcontrol-${PN}-${SLOT}.png || die
|
||||
sed -e "s#Name=.*#Name=Java Control Panel for Oracle JDK ${SLOT}#" \
|
||||
-e "s#Exec=.*#Exec=/opt/${P}/jre/bin/jcontrol#" \
|
||||
-e "s#Icon=.*#Icon=sun-jcontrol-${PN}-${SLOT}#" \
|
||||
-e "s#Application;##" \
|
||||
-e "/Encoding/d" \
|
||||
jre/lib/desktop/applications/sun_java.desktop \
|
||||
> "${T}"/jcontrol-${PN}-${SLOT}.desktop || die
|
||||
domenu "${T}"/jcontrol-${PN}-${SLOT}.desktop
|
||||
fi
|
||||
|
||||
# Prune all fontconfig files so libfontconfig will be used and only install
|
||||
# a Gentoo specific one if fontconfig is disabled.
|
||||
# http://docs.oracle.com/javase/8/docs/technotes/guides/intl/fontconfig.html
|
||||
rm "${ddest}"/jre/lib/fontconfig.* || die
|
||||
if ! use fontconfig ; then
|
||||
cp "${FILESDIR}"/fontconfig.Gentoo.properties "${T}"/fontconfig.properties || die
|
||||
eprefixify "${T}"/fontconfig.properties
|
||||
insinto "${dest}"/jre/lib/
|
||||
doins "${T}"/fontconfig.properties
|
||||
fi
|
||||
|
||||
# This needs to be done before CDS - #215225
|
||||
java-vm_set-pax-markings "${ddest}"
|
||||
|
||||
# see bug #207282
|
||||
einfo "Creating the Class Data Sharing archives"
|
||||
case ${ARCH} in
|
||||
arm|ia64)
|
||||
${ddest}/bin/java -client -Xshare:dump || die
|
||||
;;
|
||||
x86)
|
||||
${ddest}/bin/java -client -Xshare:dump || die
|
||||
# limit heap size for large memory on x86 #467518
|
||||
# this is a workaround and shouldn't be needed.
|
||||
${ddest}/bin/java -server -Xms64m -Xmx64m -Xshare:dump || die
|
||||
;;
|
||||
*)
|
||||
${ddest}/bin/java -server -Xshare:dump || die
|
||||
;;
|
||||
esac
|
||||
|
||||
# Remove empty dirs we might have copied.
|
||||
find "${D}" -type d -empty -exec rmdir -v {} + || die
|
||||
|
||||
if use x64-macos ; then
|
||||
# Fix miscellaneous install_name issues.
|
||||
local lib
|
||||
for lib in decora_sse glass prism_{common,es2,sw} ; do
|
||||
lib=lib${lib}.dylib
|
||||
einfo "Fixing self-reference of ${lib}"
|
||||
install_name_tool \
|
||||
-id "${EPREFIX}${dest}/jre/lib/${lib}" \
|
||||
"${ddest}"/jre/lib/${lib} || die
|
||||
done
|
||||
fi
|
||||
|
||||
java-vm_install-env "${FILESDIR}"/${PN}.env.sh
|
||||
java-vm_revdep-mask
|
||||
java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
java-vm-2_pkg_postinst
|
||||
|
||||
if ! use headless-awt && ! use javafx; then
|
||||
ewarn "You have disabled the javafx flag. Some modern desktop Java applications"
|
||||
ewarn "require this and they may fail with a confusing error message."
|
||||
fi
|
||||
}
|
@ -1 +0,0 @@
|
||||
DIST swing-worker-src-1.1.zip 26379 SHA256 d412b64b45914a2d26b54840e9eeb3f807c9da32d2d2c832cd72e5767df9e8e7 SHA512 58f963bb9d2960fe886afeec8f945a80253244b940ec58df186026dcff7f20be84035ad87093b72a54447010dd1dc55d4d4237c3a1e000c20bf0644bf7374994 WHIRLPOOL 60ec5806639fe07bc02c53164c23298e7f48f904c229bd2ab420b2a7ffe5ab1a31b75d2d53e45954142403ed54dbaba2037bad58b31336e9204d71db320ca850
|
@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>java@gentoo.org</email>
|
||||
<name>Java</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
swing-worker is a backport for Java 1.5 of the Swing Threading libraries
|
||||
available within the Java 1.6 API.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
@ -1,34 +0,0 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="Java 1.6 SwingWorker backport for Java 1.5"
|
||||
HOMEPAGE="https://swingworker.dev.java.net"
|
||||
SRC_URI="https://swingworker.dev.java.net/files/documents/2810/51774/${PN}-src-${PV}.zip"
|
||||
|
||||
LICENSE="LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=virtual/jdk-1.5
|
||||
app-arch/unzip
|
||||
dev-java/ant-core"
|
||||
RDEPEND=">=virtual/jre-1.5"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
EANT_BUILD_TARGET="compile"
|
||||
|
||||
src_install() {
|
||||
use doc && java-pkg_dojavadoc dist/javadoc
|
||||
cd build
|
||||
jar cf "../${PN}.jar" * || die "Unable to create jar"
|
||||
cd ..
|
||||
java-pkg_dojar "${PN}.jar"
|
||||
|
||||
use source && java-pkg_dosrc src/java/*
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
JAVA_PKG_IUSE="source"
|
||||
|
||||
inherit eutils java-pkg-2 java-ant-2
|
||||
|
||||
MY_A="apache-${P}-src"
|
||||
MY_P="${MY_A/-servlet-api/}"
|
||||
DESCRIPTION="Tomcat's Servlet API 3.1/JSP API 2.3/EL API 3.0 implementation"
|
||||
HOMEPAGE="http://tomcat.apache.org/"
|
||||
SRC_URI="mirror://apache/tomcat/tomcat-8/v${PV}/src/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="3.1"
|
||||
KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=virtual/jdk-1.7"
|
||||
RDEPEND=">=virtual/jre-1.7"
|
||||
|
||||
S="${WORKDIR}/${MY_P}/"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
cp "${FILESDIR}/${SLOT}-build.xml" build.xml || die "Could not replace build.xml"
|
||||
rm -fR */*/build.xml
|
||||
einfo "Removing bundled jars and classes"
|
||||
find "${S}" '(' -name '*.class' -o -name '*.jar' ')' -exec rm -frv {} +
|
||||
|
||||
java-pkg-2_src_prepare
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar "${S}"/output/build/lib/*.jar
|
||||
use source && java-pkg_dosrc java/javax/servlet/
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit flag-o-matic
|
||||
|
||||
MY_PN="MoarVM"
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
S="${WORKDIR}/${P}"
|
||||
else
|
||||
SRC_URI="http://moarvm.org/releases/${MY_PN}-${PV}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="A 6model-based VM for NQP and Rakudo Perl 6"
|
||||
HOMEPAGE="http://moarvm.org"
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
IUSE="asan clang debug doc +jit static-libs optimize ubsan"
|
||||
|
||||
RDEPEND="dev-libs/libatomic_ops
|
||||
dev-libs/libtommath
|
||||
dev-libs/libuv
|
||||
jit? ( dev-lang/lua:0[deprecated]
|
||||
dev-lua/LuaBitOp )
|
||||
virtual/libffi"
|
||||
DEPEND="${RDEPEND}
|
||||
clang? ( >=sys-devel/clang-3.1 )
|
||||
dev-lang/perl"
|
||||
|
||||
DOCS=( CREDITS README.markdown )
|
||||
|
||||
# Tests are conducted via nqp
|
||||
RESTRICT=test
|
||||
|
||||
src_configure() {
|
||||
use doc && DOCS+=( docs/* )
|
||||
local myconfigargs=(
|
||||
"--prefix=/usr"
|
||||
"--has-libtommath"
|
||||
"--has-libuv"
|
||||
"--has-libatomic_ops"
|
||||
"--has-libffi"
|
||||
"--libdir=$(get_libdir)"
|
||||
"--compiler=$(usex clang clang gcc)"
|
||||
"$(usex asan --asan)"
|
||||
"$(usex debug --debug --no-debug)"
|
||||
"$(usex jit --lua=/usr/bin/lua --no-jit)"
|
||||
"$(usex optimize --optimize= --no-optimize)"
|
||||
"$(usex static-libs --static)"
|
||||
"$(usex ubsan --ubsan)"
|
||||
)
|
||||
use optimize && filter-flags '-O*'
|
||||
|
||||
perl Configure.pl "${myconfigargs[@]}" || die
|
||||
}
|
@ -0,0 +1,159 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit java-pkg-opt-2 multibuild
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/perl6/${PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/perl6/${PN}/tarball/${PV} -> ${P}.tar.gz"
|
||||
inherit vcs-snapshot
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Not Quite Perl, a Perl 6 bootstrapping compiler"
|
||||
HOMEPAGE="http://rakudo.org/"
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
IUSE="doc clang java +moar test"
|
||||
REQUIRED_USE="|| ( java moar )"
|
||||
|
||||
CDEPEND="java? (
|
||||
dev-java/asm:4
|
||||
dev-java/jline:0
|
||||
dev-java/jna:4
|
||||
)
|
||||
moar? ( ~dev-lang/moarvm-${PV}[clang=] )"
|
||||
RDEPEND="${CDEPEND}
|
||||
java? ( >=virtual/jre-1.7 )"
|
||||
DEPEND="${CDEPEND}
|
||||
clang? ( sys-devel/clang )
|
||||
java? ( >=virtual/jdk-1.7 )
|
||||
dev-lang/perl"
|
||||
|
||||
pkg_pretend() {
|
||||
if has_version dev-lang/rakudo || has_version dev-lang/nqp; then
|
||||
ewarn "NQP is known to fail compilation/installation with Rakudo and/or NQP"
|
||||
ewarn "already being installed. So if it fails, try uninstalling both"
|
||||
ewarn "dev-lang/nqp and dev-lang/rakudo, then do a new installation."
|
||||
ewarn "(see Bug #584394)"
|
||||
fi
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
# Don't clean stage0 jars.
|
||||
einfo "Cleaning upstream jars"
|
||||
java-pkg_clean 3rdparty/
|
||||
|
||||
# Don't use jars we just deleted.
|
||||
sed -i -r 's/(:3rdparty[^:]*)+/:${THIRDPARTY_JARS}/g' \
|
||||
src/vm/jvm/runners/nqp-j || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
MULTIBUILD_VARIANTS=()
|
||||
use moar && MULTIBUILD_VARIANTS+=( moar )
|
||||
use java && MULTIBUILD_VARIANTS+=( jvm )
|
||||
|
||||
multibuild_copy_sources
|
||||
|
||||
# This will pull in conditional java_prepare
|
||||
default
|
||||
}
|
||||
|
||||
nqp_configure() {
|
||||
pushd "${BUILD_DIR}" > /dev/null || die
|
||||
local myconfargs=(
|
||||
"--backend=${MULTIBUILD_VARIANT}"
|
||||
"--prefix=/usr" )
|
||||
|
||||
perl Configure.pl "${myconfargs[@]}" || die
|
||||
popd || die
|
||||
}
|
||||
|
||||
nqp_compile() {
|
||||
if [[ "${MULTIBUILD_VARIANT}" = jvm ]]; then
|
||||
emake -j1 \
|
||||
-C "${BUILD_DIR}" \
|
||||
THIRDPARTY_JARS=$(java-pkg_getjars --with-dependencies asm-4,jline,jna-4) \
|
||||
JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)"
|
||||
elif [[ "${MULTIBUILD_VARIANT}" = moar ]]; then
|
||||
emake -j1 \
|
||||
-C "${BUILD_DIR}"
|
||||
fi
|
||||
}
|
||||
|
||||
nqp_test() {
|
||||
emake -j1 \
|
||||
-C "${BUILD_DIR}" \
|
||||
test
|
||||
}
|
||||
|
||||
nqp_install() {
|
||||
# This is the actual reason we need multibuild.eclass.
|
||||
# We need to distinguish the install procedure for MoarVM and JVM backends.
|
||||
case "${MULTIBUILD_VARIANT}" in
|
||||
moar)
|
||||
emake \
|
||||
DESTDIR="${ED}" \
|
||||
-C "${BUILD_DIR}" \
|
||||
install
|
||||
;;
|
||||
jvm)
|
||||
pushd "${BUILD_DIR}" > /dev/null || die
|
||||
# Set JAVA_PKG_JARDEST early.
|
||||
java-pkg_init_paths_
|
||||
|
||||
# Upstream sets the classpath to this location. Perhaps it's
|
||||
# used to locate the additional libraries?
|
||||
java-pkg_addcp "${JAVA_PKG_JARDEST}"
|
||||
|
||||
insinto "${JAVA_PKG_JARDEST}"
|
||||
local jar
|
||||
|
||||
for jar in *.jar; do
|
||||
if has ${jar} ${PN}.jar ${PN}-runtime.jar; then
|
||||
# jars for NQP itself.
|
||||
java-pkg_dojar ${jar}
|
||||
else
|
||||
# jars used by NQP.
|
||||
doins ${jar}
|
||||
fi
|
||||
done
|
||||
|
||||
# Upstream uses -Xbootclasspath/a, which is faster due to lack
|
||||
# of verification, but gjl isn't flexible enough yet. :(
|
||||
java-pkg_dolauncher ${PN}-j --main ${PN}
|
||||
dosym ${PN}-j /usr/bin/${PN}
|
||||
dobin tools/jvm/eval-client.pl
|
||||
popd > /dev/null || die
|
||||
;;
|
||||
*)
|
||||
die "Unknown MULTIBUILD_VARIANT ${MULTIBUILD_VARIANT}."
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
multibuild_foreach_variant nqp_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
multibuild_foreach_variant nqp_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
multibuild_foreach_variant nqp_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
multibuild_foreach_variant nqp_install
|
||||
|
||||
dodoc CREDITS README.pod
|
||||
use doc && dodoc -r docs/*
|
||||
}
|
@ -1,362 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
WANT_LIBTOOL="none"
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib pax-utils python-utils-r1 toolchain-funcs
|
||||
|
||||
MY_P="Python-${PV/_/}"
|
||||
PATCHSET_VERSION="3.5.2-0"
|
||||
|
||||
DESCRIPTION="An interpreted, interactive, object-oriented programming language"
|
||||
HOMEPAGE="http://www.python.org/"
|
||||
SRC_URI="http://www.python.org/ftp/python/${PV%_rc*}/${MY_P}.tar.xz
|
||||
https://dev.gentoo.org/~floppym/python/python-gentoo-patches-${PATCHSET_VERSION}.tar.xz"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="3.5/3.5m"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="build elibc_uclibc examples gdbm hardened ipv6 libressl +ncurses +readline sqlite +ssl +threads tk wininst +xml"
|
||||
|
||||
# Do not add a dependency on dev-lang/python to this ebuild.
|
||||
# If you need to apply a patch which requires python for bootstrapping, please
|
||||
# run the bootstrap code on your dev box and include the results in the
|
||||
# patchset. See bug 447752.
|
||||
|
||||
RDEPEND="app-arch/bzip2:0=
|
||||
app-arch/xz-utils:0=
|
||||
>=sys-libs/zlib-1.1.3:0=
|
||||
virtual/libffi
|
||||
virtual/libintl
|
||||
gdbm? ( sys-libs/gdbm:0=[berkdb] )
|
||||
ncurses? (
|
||||
>=sys-libs/ncurses-5.2:0=
|
||||
readline? ( >=sys-libs/readline-4.1:0= )
|
||||
)
|
||||
sqlite? ( >=dev-db/sqlite-3.3.8:3= )
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
)
|
||||
tk? (
|
||||
>=dev-lang/tcl-8.0:0=
|
||||
>=dev-lang/tk-8.0:0=
|
||||
dev-tcltk/blt:0=
|
||||
dev-tcltk/tix
|
||||
)
|
||||
xml? ( >=dev-libs/expat-2.1:0= )
|
||||
!!<sys-apps/sandbox-2.6-r1"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
!sys-devel/gcc[libffi(-)]"
|
||||
RDEPEND+=" !build? ( app-misc/mime-types )"
|
||||
PDEPEND=">=app-eselect/eselect-python-20140125-r1"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PYVER=${SLOT%/*}
|
||||
|
||||
src_prepare() {
|
||||
# Ensure that internal copies of expat, libffi and zlib are not used.
|
||||
rm -fr Modules/expat
|
||||
rm -fr Modules/_ctypes/libffi*
|
||||
rm -fr Modules/zlib
|
||||
|
||||
if tc-is-cross-compiler; then
|
||||
# Invokes BUILDPYTHON, which is built for the host arch
|
||||
local EPATCH_EXCLUDE="*_regenerate_platform-specific_modules.patch"
|
||||
fi
|
||||
|
||||
EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
|
||||
epatch "${FILESDIR}/${PN}-3.4.3-ncurses-pkg-config.patch"
|
||||
epatch "${FILESDIR}/${PN}-3.5-distutils-OO-build.patch"
|
||||
|
||||
epatch_user
|
||||
|
||||
sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
|
||||
configure.ac \
|
||||
Lib/distutils/command/install.py \
|
||||
Lib/distutils/sysconfig.py \
|
||||
Lib/site.py \
|
||||
Lib/sysconfig.py \
|
||||
Lib/test/test_site.py \
|
||||
Makefile.pre.in \
|
||||
Modules/getpath.c \
|
||||
Modules/Setup.dist \
|
||||
setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local disable
|
||||
use gdbm || disable+=" gdbm"
|
||||
use ncurses || disable+=" _curses _curses_panel"
|
||||
use readline || disable+=" readline"
|
||||
use sqlite || disable+=" _sqlite3"
|
||||
use ssl || export PYTHON_DISABLE_SSL="1"
|
||||
use tk || disable+=" _tkinter"
|
||||
use xml || disable+=" _elementtree pyexpat" # _elementtree uses pyexpat.
|
||||
export PYTHON_DISABLE_MODULES="${disable}"
|
||||
|
||||
if ! use xml; then
|
||||
ewarn "You have configured Python without XML support."
|
||||
ewarn "This is NOT a recommended configuration as you"
|
||||
ewarn "may face problems parsing any XML documents."
|
||||
fi
|
||||
|
||||
if [[ -n "${PYTHON_DISABLE_MODULES}" ]]; then
|
||||
einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}"
|
||||
fi
|
||||
|
||||
if [[ "$(gcc-major-version)" -ge 4 ]]; then
|
||||
append-flags -fwrapv
|
||||
fi
|
||||
|
||||
filter-flags -malign-double
|
||||
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=50309
|
||||
if is-flagq -O3; then
|
||||
is-flagq -fstack-protector-all && replace-flags -O3 -O2
|
||||
use hardened && replace-flags -O3 -O2
|
||||
fi
|
||||
|
||||
# Export CXX so it ends up in /usr/lib/python3.X/config/Makefile.
|
||||
tc-export CXX
|
||||
|
||||
# The configure script fails to use pkg-config correctly.
|
||||
# http://bugs.python.org/issue15506
|
||||
export ac_cv_path_PKG_CONFIG=$(tc-getPKG_CONFIG)
|
||||
|
||||
# Set LDFLAGS so we link modules with -lpython3.2 correctly.
|
||||
# Needed on FreeBSD unless Python 3.2 is already installed.
|
||||
# Please query BSD team before removing this!
|
||||
append-ldflags "-L."
|
||||
|
||||
local dbmliborder
|
||||
if use gdbm; then
|
||||
dbmliborder+="${dbmliborder:+:}gdbm"
|
||||
fi
|
||||
|
||||
BUILD_DIR="${WORKDIR}/${CHOST}"
|
||||
mkdir -p "${BUILD_DIR}" || die
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
local myeconfargs=(
|
||||
--with-fpectl
|
||||
--enable-shared
|
||||
$(use_enable ipv6)
|
||||
$(use_with threads)
|
||||
--infodir='${prefix}/share/info'
|
||||
--mandir='${prefix}/share/man'
|
||||
--with-computed-gotos
|
||||
--with-dbmliborder="${dbmliborder}"
|
||||
--with-libc=
|
||||
--enable-loadable-sqlite-extensions
|
||||
--without-ensurepip
|
||||
--with-system-expat
|
||||
--with-system-ffi
|
||||
)
|
||||
|
||||
ECONF_SOURCE="${S}" OPT="" econf "${myeconfargs[@]}"
|
||||
|
||||
if use threads && grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then
|
||||
eerror "configure has detected that the sem_open function is broken."
|
||||
eerror "Please ensure that /dev/shm is mounted as a tmpfs with mode 1777."
|
||||
die "Broken sem_open function (bug 496328)"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Ensure sed works as expected
|
||||
# https://bugs.gentoo.org/594768
|
||||
local -x LC_ALL=C
|
||||
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
emake CPPFLAGS= CFLAGS= LDFLAGS=
|
||||
|
||||
# Work around bug 329499. See also bug 413751 and 457194.
|
||||
if has_version dev-libs/libffi[pax_kernel]; then
|
||||
pax-mark E python
|
||||
else
|
||||
pax-mark m python
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Tests will not work when cross compiling.
|
||||
if tc-is-cross-compiler; then
|
||||
elog "Disabling tests due to crosscompiling."
|
||||
return
|
||||
fi
|
||||
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
# Skip failing tests.
|
||||
local skipped_tests="gdb"
|
||||
|
||||
for test in ${skipped_tests}; do
|
||||
mv "${S}"/Lib/test/test_${test}.py "${T}"
|
||||
done
|
||||
|
||||
local -x PYTHONDONTWRITEBYTECODE=
|
||||
emake test EXTRATESTOPTS="-u-network" CPPFLAGS= CFLAGS= LDFLAGS= < /dev/tty
|
||||
local result=$?
|
||||
|
||||
for test in ${skipped_tests}; do
|
||||
mv "${T}/test_${test}.py" "${S}"/Lib/test
|
||||
done
|
||||
|
||||
elog "The following tests have been skipped:"
|
||||
for test in ${skipped_tests}; do
|
||||
elog "test_${test}.py"
|
||||
done
|
||||
|
||||
elog "If you would like to run them, you may:"
|
||||
elog "cd '${EPREFIX}/usr/$(get_libdir)/python${PYVER}/test'"
|
||||
elog "and run the tests separately."
|
||||
|
||||
if [[ ${result} -ne 0 ]]; then
|
||||
die "emake test failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local libdir=${ED}/usr/$(get_libdir)/python${PYVER}
|
||||
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
emake DESTDIR="${D}" altinstall
|
||||
|
||||
sed \
|
||||
-e "s/\(CONFIGURE_LDFLAGS=\).*/\1/" \
|
||||
-e "s/\(PY_LDFLAGS=\).*/\1/" \
|
||||
-i "${libdir}/config-${PYVER}"*/Makefile || die "sed failed"
|
||||
|
||||
# Fix collisions between different slots of Python.
|
||||
rm -f "${ED}usr/$(get_libdir)/libpython3.so"
|
||||
|
||||
# Cheap hack to get version with ABIFLAGS
|
||||
local abiver=$(cd "${ED}usr/include"; echo python*)
|
||||
if [[ ${abiver} != python${PYVER} ]]; then
|
||||
# Replace python3.X with a symlink to python3.Xm
|
||||
rm "${ED}usr/bin/python${PYVER}" || die
|
||||
dosym "${abiver}" "/usr/bin/python${PYVER}"
|
||||
# Create python3.X-config symlink
|
||||
dosym "${abiver}-config" "/usr/bin/python${PYVER}-config"
|
||||
# Create python-3.5m.pc symlink
|
||||
dosym "python-${PYVER}.pc" "/usr/$(get_libdir)/pkgconfig/${abiver/${PYVER}/-${PYVER}}.pc"
|
||||
fi
|
||||
|
||||
# python seems to get rebuilt in src_install (bug 569908)
|
||||
# Work around it for now.
|
||||
if has_version dev-libs/libffi[pax_kernel]; then
|
||||
pax-mark E "${ED}usr/bin/${abiver}"
|
||||
else
|
||||
pax-mark m "${ED}usr/bin/${abiver}"
|
||||
fi
|
||||
|
||||
use elibc_uclibc && rm -fr "${libdir}/test"
|
||||
use sqlite || rm -fr "${libdir}/"{sqlite3,test/test_sqlite*}
|
||||
use tk || rm -fr "${ED}usr/bin/idle${PYVER}" "${libdir}/"{idlelib,tkinter,test/test_tk*}
|
||||
|
||||
use threads || rm -fr "${libdir}/multiprocessing"
|
||||
use wininst || rm -f "${libdir}/distutils/command/"wininst-*.exe
|
||||
|
||||
dodoc "${S}"/Misc/{ACKS,HISTORY,NEWS}
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
find "${S}"/Tools -name __pycache__ -print0 | xargs -0 rm -fr
|
||||
doins -r "${S}"/Tools
|
||||
fi
|
||||
insinto /usr/share/gdb/auto-load/usr/$(get_libdir) #443510
|
||||
local libname=$(printf 'e:\n\t@echo $(INSTSONAME)\ninclude Makefile\n' | \
|
||||
emake --no-print-directory -s -f - 2>/dev/null)
|
||||
newins "${S}"/Tools/gdb/libpython.py "${libname}"-gdb.py
|
||||
|
||||
newconfd "${FILESDIR}/pydoc.conf" pydoc-${PYVER}
|
||||
newinitd "${FILESDIR}/pydoc.init" pydoc-${PYVER}
|
||||
sed \
|
||||
-e "s:@PYDOC_PORT_VARIABLE@:PYDOC${PYVER/./_}_PORT:" \
|
||||
-e "s:@PYDOC@:pydoc${PYVER}:" \
|
||||
-i "${ED}etc/conf.d/pydoc-${PYVER}" "${ED}etc/init.d/pydoc-${PYVER}" || die "sed failed"
|
||||
|
||||
# for python-exec
|
||||
local vars=( EPYTHON PYTHON_SITEDIR PYTHON_SCRIPTDIR )
|
||||
|
||||
# if not using a cross-compiler, use the fresh binary
|
||||
if ! tc-is-cross-compiler; then
|
||||
local -x PYTHON=./python
|
||||
local -x LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}.
|
||||
else
|
||||
vars=( PYTHON "${vars[@]}" )
|
||||
fi
|
||||
|
||||
python_export "python${PYVER}" "${vars[@]}"
|
||||
echo "EPYTHON='${EPYTHON}'" > epython.py || die
|
||||
python_domodule epython.py
|
||||
|
||||
# python-exec wrapping support
|
||||
local pymajor=${PYVER%.*}
|
||||
mkdir -p "${D}${PYTHON_SCRIPTDIR}" || die
|
||||
# python and pythonX
|
||||
ln -s "../../../bin/${abiver}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/python${pymajor}" || die
|
||||
ln -s "python${pymajor}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/python" || die
|
||||
# python-config and pythonX-config
|
||||
# note: we need to create a wrapper rather than symlinking it due
|
||||
# to some random dirname(argv[0]) magic performed by python-config
|
||||
cat > "${D}${PYTHON_SCRIPTDIR}/python${pymajor}-config" <<-EOF || die
|
||||
#!/bin/sh
|
||||
exec "${abiver}-config" "\${@}"
|
||||
EOF
|
||||
chmod +x "${D}${PYTHON_SCRIPTDIR}/python${pymajor}-config" || die
|
||||
ln -s "python${pymajor}-config" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/python-config" || die
|
||||
# 2to3, pydoc, pyvenv
|
||||
ln -s "../../../bin/2to3-${PYVER}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/2to3" || die
|
||||
ln -s "../../../bin/pydoc${PYVER}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/pydoc" || die
|
||||
ln -s "../../../bin/pyvenv-${PYVER}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/pyvenv" || die
|
||||
# idle
|
||||
if use tk; then
|
||||
ln -s "../../../bin/idle${PYVER}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/idle" || die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if has_version "<${CATEGORY}/${PN}-${PYVER}" && ! has_version ">=${CATEGORY}/${PN}-${PYVER}_alpha"; then
|
||||
python_updater_warning="1"
|
||||
fi
|
||||
}
|
||||
|
||||
eselect_python_update() {
|
||||
if [[ -z "$(eselect python show)" || ! -f "${EROOT}usr/bin/$(eselect python show)" ]]; then
|
||||
eselect python update
|
||||
fi
|
||||
|
||||
if [[ -z "$(eselect python show --python${PV%%.*})" || ! -f "${EROOT}usr/bin/$(eselect python show --python${PV%%.*})" ]]; then
|
||||
eselect python update --python${PV%%.*}
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
eselect_python_update
|
||||
|
||||
if [[ "${python_updater_warning}" == "1" ]]; then
|
||||
ewarn "You have just upgraded from an older version of Python."
|
||||
ewarn
|
||||
ewarn "Please adjust PYTHON_TARGETS (if so desired), and run emerge with the --newuse or --changed-use option to rebuild packages installing python modules."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect_python_update
|
||||
}
|
@ -1,340 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
WANT_LIBTOOL="none"
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib pax-utils python-utils-r1 toolchain-funcs
|
||||
|
||||
MY_P="Python-${PV}"
|
||||
PATCHSET_VERSION="3.6.0-0"
|
||||
|
||||
DESCRIPTION="An interpreted, interactive, object-oriented programming language"
|
||||
HOMEPAGE="https://www.python.org/"
|
||||
SRC_URI="https://www.python.org/ftp/python/${PV}/${MY_P}.tar.xz
|
||||
https://dev.gentoo.org/~floppym/python/python-gentoo-patches-${PATCHSET_VERSION}.tar.xz"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="3.6/3.6m"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="build examples gdbm hardened ipv6 libressl +ncurses +readline sqlite +ssl +threads tk wininst +xml"
|
||||
|
||||
# Do not add a dependency on dev-lang/python to this ebuild.
|
||||
# If you need to apply a patch which requires python for bootstrapping, please
|
||||
# run the bootstrap code on your dev box and include the results in the
|
||||
# patchset. See bug 447752.
|
||||
|
||||
RDEPEND="app-arch/bzip2:0=
|
||||
app-arch/xz-utils:0=
|
||||
>=sys-libs/zlib-1.1.3:0=
|
||||
virtual/libffi
|
||||
virtual/libintl
|
||||
gdbm? ( sys-libs/gdbm:0=[berkdb] )
|
||||
ncurses? (
|
||||
>=sys-libs/ncurses-5.2:0=
|
||||
readline? ( >=sys-libs/readline-4.1:0= )
|
||||
)
|
||||
sqlite? ( >=dev-db/sqlite-3.3.8:3= )
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
)
|
||||
tk? (
|
||||
>=dev-lang/tcl-8.0:0=
|
||||
>=dev-lang/tk-8.0:0=
|
||||
dev-tcltk/blt:0=
|
||||
dev-tcltk/tix
|
||||
)
|
||||
xml? ( >=dev-libs/expat-2.1:0= )
|
||||
!!<sys-apps/sandbox-2.6-r1"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
!sys-devel/gcc[libffi(-)]"
|
||||
RDEPEND+=" !build? ( app-misc/mime-types )"
|
||||
PDEPEND=">=app-eselect/eselect-python-20140125-r1"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
PYVER=${SLOT%/*}
|
||||
|
||||
src_prepare() {
|
||||
# Ensure that internal copies of expat, libffi and zlib are not used.
|
||||
rm -fr Modules/expat
|
||||
rm -fr Modules/_ctypes/libffi*
|
||||
rm -fr Modules/zlib
|
||||
|
||||
EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
|
||||
|
||||
epatch_user
|
||||
|
||||
sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
|
||||
Lib/distutils/command/install.py \
|
||||
Lib/distutils/sysconfig.py \
|
||||
Lib/site.py \
|
||||
Lib/sysconfig.py \
|
||||
Lib/test/test_site.py \
|
||||
Makefile.pre.in \
|
||||
Modules/Setup.dist \
|
||||
Modules/getpath.c \
|
||||
configure.ac \
|
||||
setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local disable
|
||||
use gdbm || disable+=" gdbm"
|
||||
use ncurses || disable+=" _curses _curses_panel"
|
||||
use readline || disable+=" readline"
|
||||
use sqlite || disable+=" _sqlite3"
|
||||
use ssl || export PYTHON_DISABLE_SSL="1"
|
||||
use tk || disable+=" _tkinter"
|
||||
use xml || disable+=" _elementtree pyexpat" # _elementtree uses pyexpat.
|
||||
export PYTHON_DISABLE_MODULES="${disable}"
|
||||
|
||||
if ! use xml; then
|
||||
ewarn "You have configured Python without XML support."
|
||||
ewarn "This is NOT a recommended configuration as you"
|
||||
ewarn "may face problems parsing any XML documents."
|
||||
fi
|
||||
|
||||
if [[ -n "${PYTHON_DISABLE_MODULES}" ]]; then
|
||||
einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}"
|
||||
fi
|
||||
|
||||
if [[ "$(gcc-major-version)" -ge 4 ]]; then
|
||||
append-flags -fwrapv
|
||||
fi
|
||||
|
||||
filter-flags -malign-double
|
||||
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=50309
|
||||
if is-flagq -O3; then
|
||||
is-flagq -fstack-protector-all && replace-flags -O3 -O2
|
||||
use hardened && replace-flags -O3 -O2
|
||||
fi
|
||||
|
||||
# Export CXX so it ends up in /usr/lib/python3.X/config/Makefile.
|
||||
tc-export CXX
|
||||
|
||||
# Set LDFLAGS so we link modules with -lpython3.2 correctly.
|
||||
# Needed on FreeBSD unless Python 3.2 is already installed.
|
||||
# Please query BSD team before removing this!
|
||||
append-ldflags "-L."
|
||||
|
||||
local dbmliborder
|
||||
if use gdbm; then
|
||||
dbmliborder+="${dbmliborder:+:}gdbm"
|
||||
fi
|
||||
|
||||
local myeconfargs=(
|
||||
--with-fpectl
|
||||
--enable-shared
|
||||
$(use_enable ipv6)
|
||||
$(use_with threads)
|
||||
--infodir='${prefix}/share/info'
|
||||
--mandir='${prefix}/share/man'
|
||||
--with-computed-gotos
|
||||
--with-dbmliborder="${dbmliborder}"
|
||||
--with-libc=
|
||||
--enable-loadable-sqlite-extensions
|
||||
--without-ensurepip
|
||||
--with-system-expat
|
||||
--with-system-ffi
|
||||
)
|
||||
|
||||
OPT="" econf "${myeconfargs[@]}"
|
||||
|
||||
if use threads && grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then
|
||||
eerror "configure has detected that the sem_open function is broken."
|
||||
eerror "Please ensure that /dev/shm is mounted as a tmpfs with mode 1777."
|
||||
die "Broken sem_open function (bug 496328)"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Ensure sed works as expected
|
||||
# https://bugs.gentoo.org/594768
|
||||
local -x LC_ALL=C
|
||||
|
||||
emake CPPFLAGS= CFLAGS= LDFLAGS=
|
||||
|
||||
# Work around bug 329499. See also bug 413751 and 457194.
|
||||
if has_version dev-libs/libffi[pax_kernel]; then
|
||||
pax-mark E python
|
||||
else
|
||||
pax-mark m python
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Tests will not work when cross compiling.
|
||||
if tc-is-cross-compiler; then
|
||||
elog "Disabling tests due to crosscompiling."
|
||||
return
|
||||
fi
|
||||
|
||||
# Skip failing tests.
|
||||
local skipped_tests="gdb"
|
||||
|
||||
for test in ${skipped_tests}; do
|
||||
mv "${S}"/Lib/test/test_${test}.py "${T}"
|
||||
done
|
||||
|
||||
local -x PYTHONDONTWRITEBYTECODE=
|
||||
|
||||
emake test EXTRATESTOPTS="-u-network" CPPFLAGS= CFLAGS= LDFLAGS= < /dev/tty
|
||||
local result=$?
|
||||
|
||||
for test in ${skipped_tests}; do
|
||||
mv "${T}/test_${test}.py" "${S}"/Lib/test
|
||||
done
|
||||
|
||||
elog "The following tests have been skipped:"
|
||||
for test in ${skipped_tests}; do
|
||||
elog "test_${test}.py"
|
||||
done
|
||||
|
||||
elog "If you would like to run them, you may:"
|
||||
elog "cd '${EPREFIX}/usr/$(get_libdir)/python${PYVER}/test'"
|
||||
elog "and run the tests separately."
|
||||
|
||||
if [[ ${result} -ne 0 ]]; then
|
||||
die "emake test failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local libdir=${ED}/usr/$(get_libdir)/python${PYVER}
|
||||
|
||||
emake DESTDIR="${D}" altinstall
|
||||
|
||||
sed \
|
||||
-e "s/\(CONFIGURE_LDFLAGS=\).*/\1/" \
|
||||
-e "s/\(PY_LDFLAGS=\).*/\1/" \
|
||||
-i "${libdir}/config-${PYVER}"*/Makefile || die "sed failed"
|
||||
|
||||
# Fix collisions between different slots of Python.
|
||||
rm -f "${ED}usr/$(get_libdir)/libpython3.so"
|
||||
|
||||
# Cheap hack to get version with ABIFLAGS
|
||||
local abiver=$(cd "${ED}usr/include"; echo python*)
|
||||
if [[ ${abiver} != python${PYVER} ]]; then
|
||||
# Replace python3.X with a symlink to python3.Xm
|
||||
rm "${ED}usr/bin/python${PYVER}" || die
|
||||
dosym "${abiver}" "/usr/bin/python${PYVER}"
|
||||
# Create python3.X-config symlink
|
||||
dosym "${abiver}-config" "/usr/bin/python${PYVER}-config"
|
||||
# Create python-3.5m.pc symlink
|
||||
dosym "python-${PYVER}.pc" "/usr/$(get_libdir)/pkgconfig/${abiver/${PYVER}/-${PYVER}}.pc"
|
||||
fi
|
||||
|
||||
# python seems to get rebuilt in src_install (bug 569908)
|
||||
# Work around it for now.
|
||||
if has_version dev-libs/libffi[pax_kernel]; then
|
||||
pax-mark E "${ED}usr/bin/${abiver}"
|
||||
else
|
||||
pax-mark m "${ED}usr/bin/${abiver}"
|
||||
fi
|
||||
|
||||
use sqlite || rm -r "${libdir}/"{sqlite3,test/test_sqlite*} || die
|
||||
use tk || rm -r "${ED}usr/bin/idle${PYVER}" "${libdir}/"{idlelib,tkinter,test/test_tk*} || die
|
||||
|
||||
use threads || rm -r "${libdir}/multiprocessing" || die
|
||||
use wininst || rm "${libdir}/distutils/command/"wininst-*.exe || die
|
||||
|
||||
dodoc "${S}"/Misc/{ACKS,HISTORY,NEWS}
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
find "${S}"/Tools -name __pycache__ -print0 | xargs -0 rm -fr
|
||||
doins -r "${S}"/Tools
|
||||
fi
|
||||
insinto /usr/share/gdb/auto-load/usr/$(get_libdir) #443510
|
||||
local libname=$(printf 'e:\n\t@echo $(INSTSONAME)\ninclude Makefile\n' | \
|
||||
emake --no-print-directory -s -f - 2>/dev/null)
|
||||
newins "${S}"/Tools/gdb/libpython.py "${libname}"-gdb.py
|
||||
|
||||
newconfd "${FILESDIR}/pydoc.conf" pydoc-${PYVER}
|
||||
newinitd "${FILESDIR}/pydoc.init" pydoc-${PYVER}
|
||||
sed \
|
||||
-e "s:@PYDOC_PORT_VARIABLE@:PYDOC${PYVER/./_}_PORT:" \
|
||||
-e "s:@PYDOC@:pydoc${PYVER}:" \
|
||||
-i "${ED}etc/conf.d/pydoc-${PYVER}" "${ED}etc/init.d/pydoc-${PYVER}" || die "sed failed"
|
||||
|
||||
# for python-exec
|
||||
local vars=( EPYTHON PYTHON_SITEDIR PYTHON_SCRIPTDIR )
|
||||
|
||||
# if not using a cross-compiler, use the fresh binary
|
||||
if ! tc-is-cross-compiler; then
|
||||
local -x PYTHON=./python
|
||||
local -x LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}.
|
||||
else
|
||||
vars=( PYTHON "${vars[@]}" )
|
||||
fi
|
||||
|
||||
python_export "python${PYVER}" "${vars[@]}"
|
||||
echo "EPYTHON='${EPYTHON}'" > epython.py || die
|
||||
python_domodule epython.py
|
||||
|
||||
# python-exec wrapping support
|
||||
local pymajor=${PYVER%.*}
|
||||
mkdir -p "${D}${PYTHON_SCRIPTDIR}" || die
|
||||
# python and pythonX
|
||||
ln -s "../../../bin/${abiver}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/python${pymajor}" || die
|
||||
ln -s "python${pymajor}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/python" || die
|
||||
# python-config and pythonX-config
|
||||
# note: we need to create a wrapper rather than symlinking it due
|
||||
# to some random dirname(argv[0]) magic performed by python-config
|
||||
cat > "${D}${PYTHON_SCRIPTDIR}/python${pymajor}-config" <<-EOF || die
|
||||
#!/bin/sh
|
||||
exec "${abiver}-config" "\${@}"
|
||||
EOF
|
||||
chmod +x "${D}${PYTHON_SCRIPTDIR}/python${pymajor}-config" || die
|
||||
ln -s "python${pymajor}-config" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/python-config" || die
|
||||
# 2to3, pydoc, pyvenv
|
||||
ln -s "../../../bin/2to3-${PYVER}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/2to3" || die
|
||||
ln -s "../../../bin/pydoc${PYVER}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/pydoc" || die
|
||||
ln -s "../../../bin/pyvenv-${PYVER}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/pyvenv" || die
|
||||
# idle
|
||||
if use tk; then
|
||||
ln -s "../../../bin/idle${PYVER}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/idle" || die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if has_version "<${CATEGORY}/${PN}-${PYVER}" && ! has_version ">=${CATEGORY}/${PN}-${PYVER}_alpha"; then
|
||||
python_updater_warning="1"
|
||||
fi
|
||||
}
|
||||
|
||||
eselect_python_update() {
|
||||
if [[ -z "$(eselect python show)" || ! -f "${EROOT}usr/bin/$(eselect python show)" ]]; then
|
||||
eselect python update
|
||||
fi
|
||||
|
||||
if [[ -z "$(eselect python show --python${PV%%.*})" || ! -f "${EROOT}usr/bin/$(eselect python show --python${PV%%.*})" ]]; then
|
||||
eselect python update --python${PV%%.*}
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
eselect_python_update
|
||||
|
||||
if [[ "${python_updater_warning}" == "1" ]]; then
|
||||
ewarn "You have just upgraded from an older version of Python."
|
||||
ewarn
|
||||
ewarn "Please adjust PYTHON_TARGETS (if so desired), and run emerge with the --newuse or --changed-use option to rebuild packages installing python modules."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect_python_update
|
||||
}
|
@ -0,0 +1,72 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit java-pkg-opt-2
|
||||
|
||||
DESCRIPTION="A compiler for the Perl 6 programming language"
|
||||
HOMEPAGE="http://rakudo.org"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/rakudo/${PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="${HOMEPAGE}/downloads/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
# TODO: add USE="javascript" once that's usable in nqp
|
||||
IUSE="clang java +moar test"
|
||||
REQUIRED_USE="|| ( java moar )"
|
||||
|
||||
CDEPEND="~dev-lang/nqp-2017.04:${SLOT}=[java?,moar?,clang=]"
|
||||
RDEPEND="${CDEPEND}
|
||||
java? ( >=virtual/jre-1.7 )"
|
||||
DEPEND="${CDEPEND}
|
||||
clang? ( sys-devel/clang )
|
||||
java? ( >=virtual/jdk-1.7 )
|
||||
>=dev-lang/perl-5.10"
|
||||
|
||||
pkg_pretend() {
|
||||
if has_version dev-lang/rakudo; then
|
||||
ewarn "Rakudo is known to fail compilation/installation with Rakudo"
|
||||
ewarn "already being installed. So if it fails, try unmerging dev-lang/rakudo,"
|
||||
ewarn "then do a new installation."
|
||||
ewarn "(see Bug #584394)"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local backends
|
||||
use moar && backends+="moar,"
|
||||
use java && backends+="jvm"
|
||||
|
||||
local myargs=(
|
||||
"--prefix=/usr"
|
||||
"--sysroot=/"
|
||||
"--sdkroot=/"
|
||||
"--backends=${backends}"
|
||||
)
|
||||
|
||||
perl Configure.pl "${myargs[@]}" || die
|
||||
|
||||
if use java; then
|
||||
NQP=$(java-pkg_getjars --with-dependencies nqp)
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake DESTDIR="${D}" NQP_JARS="${NQP}" BLD_NQP_JARS="${NQP}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" NQP_JARS="${NQP}" BLD_NQP_JARS="${NQP}" install
|
||||
}
|
||||
|
||||
src_test() {
|
||||
RAKUDO_PRECOMP_PREFIX=$(mktemp -d) default
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST cppo-1.4.1.tar.gz 26547 SHA256 5b7efc30256e1568a0f39ddeadc54ff57c4ec1b183ae034db36e27c0ad51f509 SHA512 efbc82d2eb31b9e16c43ffbd7a2a56a5356934c32bee62205f55295a9342e4747ce13b9ad6572f3180e656b215a9255d402712ff7bae1ef9e8eccdabb2d00c16 WHIRLPOOL 3d6b6a44282e9c1e96840da1bfb7b0641c7349bb6099cd61f62a00487696b65db0075a69a6375484c16c1e11d54f36dccffcb86d92a960594d8d4c8c256b14ee
|
||||
DIST cppo-1.5.0.tar.gz 26963 SHA256 00c6d6d470da0d529928f0a82d5f88052c4df279a70da20e0b4f025b26a36819 SHA512 2cc144815b818242b6bb1dee213aa65345620eaf1afe59b25d118399d9a02d577aa9dc61dd5756661e44411acccdb2fc0320a8984e5f0d2a7390fcc816bac7e0 WHIRLPOOL 02fd8fb5c5fd3b7287c69997eefdc6f46300eed0031b9ffa8ea545f9b31b4a33d5af9e5038216cd4f8a57103563f1bc6650e7bfce12fc82f07d4c49c2438a6b1
|
||||
|
@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit findlib
|
||||
|
||||
DESCRIPTION="An equivalent of the C preprocessor for OCaml programs"
|
||||
HOMEPAGE="http://mjambon.com/cppo.html https://github.com/mjambon/cppo/"
|
||||
SRC_URI="https://github.com/mjambon/cppo/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
SLOT="0/${PV}"
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~x86"
|
||||
|
||||
IUSE="examples +ocamlopt"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-lang/ocaml-3.12:=[ocamlopt?]
|
||||
dev-ml/ocamlbuild:=[ocamlopt?]"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_compile() {
|
||||
use ocamlopt || sed -e 's/ocamlbuild_cppo.cmx/ocamlbuild_cppo.cmo/' -i Makefile
|
||||
emake BEST="$(usex ocamlopt '.native' '.byte')"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
findlib_src_preinst
|
||||
mkdir -p "${ED}"/usr/bin
|
||||
emake PREFIX="${ED}"/usr BEST="$(usex ocamlopt '.native' '.byte')" install
|
||||
dodoc README.md Changes
|
||||
if use examples ; then
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST merlin-2.5.3.tar.gz 3090459 SHA256 3538a02ad025090240825596fc4e1f86806d3808154d3135b090cc1a1192c2ca SHA512 7399b8afc3cd6c0c26fab44aec80cc7614cbe148bafea3512be9a4165b0ba0c93bc738e2d7e5dcc4b51208c9b9f185cc83e408c484e38b2e72e357cefb9ad5f0 WHIRLPOOL 33f7a83f9bcdcfab4f681dddb6153d0aa7c9177b733e26a24119e50bb3521e310e831bbfbcdde24e27c7cf8a5c778384b6e65e947bee0c0852d1e184e56df9e5
|
||||
DIST merlin-2.5.4.tar.gz 3094234 SHA256 e4e53f680e5e143ed0fb1a5dee4aba2e39e65e2d5619247526b85f5d6cc77e00 SHA512 ca6a1cc1da0b0211bac4f0e8b9c78b531fdd0ed97f7d978ae740b7bf7a97bb02d318bde97d8a9f143b6207b72bd47eb626748b86feebf6a60bcd222d5bddb759 WHIRLPOOL 50c33f65da5dfa9949fa1e21360580f52d5d73092a5ec791085bc53d9d834765a745d8f14a9df8717812d0f565c6c871a38a624e7ae885f7367effabcfb99daa
|
||||
|
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit findlib vim-plugin
|
||||
|
||||
DESCRIPTION="Context sensitive completion for OCaml in Vim and Emacs"
|
||||
HOMEPAGE="https://github.com/ocaml/merlin"
|
||||
SRC_URI="https://github.com/ocaml/merlin/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
dev-lang/ocaml:=
|
||||
dev-ml/yojson:=
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
|| ( app-editors/vim[python] app-editors/gvim[python] )"
|
||||
|
||||
src_configure() {
|
||||
./configure \
|
||||
--prefix "${EPREFIX}/usr" \
|
||||
--vimdir "${EPREFIX}//usr/share/vim/vimfiles" \
|
||||
|| die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DIST_AUTHOR=SCOTTW
|
||||
DIST_VERSION=1.45
|
||||
DIST_EXAMPLES=("example/*")
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Read/Write Vixie compatible crontab(5) files"
|
||||
LICENSE="Artistic"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="virtual/perl-ExtUtils-MakeMaker"
|
@ -1,2 +1,3 @@
|
||||
DIST Config-Crontab-1.40.tar.gz 40769 SHA256 25b5893f2fb78ee1da82579afa627e8527d8ca86d08204e28283c455fe7ffb03 SHA512 1894868e92637aef1d5eaed22b8387ebe9546d0804d375e894e7acaed4eeece28dcf78eeb2658455885d1a6dc1683b0a6839c747dbd939f128d66df211d8e15f WHIRLPOOL 66f63cc7024955cd8da5dc3a999348f168b76f36773f251e6e4dbea79023379ea066fdd0d8a727813664f95fe32590a6a56f8842a58048ceb00db878bba6fad0
|
||||
DIST Config-Crontab-1.41.tar.gz 40838 SHA256 f47256336581976a5974240c35f66ef32a33ed85545cf1bb3b5f7b1b7bcb209e SHA512 d8df15532d5fd57453678eccf000e5a5c0cc51ddc466fc2b5e3580f81ae82f7390795ff011f90acbb5a728bbe1a90f113104d8b8f43361e756fe72ce4d35936e WHIRLPOOL cbf6829dee068a106444dbd09181d413329122a51547e861c3c9b4a0f37e62f2b87541f75a3e3bc94a16a25e62c78f348eed28fbe2b261165d85d342e6d4e490
|
||||
DIST Config-Crontab-1.45.tar.gz 41420 SHA256 170f9f633afd52009f9b87a6a63b1071d574e27b853294eefa19249fc694255f SHA512 b4aa82341b113c698a8a5434ac406217877f27b5eb876d409a675daf8c9a5f5ed56cccac3a9e775437427691547b5c3b7829a5c35edee4c9fe33d9cace0879e9 WHIRLPOOL d574120e79a9441f2266d104fd11834f96cb5ad82dc4ce62b6a7c5ac04bb5583f0e59b4b2a10044eb9e94bb275d4db1c807fd8078d5afaad8ece76b1f9834f1c
|
||||
|
@ -1 +1 @@
|
||||
DIST json-schema-2.0.0.tar.gz 21319 SHA256 bdbaedf8be4bb2ceb8019c651b0579a4b9723dc95e11f0aa683cfe193064e392 SHA512 8efa6ad3175b474e3c073816651d77e80e3ec7865aa6a04f8c7eff7a91831ab1eb1b0b6968d542aa6d10e1e0a1171ec05889b817713f1d740afeb31c5f124a52 WHIRLPOOL 5af244685521d57b663faf78f287a978e7b8bb89526ad8f282fb7d57490540fd483501752bc27b75d6b2de9699d2684352a0e5711fed98b5c6e9cf2f0437b0d9
|
||||
DIST json-schema-4.1.0.tar.gz 24772 SHA256 8470ef4f5b55018102911a2403184215e5c3459ceb6bf3ce9bdb8cceed469284 SHA512 5c6bda8c34012bc20d9bf604a6183d50f451327bded70d94415450d2b3cc8e7f6f416ddd8b13db0aeb487fe031fe3185aebd9c97e4c1f79c866dcbc3463f64d0 WHIRLPOOL a6b9db1b0838f7887b3408eba72655d7108ffd9198a7ca15f89538a743b36ac167b4334a9de902eca61d751a060fb373bab1083502c4b198142a54cdd560f269
|
||||
|
@ -1,22 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="PHP implementation of JSON schema"
|
||||
HOMEPAGE="https://github.com/justinrainbow/json-schema"
|
||||
SRC_URI="https://github.com/justinrainbow/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-lang/php:*
|
||||
dev-php/fedora-autoloader"
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/php/JsonSchema"
|
||||
doins -r src/JsonSchema/. "${FILESDIR}"/autoload.php
|
||||
dodoc README.md
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="PHP implementation of JSON schema"
|
||||
HOMEPAGE="https://github.com/justinrainbow/json-schema"
|
||||
SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
# Tests are not in the release tarball
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-lang/php:*
|
||||
dev-php/fedora-autoloader"
|
||||
DEPEND="
|
||||
test? (
|
||||
${RDEPEND}
|
||||
dev-php/phpunit )"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
if use test; then
|
||||
cp "${FILESDIR}"/autoload.php "${S}"/autoload-test.php || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/php/JsonSchema"
|
||||
doins -r src/JsonSchema/. "${FILESDIR}"/autoload.php
|
||||
dodoc README.md
|
||||
}
|
||||
|
||||
src_test() {
|
||||
phpunit --bootstrap "${S}"/autoload-test.php || die "test suite failed"
|
||||
}
|
@ -1 +1 @@
|
||||
DIST jsonlint-1.4.0.tar.gz 10893 SHA256 e97ff9b23037a2d6ec3d548a273c345dea097b66e72d5bb8b30e66ce765fe46d SHA512 29a23a86ece17f43a471ba8952785e820eff537ddce019935d776492a0d0ccf68c5f0e1f5f3d63b8b12efbe0acc1f7e3fa91d4b9d48bae2e1eec4f3c4b9094b1 WHIRLPOOL 90d08bbe063c61066e3a29ce391934e906ceaf9ae2e80ac67e57f94088e14f1dd27e1faf3f5331cb35c6b209a3e38f35634154cad5b9d80cd62389a0dfd99929
|
||||
DIST jsonlint-1.6.0.tar.gz 11327 SHA256 8b4ca6c92839ae78e128381330647fca9352245acc330d8794a284514fc3619b SHA512 16538781807a4ca73de83e7be69d0fc2b530dd9b25f2b9a2ee3f1156dd5ebccb79e9489b873f307718ca2da658a1ae7cef5144adb32f2d1e5c34bd192d496c79 WHIRLPOOL 6d628e1c03e565267196be72f1d9610c79388bfe775d9a2681edc0e5aaebcf776eec6123036b3effd4b69338d52fdb7b3e69fa33930436ee113cf439ecbc54f3
|
||||
|
@ -1,11 +1,11 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="JSON Lint for PHP"
|
||||
HOMEPAGE="https://github.com/Seldaek/jsonlint"
|
||||
SRC_URI="https://github.com/Seldaek/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
@ -1 +1 @@
|
||||
DIST phpdepend-2.3.2.tar.gz 187985 SHA256 6edbb892ece8a9e811d9bee071442ca9b393ac3a4110b3d1db45e0c9c0b03887 SHA512 00c9af24f9e17f1935d2d0315b4204d47d4a6d1ebcf4e22e9860ff4eb9292e25da7171f2a95b2ba545872b55042f3ac6c495105f67635fdd1386e96494f8ccdd WHIRLPOOL 42bd82efca09fd672c6c087a8067f02f9b8d6717df2023ab38499f8833a81a93833940e466707f985cdd938c6d86075ad526af02e4fe53582c23b3e392b64ca1
|
||||
DIST phpdepend-2.5.0.tar.gz 190823 SHA256 00625ec4d612f4159d1ff2abed9f494f3f9c72354c3895663ce4821ef001c10c SHA512 927ff961773c3b2076b11b374035482c05b2da3a9777418c6fe0a491bd20eec431bfd75cd706674e231c9f73d97b6b0236eea12794cfff2d8ad52a6a6170e137 WHIRLPOOL 5a091e47abd06857644e4f8462ee1019c077ab2f0cc67e28e37c4225c13362e4de43eb525656a037281421e569dc0c4f890b8c53a383ff4d351e39b20c49e11b
|
||||
|
@ -1 +1 @@
|
||||
DIST symfony-config-2.8.15.tar.gz 51013 SHA256 75b0a514b92f86e8721bd3e6c313ca1b6c095a372356b8df8f38e39a67a5e1e3 SHA512 96ae8b84d97b5ce79b7eee589de0423ee998ae00e5f1d5cb25befa92e605903b9f8aabb99b9afbc100891d9399f2c9cf59d63be559644bb8531b050fab817538 WHIRLPOOL c8629dd77c5d8f2b0455939f1f6514fa1f7e694e2fa740d142f00352727a443921adb3e0d504f145efa40e6ee3928cb808dd1313bee6892378cee491acb33384
|
||||
DIST symfony-config-2.8.19.tar.gz 52568 SHA256 0804dde6ea36afe5f428f838288e22bb8e02e123b970f2ae2f3fef1f18f0f294 SHA512 00d89ec1c78245429652ed48639fe54188c9cafcb7d3cc7978054d26d2e6be44addc738750575a134644b7b9735e805e95cb2890e9c4063dc7359e3b12da6942 WHIRLPOOL eae0fae487163864017097c3172ae151617818ed363618f0df66b12e4d371240609e39ed4446cf5a94da99a08ed8d0120677fd71d3e49a7f55502a41ad055bfb
|
||||
|
@ -1,8 +1,15 @@
|
||||
<?php
|
||||
/* Autoloader for dev-php/symfony-config and its dependencies */
|
||||
|
||||
$vendor_dir = '/usr/share/php';
|
||||
|
||||
if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
|
||||
require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
|
||||
require_once("${vendor_dir}/Fedora/Autoloader/autoload.php");
|
||||
}
|
||||
|
||||
\Fedora\Autoloader\Autoload::addPsr4('Symfony\\Component\\Config\\', __DIR__);
|
||||
|
||||
// Dependencies
|
||||
\Fedora\Autoloader\Dependencies::required(array(
|
||||
"${vendor_dir}/Symfony/Component/Filesystem/autoload.php"
|
||||
));
|
||||
|
@ -1 +1 @@
|
||||
DIST symfony-filesystem-2.7.20.tar.gz 13679 SHA256 b08c32bf2340bc7b107ec4fdff2d32634528655991e4331d4b4d72e68e816674 SHA512 ebab6760aa38577162da6d12f4c83bf1ef5fad961cc979986e1f23c6624d80099fe3853bd0dc8113b06d8258fe1b34a4a34fa737048fa500751a63a425018359 WHIRLPOOL a65c1de2a6b98713e8aaa23fa4d3fce13f5c4c15dddf7669f9e9474ff87db5c21397a66520ffebc3e6bdaa4252e6cc61e774c4ff746907efd5a266810f47fb07
|
||||
DIST symfony-filesystem-3.2.6.tar.gz 16952 SHA256 bb0802964c58753478c422e8a5dc2b5d62201a49127fa7d036bbce40fb603801 SHA512 6f2d9d772cffc77a8861a8bc70938dd5d1b984b5f95d515e93c3705647622e42bdb83a5328c81aed88bd5b2673ee4f1daf4706f0ca99cdab2c47aa0ce9630aae WHIRLPOOL fbdeeefe74225bdaee12ee57a599d74cf6657faaf50ca192a6e4d0d1c5c0db562e29786306768169aa6a961aeb92bbd099425c19a91e3e77f54f3e80f5ea4753
|
||||
|
@ -1,24 +1,41 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Symfony Filesystem Component"
|
||||
HOMEPAGE="https://github.com/symfony/filesystem"
|
||||
SRC_URI="https://github.com/symfony/filesystem/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-lang/php:*
|
||||
dev-php/fedora-autoloader"
|
||||
DEPEND="
|
||||
test? (
|
||||
${RDEPEND}
|
||||
dev-php/phpunit )"
|
||||
|
||||
S="${WORKDIR}/filesystem-${PV}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
if use test; then
|
||||
cp "${FILESDIR}"/autoload.php "${S}"/autoload-test.php || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/php/Symfony/Component/Filesystem"
|
||||
doins -r . "${FILESDIR}"/autoload.php
|
||||
dodoc README.md
|
||||
}
|
||||
|
||||
src_test() {
|
||||
phpunit --bootstrap "${S}"/autoload-test.php || die "test suite failed"
|
||||
}
|
@ -1 +1 @@
|
||||
DIST symfony-finder-2.7.20.tar.gz 36139 SHA256 87d98e578e2a594fd3a1e17b43910de336f498489a1e5744c1a1f4bc047e63e0 SHA512 b12f8f5c37e983799875e5aa5ed58a200147edf1f6f3d9fc6b3dc5b0b063dd057a53e0e71342b141b29c3aa934029ea5b67d4c1085e868197ab6e4b55eb7eab5 WHIRLPOOL 2c3083fd50db96282945148dbba33902021effaffdbd9251df050b3e40cd42b69e52ce2ef5131cfbd724ee8f85bdac75149c9e4665dcb27118d3901cb60f0b13
|
||||
DIST symfony-finder-3.2.6.tar.gz 24432 SHA256 410e46ac676d532608a8e29885e4066c4108a970f6e03e0ff80155706ac06580 SHA512 ffcff1ff1ae09b7a8a02cade82f97f4e634e24a8d1466d05e1940682be712e9bf58f5df511d650a791d2a564bb1f3fa7fdbcee8f5c5206cda398102b3355546d WHIRLPOOL dd4fa1740d6deb320d334433cfafd3af3b089c3cdc1d62bddf73d20f0e773137ddf86643413ed0e2cf7ba86d04cabfc4a5e1aa08caa4bf7e60e7616191c57aaf
|
||||
|
@ -1,24 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Symfony Finder Component"
|
||||
HOMEPAGE="https://github.com/symfony/finder"
|
||||
SRC_URI="https://github.com/symfony/finder/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-lang/php:*
|
||||
dev-php/fedora-autoloader"
|
||||
|
||||
S="${WORKDIR}/finder-${PV}"
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/php/Symfony/Component/Finder"
|
||||
doins -r . "${FILESDIR}"/autoload.php
|
||||
dodoc README.md
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION=" Symfony Finder Component"
|
||||
HOMEPAGE="https://github.com/symfony/finder"
|
||||
SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> symfony-finder-${PV}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
# 20170204-The test suite is broken in 3.1.10 on php-5.x
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-lang/php:*
|
||||
dev-php/fedora-autoloader"
|
||||
DEPEND="
|
||||
test? (
|
||||
${RDEPEND}
|
||||
dev-php/phpunit )"
|
||||
|
||||
S="${WORKDIR}/finder-${PV}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
if use test; then
|
||||
cp "${FILESDIR}"/autoload.php "${S}"/autoload-test.php || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/php/Symfony/Component/Finder"
|
||||
doins -r Comparator Exception Iterator Finder.php \
|
||||
Glob.php LICENSE SplFileInfo.php "${FILESDIR}"/autoload.php
|
||||
dodoc README.md
|
||||
}
|
||||
|
||||
src_test() {
|
||||
phpunit --bootstrap "${S}"/autoload-test.php || die "test suite failed"
|
||||
}
|
@ -1 +1 @@
|
||||
DIST symfony-process-2.8.12.tar.gz 29787 SHA256 86cd9300ecb870a88d843363fa0a7415e0ee3b7815c94f76ccb21b901075337b SHA512 2956572f394aa58e784f7b2b3922f4c8f1d71d5eb9859b757ce5986776d3e960ffbfcee2fb55ff89c176362a5ee0276d3b71ef00ae7338be1761bd88b4116294 WHIRLPOOL 8ede35f972146645c4d75855cd9b8ea0c51a746698d952c3c6716ae0fbe138abe551f432a2bd9e2afe3945cff7ea9021bb102486fbc8c60c2528f78d083983ee
|
||||
DIST symfony-process-3.2.6.tar.gz 31684 SHA256 aaf955e88bc79f3304cebbb272c12b9faa9b07354ba3dce8793fa1a0766400b9 SHA512 8fd7712b2f63a46b6dea0b6cb76825c1e4c7b6a33123fe0949fedec820e599ffe5175bac567e8b453be7964f8b070bc2a2b9554b102a33834dfdbe959a23a3d4 WHIRLPOOL 9607ee99bd0314ad32d4ec5be42f4b2e4ceb3d7a953a5133dcb2a32e50ce7b1572dbd092ab92f4e01b441531b8a9751b0a7b971eb4df97d87acb44312182aa1f
|
||||
|
@ -1,24 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Symfony Process Component"
|
||||
HOMEPAGE="https://github.com/symfony/process"
|
||||
SRC_URI="https://github.com/symfony/process/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-lang/php:*
|
||||
dev-php/fedora-autoloader"
|
||||
|
||||
S="${WORKDIR}/process-${PV}"
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/php/Symfony/Component/Process"
|
||||
doins -r . "${FILESDIR}"/autoload.php
|
||||
dodoc README.md
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Symfony Process Component"
|
||||
HOMEPAGE="https://github.com/symfony/process"
|
||||
SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-lang/php:*
|
||||
dev-php/fedora-autoloader"
|
||||
DEPEND="
|
||||
test? (
|
||||
${RDEPEND}
|
||||
dev-php/phpunit )"
|
||||
|
||||
S="${WORKDIR}/process-${PV}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
if use test; then
|
||||
cp "${FILESDIR}"/autoload.php "${S}"/autoload-test.php || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/php/Symfony/Component/Process"
|
||||
doins -r Exception/ Pipes/ ExecutableFinder.php InputStream.php \
|
||||
LICENSE PhpExecutableFinder.php PhpProcess.php ProcessBuilder.php \
|
||||
Process.php ProcessUtils.php "${FILESDIR}"/autoload.php
|
||||
dodoc README.md
|
||||
}
|
||||
|
||||
src_test() {
|
||||
phpunit --bootstrap "${S}"/autoload-test.php || die "test suite failed"
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST asn1crypto-0.22.0.tar.gz 84508 SHA256 cbbadd640d3165ab24b06ef25d1dca09a3441611ac15f6a6b452474fdf0aed1a SHA512 fdc98f71ec3b744e69a75909b5b0a8381fb82d448941a6e1059823af47ca107218e1dbe6ff192e2173f11fc2454be1afcd387d801dc8e716451179857d71f8b8 WHIRLPOOL 83422e7f17c5e8c5ff5dff4e6e295596d4649f163bab8151b6885df48cdb2e61730b7abba5af5b5d44781078af69fe6495a1d1a20bc1fd1927f64f726bbdfdb1
|
@ -0,0 +1,21 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python ASN.1 library with a focus on performance and a pythonic API"
|
||||
HOMEPAGE="https://github.com/wbond/asn1crypto/ https://pypi.python.org/pypi/asn1crypto/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND=""
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">cryptography</remote-id>
|
||||
<remote-id type="github">pyca/cryptography</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,2 +1,3 @@
|
||||
DIST certifi-2016.9.26.tar.gz 374637 SHA256 8275aef1bbeaf05c53715bfc5d8569bd1e04ca1e8e69608cc52bcaac2604eb19 SHA512 e89c07dab0d926754012c89e12fff9ee59f771a5edd24130c8adb7ab32076971f4ea6d266ed9f3ed2010c1aba403505f5b5e97af3b5efcf3d039ddc7a7b2af39 WHIRLPOOL 52412b9cf57544ac19e89a493bf65dc212a06f053778b7c5de3d6254a7189fed9f051af99e0176efec6d7c318760f9a9fca51d1ddcf56024c973a6ffbe803496
|
||||
DIST certifi-2017.1.23.tar.gz 380397 SHA256 81877fb7ac126e9215dfb15bfef7115fdc30e798e0013065158eed0707fd99ce SHA512 8e7a03236458567545739bdef1526f81f4cef61d6cc708048f2411a0387a9b1b38d21a83739cc5207bd590d67c876e99ef1e22916065a371dae30b4a94cc1e49 WHIRLPOOL df50f3c715802cdff496a482d97d3431b79db629de3708eeac910c423c0b59c5222f73937f349dad114a7fc311f4c31fde39d1a4c0632d7f2486dd463815ff26
|
||||
DIST certifi-2017.4.17.tar.gz 373512 SHA256 f7527ebf7461582ce95f7a9e03dd141ce810d40590834f4ec20cddd54234c10a SHA512 0bd054bb2eaa8c196a94a0b7865d2488aea1fcb5e66ddc8c776c68cfa518a198a8c67bed5b485bf55db3f55d26c0ab2b4fc07839bb9175a50cb525e25d3869a5 WHIRLPOOL f949eefd72c41900202944315f058c0f8bab88883a0be1283bddadec4a273b138d012f37cda61d0f5656baadb304d7340816d953db53f624c9bd5c8545ebdf86
|
||||
|
@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python package for providing Mozilla's CA Bundle"
|
||||
HOMEPAGE="http://certifi.io/ https://pypi.python.org/pypi/certifi"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
@ -1,3 +1,4 @@
|
||||
DIST cryptography_vectors-1.3.4.tar.gz 25820443 SHA256 4414bce0a3d7f0a3cdbf44da75ae5c7c586fd765c777d99023eb5a3ac58f0196 SHA512 5b93fb7c50b93449ab15f62943f944c352e3a375c3a89f494cdd34c5c317b8d435ca0079a74fc6a924a1fc235e3c9cdf0d50baf0905d6a7d6161c07aecefe3fe WHIRLPOOL ce2589f31bff099ab73bc33ca42a51bbb505f514623197fcfada375d29bb1bc33c6beca5759c57fb925b3ea68a106891e884328c55116487a4c10abfab9c6db9
|
||||
DIST cryptography_vectors-1.7.1.tar.gz 26652514 SHA256 47e91b70bbf6852cb96a478cb715ca9234e5ff049c1956088c45c9f738f955f4 SHA512 2edaa91198adcf5e2523ea8d3d25a8cd7df85e6f6c06618301f87af6f0133f5d4672721082205a9a3c0c648390ee772e6107eb6ba76e96649bc2832676df8283 WHIRLPOOL 56e880f97605676dab714ef36bdf93032772b28b977a2ea74101179a20f704645cdb2670613d68eff340149142323d6ef6adf1fe066fd31e85e5e0ccacec34d6
|
||||
DIST cryptography_vectors-1.7.2.tar.gz 26652633 SHA256 4be4eee8a11deee5c2f00e389b49de8ce2642130282d1cd0adffb2f7dbe0acdc SHA512 997aa703649cb4b1dc7df37ed2843a6c06a3871df3d1bcf9ebde6466c32103512225d668e6eee62c89e20b74a5885aa2974d82b2cbf3065a902d059268bf1137 WHIRLPOOL 41f9aad77f27c0a0c6bb14ac2b87606a2a316640369e1abccaab82b827759f9f67519b320fade72ea12c46ea4306e8fce4cd5604c9174d62f475d859199b52ac
|
||||
DIST cryptography_vectors-1.8.1.tar.gz 26653746 SHA256 2fd61facea08800ca98ac923f6d02f48a7ae6648025b29cdeb51987c1532add6 SHA512 78cf2a50ebbf0b11c57a53ac683a7ee39f157c7ad04d6374cfe5448bc474964ef61f74d0edd63b5a6b871b4efacc0b3fb9ea8d6025a99567ad2e6a5ec744255d WHIRLPOOL e982e3ed38e2b2c6ba5de4f65d86e13360b6418cdfc2b6191d3b4ef63ed740f3a59de8386f45b21149f11801bccf85e500462c1138af06db2754ef29d11a5c6d
|
||||
|
@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN=${PN/-/_}
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
DESCRIPTION="Test vectors for the cryptography package"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/cryptography-vectors/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( Apache-2.0 BSD )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND=""
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
@ -1,3 +1,4 @@
|
||||
DIST cryptography-1.3.4.tar.gz 384109 SHA256 423ff890c01be7c70dbfeaa967eeef5146f1a43a5f810ffdc07b178e48a105a9 SHA512 abbc027433658702d2331282c9f63d99ea2eb42f5cdfe066b2b0ae6d9b86a35e23891716bb2e9e2ca707aa0d38fb69cba22ec5d95d2b9073047444fdae7a9224 WHIRLPOOL 5bd007cfe304620a7237b0f63fbe87ab22bd1cc252941f4815398382122b1c56c5a22e2dc35ce86aba2c2b2d9403de3313bafde23a3695bd26e4eb0f23c9dea9
|
||||
DIST cryptography-1.7.1.tar.gz 420673 SHA256 953fef7d40a49a795f4d955c5ce4338abcec5dea822ed0414ed30348303fdb4c SHA512 fb88b0ee9e314526fcdbb6d35da409b7335c7408a69d2350c58379471d2b9d76021010955629cf776d26312f22d4f8aa3f135955a19dfbff9d602176c9bbfd40 WHIRLPOOL 24b705889b95b568000600662ec82e3f5571582525db3571f3285b99f985b0a21eefd14dccc577700bc082891f7d3c563ac78a8bfd8d810da3ff38914ae5a86d
|
||||
DIST cryptography-1.7.2.tar.gz 420867 SHA256 878cb68b3da3d493ffd68f36db11c29deee623671d3287c3f8d685117ffda9a9 SHA512 8ddd119385064e1f8288ff318ec16f500b5c125a3811ccb306aeb2664fac495fcdd3cb5a7cbacd10156505c9526b9cdbd66860b35bbcd2f9a6bb285dd6cba8c5 WHIRLPOOL 531265115a6573c54e2cf85a03f1ed0ebe033fd7818168a3bcda938458f9a32464d7de0c226f46a300635ee52e4995285889bb693bc56f77f816bc81d52bfc61
|
||||
DIST cryptography-1.8.1.tar.gz 423560 SHA256 323524312bb467565ebca7e50c8ae5e9674e544951d28a2904a50012a8828190 SHA512 273c8ca4ad6c9d1151a8a731d148d02e619e14e37df25dc26030b0a90f895b88fbf4d3e320aec5ea7af4a8fcc58f720c61f48968f912c69156d4e0e794743345 WHIRLPOOL ff760c9dc7dfbba355afde726a9154bcf45102e135b95b431aab5ac34c8003edccafa646b51ca02296aa55f244b0ff752d8d1b775cb76a1c9f15d347d505e8ce
|
||||
|
@ -0,0 +1,50 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Library providing cryptographic recipes and primitives"
|
||||
HOMEPAGE="https://github.com/pyca/cryptography/ https://pypi.python.org/pypi/cryptography/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( Apache-2.0 BSD )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="libressl test"
|
||||
|
||||
RDEPEND="
|
||||
!libressl? ( >=dev-libs/openssl-1.0.2:0= )
|
||||
libressl? ( dev-libs/libressl )
|
||||
$(python_gen_cond_dep '>=dev-python/cffi-1.4.1:=[${PYTHON_USEDEP}]' 'python*')
|
||||
$(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' python2_7 python3_3 pypy{,3})
|
||||
>=dev-python/idna-2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/asn1crypto-0.21.0[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.4.1[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep '>=virtual/pypy-2.6.0' pypy )
|
||||
virtual/python-ipaddress[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-python/setuptools-1.0[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
~dev-python/cryptography-vectors-${PV}[${PYTHON_USEDEP}]
|
||||
dev-python/hypothesis[${PYTHON_USEDEP}]
|
||||
dev-python/iso8601[${PYTHON_USEDEP}]
|
||||
dev-python/pretend[${PYTHON_USEDEP}]
|
||||
dev-python/pyasn1-modules[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-2.9.0[${PYTHON_USEDEP}]
|
||||
dev-python/pytz[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
DOCS=( AUTHORS.rst CONTRIBUTING.rst README.rst )
|
||||
|
||||
python_test() {
|
||||
distutils_install_for_testing
|
||||
|
||||
py.test -v -v -x || die "Tests fail with ${EPYTHON}"
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST oslo.middleware-3.19.0.tar.gz 41711 SHA256 f36c37b9d8f4c6eccc494172569184c3f9a4028a6401e8cf75d7656fc7b1d292 SHA512 e347f9f683b8e925286390fc84eb5aebb76b6f490d564f9273b6d53762bbd9f09dab3dc5f740ab4eb0849de00381ad71264b0d8c048629b770b8740243300e50 WHIRLPOOL aa08f79b269cc1dc2c3c54f121e2de783a9f4b13c0fc1d9be492044cd4c34f59a4b2446efab2870d1cfdaa932f41cc5075ee4bd01876edb34d94b35c2d575211
|
||||
DIST oslo.middleware-3.19.1.tar.gz 43000 SHA256 a484a27276bb4fd96a21fdaa7d0da0495aa2a2887a88dcec271ffd8b8c239096 SHA512 7d387466cc1352651d81b6f874f18bfb892af8b4187c93131597cfb1e731394654cfd65a17729b22a36bd388b3eee8692936af28786812e50bb2549a76555c96 WHIRLPOOL 6942f7003d6242a12c7cb3ef27331f749244e1fe930e4817804db63c405f9a6c6da3bf07cff2a60b24d38c3aaebf8aac835168ba704c4f3a427590e0284c36fb
|
||||
DIST oslo.middleware-3.23.1.tar.gz 52469 SHA256 fab9a0779ff196020875c7e47e6c36b9d6c9468063645b857e687114e70a8019 SHA512 155f88184216ef18a265b996973b616a3b7a9e52618d95235a396e099bcfb5f51a5dded8e1f039df4d648a0b779c8a6daab9d6b8ff091981c17524a8521ac72a WHIRLPOOL 683d78da63af0d68b6301aa718562cd29f8dc09511df53fb0394311bbda7727edadd975401f81e8ee5c6f35a4e9e8d636bd140b786fec4e7f9c3b0f0015f02e8
|
||||
DIST oslo.middleware-3.8.0.tar.gz 39756 SHA256 2d985b238182cf70c1adbe1a041eb96eacde3106751fe2c7f1cd81d57a4dbda2 SHA512 575708b9f19938787d4d42accfbafcd63a9cee0aeb871dc0b3dd504dc4d5f97db27abfcfd7ae56dfc7d68eb670c11f93c1f79d3fd02d30247497614b3f51d80a WHIRLPOOL 2498c2a67ca83214c8512a2a86d78155638a107971d7a98a3534c625138c89f56273ab6dda437399799a6960129f4c7dfa758d2af46ede15813d7614d5db3a6d
|
||||
|
@ -0,0 +1,60 @@
|
||||
# Copyright 1999-2017 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
|
||||
|
||||
DESCRIPTION="Components injected into wsgi pipelines to intercept request/response flows."
|
||||
HOMEPAGE="https://pypi.python.org/pypi/oslo.middleware"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/oslo.middleware/oslo.middleware-${PV}.tar.gz"
|
||||
S="${WORKDIR}/oslo.middleware-${PV}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
PATCHES=(
|
||||
|
||||
)
|
||||
|
||||
CDEPEND="
|
||||
>=dev-python/pbr-1.6[${PYTHON_USEDEP}]
|
||||
<dev-python/pbr-2.0[${PYTHON_USEDEP}]"
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
${CDEPEND}
|
||||
test? (
|
||||
>=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-sphinx-2.5.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/oslo-sphinx-3.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslotest-1.10.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
|
||||
!~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}]
|
||||
<dev-python/sphinx-1.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/testtools-1.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/coverage-3.6[${PYTHON_USEDEP}]
|
||||
)"
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
>=dev-python/jinja-2.8[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-config-3.14.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-context-2.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-i18n-2.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-utils-3.16.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/stevedore-1.16.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/webob-1.2.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/debtcollector-1.2.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
python_prepare_all() {
|
||||
sed -i '/^hacking/d' test-requirements.txt || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
nosetests tests/ || die "test failed under ${EPYTHON}"
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue