Edit

IABSD.fr/ports/net/py-libcloud/Makefile

Branch :

  • Show log

    Commit

  • Author : espie
    Date : 2023-09-27 14:17:59
    Hash : a34bba28
    Message : MASTER_SITES -> SITES catch one MASTER_SITES0 that wasn't actually in use

  • net/py-libcloud/Makefile
  • COMMENT=		unified interface for interacting with cloud services
    
    MODPY_EGG_VERSION=	3.8.0
    DISTNAME=		apache-libcloud-${MODPY_EGG_VERSION}
    PKGNAME=		py-libcloud-${MODPY_EGG_VERSION}
    
    CATEGORIES=		net
    
    HOMEPAGE=		https://libcloud.apache.org/
    
    MAINTAINER=		Antoine Jacoutot <ajacoutot@openbsd.org>
    
    # Apache 2.0
    PERMIT_PACKAGE=		Yes
    
    SITES=			${SITE_APACHE:=libcloud/}
    
    MODULES=		lang/python
    
    MODPY_PYBUILD=		setuptools
    
    FLAVORS=		python3
    FLAVOR=			python3
    
    BUILD_DEPENDS=		devel/py-test-runner${MODPY_FLAVOR}
    
    RUN_DEPENDS=		sysutils/py-lockfile${MODPY_FLAVOR}
    
    TEST_DEPENDS=		devel/flake8 \
    			devel/py-mock${MODPY_FLAVOR} \
    			devel/py-test-runner${MODPY_FLAVOR} \
    			security/py-openssl${MODPY_FLAVOR} \
    			sysutils/py-lockfile${MODPY_FLAVOR} \
    			www/py-requests-mock${MODPY_FLAVOR}
    
    # no need to package the test suite
    post-install:
    	rm -rf ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/libcloud/test/
    
    pre-test:
    	cp ${WRKSRC}/libcloud/test/secrets.py-dist \
    		${WRKSRC}/libcloud/test/secrets.py
    
    .include <bsd.port.mk>