Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Feb 2019 09:06:00 +0000 (UTC)
From:      =?UTF-8?Q?Vin=c3=adcius_Zavam?= <egypcio@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r492983 - head/devel/hub
Message-ID:  <201902150906.x1F960q5080546@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: egypcio
Date: Fri Feb 15 09:05:59 2019
New Revision: 492983
URL: https://svnweb.freebsd.org/changeset/ports/492983

Log:
  devel/hub: update 2.7.0 to 2.9.0
  
    - Shell Completion Files are installed by default;
    - remove *_RUN_DEPENDS from the shell completion options;
    - new option to chose backend to be used (D19117).
  
  PR:		235598
  Submitted by:	swills
  Approved by:	rene (mentor)
  Differential Revision:	https://reviews.freebsd.org/D19028

Modified:
  head/devel/hub/Makefile
  head/devel/hub/distinfo

Modified: head/devel/hub/Makefile
==============================================================================
--- head/devel/hub/Makefile	Fri Feb 15 09:00:46 2019	(r492982)
+++ head/devel/hub/Makefile	Fri Feb 15 09:05:59 2019	(r492983)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	hub
-PORTVERSION=	2.7.0
+PORTVERSION=	2.9.0
 DISTVERSIONPREFIX=	v
 CATEGORIES=	devel sysutils
 
@@ -12,9 +12,6 @@ COMMENT=	Introduces git to GitHub
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	ronn:textproc/rubygem-ronn
-RUN_DEPENDS=	git:devel/git
-
 USES=		go
 
 USE_GITHUB=	yes
@@ -22,34 +19,34 @@ GH_ACCOUNT=	github
 
 GO_PKGNAME=	github.com/github/hub
 
-PLIST_FILES=	bin/hub	\
-		man/man1/hub.1.gz
+PLIST_FILES=	bin/hub \
+		etc/bash_completion.d/hub \
+		man/man1/hub.1.gz \
+		share/fish/completions/hub.fish \
+		share/zsh/site-functions/_hub
 
-OPTIONS_DEFINE=		BASH FISH ZSH
+OPTIONS_DEFINE=		GIT_SUBVERSION
 
-BASH_PLIST_FILES=	etc/bash_completion.d/hub
-BASH_RUN_REPENDS=	bash:shells/bash
-FISH_PLIST_FILES=	share/fish/completions/hub.fish
-FISH_RUN_REPENDS=	fish:shells/fish
-ZSH_PLIST_FILES=	share/zsh/site-functions/_hub
-ZSH_RUN_REPENDS=	zsh:shells/zsh
+GIT_SUBVERSION_DESC=	Use 'git-subversion' instead of 'git' as backend
 
+GIT_SUBVERSION_RUN_DEPENDS=	git-subversion>0:devel/git-subversion
+GIT_SUBVERSION_RUN_DEPENDS_OFF=	git:devel/git
+
 post-build:
-	${MKDIR} ${STAGEDIR}${MAN1PREFIX}/man/man1
-	cd ${WRKSRC}/share/man/man1 && \
-		${LOCALBASE}/bin/ronn -r hub.1.ronn
-	${INSTALL_MAN} ${WRKSRC}/share/man/man1/hub.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
+	(cd ${GO_WRKSRC} && \
+	  ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} install ${GO_BUILDFLAGS} ${GO_TARGET}/md2roff-bin)
+	(cd ${GO_WRKSRC} && \
+	  ${WRKDIR}/bin/md2roff-bin --manual="hub" --version="${PORTVERSION}" \
+	  --template=${GO_WRKSRC}/man-template.html share/man/man1/*.md)
 
-post-install-BASH-on:
-	${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
+post-install:
+	${MKDIR} ${STAGEDIR}${MAN1PREFIX}/man/man1 \
+	  ${STAGEDIR}${PREFIX}/etc/bash_completion.d \
+	  ${STAGEDIR}${PREFIX}/share/fish/completions \
+	  ${STAGEDIR}${PREFIX}/share/zsh/site-functions
 	${INSTALL_DATA} ${WRKSRC}/etc/hub.bash_completion.sh ${STAGEDIR}${PREFIX}/etc/bash_completion.d/hub
-
-post-install-FISH-on:
-	${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/completions
 	${INSTALL_DATA} ${WRKSRC}/etc/hub.fish_completion ${STAGEDIR}${PREFIX}/share/fish/completions/hub.fish
-
-post-install-ZSH-on:
-	${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
 	${INSTALL_DATA} ${WRKSRC}/etc/hub.zsh_completion ${STAGEDIR}${PREFIX}/share/zsh/site-functions/_hub
+	${INSTALL_MAN} ${WRKSRC}/share/man/man1/*.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
 
 .include <bsd.port.mk>

Modified: head/devel/hub/distinfo
==============================================================================
--- head/devel/hub/distinfo	Fri Feb 15 09:00:46 2019	(r492982)
+++ head/devel/hub/distinfo	Fri Feb 15 09:05:59 2019	(r492983)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1546258463
-SHA256 (github-hub-v2.7.0_GH0.tar.gz) = 58d131c32404c963b06bcc067bda14317bc22be26187026a91960aecda324bf4
-SIZE (github-hub-v2.7.0_GH0.tar.gz) = 997861
+TIMESTAMP = 1550162687
+SHA256 (github-hub-v2.9.0_GH0.tar.gz) = 48aa49cd6eb14a4ea243019323bb0b8b193fc8c3fbdcc3597f87cca11ae0394c
+SIZE (github-hub-v2.9.0_GH0.tar.gz) = 1041659



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