Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Apr 2018 07:40:47 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r467032 - in head: devel/catch math/py-pynleq2
Message-ID:  <201804110740.w3B7elus019838@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Wed Apr 11 07:40:47 2018
New Revision: 467032
URL: https://svnweb.freebsd.org/changeset/ports/467032

Log:
  Use USE_GITHUB correctly.
  
  Sponsored by:	Absolight

Modified:
  head/devel/catch/Makefile   (contents, props changed)
  head/devel/catch/distinfo   (contents, props changed)
  head/math/py-pynleq2/Makefile   (contents, props changed)
  head/math/py-pynleq2/distinfo   (contents, props changed)

Modified: head/devel/catch/Makefile
==============================================================================
--- head/devel/catch/Makefile	Wed Apr 11 07:37:16 2018	(r467031)
+++ head/devel/catch/Makefile	Wed Apr 11 07:40:47 2018	(r467032)
@@ -2,10 +2,9 @@
 # $FreeBSD$
 
 PORTNAME=	catch
+DISTVERSIONPREFIX=	v
 DISTVERSION=	2.2.2
 CATEGORIES=	devel
-MASTER_SITES=	https://github.com/catchorg/Catch2/archive/
-DISTNAME=	v${DISTVERSION}
 
 MAINTAINER=	gahr@FreeBSD.org
 COMMENT=	Header-only test framework for C++
@@ -14,7 +13,9 @@ LICENSE=	BSL
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
 USES=		compiler:c++14-lang cmake pathfix
-WRKSRC=		${WRKDIR}/Catch2-${DISTVERSION}
+USE_GITHUB=	yes
+GH_ACCOUNT=	catchorg
+GH_PROJECT=	Catch2
 
 CMAKE_ARGS=	-DCMAKE_INSTALL_DOCDIR=${DOCSDIR}
 PORTDOCS=	*

Modified: head/devel/catch/distinfo
==============================================================================
--- head/devel/catch/distinfo	Wed Apr 11 07:37:16 2018	(r467031)
+++ head/devel/catch/distinfo	Wed Apr 11 07:40:47 2018	(r467032)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1523346341
-SHA256 (v2.2.2.tar.gz) = e93aacf012579093fe6b4e686ff0488975cabee1e6b4e4f27a0acd898e8f09fd
-SIZE (v2.2.2.tar.gz) = 497244
+TIMESTAMP = 1523392340
+SHA256 (catchorg-Catch2-v2.2.2_GH0.tar.gz) = e93aacf012579093fe6b4e686ff0488975cabee1e6b4e4f27a0acd898e8f09fd
+SIZE (catchorg-Catch2-v2.2.2_GH0.tar.gz) = 497244

Modified: head/math/py-pynleq2/Makefile
==============================================================================
--- head/math/py-pynleq2/Makefile	Wed Apr 11 07:37:16 2018	(r467031)
+++ head/math/py-pynleq2/Makefile	Wed Apr 11 07:40:47 2018	(r467032)
@@ -3,11 +3,9 @@
 PORTNAME=	pynleq2
 DISTVERSION=	0.0.2
 CATEGORIES=	math python
-MASTER_SITES=	CHEESESHOP \
-		https://github.com/PySCeS/pysces/archive/:fortran
+MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
-DISTFILES=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
-		${PYSCES_VERSION}${EXTRACT_SUFX}:fortran
+DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
 
 MAINTAINER=	yuri@FreeBSD.org
 COMMENT=	Python binding for NLEQ2 algorithm's fortran implementation
@@ -19,16 +17,17 @@ BUILD_DEPENDS=	${PYNUMPY}
 
 USES=		fortran:flang python
 USE_PYTHON=	distutils autoplist
+USE_GITHUB=	nodefault
+GH_TUPLE=	PySCeS:pysces:0.9.5:fortran
 
 BINARY_ALIAS=	gfortran6=flang # it keeps using gfortran6 regardless of the environment variables and arguments
 
-PYSCES_VERSION=	0.9.5
 FORTRAN_FILES=	linalg_nleq2.f nleq2.f wnorm.f zibconst.f zibmon.f zibsec.f
 
 pre-build: # compile fortran files into a static library because distutils fails while doing this
 	@${MKDIR} ${WRKDIR}/.fbuild && \
 		cd ${WRKDIR}/.fbuild && \
-		flang -c ${CFLAGS} -fPIC ${FORTRAN_FILES:C/^/${WRKDIR}\/pysces-${PYSCES_VERSION}\/pysces\/nleq2\//} && \
+		flang -c ${CFLAGS} -fPIC ${FORTRAN_FILES:C,^,${WRKSRC_fortran}/pysces/nleq2/,} && \
 		${AR} -qc libff.a ${FORTRAN_FILES:S/.f/.o/}
 
 post-install:

Modified: head/math/py-pynleq2/distinfo
==============================================================================
--- head/math/py-pynleq2/distinfo	Wed Apr 11 07:37:16 2018	(r467031)
+++ head/math/py-pynleq2/distinfo	Wed Apr 11 07:40:47 2018	(r467032)
@@ -1,5 +1,5 @@
-TIMESTAMP = 1522600966
+TIMESTAMP = 1523392896
 SHA256 (pynleq2-0.0.2.tar.gz) = b9be75bb7def34cd7a82aed87b70f6c3c9f4602cbe9e8d4fcf43a4aae241112d
 SIZE (pynleq2-0.0.2.tar.gz) = 6219
-SHA256 (0.9.5.tar.gz) = 14131578b36154593ee5e793b3886572746209dcc3d9ed5ef3787a3476876cf6
-SIZE (0.9.5.tar.gz) = 2119094
+SHA256 (PySCeS-pysces-0.9.5_GH0.tar.gz) = 14131578b36154593ee5e793b3886572746209dcc3d9ed5ef3787a3476876cf6
+SIZE (PySCeS-pysces-0.9.5_GH0.tar.gz) = 2119094



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