eb31fd899e
Upstream's version is 0.6.0.X, where X appears to be a large integer in decimal that corresponds to a git sha1 has. Such large numbers violate the assumption, true with just about every previous package, that version number components will fit in an int --- code that handles version numbers does not use a multiprecision integer library like gmp. To address this, split the version into what would have been the version under normal procedures (0.6.0), and put the bignum into ${VERSION_EXCESSIVE}, allowing it be used in DISTNAME but not PKGNAME.
32 lines
955 B
Makefile
32 lines
955 B
Makefile
# $NetBSD: Makefile,v 1.8 2012/03/20 23:38:26 gdt Exp $
|
|
#
|
|
|
|
VERSION= 0.6.0
|
|
VERSION_EXCESSIVE= 1206569328141510525648634803928199668821045408958
|
|
DISTNAME= pycryptopp-${VERSION}.${VERSION_EXCESSIVE}
|
|
PKGNAME= ${PYPKGPREFIX}-cryptopp-${VERSION}
|
|
CATEGORIES= security python
|
|
MASTER_SITES= http://pypi.python.org/packages/source/p/pycryptopp/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://tahoe-lafs.org/trac/pycryptopp
|
|
COMMENT= Python wrapper for (and copy of parts of) crypto++
|
|
|
|
# GPL v2 or later.
|
|
# or Transitive Grace Period Public Licence, version 1.0 or later.
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
REPLACE_INTERPRETER+= python
|
|
REPLACE.python.old= /usr/bin/env python
|
|
REPLACE.python.new= ${PYTHONBIN}
|
|
REPLACE_FILES.python= pycryptopp/test/*.py
|
|
|
|
# It would be nice if egg.mk had support for this.
|
|
#TEST_TARGET= @python@ setup.py test
|
|
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|