Skip to content

Commit

Permalink
[net-p2p/syncthing] Incompatible protocol changes
Browse files Browse the repository at this point in the history
Keeping a v0.10 around before 0.11 release seems reasonable.
  • Loading branch information
zamabe committed Apr 10, 2015
1 parent 5916e6d commit 5a32b1f
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions net-p2p/syncthing/syncthing-0.10.30.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: This ebuild is from mva overlay; Bumped by mva; $

EAPI="5"

#if [ "$PV" != "9999" ]; then
# SRC_URI="https://github.com/calmh/${PN}/archive/v${PV}.tar.gz"
# KEYWORDS="~amd64 ~x86 ~arm ~darwin ~winnt ~fbsd"
#else
vcs="git-r3"
SRC_URI=""
EGIT_REPO_URI="https://github.com/syncthing/${PN}"
EGIT_COMMIT="v${PV}"
KEYWORDS=""
#fi

inherit eutils base ${vcs}

DESCRIPTION="Open, trustworthy and decentralized syncing engine (some kind of analog of DropBox and BTSync)"
HOMEPAGE="http://syncthing.net"

LICENSE="MIT"
SLOT="0"
KEYWORDS=""
IUSE="tools"

DEPEND="
dev-lang/go
app-misc/godep
"
RDEPEND="${DEPEND}"

DOCS=( README.md AUTHORS LICENSE CONTRIBUTING.md )

export GOPATH="${S}"

GO_PN="github.com/syncthing/${PN}"
EGIT_CHECKOUT_DIR="${S}/src/${GO_PN}"
S="${EGIT_CHECKOUT_DIR}"

src_compile() {
# XXX: All the stuff below needs for "-version" command to show actual info
local version="$(git describe --always | sed 's/\([v\.0-9]*\)\(-\(beta\|alpha\)[0-9]*\)\?-/\1\2+/')";
local date="$(git show -s --format=%ct)";
local user="$(whoami)"
local host="$(hostname)"; host="${host%%.*}";
local lf="-w -X main.Version ${version} -X main.BuildStamp ${date} -X main.BuildUser ${user} -X main.BuildHost ${host}"

godep go build -ldflags "${lf}" -tags noupgrade ./cmd/syncthing

use tools && (
godep go build ./cmd/stcli
godep go build ./cmd/stpidx
godep go build ./discover/cmd/discosrv
)
}

src_install() {
dobin syncthing
use tools && dobin stcli stpidx discosrv
base_src_install_docs
}

0 comments on commit 5a32b1f

Please sign in to comment.