mirror of
https://git.freebsd.org/ports.git
synced 2025-05-21 19:35:28 -04:00
first is an MIT licensed Python package with a simple function that returns the first true value from an iterable, or None if there is none. If you need more power, you can also supply a key function that is used to judge the truth value of the element or a default value if None doesn’t fit your use case. WWW: https://pypi.python.org/pypi/first WWW: https://github.com/hynek/first
20 lines
414 B
Makefile
20 lines
414 B
Makefile
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= first
|
|
PORTVERSION= 2.0.1
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Return the first true value of an iterable
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
NO_ARCH= yes
|
|
USE_PYTHON= autoplist concurrent distutils
|
|
USES= python
|
|
|
|
.include <bsd.port.mk>
|