summaryrefslogtreecommitdiff
path: root/net-p2p
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/syncthing/syncthing-scm.ebuild13
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