Browse Source

benchmarks/hey:

- Update to 0.1.1
- Add LICENSE
- Switch to USES=go and remove the hacks
Bernhard Fröhlich 2 months ago
parent
commit
6b54439cdc
Signed by: Bernhard Froehlich <decke@bluelife.at> GPG Key ID: 4DD88C3F9F3B8333
2 changed files with 17 additions and 19 deletions
  1. 10
    14
      benchmarks/hey/Makefile
  2. 7
    5
      benchmarks/hey/distinfo

+ 10
- 14
benchmarks/hey/Makefile View File

@@ -2,32 +2,28 @@
2 2
 # $FreeBSD: head/benchmarks/hey/Makefile 463776 2018-03-07 08:06:24Z yuri $
3 3
 
4 4
 PORTNAME=	hey
5
-PORTVERSION=	0.1.0
5
+PORTVERSION=	0.1.1
6 6
 DISTVERSIONPREFIX=	v
7 7
 CATEGORIES=	benchmarks
8 8
 
9 9
 MAINTAINER=	brd@FreeBSD.org
10 10
 COMMENT=	Tiny program that sends some load to a web application
11 11
 
12
-BUILD_DEPENDS=	go>=1.7:lang/go
12
+LICENSE=	APACHE20
13
+LICENSE_FILE=	${WRKSRC}/LICENSE
14
+
15
+USES=		go
13 16
 
14 17
 USE_GITHUB=	yes
15 18
 GH_ACCOUNT=	rakyll
16 19
 
17
-GH_TUPLE=	golang:net:41bba8d:net/src/golang.org/x/net
20
+GH_TUPLE=	golang:net:04a2e54:net/vendor/golang.org/x/net \
21
+		golang:text:v0.3.0:text/vendor/golang.org/x/text
18 22
 
19 23
 PLIST_FILES=	bin/hey
20 24
 
21
-do-build:
22
-	( cd ${WRKSRC}; \
23
-		${MKDIR} src/github.com/rakyll/hey; \
24
-		cd src/github.com/rakyll/hey; \
25
-		${LN} -s ../../../../requester . )
26
-	( cd ${WRKSRC}; \
27
-		${SETENV} ${MAKE_ENV} ${BUILD_ENV} GOPATH=${WRKSRC} CC=clang \
28
-		go build ${BUILD_FLAGS} )
29
-
30
-do-install:
31
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-${PORTVERSION} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
25
+post-patch:
26
+	${MKDIR} ${WRKSRC}/vendor/github.com/rakyll/hey
27
+	${LN} -s ${WRKSRC}/requester ${WRKSRC}/vendor/github.com/rakyll/hey/requester
32 28
 
33 29
 .include <bsd.port.mk>

+ 7
- 5
benchmarks/hey/distinfo View File

@@ -1,5 +1,7 @@
1
-TIMESTAMP = 1497559091
2
-SHA256 (rakyll-hey-v0.1.0_GH0.tar.gz) = a8127634e21897c587c6c375f88121e907ce4af8bf71374db44c5d752ae4a296
3
-SIZE (rakyll-hey-v0.1.0_GH0.tar.gz) = 11853
4
-SHA256 (golang-net-41bba8d_GH0.tar.gz) = 003c999bb8c3d73cc3dae0ca48e8afcb77cf58cb6e2b25b4486ff602deacb8eb
5
-SIZE (golang-net-41bba8d_GH0.tar.gz) = 770083
1
+TIMESTAMP = 1548751798
2
+SHA256 (rakyll-hey-v0.1.1_GH0.tar.gz) = c068017b8299fbfa4d386e6f98fb1a4ecca2be49cee41ae9dffcf60be4c2ed0b
3
+SIZE (rakyll-hey-v0.1.1_GH0.tar.gz) = 14283
4
+SHA256 (golang-net-04a2e54_GH0.tar.gz) = c5242b0eac35a3460dbaa3c19c518f802ec82ce9a025bb41dab7a8ef7dcc45c2
5
+SIZE (golang-net-04a2e54_GH0.tar.gz) = 967090
6
+SHA256 (golang-text-v0.3.0_GH0.tar.gz) = 8f4c9a048345befc7beccd09267737ee1f55c7b35e5ff80f344ec9e0aa90febb
7
+SIZE (golang-text-v0.3.0_GH0.tar.gz) = 6102619

Loading…
Cancel
Save