caddy-0.9.5.ebuild 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. EGO_VENDOR=( "github.com/dustin/go-humanize 7a41df006ff9af79a29f0ffa9c5f21fbe6314a2d"
  5. "github.com/flynn/go-shlex 3f9db97f856818214da2e1057f8ad84803971cff github.com/flynn-archive/go-shlex"
  6. "github.com/xenolf/lego 6cac0ea7d8b28c889f709ec7fa92e92b82f490dd"
  7. "github.com/lucas-clemente/quic-go-certificates d2f86524cced5186554df90d92529757d22c1cb6"
  8. "github.com/lucas-clemente/quic-go 178c14f1d482f6f5f1d22147fef2dd01cce35cb4"
  9. "github.com/gorilla/websocket 3f3e394da2b801fbe732a935ef40724762a67a07"
  10. "github.com/miekg/dns eda6b320244f0700772bb765282381d17495e7d3"
  11. "github.com/hashicorp/go-syslog b609c7d9de4658cded34a7336b90886c56f9dbdb"
  12. "github.com/jimstudt/http-authentication 3eca13d6893afd7ecabe15f4445f5d2872a1b012"
  13. "github.com/naoina/toml 751171607256bb66e64c9f0220c00662420c38e9"
  14. "github.com/hashicorp/golang-lru 0a025b7e63adc15a622f29b0b2c4c3848243bbf6"
  15. "github.com/lucas-clemente/aes12 25700e67be5c860bcc999137275b9ef8b65932bd"
  16. "github.com/lucas-clemente/fnv128a 393af48d391698c6ae4219566bfbdfef67269997"
  17. "github.com/naoina/go-stringutil 6b638e95a32d0c1131db0e7fe83775cbea4a0d0b"
  18. "github.com/russross/blackfriday 5f33e7b7878355cd2b7e6b8eefc48a5472c69f70"
  19. "github.com/shurcooL/sanitized_anchor_name 1dba4b3954bc059efc3991ec364f9f9a35f597d2"
  20. "golang.org/x/net 906cda9512f77671ab44f8c8563b13a8e707b230 github.com/golang/net"
  21. "golang.org/x/crypto 453249f01cfeb54c3d549ddb75ff152ca243f9d8 github.com/golang/crypto"
  22. "gopkg.in/natefinch/lumberjack.v2 dd45e6a67c53f673bb49ca8a001fd3a63ceb640e github.com/natefinch/lumberjack"
  23. "gopkg.in/square/go-jose.v1 aa2e30fdd1fe9dd3394119af66451ae790d50e0d github.com/square/go-jose"
  24. "gopkg.in/yaml.v2 a3f3340b5840cee44f372bddb5880fcbc419b46a github.com/go-yaml/yaml" )
  25. EGO_PN="github.com/mholt/${PN}/..."
  26. inherit golang-build golang-vcs-snapshot
  27. EGIT_COMMIT="v${PV}"
  28. ARCHIVE_URI="https://${EGO_PN%/*}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
  29. KEYWORDS="~amd64"
  30. DESCRIPTION="Fast, cross-platform HTTP/2 web server with automatic HTTPS"
  31. HOMEPAGE="https://github.com/mholt/caddy"
  32. SRC_URI="${ARCHIVE_URI}
  33. ${EGO_VENDOR_URI}"
  34. LICENSE="Apache-2.0"
  35. SLOT="0"
  36. IUSE=""
  37. RESTRICT="test"
  38. src_compile() {
  39. GOPATH="${WORKDIR}/${P}" go install -ldflags "-X github.com/mholt/caddy/caddy/caddymain.gitTag=${PV}" ${EGO_PN%/*}/caddy || die
  40. }
  41. src_install() {
  42. dobin bin/*
  43. dodoc src/${EGO_PN%/*}/README.md src/${EGO_PN%/*}/dist/CHANGES.txt
  44. }