tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: heads up: please use USE_GITHUB=yes when packaging software hosted on GH



Hello Makoto!

Makoto Fujiwara writes:
> [...]
> By the way, When I was trying to convert
>   textproc/py-uritemplate
> I'm a little bit confused. 
> 
> Attached change will fetch following URL and fails
> uri-template-py-0.6.tar.gz https://github.com/uri-templates/uri-template-py/archive/0.6.tar.gz
Unfortunately this package has a name that makes some confusion!... :) 
If we try to inspect the URL we can see (prehistoric ASCII art is
mandatory for that reason! :)):

 https://github.com/uri-templates/uritemplate-py/archive/uri-template-py-0.6.tar.gz
 |-------------------------------|--------------|.......|-------------------|-------------|
  ${MASTER_SITE_GITHUB:=account} ${GITHUB_PROJECT}          ${GITHUB_TAG}   ${EXTRACT_SUFX}


The attached patches should do the trick (based on your original patches).


Ciao,
L.
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/textproc/py-uritemplate/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- Makefile	24 Nov 2014 14:06:12 -0000	1.1
+++ Makefile	11 May 2015 22:28:09 -0000
@@ -3,7 +3,9 @@
 DISTNAME=	uri-template-py-0.6
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/-template-py/template/}
 CATEGORIES=	textproc www python
-MASTER_SITES=	https://github.com/uri-templates/uritemplate-py/archive/
+MASTER_SITES=	${MASTER_SITE_GITHUB:=uri-templates/}
+GITHUB_PROJECT=	uritemplate-py
+GITHUB_TAG=	${DISTNAME}
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	https://github.com/uri-templates/uritemplate-py/
@@ -11,7 +13,6 @@
 LICENSE=	apache-2.0
 
 EGG_NAME=	uritemplate-${PKGVERSION_NOREV}
-WRKSRC=		${WRKDIR}/uritemplate-py-${DISTNAME}
 
 .include "../../lang/python/distutils.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index