Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Oct 2019 03:04:55 +0000 (UTC)
From:      Marcelo Araujo <araujo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r515166 - in head/sysutils/go-wtf: . files
Message-ID:  <201910220304.x9M34tL1091732@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: araujo
Date: Tue Oct 22 03:04:55 2019
New Revision: 515166
URL: https://svnweb.freebsd.org/changeset/ports/515166

Log:
  - Update to 0.23.
  - Fixes for vendor Microsoft cases sensitive names.
  
  Submitted by:	Christopher Hall <hsw_bitmark.com> (maintainer)
  Differential Revision:	https://reviews.freebsd.org/D22102

Added:
  head/sysutils/go-wtf/files/
  head/sysutils/go-wtf/files/patch-modules_azuredevops_widget.go   (contents, props changed)
  head/sysutils/go-wtf/files/patch-modules_devto_widget.go   (contents, props changed)
Modified:
  head/sysutils/go-wtf/Makefile
  head/sysutils/go-wtf/distinfo

Modified: head/sysutils/go-wtf/Makefile
==============================================================================
--- head/sysutils/go-wtf/Makefile	Tue Oct 22 02:41:00 2019	(r515165)
+++ head/sysutils/go-wtf/Makefile	Tue Oct 22 03:04:55 2019	(r515166)
@@ -1,7 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	wtf
-PORTVERSION=	0.21.0
+PORTVERSION=	0.23.0
 DISTVERSIONPREFIX=	v
 CATEGORIES=	sysutils
 PKGNAMEPREFIX=	go-
@@ -25,6 +25,14 @@ PORTDOCS=	README.md
 
 OPTIONS_DEFINE=	DOCS EXAMPLES
 OPTIONS_SUB=	yes
+
+# try to deal with case insensitive github names
+WTF_VGH_DIR=	${WRKSRC}/vendor/github.com
+post-patch:
+	[ -d "${WTF_VGH_DIR}/Microsoft" -a ! -d "${WTF_VGH_DIR}/microsoft" ] && \
+	  ${LN} -s Microsoft "${WTF_VGH_DIR}/microsoft" || true
+	[ -d "${WTF_VGH_DIR}/microsoft" -a ! -d "${WTF_VGH_DIR}/Microsoft" ] && \
+	  ${LN} -s microsoft "${WTF_VGH_DIR}/Microsoft" || true
 
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}

Modified: head/sysutils/go-wtf/distinfo
==============================================================================
--- head/sysutils/go-wtf/distinfo	Tue Oct 22 02:41:00 2019	(r515165)
+++ head/sysutils/go-wtf/distinfo	Tue Oct 22 03:04:55 2019	(r515166)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1567513605
-SHA256 (wtfutil-wtf-v0.21.0_GH0.tar.gz) = f1a5267f5b534026d7ae75ee2c13b4d3e08643b8f5b52637b41fb6c4fea1838d
-SIZE (wtfutil-wtf-v0.21.0_GH0.tar.gz) = 11162170
+TIMESTAMP = 1571016550
+SHA256 (wtfutil-wtf-v0.23.0_GH0.tar.gz) = b5b7284cd3884d8e43886f27fe2b0705734ae9637f67174e75bfe5c0ba6f2eda
+SIZE (wtfutil-wtf-v0.23.0_GH0.tar.gz) = 11625161

Added: head/sysutils/go-wtf/files/patch-modules_azuredevops_widget.go
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/go-wtf/files/patch-modules_azuredevops_widget.go	Tue Oct 22 03:04:55 2019	(r515166)
@@ -0,0 +1,11 @@
+--- modules/azuredevops/widget.go.orig	2019-10-11 19:16:00 UTC
++++ modules/azuredevops/widget.go
+@@ -13,7 +13,7 @@ import (
+ 
+ type Widget struct {
+ 	view.TextWidget
+-	cli           azrBuild.Client
++	cli           *azrBuild.Client
+ 	settings      *Settings
+ 	displayBuffer string
+ 	ctx           context.Context

Added: head/sysutils/go-wtf/files/patch-modules_devto_widget.go
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/go-wtf/files/patch-modules_devto_widget.go	Tue Oct 22 03:04:55 2019	(r515166)
@@ -0,0 +1,20 @@
+--- modules/devto/widget.go.orig	2019-10-11 19:16:00 UTC
++++ modules/devto/widget.go
+@@ -14,7 +14,7 @@ import (
+ type Widget struct {
+ 	view.KeyboardWidget
+ 	view.ScrollableWidget
+-	articles []devto.ListedArticle
++	articles []devto.Article
+ 	settings *Settings
+ 	err      error
+ }
+@@ -59,7 +59,7 @@ func (widget *Widget) Refresh() {
+ 		widget.articles = nil
+ 		widget.SetItemCount(0)
+ 	} else {
+-		var displayArticles []devto.ListedArticle
++		var displayArticles []devto.Article
+ 		var l int
+ 		if len(articles) < widget.settings.numberOfArticles {
+ 			l = len(articles)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910220304.x9M34tL1091732>