pkgsrc-Users archive

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

Re: github & url2pkg



mlh wrote:
> 
> >> I was hoping that url2pkg would understand more github projects
> >> and wanted to try to bring in goldencheetach via
> >> https://github.com/GoldenCheetah/GoldenCheetah/archive/v3.5-DEV1710.tar.gz
> >> but it still misfires on building the url:
> >> 
> >>  Can't lookup
> >>  `v3.5-DEV1710.tar.gz:https://github.com/GoldenCheetah/GoldenCheetah/archive/DEV1710.tar.gz':
> >>  servname not supported for ai_socktype
> 
> > I don't understand why this URL starts with "v3.5". The part before the
> > "https" might explain the strange "servname not supported" error message.

Some progress, but still problems with DISTFILES. Using this
Makefile:

----------------
# $NetBSD$

DISTNAME=	goldencheetah-3.5 # or such as we won't use this for the distfile
PKGREVISION=	1
CATEGORIES=	misc
MASTER_SITES=	${MASTER_SITE_GITHUB:=GoldenCheetah/}
GITHUB_PROJECT=	GoldenCheetah
GITHUB_TAG=	v3.5-DEV1710

MAINTAINER=	INSERT_YOUR_MAIL_ADDRESS_HERE
HOMEPAGE=	https://github.com/GoldenCheetah/GoldenCheetah/
COMMENT=	TODO: Short description of the package
LICENSE=	gnu-agpl-v3

_USE_GITHUB=	YES
_GITHUB_DEFAULT_DISTFILES= v3.5-DEV1710.tar.gz

# url2pkg-marker (please do not remove this line.)
BUILDLINK_API_DEPENDS.qt4-libs+=        qt4-libs>=4.7.0
.include "../../x11/qt4-libs/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

----------------
# make show-all-github 
github:
  pkg   GITHUB_PROJECT = GoldenCheetah
  pkg   GITHUB_TAG = v3.5-DEV1710
  pkg   GITHUB_TYPE = tag
  def   _USE_GITHUB = YES
  def   _GITHUB_DEFAULT_DISTFILES = goldencheetah-3.5.tar.gz
  def   SITES.goldencheetah-3.5.tar.gz =
-https://github.com/GoldenCheetah/GoldenCheetah/archive/v3.5-DEV1710.tar.gz

SITES.goldencheetah-3.5.tar.gz looks correct but how to copy that
to DISTFILES?

# make show-all-pkgname
pkgname:
  def   PKGBASE = goldencheetah
  def   PKGVERSION = 3.5nb1
  def   PKGNAME_NOREV = goldencheetah-3.5
  def   PKGNAME = goldencheetah-3.5nb1
  def   PKGVERSION_NOREV = 3.5

# make show-all | grep DISTFILE  
  pkg   DISTFILES = goldencheetah-3.5.tar.gz
  sys   DEFAULT_DISTFILES = goldencheetah-3.5.tar.gz
  def   _GITHUB_DEFAULT_DISTFILES = goldencheetah-3.5.tar.gz

If DISTNAME isn't defined, DISTFILES doesn't get filled out, and
I can't determine how to fill it out somewhat manually so DISTFILES
is correct.



Home | Main Index | Thread Index | Old Index