# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 DESCRIPTION="File sync without servers." HOMEPAGE="https://www.aerofs.com/" SRC_URI="http://cache.client.aerofs.com/aerofs-installer.tgz" RESTRICT="mirror" LICENSE="" # unknown SLOT="0" KEYWORDS="~amd64" IUSE="" DEPEND=" app-arch/sharutils virtual/jre " RDEPEND="${DEPEND}" S="${WORKDIR}/aerofs" pkg_nofetch() { eerror "AeroFS does not use versioned filenames." eerror "An ebuild version bump is probably required." eerror "" eerror "Please see the following URL for the current version number:" eerror "http://support.aerofs.com/knowledgebase/articles/93285-release-notes" } src_prepare() { sed 's#uudecode -o /dev/stdout \$0 | tar xzf - -C \$TMP_DIR 2>/dev/null#(cd $TMP_DIR \&\& uudecode "$0" \&\& tar xzf bin -C . 2>/dev/null; rm bin)#' -i aerofs || die "sed failed" } src_install() { dobin aerofs for t in cli gui sh; do dosym aerofs "${DESTTREE}/bin/aerofs-${t}" done }