diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-09-01 00:00:32 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-09-01 00:00:32 +0200 |
commit | ca9627e70852f6b2e835660df870fe3ab405882d (patch) | |
tree | 0a008b1d5b16fa0679a195ed7b5662c7891f591c /dev-vcs/bzr-webdav | |
download | darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2 darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip |
Initial import
Diffstat (limited to 'dev-vcs/bzr-webdav')
-rw-r--r-- | dev-vcs/bzr-webdav/Manifest | 2 | ||||
-rw-r--r-- | dev-vcs/bzr-webdav/bzr-webdav-9999.ebuild | 34 | ||||
-rw-r--r-- | dev-vcs/bzr-webdav/files/bzr_webdav-ds-error400.patch | 12 |
3 files changed, 48 insertions, 0 deletions
diff --git a/dev-vcs/bzr-webdav/Manifest b/dev-vcs/bzr-webdav/Manifest new file mode 100644 index 0000000..3f2e5ea --- /dev/null +++ b/dev-vcs/bzr-webdav/Manifest @@ -0,0 +1,2 @@ +AUX bzr_webdav-ds-error400.patch 467 SHA256 7561f3881f48a9775f19c24465a5837c1378e88332a03452e5299ad95fd7d69f SHA512 50e7377c5ab9db374600687bc70b3e8eab4d9612f3fc418988af6853202667535a4dfad2ed2621b0859e55f9e616412e40bd07cd610d2cb34dc60e49be16acf5 WHIRLPOOL a9516cacd8c90e4c3c784cd1f366d7c6d93b34c6741728dd76ea35cc28884e4d401b8de5934cb36846f1f0cc4d1bac377db49761e755a8f81f9c9aa6e509e2e4 +EBUILD bzr-webdav-9999.ebuild 910 SHA256 8508719189ea3887dc326c7029bea19759945259853fc7b44eb9776874f61a6c SHA512 03e6d5e6a280dc41c0db58ef5d33d02d4c265f2d6306ad07c736178b64770ce145e94896c0f3e4d2a69a3d783b45c4edf99269f8e60441760348b435d3adc781 WHIRLPOOL 18e28de3468a769f98c2c9ebf0529d50e550251940680a65a5d9a83f2f59a1a42310e2ee515389e01fc8d4b866b9de8a1fc31ef613bab6bb0405387969a1c14e diff --git a/dev-vcs/bzr-webdav/bzr-webdav-9999.ebuild b/dev-vcs/bzr-webdav/bzr-webdav-9999.ebuild new file mode 100644 index 0000000..e192fde --- /dev/null +++ b/dev-vcs/bzr-webdav/bzr-webdav-9999.ebuild @@ -0,0 +1,34 @@ +# Distributed under the terms of the GNU General Public License v2 +# Copyleft (c) Vadim Fint aka MockSoul <mocksoul@gmail.com> + +EAPI=6 + +inherit eutils bzr + +DESCRIPTION="Implementation of WebDAV for bzr http transports. Allows write access to DAV-enabled web servers by registering http+webdav and https+webdav as protocols recognized by bzr" +HOMEPAGE="https://launchpad.net/bzr.webdav" +#EBZR_REPO_URI="lp:bzr.webdav" +EBZR_REPO_URI="http://darksoft.org/bzr/mirrors/bzr.webdav" +EBZR_BRANCH="trunk" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86 amd64" +IUSE="" +DEPEND=">=dev-lang/python-2.4" +RDEPEND="${DEPEND}" + + +PATCHES=( + "${FILESDIR}"/bzr_webdav-ds-error400.patch +) + + +src_install() { + pylibdir="$(python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib()')" + [ -n "${pylibdir}" ] && dodir "${pylibdir}" + plugdir=$pylibdir/bzrlib/plugins/webdav + dodir $plugdir + insinto $plugdir + doins *.py +} diff --git a/dev-vcs/bzr-webdav/files/bzr_webdav-ds-error400.patch b/dev-vcs/bzr-webdav/files/bzr_webdav-ds-error400.patch new file mode 100644 index 0000000..9f4061a --- /dev/null +++ b/dev-vcs/bzr-webdav/files/bzr_webdav-ds-error400.patch @@ -0,0 +1,12 @@ +--- webdav/webdav.py 2012-07-14 22:33:22.000000000 +0200 ++++ empty-put-request-bug/webdav.py 2012-07-14 23:49:02.000000000 +0200 +@@ -798,6 +797,9 @@ + + def append_bytes(self, relpath, bytes, mode=None): + """See Transport.append_bytes""" ++ if not bytes: ++ return ++ + if self._range_hint is not None: + # TODO: We reuse the _range_hint handled by bzr core, + # unless someone can show me a server implementing |