diff options
Diffstat (limited to 'app-portage/getdelta/getdelta-0.7.9-r2.ebuild')
-rw-r--r-- | app-portage/getdelta/getdelta-0.7.9-r2.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/app-portage/getdelta/getdelta-0.7.9-r2.ebuild b/app-portage/getdelta/getdelta-0.7.9-r2.ebuild new file mode 100644 index 00000000..d36a85c5 --- /dev/null +++ b/app-portage/getdelta/getdelta-0.7.9-r2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils readme.gentoo + +DESCRIPTION="dynamic deltup client" +HOMEPAGE="http://linux01.gwdg.de/~nlissne/" +SRC_URI="http://linux01.gwdg.de/~nlissne/${PN}-0.7.8.tar.bz2" +SLOT="0" +IUSE="" +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~sparc ~x86" +S="${WORKDIR}" + +RDEPEND="app-portage/deltup + dev-util/bdelta" + +DISABLE_AUTOFORMATTING="true" +DOC_CONTENTS="You need to put +FETCHCOMMAND=\"/usr/bin/getdelta.sh \\\"\\\${URI}\\\" \\\"\\\${FILE}\\\"\" +into your /etc/make.conf to make use of getdelta" + +src_prepare() { + epatch "${FILESDIR}/eapi2.patch" + sed -i -e "s:/bin/sh:/bin/bash:" getdelta.sh || die + epatch_user +} + +src_install() { + dobin "${WORKDIR}"/getdelta.sh + readme.gentoo_create_doc +} + +pkg_postinst() { + local a b + # make sure permissions are ok + a="${EROOT}"/var/log/getdelta.log + b="${EROOT}"/etc/deltup + test -f "${a}" || touch -- "${a}" + mkdir -p -- "${b}" + use prefix || chown -R portage:portage -- "${a}" "${b}" + chmod -R ug+rwX -- "${a}" "${b}" + readme.gentoo_pkg_postinst +} |