diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2016-05-23 15:21:04 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2016-05-23 15:21:04 +0300 |
commit | c01ada5103a75aed9211c1646ab74f6664811b32 (patch) | |
tree | 5476c2b11f5d897fc275259ad454ba06f38c9a3a /net-p2p | |
parent | e508ff30d8b01ae9d7e401489b42a9b154cf86a0 (diff) |
syncthing: fixed
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/syncthing/syncthing-scm.ebuild | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/net-p2p/syncthing/syncthing-scm.ebuild b/net-p2p/syncthing/syncthing-scm.ebuild index 5910dd5..0d3419d 100644 --- a/net-p2p/syncthing/syncthing-scm.ebuild +++ b/net-p2p/syncthing/syncthing-scm.ebuild @@ -26,22 +26,15 @@ DOCS=( README.md AUTHORS LICENSE CONTRIBUTING.md ) export GOPATH="${S}" GO_PN="github.com/${PN}/${PN}" -EGIT_CHECKOUT_DIR="${S}/src/${GO_PN}" +EGIT_CHECKOUT_DIR="${S}/src/github.com/syncthing/syncthing" 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 || die + go run build.go } src_install() { - dobin syncthing + dobin bin/syncthing base_src_install_docs if use systemd; then systemd_newunit "${FILESDIR}"/${PN}.service ${PN}@.service |