parent
333139bbbd
commit
8f69b8a11f
@ -0,0 +1,29 @@
|
||||
--- a/cmake/ConkyPlatformChecks.cmake
|
||||
+++ b/cmake/ConkyPlatformChecks.cmake
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
include(FindPkgConfig)
|
||||
include(CheckFunctionExists)
|
||||
-include(CheckIncludeFile)
|
||||
+include(CheckIncludeFiles)
|
||||
include(CheckSymbolExists)
|
||||
|
||||
# Check for some headers
|
||||
@@ -119,7 +119,7 @@ if(BUILD_HTTP)
|
||||
endif(BUILD_HTTP)
|
||||
|
||||
if(BUILD_NCURSES)
|
||||
- check_include_file(ncurses.h NCURSES_H)
|
||||
+ check_include_files(ncurses.h NCURSES_H)
|
||||
find_library(NCURSES_LIB NAMES ncurses)
|
||||
if(NOT NCURSES_H OR NOT NCURSES_LIB)
|
||||
message(FATAL_ERROR "Unable to find ncurses library")
|
||||
@@ -167,7 +167,7 @@ endif(BUILD_PORT_MONITORS)
|
||||
|
||||
# Check for iconv
|
||||
if(BUILD_ICONV)
|
||||
- check_include_file(iconv.h HAVE_ICONV_H)
|
||||
+ check_include_files(iconv.h HAVE_ICONV_H)
|
||||
find_library(ICONV_LIBRARY NAMES iconv)
|
||||
if(NOT ICONV_LIBRARY)
|
||||
# maybe iconv() is provided by libc
|
@ -1,4 +1,6 @@
|
||||
DIST zeal-0.1.1.tar.gz 914203 SHA256 f4e959f9bc66a6e350ee8a33d34695379633432d103db9776c0c7a76cbc5a9d6 SHA512 388f3fdeb373d0061e72395d0e11a01cbe2365149a697cc3291b76f76f56e211afa96e6e31660ad16c88b67d62218f3d3b7a762102c0df45280bf85e2bfdfe8b WHIRLPOOL 5a5b2ecc49b724f642cb1e658d742b894620cf33f3086d5984033d9aaa7606726ff54522d2f78f1c06b555a59875e0595b2402d045728f474dd7b41cd42be3a5
|
||||
EBUILD zeal-0.1.1.ebuild 1030 SHA256 16220363ec6ba34a514d226736d61d0515adcfe60237d1d36c325dba98634002 SHA512 bbd3f6220b7ce2ae4ea0d8814c1106f79d5845d0f17e2e3d45b10ba5a3282195a97aaea74fd0fc85a96f667ad8efca14b9794cdee7af7d284dbbdce73b223e9f WHIRLPOOL 66af45e84827d8c6aeec62f9834f8c665acf3d0d67267eec905a77bf13d39b4ff220481569fd9d7c4219ad3bc3286699035748b64e59db6ea09d0790a2d85c7f
|
||||
MISC ChangeLog 592 SHA256 17c14cf57a406d1e68629ac168b03d8c9935cd3953adca4a53a8011a3e1744f7 SHA512 d2fcc6541abd6dcf976a136171cbec1a472a3cbe87a8aca53a089010e399771c97b3ee3beae4e92fb9b5872742a4303128039b3e762285d7b58e4fb5df3bbed5 WHIRLPOOL 6b9f00baa710ece10c052a7164e4d226cef14fbc13869ea6670a806150e0f77de492fe2810dbbfe9deea9c6fa6d0894d5a9790c3c85075c6541710735c44637d
|
||||
DIST zeal-0.2.0.tar.gz 914934 SHA256 a27dcdd94324575eb43a9f67aeea93b4b912691ab6df6e575d51ef104679e084 SHA512 f01655defa9e73ebe110a9d0a6ff3da316f5e124aff3f3908b884a6a33a17bffdf7b496ec8f8636deb814ccb929ef5fc5a7b5668bd7b93f558080598ad35d701 WHIRLPOOL e8e84b053837f9712619fcadc4c3c7a893a18d880a49a7f579c0a10cfbe76c0bc9bf2c74ec60f6e752012198dfdbacc0e26e45877286d6004d55321eab90d018
|
||||
EBUILD zeal-0.1.1.ebuild 1008 SHA256 203c45393a6ab9bfdc63b7494e72ce6bd2267bf61df8ebe19c3dc3325e912fda SHA512 62bd88bfc9e06a9ce976c9669ebe3814bc5d2c9173811d0e75281d988b7d7710ead9cc3f9c19e828877d1005bb0bd3dcf2213cbcd5f39d7df9c572a1648d45bb WHIRLPOOL d61165887688a64e5b1a1b86c7dd533b8ffcf987ecad1b8ffcb8110dba65f717753c314cc885ba8b451b4b689907cb0d3a3cb82f9a5fc50d8fb7204402d8dcce
|
||||
EBUILD zeal-0.2.0.ebuild 1007 SHA256 06559c52b4abfe51ff9b06a8cc49d7490fb57d7bd57e0487f695935545cdce2c SHA512 56b47adeb4e763eb2cd909f160b5f4ba7205542cab550c1f5645195f958afab0f0accf5363c489c3e985f13e89de2197c0c7b420a061d2ea109a85c2db52cd62 WHIRLPOOL ecfe231d791ff14322032afa17f0c71df3225641f874aaf100dce79a9900fdc9ca105d94dc68842042398c8cfb7cfda961a6254822c39d0dd4c01ccd10089f8d
|
||||
MISC ChangeLog 1026 SHA256 264322f48eb205963d41e40d12aee73c6227743cbfb21650baafe403aac760a7 SHA512 06d80fbf2d8d292a51b86eb4f147680cd77810bf18b69e23d01d63881f5e357f6df3b47b6b8f58a1b9c9397c9deb767a6e08b15e29b6ae6444dad5d3c927af30 WHIRLPOOL c902184cb850a7502b0d0b9850b77fe113e2a0b6bd3d7629021aa657eb7abe74414f8c6b54d559aa2067e58df10f361131f4fe96cd91b39360d6bf392865ec06
|
||||
MISC metadata.xml 407 SHA256 02c028fb0b5ac975d25944d7fffb88cfec559ae28f197e71a85fc75bbd5ac818 SHA512 b01236ce4df99ecd5c65abf7d10db2815d8a5a060d8b007824abe58ee99ecd2b11641573f5fd586b6a5390c09adb8aad6e7f4530ede8e3eba47cb996eaaf587d WHIRLPOOL 457e0f49a937ee060c7f238674b190b7279803c7b47ce8bc16af77d47516363269479270c8750dc7cfea3957a60f49958f00efabdeec5170207765e0c2a43181
|
||||
|
@ -0,0 +1,57 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit qmake-utils gnome2-utils fdo-mime
|
||||
|
||||
DESCRIPTION="Offline documentation browser inspired by Dash"
|
||||
HOMEPAGE="https://zealdocs.org/"
|
||||
SRC_URI="https://github.com/zealdocs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
S="${WORKDIR}/${P}/src"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND="
|
||||
app-arch/libarchive
|
||||
dev-qt/qtconcurrent:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtnetwork:5
|
||||
dev-qt/qtsql:5
|
||||
dev-qt/qtwebkit:5
|
||||
dev-qt/qtwidgets:5
|
||||
dev-qt/qtx11extras:5
|
||||
>=x11-libs/xcb-util-keysyms-0.3.9
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
x11-themes/hicolor-icon-theme
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
eqmake5
|
||||
PREFIX="${EPREFIX}/usr"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake INSTALL_ROOT="${D}" PREFIX="${EPREFIX}/usr" install
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
fdo-mime_desktop_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
fdo-mime_desktop_database_update
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
diff --git a/daemons/daemon-util.in b/daemons/daemon-util.in
|
||||
index 7636fc9..9c681ab 100644
|
||||
--- a/daemons/daemon-util.in
|
||||
+++ b/daemons/daemon-util.in
|
||||
@@ -31,25 +31,26 @@ set -e
|
||||
|
||||
@SHELL_ENV_INIT@
|
||||
|
||||
-readonly defaults_file="$SYSCONFDIR/default/ganeti"
|
||||
-
|
||||
-# This is a list of all daemons and the order in which they're started. The
|
||||
-# order is important as there are dependencies between them. On shutdown,
|
||||
-# they're stopped in reverse order.
|
||||
-DAEMONS=(
|
||||
- ganeti-noded
|
||||
- ganeti-confd
|
||||
- ganeti-wconfd
|
||||
- ganeti-rapi
|
||||
- ganeti-luxid
|
||||
- ganeti-kvmd
|
||||
- )
|
||||
+readonly defaults_file="$SYSCONFDIR/conf.d/ganeti"
|
||||
|
||||
# This is the list of daemons that are loaded on demand; they should only be
|
||||
# stopped, not started.
|
||||
ON_DEMAND_DAEMONS=(
|
||||
ganeti-metad
|
||||
)
|
||||
+DAEMONS=( ganeti-noded ganeti-confd )
|
||||
+
|
||||
+_is_master() {
|
||||
+ [ -z "${GANETI_MASTER}" ] && GANETI_MASTER="$(gnt-cluster getmaster)"
|
||||
+ [ -z "${LOCAL_HOSTNAME}" ] && LOCAL_HOSTNAME="$(hostname -f)"
|
||||
+ [ "${GANETI_MASTER}" = "${LOCAL_HOSTNAME}" ]
|
||||
+}
|
||||
+
|
||||
+if _is_master; then
|
||||
+ DAEMONS+=( ganeti-wconfd ganeti-rapi ganeti-luxid )
|
||||
+fi
|
||||
+
|
||||
+DAEMONS+=( ganeti-kvmd )
|
||||
|
||||
_mond_enabled() {
|
||||
[[ "@CUSTOM_ENABLE_MOND@" == True ]]
|
||||
@@ -246,7 +247,7 @@ check() {
|
||||
return 1
|
||||
fi
|
||||
elif type -p start-stop-daemon >/dev/null; then
|
||||
- start-stop-daemon --stop --signal 0 --quiet \
|
||||
+ start-stop-daemon --signal 0 --quiet \
|
||||
--pidfile $pidfile
|
||||
else
|
||||
_ignore_error status \
|
@ -0,0 +1,26 @@
|
||||
diff --git a/test/py/cmdlib/test_unittest.py b/test/py/cmdlib/test_unittest.py
|
||||
index f93f99d..2d0d083 100644
|
||||
--- a/test/py/cmdlib/test_unittest.py
|
||||
+++ b/test/py/cmdlib/test_unittest.py
|
||||
@@ -85,7 +85,7 @@ class TestLUTestDelay(CmdlibTestCase):
|
||||
|
||||
self.ExecOpCode(op)
|
||||
|
||||
- self.rpc.call_test_delay.assert_called_once()
|
||||
+ assert self.rpc.call_test_delay.called
|
||||
|
||||
def testFailingRpc(self):
|
||||
op = opcodes.OpTestDelay(duration=DELAY_DURATION,
|
||||
diff --git a/test/py/testutils/__init__.py b/test/py/testutils/__init__.py
|
||||
index 27ca425..04ea0ee 100644
|
||||
--- a/test/py/testutils/__init__.py
|
||||
+++ b/test/py/testutils/__init__.py
|
||||
@@ -242,7 +242,7 @@ def patch_object(*args, **kwargs):
|
||||
This function unifies the different variations.
|
||||
|
||||
"""
|
||||
- import mock
|
||||
+ from mock import mock
|
||||
try:
|
||||
# pylint: disable=W0212
|
||||
return mock._patch_object(*args, **kwargs)
|
@ -0,0 +1,309 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=(python2_7)
|
||||
use test && PYTHON_REQ_USE="ipv6"
|
||||
|
||||
inherit eutils user autotools bash-completion-r1 python-single-r1 versionator
|
||||
|
||||
MY_PV="${PV/_rc/~rc}"
|
||||
MY_PV="${MY_PV/_beta/~beta}"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
SERIES="$(get_version_component_range 1-2)"
|
||||
|
||||
if [[ ${PV} =~ [9]{4,} ]] ; then
|
||||
EGIT_REPO_URI="git://git.ganeti.org/ganeti.git"
|
||||
inherit git-2
|
||||
KEYWORDS=""
|
||||
GIT_DEPEND="dev-python/docutils
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
media-gfx/graphviz
|
||||
media-fonts/urw-fonts"
|
||||
else
|
||||
SRC_URI="http://downloads.ganeti.org/releases/${SERIES}/${MY_P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Ganeti is a virtual server management software tool"
|
||||
HOMEPAGE="http://www.ganeti.org/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="drbd haskell-daemons htools ipv6 kvm lxc monitoring multiple-users rbd syslog test xen"
|
||||
REQUIRED_USE="|| ( kvm xen lxc ) ${PYTHON_REQUIRED_USE}"
|
||||
|
||||
USER_PREFIX="${GANETI_USER_PREFIX:-"gnt-"}"
|
||||
GROUP_PREFIX="${GANETI_GROUP_PREFIX:-"${USER_PREFIX}"}"
|
||||
|
||||
DOC_DEPEND="dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
dev-python/docutils
|
||||
media-fonts/urw-fonts
|
||||
media-gfx/graphviz"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/openssl:0
|
||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
dev-python/simplejson[${PYTHON_USEDEP}]
|
||||
dev-python/pyparsing[${PYTHON_USEDEP}]
|
||||
dev-python/pyinotify[${PYTHON_USEDEP}]
|
||||
dev-python/pycurl[${PYTHON_USEDEP}]
|
||||
dev-python/ipaddr[${PYTHON_USEDEP}]
|
||||
dev-python/bitarray[${PYTHON_USEDEP}]
|
||||
net-analyzer/arping
|
||||
net-analyzer/fping
|
||||
net-misc/bridge-utils
|
||||
net-misc/curl[ssl]
|
||||
net-misc/openssh
|
||||
net-misc/socat
|
||||
sys-apps/iproute2
|
||||
sys-fs/lvm2
|
||||
>=sys-apps/baselayout-2.0
|
||||
dev-lang/ghc
|
||||
dev-haskell/cabal:0=
|
||||
dev-haskell/cabal-install:0=
|
||||
>=dev-haskell/mtl-2.1.1:0=
|
||||
>=dev-haskell/old-time-1.1.0.0:0=
|
||||
>=dev-haskell/random-1.0.1.1:0=
|
||||
haskell-daemons? ( >=dev-haskell/text-0.11.1.13:0= )
|
||||
>=dev-haskell/transformers-0.3.0.0:0=
|
||||
|
||||
>=dev-haskell/attoparsec-0.10.1.1:0=
|
||||
<dev-haskell/attoparsec-0.13:0
|
||||
>=dev-haskell/base64-bytestring-1.0.0.1:0=
|
||||
<dev-haskell/base64-bytestring-1.1:0=
|
||||
>=dev-haskell/crypto-4.2.4:0=
|
||||
<dev-haskell/crypto-4.3:0=
|
||||
>=dev-haskell/curl-1.3.7:0=
|
||||
<dev-haskell/curl-1.4:0=
|
||||
>=dev-haskell/hinotify-0.3.2:0=
|
||||
<dev-haskell/hinotify-0.4:0=
|
||||
>=dev-haskell/hslogger-1.1.4:0=
|
||||
<dev-haskell/hslogger-1.3:0=
|
||||
>=dev-haskell/json-0.5:0=
|
||||
<dev-haskell/json-0.9:0=
|
||||
>=dev-haskell/lens-3.10:0=
|
||||
<dev-haskell/lens-4.8:0=
|
||||
>=dev-haskell/lifted-base-0.2.0.3:0=
|
||||
<dev-haskell/lifted-base-0.3:0=
|
||||
>=dev-haskell/monad-control-0.3.1.3:0=
|
||||
<dev-haskell/monad-control-1.1:0=
|
||||
>=dev-haskell/network-2.3.0.13:0=
|
||||
<dev-haskell/network-2.7:0=
|
||||
>=dev-haskell/parallel-3.2.0.2:3=
|
||||
<dev-haskell/parallel-3.3:3=
|
||||
>=dev-haskell/temporary-1.1.2.3:0=
|
||||
<dev-haskell/temporary-1.3:0=
|
||||
>=dev-haskell/regex-pcre-0.94.2:0=
|
||||
<dev-haskell/regex-pcre-0.95:0=
|
||||
>=dev-haskell/transformers-base-0.4.1:0=
|
||||
<dev-haskell/transformers-base-0.5:0=
|
||||
>=dev-haskell/utf8-string-0.3.7:0=
|
||||
<dev-haskell/utf8-string-0.4:0=
|
||||
>=dev-haskell/zlib-0.5.3.3:0=
|
||||
<dev-haskell/zlib-0.6:0=
|
||||
|
||||
>=dev-haskell/psqueue-1.1:0=
|
||||
<dev-haskell/psqueue-1.2:0=
|
||||
>=dev-haskell/snap-core-0.8.1:0=
|
||||
<dev-haskell/snap-core-0.10:0=
|
||||
>=dev-haskell/snap-server-0.8.1:0=
|
||||
<dev-haskell/snap-server-0.10:0=
|
||||
>=dev-haskell/case-insensitive-0.4.0.1
|
||||
|
||||
dev-haskell/vector:0=
|
||||
<dev-haskell/semigroupoids-4.1:0=
|
||||
<dev-haskell/contravariant-0.6
|
||||
<dev-haskell/transformers-compat-0.4[three]
|
||||
xen? ( >=app-emulation/xen-3.0 )
|
||||
kvm? (
|
||||
dev-python/psutil
|
||||
app-emulation/qemu
|
||||
)
|
||||
lxc? ( app-emulation/lxc )
|
||||
drbd? (
|
||||
|| (
|
||||
<sys-cluster/drbd-8.5
|
||||
sys-cluster/drbd-utils
|
||||
)
|
||||
)
|
||||
rbd? ( sys-cluster/ceph )
|
||||
ipv6? ( net-misc/ndisc6 )
|
||||
${PYTHON_DEPS}
|
||||
${GIT_DEPEND}"
|
||||
RDEPEND="${DEPEND}
|
||||
!app-emulation/ganeti-htools"
|
||||
DEPEND+="sys-devel/m4
|
||||
app-text/pandoc
|
||||
>=dev-haskell/test-framework-0.6:0=
|
||||
<dev-haskell/test-framework-0.9:0=
|
||||
>=dev-haskell/test-framework-hunit-0.2.7:0=
|
||||
<dev-haskell/test-framework-hunit-0.4:0=
|
||||
>=dev-haskell/test-framework-quickcheck2-0.2.12.1:0=
|
||||
<dev-haskell/test-framework-quickcheck2-0.4:0=
|
||||
test? (
|
||||
dev-python/mock
|
||||
dev-python/pyyaml
|
||||
dev-haskell/haddock:0=
|
||||
>=dev-haskell/hunit-1.2.4.2:0=
|
||||
<dev-haskell/hunit-1.3:0=
|
||||
>=dev-haskell/quickcheck-2.4.2:2=
|
||||
<dev-haskell/quickcheck-2.8:2=
|
||||
sys-apps/fakeroot
|
||||
net-misc/socat
|
||||
dev-util/shelltestrunner
|
||||
${DOC_DEPEND}
|
||||
)"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.12-start-stop-daemon-args.patch"
|
||||
"${FILESDIR}/${PN}-2.11-add-pgrep.patch"
|
||||
"${FILESDIR}/${PN}-2.15-daemon-util.patch"
|
||||
"${FILESDIR}/${PN}-2.7-fix-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.9-disable-root-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.9-skip-cli-test.patch"
|
||||
"${FILESDIR}/${PN}-2.10-rundir.patch"
|
||||
"${FILESDIR}/${PN}-2.12-qemu-enable-kvm.patch"
|
||||
"${FILESDIR}/${PN}-2.11-tests.patch"
|
||||
"${FILESDIR}/${PN}-lockdir.patch"
|
||||
"${FILESDIR}/${PN}-2.11-dont-nest-libdir.patch"
|
||||
"${FILESDIR}/${PN}-2.11-dont-print-man-help.patch"
|
||||
"${FILESDIR}/${PN}-2.11-daemon-util-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.13-process_unittest.patch"
|
||||
"${FILESDIR}/${PN}-2.15-python-mock.patch"
|
||||
)
|
||||
|
||||
REQUIRED_USE="kvm? ( || ( amd64 x86 ) )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
QA_WX_LOAD="
|
||||
usr/lib*/${PN}/${SERIES}/usr/sbin/ganeti-*d
|
||||
usr/lib*/${PN}/${SERIES}/usr/bin/htools
|
||||
"
|
||||
|
||||
pkg_setup () {
|
||||
local user
|
||||
python-single-r1_pkg_setup
|
||||
|
||||
if use multiple-users; then
|
||||
for user in gnt-{masterd,confd,luxid,rapi,daemons,admin}; do
|
||||
enewgroup ${user}
|
||||
enewuser ${user} -1 -1 -1 ${user}
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local testfile
|
||||
epatch "${PATCHES[@]}"
|
||||
|
||||
# not sure why these tests are failing
|
||||
# should remove this on next version bump if possible
|
||||
for testfile in test/py/import-export_unittest.bash; do
|
||||
printf '#!/bin/bash\ntrue\n' > "${testfile}"
|
||||
done
|
||||
|
||||
# take the sledgehammer approach to bug #526270
|
||||
grep -lr '/bin/sh' "${S}" | xargs -r -- sed -i 's:/bin/sh:/bin/bash:g'
|
||||
|
||||
[[ ${PV} =~ [9]{4,} ]] && ./autogen.sh
|
||||
rm autotools/missing
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure () {
|
||||
# this is kind of a hack to work around the removal of the qemu-kvm wrapper
|
||||
local kvm_arch
|
||||
|
||||
if use amd64; then
|
||||
kvm_arch=x86_64
|
||||
elif use x86; then
|
||||
kvm_arch=i386
|
||||
elif use kvm; then
|
||||
die "Could not determine qemu system to use for kvm"
|
||||
fi
|
||||
|
||||
econf --localstatedir=/var \
|
||||
--sharedstatedir=/var \
|
||||
--disable-symlinks \
|
||||
--docdir=/usr/share/doc/${P} \
|
||||
--with-ssh-initscript=/etc/init.d/sshd \
|
||||
--with-export-dir=/var/lib/ganeti-storage/export \
|
||||
--with-os-search-path=/usr/share/${PN}/os \
|
||||
$(use_enable test haskell-tests) \
|
||||
$(usex multiple-users "--with-default-user=" "" "gnt-daemons" "") \
|
||||
$(usex multiple-users "--with-user-prefix=" "" "${USER_PREFIX}" "") \
|
||||
$(usex multiple-users "--with-default-group=" "" "gnt-daemons" "") \
|
||||
$(usex multiple-users "--with-group-prefix=" "" "${GROUP_PREFIX}" "") \
|
||||
$(use_enable syslog) \
|
||||
$(use_enable monitoring) \
|
||||
$(usex kvm '--with-kvm-path=' '' "/usr/bin/qemu-system-${kvm_arch}" '') \
|
||||
$(usex haskell-daemons "--enable-confd=haskell" '' '' '')
|
||||
}
|
||||
|
||||
src_install () {
|
||||
emake V=1 DESTDIR="${D}" install || die "emake install failed"
|
||||
|
||||
newinitd "${FILESDIR}"/ganeti.initd-r3 ${PN}
|
||||
newconfd "${FILESDIR}"/ganeti.confd-r2 ${PN}
|
||||
|
||||
if use kvm; then
|
||||
newinitd "${FILESDIR}"/ganeti-kvm-poweroff.initd ganeti-kvm-poweroff
|
||||
newconfd "${FILESDIR}"/ganeti-kvm-poweroff.confd ganeti-kvm-poweroff
|
||||
fi
|
||||
|
||||
# ganeti installs it's own docs in a generic location
|
||||
rm -rf "${D}"/{usr/share/doc/${PN},run}
|
||||
|
||||
sed -i "s:/usr/$(get_libdir)/${PN}/tools/burnin:burnin:" doc/examples/bash_completion
|
||||
newbashcomp doc/examples/bash_completion gnt-instance
|
||||
bashcomp_alias gnt-instance burnin ganeti-{cleaner,confd} \
|
||||
h{space,check,scan,info,ail,arep,roller,squeeze,bal} \
|
||||
gnt-{os,job,filter,debug,storage,group,node,network,backup,cluster}
|
||||
|
||||
dodoc INSTALL UPGRADE NEWS README doc/*.rst
|
||||
dohtml -r doc/html/* doc/css/*.css
|
||||
|
||||
docinto examples
|
||||
dodoc doc/examples/{ganeti.cron,gnt-config-backup} doc/examples/*.ocf
|
||||
|
||||
docinto examples/hooks
|
||||
dodoc doc/examples/hooks/{ipsec,ethers}
|
||||
|
||||
insinto /etc/cron.d
|
||||
newins doc/examples/ganeti.cron ${PN}
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins doc/examples/ganeti.logrotate ${PN}
|
||||
|
||||
# need to dodir rather than keepdir here (bug #552482)
|
||||
dodir /var/lib/${PN}
|
||||
|
||||
keepdir /var/log/${PN}/
|
||||
keepdir /usr/share/${PN}/${SERIES}/os/
|
||||
keepdir /var/lib/ganeti-storage/{export,file,shared}/
|
||||
|
||||
dosym ${SERIES} "/usr/share/${PN}/default"
|
||||
dosym ${SERIES} "/usr/$(get_libdir)/${PN}/default"
|
||||
|
||||
python_fix_shebang "${ED}" "${D}"/usr/"$(get_libdir)"/${PN}/${SERIES}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use multiple-users; then
|
||||
elog "You have enable multiple user support, the users for this must"
|
||||
elog "be created. You can use the provided tool for this, which is"
|
||||
elog "located at:"
|
||||
elog " /usr/$(get_libdir)/${PN}/tools/users-setup"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test () {
|
||||
PATH="${S}/scripts:${S}/src:${PATH}" \
|
||||
TMPDIR="/tmp" \
|
||||
GANETI_MASTER="$(hostname -f)" \
|
||||
emake check || die "emake check failed"
|
||||
}
|
@ -1,9 +1,5 @@
|
||||
DIST spice-protocol-0.12.10.tar.bz2 103029 SHA256 788f0d7195bec5b14371732b562eb55ca82712aab12273b0e87529fb30532efb SHA512 4f6545ced78a4eedf6adca3f10d536a57205626e631d7cf380be4ea08ca2e1fbbe32566e59c2ce1900a7f057a6dab044483b8423885280cbf142b253d8e03711 WHIRLPOOL 224348a06c6116070119de7fc700dc0d3bf3be271b3043d0ebb01200958b145282bbbfee48f2a9ceb2f719bf631832b431a2af5ae6c8a09bc60640336cab5274
|
||||
DIST spice-protocol-0.12.3.tar.bz2 69854 SHA256 dc8609efe23e6f9b78d56663aa9ca5e8cb10c2b8403b8fc02aa72ae7686cc037 SHA512 55423743cf195459125305c726803db491ebf16a5ef0cb821eed7e0d71ace9d581b9a6a60c11a03d6a17c0ecc31e2b4c649ed117857a050f409844686b7df3e0 WHIRLPOOL 308ced9222f8b43e2455733fc5d311912bc9d10fbf830d8d4eecd0e86bfd6dc6a0ae15c3d94dc5c3d73aa9635247023259642c570e31557e0ba9caf4bd2c7eb6
|
||||
DIST spice-protocol-0.12.9.tar.bz2 71766 SHA256 290cf834dd156014d229b474e98006265ab9c5f63b4c471ea3b2cf8b2ff37876 SHA512 91dd639459a5f20ac37af5a348dcc085690f66274a005017f68a773d23a063ac2c64430c5c78dcead2a144ad0c367b8b12beed0bf80bd146608c8edb9d8080c0 WHIRLPOOL 1f578924b1539ee0c1405478bdd9f37a2d96b2d2e6868f2141b4730f6d1a70e486965a1266af5b1500eefc4a1ee30974f983f585c9d23a7acb762ed2993a13c7
|
||||
EBUILD spice-protocol-0.12.10.ebuild 384 SHA256 678ee9ab24ba49c18c6cbafbe814bb1097ee4683667ada541adf90a222b536d6 SHA512 0cd821caf5a31a3cc4af4c4a09816c5647fe9e63ecdfe954f81fb59b60908be42ea54e10446663cf324de5c272838f5e7575943f6165b6634532db743c20eda8 WHIRLPOOL 12c334270fa1d4b8252ec190de084e904b6689d247a1d033a84f33cebd81608e4f52809679c6a0965e4fb5677aed63525b28a1f22886c2aae286892da2cec8c9
|
||||
EBUILD spice-protocol-0.12.3.ebuild 379 SHA256 32982eed1e7b8daec2b8240d2becb21fa292fd5befba2d598c1b8b39a970de02 SHA512 3a8c1bcaaefd8db64b62ca4055b0ed64e2be8c6c561abb39e321c4e89436273c5270894b8c0f9aa43b8456204124be8a7dd069680b608039658869ee3013882b WHIRLPOOL fded6afc6472f6cf1dbb8d9c7a56698666f5ef5b9e23387994c7f8df7c0d834852f8083f891221b3b013220b953614af4a3807c04223a797f34dde58a4efa835
|
||||
EBUILD spice-protocol-0.12.9.ebuild 386 SHA256 ec4a85b97c55db4d2dc68d67874f7a25b181b9bbc1a902ee198ec8a99039d90d SHA512 d02d4a19726407813ca897ed738c2739ee4d07dbb1e66dbbf1c53fe713174939b4fa2590233690fef0eef2ee4f8d3e923f7635e93f967ecd251002ea2b1ef19d WHIRLPOOL c7fdf3191535b7b832b1ad51b6d0699a60b2dd46466048ed533f49ae5fe9783d11a59e1ce69b7bc413147e4b577c97d4b79e1ffd8fbb39c9a656e4d7282286bd
|
||||
MISC ChangeLog 3646 SHA256 5fef39fa3e3facfe95b8b553f71abfd9f0ad4e171ba052d057d999738b7797f5 SHA512 23e22853fcda73651768e9f7868704eaff18b7a0bf5b1bf9d7779e7dc437fe6ea552f7f61b27dfd382ca2ee3772a0f2c3e4c336ea519eb0d1a151d40f3860851 WHIRLPOOL 2dd6fd509f7868efeea5fd31bf0ce361d495d34108acfb35f9281355169388eb6b039d28587077380aabbdb1bfc440d8fe86b8523215f5f119406ccdf02a8f26
|
||||
MISC ChangeLog 3816 SHA256 3d004b3a07e4a309ef23342f03a2e97614ef02b4d2635accf67dcd62ecfc53d6 SHA512 9561f349a05764248c469d760dc3530e6f5d32270c95964f087958484eb5e84c1299f40bf0baecd1387ca34101db890ac2759645d13862d1e71e0c81aec2efb5 WHIRLPOOL 1f29b1b632eb264f632ff9bf00cc871b89edd71bd352c0a992d1f40a5e1191755b04575a5ef90a77952a4fbaa2f095bbaf987e37e3ffc8afc61906cd211c469f
|
||||
MISC ChangeLog-2015 6113 SHA256 7fcca09d4ad157cb4f6722f938025fc41ab255158baa603b8e94f513eacb175f SHA512 78960a6ef6486b2d326a8479f0f431905199d6af0cd9eb023bd25ac1d4f4ba55a58db8b24fd379cab844154f30ad46dfbf197a0636e6662ec88ceba736ecee1c WHIRLPOOL 73f844c53a36fd957f905212801a09b3fb5294f05d8db919e2ffdcdac46801ccdfe07a557ec66495bb8de7c24aa93d8d54d51464329dd926af271e3015c86850
|
||||
MISC metadata.xml 272 SHA256 d52be94b62df0e5c6939cfdd12370b98adad2fc8e4b58bdd1f9efbe40bf91753 SHA512 46820644a5d138065112243feab6ab560aa5552074609c5b04c2fb2df2dd3f82f18c7df02963ce5b6933f2f69ca131dae9ee518f6abb153cdf3cbd588d40e683 WHIRLPOOL 17acb32f49c97ff575c9b9df53b2dc733d49b272f7f7c0da86ca3084f6f0e52114f8f4ca72f8116d636be5e46f6d0b5212c909582c434599747c5a49e94ea4db
|
||||
|
@ -1,17 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=4
|
||||
|
||||
DESCRIPTION="Headers defining the SPICE protocol"
|
||||
HOMEPAGE="http://spice-space.org/"
|
||||
SRC_URI="http://spice-space.org/download/releases/${P}.tar.bz2"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~ia64 ~ppc ~ppc64 ~sparc x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
@ -1,17 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
DESCRIPTION="Headers defining the SPICE protocol"
|
||||
HOMEPAGE="http://spice-space.org/"
|
||||
SRC_URI="http://spice-space.org/download/releases/${P}.tar.bz2"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
@ -1,54 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit linux-info
|
||||
|
||||
DESCRIPTION="SPICE VD Linux Guest Agent"
|
||||
HOMEPAGE="http://spice-space.org/"
|
||||
SRC_URI="http://spice-space.org/download/releases/${P}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+consolekit selinux"
|
||||
|
||||
CDEPEND="x11-libs/libXfixes
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libX11
|
||||
x11-libs/libXinerama
|
||||
>=x11-libs/libpciaccess-0.10
|
||||
>=app-emulation/spice-protocol-0.10.1
|
||||
consolekit? ( sys-auth/consolekit sys-apps/dbus )"
|
||||
DEPEND="virtual/pkgconfig
|
||||
${CDEPEND}"
|
||||
RDEPEND="${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-vdagent )"
|
||||
|
||||
CONFIG_CHECK="~INPUT_UINPUT ~VIRTIO_CONSOLE"
|
||||
ERROR_INPUT_UINPUT="User level input support is required"
|
||||
ERROR_VIRTIO_CONSOLE="VirtIO console/serial device support is required"
|
||||
|
||||
src_configure() {
|
||||
local opt=
|
||||
|
||||
use consolekit && opt="${opt} --with-session-info=console-kit"
|
||||
|
||||
econf \
|
||||
--localstatedir=/var \
|
||||
${opt}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
rm -rf "${D}"/etc/{rc,tmpfiles}.d
|
||||
|
||||
keepdir /var/run/spice-vdagentd
|
||||
keepdir /var/log/spice-vdagentd
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd-2" "${PN}"
|
||||
newconfd "${FILESDIR}/${PN}.confd-2" "${PN}"
|
||||
}
|
@ -1,11 +1,6 @@
|
||||
AUX 0.11.0-gold.patch 989 SHA256 195835efd27a7f41896380b1543ed044d1e82dc501eb35932adb8730136fa2e4 SHA512 e115fcab5a87e5d54b7fd6fbef4a8dae635780410b206d8fc2a46fd52c1bb87378efc0b60fcb9f13127f713e36402b531e09579abe2390eaedf2744ff128b0d1 WHIRLPOOL 6a5574eef98bb3867442a7f9689cb620e6f74266ddc736b6a6c58bc5a795b4d7fb30a49fb49c0883608bc1db22e831c0dfb9913dfc8c96361a320c6f42e67960
|
||||
AUX spice-0.12.5-fix-assert-in-mjpeg_encoder_adjust_params_to_bit_rate.patch 1151 SHA256 d32faf4a039513c61994eb324305fdd3976921e05fa59155f23d78240fa0d295 SHA512 099c1fc2be0129af3773f22acd4159b031fb886e538871d1758ad6e4c5c7f9f3f8e2bc054eb89fafe926dc52bc1c6c29d1d4332064bbf8f23d7ca2dfa7061043 WHIRLPOOL c5e6b6db00bea69649f2611288ac7f030cb40aed6b056106fc2fd609caf00633bfe22605504b5ff94792daebf72724c3a1f449e60e4dd8fab602e5b4cf7d0cb5
|
||||
AUX spice-0.12.5-fix-crash-when-clearing-surface-memory.patch 1188 SHA256 ca70fdc7add8e5005098235b3193b00718fe126efdaedce6386272f999c97a28 SHA512 5ff6eb5a81425b5830fa4728927d977fa0b2d96a42c9a17daad08781d02d6849e8106a3f1717649e8bc8de00c8b6dfe9f28d3088572c9d430dd7acb74991c6e1 WHIRLPOOL 95a2c447a9fb2e9baf502f784fde2b702429c84e076d7a5dc0bf1e3c3a704d30aacda27a431281d83454a1f6b72e92ca79e7c247dca47170edb37c70b789a378
|
||||
AUX spice-0.12.5-server-dont-assert-on-invalid-client-message.patch 1073 SHA256 751fd57a99558e3c1c0764fcaa38589e9794542b95f369018cb346231772c4d3 SHA512 79f253fdeeac771f8f5087c15fb6f474a5ee540bc8350415a72edf408753dabd7ea9b37cfc50dddee5a285e32ef495980bb0e3b88efc5a59fdb38e595c0b2dd3 WHIRLPOOL 489921567064b36b0626a297f7a69487f461124e22d1b29b20ec9861466e2f68776518abe7091a7fe8c613eb3b661f38241168613219fd52dab91bdbc66dc052
|
||||
DIST spice-0.12.5.tar.bz2 1737169 SHA256 4209a20d8f67cb99a8a6ac499cfe79a18d4ca226360457954a223d6795c2f581 SHA512 1501c913ba3b1856444536a9bfda7a2138a96088f940b483e963df342b91deb945d77bfb3c83ebddfcd7c3008695c0dd7df30ff9fd8502cbbcac1c610a273572 WHIRLPOOL 8f50a91febb0d2279ac867ae31cb14f996106625f0f26ba1bb8b5b576eedce6839f52c70e19a03f03be209f695c36b3ba1d94fadee6c9f134e2afffd5b99c476
|
||||
DIST spice-0.12.6.tar.bz2 1181088 SHA256 f148ea30135bf80a4f465ce723a1cd6d4ccb34c098b6298a020b378ace8569b6 SHA512 877d9c447a09055c61db7839ae1a2bbd97ab1178d8fd30fff83883064f8a2f269479649e696732095833ed3fda2d0cc0cbe2a420decb89d36d2cf2f18ad9a3db WHIRLPOOL e381cf469a29be9a91ab442ee5f426a44ee569528d9297401df1c927cbf558e9daee7709cd69a4cc6389481b0c5aa26b19e56f0e97576e270d768842581544fe
|
||||
EBUILD spice-0.12.5-r1.ebuild 2129 SHA256 81fbd3e1d9ebf4158dad275d12bbc348d48ae7e6acbf8690cd536b0a3adc1c0e SHA512 d17be3555b966d5fec5ecded95c9d2e36bf80e208c304ba2e0df4f2b261203ba2f2f5d29aa56d0c085e5249acbffede35fc1fdcedfd84d8fee2fb26a6eb3fe76 WHIRLPOOL dd324997a39cf1cc08d0a7da3aafd53d1d788d49802509a0bcdf1549161cfd35c78939bd16e9d547ea759819c370dc4d848e4771d33f6f5df31383b0d799d756
|
||||
EBUILD spice-0.12.6-r1.ebuild 2117 SHA256 9df782dd9d9c03c932605bd627793533b2ade8bf75ece5f5f67317f2a1c568ff SHA512 786eed8da29cc633b2843733e7010b0b015209ed6dcadb97e64680072717dd864f94163f3e0e22a3428f3ff0d26944f45822d32c81f245cfc7b76e306d2d99fd WHIRLPOOL 78cf3e443af5d4c0b754140fee835bdf9deb44b25359f59c48426f60bcfcd7861f535071485ba13a16fbcdbb69acd8571e7e458b301fa7f8957e7dd78eb89f53
|
||||
MISC ChangeLog 4495 SHA256 4c49b495902baacb9f139b0cfb5c22dd7bef326682a6017dc2b0d272e79f84f3 SHA512 2ed86caa0182a46a09e2ec4871f97f731d9f8c2280467ef36e5bf85dcf21f6bc419f3c010979d788d0464201f96a7d98ce27e02d76555959eb5526504b443cd4 WHIRLPOOL 81efba6aa9945f5816c0f03ba9b356deab36adc1aa707d55d92af60cfd925469240b3a2748daf2fc31a0dd2c76c32772d3d2c2ce82150dc8c6d01b7b69b690b2
|
||||
EBUILD spice-0.12.6-r2.ebuild 1653 SHA256 2e9ae316e546279333ad9bdf9446df282ec8d4f4ba18467df3babec47f9d64af SHA512 8905cf3b336afabb59f943d6f8039ef2291def4e0c4dd5e159c6dec34e90c06aca7517a83a1c6a1c6a90732c1356fc90a46ee6da060d60cff415d90cb0775505 WHIRLPOOL 7dc43c8240cad7213c11fb79bef73102a80dbf4069818d15ae8a5c23b7256a9f0ff96c1af531668c2502fe32fda906b009886697df0b99a8eaa9e09cc3a6fc82
|
||||
MISC ChangeLog 5662 SHA256 9c37d6188e2020280c1f95ef5ea1617d25c34e23d00489283201655a762c0e64 SHA512 33ce002721aee1ed1d5955a833aa8bf7c2198d02d9fcaf912db8d99bd7fe798348e5bf9dd4d4b72f9b02f662569fd8a84cb2e02e437adaa3f5b0805074002cf0 WHIRLPOOL fa7451a39419f93944e6ef30f9d00365bed91c4f49ffc3cfdff1e64bd4e09ca169e7bb7fdfdffc30dc9f440d502bebac01c77600a08cd99233aea195af29e466
|
||||
MISC ChangeLog-2015 11333 SHA256 06046dca615aad09da9fc3ee0ac48f77b6004ec2af2942209535bad890cd0532 SHA512 b161432fa57d4d6dbeaa281b213c679518e73b0df1074435c9d2e7d56bae7abd8a889b4a61cd9a0e55f57baace6a63a4f6d232c0768481eda351eb5c2784b5a2 WHIRLPOOL 4aa7e48ab7e741d6a73d28855fc252b47742cb095afbfb2a90fdd6856de7132c9487234f254fe8dd873ab84c1af636f51e25261e3ef69689f06e97d9908010a3
|
||||
MISC metadata.xml 482 SHA256 34ef6f2bd6964e39bad6ac72504d4ba80bc4120e9d6f28c7c448c306050f05b9 SHA512 3ed4466c90431f74ef156f0ece85edac141930dabcdfe93d87b3d0ce1e174efa14fd28967ed895d6e32d757003a843e63fa4dbd303372fc73cb31223a8897bf5 WHIRLPOOL 2852d096068311889c30591535ca0866214b2f30e538b1888f10bf98a8a7a164b742db0d201f369362ea5bef0a7f1b39ebb12af283c520550f866c7b1a2ba4a4
|
||||
MISC metadata.xml 379 SHA256 b3073ecf909f7d280d7a806958daa163669d38ab3034741559782d09ca49ec72 SHA512 31de42a73035876f5b7d52a73997e9a7d9309ff40000bce3def4602ec0131bd9abbbd7efe0ab5cef7df87bf2b7c17c4faa435c525235730758ce5d90694e260a WHIRLPOOL d9e4b4f73f1e4dfa59ef228e4ff783b2745ce69ac63ed0e1a042d91d89175d3f3baa2195e6453b92234897b5c5981efc3f27cf2ca64f54db239cc171da584194
|
||||
|
@ -1,30 +0,0 @@
|
||||
From 284cca2a5ebc98257275585083321a7100fb89b3 Mon Sep 17 00:00:00 2001
|
||||
From: Jonathon Jongsma <jjongsma@redhat.com>
|
||||
Date: Fri, 30 May 2014 18:45:02 +0000
|
||||
Subject: Fix assert in mjpeg_encoder_adjust_params_to_bit_rate()
|
||||
|
||||
If mjpeg_encoder_reset_quality() is called with the same quality as currently
|
||||
set, it will not reset last_enc_size but not reset num_recent_enc_frames,
|
||||
violating some assumptions in _adjust_params_to_bit_rate(). To avoid aborting
|
||||
the server, simply return early from this function.
|
||||
|
||||
Resolves: rhbz#1086820
|
||||
---
|
||||
diff --git a/server/mjpeg_encoder.c b/server/mjpeg_encoder.c
|
||||
index f465d88..12447da 100644
|
||||
--- a/server/mjpeg_encoder.c
|
||||
+++ b/server/mjpeg_encoder.c
|
||||
@@ -625,7 +625,10 @@ static void mjpeg_encoder_adjust_params_to_bit_rate(MJpegEncoder *encoder)
|
||||
return;
|
||||
}
|
||||
|
||||
- spice_assert(rate_control->num_recent_enc_frames);
|
||||
+ if (!rate_control->num_recent_enc_frames) {
|
||||
+ spice_debug("No recent encoded frames");
|
||||
+ return;
|
||||
+ }
|
||||
|
||||
if (rate_control->num_recent_enc_frames < MJPEG_AVERAGE_SIZE_WINDOW &&
|
||||
rate_control->num_recent_enc_frames < rate_control->fps) {
|
||||
--
|
||||
cgit v0.9.0.2-2-gbebe
|
@ -1,31 +0,0 @@
|
||||
From 1898f3949cf75422aa1fedba40c429b28d8d6b67 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@gmail.com>
|
||||
Date: Wed, 6 Aug 2014 18:34:56 +0200
|
||||
Subject: Fix crash when clearing surface memory
|
||||
|
||||
The beginning of the surface data needs to be computed correctly if the
|
||||
stride is negative, otherwise, it should point already to the beginning
|
||||
of the surface data. This bug seems to exists since 4a208b (0.5.2)
|
||||
|
||||
https://bugzilla.redhat.com/show_bug.cgi?id=1029646
|
||||
|
||||
diff --git a/server/red_worker.c b/server/red_worker.c
|
||||
index 6bdad93..35a1a04 100644
|
||||
--- a/server/red_worker.c
|
||||
+++ b/server/red_worker.c
|
||||
@@ -9470,7 +9470,11 @@ static inline void red_create_surface(RedWorker *worker, uint32_t surface_id, ui
|
||||
surface->context.stride = stride;
|
||||
surface->context.line_0 = line_0;
|
||||
if (!data_is_valid) {
|
||||
- memset((char *)line_0 + (int32_t)(stride * (height - 1)), 0, height*abs(stride));
|
||||
+ char *data = line_0;
|
||||
+ if (stride < 0) {
|
||||
+ data -= abs(stride) * (height - 1);
|
||||
+ }
|
||||
+ memset(data, 0, height*abs(stride));
|
||||
}
|
||||
surface->create.info = NULL;
|
||||
surface->destroy.info = NULL;
|
||||
--
|
||||
cgit v0.10.2
|
||||
|
@ -1,30 +0,0 @@
|
||||
From 3c25192ee90f843a2f84ff99d119b1cb45979bac Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@gmail.com>
|
||||
Date: Wed, 25 Jun 2014 14:36:03 +0200
|
||||
Subject: server: don't assert on invalid client message
|
||||
|
||||
Some users have been reaching this error:
|
||||
snd_receive: ASSERT n failed
|
||||
|
||||
A misbehaving client could easily hit that condition by sending too big
|
||||
messages. Instead of assert(), replace with a warning. When a message
|
||||
too big to fit is received, it will simply disconnect the channel.
|
||||
|
||||
https://bugzilla.redhat.com/show_bug.cgi?id=962187
|
||||
|
||||
diff --git a/server/snd_worker.c b/server/snd_worker.c
|
||||
index 7d52ded..70148b7 100644
|
||||
--- a/server/snd_worker.c
|
||||
+++ b/server/snd_worker.c
|
||||
@@ -421,7 +421,7 @@ static void snd_receive(void* data)
|
||||
for (;;) {
|
||||
ssize_t n;
|
||||
n = channel->receive_data.end - channel->receive_data.now;
|
||||
- spice_assert(n);
|
||||
+ spice_warn_if(n <= 0);
|
||||
n = reds_stream_read(channel->stream, channel->receive_data.now, n);
|
||||
if (n <= 0) {
|
||||
if (n == 0) {
|
||||
--
|
||||
cgit v0.10.2
|
||||
|
@ -1,82 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit eutils python-any-r1
|
||||
|
||||
DESCRIPTION="SPICE server and client"
|
||||
HOMEPAGE="http://spice-space.org/"
|
||||
SRC_URI="http://spice-space.org/download/releases/${P}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="client sasl smartcard static-libs" # static
|
||||
|
||||
# only the client links against libcacard, the libspice-server only uses the headers
|
||||
# the client cannot be built statically since alsa and qemu[smartcard] are missing static-libs
|
||||
RDEPEND=">=x11-libs/pixman-0.17.7[static-libs(+)?]
|
||||
>=dev-libs/glib-2.22:2[static-libs(+)?]
|
||||
>=media-libs/celt-0.5.1.1:0.5.1[static-libs(+)?]
|
||||
media-libs/opus[static-libs(+)?]
|
||||
dev-libs/openssl[static-libs(+)?]
|
||||
virtual/jpeg[static-libs(+)?]
|
||||
sys-libs/zlib[static-libs(+)?]
|
||||
sasl? ( dev-libs/cyrus-sasl[static-libs(+)?] )
|
||||
client? (
|
||||
media-libs/alsa-lib
|
||||
>=x11-libs/libXrandr-1.2
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
>=x11-libs/libXinerama-1.0
|
||||
x11-libs/libXfixes
|
||||
x11-libs/libXrender
|
||||
smartcard? ( app-emulation/qemu[smartcard] )
|
||||
)"
|
||||
|
||||
DEPEND="virtual/pkgconfig
|
||||
$(python_gen_any_dep \
|
||||
'>=dev-python/pyparsing-1.5.6-r2[${PYTHON_USEDEP}]')
|
||||
smartcard? ( app-emulation/qemu[smartcard] )
|
||||
${RDEPEND}"
|
||||
|
||||
python_check_deps() {
|
||||
has_version ">=dev-python/pyparsing-1.5.6-r2[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
# maintainer notes:
|
||||
# * opengl support is currently broken
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${FILESDIR}/0.11.0-gold.patch" \
|
||||
"${FILESDIR}/${P}-fix-assert-in-mjpeg_encoder_adjust_params_to_bit_rate.patch" \
|
||||
"${FILESDIR}/${P}-server-dont-assert-on-invalid-client-message.patch" \
|
||||
"${FILESDIR}/${P}-fix-crash-when-clearing-surface-memory.patch"
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable client) \
|
||||
$(use_with sasl) \
|
||||
$(use_enable smartcard) \
|
||||
--disable-gui \
|
||||
--disable-static-linkage
|
||||
# $(use_enable static static-linkage) \
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
use static-libs || prune_libtool_files
|
||||
}
|
@ -1,15 +1,10 @@
|
||||
AUX my.cnf-5.5 4739 SHA256 4c8ee9cf1723d7a28b373e8ddbd2fa329d73a71fa65801ecb863ac96d0f87c52 SHA512 28481677b40264d4556e8a9535ac886bad4866530905bf22db07ef2298ebe2f8513c3cb34c9119cd57c4b40c38c4b538b3fb839b78a352984297bd67d5d3fa59 WHIRLPOOL d14f2fbe9316f190ddcddc056360160357b2e9d814532f021a80e2d698e5532b51cb22207ad0e875145703c4993f62d534a45f1c4cf1aad867ce65f818a9d83a
|
||||
AUX my.cnf-5.6 4511 SHA256 c30e2ea3ac1e1252853ea670bd2a9fd79421f9ef92752077650d1cd91139332b SHA512 3560874e5e0230c3767c723be8ea308089e9a563f33032d436ec3ee9b6ddfe6b00e0e1e77aae3e78384001856628feefd9a56f5e67fa1045599e9b6426c55d0e WHIRLPOOL ca388ce29aec576b64f0945210c28bbddb7859064d9e4c3ae84e86ec04bd642423065f3bce454433391d38436dd573806cd7512feb37a931df907e1a6e8ba3eb
|
||||
DIST mysql-cluster-gpl-7.2.19.tar.gz 25959966 SHA256 f4d8772108bbe30852129602f1d4106dc42adbe14d4bbc45065cb6e7314803b4 SHA512 2a30d6bdb82ff9b4c3bcdc2b44ed0707c2292efc45137ada62635b41424ecd4286b18718542fe2120e57636f998b38ac3768d4f9f6b018e65a82ef76d81a310e WHIRLPOOL 21cec46fdfcd3509f4dd01864976c19aefa2adc53212a0724e9b30bf0fa6d63be7d4395b68be13de942b1c399a174e8cfd3f65594921b70b7e6cec0d7dc95183
|
||||
DIST mysql-cluster-gpl-7.2.20.tar.gz 25999156 SHA256 60ca80b10680b5048cd358ae543ad16e8e8c31395aaa69163bde923b22085874 SHA512 62fac1db476e08109885660d2e2728bb0c2c8144acb602fdb679d802bcdc459254349eb914ae600f51dca33f42cd9dfa0db9a21b07edb0d0c316497a62e1fc6f WHIRLPOOL 8f8787151648f34f3cfd64d05da793e40e8fe3d053f5cff72ecff7b799a536bf56ead2e19fd72620fda967b6903bc5ec01fec171144f581f32c4e0f0426573b5
|
||||
DIST mysql-cluster-gpl-7.3.8.tar.gz 42400435 SHA256 eddcc2954ff7fbbc72b1266bd64a9548e9b9d7a4115d42b54c13257c226248ca SHA512 4118449bc9bd2c88caff1585ebfa6b2e2a85b960fa12bc50a00245d1a6d42b3411ee0b2e32b2b10afd46b97e01e5b4fad924dbed852b2ab49b43c123c649a2d3 WHIRLPOOL fc1c6cd68e1f1b0f0430c0374b24c41ba7df83f43897d71e023706228c63024dc10ad6a5eef1696a24a6898be4387a1e4cf47309cabf7abaebc1767ae66da773
|
||||
DIST mysql-cluster-gpl-7.3.9.tar.gz 42489084 SHA256 eba6e37313608514aa41b7f948ccaef3153bf46270f0153b0246492573621b78 SHA512 d7897b5b16ae9179c3ac93e078e55597b89cacaeb4c9ca4477eb8230eb6dbdddf220b55df9dc91b5600e43adcd0d9a1ab470bcc970c20eaa78cd8300ef9ee80e WHIRLPOOL cdfd11a78a52c6b69add0b468a3e87304fdacddb1eb856bdf4e64d28337b7530288fdc1c0a1e25523081bce42fada8a161cd186d20e765a793d4e7160a2b013b
|
||||
DIST mysql-extras-20150210-1758Z.tar.bz2 1494128 SHA256 1d82bc96e294b5479491fe2d8cf83f25f6b4d34c0033238848afde7cc7592e2c SHA512 0256cfe8af6f7c198d3e1aa15b6ac14363d4392422a379f24465e3e16dea75f3779bfe727fd74c404b126041bde2396ff521479c164b5d6c44a7340cad9fce33 WHIRLPOOL bde91051187f4f6f39a52d80d2a9648f9c05187ce200eea89c496cb9e99c70fe049f9f0b490ccfaaecd43081e6988841d94c3ede9fa4e9fb8773580f20047fbb
|
||||
DIST mysql-extras-20150710-1911Z.tar.bz2 1494443 SHA256 9a4755dce3c5b7dfebda87c2fd73eb7b94786be43a9bd97451a8134dc95e6983 SHA512 9a42616dafba562dad5485ea16d8a2b7521668323414329052a64e32da606860af9c0d8a1bdc634afc0e55d1d2329297488c90ff712eac0eb74d8843ca9081aa WHIRLPOOL 33ee7e5cc90a26722fa4f6ff7f8604ac1a1396a867a5ca45b81510cb26638fa57dc3f0e8f2471a8c05c26f5341765c2c370989fcb1602b30e7c05bc00b247e34
|
||||
EBUILD mysql-cluster-7.2.19.ebuild 4069 SHA256 8d768bd2b812030a8ea276b9c57aac092710addfd7331223c2abc8d94cd708f6 SHA512 946f5eb0f9f888fe8ef73ed5dac368947cbeff6373f621a8aa52afac2387753c77aaef9855eb18c5437d1aef66634b6b4540ea26261103c1e1d53d592cbf4a50 WHIRLPOOL eb6c15d19ec23810e5a8a0469921f27d802b910370822aa56bd0528c782ec95b4e0f465a8dedb19b1737891bd3546b95e89bb4323ed876cb3eaf27c17c97fc42
|
||||
EBUILD mysql-cluster-7.2.20.ebuild 4023 SHA256 846f86eda326dc27cf84e375aa4823cf4b56e17cbcfd77d25bef6d60646d1b1e SHA512 f71fab8a9b8311938873ec17efadda78ec1220b423671e8cd2d03d6ac5bf80397e1081e2dd99ee56446e1c042bae530aeed20cfaa64f55769b151eec2c1a204b WHIRLPOOL b0bd665456baa42c340571f3b7784a99d37408c579b7720440d5bc1ff7052e969415e22a747d23f7781d36dfb68b6a2b32c747688ba3e3e68e8a8616f23704d3
|
||||
EBUILD mysql-cluster-7.3.8.ebuild 4656 SHA256 b9ead209da9f129e538f4105dedb659ddf2fb6cf47ba80dad6c9d3029a2171dd SHA512 9a16634e532134093f3163c30f618544eaee1c6e858af56fa8504a1424d6ac3f46703aeb820e2685cdf9adc92bb6992e63f314e3f30eaa46da712231e892d6dd WHIRLPOOL b39c1327158155a7e90539f7fc619597ee4a2b1e32ce8b4a206c2fe08a0ebcb4469d6a411f1abe2b36c1d2d196fbc3526a3c2b72a7769f9bbaf2d988e75966e9
|
||||
EBUILD mysql-cluster-7.3.9-r1.ebuild 4669 SHA256 9613a5567faa5af75c0250ec3c9a7d50539b08a5ea65117175ab4e32ab3dd179 SHA512 bf191ad1844feaf546b5c26272741a59da3aa3992585088ea6d08602402bafb76895e1576d585b107b623b9d6735f1133180f0f5522a15d73c0784ef8c051279 WHIRLPOOL 4f3b7508cc97330281c76d0586e0b78aa4449109ad16dd8c879c8b8e75cde6e90bfa42384b5eb087a47b38c8f6a7b43c78d1275128f8210bd56b747edf235b21
|
||||
MISC ChangeLog 2493 SHA256 321fbdd6abfe1ce1779ed03489926e9bd9c46fec1ee27ebb9207cae4532d5cb1 SHA512 f786d2de76b56a26815805e85c953aa54cc6e119e2bbb599c8e1f48a95e136dcc56436b0ff64e9adf57375ded4d694dceb7a9049d19af44c104ded6b21a15e34 WHIRLPOOL e7690a2c39774692bcee768bb3933bc3737d6f8dc87f63a2a676afaf971aaa42e9b1f103fef37d5f52ccae2810356185f84b385d8075015342f96fbf55c1073c
|
||||
DIST mysql-cluster-gpl-7.2.22.tar.gz 26075142 SHA256 404b80192c488791cedf6251e64bb01310b20f13fcdb28721e108e92985ae999 SHA512 b3370725f17a5b6577c9822097b6c39e4375bdabca2a403bd45dfeb9fd5920c0e213c894eed33dadba69d9c066427ab5065c587869d82bf2e3438d3bdeb1aa8e WHIRLPOOL 1275fc2a181011c5ea2ac392c94027f399a5ce4fd499ff23790bfad142b1c7d67bc421e7c6a4e64e6bb409f04016196417535d5704d21165c1120bf46ab68544
|
||||
DIST mysql-cluster-gpl-7.3.11.tar.gz 42806929 SHA256 6c8cfc99ccbf47cd4304996559de6fb330e9cdf754bec37ff7347be72e50c646 SHA512 89e5b6e845b71ed6945529b7f515d3af96ec6daf79c0085f1d0ea6e4426f61eb3626b688e5edda668be4615df1b8cec4e71acdf0d21150fa2775c79ea09563e5 WHIRLPOOL f03d3b62da793becd6aab775293e5963697f9b4147bf6d662274f689b1a48692b1f4de0ad196e74cb02a07ce2a69b608a4d420ad5dc153b20888ba69dc361dc4
|
||||
DIST mysql-extras-20151117-2040Z.tar.bz2 294183 SHA256 2ca16597e869fb0fac4f6e48b779892569698ce83c898df3afaee63131f71833 SHA512 8edbc6a3812d17a2f1a827459867c0747387ff72be86b12fe0e790afca5e4b70e4f23c4098bdb61afa20ef292e2c3b154f16577d5c11999a3e2eec9e43b8d09a WHIRLPOOL f0df653216857527ffa3d31f07ab1c470614b53350f5dbd965ba3bdc398f36f37b506537f1070b03a54203a3847f6557a2ae6757327ce852833fa026de7b518d
|
||||
EBUILD mysql-cluster-7.2.22.ebuild 4079 SHA256 a4fe4058c01020b6220c8da259b86f75359c2e811e2cfc002736531024d8ae55 SHA512 a5fbfd628fc64d38ac129f0f926cf1282219d1f003a56b6964d9430088245f47d5345f9c9008deceabfc25e622a7fbf1e2256146642a7d4904679019c95ec886 WHIRLPOOL 8191bf0e70f845de873942e30f7afd799dece40ecbaf4f462c6d04666219e15eb97eaba8bd7f3d73499931614a4be950a94acf679615bd40814b37bb0261f317
|
||||
EBUILD mysql-cluster-7.3.11.ebuild 4711 SHA256 61219c136d8d161e06c3a3ea4d79fb77c610cd60c68e41f55e2c94cd81c00af7 SHA512 b54cf50b497173b4ba7f2f6b31a6524c903713b646bb7e5c8f792740adb3b706936a3430166b000161b20b1f0cc5a9f76e180523425413cfd63fa7a021314379 WHIRLPOOL 9936f5254616a603a8b75463f6c132c4dfebcc5c0982ab5b2f3a2ee6df20fdff13fcb113f028ba4e578491e3e2e26b4e23ebb95bc21ddfb93f57c0d93ee66e85
|
||||
MISC ChangeLog 2980 SHA256 fe260ed78541b6986cdaf0f89240e8c3f0061985629841fafd6df5319103300e SHA512 3b29726906aa61dd2ba2fd060e808817e9d47c84daf26c2103b016cacc7bcb41b83247a1ffb9d14190deafd59a5b182237ed53fa267373e8a7d7ec4e35ec3eb4 WHIRLPOOL 2baa3e6e5170bc514c0b314eb49a43e9249848db3a25795135c00e37e42f97bed7552d942f6e61133bd1813217812a25bebccafa7c32f510f5f425848efbe777
|
||||
MISC ChangeLog-2015 2348 SHA256 343f777d9569de16f5ff95232ebc908eabee68ce641474776aaa8665357e498c SHA512 cc53b01580c21a312d77b59e8d653dcf3c2a8576cf8cf664784d94c60d266224155ed5a2b409c457f8104e05be56bfa449ffb526e42226ece9abd2549d481468 WHIRLPOOL 13ef8138e6c990e173c1042a8b146bcdb6d86121636c79f48226c75931bd3f36f0db0c9d55a348be4ef3e9ef3e7d3a4b00cd6450c524bcbb3472a474c48dc65c
|
||||
MISC metadata.xml 1628 SHA256 266d2867180a0e3080aa3449b5d29a17de2f542e3d5923be64d184638eacad6e SHA512 bebec66f1e38c248c2e90704c717d0d2c151cc60d5c46a9855b32fa6828ba0225492f327a6ecf449e987eb731d9a906ea5ebe022dfe3bca9f5c4c6787236a0a4 WHIRLPOOL 5073ad4d17fe84a50e1adbed8b183f2cd9e58a306a8e442c495a73185104ef5279fc52ee6dffd6eaa6223429d0409cb40d894a5775072bd61399c127f895fc74
|
||||
|
@ -1,124 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=4
|
||||
MY_EXTRAS_VER="20150210-1758Z"
|
||||
BUILD="cmake"
|
||||
|
||||
inherit toolchain-funcs java-pkg-opt-2 mysql-v2
|
||||
# only to make repoman happy. it is really set in the eclass
|
||||
IUSE="$IUSE"
|
||||
|
||||
# REMEMBER: also update eclass/mysql*.eclass before committing!
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
# When MY_EXTRAS is bumped, the index should be revised to exclude these.
|
||||
# This is often broken still
|
||||
EPATCH_EXCLUDE='02040_all_embedded-library-shared-5.1.43.patch '
|
||||
|
||||
DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )"
|
||||
RDEPEND="!media-sound/amarok[embedded]"
|
||||
|
||||
# Please do not add a naive src_unpack to this ebuild
|
||||
# If you want to add a single patch, copy the ebuild to an overlay
|
||||
# and create your own mysql-extras tarball, looking at 000_index.txt
|
||||
|
||||
# Official test instructions:
|
||||
# USE='cluster extraengine perl ssl community' \
|
||||
# FEATURES='test userpriv -usersandbox' \
|
||||
# ebuild mysql-cluster-X.X.XX.ebuild \
|
||||
# digest clean package
|
||||
src_test() {
|
||||
|
||||
local TESTDIR="${CMAKE_BUILD_DIR}/mysql-test"
|
||||
local retstatus_unit
|
||||
local retstatus_tests
|
||||
|
||||
# Bug #213475 - MySQL _will_ object strenously if your machine is named
|
||||
# localhost. Also causes weird failures.
|
||||
[[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
|
||||
|
||||
if ! use "minimal" ; then
|
||||
|
||||
if [[ $UID -eq 0 ]]; then
|
||||
die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
|
||||
fi
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
||||
addpredict /this-dir-does-not-exist/t9.MYI
|
||||
|
||||
# Run CTest (test-units)
|
||||
cmake-utils_src_test
|
||||
retstatus_unit=$?
|
||||
[[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
|
||||
|
||||
# Ensure that parallel runs don't die
|
||||
export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
|
||||
|
||||
# create directories because mysqladmin might right out of order
|
||||
mkdir -p "${T}"/var-tests{,/log}
|
||||
|
||||
# These are failing in MySQL 5.5 for now and are believed to be
|
||||
# false positives:
|
||||
#
|
||||
# main.information_schema, binlog.binlog_statement_insert_delayed,
|
||||
# main.mysqld--help-notwin, ndb.ndbinfo, ndb_binlog.ndb_binlog_index
|
||||
# fails due to USE=-latin1 / utf8 default
|
||||
#
|
||||
# main.mysql_client_test:
|
||||
# segfaults at random under Portage only, suspect resource limits.
|
||||
#
|
||||
# sys_vars.plugin_dir_basic
|
||||
# fails because PLUGIN_DIR is set to MYSQL_LIBDIR64/plugin
|
||||
# instead of MYSQL_LIBDIR/plugin
|
||||
#
|
||||
# main.flush_read_lock_kill
|
||||
# fails because of unknown system variable 'DEBUG_SYNC'
|
||||
#
|
||||
# main.openssl_1
|
||||
# error message changing
|
||||
# -mysqltest: Could not open connection 'default': 2026 SSL connection
|
||||
# error: ASN: bad other signature confirmation
|
||||
# +mysqltest: Could not open connection 'default': 2026 SSL connection
|
||||
# error: error:00000001:lib(0):func(0):reason(1)
|
||||
#
|
||||
|
||||
for t in main.mysql_client_test \
|
||||
binlog.binlog_statement_insert_delayed main.information_schema \
|
||||
main.mysqld--help-notwin main.flush_read_lock_kill \
|
||||
sys_vars.plugin_dir_basic main.openssl_1 \
|
||||
ndb.ndbinfo ndb_binlog.ndb_binlog_index ; do
|
||||
mysql-v2_disable_test "$t" "False positives in Gentoo"
|
||||
done
|
||||
|
||||
# Run mysql tests
|
||||
pushd "${TESTDIR}"
|
||||
|
||||
# run mysql-test tests
|
||||
perl mysql-test-run.pl --force --vardir="${T}/var-tests" \
|
||||
--parallel=auto
|
||||
retstatus_tests=$?
|
||||
[[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
popd
|
||||
|
||||
# Cleanup is important for these testcases.
|
||||
pkill -9 -f "${S}/ndb" 2>/dev/null
|
||||
pkill -9 -f "${S}/sql" 2>/dev/null
|
||||
|
||||
failures=""
|
||||
[[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
|
||||
[[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
[[ -z "$failures" ]] || die "Test failures: $failures"
|
||||
einfo "Tests successfully completed"
|
||||
|
||||
else
|
||||
|
||||
einfo "Skipping server tests due to minimal build."
|
||||
fi
|
||||
}
|
@ -1,142 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
MY_EXTRAS_VER="20150210-1758Z"
|
||||
|
||||
inherit toolchain-funcs java-pkg-opt-2 mysql-multilib
|
||||
# only to make repoman happy. it is really set in the eclass
|
||||
IUSE="$IUSE"
|
||||
|
||||
# REMEMBER: also update eclass/mysql*.eclass before committing!
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
# When MY_EXTRAS is bumped, the index should be revised to exclude these.
|
||||
# This is often broken still
|
||||
#EPATCH_EXCLUDE=''
|
||||
|
||||
DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )"
|
||||
RDEPEND="!media-sound/amarok[embedded]"
|
||||
|
||||
# Please do not add a naive src_unpack to this ebuild
|
||||
# If you want to add a single patch, copy the ebuild to an overlay
|
||||
# and create your own mysql-extras tarball, looking at 000_index.txt
|
||||
|
||||
src_prepare() {
|
||||
mysql-multilib_src_prepare
|
||||
if use libressl ; then
|
||||
sed -i 's/OPENSSL_MAJOR_VERSION STREQUAL "1"/OPENSSL_MAJOR_VERSION STREQUAL "2"/' \
|
||||
"${S}/cmake/ssl.cmake" || die
|
||||
fi
|
||||
}
|
||||
|
||||
# Official test instructions:
|
||||
# USE='cluster extraengine perl ssl community' \
|
||||
# FEATURES='test userpriv -usersandbox' \
|
||||
# ebuild mysql-cluster-X.X.XX.ebuild \
|
||||
# digest clean package
|
||||
multilib_src_test() {
|
||||
|
||||
if ! multilib_is_native_abi ; then
|
||||
einfo "Server tests not available on non-native abi".
|
||||
return 0;
|
||||
fi
|
||||
|
||||
local TESTDIR="${CMAKE_BUILD_DIR}/mysql-test"
|
||||
local retstatus_unit
|
||||
local retstatus_tests
|
||||
|
||||
# Bug #213475 - MySQL _will_ object strenously if your machine is named
|
||||
# localhost. Also causes weird failures.
|
||||
[[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
|
||||
|
||||
if ! use "minimal" ; then
|
||||
|
||||
if [[ $UID -eq 0 ]]; then
|
||||
die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
|
||||
fi
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
||||
addpredict /this-dir-does-not-exist/t9.MYI
|
||||
|
||||
# Run CTest (test-units)
|
||||
cmake-utils_src_test
|
||||
retstatus_unit=$?
|
||||
[[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
|
||||
|
||||
# Ensure that parallel runs don't die
|
||||
export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
|
||||
# Enable parallel testing, auto will try to detect number of cores
|
||||
# You may set this by hand.
|
||||
# The default maximum is 8 unless MTR_MAX_PARALLEL is increased
|
||||
export MTR_PARALLEL="${MTR_PARALLEL:-auto}"
|
||||
|
||||
# create directories because mysqladmin might right out of order
|
||||
mkdir -p "${T}"/var-tests{,/log}
|
||||
|
||||
# These are failing in MySQL 5.5/5.6 for now and are believed to be
|
||||
# false positives:
|
||||
#
|
||||
# main.information_schema, binlog.binlog_statement_insert_delayed,
|
||||
# main.mysqld--help-notwin, funcs_1.is_triggers funcs_1.is_tables_mysql,
|
||||
# funcs_1.is_columns_mysql, binlog.binlog_mysqlbinlog_filter,
|
||||
# perfschema.binlog_edge_mix, perfschema.binlog_edge_stmt,
|
||||
# mysqld--help-notwin, funcs_1.is_triggers, funcs_1.is_tables_mysql, funcs_1.is_columns_mysql
|
||||
# perfschema.binlog_edge_stmt, perfschema.binlog_edge_mix, binlog.binlog_mysqlbinlog_filter
|
||||
# fails due to USE=-latin1 / utf8 default
|
||||
#
|
||||
# main.mysql_client_test:
|
||||
# segfaults at random under Portage only, suspect resource limits.
|
||||
#
|
||||
for t in \
|
||||
binlog.binlog_mysqlbinlog_filter \
|
||||
binlog.binlog_statement_insert_delayed \
|
||||
funcs_1.is_columns_mysql \
|
||||
funcs_1.is_tables_mysql \
|
||||
funcs_1.is_triggers \
|
||||
main.information_schema \
|
||||
main.mysqld--help-notwinfuncs_1.is_triggers \
|
||||
main.mysql_client_test \
|
||||
mysqld--help-notwin \
|
||||
perfschema.binlog_edge_mix \
|
||||
perfschema.binlog_edge_stmt \
|
||||
; do
|
||||
mysql-multilib_disable_test "$t" "False positives in Gentoo"
|
||||
done
|
||||
# ndb.ndbinfo, ndb_binlog.ndb_binlog_index: latin1/utf8
|
||||
for t in \
|
||||
ndb.ndbinfo \
|
||||
ndb_binlog.ndb_binlog_index ; do
|
||||
mysql-multilib_disable_test "$t" "False positives in Gentoo (NDB)"
|
||||
done
|
||||
|
||||
# Run mysql tests
|
||||
pushd "${TESTDIR}"
|
||||
|
||||
# run mysql-test tests
|
||||
perl mysql-test-run.pl --force --vardir="${T}/var-tests"
|
||||
retstatus_tests=$?
|
||||
[[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
popd
|
||||
|
||||
# Cleanup is important for these testcases.
|
||||
pkill -9 -f "${S}/ndb" 2>/dev/null
|
||||
pkill -9 -f "${S}/sql" 2>/dev/null
|
||||
|
||||
failures=""
|
||||
[[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
|
||||
[[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
[[ -z "$failures" ]] || die "Test failures: $failures"
|
||||
einfo "Tests successfully completed"
|
||||
|
||||
else
|
||||
|
||||
einfo "Skipping server tests due to minimal build."
|
||||
fi
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
# ChangeLog for dev-go/go-colortext
|
||||
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
|
||||
# (auto-generated from git log)
|
||||
|
||||
*go-colortext-0_pre20150720 (18 Nov 2015)
|
||||
|
||||
18 Nov 2015; William Hubbs <williamh@gentoo.org>
|
||||
+go-colortext-0_pre20150720.ebuild, +metadata.xml:
|
||||
new package -- a dependency for dev-go/gom
|
||||
|
@ -0,0 +1,4 @@
|
||||
DIST go-colortext-0_pre20150720.tar.gz 3542 SHA256 a09f0130f98f862880c3376b1d2aa69d0507872d6dfd1a51a2e6f9ee5e6d74a2 SHA512 7f70e32f6f7b17c683c4e6131ef6e15d7c1f40ad7cfeb3e8ce02e799370af02493fcdeb8896c73e8f71b4c28ba3accce646a795f404900b7b63bb40f9651287d WHIRLPOOL 3c58de00b8a4cedd548737a7d54d86ec8d1ded6d129b8a5bd77a2a1c79f1d1913be94fa09d2e0543e878e7adc5a053dd92701ba275244dc700723fe7096300e6
|
||||
EBUILD go-colortext-0_pre20150720.ebuild 682 SHA256 1eb35abb27e22cce24955035501cd025399263584612830e59a4766b842fb152 SHA512 1676f7da39dfa47f394d4695be223259b1364de55fae566d3d24a154e5d78377deef0044628386660dab7fc27c1d391dcad18ae5517e2f6e020be6403a91cad1 WHIRLPOOL 5a1de2f4282c49ebf714569fbfae254e51c3b5354bd1e6b0adc34e835c13d2309673b7d25602a260d4cd70fcf5abbde0078e1885502a3823a7be0034480a6896
|
||||
MISC ChangeLog 332 SHA256 e470bd1d76ddca70e597f87ec9079d7b6984b3e12bb7243b93fdbee8d006995c SHA512 97e627f80f41d280f96b451acf01220d58e7c20e15b6bf6afda113ccf4705406c45bb18108ce58f76b17270e7d26eb9caf3ab5bed6326c81d50d16b031610c90 WHIRLPOOL cd8c3150e8c968c318db5073f1e837230c69d15b5f0386facd6498ebd8e6661bec7924a2ee6947a320281e73b7b95e1774f7c00c6b82a2c430c5d9ff8e006c5d
|
||||
MISC metadata.xml 356 SHA256 8741dfbf9b26a428f2ab365d6b4afd17844a519d7493e0a0f58c8137c730c8c7 SHA512 cef8b9fe9a735a0edc1914f8b5861078033bc20199e38f9ae7cfc780ee9ab7078f7118ed8154f22a026f4ca1352e6acfbf9ef99c54f8cf1d2042f892be3026c4 WHIRLPOOL 8db9e0953a2e22482cabcf5de555129ec0248ae49ccf645cc680147acf4d657cd0428cd340f3b5e90fca550efd710c3eaaf3ea2d24834570082804c1bb3fd6a0
|
@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
EGO_PN="github.com/daviddengcn/go-colortext"
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit golang-vcs
|
||||
else
|
||||
EGIT_COMMIT=3b18c85
|
||||
ARCHIVE_URI="https://github.com/daviddengcn/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
inherit golang-vcs-snapshot
|
||||
fi
|
||||
inherit golang-build
|
||||
|
||||
DESCRIPTION="Change the console foreground and background colors"
|
||||
HOMEPAGE="https://github.com/daviddengcn/go-colortext"
|
||||
SRC_URI="${ARCHIVE_URI}"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
src_install() {
|
||||
golang-build_src_install
|
||||
dodoc src/${EGO_PN}/*.md
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>williamh@gentoo.org</email>
|
||||
<name>William Hubbs</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
This go package allows you to change the color of text in the console.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
@ -1,5 +1,7 @@
|
||||
DIST godep-0_pre20150807.tar.gz 46281 SHA256 f3fec4523c75be20663aa9a4f11cda60a04d86d0d0d48ca3ce2330bf35f37fce SHA512 0969692442a63e99f3f16b7d29e85ace12378b536d31dc8f48bd99d6dd4cd45d025d427a21201d897bedf680c5157a6fdd68fe6410f3a9545599558436ce5cfe WHIRLPOOL ef9c7d13df8ac5dcb7ab9ee7766bb95120edfc87c60d336433b5a684af8d8c041ba6c7ec48dceb1d3f3ac9baff7024d5c1e471a41ffe31cc4c47f00c1443044c
|
||||
DIST godep-29.tar.gz 51852 SHA256 ca896c220f2995a50a5d9e63df929fa393c3cd1de9722210b5ef3684981bed2a SHA512 37fcfdbbba62cc942b077551953f45fda495b4db1ee5bafec69e4b3cc63c612785d3e97e8ff073825a532a74889c40b34e99cd592285ad255f64ccd3f8b76eff WHIRLPOOL 39f31d7562e3d8b3748d8958e1105578bbd8d799008d15aa6145eb71e4720985e7e71e0d927b32ba4e20195e2257b11a34748c7652454d1fae2d2df662beb146
|
||||
EBUILD godep-0_pre20150807.ebuild 725 SHA256 8ab32ce639e935b154c0c771bda1b3f76e4f6d59f72c1f49f5b8840f8424430f SHA512 cfdd4ccbcb94359898ecaafbb8828f2162b2962fd8cc11671e4c39321fe28118b8745d147545096e61f5f6ea9ace4df88690ad2093e79f6a040964aad6cabfe7 WHIRLPOOL 016129f849b4f5213905f4c9939055d8b1af27e7311b9121fb79e3fa5a7c7820732c7197da8b387a504d34fd1c78c7d9b1f3481bf1fe49b764084197d4894cfe
|
||||
MISC ChangeLog 2388 SHA256 d49b2a41984c18f7482c4c1e75600c8814052e9c8a2359e47736c74e11a80308 SHA512 b5b08980484e364727f1024bae34db96a8f278d9289e130798880e5a8150842e8d1f41dd8a32489450fa1dfed6397f74ad0fb65b48e6e014c1090bce3bafa822 WHIRLPOOL 66612284bf138a37d0f88e319998da4749526489945ec7cfa21c6f403a93a46f71faa078c3fdb73dfeabb64cd7cfa755f0c5c8f9d5a9e81dbfc426ec68431b91
|
||||
EBUILD godep-29.ebuild 563 SHA256 9b68ec6c46008470803ef6b86dcde558fdb8df3c3e0ae73bf81897f3f83a460a SHA512 e303f7b2cd19ba6fa34b583314131fabf119c44c87c6294f2970468621f93c3c850c25e62126acb79e5ba1e69de70c1da869b004f0cb713f280029876ac86ccc WHIRLPOOL 4066d579107c1706b7b4d82888ff8cc62809b53d0f11684514d7253b8d4abab68306eba495b09892dbd3924d5f2bc5a3856916782f119c82581cb5eae35745c4
|
||||
MISC ChangeLog 2498 SHA256 fb0a4534a24ec847201e46268d4f4f6d6817325af5be1915a5dee9a5c3a766f9 SHA512 66274047d333a413fc2409154f2b4ac35d24eb7c244386fe376ff7b43c254158252f867da51c4977576e1ed0ea84c60508cc9bfc47d4957f45a60a57845cfd8e WHIRLPOOL 8b9f0d2d8a678141598ec65f9682c674f012432d52055c78c76a68b494f554347b5684eafc90987dd15df60c7f821e4f536794bcc52f2204419af6a86ca460a7
|
||||
MISC ChangeLog-2015 699 SHA256 716776a06be15bc13064bcb2bf58a78255e9e2ed01609340e1959dbd7e41f834 SHA512 d642d5ed4538a7317c0afe4f51a6557499982592fbd83cbacf0dc940e2c15d272bcf88daf44228e9bb850ca3aba08a536f63952838a8f845653d452507722995 WHIRLPOOL cfd1b43d540f322d225b29243fbcaddaa91c2f667ce1e09d80f3d4e15420ef82e22b6977b93ab97fe32583eb8bf565d1375279b8c330153fa5a9677e36515d02
|
||||
MISC metadata.xml 288 SHA256 4b94a6d569db95402ebdd43c8d881e40bb006961a09033faf76e25a99cd327fc SHA512 68fe135053ade3dd3065df7364cb85975124323fbc28f3920c4b4fda66769bd81d3850d1eb46ca853ef4125621109cd0aebf413ca1aad2055635371d50dcee59 WHIRLPOOL 15f5ae74ccbdc65daa37f4539ad8e550aa6612cdcc138f13180ba6079b8813010f14518e593efe49c52324349435d5580ef0841c1e7edbd927598ffb3614a365
|
||||
|
@ -0,0 +1,29 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
EGO_PN=github.com/tools/godep
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit golang-vcs
|
||||
else
|
||||
KEYWORDS="~amd64"
|
||||
EGIT_COMMIT=v${PV}
|
||||
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
inherit golang-vcs-snapshot
|
||||
fi
|
||||
inherit golang-build
|
||||
|
||||
DESCRIPTION="dependency tool for go"
|
||||
HOMEPAGE="https://github.com/tools/godep"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
src_install() {
|
||||
dobin godep
|
||||
dodoc src/${EGO_PN}/*.md
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
# ChangeLog for dev-go/gom
|
||||
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
|
||||
# (auto-generated from git log)
|
||||
|
||||
*gom-0_pre20151110 (18 Nov 2015)
|
||||
|
||||
18 Nov 2015; William Hubbs <williamh@gentoo.org> +gom-0_pre20151110.ebuild,
|
||||
+metadata.xml:
|
||||
dependency manager for Go similar to bundle for Ruby
|
||||
|
@ -0,0 +1,4 @@
|
||||
DIST gom-0_pre20151110.tar.gz 9146 SHA256 bbe3aca54f6240587d804835775b7bcae79d62cb2500ddfb46a02c5e9bc05ea0 SHA512 3afde9f2fb9318ffa41a8d429f24e93540117a3ff988a39651cb50c8ba0bcb2c5d94481fed052891404750cfae97a0b176e82121c1ede3dab27eb98ddc476c2c WHIRLPOOL 225d8d4b668c38955c6f90deee71528a93671777afd7e4b4b4a2c14564e1c9f00aad464fa2386a4269f69866b0333d353c1dab0868934fb81583c91df713521f
|
||||
EBUILD gom-0_pre20151110.ebuild 660 SHA256 7ba1c3378835dfc27e59bc6457a561215c848f1290b97c32f13ed31c4fafb783 SHA512 81637437f58931f93709d25b09411c717401605e1703185ae253ee329dae736919a61ff48c8d9b354cc710d69e67da179550118df11f45403449dd8a4122475a WHIRLPOOL 583fef9eafc6b5e4b2f48dd74302dd5603e84498c400846156d76dea340843d754c3351acd4e9e1b6b97db946b19e00d0948e7e3d842371fb199b3a93234a7ca
|
||||
MISC ChangeLog 315 SHA256 c34178c96d2da75c98a5a5867b8ab94ee216f722580a8ad8f2830935edeb1a7c SHA512 ef081d2ec058b4b854428540c4dc5a6fc626f15483e7b2717af37b5cc8f2f7ad384f37c6501928db41ebc3aa488766e20ce1de9a9e278015d5d391cec9a51f18 WHIRLPOOL 154f5d2e0c85b97cda3ed0aaeea8a5d3cd883febeb58324786f998b2c3e52ed03e03998818171a4efb90cd48b0b58197ce91ae2a32ca437765404c1db855fab4
|
||||
MISC metadata.xml 355 SHA256 644f3f99ca8b14f2f2cd196522f1001f535136c6fcb8d83f8e59ad825bb295ff SHA512 84eea8a9f7ff83479a562e0e4abe22a36a06bfb464b6b6ea6a967abde257e64f40cda8a662b58653850a8e7a2899314e17c440b26d5b319480ddbb004df4f6da WHIRLPOOL 92f2e669cc7f97e016150ae6f8a23969c1e3901fdd7041a96cae977cbf8c0f6f142df24c37401505c3363d189dbfce317107a6e10881b3239e52256f2e96c83e
|
@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
EGO_PN=github.com/mattn/gom
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit golang-vcs
|
||||
else
|
||||
EGIT_COMMIT=c522e7d
|
||||
ARCHIVE_URI="https://github.com/mattn/gom/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
inherit golang-vcs-snapshot
|
||||
fi
|
||||
inherit golang-build
|
||||
|
||||
DESCRIPTION="Go Dependency management system similar to bundle for ruby"
|
||||
HOMEPAGE="https://github.com/mattn/gom"
|
||||
SRC_URI="${ARCHIVE_URI}"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
DEPEND="dev-go/go-colortext:="
|
||||
RDEPEND=""
|
||||
|
||||
src_install() {
|
||||
dobin gom
|
||||
dodoc src/${EGO_PN}/README.mkd
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>williamh@gentoo.org</email>
|
||||
<name>William Hubbs</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
Gom is a dependency manager for Go which is similar to Ruby's bundle.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
@ -1,4 +1,4 @@
|
||||
DIST dict4j-1.1-src.jar 50269 SHA256 71e2e0cf6fcc887bf39ce444e37052f4caa7b100fd3f9abe78d169c977d7ef3c SHA512 35a6d77d13effa8d5e59ed2c03ff5700ccf2d91673b2bcf420a4f216176ca521dff741ff6660547823d16d06df1dcd2d44be1e90ce293a83ad9fa649b5caf7c6 WHIRLPOOL 369e77461ee2b80b4439adab7ad1c09f1ed194bda7c8617cac074a2faf7fff3c6aa4c1e36db05531aadcd2bbdb6190b2cd7b17f3921e6599f89ff292c62df305
|
||||
EBUILD dict4j-1.1.ebuild 550 SHA256 5c5b03e8187f49bb85d9b43878f699c8f615adcb7fe3bade754216e9f0e4e90d SHA512 89215831c69f194c7c2ee8056ec85f65439987fc9fae00fe9f507109dc7d44f2cc0ad6d1e1b29e1bfc193b3a602101414a2b7897348f76b633b4dc8a1e5a0716 WHIRLPOOL 72a7b5f82a08a8fb5f4724690dcb82f8e3dfd7661b1726cc7c627b77a723eb565cc5a131737398267987e36d2264d94e456cf678a1eded122c2bb4d3e21ab7da
|
||||
MISC ChangeLog 500 SHA256 e5c303d538f74dd40fb0d042b10750f2c2d015055efbd566acff613ed8541af6 SHA512 3f7f1930352d6735683c1b8416b403027481a060089764159745413727bd2beef9f2e43f91b2da46c476a9ef4afa6c490a2bb249ed305eb0fd36b74ab711c26b WHIRLPOOL 8cae53a8bad602de9891429f6a112721e1a7cb44d84051b12eb4f40ef8236d9115e387401d6cf57b87301110c38dac220ac2080dc66b0a647a3e8ecde648fbd3
|
||||
DIST dict4j-1.1.jar 50269 SHA256 71e2e0cf6fcc887bf39ce444e37052f4caa7b100fd3f9abe78d169c977d7ef3c SHA512 35a6d77d13effa8d5e59ed2c03ff5700ccf2d91673b2bcf420a4f216176ca521dff741ff6660547823d16d06df1dcd2d44be1e90ce293a83ad9fa649b5caf7c6 WHIRLPOOL 369e77461ee2b80b4439adab7ad1c09f1ed194bda7c8617cac074a2faf7fff3c6aa4c1e36db05531aadcd2bbdb6190b2cd7b17f3921e6599f89ff292c62df305
|
||||
EBUILD dict4j-1.1.ebuild 516 SHA256 7fc8e904a9338cfb7bebc82f7391e406ecbe9131f1bfd5c3e8e43dd34cf9a663 SHA512 dfc764b50dee83573ef2b49330ec5385dd1ef510dffda736cb31442e962e1d26ef67728ea968767f5541ce0c8966e5d81368f156862b5712f67b4e1a735049a7 WHIRLPOOL 0a4c0259c1f98b1dd830af075d93d09b01f921ff53a5ea65bbc03ddc4a058aa0d3793968d9727a90e199d71a1b1906d1586923a0013e9e6fddd093c4fa1f93a7
|
||||
MISC ChangeLog 730 SHA256 45031414968014d7a8fd4207bf3675ac17ef5cac524fd1cc5592cbca4c79874f SHA512 9ce3960c2adbb1df223527fbf76a41dd4c7cc0c4f24b2df51796ee76f763d3d9ca6ac391d974c985b22618f5642b1890c22064c62cb77f912c2a24f58e2e5e0e WHIRLPOOL c48112b65fd5214764c9c0aae077ff4dceb9d4cf466b285b8ded1e3a1564279d5dcfa49d497e9ddc4e68fd542046a43ef630086ea7925fd0ab53fa2c40973c0d
|
||||
MISC metadata.xml 301 SHA256 b674beefd7e25ed983788548ac6319b958267dcd08be0897848b5beb6245a129 SHA512 b01c0847f4a99cc58f4dddd601eb88cd914ded84adb29b99d87ff41cbc4f216a1594cbffd25d5a8497e6ac03e9876374d5ff41ba7f2bafbfc919bb9b632ab648 WHIRLPOOL 51ddc24ca6f13bbeb750a46180daaccd59ac586e1cc29894d647e1646b1ed4a50f3bb7b5344424e0d5010fc25262b0d8e7c48b2f8cd80621ad718d6a0546d6cb
|
||||
|
@ -1,8 +1,5 @@
|
||||
AUX build.xml 465 SHA256 0c34f76782a8d9a421d21f4ea7d8182d9f6411bef014c47335b79b5e850edd47 SHA512 4eb793b6f94474cbb100302190b34692817b7ead7e14a6171db78fc80f1caeebe51e6422e1539997a88f6df8d7dc4029268a9ca339fc98d4331c2e84ad413260 WHIRLPOOL 6a7be40bd56e0d2bc042e4eeed435b8bc156e9b96cf36090e0c35ca3c3b1a05996470e067d74b43f15000f987bb5d62d18221d365e5a0776f246e53f3842ecb3
|
||||
DIST lzma463.tar.bz2 288057 SHA256 42396b90eedfef31951c1411902ed21ca9fb62d506c49dd1a2d4a7c56e53fbb3 SHA512 9e1fab5c54611c8ba9db2f4a0495d8a50d68a053d42e57a30f3a05021c68790d20578feac7c6ecc96777180633a552948e731e37dba0a07c9160e83e35e69fe8 WHIRLPOOL e1117a5867639b2569fbf4d5f2dc52c1bc0e5b2bbae4680aec20cc3482d1977c4304953955fbf29f33f371687dc4c9c62d155b6acb585bcbefe3e55cdcfb0c48
|
||||
DIST lzma918.tar.bz2 533322 SHA256 fc5ec0f356ad6cc54f39826564d036c444e495fcce4d8b876dc2697dbef2684c SHA512 fa32920d5c45e80c6d029fa1244154e7ae2a2db676e9b115359e955bec829f4cffa6cd8297cae388aca540fc2974dfced4ce284fb351992d7b4a337292da3803 WHIRLPOOL e6aa0f6929c5d422c0dc49c2981ea17cbe2c90fa55c2856ca512d716730cb813ba63d5c7313670aac3073074410dad567f4d854d2cd45ea02309e0c64337dd17
|
||||
EBUILD lzma-4.63.ebuild 811 SHA256 42511b7370b08623fae52933ad73959a4b7f9af774f535f5ffcfce111a52e013 SHA512 001c34cb24ec4bc55606594e7ee1a87a4b176c682d1b3826b43b9b9ee2ab26a31cd90ae757c67dd56570bb7101cd60584e809983ebd37e1f2085d09827f877e5 WHIRLPOOL f9ed999955b9034f3411ed7e47980ca6c1f4b11ed0d0d13331a4b13343d49cdaecb73a9dfcc4319e30ce32117d66193fb04868325477e06ff254847dd046ed3b
|
||||
EBUILD lzma-9.18.ebuild 511 SHA256 9b5f0bdc357522b6bd152d9eff6b3d690344373fd2febc185971900bbb466b39 SHA512 ebbdaa0a8d72abf535cd8e0bce3e6dfcea827b53fe7cf3ba94395a24d2e778234b614e37acf3c3d83983571f14f4a1dc868108f3d906ff0739d39f26594c9450 WHIRLPOOL de9b67e6f3f00d99199248996569a2bdae75820ba2ee74f99e425a3463e4b15431e32d39d1117412b87274af0590c43a1f36647c7a8e058a94d0b61b0a7dd7c4
|
||||
MISC ChangeLog 2292 SHA256 c7c4748fc442026961f872edb1e7a4e4b40b70bce4ff021f981a75109d76c1fa SHA512 492ba73bd278afecafa37183c9909ffdc3313b6d7d5f04aa7c60d94a912d8fb6ee2099c1e84fd7d144b0db10d9d19aeda7052414f51a73dec45171045d145e7f WHIRLPOOL d2979bb1ce5a97363c3442c44a728aac0f4c876abe6730216bc21eeb9a7a14ec1df93e35bd860b69f45ded2e494608d4b2e6123048d6a0c1ad5ea28f83b30b05
|
||||
EBUILD lzma-9.18.ebuild 509 SHA256 8e7d62fe5d34121a37d973f07b7c63d1cc0ab83d1bbcbc3bdf5d08c23c39a6a5 SHA512 19e735d8fa508702b5ead346ba39d8e68e956d7e22c3bc389d232b2fc3a55d770c59df47dbc4ab1dcbd0950a65daa523c7d552aedbefbb91a8a06ad8ceb04431 WHIRLPOOL 115a0461bf24184b36087bb8c60ff0c46c922d731a89bacb269720dad5f61b2107bf015db7a74369b6f490d6ffb2a889a9cd99f951ec49480bf3e1f365807db0
|
||||
MISC ChangeLog 2724 SHA256 c442145d84da71bc286b0dab1b773f0ec491a89ea0fc0a9a2a036b542b287d1c SHA512 7d8a3dc4e0c18bf0494ad88ead85fc6e44df5f845612248c322a91d166f70b1f39f0d0691ddf1907b1dbf1e04eb2277381f3de59314c237ab7a81f8ca91428c9 WHIRLPOOL aa23e9ccb7a847288e1d1c91b912f1ba5603d5c4e4ad0ecd0798f111efb97965313b3e6b341b02be0d72f5eba29094be937428a0b66dced6d6db81c193f44dc1
|
||||
MISC ChangeLog-2015 829 SHA256 03f1f83da923096c9f408d702a8824804c6318ce19d0c431ba7e46c83a15ae23 SHA512 15417efebe1eeb99450450c928c10b43ba4074fc2218fa15793f5aa3c1c35a7eed2e714c4be9175312767e77e6c5bde35756520887fae2d139a582bf55cbf005 WHIRLPOOL 5923418c8aaa288d0693bdb786efd7c5d3322ad2a8d7138acb36ec87c458d3425e354b63c4f96f74cee0ab9b9d33913558e65bccb2b16743e019c13a719efaaf
|
||||
MISC metadata.xml 339 SHA256 21cd84564d4b736f12f4eb30f6b6e1b95591cbc31e046d325066a28324c1a463 SHA512 9bdff531ecc125f810e05adefb435170e9d4c22342972a8103a30bb566d8d62beb33f21a34dad639a98c20a70e13250adc8aabce7748427989baead8cda30cb0 WHIRLPOOL 4c93ef3f763429f28823de2fb552e3bb6f93694c47c6fbdd4bb36c2e7b7a1b25c0e461603d544f5a7116570873f6eb08f4756be7b5d9518a4d23d6bbc3b15f4c
|
||||
|
@ -1,18 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="lzmajio" default="jar" basedir=".">
|
||||
<target name="init">
|
||||
<mkdir dir="build"/>
|
||||
<mkdir dir="docs"/>
|
||||
</target>
|
||||
<target name="compile" depends="init">
|
||||
<javac srcdir="SevenZip" destdir="build"/>
|
||||
</target>
|
||||
|
||||
<target name="jar" depends="compile">
|
||||
<jar jarfile="lzma.jar" basedir="build"/>
|
||||
</target>
|
||||
|
||||
<target name="javadoc" depends="init">
|
||||
<javadoc sourcepath="." destdir="docs"/>
|
||||
</target>
|
||||
</project>
|
@ -1,34 +0,0 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="Java code for LZMA compression and decompression"
|
||||
HOMEPAGE="http://www.7-zip.org/"
|
||||
SRC_URI="mirror://sourceforge/sevenzip/${PN}${PV/./}.tar.bz2"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=virtual/jre-1.5"
|
||||
DEPEND=">=virtual/jdk-1.5"
|
||||
S=${WORKDIR}/Java
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}" || die
|
||||
cp "${FILESDIR}"/build.xml . || die
|
||||
#check for upstream adding build.xml, see Request ID 2464084 (on Feature
|
||||
#Request Tracer at http://sourceforge.net/projects/sevenzip/
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar ${PN}.jar
|
||||
use doc && java-pkg_dojavadoc docs
|
||||
use source && java-pkg_dosrc SevenZip
|
||||
}
|
@ -1,5 +1,7 @@
|
||||
DIST coffee-script-1.10.0.tar.gz 813684 SHA256 1747a315002e69c2d459c2e618ac51d13b383a37792f05bdab155b3c943d2ef2 SHA512 4bf6d3e396a3c5eb2b4eb385216ed930f09a3b6d88c3939813ceea21c32b18706640f73d75619528d5ef12a90888e713385ecabbb8d424c06f52eb71e88230ec WHIRLPOOL 216652595821cad1f0c388ff614ceab48de4cec6669f6da98e0607ae94ae16960071d2e18d060b7c6ebd6035dc515f5c0f418940826555752320d672714d0d21
|
||||
DIST coffee-script-1.9.3.tar.gz 810246 SHA256 8c8faeeee21ed3cdde727fcc08ed6062d9d0233679317f026160aee8bfa85060 SHA512 660826e27f842ed67ec6ef59f734087c95585e03b6b8c6d25c8ecfc567f3161f59034e730b61e5f806edaaa7ec6c805ad6d14902857aaf09cf6193b0fe14f506 WHIRLPOOL c99eab68344609b5352ee7b7f59ebb4e6c90d1454c3cf37ac8cb00b1add0637e2e56084864ae54cdeb494a6966a97e896bf95760e1e8dbe1b26c0fc75abd5a41
|
||||
EBUILD coffee-script-1.10.0.ebuild 1148 SHA256 f74b18edd7b63acb67b81a69156f85c8e4c2d6ea8ea8810409a9e568527ea713 SHA512 9c5f9569b9f3119ed8e04ef7654dfe52668de1e7f149556c3f5e284897d84b50fb5fe7d1e555356ad85fd50e3401c989afcac213d621789236f0da7dc0488a3b WHIRLPOOL 62492c6ccdad3273b2891da3bea908a2b805eb1e2407723bb9d0fd3d0f5cdbbcef1fdb041cec30983b18e51d74168fb0d1de9c4b1fbd35a13f87d08b602a0304
|
||||
EBUILD coffee-script-1.9.3-r1.ebuild 1288 SHA256 4388241cb2cdadb6a42b116232b9b42945ecf102796589e259dd81e1158d0de7 SHA512 7ae17145ced73d918ed801c3067196a2713763a02fc1a21ef71dd613b21c7fae1a97839ccca46b30bcba229d7a565e5142c9791d3a0cd317ced1a7d4e3a8578b WHIRLPOOL f613f637ca8182f376e6676a44c881d86a98762336f8b16bfcb759a4bac1b9f6309fa4af1094e1f2cfd1bc96e3c475131a8721c17fff59035c0788339b3eb13a
|
||||
MISC ChangeLog 2074 SHA256 d586466124852a01032f8aacda57508c5f578d8d42306a3643fc40f91eb2aafe SHA512 9ba0d3da78e76522da5faf3c9a7965df459373e6f328a8192c7c92c515a40b3c73ab0a1ccbfb672acc0adfeed7858fcdb8019a8e65b878d65ee874a5c1d09063 WHIRLPOOL 34b516482f8f2206c73f287220940cad6743d01f3fc9440c6b9ddf16881253fdd957050cbbf190e540d82e2d906fadff7ae89a2b6dc832e2a1501e98897c5b3a
|
||||
MISC ChangeLog 2250 SHA256 6c6c1992436a768c6e0d8812191f91b090d6af17e95088b0216741e31a3dde78 SHA512 260c2ea18da6046a9121b1beb7bb0878517de4d4c03add0f5390fa3c1e4a5924c4a9be38481ca3675158c30de62f4210ddd07421ab04632376aa4b0ced512e57 WHIRLPOOL 917a0827226158367575e9931c5469ee2f0e29f422323bd9512c2f07c7cb4f6e768d6b4fb92ae6db0aba68eb82b4ebff4a5724402a332d92cbfe46bbda2ce23e
|
||||
MISC ChangeLog-2015 643 SHA256 5eda3d5951a1434f324267dda178ecc04ea84b2fd09f007f2536b0db8c94fef2 SHA512 dd734804274716e285dfbdecc285b1c5148c4ac51c0392cf97ad69acd795866226022205813efc5ecde4ff2753dcf153c0f0752043abd623c023347afea1c6e4 WHIRLPOOL c7b4544184b6827f52633d1e9844bec26321c006560c667c93e12ad6d3bb1e42185e3383587f370d8376162699640ed7bfe74d47bbbdbbfe8109fe0219d79078
|
||||
MISC metadata.xml 329 SHA256 92504467411a749e06164f43fe4d3cb4e94a1a549215b5ad68771e498383c00a SHA512 81b495a3bbebfa553afba0308589aa6f6be1ec55a1c972246e942bab2a8df85c6b09c05458fbfb127257054c5c4796e4f42e723bb2eeab7484e45286f768d403 WHIRLPOOL 22a239b98ba2bd525ce2763d886724bf51f004c25133b208b7624945568183e163a247ad503033d6dfdc07fb7ec9ae4b8c87cfabb234714f016ea8fb980787b6
|
||||
|
@ -0,0 +1,44 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit multilib
|
||||
|
||||
MY_PN="coffeescript"
|
||||
|
||||
DESCRIPTION="A little language that compiles into javascript"
|
||||
HOMEPAGE="http://coffeescript.org/"
|
||||
SRC_URI="https://github.com/jashkenas/${MY_PN}/archive/${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
# This package has a test suite (that works), but it requires a number
|
||||
# of NodeJS/NPM packages that aren't in the tree.
|
||||
IUSE="doc examples"
|
||||
|
||||
RDEPEND="net-libs/nodejs"
|
||||
|
||||
src_install(){
|
||||
local npm_module_dir="/usr/$(get_libdir)/node/${PN}"
|
||||
insinto "${npm_module_dir}"
|
||||
doins *.js package.json
|
||||
doins -r lib
|
||||
dodoc CONTRIBUTING.md README.md
|
||||
|
||||
use doc && dodoc -r documentation
|
||||
use examples && dodoc -r examples
|
||||
|
||||
# The coffee and cake "binaries" use a relative path to find the lib
|
||||
# directory, so we have to symlink them rather than use dobin().
|
||||
exeinto "${npm_module_dir}/bin"
|
||||
doexe bin/cake
|
||||
doexe bin/coffee
|
||||
dosym "${npm_module_dir}/bin/cake" "/usr/bin/cake"
|
||||
dosym "${npm_module_dir}/bin/coffee" "/usr/bin/coffee"
|
||||
}
|
@ -1,784 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool systemd
|
||||
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
|
||||
function php_get_uri ()
|
||||
{
|
||||
case "${1}" in
|
||||
"php-pre")
|
||||
echo "http://downloads.php.net/dsp/${2}"
|
||||
;;
|
||||
"php")
|
||||
echo "http://www.php.net/distributions/${2}"
|
||||
;;
|
||||
"olemarkus")
|
||||
echo "https://dev.gentoo.org/~olemarkus/php/${2}"
|
||||
;;
|
||||
"gentoo")
|
||||
echo "mirror://gentoo/${2}"
|
||||
;;
|
||||
*)
|
||||
die "unhandled case in php_get_uri"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
PHP_MV="$(get_major_version)"
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
# alias, so we can handle different types of releases (finals, rcs, alphas,
|
||||
# betas, ...) w/o changing the whole ebuild
|
||||
PHP_PV="${PV/_rc/RC}"
|
||||
PHP_PV="${PHP_PV/_alpha/alpha}"
|
||||
PHP_PV="${PHP_PV/_beta/beta}"
|
||||
PHP_RELEASE="php"
|
||||
[[ ${PV} == ${PV/_alpha/} ]] || PHP_RELEASE="php-pre"
|
||||
[[ ${PV} == ${PV/_beta/} ]] || PHP_RELEASE="php-pre"
|
||||
[[ ${PV} == ${PV/_rc/} ]] || PHP_RELEASE="php-pre"
|
||||
PHP_P="${PN}-${PHP_PV}"
|
||||
|
||||
PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
|
||||
|
||||
PHP_FPM_CONF_VER="1"
|
||||
|
||||
SRC_URI="${PHP_SRC_URI}"
|
||||
|
||||
DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs"
|
||||
HOMEPAGE="http://php.net/"
|
||||
LICENSE="PHP-3"
|
||||
|
||||
S="${WORKDIR}/${PHP_P}"
|
||||
|
||||
# We can build the following SAPIs in the given order
|
||||
SAPIS="embed cli cgi fpm apache2"
|
||||
|
||||
# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
|
||||
IUSE="${IUSE}
|
||||
${SAPIS/cli/+cli}
|
||||
threads"
|
||||
|
||||
IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
|
||||
crypt +ctype curl debug
|
||||
enchant exif frontbase +fileinfo +filter firebird
|
||||
flatfile ftp gd gdbm gmp +hash +iconv imap inifile
|
||||
intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
|
||||
mssql mysql libmysqlclient mysqli nls
|
||||
oci8-instant-client odbc +opcache pcntl pdo +phar +posix postgres qdbm
|
||||
readline recode selinux +session sharedmem
|
||||
+simplexml snmp soap sockets spell sqlite ssl
|
||||
sybase-ct sysvipc systemd tidy +tokenizer truetype unicode vpx wddx
|
||||
+xml xmlreader xmlwriter xmlrpc xpm xslt zip zlib"
|
||||
|
||||
DEPEND="
|
||||
>=app-eselect/eselect-php-0.7.1-r3[apache2?,fpm?]
|
||||
>=dev-libs/libpcre-8.32[unicode]
|
||||
apache2? ( || ( >=www-servers/apache-2.4[apache2_modules_unixd,threads=]
|
||||
<www-servers/apache-2.4[threads=] ) )
|
||||
berkdb? ( =sys-libs/db-4* )
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
|
||||
cjk? ( !gd? (
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0=
|
||||
sys-libs/zlib
|
||||
) )
|
||||
crypt? ( >=dev-libs/libmcrypt-2.4 )
|
||||
curl? ( >=net-misc/curl-7.10.5 )
|
||||
enchant? ( app-text/enchant )
|
||||
exif? ( !gd? (
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0=
|
||||
sys-libs/zlib
|
||||
) )
|
||||
firebird? ( dev-db/firebird )
|
||||
gd? ( virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib )
|
||||
gdbm? ( >=sys-libs/gdbm-1.8.0 )
|
||||
gmp? ( >=dev-libs/gmp-4.1.2 )
|
||||
iconv? ( virtual/libiconv )
|
||||
imap? ( virtual/imap-c-client[ssl=] )
|
||||
intl? ( dev-libs/icu:= )
|
||||
iodbc? ( dev-db/libiodbc )
|
||||
kerberos? ( virtual/krb5 )
|
||||
ldap? ( >=net-nds/openldap-1.2.11 )
|
||||
ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
|
||||
libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
|
||||
mssql? ( dev-db/freetds[mssql] )
|
||||
libmysqlclient? (
|
||||
mysql? ( virtual/mysql )
|
||||
mysqli? ( >=virtual/mysql-4.1 )
|
||||
)
|
||||
nls? ( sys-devel/gettext )
|
||||
oci8-instant-client? ( dev-db/oracle-instantclient-basic )
|
||||
odbc? ( >=dev-db/unixODBC-1.8.13 )
|
||||
postgres? ( dev-db/postgresql )
|
||||
qdbm? ( dev-db/qdbm )
|
||||
readline? ( sys-libs/readline )
|
||||
recode? ( app-text/recode )
|
||||
sharedmem? ( dev-libs/mm )
|
||||
simplexml? ( >=dev-libs/libxml2-2.6.8 )
|
||||
snmp? ( >=net-analyzer/net-snmp-5.2 )
|
||||
soap? ( >=dev-libs/libxml2-2.6.8 )
|
||||
spell? ( >=app-text/aspell-0.50 )
|
||||
sqlite? ( >=dev-db/sqlite-3.7.6.3 )
|
||||
ssl? ( >=dev-libs/openssl-0.9.7 )
|
||||
sybase-ct? ( dev-db/freetds )
|
||||
tidy? ( app-text/htmltidy )
|
||||
truetype? (
|
||||
=media-libs/freetype-2*
|
||||
>=media-libs/t1lib-5.0.0
|
||||
!gd? (
|
||||
virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib )
|
||||
)
|
||||
unicode? ( dev-libs/oniguruma )
|
||||
vpx? ( media-libs/libvpx )
|
||||
wddx? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xml? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
|
||||
xmlreader? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xpm? (
|
||||
x11-libs/libXpm
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0= sys-libs/zlib
|
||||
)
|
||||
xslt? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
|
||||
zip? ( sys-libs/zlib )
|
||||
zlib? ( sys-libs/zlib )
|
||||
virtual/mta
|
||||
"
|
||||
|
||||
php="=${CATEGORY}/${PF}"
|
||||
|
||||
REQUIRED_USE="
|
||||
truetype? ( gd )
|
||||
vpx? ( gd )
|
||||
cjk? ( gd )
|
||||
exif? ( gd )
|
||||
|
||||
xpm? ( gd )
|
||||
gd? ( zlib )
|
||||
simplexml? ( xml )
|
||||
soap? ( xml )
|
||||
wddx? ( xml )
|
||||
xmlrpc? ( || ( xml iconv ) )
|
||||
xmlreader? ( xml )
|
||||
xslt? ( xml )
|
||||
ldap-sasl? ( ldap )
|
||||
mhash? ( hash )
|
||||
phar? ( hash )
|
||||
libmysqlclient? ( || (
|
||||
mysql
|
||||
mysqli
|
||||
pdo
|
||||
) )
|
||||
|
||||
qdbm? ( !gdbm )
|
||||
readline? ( !libedit )
|
||||
recode? ( !imap !mysql !mysqli )
|
||||
sharedmem? ( !threads )
|
||||
|
||||
!cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
fpm? (
|
||||
selinux? ( sec-policy/selinux-phpfpm )
|
||||
systemd? ( sys-apps/systemd ) )"
|
||||
|
||||
DEPEND="${DEPEND}
|
||||
sys-devel/flex
|
||||
>=sys-devel/m4-1.4.3
|
||||
>=sys-devel/libtool-1.5.18"
|
||||
|
||||
# Allow users to install production version if they want to
|
||||
|
||||
case "${PHP_INI_VERSION}" in
|
||||
production|development)
|
||||
;;
|
||||
*)
|
||||
PHP_INI_VERSION="development"
|
||||
;;
|
||||
esac
|
||||
|
||||
PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
|
||||
PHP_INI_FILE="php.ini"
|
||||
|
||||
want_apache
|
||||
|
||||
pkg_setup() {
|
||||
depend.apache_pkg_setup
|
||||
}
|
||||
|
||||
php_install_ini() {
|
||||
local phpsapi="${1}"
|
||||
|
||||
# work out where we are installing the ini file
|
||||
php_set_ini_dir "${phpsapi}"
|
||||
|
||||
local phpinisrc="${PHP_INI_UPSTREAM}-${phpsapi}"
|
||||
cp "${PHP_INI_UPSTREAM}" "${phpinisrc}"
|
||||
|
||||
# default to /tmp for save_path, bug #282768
|
||||
sed -e 's|^;session.save_path .*$|session.save_path = "'"${EPREFIX}"'/tmp"|g' -i "${phpinisrc}"
|
||||
|
||||
# Set the extension dir
|
||||
sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" -i "${phpinisrc}"
|
||||
|
||||
# Set the include path to point to where we want to find PEAR packages
|
||||
sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:'"${EPREFIX}"'/usr/share/php'${PHP_MV}':'"${EPREFIX}"'/usr/share/php"|' -i "${phpinisrc}"
|
||||
|
||||
dodir "${PHP_INI_DIR#${EPREFIX}}"
|
||||
insinto "${PHP_INI_DIR#${EPREFIX}}"
|
||||
newins "${phpinisrc}" "${PHP_INI_FILE}"
|
||||
|
||||
elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR#${EPREFIX}}"
|
||||
elog
|
||||
|
||||
dodir "${PHP_EXT_INI_DIR#${EPREFIX}}"
|
||||
dodir "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}"
|
||||
|
||||
if use_if_iuse opcache; then
|
||||
elog "Adding opcache to $PHP_EXT_INI_DIR"
|
||||
echo "zend_extension=${PHP_DESTDIR}/$(get_libdir)/opcache.so" >> "${D}/${PHP_EXT_INI_DIR}"/opcache.ini
|
||||
dosym "${PHP_EXT_INI_DIR#${EPREFIX}}/opcache.ini" "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}/opcache.ini"
|
||||
fi
|
||||
|
||||
# SAPI-specific handling
|
||||
|
||||
if [[ "${sapi}" == "fpm" ]] ; then
|
||||
[[ -z ${PHP_FPM_CONF_VER} ]] && PHP_FPM_CONF_VER=0
|
||||
einfo "Installing FPM CGI config file php-fpm.conf"
|
||||
insinto "${PHP_INI_DIR#${EPREFIX}}"
|
||||
newins "${FILESDIR}/php-fpm-r${PHP_FPM_CONF_VER}.conf" php-fpm.conf
|
||||
|
||||
# Remove bogus /etc/php-fpm.conf.default (bug 359906)
|
||||
[[ -f "${ED}/etc/php-fpm.conf.default" ]] && rm "${ED}/etc/php-fpm.conf.default"
|
||||
fi
|
||||
|
||||
# Install PHP ini files into /usr/share/php
|
||||
|
||||
dodoc php.ini-development
|
||||
dodoc php.ini-production
|
||||
|
||||
}
|
||||
|
||||
php_set_ini_dir() {
|
||||
PHP_INI_DIR="${EPREFIX}/etc/php/${1}-php${SLOT}"
|
||||
PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext"
|
||||
PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# USE=sharedmem (session/mod_mm to be exact) tries to mmap() this path
|
||||
# ([empty session.save_path]/session_mm_[sapi][gid].sem)
|
||||
# there is no easy way to circumvent that, all php calls during
|
||||
# install use -n, so no php.ini file will be used.
|
||||
# As such, this is the easiest way to get around
|
||||
addpredict /session_mm_cli250.sem
|
||||
addpredict /session_mm_cli0.sem
|
||||
|
||||
# Change PHP branding
|
||||
# Get the alpha/beta/rc version
|
||||
sed -re "s|^(PHP_EXTRA_VERSION=\").*(\")|\1-pl${PR/r/}-gentoo\2|g" \
|
||||
-i configure.in || die "Unable to change PHP branding"
|
||||
|
||||
# Patch PHP to show Gentoo as the server platform
|
||||
sed -e 's/PHP_UNAME=`uname -a | xargs`/PHP_UNAME=`uname -s -n -r -v | xargs`/g' \
|
||||
-i configure.in || die "Failed to fix server platform name"
|
||||
|
||||
# Prevent PHP from activating the Apache config,
|
||||
# as we will do that ourselves
|
||||
sed -i \
|
||||
-e "s,-i -a -n php${PHP_MV},-i -n php${PHP_MV},g" \
|
||||
-e "s,-i -A -n php${PHP_MV},-i -n php${PHP_MV},g" \
|
||||
configure sapi/apache2filter/config.m4 sapi/apache2handler/config.m4
|
||||
|
||||
# Patch PHP to support heimdal instead of mit-krb5
|
||||
if has_version "app-crypt/heimdal" ; then
|
||||
sed -e 's|gssapi_krb5|gssapi|g' -i acinclude.m4 \
|
||||
|| die "Failed to fix heimdal libname"
|
||||
sed -e 's|PHP_ADD_LIBRARY(k5crypto, 1, $1)||g' -i acinclude.m4 \
|
||||
|| die "Failed to fix heimdal crypt library reference"
|
||||
fi
|
||||
|
||||
#Add user patches #357637
|
||||
epatch_user
|
||||
|
||||
#force rebuilding aclocal.m4
|
||||
rm aclocal.m4
|
||||
eautoreconf
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# http://bugs.php.net/bug.php?id=48795, bug #343481
|
||||
sed -i -e '/BUILD_CGI="\\$(CC)/s/CC/CXX/' configure || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
addpredict /var/lib/net-snmp/mib_indexes
|
||||
|
||||
PHP_DESTDIR="${EPREFIX}/usr/$(get_libdir)/php${SLOT}"
|
||||
|
||||
# This is a global variable and should be in caps. It isn't because the
|
||||
# phpconfutils eclass relies on exactly this name...
|
||||
# for --with-libdir see bug #327025
|
||||
my_conf="
|
||||
--prefix="${PHP_DESTDIR}"
|
||||
--mandir="${PHP_DESTDIR}"/man
|
||||
--infodir="${PHP_DESTDIR}"/info
|
||||
--libdir="${PHP_DESTDIR}"/lib
|
||||
--with-libdir=$(get_libdir)
|
||||
--without-pear
|
||||
$(use_enable threads maintainer-zts)"
|
||||
|
||||
# extension USE flag shared
|
||||
my_conf+="
|
||||
$(use_enable bcmath bcmath )
|
||||
$(use_with bzip2 bz2 "${EPREFIX}"/usr)
|
||||
$(use_enable calendar calendar )
|
||||
$(use_enable ctype ctype )
|
||||
$(use_with curl curl "${EPREFIX}"/usr)
|
||||
$(use_enable xml dom )
|
||||
$(use_with enchant enchant "${EPREFIX}"/usr)
|
||||
$(use_enable exif exif )
|
||||
$(use_enable fileinfo fileinfo )
|
||||
$(use_enable filter filter )
|
||||
$(use_enable ftp ftp )
|
||||
$(use_with nls gettext "${EPREFIX}"/usr)
|
||||
$(use_with gmp gmp "${EPREFIX}"/usr)
|
||||
$(use_enable hash hash )
|
||||
$(use_with mhash mhash "${EPREFIX}"/usr)
|
||||
$(use_with iconv iconv $(use elibc_glibc || use elibc_musl || echo "${EPREFIX}"/usr))
|
||||
$(use_enable intl intl )
|
||||
$(use_enable ipv6 ipv6 )
|
||||
$(use_enable json json )
|
||||
$(use_with kerberos kerberos "${EPREFIX}"/usr)
|
||||
$(use_enable xml libxml )
|
||||
$(use_with xml libxml-dir "${EPREFIX}"/usr)
|
||||
$(use_enable unicode mbstring )
|
||||
$(use_with crypt mcrypt "${EPREFIX}"/usr)
|
||||
$(use_with mssql mssql "${EPREFIX}"/usr)
|
||||
$(use_with unicode onig "${EPREFIX}"/usr)
|
||||
$(use_with ssl openssl "${EPREFIX}"/usr)
|
||||
$(use_with ssl openssl-dir "${EPREFIX}"/usr)
|
||||
$(use_enable pcntl pcntl )
|
||||
$(use_enable phar phar )
|
||||
$(use_enable pdo pdo )
|
||||
$(use_enable opcache opcache )
|
||||
$(use_with postgres pgsql "${EPREFIX}"/usr)
|
||||
$(use_enable posix posix )
|
||||
$(use_with spell pspell "${EPREFIX}"/usr)
|
||||
$(use_with recode recode "${EPREFIX}"/usr)
|
||||
$(use_enable simplexml simplexml )
|
||||
$(use_enable sharedmem shmop )
|
||||
$(use_with snmp snmp "${EPREFIX}"/usr)
|
||||
$(use_enable soap soap )
|
||||
$(use_enable sockets sockets )
|
||||
$(use_with sqlite sqlite3 "${EPREFIX}"/usr)
|
||||
$(use_with sybase-ct sybase-ct "${EPREFIX}"/usr)
|
||||
$(use_enable sysvipc sysvmsg )
|
||||
$(use_enable sysvipc sysvsem )
|
||||
$(use_enable sysvipc sysvshm )
|
||||
$(use_with systemd fpm-systemd)
|
||||
$(use_with tidy tidy "${EPREFIX}"/usr)
|
||||
$(use_enable tokenizer tokenizer )
|
||||
$(use_enable wddx wddx )
|
||||
$(use_enable xml xml )
|
||||
$(use_enable xmlreader xmlreader )
|
||||
$(use_enable xmlwriter xmlwriter )
|
||||
$(use_with xmlrpc xmlrpc)
|
||||
$(use_with xslt xsl "${EPREFIX}"/usr)
|
||||
$(use_enable zip zip )
|
||||
$(use_with zlib zlib "${EPREFIX}"/usr)
|
||||
$(use_enable debug debug )"
|
||||
|
||||
# DBA support
|
||||
if use cdb || use berkdb || use flatfile || use gdbm || use inifile \
|
||||
|| use qdbm ; then
|
||||
my_conf="${my_conf} --enable-dba${shared}"
|
||||
fi
|
||||
|
||||
# DBA drivers support
|
||||
my_conf+="
|
||||
$(use_with cdb cdb)
|
||||
$(use_with berkdb db4 ${EPREFIX}/usr)
|
||||
$(use_enable flatfile flatfile )
|
||||
$(use_with gdbm gdbm ${EPREFIX}/usr)
|
||||
$(use_enable inifile inifile )
|
||||
$(use_with qdbm qdbm ${EPREFIX}/usr)"
|
||||
|
||||
# Support for the GD graphics library
|
||||
my_conf+="
|
||||
$(use_with truetype freetype-dir ${EPREFIX}/usr)
|
||||
$(use_with truetype t1lib ${EPREFIX}/usr)
|
||||
$(use_enable cjk gd-jis-conv )
|
||||
$(use_with gd jpeg-dir ${EPREFIX}/usr)
|
||||
$(use_with gd png-dir ${EPREFIX}/usr)
|
||||
$(use_with xpm xpm-dir ${EPREFIX}/usr)
|
||||
$(use_with vpx vpx-dir ${EPREFIX}/usr)"
|
||||
# enable gd last, so configure can pick up the previous settings
|
||||
my_conf+="
|
||||
$(use_with gd gd)"
|
||||
|
||||
# IMAP support
|
||||
if use imap ; then
|
||||
my_conf+="
|
||||
$(use_with imap imap ${EPREFIX}/usr)
|
||||
$(use_with ssl imap-ssl ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# Interbase/firebird support
|
||||
|
||||
if use firebird ; then
|
||||
my_conf+="
|
||||
$(use_with firebird interbase ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# LDAP support
|
||||
if use ldap ; then
|
||||
my_conf+="
|
||||
$(use_with ldap ldap ${EPREFIX}/usr)
|
||||
$(use_with ldap-sasl ldap-sasl ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# MySQL support
|
||||
local mysqllib="mysqlnd"
|
||||
local mysqlilib="mysqlnd"
|
||||
use libmysqlclient && mysqllib="${EPREFIX}/usr"
|
||||
use libmysqlclient && mysqlilib="${EPREFIX}/usr/bin/mysql_config"
|
||||
|
||||
my_conf+=" $(use_with mysql mysql $mysqllib)"
|
||||
my_conf+=" $(use_with mysqli mysqli $mysqlilib)"
|
||||
|
||||
local mysqlsock=" $(use_with mysql mysql-sock ${EPREFIX}/var/run/mysqld/mysqld.sock)"
|
||||
if use mysql ; then
|
||||
my_conf+="${mysqlsock}"
|
||||
elif use mysqli ; then
|
||||
my_conf+="${mysqlsock}"
|
||||
fi
|
||||
|
||||
# ODBC support
|
||||
if use odbc ; then
|
||||
my_conf+="
|
||||
$(use_with odbc unixODBC ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
if use iodbc ; then
|
||||
my_conf+="
|
||||
$(use_with iodbc iodbc ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# Oracle support
|
||||
if use oci8-instant-client ; then
|
||||
my_conf+="
|
||||
$(use_with oci8-instant-client oci8)"
|
||||
fi
|
||||
|
||||
# PDO support
|
||||
if use pdo ; then
|
||||
my_conf+="
|
||||
$(use_with mssql pdo-dblib )
|
||||
$(use_with mysql pdo-mysql ${mysqllib})
|
||||
$(use_with postgres pdo-pgsql )
|
||||
$(use_with sqlite pdo-sqlite ${EPREFIX}/usr)
|
||||
$(use_with odbc pdo-odbc unixODBC,${EPREFIX}/usr)"
|
||||
if use oci8-instant-client ; then
|
||||
my_conf+="
|
||||
$(use_with oci8-instant-client pdo-oci)"
|
||||
fi
|
||||
fi
|
||||
|
||||
# readline/libedit support
|
||||
my_conf+="
|
||||
$(use_with readline readline ${EPREFIX}/usr)
|
||||
$(use_with libedit libedit ${EPREFIX}/usr)"
|
||||
|
||||
# Session support
|
||||
if use session ; then
|
||||
my_conf+="
|
||||
$(use_with sharedmem mm ${EPREFIX}/usr)"
|
||||
else
|
||||
my_conf+="
|
||||
$(use_enable session session )"
|
||||
fi
|
||||
|
||||
# Use pic for shared modules such as apache2's mod_php
|
||||
my_conf="${my_conf} --with-pic"
|
||||
|
||||
# we use the system copy of pcre
|
||||
# --with-pcre-regex affects ext/pcre
|
||||
# --with-pcre-dir affects ext/filter and ext/zip
|
||||
my_conf="${my_conf} --with-pcre-regex=${EPREFIX}/usr --with-pcre-dir=${EPREFIX}/usr"
|
||||
|
||||
# Catch CFLAGS problems
|
||||
# Fixes bug #14067.
|
||||
# Changed order to run it in reverse for bug #32022 and #12021.
|
||||
replace-cpu-flags "k6*" "i586"
|
||||
|
||||
# Support user-passed configuration parameters
|
||||
my_conf="${my_conf} ${EXTRA_ECONF:-}"
|
||||
|
||||
# Support the Apache2 extras, they must be set globally for all
|
||||
# SAPIs to work correctly, especially for external PHP extensions
|
||||
|
||||
mkdir -p "${WORKDIR}/sapis-build"
|
||||
for one_sapi in $SAPIS ; do
|
||||
use "${one_sapi}" || continue
|
||||
php_set_ini_dir "${one_sapi}"
|
||||
|
||||
cp -r "${S}" "${WORKDIR}/sapis-build/${one_sapi}"
|
||||
cd "${WORKDIR}/sapis-build/${one_sapi}"
|
||||
|
||||
sapi_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR}
|
||||
--with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE}"
|
||||
|
||||
for sapi in $SAPIS ; do
|
||||
case "$sapi" in
|
||||
cli|cgi|embed|fpm)
|
||||
if [[ "${one_sapi}" == "${sapi}" ]] ; then
|
||||
sapi_conf="${sapi_conf} --enable-${sapi}"
|
||||
else
|
||||
sapi_conf="${sapi_conf} --disable-${sapi}"
|
||||
fi
|
||||
;;
|
||||
|
||||
apache2)
|
||||
if [[ "${one_sapi}" == "${sapi}" ]] ; then
|
||||
sapi_conf="${sapi_conf} --with-apxs2=${EPREFIX}/usr/sbin/apxs"
|
||||
else
|
||||
sapi_conf="${sapi_conf} --without-apxs2"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
econf ${sapi_conf}
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# snmp seems to run during src_compile, too (bug #324739)
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
addpredict /var/lib/net-snmp/mib_indexes
|
||||
|
||||
for sapi in ${SAPIS} ; do
|
||||
if use "${sapi}"; then
|
||||
cd "${WORKDIR}/sapis-build/$sapi" || "Failed to change dir to ${WORKDIR}/sapis-build/$1"
|
||||
emake || die "emake failed"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# see bug #324739 for what happens when we don't have that
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
|
||||
# grab the first SAPI that got built and install common files from there
|
||||
local first_sapi=""
|
||||
for sapi in $SAPIS ; do
|
||||
if use $sapi ; then
|
||||
first_sapi=$sapi
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
# Makefile forgets to create this before trying to write to it...
|
||||
dodir "${PHP_DESTDIR#${EPREFIX}}/bin"
|
||||
|
||||
# Install php environment (without any sapis)
|
||||
cd "${WORKDIR}/sapis-build/$first_sapi"
|
||||
emake INSTALL_ROOT="${D}" \
|
||||
install-build install-headers install-programs \
|
||||
|| die "emake install failed"
|
||||
|
||||
local extension_dir="$("${ED}/${PHP_DESTDIR#${EPREFIX}}/bin/php-config" --extension-dir)"
|
||||
|
||||
# Create the directory where we'll put version-specific php scripts
|
||||
keepdir /usr/share/php${PHP_MV}
|
||||
|
||||
local sapi="", file=""
|
||||
local sapi_list=""
|
||||
|
||||
for sapi in ${SAPIS}; do
|
||||
if use "${sapi}" ; then
|
||||
einfo "Installing SAPI: ${sapi}"
|
||||
cd "${WORKDIR}/sapis-build/${sapi}"
|
||||
|
||||
if [[ "${sapi}" == "apache2" ]] ; then
|
||||
# We're specifically not using emake install-sapi as libtool
|
||||
# may cause unnecessary relink failures (see bug #351266)
|
||||
insinto "${PHP_DESTDIR#${EPREFIX}}/apache2/"
|
||||
newins ".libs/libphp5$(get_libname)" "libphp${PHP_MV}$(get_libname)"
|
||||
keepdir "/usr/$(get_libdir)/apache2/modules"
|
||||
else
|
||||
# needed each time, php_install_ini would reset it
|
||||
local dest="${PHP_DESTDIR#${EPREFIX}}"
|
||||
into "${dest}"
|
||||
case "$sapi" in
|
||||
cli)
|
||||
source="sapi/cli/php"
|
||||
;;
|
||||
cgi)
|
||||
source="sapi/cgi/php-cgi"
|
||||
;;
|
||||
fpm)
|
||||
source="sapi/fpm/php-fpm"
|
||||
;;
|
||||
embed)
|
||||
source="libs/libphp${PHP_MV}$(get_libname)"
|
||||
;;
|
||||
*)
|
||||
die "unhandled sapi in src_install"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ "${source}" == *"$(get_libname)" ]]; then
|
||||
dolib.so "${source}" || die "Unable to install ${sapi} sapi"
|
||||
else
|
||||
dobin "${source}" || die "Unable to install ${sapi} sapi"
|
||||
local name="$(basename ${source})"
|
||||
dosym "${dest}/bin/${name}" "/usr/bin/${name}${SLOT}"
|
||||
fi
|
||||
fi
|
||||
|
||||
php_install_ini "${sapi}"
|
||||
|
||||
# construct correct SAPI string for php-config
|
||||
# thanks to ferringb for the bash voodoo
|
||||
if [[ "${sapi}" == "apache2" ]]; then
|
||||
sapi_list="${sapi_list:+${sapi_list} }apache2handler"
|
||||
else
|
||||
sapi_list="${sapi_list:+${sapi_list} }${sapi}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
# Installing opcache module
|
||||
if use_if_iuse opcache ; then
|
||||
dolib.so "modules/opcache$(get_libname)" || die "Unable to install opcache module"
|
||||
fi
|
||||
|
||||
# Install env.d files
|
||||
newenvd "${FILESDIR}/20php5-envd" \
|
||||
"20php${SLOT}"
|
||||
sed -e "s|/lib/|/$(get_libdir)/|g" -i \
|
||||
"${ED}/etc/env.d/20php${SLOT}"
|
||||
sed -e "s|php5|php${SLOT}|g" -i \
|
||||
"${ED}/etc/env.d/20php${SLOT}"
|
||||
|
||||
# set php-config variable correctly (bug #278439)
|
||||
sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \
|
||||
"${ED}/usr/$(get_libdir)/php${SLOT}/bin/php-config"
|
||||
|
||||
if use fpm ; then
|
||||
if use systemd; then
|
||||
systemd_newunit "${FILESDIR}/php-fpm_at.service" "php-fpm@${SLOT}.service"
|
||||
else
|
||||
systemd_newunit "${FILESDIR}/php-fpm_at-simple.service" "php-fpm@${SLOT}.service"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
echo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
||||
PHP_BIN="${WORKDIR}/sapis-build/cli/sapi/cli/php"
|
||||
if [[ ! -x "${PHP_BIN}" ]] ; then
|
||||
ewarn "Test phase requires USE=cli, skipping"
|
||||
return
|
||||
else
|
||||
export TEST_PHP_EXECUTABLE="${PHP_BIN}"
|
||||
fi
|
||||
|
||||
if [[ -x "${WORKDIR}/sapis/cgi/php-cgi" ]] ; then
|
||||
export TEST_PHP_CGI_EXECUTABLE="${WORKDIR}/sapis/cgi/php-cgi"
|
||||
fi
|
||||
|
||||
REPORT_EXIT_STATUS=1 "${TEST_PHP_EXECUTABLE}" -n -d "session.save_path=${T}" \
|
||||
"${WORKDIR}/sapis-build/cli/run-tests.php" -n -q -d "session.save_path=${T}"
|
||||
|
||||
for name in ${EXPECTED_TEST_FAILURES}; do
|
||||
mv "${name}.out" "${name}.out.orig" 2>/dev/null
|
||||
done
|
||||
|
||||
local failed="$(find -name '*.out')"
|
||||
if [[ ${failed} != "" ]] ; then
|
||||
ewarn "The following test cases failed unexpectedly:"
|
||||
for name in ${failed}; do
|
||||
ewarn " ${name/.out/}"
|
||||
done
|
||||
else
|
||||
einfo "No unexpected test failures, all fine"
|
||||
fi
|
||||
|
||||
if [[ ${PHP_SHOW_UNEXPECTED_TEST_PASS} == "1" ]] ; then
|
||||
local passed=""
|
||||
for name in ${EXPECTED_TEST_FAILURES}; do
|
||||
[[ -f "${name}.diff" ]] && continue
|
||||
passed="${passed} ${name}"
|
||||
done
|
||||
if [[ ${passed} != "" ]] ; then
|
||||
einfo "The following test cases passed unexpectedly:"
|
||||
for name in ${passed}; do
|
||||
ewarn " ${passed}"
|
||||
done
|
||||
else
|
||||
einfo "None of the known-to-fail tests passed, all fine"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Output some general info to the user
|
||||
if use apache2 ; then
|
||||
APACHE2_MOD_DEFINE="PHP5"
|
||||
APACHE2_MOD_CONF="70_mod_php5" # actually provided by app-eselect/eselect-php
|
||||
apache-module_pkg_postinst
|
||||
fi
|
||||
|
||||
# Create the symlinks for php
|
||||
for m in ${SAPIS}; do
|
||||
[[ ${m} == 'embed' ]] && continue;
|
||||
if use $m ; then
|
||||
local ci=$(eselect php show $m)
|
||||
if [[ -z $ci ]]; then
|
||||
eselect php set $m php${SLOT}
|
||||
einfo "Switched ${m} to use php:${SLOT}"
|
||||
einfo
|
||||
elif [[ $ci != "php${SLOT}" ]] ; then
|
||||
elog "To switch $m to use php:${SLOT}, run"
|
||||
elog " eselect php set $m php${SLOT}"
|
||||
elog
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
elog "Make sure that PHP_TARGETS in ${EPREFIX}/etc/make.conf includes php${SLOT/./-} in order"
|
||||
elog "to compile extensions for the ${SLOT} ABI"
|
||||
elog
|
||||
if ! use readline && use cli ; then
|
||||
ewarn "Note that in order to use php interactivly, you need to enable"
|
||||
ewarn "the readline USE flag or php -a will hang"
|
||||
fi
|
||||
elog
|
||||
elog "This ebuild installed a version of php.ini based on php.ini-${PHP_INI_VERSION} version."
|
||||
elog "You can chose which version of php.ini to install by default by setting PHP_INI_VERSION to either"
|
||||
elog "'production' or 'development' in ${EPREFIX}/etc/make.conf"
|
||||
elog "Both versions of php.ini can be found in ${EPREFIX}/usr/share/doc/${PF}"
|
||||
|
||||
elog
|
||||
elog "For more details on how minor version slotting works (PHP_TARGETS) please read the upgrade guide:"
|
||||
elog "https://www.gentoo.org/proj/en/php/php-upgrading.xml"
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
eselect php cleanup
|
||||
}
|
@ -1,784 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool systemd
|
||||
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
|
||||
function php_get_uri ()
|
||||
{
|
||||
case "${1}" in
|
||||
"php-pre")
|
||||
echo "http://downloads.php.net/dsp/${2}"
|
||||
;;
|
||||
"php")
|
||||
echo "http://www.php.net/distributions/${2}"
|
||||
;;
|
||||
"olemarkus")
|
||||
echo "https://dev.gentoo.org/~olemarkus/php/${2}"
|
||||
;;
|
||||
"gentoo")
|
||||
echo "mirror://gentoo/${2}"
|
||||
;;
|
||||
*)
|
||||
die "unhandled case in php_get_uri"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
PHP_MV="$(get_major_version)"
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
# alias, so we can handle different types of releases (finals, rcs, alphas,
|
||||
# betas, ...) w/o changing the whole ebuild
|
||||
PHP_PV="${PV/_rc/RC}"
|
||||
PHP_PV="${PHP_PV/_alpha/alpha}"
|
||||
PHP_PV="${PHP_PV/_beta/beta}"
|
||||
PHP_RELEASE="php"
|
||||
[[ ${PV} == ${PV/_alpha/} ]] || PHP_RELEASE="php-pre"
|
||||
[[ ${PV} == ${PV/_beta/} ]] || PHP_RELEASE="php-pre"
|
||||
[[ ${PV} == ${PV/_rc/} ]] || PHP_RELEASE="php-pre"
|
||||
PHP_P="${PN}-${PHP_PV}"
|
||||
|
||||
PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
|
||||
|
||||
PHP_FPM_CONF_VER="1"
|
||||
|
||||
SRC_URI="${PHP_SRC_URI}"
|
||||
|
||||
DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs"
|
||||
HOMEPAGE="http://php.net/"
|
||||
LICENSE="PHP-3"
|
||||
|
||||
S="${WORKDIR}/${PHP_P}"
|
||||
|
||||
# We can build the following SAPIs in the given order
|
||||
SAPIS="embed cli cgi fpm apache2"
|
||||
|
||||
# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
|
||||
IUSE="${IUSE}
|
||||
${SAPIS/cli/+cli}
|
||||
threads"
|
||||
|
||||
IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
|
||||
crypt +ctype curl debug
|
||||
enchant exif frontbase +fileinfo +filter firebird
|
||||
flatfile ftp gd gdbm gmp +hash +iconv imap inifile
|
||||
intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
|
||||
mssql mysql libmysqlclient mysqli nls
|
||||
oci8-instant-client odbc +opcache pcntl pdo +phar +posix postgres qdbm
|
||||
readline recode selinux +session sharedmem
|
||||
+simplexml snmp soap sockets spell sqlite ssl
|
||||
sybase-ct sysvipc systemd tidy +tokenizer truetype unicode vpx wddx
|
||||
+xml xmlreader xmlwriter xmlrpc xpm xslt zip zlib"
|
||||
|
||||
DEPEND="
|
||||
>=app-eselect/eselect-php-0.7.1-r3[apache2?,fpm?]
|
||||
>=dev-libs/libpcre-8.32[unicode]
|
||||
apache2? ( || ( >=www-servers/apache-2.4[apache2_modules_unixd,threads=]
|
||||
<www-servers/apache-2.4[threads=] ) )
|
||||
berkdb? ( =sys-libs/db-4* )
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
|
||||
cjk? ( !gd? (
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0=
|
||||
sys-libs/zlib
|
||||
) )
|
||||
crypt? ( >=dev-libs/libmcrypt-2.4 )
|
||||
curl? ( >=net-misc/curl-7.10.5 )
|
||||
enchant? ( app-text/enchant )
|
||||
exif? ( !gd? (
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0=
|
||||
sys-libs/zlib
|
||||
) )
|
||||
firebird? ( dev-db/firebird )
|
||||
gd? ( virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib )
|
||||
gdbm? ( >=sys-libs/gdbm-1.8.0 )
|
||||
gmp? ( >=dev-libs/gmp-4.1.2 )
|
||||
iconv? ( virtual/libiconv )
|
||||
imap? ( virtual/imap-c-client[ssl=] )
|
||||
intl? ( dev-libs/icu:= )
|
||||
iodbc? ( dev-db/libiodbc )
|
||||
kerberos? ( virtual/krb5 )
|
||||
ldap? ( >=net-nds/openldap-1.2.11 )
|
||||
ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
|
||||
libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
|
||||
mssql? ( dev-db/freetds[mssql] )
|
||||
libmysqlclient? (
|
||||
mysql? ( virtual/mysql )
|
||||
mysqli? ( >=virtual/mysql-4.1 )
|
||||
)
|
||||
nls? ( sys-devel/gettext )
|
||||
oci8-instant-client? ( dev-db/oracle-instantclient-basic )
|
||||
odbc? ( >=dev-db/unixODBC-1.8.13 )
|
||||
postgres? ( dev-db/postgresql )
|
||||
qdbm? ( dev-db/qdbm )
|
||||
readline? ( sys-libs/readline )
|
||||
recode? ( app-text/recode )
|
||||
sharedmem? ( dev-libs/mm )
|
||||
simplexml? ( >=dev-libs/libxml2-2.6.8 )
|
||||
snmp? ( >=net-analyzer/net-snmp-5.2 )
|
||||
soap? ( >=dev-libs/libxml2-2.6.8 )
|
||||
spell? ( >=app-text/aspell-0.50 )
|
||||
sqlite? ( >=dev-db/sqlite-3.7.6.3 )
|
||||
ssl? ( >=dev-libs/openssl-0.9.7 )
|
||||
sybase-ct? ( dev-db/freetds )
|
||||
tidy? ( app-text/htmltidy )
|
||||
truetype? (
|
||||
=media-libs/freetype-2*
|
||||
>=media-libs/t1lib-5.0.0
|
||||
!gd? (
|
||||
virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib )
|
||||
)
|
||||
unicode? ( dev-libs/oniguruma )
|
||||
vpx? ( media-libs/libvpx )
|
||||
wddx? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xml? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
|
||||
xmlreader? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xpm? (
|
||||
x11-libs/libXpm
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0= sys-libs/zlib
|
||||
)
|
||||
xslt? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
|
||||
zip? ( sys-libs/zlib )
|
||||
zlib? ( sys-libs/zlib )
|
||||
virtual/mta
|
||||
"
|
||||
|
||||
php="=${CATEGORY}/${PF}"
|
||||
|
||||
REQUIRED_USE="
|
||||
truetype? ( gd )
|
||||
vpx? ( gd )
|
||||
cjk? ( gd )
|
||||
exif? ( gd )
|
||||
|
||||
xpm? ( gd )
|
||||
gd? ( zlib )
|
||||
simplexml? ( xml )
|
||||
soap? ( xml )
|
||||
wddx? ( xml )
|
||||
xmlrpc? ( || ( xml iconv ) )
|
||||
xmlreader? ( xml )
|
||||
xslt? ( xml )
|
||||
ldap-sasl? ( ldap )
|
||||
mhash? ( hash )
|
||||
phar? ( hash )
|
||||
libmysqlclient? ( || (
|
||||
mysql
|
||||
mysqli
|
||||
pdo
|
||||
) )
|
||||
|
||||
qdbm? ( !gdbm )
|
||||
readline? ( !libedit )
|
||||
recode? ( !imap !mysql !mysqli )
|
||||
sharedmem? ( !threads )
|
||||
|
||||
!cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
fpm? (
|
||||
selinux? ( sec-policy/selinux-phpfpm )
|
||||
systemd? ( sys-apps/systemd ) )"
|
||||
|
||||
DEPEND="${DEPEND}
|
||||
sys-devel/flex
|
||||
>=sys-devel/m4-1.4.3
|
||||
>=sys-devel/libtool-1.5.18"
|
||||
|
||||
# Allow users to install production version if they want to
|
||||
|
||||
case "${PHP_INI_VERSION}" in
|
||||
production|development)
|
||||
;;
|
||||
*)
|
||||
PHP_INI_VERSION="development"
|
||||
;;
|
||||
esac
|
||||
|
||||
PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
|
||||
PHP_INI_FILE="php.ini"
|
||||
|
||||
want_apache
|
||||
|
||||
pkg_setup() {
|
||||
depend.apache_pkg_setup
|
||||
}
|
||||
|
||||
php_install_ini() {
|
||||
local phpsapi="${1}"
|
||||
|
||||
# work out where we are installing the ini file
|
||||
php_set_ini_dir "${phpsapi}"
|
||||
|
||||
local phpinisrc="${PHP_INI_UPSTREAM}-${phpsapi}"
|
||||
cp "${PHP_INI_UPSTREAM}" "${phpinisrc}"
|
||||
|
||||
# default to /tmp for save_path, bug #282768
|
||||
sed -e 's|^;session.save_path .*$|session.save_path = "'"${EPREFIX}"'/tmp"|g' -i "${phpinisrc}"
|
||||
|
||||
# Set the extension dir
|
||||
sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" -i "${phpinisrc}"
|
||||
|
||||
# Set the include path to point to where we want to find PEAR packages
|
||||
sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:'"${EPREFIX}"'/usr/share/php'${PHP_MV}':'"${EPREFIX}"'/usr/share/php"|' -i "${phpinisrc}"
|
||||
|
||||
dodir "${PHP_INI_DIR#${EPREFIX}}"
|
||||
insinto "${PHP_INI_DIR#${EPREFIX}}"
|
||||
newins "${phpinisrc}" "${PHP_INI_FILE}"
|
||||
|
||||
elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR#${EPREFIX}}"
|
||||
elog
|
||||
|
||||
dodir "${PHP_EXT_INI_DIR#${EPREFIX}}"
|
||||
dodir "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}"
|
||||
|
||||
if use_if_iuse opcache; then
|
||||
elog "Adding opcache to $PHP_EXT_INI_DIR"
|
||||
echo "zend_extension=${PHP_DESTDIR}/$(get_libdir)/opcache.so" >> "${D}/${PHP_EXT_INI_DIR}"/opcache.ini
|
||||
dosym "${PHP_EXT_INI_DIR#${EPREFIX}}/opcache.ini" "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}/opcache.ini"
|
||||
fi
|
||||
|
||||
# SAPI-specific handling
|
||||
|
||||
if [[ "${sapi}" == "fpm" ]] ; then
|
||||
[[ -z ${PHP_FPM_CONF_VER} ]] && PHP_FPM_CONF_VER=0
|
||||
einfo "Installing FPM CGI config file php-fpm.conf"
|
||||
insinto "${PHP_INI_DIR#${EPREFIX}}"
|
||||
newins "${FILESDIR}/php-fpm-r${PHP_FPM_CONF_VER}.conf" php-fpm.conf
|
||||
|
||||
# Remove bogus /etc/php-fpm.conf.default (bug 359906)
|
||||
[[ -f "${ED}/etc/php-fpm.conf.default" ]] && rm "${ED}/etc/php-fpm.conf.default"
|
||||
fi
|
||||
|
||||
# Install PHP ini files into /usr/share/php
|
||||
|
||||
dodoc php.ini-development
|
||||
dodoc php.ini-production
|
||||
|
||||
}
|
||||
|
||||
php_set_ini_dir() {
|
||||
PHP_INI_DIR="${EPREFIX}/etc/php/${1}-php${SLOT}"
|
||||
PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext"
|
||||
PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# USE=sharedmem (session/mod_mm to be exact) tries to mmap() this path
|
||||
# ([empty session.save_path]/session_mm_[sapi][gid].sem)
|
||||
# there is no easy way to circumvent that, all php calls during
|
||||
# install use -n, so no php.ini file will be used.
|
||||
# As such, this is the easiest way to get around
|
||||
addpredict /session_mm_cli250.sem
|
||||
addpredict /session_mm_cli0.sem
|
||||
|
||||
# Change PHP branding
|
||||
# Get the alpha/beta/rc version
|
||||
sed -re "s|^(PHP_EXTRA_VERSION=\").*(\")|\1-pl${PR/r/}-gentoo\2|g" \
|
||||
-i configure.in || die "Unable to change PHP branding"
|
||||
|
||||
# Patch PHP to show Gentoo as the server platform
|
||||
sed -e 's/PHP_UNAME=`uname -a | xargs`/PHP_UNAME=`uname -s -n -r -v | xargs`/g' \
|
||||
-i configure.in || die "Failed to fix server platform name"
|
||||
|
||||
# Prevent PHP from activating the Apache config,
|
||||
# as we will do that ourselves
|
||||
sed -i \
|
||||
-e "s,-i -a -n php${PHP_MV},-i -n php${PHP_MV},g" \
|
||||
-e "s,-i -A -n php${PHP_MV},-i -n php${PHP_MV},g" \
|
||||
configure sapi/apache2filter/config.m4 sapi/apache2handler/config.m4
|
||||
|
||||
# Patch PHP to support heimdal instead of mit-krb5
|
||||
if has_version "app-crypt/heimdal" ; then
|
||||
sed -e 's|gssapi_krb5|gssapi|g' -i acinclude.m4 \
|
||||
|| die "Failed to fix heimdal libname"
|
||||
sed -e 's|PHP_ADD_LIBRARY(k5crypto, 1, $1)||g' -i acinclude.m4 \
|
||||
|| die "Failed to fix heimdal crypt library reference"
|
||||
fi
|
||||
|
||||
#Add user patches #357637
|
||||
epatch_user
|
||||
|
||||
#force rebuilding aclocal.m4
|
||||
rm aclocal.m4
|
||||
eautoreconf
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# http://bugs.php.net/bug.php?id=48795, bug #343481
|
||||
sed -i -e '/BUILD_CGI="\\$(CC)/s/CC/CXX/' configure || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
addpredict /var/lib/net-snmp/mib_indexes
|
||||
|
||||
PHP_DESTDIR="${EPREFIX}/usr/$(get_libdir)/php${SLOT}"
|
||||
|
||||
# This is a global variable and should be in caps. It isn't because the
|
||||
# phpconfutils eclass relies on exactly this name...
|
||||
# for --with-libdir see bug #327025
|
||||
my_conf="
|
||||
--prefix="${PHP_DESTDIR}"
|
||||
--mandir="${PHP_DESTDIR}"/man
|
||||
--infodir="${PHP_DESTDIR}"/info
|
||||
--libdir="${PHP_DESTDIR}"/lib
|
||||
--with-libdir=$(get_libdir)
|
||||
--without-pear
|
||||
$(use_enable threads maintainer-zts)"
|
||||
|
||||
# extension USE flag shared
|
||||
my_conf+="
|
||||
$(use_enable bcmath bcmath )
|
||||
$(use_with bzip2 bz2 "${EPREFIX}"/usr)
|
||||
$(use_enable calendar calendar )
|
||||
$(use_enable ctype ctype )
|
||||
$(use_with curl curl "${EPREFIX}"/usr)
|
||||
$(use_enable xml dom )
|
||||
$(use_with enchant enchant "${EPREFIX}"/usr)
|
||||
$(use_enable exif exif )
|
||||
$(use_enable fileinfo fileinfo )
|
||||
$(use_enable filter filter )
|
||||
$(use_enable ftp ftp )
|
||||
$(use_with nls gettext "${EPREFIX}"/usr)
|
||||
$(use_with gmp gmp "${EPREFIX}"/usr)
|
||||
$(use_enable hash hash )
|
||||
$(use_with mhash mhash "${EPREFIX}"/usr)
|
||||
$(use_with iconv iconv $(use elibc_glibc || use elibc_musl || echo "${EPREFIX}"/usr))
|
||||
$(use_enable intl intl )
|
||||
$(use_enable ipv6 ipv6 )
|
||||
$(use_enable json json )
|
||||
$(use_with kerberos kerberos "${EPREFIX}"/usr)
|
||||
$(use_enable xml libxml )
|
||||
$(use_with xml libxml-dir "${EPREFIX}"/usr)
|
||||
$(use_enable unicode mbstring )
|
||||
$(use_with crypt mcrypt "${EPREFIX}"/usr)
|
||||
$(use_with mssql mssql "${EPREFIX}"/usr)
|
||||
$(use_with unicode onig "${EPREFIX}"/usr)
|
||||
$(use_with ssl openssl "${EPREFIX}"/usr)
|
||||
$(use_with ssl openssl-dir "${EPREFIX}"/usr)
|
||||
$(use_enable pcntl pcntl )
|
||||
$(use_enable phar phar )
|
||||
$(use_enable pdo pdo )
|
||||
$(use_enable opcache opcache )
|
||||
$(use_with postgres pgsql "${EPREFIX}"/usr)
|
||||
$(use_enable posix posix )
|
||||
$(use_with spell pspell "${EPREFIX}"/usr)
|
||||
$(use_with recode recode "${EPREFIX}"/usr)
|
||||
$(use_enable simplexml simplexml )
|
||||
$(use_enable sharedmem shmop )
|
||||
$(use_with snmp snmp "${EPREFIX}"/usr)
|
||||
$(use_enable soap soap )
|
||||
$(use_enable sockets sockets )
|
||||
$(use_with sqlite sqlite3 "${EPREFIX}"/usr)
|
||||
$(use_with sybase-ct sybase-ct "${EPREFIX}"/usr)
|
||||
$(use_enable sysvipc sysvmsg )
|
||||
$(use_enable sysvipc sysvsem )
|
||||
$(use_enable sysvipc sysvshm )
|
||||
$(use_with systemd fpm-systemd)
|
||||
$(use_with tidy tidy "${EPREFIX}"/usr)
|
||||
$(use_enable tokenizer tokenizer )
|
||||
$(use_enable wddx wddx )
|
||||
$(use_enable xml xml )
|
||||
$(use_enable xmlreader xmlreader )
|
||||
$(use_enable xmlwriter xmlwriter )
|
||||
$(use_with xmlrpc xmlrpc)
|
||||
$(use_with xslt xsl "${EPREFIX}"/usr)
|
||||
$(use_enable zip zip )
|
||||
$(use_with zlib zlib "${EPREFIX}"/usr)
|
||||
$(use_enable debug debug )"
|
||||
|
||||
# DBA support
|
||||
if use cdb || use berkdb || use flatfile || use gdbm || use inifile \
|
||||
|| use qdbm ; then
|
||||
my_conf="${my_conf} --enable-dba${shared}"
|
||||
fi
|
||||
|
||||
# DBA drivers support
|
||||
my_conf+="
|
||||
$(use_with cdb cdb)
|
||||
$(use_with berkdb db4 ${EPREFIX}/usr)
|
||||
$(use_enable flatfile flatfile )
|
||||
$(use_with gdbm gdbm ${EPREFIX}/usr)
|
||||
$(use_enable inifile inifile )
|
||||
$(use_with qdbm qdbm ${EPREFIX}/usr)"
|
||||
|
||||
# Support for the GD graphics library
|
||||
my_conf+="
|
||||
$(use_with truetype freetype-dir ${EPREFIX}/usr)
|
||||
$(use_with truetype t1lib ${EPREFIX}/usr)
|
||||
$(use_enable cjk gd-jis-conv )
|
||||
$(use_with gd jpeg-dir ${EPREFIX}/usr)
|
||||
$(use_with gd png-dir ${EPREFIX}/usr)
|
||||
$(use_with xpm xpm-dir ${EPREFIX}/usr)
|
||||
$(use_with vpx vpx-dir ${EPREFIX}/usr)"
|
||||
# enable gd last, so configure can pick up the previous settings
|
||||
my_conf+="
|
||||
$(use_with gd gd)"
|
||||
|
||||
# IMAP support
|
||||
if use imap ; then
|
||||
my_conf+="
|
||||
$(use_with imap imap ${EPREFIX}/usr)
|
||||
$(use_with ssl imap-ssl ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# Interbase/firebird support
|
||||
|
||||
if use firebird ; then
|
||||
my_conf+="
|
||||
$(use_with firebird interbase ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# LDAP support
|
||||
if use ldap ; then
|
||||
my_conf+="
|
||||
$(use_with ldap ldap ${EPREFIX}/usr)
|
||||
$(use_with ldap-sasl ldap-sasl ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# MySQL support
|
||||
local mysqllib="mysqlnd"
|
||||
local mysqlilib="mysqlnd"
|
||||
use libmysqlclient && mysqllib="${EPREFIX}/usr"
|
||||
use libmysqlclient && mysqlilib="${EPREFIX}/usr/bin/mysql_config"
|
||||
|
||||
my_conf+=" $(use_with mysql mysql $mysqllib)"
|
||||
my_conf+=" $(use_with mysqli mysqli $mysqlilib)"
|
||||
|
||||
local mysqlsock=" $(use_with mysql mysql-sock ${EPREFIX}/var/run/mysqld/mysqld.sock)"
|
||||
if use mysql ; then
|
||||
my_conf+="${mysqlsock}"
|
||||
elif use mysqli ; then
|
||||
my_conf+="${mysqlsock}"
|
||||
fi
|
||||
|
||||
# ODBC support
|
||||
if use odbc ; then
|
||||
my_conf+="
|
||||
$(use_with odbc unixODBC ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
if use iodbc ; then
|
||||
my_conf+="
|
||||
$(use_with iodbc iodbc ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# Oracle support
|
||||
if use oci8-instant-client ; then
|
||||
my_conf+="
|
||||
$(use_with oci8-instant-client oci8)"
|
||||
fi
|
||||
|
||||
# PDO support
|
||||
if use pdo ; then
|
||||
my_conf+="
|
||||
$(use_with mssql pdo-dblib )
|
||||
$(use_with mysql pdo-mysql ${mysqllib})
|
||||
$(use_with postgres pdo-pgsql )
|
||||
$(use_with sqlite pdo-sqlite ${EPREFIX}/usr)
|
||||
$(use_with odbc pdo-odbc unixODBC,${EPREFIX}/usr)"
|
||||
if use oci8-instant-client ; then
|
||||
my_conf+="
|
||||
$(use_with oci8-instant-client pdo-oci)"
|
||||
fi
|
||||
fi
|
||||
|
||||
# readline/libedit support
|
||||
my_conf+="
|
||||
$(use_with readline readline ${EPREFIX}/usr)
|
||||
$(use_with libedit libedit ${EPREFIX}/usr)"
|
||||
|
||||
# Session support
|
||||
if use session ; then
|
||||
my_conf+="
|
||||
$(use_with sharedmem mm ${EPREFIX}/usr)"
|
||||
else
|
||||
my_conf+="
|
||||
$(use_enable session session )"
|
||||
fi
|
||||
|
||||
# Use pic for shared modules such as apache2's mod_php
|
||||
my_conf="${my_conf} --with-pic"
|
||||
|
||||
# we use the system copy of pcre
|
||||
# --with-pcre-regex affects ext/pcre
|
||||
# --with-pcre-dir affects ext/filter and ext/zip
|
||||
my_conf="${my_conf} --with-pcre-regex=${EPREFIX}/usr --with-pcre-dir=${EPREFIX}/usr"
|
||||
|
||||
# Catch CFLAGS problems
|
||||
# Fixes bug #14067.
|
||||
# Changed order to run it in reverse for bug #32022 and #12021.
|
||||
replace-cpu-flags "k6*" "i586"
|
||||
|
||||
# Support user-passed configuration parameters
|
||||
my_conf="${my_conf} ${EXTRA_ECONF:-}"
|
||||
|
||||
# Support the Apache2 extras, they must be set globally for all
|
||||
# SAPIs to work correctly, especially for external PHP extensions
|
||||
|
||||
mkdir -p "${WORKDIR}/sapis-build"
|
||||
for one_sapi in $SAPIS ; do
|
||||
use "${one_sapi}" || continue
|
||||
php_set_ini_dir "${one_sapi}"
|
||||
|
||||
cp -r "${S}" "${WORKDIR}/sapis-build/${one_sapi}"
|
||||
cd "${WORKDIR}/sapis-build/${one_sapi}"
|
||||
|
||||
sapi_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR}
|
||||
--with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE}"
|
||||
|
||||
for sapi in $SAPIS ; do
|
||||
case "$sapi" in
|
||||
cli|cgi|embed|fpm)
|
||||
if [[ "${one_sapi}" == "${sapi}" ]] ; then
|
||||
sapi_conf="${sapi_conf} --enable-${sapi}"
|
||||
else
|
||||
sapi_conf="${sapi_conf} --disable-${sapi}"
|
||||
fi
|
||||
;;
|
||||
|
||||
apache2)
|
||||
if [[ "${one_sapi}" == "${sapi}" ]] ; then
|
||||
sapi_conf="${sapi_conf} --with-apxs2=${EPREFIX}/usr/sbin/apxs"
|
||||
else
|
||||
sapi_conf="${sapi_conf} --without-apxs2"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
econf ${sapi_conf}
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# snmp seems to run during src_compile, too (bug #324739)
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
addpredict /var/lib/net-snmp/mib_indexes
|
||||
|
||||
for sapi in ${SAPIS} ; do
|
||||
if use "${sapi}"; then
|
||||
cd "${WORKDIR}/sapis-build/$sapi" || "Failed to change dir to ${WORKDIR}/sapis-build/$1"
|
||||
emake || die "emake failed"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# see bug #324739 for what happens when we don't have that
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
|
||||
# grab the first SAPI that got built and install common files from there
|
||||
local first_sapi=""
|
||||
for sapi in $SAPIS ; do
|
||||
if use $sapi ; then
|
||||
first_sapi=$sapi
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
# Makefile forgets to create this before trying to write to it...
|
||||
dodir "${PHP_DESTDIR#${EPREFIX}}/bin"
|
||||
|
||||
# Install php environment (without any sapis)
|
||||
cd "${WORKDIR}/sapis-build/$first_sapi"
|
||||
emake INSTALL_ROOT="${D}" \
|
||||
install-build install-headers install-programs \
|
||||
|| die "emake install failed"
|
||||
|
||||
local extension_dir="$("${ED}/${PHP_DESTDIR#${EPREFIX}}/bin/php-config" --extension-dir)"
|
||||
|
||||
# Create the directory where we'll put version-specific php scripts
|
||||
keepdir /usr/share/php${PHP_MV}
|
||||
|
||||
local sapi="", file=""
|
||||
local sapi_list=""
|
||||
|
||||
for sapi in ${SAPIS}; do
|
||||
if use "${sapi}" ; then
|
||||
einfo "Installing SAPI: ${sapi}"
|
||||
cd "${WORKDIR}/sapis-build/${sapi}"
|
||||
|
||||
if [[ "${sapi}" == "apache2" ]] ; then
|
||||
# We're specifically not using emake install-sapi as libtool
|
||||
# may cause unnecessary relink failures (see bug #351266)
|
||||
insinto "${PHP_DESTDIR#${EPREFIX}}/apache2/"
|
||||
newins ".libs/libphp5$(get_libname)" "libphp${PHP_MV}$(get_libname)"
|
||||
keepdir "/usr/$(get_libdir)/apache2/modules"
|
||||
else
|
||||
# needed each time, php_install_ini would reset it
|
||||
local dest="${PHP_DESTDIR#${EPREFIX}}"
|
||||
into "${dest}"
|
||||
case "$sapi" in
|
||||
cli)
|
||||
source="sapi/cli/php"
|
||||
;;
|
||||
cgi)
|
||||
source="sapi/cgi/php-cgi"
|
||||
;;
|
||||
fpm)
|
||||
source="sapi/fpm/php-fpm"
|
||||
;;
|
||||
embed)
|
||||
source="libs/libphp${PHP_MV}$(get_libname)"
|
||||
;;
|
||||
*)
|
||||
die "unhandled sapi in src_install"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ "${source}" == *"$(get_libname)" ]]; then
|
||||
dolib.so "${source}" || die "Unable to install ${sapi} sapi"
|
||||
else
|
||||
dobin "${source}" || die "Unable to install ${sapi} sapi"
|
||||
local name="$(basename ${source})"
|
||||
dosym "${dest}/bin/${name}" "/usr/bin/${name}${SLOT}"
|
||||
fi
|
||||
fi
|
||||
|
||||
php_install_ini "${sapi}"
|
||||
|
||||
# construct correct SAPI string for php-config
|
||||
# thanks to ferringb for the bash voodoo
|
||||
if [[ "${sapi}" == "apache2" ]]; then
|
||||
sapi_list="${sapi_list:+${sapi_list} }apache2handler"
|
||||
else
|
||||
sapi_list="${sapi_list:+${sapi_list} }${sapi}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
# Installing opcache module
|
||||
if use_if_iuse opcache ; then
|
||||
dolib.so "modules/opcache$(get_libname)" || die "Unable to install opcache module"
|
||||
fi
|
||||
|
||||
# Install env.d files
|
||||
newenvd "${FILESDIR}/20php5-envd" \
|
||||
"20php${SLOT}"
|
||||
sed -e "s|/lib/|/$(get_libdir)/|g" -i \
|
||||
"${ED}/etc/env.d/20php${SLOT}"
|
||||
sed -e "s|php5|php${SLOT}|g" -i \
|
||||
"${ED}/etc/env.d/20php${SLOT}"
|
||||
|
||||
# set php-config variable correctly (bug #278439)
|
||||
sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \
|
||||
"${ED}/usr/$(get_libdir)/php${SLOT}/bin/php-config"
|
||||
|
||||
if use fpm ; then
|
||||
if use systemd; then
|
||||
systemd_newunit "${FILESDIR}/php-fpm_at.service" "php-fpm@${SLOT}.service"
|
||||
else
|
||||
systemd_newunit "${FILESDIR}/php-fpm_at-simple.service" "php-fpm@${SLOT}.service"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
echo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
||||
PHP_BIN="${WORKDIR}/sapis-build/cli/sapi/cli/php"
|
||||
if [[ ! -x "${PHP_BIN}" ]] ; then
|
||||
ewarn "Test phase requires USE=cli, skipping"
|
||||
return
|
||||
else
|
||||
export TEST_PHP_EXECUTABLE="${PHP_BIN}"
|
||||
fi
|
||||
|
||||
if [[ -x "${WORKDIR}/sapis/cgi/php-cgi" ]] ; then
|
||||
export TEST_PHP_CGI_EXECUTABLE="${WORKDIR}/sapis/cgi/php-cgi"
|
||||
fi
|
||||
|
||||
REPORT_EXIT_STATUS=1 "${TEST_PHP_EXECUTABLE}" -n -d "session.save_path=${T}" \
|
||||
"${WORKDIR}/sapis-build/cli/run-tests.php" -n -q -d "session.save_path=${T}"
|
||||
|
||||
for name in ${EXPECTED_TEST_FAILURES}; do
|
||||
mv "${name}.out" "${name}.out.orig" 2>/dev/null
|
||||
done
|
||||
|
||||
local failed="$(find -name '*.out')"
|
||||
if [[ ${failed} != "" ]] ; then
|
||||
ewarn "The following test cases failed unexpectedly:"
|
||||
for name in ${failed}; do
|
||||
ewarn " ${name/.out/}"
|
||||
done
|
||||
else
|
||||
einfo "No unexpected test failures, all fine"
|
||||
fi
|
||||
|
||||
if [[ ${PHP_SHOW_UNEXPECTED_TEST_PASS} == "1" ]] ; then
|
||||
local passed=""
|
||||
for name in ${EXPECTED_TEST_FAILURES}; do
|
||||
[[ -f "${name}.diff" ]] && continue
|
||||
passed="${passed} ${name}"
|
||||
done
|
||||
if [[ ${passed} != "" ]] ; then
|
||||
einfo "The following test cases passed unexpectedly:"
|
||||
for name in ${passed}; do
|
||||
ewarn " ${passed}"
|
||||
done
|
||||
else
|
||||
einfo "None of the known-to-fail tests passed, all fine"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Output some general info to the user
|
||||
if use apache2 ; then
|
||||
APACHE2_MOD_DEFINE="PHP5"
|
||||
APACHE2_MOD_CONF="70_mod_php5" # actually provided by app-eselect/eselect-php
|
||||
apache-module_pkg_postinst
|
||||
fi
|
||||
|
||||
# Create the symlinks for php
|
||||
for m in ${SAPIS}; do
|
||||
[[ ${m} == 'embed' ]] && continue;
|
||||
if use $m ; then
|
||||
local ci=$(eselect php show $m)
|
||||
if [[ -z $ci ]]; then
|
||||
eselect php set $m php${SLOT}
|
||||
einfo "Switched ${m} to use php:${SLOT}"
|
||||
einfo
|
||||
elif [[ $ci != "php${SLOT}" ]] ; then
|
||||
elog "To switch $m to use php:${SLOT}, run"
|
||||
elog " eselect php set $m php${SLOT}"
|
||||
elog
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
elog "Make sure that PHP_TARGETS in ${EPREFIX}/etc/make.conf includes php${SLOT/./-} in order"
|
||||
elog "to compile extensions for the ${SLOT} ABI"
|
||||
elog
|
||||
if ! use readline && use cli ; then
|
||||
ewarn "Note that in order to use php interactivly, you need to enable"
|
||||
ewarn "the readline USE flag or php -a will hang"
|
||||
fi
|
||||
elog
|
||||
elog "This ebuild installed a version of php.ini based on php.ini-${PHP_INI_VERSION} version."
|
||||
elog "You can chose which version of php.ini to install by default by setting PHP_INI_VERSION to either"
|
||||
elog "'production' or 'development' in ${EPREFIX}/etc/make.conf"
|
||||
elog "Both versions of php.ini can be found in ${EPREFIX}/usr/share/doc/${PF}"
|
||||
|
||||
elog
|
||||
elog "For more details on how minor version slotting works (PHP_TARGETS) please read the upgrade guide:"
|
||||
elog "https://www.gentoo.org/proj/en/php/php-upgrading.xml"
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
eselect php cleanup
|
||||
}
|
@ -1,775 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool systemd
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
|
||||
function php_get_uri ()
|
||||
{
|
||||
case "${1}" in
|
||||
"php-pre")
|
||||
echo "http://downloads.php.net/dsp/${2}"
|
||||
;;
|
||||
"php")
|
||||
echo "http://www.php.net/distributions/${2}"
|
||||
;;
|
||||
"olemarkus")
|
||||
echo "https://dev.gentoo.org/~olemarkus/php/${2}"
|
||||
;;
|
||||
"gentoo")
|
||||
echo "mirror://gentoo/${2}"
|
||||
;;
|
||||
*)
|
||||
die "unhandled case in php_get_uri"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
PHP_MV="$(get_major_version)"
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
# alias, so we can handle different types of releases (finals, rcs, alphas,
|
||||
# betas, ...) w/o changing the whole ebuild
|
||||
PHP_PV="${PV/_rc/RC}"
|
||||
PHP_PV="${PHP_PV/_alpha/alpha}"
|
||||
PHP_PV="${PHP_PV/_beta/beta}"
|
||||
PHP_RELEASE="php"
|
||||
[[ ${PV} == ${PV/_alpha/} ]] || PHP_RELEASE="php-pre"
|
||||
[[ ${PV} == ${PV/_beta/} ]] || PHP_RELEASE="php-pre"
|
||||
[[ ${PV} == ${PV/_rc/} ]] || PHP_RELEASE="php-pre"
|
||||
PHP_P="${PN}-${PHP_PV}"
|
||||
|
||||
PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
|
||||
|
||||
PHP_FPM_CONF_VER="1"
|
||||
|
||||
SRC_URI="${PHP_SRC_URI}"
|
||||
|
||||
DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs"
|
||||
HOMEPAGE="http://php.net/"
|
||||
LICENSE="PHP-3"
|
||||
|
||||
S="${WORKDIR}/${PHP_P}"
|
||||
|
||||
# We can build the following SAPIs in the given order
|
||||
SAPIS="embed cli cgi fpm apache2"
|
||||
|
||||
# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
|
||||
IUSE="${IUSE}
|
||||
${SAPIS/cli/+cli}
|
||||
threads"
|
||||
|
||||
IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
|
||||
crypt +ctype curl debug
|
||||
enchant exif frontbase +fileinfo +filter firebird
|
||||
flatfile ftp gd gdbm gmp +hash +iconv imap inifile
|
||||
intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
|
||||
mssql mysql libmysqlclient mysqli nls
|
||||
oci8-instant-client odbc +opcache pcntl pdo +phar +posix postgres qdbm
|
||||
readline recode selinux +session sharedmem
|
||||
+simplexml snmp soap sockets spell sqlite ssl
|
||||
sybase-ct sysvipc systemd tidy +tokenizer truetype unicode vpx wddx
|
||||
+xml xmlreader xmlwriter xmlrpc xpm xslt zip zlib"
|
||||
|
||||
DEPEND="
|
||||
>=app-eselect/eselect-php-0.7.1-r3[apache2?,fpm?]
|
||||
>=dev-libs/libpcre-8.32[unicode]
|
||||
apache2? ( || ( >=www-servers/apache-2.4[apache2_modules_unixd,threads=]
|
||||
<www-servers/apache-2.4[threads=] ) )"
|
||||
|
||||
# The supported (that is, autodetected) versions of BDB are listed in
|
||||
# the ./configure script. Other versions *work*, but we need to stick to
|
||||
# the ones that can be detected to avoid a repeat of bug #564824.
|
||||
DEPEND="${DEPEND}
|
||||
berkdb? ( || ( sys-libs/db:5.1
|
||||
sys-libs/db:4.8
|
||||
sys-libs/db:4.7
|
||||
sys-libs/db:4.6
|
||||
sys-libs/db:4.5 ) )
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
|
||||
cjk? ( !gd? (
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0=
|
||||
sys-libs/zlib
|
||||
) )
|
||||
crypt? ( >=dev-libs/libmcrypt-2.4 )
|
||||
curl? ( >=net-misc/curl-7.10.5 )
|
||||
enchant? ( app-text/enchant )
|
||||
exif? ( !gd? (
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0=
|
||||
sys-libs/zlib
|
||||
) )
|
||||
firebird? ( dev-db/firebird )
|
||||
gd? ( virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib )
|
||||
gdbm? ( >=sys-libs/gdbm-1.8.0 )
|
||||
gmp? ( dev-libs/gmp:0 )
|
||||
iconv? ( virtual/libiconv )
|
||||
imap? ( virtual/imap-c-client[ssl=] )
|
||||
intl? ( dev-libs/icu:= )
|
||||
iodbc? ( dev-db/libiodbc )
|
||||
kerberos? ( virtual/krb5 )
|
||||
ldap? ( >=net-nds/openldap-1.2.11 )
|
||||
ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
|
||||
libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
|
||||
mssql? ( dev-db/freetds[mssql] )
|
||||
libmysqlclient? (
|
||||
mysql? ( virtual/mysql )
|
||||
mysqli? ( >=virtual/mysql-4.1 )
|
||||
)
|
||||
nls? ( sys-devel/gettext )
|
||||
oci8-instant-client? ( dev-db/oracle-instantclient-basic )
|
||||
odbc? ( >=dev-db/unixODBC-1.8.13 )
|
||||
postgres? ( dev-db/postgresql:* )
|
||||
qdbm? ( dev-db/qdbm )
|
||||
readline? ( sys-libs/readline:0 )
|
||||
recode? ( app-text/recode )
|
||||
sharedmem? ( dev-libs/mm )
|
||||
simplexml? ( >=dev-libs/libxml2-2.6.8 )
|
||||
snmp? ( >=net-analyzer/net-snmp-5.2 )
|
||||
soap? ( >=dev-libs/libxml2-2.6.8 )
|
||||
spell? ( >=app-text/aspell-0.50 )
|
||||
sqlite? ( >=dev-db/sqlite-3.7.6.3 )
|
||||
ssl? ( dev-libs/openssl:0 )
|
||||
sybase-ct? ( dev-db/freetds )
|
||||
tidy? ( app-text/htmltidy )
|
||||
truetype? (
|
||||
=media-libs/freetype-2*
|
||||
>=media-libs/t1lib-5.0.0
|
||||
!gd? (
|
||||
virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib )
|
||||
)
|
||||
unicode? ( dev-libs/oniguruma )
|
||||
vpx? ( media-libs/libvpx )
|
||||
wddx? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xml? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
|
||||
xmlreader? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xpm? (
|
||||
x11-libs/libXpm
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0= sys-libs/zlib
|
||||
)
|
||||
xslt? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
|
||||
zip? ( sys-libs/zlib )
|
||||
zlib? ( sys-libs/zlib )
|
||||
virtual/mta
|
||||
"
|
||||
|
||||
php="=${CATEGORY}/${PF}"
|
||||
|
||||
REQUIRED_USE="
|
||||
truetype? ( gd )
|
||||
vpx? ( gd )
|
||||
cjk? ( gd )
|
||||
exif? ( gd )
|
||||
|
||||
xpm? ( gd )
|
||||
gd? ( zlib )
|
||||
simplexml? ( xml )
|
||||
soap? ( xml )
|
||||
wddx? ( xml )
|
||||
xmlrpc? ( || ( xml iconv ) )
|
||||
xmlreader? ( xml )
|
||||
xslt? ( xml )
|
||||
ldap-sasl? ( ldap )
|
||||
mhash? ( hash )
|
||||
phar? ( hash )
|
||||
libmysqlclient? ( || (
|
||||
mysql
|
||||
mysqli
|
||||
pdo
|
||||
) )
|
||||
|
||||
qdbm? ( !gdbm )
|
||||
readline? ( !libedit )
|
||||
recode? ( !imap !mysql !mysqli )
|
||||
sharedmem? ( !threads )
|
||||
|
||||
!cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
fpm? (
|
||||
selinux? ( sec-policy/selinux-phpfpm )
|
||||
systemd? ( sys-apps/systemd ) )"
|
||||
|
||||
DEPEND="${DEPEND}
|
||||
sys-devel/flex
|
||||
>=sys-devel/m4-1.4.3
|
||||
>=sys-devel/libtool-1.5.18"
|
||||
|
||||
# Allow users to install production version if they want to
|
||||
|
||||
case "${PHP_INI_VERSION}" in
|
||||
production|development)
|
||||
;;
|
||||
*)
|
||||
PHP_INI_VERSION="development"
|
||||
;;
|
||||
esac
|
||||
|
||||
PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
|
||||
PHP_INI_FILE="php.ini"
|
||||
|
||||
want_apache
|
||||
|
||||
pkg_setup() {
|
||||
depend.apache_pkg_setup
|
||||
}
|
||||
|
||||
php_install_ini() {
|
||||
local phpsapi="${1}"
|
||||
|
||||
# work out where we are installing the ini file
|
||||
php_set_ini_dir "${phpsapi}"
|
||||
|
||||
local phpinisrc="${PHP_INI_UPSTREAM}-${phpsapi}"
|
||||
cp "${PHP_INI_UPSTREAM}" "${phpinisrc}"
|
||||
|
||||
# default to /tmp for save_path, bug #282768
|
||||
sed -e 's|^;session.save_path .*$|session.save_path = "'"${EPREFIX}"'/tmp"|g' -i "${phpinisrc}"
|
||||
|
||||
# Set the extension dir
|
||||
sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" -i "${phpinisrc}"
|
||||
|
||||
# Set the include path to point to where we want to find PEAR packages
|
||||
sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:'"${EPREFIX}"'/usr/share/php'${PHP_MV}':'"${EPREFIX}"'/usr/share/php"|' -i "${phpinisrc}"
|
||||
|
||||
dodir "${PHP_INI_DIR#${EPREFIX}}"
|
||||
insinto "${PHP_INI_DIR#${EPREFIX}}"
|
||||
newins "${phpinisrc}" "${PHP_INI_FILE}"
|
||||
|
||||
elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR#${EPREFIX}}"
|
||||
elog
|
||||
|
||||
dodir "${PHP_EXT_INI_DIR#${EPREFIX}}"
|
||||
dodir "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}"
|
||||
|
||||
if use_if_iuse opcache; then
|
||||
elog "Adding opcache to $PHP_EXT_INI_DIR"
|
||||
echo "zend_extension=${PHP_DESTDIR}/$(get_libdir)/opcache.so" >> "${D}/${PHP_EXT_INI_DIR}"/opcache.ini
|
||||
dosym "${PHP_EXT_INI_DIR#${EPREFIX}}/opcache.ini" "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}/opcache.ini"
|
||||
fi
|
||||
|
||||
# SAPI-specific handling
|
||||
|
||||
if [[ "${sapi}" == "fpm" ]] ; then
|
||||
[[ -z ${PHP_FPM_CONF_VER} ]] && PHP_FPM_CONF_VER=0
|
||||
einfo "Installing FPM CGI config file php-fpm.conf"
|
||||
insinto "${PHP_INI_DIR#${EPREFIX}}"
|
||||
newins "${FILESDIR}/php-fpm-r${PHP_FPM_CONF_VER}.conf" php-fpm.conf
|
||||
|
||||
# Remove bogus /etc/php-fpm.conf.default (bug 359906)
|
||||
[[ -f "${ED}/etc/php-fpm.conf.default" ]] && rm "${ED}/etc/php-fpm.conf.default"
|
||||
fi
|
||||
|
||||
# Install PHP ini files into /usr/share/php
|
||||
|
||||
dodoc php.ini-development
|
||||
dodoc php.ini-production
|
||||
|
||||
}
|
||||
|
||||
php_set_ini_dir() {
|
||||
PHP_INI_DIR="${EPREFIX}/etc/php/${1}-php${SLOT}"
|
||||
PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext"
|
||||
PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Change PHP branding
|
||||
# Get the alpha/beta/rc version
|
||||
sed -re "s|^(PHP_EXTRA_VERSION=\").*(\")|\1-pl${PR/r/}-gentoo\2|g" \
|
||||
-i configure.in || die "Unable to change PHP branding"
|
||||
|
||||
# Patch PHP to show Gentoo as the server platform
|
||||
sed -e 's/PHP_UNAME=`uname -a | xargs`/PHP_UNAME=`uname -s -n -r -v | xargs`/g' \
|
||||
-i configure.in || die "Failed to fix server platform name"
|
||||
|
||||
# Prevent PHP from activating the Apache config,
|
||||
# as we will do that ourselves
|
||||
sed -i \
|
||||
-e "s,-i -a -n php${PHP_MV},-i -n php${PHP_MV},g" \
|
||||
-e "s,-i -A -n php${PHP_MV},-i -n php${PHP_MV},g" \
|
||||
configure sapi/apache2filter/config.m4 sapi/apache2handler/config.m4
|
||||
|
||||
# Patch PHP to support heimdal instead of mit-krb5
|
||||
if has_version "app-crypt/heimdal" ; then
|
||||
sed -e 's|gssapi_krb5|gssapi|g' -i acinclude.m4 \
|
||||
|| die "Failed to fix heimdal libname"
|
||||
sed -e 's|PHP_ADD_LIBRARY(k5crypto, 1, $1)||g' -i acinclude.m4 \
|
||||
|| die "Failed to fix heimdal crypt library reference"
|
||||
fi
|
||||
|
||||
# Fix a const crash in php-fpm, bug #564690.
|
||||
# Only applies to php-5.6.15 and should be fixed in 5.6.16.
|
||||
epatch "${FILESDIR}/fix-5.6.15-fpm-const-crash.patch"
|
||||
|
||||
#Add user patches #357637
|
||||
epatch_user
|
||||
|
||||
#force rebuilding aclocal.m4
|
||||
rm aclocal.m4
|
||||
eautoreconf
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# http://bugs.php.net/bug.php?id=48795, bug #343481
|
||||
sed -i -e '/BUILD_CGI="\\$(CC)/s/CC/CXX/' configure || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
addpredict /var/lib/net-snmp/mib_indexes
|
||||
|
||||
PHP_DESTDIR="${EPREFIX}/usr/$(get_libdir)/php${SLOT}"
|
||||
|
||||
# This is a global variable and should be in caps. It isn't because the
|
||||
# phpconfutils eclass relies on exactly this name...
|
||||
# for --with-libdir see bug #327025
|
||||
my_conf="
|
||||
--prefix="${PHP_DESTDIR}"
|
||||
--mandir="${PHP_DESTDIR}"/man
|
||||
--infodir="${PHP_DESTDIR}"/info
|
||||
--libdir="${PHP_DESTDIR}"/lib
|
||||
--with-libdir=$(get_libdir)
|
||||
--without-pear
|
||||
$(use_enable threads maintainer-zts)"
|
||||
|
||||
# extension USE flag shared
|
||||
my_conf+="
|
||||
$(use_enable bcmath bcmath )
|
||||
$(use_with bzip2 bz2 "${EPREFIX}"/usr)
|
||||
$(use_enable calendar calendar )
|
||||
$(use_enable ctype ctype )
|
||||
$(use_with curl curl "${EPREFIX}"/usr)
|
||||
$(use_enable xml dom )
|
||||
$(use_with enchant enchant "${EPREFIX}"/usr)
|
||||
$(use_enable exif exif )
|
||||
$(use_enable fileinfo fileinfo )
|
||||
$(use_enable filter filter )
|
||||
$(use_enable ftp ftp )
|
||||
$(use_with nls gettext "${EPREFIX}"/usr)
|
||||
$(use_with gmp gmp "${EPREFIX}"/usr)
|
||||
$(use_enable hash hash )
|
||||
$(use_with mhash mhash "${EPREFIX}"/usr)
|
||||
$(use_with iconv iconv $(use elibc_glibc || use elibc_musl || echo "${EPREFIX}"/usr))
|
||||
$(use_enable intl intl )
|
||||
$(use_enable ipv6 ipv6 )
|
||||
$(use_enable json json )
|
||||
$(use_with kerberos kerberos "${EPREFIX}"/usr)
|
||||
$(use_enable xml libxml )
|
||||
$(use_with xml libxml-dir "${EPREFIX}"/usr)
|
||||
$(use_enable unicode mbstring )
|
||||
$(use_with crypt mcrypt "${EPREFIX}"/usr)
|
||||
$(use_with mssql mssql "${EPREFIX}"/usr)
|
||||
$(use_with unicode onig "${EPREFIX}"/usr)
|
||||
$(use_with ssl openssl "${EPREFIX}"/usr)
|
||||
$(use_with ssl openssl-dir "${EPREFIX}"/usr)
|
||||
$(use_enable pcntl pcntl )
|
||||
$(use_enable phar phar )
|
||||
$(use_enable pdo pdo )
|
||||
$(use_enable opcache opcache )
|
||||
$(use_with postgres pgsql "${EPREFIX}"/usr)
|
||||
$(use_enable posix posix )
|
||||
$(use_with spell pspell "${EPREFIX}"/usr)
|
||||
$(use_with recode recode "${EPREFIX}"/usr)
|
||||
$(use_enable simplexml simplexml )
|
||||
$(use_enable sharedmem shmop )
|
||||
$(use_with snmp snmp "${EPREFIX}"/usr)
|
||||
$(use_enable soap soap )
|
||||
$(use_enable sockets sockets )
|
||||
$(use_with sqlite sqlite3 "${EPREFIX}"/usr)
|
||||
$(use_with sybase-ct sybase-ct "${EPREFIX}"/usr)
|
||||
$(use_enable sysvipc sysvmsg )
|
||||
$(use_enable sysvipc sysvsem )
|
||||
$(use_enable sysvipc sysvshm )
|
||||
$(use_with systemd fpm-systemd)
|
||||
$(use_with tidy tidy "${EPREFIX}"/usr)
|
||||
$(use_enable tokenizer tokenizer )
|
||||
$(use_enable wddx wddx )
|
||||
$(use_enable xml xml )
|
||||
$(use_enable xmlreader xmlreader )
|
||||
$(use_enable xmlwriter xmlwriter )
|
||||
$(use_with xmlrpc xmlrpc)
|
||||
$(use_with xslt xsl "${EPREFIX}"/usr)
|
||||
$(use_enable zip zip )
|
||||
$(use_with zlib zlib "${EPREFIX}"/usr)
|
||||
$(use_enable debug debug )"
|
||||
|
||||
# DBA support
|
||||
if use cdb || use berkdb || use flatfile || use gdbm || use inifile \
|
||||
|| use qdbm ; then
|
||||
my_conf+=" --enable-dba${shared}"
|
||||
fi
|
||||
|
||||
# DBA drivers support
|
||||
my_conf+="
|
||||
$(use_with cdb cdb)
|
||||
$(use_with berkdb db4 ${EPREFIX}/usr)
|
||||
$(use_enable flatfile flatfile )
|
||||
$(use_with gdbm gdbm ${EPREFIX}/usr)
|
||||
$(use_enable inifile inifile )
|
||||
$(use_with qdbm qdbm ${EPREFIX}/usr)"
|
||||
|
||||
# Support for the GD graphics library
|
||||
my_conf+="
|
||||
$(use_with truetype freetype-dir ${EPREFIX}/usr)
|
||||
$(use_with truetype t1lib ${EPREFIX}/usr)
|
||||
$(use_enable cjk gd-jis-conv )
|
||||
$(use_with gd jpeg-dir ${EPREFIX}/usr)
|
||||
$(use_with gd png-dir ${EPREFIX}/usr)
|
||||
$(use_with xpm xpm-dir ${EPREFIX}/usr)
|
||||
$(use_with vpx vpx-dir ${EPREFIX}/usr)"
|
||||
# enable gd last, so configure can pick up the previous settings
|
||||
my_conf+="
|
||||
$(use_with gd gd)"
|
||||
|
||||
# IMAP support
|
||||
if use imap ; then
|
||||
my_conf+="
|
||||
$(use_with imap imap ${EPREFIX}/usr)
|
||||
$(use_with ssl imap-ssl ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# Interbase/firebird support
|
||||
my_conf+="
|
||||
$(use_with firebird interbase ${EPREFIX}/usr)"
|
||||
|
||||
# LDAP support
|
||||
if use ldap ; then
|
||||
my_conf+="
|
||||
$(use_with ldap ldap ${EPREFIX}/usr)
|
||||
$(use_with ldap-sasl ldap-sasl ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# MySQL support
|
||||
local mysqllib="mysqlnd"
|
||||
local mysqlilib="mysqlnd"
|
||||
use libmysqlclient && mysqllib="${EPREFIX}/usr"
|
||||
use libmysqlclient && mysqlilib="${EPREFIX}/usr/bin/mysql_config"
|
||||
|
||||
my_conf+=" $(use_with mysql mysql $mysqllib)"
|
||||
my_conf+=" $(use_with mysqli mysqli $mysqlilib)"
|
||||
|
||||
local mysqlsock=" $(use_with mysql mysql-sock ${EPREFIX}/var/run/mysqld/mysqld.sock)"
|
||||
if use mysql ; then
|
||||
my_conf+="${mysqlsock}"
|
||||
elif use mysqli ; then
|
||||
my_conf+="${mysqlsock}"
|
||||
fi
|
||||
|
||||
# ODBC support
|
||||
my_conf+="
|
||||
$(use_with odbc unixODBC ${EPREFIX}/usr)
|
||||
$(use_with iodbc iodbc ${EPREFIX}/usr)"
|
||||
|
||||
# Oracle support
|
||||
my_conf+="
|
||||
$(use_with oci8-instant-client oci8)"
|
||||
|
||||
# PDO support
|
||||
if use pdo ; then
|
||||
my_conf+="
|
||||
$(use_with mssql pdo-dblib )
|
||||
$(use_with mysql pdo-mysql ${mysqllib})
|
||||
$(use_with postgres pdo-pgsql )
|
||||
$(use_with sqlite pdo-sqlite ${EPREFIX}/usr)
|
||||
$(use_with odbc pdo-odbc unixODBC,${EPREFIX}/usr)
|
||||
$(use_with oci8-instant-client pdo-oci)"
|
||||
fi
|
||||
|
||||
# readline/libedit support
|
||||
my_conf+="
|
||||
$(use_with readline readline ${EPREFIX}/usr)
|
||||
$(use_with libedit libedit ${EPREFIX}/usr)"
|
||||
|
||||
# Session support
|
||||
if use session ; then
|
||||
my_conf+="
|
||||
$(use_with sharedmem mm ${EPREFIX}/usr)"
|
||||
else
|
||||
my_conf+="
|
||||
$(use_enable session session )"
|
||||
fi
|
||||
|
||||
# Use pic for shared modules such as apache2's mod_php
|
||||
my_conf+=" --with-pic"
|
||||
|
||||
# we use the system copy of pcre
|
||||
# --with-pcre-regex affects ext/pcre
|
||||
# --with-pcre-dir affects ext/filter and ext/zip
|
||||
my_conf+=" --with-pcre-regex=${EPREFIX}/usr --with-pcre-dir=${EPREFIX}/usr"
|
||||
|
||||
# Catch CFLAGS problems
|
||||
# Fixes bug #14067.
|
||||
# Changed order to run it in reverse for bug #32022 and #12021.
|
||||
replace-cpu-flags "k6*" "i586"
|
||||
|
||||
# Support user-passed configuration parameters
|
||||
my_conf+=" ${EXTRA_ECONF:-}"
|
||||
|
||||
# Support the Apache2 extras, they must be set globally for all
|
||||
# SAPIs to work correctly, especially for external PHP extensions
|
||||
|
||||
mkdir -p "${WORKDIR}/sapis-build"
|
||||
for one_sapi in $SAPIS ; do
|
||||
use "${one_sapi}" || continue
|
||||
php_set_ini_dir "${one_sapi}"
|
||||
|
||||
cp -r "${S}" "${WORKDIR}/sapis-build/${one_sapi}"
|
||||
cd "${WORKDIR}/sapis-build/${one_sapi}"
|
||||
|
||||
sapi_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR}
|
||||
--with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE}"
|
||||
|
||||
for sapi in $SAPIS ; do
|
||||
case "$sapi" in
|
||||
cli|cgi|embed|fpm)
|
||||
if [[ "${one_sapi}" == "${sapi}" ]] ; then
|
||||
sapi_conf="${sapi_conf} --enable-${sapi}"
|
||||
else
|
||||
sapi_conf="${sapi_conf} --disable-${sapi}"
|
||||
fi
|
||||
;;
|
||||
|
||||
apache2)
|
||||
if [[ "${one_sapi}" == "${sapi}" ]] ; then
|
||||
sapi_conf="${sapi_conf} --with-apxs2=${EPREFIX}/usr/sbin/apxs"
|
||||
else
|
||||
sapi_conf="${sapi_conf} --without-apxs2"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
econf ${sapi_conf}
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# snmp seems to run during src_compile, too (bug #324739)
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
addpredict /var/lib/net-snmp/mib_indexes
|
||||
|
||||
for sapi in ${SAPIS} ; do
|
||||
if use "${sapi}"; then
|
||||
cd "${WORKDIR}/sapis-build/$sapi" || "Failed to change dir to ${WORKDIR}/sapis-build/$1"
|
||||
emake || die "emake failed"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# see bug #324739 for what happens when we don't have that
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
|
||||
# grab the first SAPI that got built and install common files from there
|
||||
local first_sapi=""
|
||||
for sapi in $SAPIS ; do
|
||||
if use $sapi ; then
|
||||
first_sapi=$sapi
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
# Makefile forgets to create this before trying to write to it...
|
||||
dodir "${PHP_DESTDIR#${EPREFIX}}/bin"
|
||||
|
||||
# Install php environment (without any sapis)
|
||||
cd "${WORKDIR}/sapis-build/$first_sapi"
|
||||
emake INSTALL_ROOT="${D}" \
|
||||
install-build install-headers install-programs \
|
||||
|| die "emake install failed"
|
||||
|
||||
local extension_dir="$("${ED}/${PHP_DESTDIR#${EPREFIX}}/bin/php-config" --extension-dir)"
|
||||
|
||||
# Create the directory where we'll put version-specific php scripts
|
||||
keepdir /usr/share/php${PHP_MV}
|
||||
|
||||
local sapi="", file=""
|
||||
local sapi_list=""
|
||||
|
||||
for sapi in ${SAPIS}; do
|
||||
if use "${sapi}" ; then
|
||||
einfo "Installing SAPI: ${sapi}"
|
||||
cd "${WORKDIR}/sapis-build/${sapi}"
|
||||
|
||||
if [[ "${sapi}" == "apache2" ]] ; then
|
||||
# We're specifically not using emake install-sapi as libtool
|
||||
# may cause unnecessary relink failures (see bug #351266)
|
||||
insinto "${PHP_DESTDIR#${EPREFIX}}/apache2/"
|
||||
newins ".libs/libphp5$(get_libname)" "libphp${PHP_MV}$(get_libname)"
|
||||
keepdir "/usr/$(get_libdir)/apache2/modules"
|
||||
else
|
||||
# needed each time, php_install_ini would reset it
|
||||
local dest="${PHP_DESTDIR#${EPREFIX}}"
|
||||
into "${dest}"
|
||||
case "$sapi" in
|
||||
cli)
|
||||
source="sapi/cli/php"
|
||||
;;
|
||||
cgi)
|
||||
source="sapi/cgi/php-cgi"
|
||||
;;
|
||||
fpm)
|
||||
source="sapi/fpm/php-fpm"
|
||||
;;
|
||||
embed)
|
||||
source="libs/libphp${PHP_MV}$(get_libname)"
|
||||
;;
|
||||
*)
|
||||
die "unhandled sapi in src_install"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ "${source}" == *"$(get_libname)" ]]; then
|
||||
dolib.so "${source}" || die "Unable to install ${sapi} sapi"
|
||||
else
|
||||
dobin "${source}" || die "Unable to install ${sapi} sapi"
|
||||
local name="$(basename ${source})"
|
||||
dosym "${dest}/bin/${name}" "/usr/bin/${name}${SLOT}"
|
||||
fi
|
||||
fi
|
||||
|
||||
php_install_ini "${sapi}"
|
||||
|
||||
# construct correct SAPI string for php-config
|
||||
# thanks to ferringb for the bash voodoo
|
||||
if [[ "${sapi}" == "apache2" ]]; then
|
||||
sapi_list="${sapi_list:+${sapi_list} }apache2handler"
|
||||
else
|
||||
sapi_list="${sapi_list:+${sapi_list} }${sapi}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
# Installing opcache module
|
||||
if use_if_iuse opcache ; then
|
||||
dolib.so "modules/opcache$(get_libname)" || die "Unable to install opcache module"
|
||||
fi
|
||||
|
||||
# Install env.d files
|
||||
newenvd "${FILESDIR}/20php5-envd" \
|
||||
"20php${SLOT}"
|
||||
sed -e "s|/lib/|/$(get_libdir)/|g" -i \
|
||||
"${ED}/etc/env.d/20php${SLOT}"
|
||||
sed -e "s|php5|php${SLOT}|g" -i \
|
||||
"${ED}/etc/env.d/20php${SLOT}"
|
||||
|
||||
# set php-config variable correctly (bug #278439)
|
||||
sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \
|
||||
"${ED}/usr/$(get_libdir)/php${SLOT}/bin/php-config"
|
||||
|
||||
if use fpm ; then
|
||||
if use systemd; then
|
||||
systemd_newunit "${FILESDIR}/php-fpm_at.service" "php-fpm@${SLOT}.service"
|
||||
else
|
||||
systemd_newunit "${FILESDIR}/php-fpm_at-simple.service" "php-fpm@${SLOT}.service"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
echo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
||||
PHP_BIN="${WORKDIR}/sapis-build/cli/sapi/cli/php"
|
||||
if [[ ! -x "${PHP_BIN}" ]] ; then
|
||||
ewarn "Test phase requires USE=cli, skipping"
|
||||
return
|
||||
else
|
||||
export TEST_PHP_EXECUTABLE="${PHP_BIN}"
|
||||
fi
|
||||
|
||||
if [[ -x "${WORKDIR}/sapis/cgi/php-cgi" ]] ; then
|
||||
export TEST_PHP_CGI_EXECUTABLE="${WORKDIR}/sapis/cgi/php-cgi"
|
||||
fi
|
||||
|
||||
REPORT_EXIT_STATUS=1 "${TEST_PHP_EXECUTABLE}" -n -d "session.save_path=${T}" \
|
||||
"${WORKDIR}/sapis-build/cli/run-tests.php" -n -q -d "session.save_path=${T}"
|
||||
|
||||
for name in ${EXPECTED_TEST_FAILURES}; do
|
||||
mv "${name}.out" "${name}.out.orig" 2>/dev/null
|
||||
done
|
||||
|
||||
local failed="$(find -name '*.out')"
|
||||
if [[ ${failed} != "" ]] ; then
|
||||
ewarn "The following test cases failed unexpectedly:"
|
||||
for name in ${failed}; do
|
||||
ewarn " ${name/.out/}"
|
||||
done
|
||||
else
|
||||
einfo "No unexpected test failures, all fine"
|
||||
fi
|
||||
|
||||
if [[ ${PHP_SHOW_UNEXPECTED_TEST_PASS} == "1" ]] ; then
|
||||
local passed=""
|
||||
for name in ${EXPECTED_TEST_FAILURES}; do
|
||||
[[ -f "${name}.diff" ]] && continue
|
||||
passed="${passed} ${name}"
|
||||
done
|
||||
if [[ ${passed} != "" ]] ; then
|
||||
einfo "The following test cases passed unexpectedly:"
|
||||
for name in ${passed}; do
|
||||
ewarn " ${passed}"
|
||||
done
|
||||
else
|
||||
einfo "None of the known-to-fail tests passed, all fine"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Output some general info to the user
|
||||
if use apache2 ; then
|
||||
APACHE2_MOD_DEFINE="PHP5"
|
||||
APACHE2_MOD_CONF="70_mod_php5" # actually provided by app-eselect/eselect-php
|
||||
apache-module_pkg_postinst
|
||||
fi
|
||||
|
||||
# Create the symlinks for php
|
||||
for m in ${SAPIS}; do
|
||||
[[ ${m} == 'embed' ]] && continue;
|
||||
if use $m ; then
|
||||
local ci=$(eselect php show $m)
|
||||
if [[ -z $ci ]]; then
|
||||
eselect php set $m php${SLOT}
|
||||
einfo "Switched ${m} to use php:${SLOT}"
|
||||
einfo
|
||||
elif [[ $ci != "php${SLOT}" ]] ; then
|
||||
elog "To switch $m to use php:${SLOT}, run"
|
||||
elog " eselect php set $m php${SLOT}"
|
||||
elog
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
elog "Make sure that PHP_TARGETS in ${EPREFIX}/etc/make.conf includes php${SLOT/./-} in order"
|
||||
elog "to compile extensions for the ${SLOT} ABI"
|
||||
elog
|
||||
if ! use readline && use cli ; then
|
||||
ewarn "Note that in order to use php interactivly, you need to enable"
|
||||
ewarn "the readline USE flag or php -a will hang"
|
||||
fi
|
||||
elog
|
||||
elog "This ebuild installed a version of php.ini based on php.ini-${PHP_INI_VERSION} version."
|
||||
elog "You can choose which version of php.ini to install by default by setting PHP_INI_VERSION to either"
|
||||
elog "'production' or 'development' in ${EPREFIX}/etc/make.conf"
|
||||
elog "Both versions of php.ini can be found in ${EPREFIX}/usr/share/doc/${PF}"
|
||||
|
||||
elog
|
||||
elog "For more details on how minor version slotting works (PHP_TARGETS) please see the wiki:"
|
||||
elog "https://wiki.gentoo.org/wiki/PHP"
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
eselect php cleanup
|
||||
}
|
@ -1,8 +1,6 @@
|
||||
AUX nettle-2.7-shared.patch 2674 SHA256 d71a578ef9eb153770eb98a4741815e74556d101c9373d8b6884871708dc48f3 SHA512 3a0599356a411e03a3ac5284c03b6bef046e170263a41e5504b3ea1403217eca3508d423a207e8373c596491ac95dfca4bf1d52b2c726e7b0c42f19a7499fa70 WHIRLPOOL 33929850b65edd1e793ac320919c5cde65ad2bd09757a68cfcc8beb5596ea120412e5cad0ba85054c37a80f132b693d69df67281c407b15c55fd9ecb35733a70
|
||||
DIST nettle-2.7.1.tar.gz 1558863 SHA256 bc71ebd43435537d767799e414fce88e521b7278d48c860651216e1fc6555b40 SHA512 297c69e90bbd448f72e854abe5cc7868c08d710e1c1bcd6a14adf06e25629d58a3ef4d65ab588d001ec7091aa583032312ad15b416ea5479e5bf0ea63717f473 WHIRLPOOL 3a9bca1175652050ac8b96d85ee86dc40968fb56bad416ccdf6e57be85d4ab9f81f75647866c44810dad226830cbfe466cb37d1fdf40afb54b509de6f7a9bcee
|
||||
DIST nettle-3.1.1.tar.gz 1851876 SHA256 5fd4d25d64d8ddcb85d0d897572af73b05b4d163c6cc49438a5bfbb8ff293d4c SHA512 b0a52e1569ff11d871165a689fdc2a0b2f478bcc3122f39df9751b7b1c915d4240ec57d22e98034cf2b5130dddcf5dc57fe26278a2f41c15f669f65814768de1 WHIRLPOOL 8a429cd860ff717c225fbd576f6bcfc2c33809df5c346e3ced9fd75f89e0895f200ffbd0bec84bd74144e397d16d1f9ba56131c29a3d65cbc4189ef3dfd5fb99
|
||||
EBUILD nettle-2.7.1-r4.ebuild 1769 SHA256 4a05401ee97129a2b02e73b71e91f38719c23ec80de43ceb5e57436e7c55d495 SHA512 7acc1cefabcfecb74c5707671931b6a92a66572befe27f19b111d40b4aefdb66d797a5655aaab0ebd8b1ffd055c6ab692f7e02b91f277167c8b48b90dad29aaf WHIRLPOOL e011820bc1d38ce173edea8e983750bef8834babb687f4ad0cb39d1d225c716eda8b97d3c3dcdc7ade93320be4854174e38225b2c32ca8f9d35a1a887e22e625
|
||||
EBUILD nettle-3.1.1.ebuild 1815 SHA256 19a8519db7ebba52e66564b11ccfbc66446748ba898e6dbb4a239035e94319ba SHA512 3bb8e243e9162f2634aa284f807dc140b5d1d80232279ebb3bc96970f4fdba84737188bc664a760c9d218c090a5badf3bb620a107b71f76d98ba8aaf9b7c9196 WHIRLPOOL ec4004761da6d1f8376ff3ec2823219e9566c158b7aa9d3cc929b3c32406f00a357c945ff0d399f4057b6cae44e5598c0088fb56f16f660192b6b8418408a7be
|
||||
MISC ChangeLog 3648 SHA256 7132e76262735cfb5e0a7b10cfd79c9c00fb5c3886c2ebedb6b4d98c4954a2ed SHA512 4931fc2b335be4c812d56b677c72e9cf2e0db5bd6740fd2b9ccf6e1a66e67b6ae2971260058ff482491a43420a0cccf5dda92e7966cfbb63a10cf59eb6f2af28 WHIRLPOOL 5035b2ab23e4b96104bad2eff79362ea10fd0f4a9de568e81948bd2793c41cf6963d97beaca60b78ed43100fc0f1236269d204052f082c6b9513389ec38a080c
|
||||
MISC ChangeLog 3769 SHA256 6dc4729a45c2121d7cb87a0be33a195b438337ee611237d69ebdf29d21a859e5 SHA512 5549304b901e1ca79052a944c9c940416fe24b96a64edd87fc9ab7d454bda993198772cc73d5c122dbbc929149dc6907df9aef54e8af86d5d4a5ca5f71155bc4 WHIRLPOOL 12aae0a7662ebc7613cadcce4c8f394e986330e687dd79be58baabe54af8be08b2b2a0ea11ef9c362fc202f783971f3632cd8f1844a16bd03928284070fae7ae
|
||||
MISC ChangeLog-2015 17411 SHA256 98a5c73c4fe4b134e2df6a9d6bdecabbb805a5d476970a09f9e92ccda1ef931d SHA512 5e3292521158eac6b187e872f871766ee879c15175906292b3046b782eac946274cd4ea9535d7034537e543f5f2378cbf2a962977387f6f58e2548ddbb19483d WHIRLPOOL b2ab41fd625ddab61566368e4eaf4e8a152a3bf50a609cc9c58144b6d7649873a6652356ef6d58f8fe6303bf917a72f7a7d1c5b826bbcadddb19b47b9f3c6af1
|
||||
MISC metadata.xml 159 SHA256 fabd15e2740a2a68e0bda738d0cd4300b133ff11239802afe7e60aa3862c9c03 SHA512 96a1f7f082adc57e52a1a32666e1206e68f8ff03c728fdb7666ff98c255905977491fc4dfc37bc8bdf5da0eb50cdc408adec357bbd75bd980bc90659cc157194 WHIRLPOOL 82fca1c4b75b090abdb0a4233c8e49fc43535ca6e470f725c1872653ea922b6693e9646bc3ee1fd6f1293ebedad661642cec13b2817fb5315268300f7675a751
|
||||
|
@ -1,61 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
AUTOTOOLS_AUTORECONF=yes
|
||||
|
||||
inherit eutils autotools-multilib multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="Low-level cryptographic library"
|
||||
HOMEPAGE="http://www.lysator.liu.se/~nisse/nettle/"
|
||||
SRC_URI="http://www.lysator.liu.se/~nisse/archive/${P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( LGPL-3 LGPL-2.1 )"
|
||||
SLOT="0/4" # subslot = libnettle soname version
|
||||
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x86-solaris"
|
||||
IUSE="doc +gmp neon static-libs test"
|
||||
|
||||
DEPEND="gmp? ( dev-libs/gmp:0[${MULTILIB_USEDEP}] )"
|
||||
RDEPEND="${DEPEND}
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20131008-r17
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
|
||||
MULTILIB_WRAPPED_HEADERS=(
|
||||
/usr/include/nettle/nettle-stdint.h
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
tc-is-static-only || epatch "${FILESDIR}"/${PN}-2.7-shared.patch
|
||||
|
||||
sed -e '/CFLAGS=/s: -ggdb3::' \
|
||||
-e 's/solaris\*)/sunldsolaris*)/' \
|
||||
-i configure.ac || die
|
||||
|
||||
# conditionally build tests and examples required by tests
|
||||
use test || sed -i '/SUBDIRS/s/testsuite examples//' Makefile.in || die
|
||||
|
||||
autotools-utils_src_prepare
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# --disable-openssl bug #427526
|
||||
ECONF_SOURCE="${S}" econf \
|
||||
--libdir="${EPREFIX}"/usr/$(get_libdir) \
|
||||
$(use_enable gmp public-key) \
|
||||
$(use_enable static-libs static) \
|
||||
--disable-openssl \
|
||||
$(tc-is-static-only && echo --disable-shared) \
|
||||
$(use_enable doc documentation) \
|
||||
$(use_enable neon arm-neon)
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
if use doc ; then
|
||||
dohtml nettle.html
|
||||
dodoc nettle.pdf
|
||||
fi
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
DIST asyncio-3.4.2.tar.gz 179696 SHA256 f9cb785691c1c48e4537bdd26d189d56335cc80ce4a77a4301e077ab8adea880 SHA512 b56fd9b613ffee901f9db39152b8c6495383788fa4466c32acc7509072cae95ec86839ec04500f535ae86de90cadfb77bff37e32d11a5c4091d83c9e2eec7f28 WHIRLPOOL 6adc52f1683efc7b7f1bef8ac5676b211bf069536c85d3c0d519470a636f7ba9ce512d01def22884dd3b14e9a730ecdaadf9efe33e1912e2bd2fb5020573dee7
|
||||
DIST asyncio-3.4.3.tar.gz 204411 SHA256 83360ff8bc97980e4ff25c964c7bd3923d333d177aa4f7fb736b019f26c7cb41 SHA512 42077cbbae3d67e6e45224cc1996f1aaaff137cdc5c8679ba830fd66098d1e9d8c05e315c8d2ef1add2f504ab769bd339e5d8ae2f7532d423282baca2d383736 WHIRLPOOL c5ad9e02a5cfb71335e7ddf46039a3245ea9aad78c8d47e3712ea20aa21b1a01ce52ad31b6166357c4e43230f15cb566ab752ac3ae702d53111767b7b278ba44
|
||||
EBUILD asyncio-3.4.2.ebuild 497 SHA256 9a7d9b4576987a9a2fd098d088a9b7394f2233065b3a7d1cd93c478bc702aae8 SHA512 6b21a0594a60ac3c5273cafe7832fed3cb5fe1d8279a817266c2d0e2def1cac94021e56e1bfe5191872320b211836c9859aa92186ed42a50d61e0d9e3fc29e75 WHIRLPOOL 61d8dd118a6c0f3ad7a491db9af6a004c035375b7107537e548a6df604327116361761c07c644d21d6cfa6a456d86d3131188ac9d0c9bdf4fc816fb5d058a162
|
||||
EBUILD asyncio-3.4.3.ebuild 604 SHA256 e95fdc41832d39f35418a5070230edfad4aecfdc2ae3132e6f67fc9912dca615 SHA512 9004f8f52c5607bbcbd844d6860c2cb5f55e63391631c5b77238fb555ea3596a1dadc2fcdb631cd24aa0a00fc23b66f3e3d59e36855a12982f29cc7b6c4bd960 WHIRLPOOL 9d05f0cfbc43b9de6cebfd34f44fcf78b3ae0222f1dea3869c94aab5af861bdf6f68eeeb17cbd8c3886d7a835dfc620e47513515d82e6708d8c7ec6fc44fca95
|
||||
MISC ChangeLog 2692 SHA256 9b94b7078492cd2913d722de6719282bd3e13d37cb54b0a12508a3136fa88b37 SHA512 fbf7e73e77a73df1c22fb14e1edd9a151f08a2268977ce8130e513df985c1a4517ea5343b04c32ca580f2b84731ae5cb62e0d3328b775d1b72229665f5888716 WHIRLPOOL e63f22a49c9d6e43846237f0a999a583a4487fe55a7b677fe08f2efef120444b97207ff9da9c57f0b7df47e05d546f25934d9a851269d0535e44febf2ae9f42c
|
||||
EBUILD asyncio-3.4.2.ebuild 520 SHA256 69e3b5b0dfcfcfcd03593e887842424e553306452438d2c63051845e08be714c SHA512 66f95ce0e686286675e06c305314ca07af186f9f09f1c2b9c976f7845dad1a56cf568ceb776e52a136fcf9660d5a072dad8fb122cdd82e00c34a04aeb196a07c WHIRLPOOL 840bb602e39546d5c27276fd9f5ef87017c34d78327eef6a2d20bc545146a7ef1dcf52a7aa62a19dd1f496283a71c6a3eb2b3a3341ea966e6e158961e6f523f5
|
||||
EBUILD asyncio-3.4.3.ebuild 627 SHA256 a565cd19ab13db4eb9e02537a4bd52aa89eace2f0fe6883ebbe86bbc15e37d9f SHA512 4b1d81a6371f25852b946e2e39a68e5c5b2cb4c5b9758da8eda5da5b4466b828d4f13264390a5f8af0c33e3481dfd26db90868ff714d59ff05d23e99a15a7e81 WHIRLPOOL f27353148834e7e36d5a7e7a520f24bc5e73f2ae4c17b33c7efd0a8c2f20df7d2dfcbe6e827e465111dac57bf40836ed3bb0090a324ab9ea94111d642b4835c7
|
||||
MISC ChangeLog 2965 SHA256 dc523c09e2f71dddda8f5f15bf865415be39261a522914d5ad29b73866573893 SHA512 caed95fde1ad59283b9e7e5d478005392e9c6ad2b31781dec00fb78865c36d50f6c3b2c6d727d151111d0008425100b8781bc829728970f1182415c3bad19407 WHIRLPOOL b116d75985945f45e74c4f56d35ea6de66da73a93fd12a007978edd62f48b9a5f67ffadbf2508609c42ea26fbd3778b83710f3fd89e2719f67c7d5aa4c7d8f76
|
||||
MISC ChangeLog-2015 1440 SHA256 8a6c51a731c2cdea114c16b8aa0bde5e50fb4ca4ca37aece651d9ce82146cc62 SHA512 eef3698c4c760bf31582cf90f318f177f2c12b680983fea7ee88420e138d693f729e08f44905234eef603d0680bbe7f86e966a7ab6330cc3ed56df374cad4c33 WHIRLPOOL 720e27c16e74802b516a266f9cb347c19c23800d2d9b297148c357e17eac33577070f024fc731765b3125f2534d712d72e71d8ebc717c4589b94e89c21e74159
|
||||
MISC metadata.xml 484 SHA256 387668ab4e65b827ee5f17b93d91dda133622accb18de978e4d503d8eea9e6e5 SHA512 314a013a4e35c4b138e9721900e8fca71590d4451a6148fd5f7a73b7503ad87972279f27a43ea86ba7dd060328568477489a9169a1db4152d59c87242dea3316 WHIRLPOOL 5eff99c67445b800a869afc81dfa12d08bc307ce3c80eef4f227d77a51b198481f4db28ebfe3b938a2af0f788a79fb238082b40160ab865d1db06f847a72a3e4
|
||||
|
@ -1,4 +1,4 @@
|
||||
DIST backports_abc-0.4.tar.gz 5593 SHA256 8b3e4092ba3d541c7a2f9b7d0d9c0275b21c6a01c53a61c731eba6686939d0a5 SHA512 0b7f9cc1d12db16a0c0eaf658fd874bf9fe09959fab65d1b0104d337fb20cceb2e3e9213be895df5951876846eccac85012c270e34197d625ce128b688e847ae WHIRLPOOL acc7b78e0dae1f533778513a5a92cc03ebd42906e84a5f4266fbe911fa54b56ca0e65e670730b2afab2d48cbea26a8ea1207ff5bccae56aa20191aaebd9b00d9
|
||||
EBUILD backports-abc-0.4.ebuild 695 SHA256 f051e028d79c57e1d9326565fbb381ef2ea8f93e9761e8abbfde455a45500613 SHA512 a273f84c4d85be5ad05077ecc562c02bef48af0430a56463acc6a8314b8d2285482fdc63c4789e6925dc70163692543d0004cf41422ef9b8a0b571b2bafeb033 WHIRLPOOL f04345ae8fc50cd28d54a92485d9ffcc17a103f56b4c1a59cccb51ab1a4d074dddfadb352e85e3dd8620a57319e7a0177712dfe375e0c2594639258ba367a2e2
|
||||
MISC ChangeLog 2139 SHA256 334c23f760292068cba9c9c73dbf2f2ac7c48088fdad2c8bacca2af996389fc4 SHA512 2fd8082c927688c619173159a5964b173893830c4a35443cc65b9b5d0e96121e8715811b7113be8e423976ca3c4a96faad2056f899166be4668b473f4c11740d WHIRLPOOL b92309b55bfcb520e6ffceadceac7ef821b838e38fb97a7ad02661d99dda05464f147f2faede11279f0ee375eef71332f5d62420badd4b12e46e9fad6e326e15
|
||||
MISC metadata.xml 303 SHA256 76eddfd35146cb35c12e292aac94f401d1562acbc3a9c24ab20732e97ad6f3fb SHA512 c2b02e782bc7a0f2322656ff411004cf35c0f2c11da43f3ccce7efb66d4e54d82439696037d2d2a3940af8d85d8c4d802d45f59c430235a497f75f7f7f06ecae WHIRLPOOL e23e5c32529e039517550f5b6dd0faeaf51382fd22a72b08e22dc5dc886e4ba4696933b7c3b85413e616f1301830867e5cbeb74d39ba8b163c5998fd815bfba3
|
||||
EBUILD backports-abc-0.4.ebuild 718 SHA256 5733f948c35f1b18b330d05962386fda452351cda73152d7016c230c4243255b SHA512 66616a0dff2b8a9a3296723e69d9ee22bfa808583fb1cfcf72a3de60b5b6dd25693f715a45f88632b13bfff960e3ea8120a9854cb8e0bc2ff24fdb36f6817750 WHIRLPOOL fc56cc7b29cae807b84a079d9273e19ad55bb1e0d1ed36a449159b16cda2a2973460d4c026af558f43401582facdce1c9d96362f9308d7b0f7681c46f4b56e14
|
||||
MISC ChangeLog 2408 SHA256 9eaf016ca2df6c5252bf5de4cfed504d5da886884b70f3796457516de42de51b SHA512 085d87aff30757e1d1ce774c8f17be337d321e00f7cf2cdf8a219efcd3fdbc0453f78206de14c0e7c61f557e3bbc74fe61a7fa3974e23ee6111803442c1af90d WHIRLPOOL ce7062f7e16a777be06e36a1476a66c8853e508bf1e790b8c57f51dd0cbf0888d672be67f1ff2b62d8f58b92cff9ec37bba1551dc943c7f29e641721ea593a81
|
||||
MISC metadata.xml 303 SHA256 324644f2b1c26dc595f50a09e2e858ff00c16820e159171b573745e631f1be86 SHA512 cf99f7946443436d3f640eac32ede6f1db0f504058a81176c7e899599a5ec8eee9046279ad08c7ccdc1e52372ae4b47e0d7c35bc8b1f1a399be4a49e38a8ec61 WHIRLPOOL 166608d9f12803bda7de9c2937cb626fc018f7fdb66b9aa16184b70af8b35233dbec95eea053c23d7fffc1af958c31da32a65c18947cd90bcaf4a1eb8e26783e
|
||||
|
@ -1,5 +1,5 @@
|
||||
DIST backports.ssl_match_hostname-3.4.0.2.tar.gz 5151 SHA256 07410e7fb09aab7bdaf5e618de66c3dac84e2e3d628352814dc4c37de321d6ae SHA512 7e6033afbb5298a5eaafe91c3e2f7ba583706977826cc9441c9926a81b945714be95963f0261f88f4cb5df56673ca231e528cecbe84dff9e422fd11819842985 WHIRLPOOL 781bc5e791bb78f3345d607e764a718ba96ef9d02bace67fea502c52b438b34f561efa733eaa4ff8b4a7152fdcd086f9ba014b4f3628a590f6d4cec46f08bee7
|
||||
EBUILD backports-ssl-match-hostname-3.4.0.2.ebuild 1088 SHA256 b514710d26c421a3f22d6818c6f9c625d4266b43dbb176b83cdd2f7613f0ef22 SHA512 6b0efd1bc91969ec29fc8fbcffb66e2f6f1248e6ec5b4f5aec849c32f60b9c09147e1f0af183b08946ad349b7fa6ffa56735ecbb7be33b92f95784b8417f01ba WHIRLPOOL 5805673cbc68d347caea7c2fbd3a7d36b8429b834fff127f8b0159fd67721140bf7d0b6d30d26a07787974cd18adf0f146483b225800aa372ff66ebd7ac04fc3
|
||||
MISC ChangeLog 2300 SHA256 4516edbbc6d5f47d571e7f13e4782ed4c807c8415cadae60ffbc67dec20635d6 SHA512 283d5a6b9544b9f4ac77ea3f6b04648fa8962cb553a2e3eaf9a4b5142b49c3c5a338972b060ba36ba86724d3791fe67e79553a0f9425695f44e8bb29ff33d6df WHIRLPOOL 18b2daa771ea2828d17f92165c2c8c848168bd0b1458ec92def129caab65f541e016f699baeadfad898ec568536d3aa0f984b3882257e810f6ab52a7b8e23509
|
||||
EBUILD backports-ssl-match-hostname-3.4.0.2.ebuild 1111 SHA256 045df7692ca3d85e94303deac2c5b6352ec0ab7de84afb50d642f7c291a47c3a SHA512 8ed08ae049de5fc128c3a9a79a724ee19702f7c4d81874b90aa79e404e6eabe33b686f5f9bcdc2b1b62829a79515cff7ff31c71b0f4d60d184cb72a2e2f96ce6 WHIRLPOOL dd098907a17079aa8e3145bca30af84543890f0b585dc1fe42be16392714c4f2177cfe487228537ca8a52b747251176e5d713cc124c4db6bd65841c8c0a6205a
|
||||
MISC ChangeLog 2574 SHA256 5743828b0247a02189541331b5278d6590efb90f6c5ac39ed51b8f072a35e1a0 SHA512 2c8289281742883c20d54ef9224e5d46e9058579e2ff11af9e08c6f065d340773f3a0eb30b071cb0e069bd3bdfdcfea7612d637eec0c5d922d82e66b404ddc23 WHIRLPOOL 2077fa08929dfc5be1db8fabeb54c7cfe43c32245edd0c3ab64ccedf6425ee023d49f0954e10a7a0880ee53602dba804d0480e7975a104c17dfd0b538d99d1f0
|
||||
MISC ChangeLog-2015 2163 SHA256 11ff5d658bf9869733942edde9481de7a147653b4995a35b643cce5e5f31e700 SHA512 bf47415fa2d1bdff537398c2e55d2b66ab2183fbd2fc38978b1a87abaca957bf92bf7ce7815a06df34e9ec128d061a520268e949af4280de00ad78d864fb350d WHIRLPOOL 21bc739d2e9206ad102ff5faf986184e379b61eaa49a7598104ed6d5725c2d6b7d7995b01e5ddddc0dd3c457da677267c6472ac199d1855d9540715363b92c73
|
||||
MISC metadata.xml 251 SHA256 ad20e35fa7c8f5e94df03bcb6b3caa8d001fdba5406f8cfa901e6c266705bd10 SHA512 d6c8d1df51f4a225668d88899561d5f8966f22c283ce3efef5bddbc379f553e244a17454449af2112744a0d9f2c99749073021087da423be6f0c5bdab2d4652f WHIRLPOOL fcee528953dd26d70966986e2593e92608e97876bed62fa8982f321e9df8b83ba4af07e2c1f86b8d463d4604f4939cc3cd9b77726f0ef3998acbcb3e17a026e2
|
||||
|
@ -1,6 +1,6 @@
|
||||
AUX http-parser-0.7.8-setup.patch 648 SHA256 c2f05f473a2b3a1ca38824f1a90b5931c16bcf2f62978c252ab7b6a78b5dcbde SHA512 ca7762c0be199854b01f71bf1208031d9837230dd718afff5afc6e7fd1602bf8602e146584f46bbcac6114af4bd37e03b98362ec1c9b62d0a972a4ecf773d19c WHIRLPOOL bc16115a9695b3d9c46dd22260a00652b4ea458fc4d03e64043b93a9f1314a5c1708c3a25adef1b0765070e62b125e5a940615bfa6d4e8b224952feeac81ac21
|
||||
DIST http-parser-0.8.3.tar.gz 83040 SHA256 e2aff90a60def3e476bd71694d8757c0f95ebf2fedf0a8ae34ee306e0b20db83 SHA512 aca583d976dcf172244179cc4199336f296dbb2e2838dded23e64d55f23298fe600f9c24ba6cb6d1d5faad3022710154949fd39adecaef763f7589a58d03fbd1 WHIRLPOOL 9de8476e9fa878b5542806efb8fe1729ac6fcb04b7dcc9d084dfd9e4280fe3bee185d2fb8ae43b2d3a46eb3a1a67047a40e423d054ecb542f66bd15b35fae427
|
||||
EBUILD http-parser-0.8.3.ebuild 983 SHA256 58aa5037acde44786385118b353b06cb6ff3bc0b3acb70637f46cee36a85c125 SHA512 cf6d18b83076bb0d9fd34443f64d71093dfa2d2622d4066cd9fdc8735f52202e1f3eaf01ef537305a896862bec9c58e7ee99de9c935bd47a6ea26974c3ba5190 WHIRLPOOL 5d078341ff1737cac70b0bd871d4c57ee478d3103429d2d3685e4987037e2cab49d9739ddb2a5f870bcda1261c554a50d749c8f9890232b5b69b250f629acb43
|
||||
MISC ChangeLog 2251 SHA256 88c3d7abd02bde9db1759a006160f6c27b2c1a5360f8fddb533c0906951c1889 SHA512 a6e9fe207a9c99f819216a79b7348dc078467a9f86c4077aa4276a4d5a9d21a0fdc75e4c6ddf588cbb0f02666eb7d104b43f6e8b18fffc7bd86b6e1a7b51285a WHIRLPOOL 06ee8eac3c8021d0f135831d3a2aa1cfe7cc484689780776e9fe81f792ec0d3a9594a4d35e4137efed46ea5df719ad3f0c1886a740012ee0ce3a0949a889aa3e
|
||||
EBUILD http-parser-0.8.3.ebuild 990 SHA256 50108fd0adfb3164ce95e25b595f83c7bbadb10d51efb827f5dd8ded933aa7a1 SHA512 41f3142fae60f7a686558c853363216eb35e36fd91b52fe0cea5bafd3bc6ceb1a198fcc301c8f3a9b155f82bab77b55addea3be4cd1508b9f4940bb74541d0a9 WHIRLPOOL f16fb4fec10622d146b18e4f46538fb5402ea33fe2bf8d2f98c58e8e1bc6356b760cd558a61464bb6ea17abab0c4d366ebd334a89fe40580f84a7bc24cef0521
|
||||
MISC ChangeLog 2504 SHA256 8f7c7da3f1d0137e529b18436f652a379a6692b21457efda003e84254769aba7 SHA512 ccc738ba1e9a98f96b26d8d3fc81112ccfff5330d68c9155a487425d5f8af603471dff868defa612e2acdaf06be4795c4cbb5476a6a935479b5d153d9e23268f WHIRLPOOL 3afb64cf2f28458ea164af89ef5e8ff7e1ed3db9359834fe88b972114aeb40579403b75c7b690433d67120e6ac1c6e7c7bb999823904e5ad3a00b9afa55c6e31
|
||||
MISC ChangeLog-2015 4270 SHA256 4afe378dec98fe411993e2d53f7513ade936839aa27d5dd3c9c0584e83bd091f SHA512 4686554b58d17c9b5eb74a10846e1179358aad5506298c9b7fd5b696057339d59caaebb8f37580ab001d6bc3138212646f6e52dcebdbe72207954160c90e1543 WHIRLPOOL 72479534ce8f116959bc66872c46dd22ee82f80eae2d503516e8a7bd09ea90534d090a759577bedf8da21f226dfa85fd5156450750723217d120f60d1010fab5
|
||||
MISC metadata.xml 300 SHA256 40653ef64541110e58da183c3a5d8c6efcfd5b02e23e300c52a05f181034bda1 SHA512 ed39c10b1a66af1a43e2d0394efd6326f6cf4309e02204a549fe45d99d7996a741b62e5df173d368e4da407a8fe606fda2d4a38af0010e471b286b43e5d03a7e WHIRLPOOL 2b118b65e5e4b7ee264748177f9d30d7ca2c14fb596316523c339596b9dca9bd5b1a312708b2b5dc7ed061eef701f159f57adc16ddd5a6e72f08ae7b9baf80c9
|
||||
|
@ -1,11 +1,9 @@
|
||||
AUX lxml-3.4.4-cross-compile.patch 1436 SHA256 95586c24ee2101f5bbf16349bc75bec5e35225ee85a7d2f000290f5aaadbbf97 SHA512 1744fa698f92d087d3da6e361855f3edcec0f363e7e7729eecda52cc9164ba08a4f93ac35a0a1fceea5e0fc8db5f6f0fb2a21a80ba08afda174213cfdb588789 WHIRLPOOL 130b652f1e0286833b6975d4d3148bfef390232785a28999e9844904bf20225d1cda2e9f916d76c912530868c8be584f7ecb438dcb740a34c71b2abacd1b45a6
|
||||
AUX lxml-3.5.0-cross-compile.patch 1518 SHA256 c1c032a1d206fa7c52fb6db97d759a7f08c8f9c968040f35850b003f1fcb89fb SHA512 c2661c072ad4b3ae03cfa2025a00ea7d05017beae016f7f714837ba39fe87b6706dbe0ef6df914e556c6b41d130cb5aeacabaaf08918d13011405ca15a532600 WHIRLPOOL 382648f79ee23b5e728afd8ea9e4ce403442c733fd2303349fb3b4393ce16f74090a21e1d7a5f6dde26421c4f7d102770b5f9a2868231e38914c0091a9b80fcd
|
||||
DIST lxml-3.4.1.tar.gz 3524523 SHA256 069594837d0376a1bacf5cc42aa9a1be2e1c1396dc62f7d07f7358afecd34adf SHA512 ab669d1f9833e43b43ece4ef2481eebe22e9084ab07139f5c5c1fa6ea478177069d6ce96ece7eddef86982da418ec55a3785c4b78958f49f6ed415dc63af45ed WHIRLPOOL 5390f23aec3b7c07b9541f85ee5c674f267b99a9ef035cc5024d5f6defe6ee8ded500703b97b3f742f7630d25dbc538534654c8a3cddafb1ff37f5c5494bffb5
|
||||
DIST lxml-3.4.4.tar.gz 3537508 SHA256 b3d362bac471172747cda3513238f115cbd6c5f8b8e6319bf6a97a7892724099 SHA512 94453ff0562fc18a4b43555271e2469556255b69daf5f801d1a0f1ff29fd73f4b46d4faba9bfe86b42cfdac31005a0d3cfcbf230e0c7593dd5fc6461afcad906 WHIRLPOOL 6debafb391c94bd57510498c8261a511759f52feb3065c8bdf3103b177b1ddcbad54968f1eceac07b97e42087a1c59a060a3719f9ea9d25a662da34bf314b89e
|
||||
DIST lxml-3.5.0.tar.gz 3810202 SHA256 349f93e3a4b09cc59418854ab8013d027d246757c51744bf20069bc89016f578 SHA512 9b728642bec22be39aef603050121715521603a50bc01d3851e1eb7bfc6302c991da3a3bdebfdeaa9038e19fe39d8286f60851fecf1c4e85469f0ed8fa6e9368 WHIRLPOOL 50b9d3767377a5dee7359e4651bb91bc84539cbc18b552f07b9cf9b9f3f263c8cc3aae64adafb88a78776235a5f3780342d7b29cd369b77e8dc9ef8f8739a290
|
||||
EBUILD lxml-3.4.1.ebuild 1985 SHA256 21b34d53cb8aeb8d67771149c36266a65952f42a5ed770ef444cc7103109e1e4 SHA512 9b1a2b6b2c726872d6a5d62cf46619f8e5ea078e097872df9aec9b210eda691b96d2c9a4ac6d710539771edfd063ae538f9cf6eb3338d9b7922749d2b586735e WHIRLPOOL 361d150db187f0cce781671a6cab7073ab67f4207e0a9b9f9fc4686cf283948c985fd31774855c15712963fdad61abf17c5e39ad922db984fa4b268dab9cac00
|
||||
EBUILD lxml-3.4.4.ebuild 2192 SHA256 07efc7fce9866b29c5e8533d7bab82c4940c704a720109dbceeadde7f761adef SHA512 4457b8883bdfadc860a612897e2e6965ddd408cee218004e052707cbc0912b3d5c046a752c0093e43dfa1b710ffd73cd9c934abfc6aff5b5d097831f56a8e684 WHIRLPOOL 6e2b6e03825b63c34e39648bf4b1906d6d26992d67baf7256b3a051ee7feb4e8bee74d836627357885ae2c16e88c46b5762b8df34b10b21f89712e7f8ce140b5
|
||||
EBUILD lxml-3.5.0.ebuild 2000 SHA256 3ac23e3c4ed0b4198c39f9e8365fb39f2e30403b17bf5dfd8129f1d139a2b737 SHA512 63beea571ba909b09fc3e6deb36b6aaee17e9ea01112d5bcaba3a7d5dc949fe6ba17e2757ad665b09538c678f303cc39b0c74d82abe1e03adc1169f5b567062e WHIRLPOOL 1e7222a1c2364fc9d9578032f0589b2c2883f09e8299dc5d04a9bf006ac37838f0155a6672d39cdb353f3f96aa858d3523bd82471358c883eb205ac4f50514e8
|
||||
MISC ChangeLog 5112 SHA256 98fac06fdc55b3d23da33699ca5e2db45c2b4ce340b72d262995f371a4df04a7 SHA512 a0961590b697363f1c2ba3ab7c1c2fd959a5ec1a4143cba32f45be98c9c2263515cf1157cb99e95a4c7bc549fc6adbcf94392a8a73b64abb4bc7a3fadbbf4cd1 WHIRLPOOL ece54a8d11b6df42b1183f69471a329301085aee0c1f508fc4505fbc7dfc43b4aca27441b740ac54ed5267950ecf1ff599c8efa92fe371142dcfc9078e05d285
|
||||
MISC ChangeLog 5475 SHA256 de4ee4d1aeb9cb1889178bc542187973bbeb0c9828777fd8e17fb392ab25eb69 SHA512 51b47a3b76dfdaa956f7c95fea20f3e99f5867f15c8c6eacbb9f2d0e0226776e2fd016b60cab116abf5247a3f8f2f28837e6987865e9d583340654829d666bda WHIRLPOOL 748fc40c9a08193812af0be3a834ea88aae029ab30608e555b4665a2f25404df7e70f2419aa5d459b6e04f2f0a487ec8bd3d8e2551063a997ba1f3c006344199
|
||||
MISC ChangeLog-2015 27655 SHA256 585c3b7babb59fabf24b0bbd3abfa0abbe5f35c92faaccb0df995c61b5878b24 SHA512 0a05a247257042ba708d9914e6757aa60ece30eb67d1892b164f49d2d2825d467b4fe60396bbbadb692fc0a6f11e28efc8b6cce6176966a9e4f4669b1fff651a WHIRLPOOL d031211ffd5cc010d16cc3d872a6ed17d348103302f65e7ecb9af1082659f85e6b65babf36ec347ae1c03cf8822d71bc679eb6738bbcb892d8dbeeb322c34082
|
||||
MISC metadata.xml 324 SHA256 9c1183e10b5ddc9d114f223474827828d5acf52aade792a745c959d03751fe11 SHA512 bd941eceb46cf1ee3e13830b44fededb0b325a15723d1adfbb543202e6e6cfff8f06140b4a960bfc349c5e5f13724945a1cfeb000250a8f5da67addab00c1ec5 WHIRLPOOL 5eb515754d8749f260449229c21618639a6350ddf786965e429b255342e3ab39413bdeadbe95ec90f4d53df69ab83ccacf9610b8c3d4099c6707a13af854984d
|
||||
MISC metadata.xml 232 SHA256 f677248abd2dc90aaea6ab9983fcc9cec8826a69c0b18c44bf993f6d157ff11c SHA512 dbd39af03df88547d24e2fce69bedb6401015d3c703ae8cae6210ae5079480ac7238ddf21ae619ee1ff0da65f3894e25413fa95aaf7ffa7d1cc988a633e57e95 WHIRLPOOL cf8d116c14ba7517f0e1f6e483e6ace2733d93135ca8b6c5cdae62f5cbd25265cd60873245159a61a3c78d82b5d08166fbe8c37aa72460afdb4b394e28e39e48
|
||||
|
@ -1,68 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||
inherit distutils-r1 flag-o-matic
|
||||
|
||||
DESCRIPTION="A Pythonic binding for the libxml2 and libxslt libraries"
|
||||
HOMEPAGE="http://lxml.de/ https://pypi.python.org/pypi/lxml/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD ElementTree GPL-2 PSF-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="beautifulsoup3 doc examples +threads"
|
||||
|
||||
# Note: lib{xml2,xslt} are used as C libraries, not Python modules.
|
||||
RDEPEND="
|
||||
>=dev-libs/libxml2-2.7.2
|
||||
>=dev-libs/libxslt-1.1.23
|
||||
beautifulsoup3? (
|
||||
$(python_gen_cond_dep 'dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]' 'python2*')
|
||||
$(python_gen_cond_dep 'dev-python/beautifulsoup:python-3[${PYTHON_USEDEP}]' 'python3*')
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
# lxml tarball contains files pregenerated by Cython.
|
||||
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
python_prepare_all() {
|
||||
# avoid replacing PYTHONPATH in tests.
|
||||
sed -i '/sys\.path/d' test.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
if [[ ${EPYTHON} != python3* ]]; then
|
||||
local CFLAGS=${CFLAGS}
|
||||
append-cflags -fno-strict-aliasing
|
||||
fi
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cp -r -l src/lxml/tests "${BUILD_DIR}"/lib/lxml/ || die
|
||||
cp -r -l src/lxml/html/tests "${BUILD_DIR}"/lib/lxml/html/ || die
|
||||
ln -s "${S}"/doc "${BUILD_DIR}"/ || die
|
||||
|
||||
local test
|
||||
for test in test.py selftest.py selftest2.py; do
|
||||
einfo "Running ${test}"
|
||||
"${PYTHON}" ${test} || die "Test ${test} fails with ${EPYTHON}"
|
||||
done
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
if use doc; then
|
||||
local DOCS=( *.txt doc/*.txt )
|
||||
local HTML_DOCS=( doc/html/. )
|
||||
fi
|
||||
use examples && local EXAMPLES=( samples/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
AUX setup.patch 843 SHA256 0499f32d84001db049fbff5f1737bc0c4e23624d161e5090ab022225602fbda1 SHA512 200c112cb264271d8c1f043acb22ac476d09a0fc325b74658a950939f71edb8fad84a0fbc5f11335152fe5591be98a14df63f57458b84d35c2511a2079778387 WHIRLPOOL 930ce34c70d9d2093b2002e8e97bf8a9603eb5965211620552d7684da4a0a5578cafe873190914cdccb60eaf72a41ac16ed6bbd449a8b167dd03bed94073f13e
|
||||
DIST restkit-4.2.2.tar.gz 1275904 SHA256 c0bda8eb7c643b5e818b612dab49121393abc8589c6cbe9b84085079d598599d SHA512 5ed08535e1a54b5594d97b059d8662ab4bc19c68e71a30719c4a533cba0f2d0e18872119752c62136563a32281e8f747414fbf843fd97dba138107ffcb5d1e4b WHIRLPOOL 6a6e336fc1ce5a6499a9886d6a131d7b9e117323467da62ff11278ae1713254d7ebc05a71221ccb9b3f092999902a94282397b9aa983c89758e39221d9dbee96
|
||||
EBUILD restkit-4.2.2.ebuild 1296 SHA256 32ab05a39e248d65acdfd1ae2ab8161aa6cb208738df60811f3957fee0083056 SHA512 f73071f763c31cb7329b610fbc273ea46633a57799a8135d0bba615c801a71bd8f1f3b003f62fc6471e0814de64367fcfdc54456d75206ac27a20ac04cb34d57 WHIRLPOOL 4dee948cbbf8df91e2edc87a228b985f10a5099d5de5e457362db8f1298ccebe62df207f28ddce8aa217c22f18dbdcc4ffdec52d39aaffac9790a39f821fb36c
|
||||
MISC ChangeLog 2215 SHA256 a85f5430555b1e98e63b89c6ecf4df58ec9fc801d2a4cee749bfc670a1e15fdb SHA512 e574d22715cb87a7b322ea0304a75f967cd7055284a9a7516caf3e4d5942b6bdde1d9ae776e93d11b7b973b7aec0d41bd454f442d8c93073b28860d0450802ad WHIRLPOOL 132a0566cfebb79b235b5b3f79678a9aebe5eaa08962df51eefe7b3f5030201229a5395970562abb37b2450eaaef7855e6f5cc5fc7c50f4f29edb729234df17c
|
||||
EBUILD restkit-4.2.2.ebuild 1306 SHA256 229d506fa290212a93aceb72b3265d4aece9ce82f216f339fe082df74bc70823 SHA512 e0a38a658bb246350319e6c6eabc503430fb7be408e640a9dc3f7d1e16e5afe356fd136f931f77336cda23aab512bacc9038c0a2da999eb33b82af27a4090ba8 WHIRLPOOL c75f21f70ce83b9b69e46d9d46737d6ef5d081bf93353b93d8cd9233eb6fe303cb6b8cddd45469cdef13414c389d33d488693e90d10d97da75f807e725267570
|
||||
MISC ChangeLog 2464 SHA256 e46fbaf2c513c082117ffe978938475ab04e0310c2dd9de2b76eaa5a5dff6f7d SHA512 5b973c5334318df81291991f16841b2f2cb3129df0c65ac4428ac6afe30ad9dd0dc9d6806da2caa34540edc2f7dd65453c92a2551ce717f71b8bde00f948cf4e WHIRLPOOL 30a996cf55f95935c74882841b42c42c902dfe5a71f2c2ec3fda8b8327a9cf1e04f3e1d62d2ca36391238cf7d29cd4d887fc5873433a3d0ca37e9522746f5a58
|
||||
MISC ChangeLog-2015 4231 SHA256 f17e70d999b3c94a6582be714d49ca1ace33141c184bbd05cfd551dea5744995 SHA512 bd08e6328c8eb034eb739adf9479d3150dc0f4f5b8e309fb751204fdce4604b0bae4cd970e524c842544bd8bf93349479dfdb86440c7d9b9c9d87f5248ef1f93 WHIRLPOOL 5290cbf4da5ccec6b8ece3467b4438a96f472930ed675549574ae00d54f8f05aab5688fc8b8b8323b639078c2cc5028399c6a1206bc0f8e34d22a9408f6dd6f9
|
||||
MISC metadata.xml 506 SHA256 36a1bf303fdb1e79ff8a2ea7296766f133a7d32f31792962e82908e72260bf53 SHA512 24a1ed05d3248065d13277326e07963700001ae29e715262e90cac3de65ca7b15cd5bc4ebe88de11cd693277033e9c7bdbcd698d44c6524ac493f64d1aa42af8 WHIRLPOOL 4c60333bd12771e3be641162e8074e382a277170875d797ce005cf81cf0775ba469be65782f51225034430979755882646a2fa965604ba90261566a10ffbf4d5
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue