aboutsummaryrefslogblamecommitdiff
path: root/mail/py-pyspf/Makefile
blob: 48fb266256861e8136d59d44ea09555bc6c1e90e (plain) (tree)
1
2
3
4
5
6
7
8
9
                     
                      
                 
                           
                    
                                       
 
                                   
                                                                   
                                                  
 

                    
                                                                                
                                                                                        
                                                                         
 
                                 


                                              
 
                          
 
                      
 
                                
           

                                            
             
                                                                        
                                                                                     
 
        
                                                      
 
                      
PORTNAME=	pyspf
PORTVERSION=	2.0.14
PORTREVISION=	1
CATEGORIES=	mail python
MASTER_SITES=	PYPI
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	SPF (Sender Policy Framework) implemented in Python
WWW=		https://github.com/sdgathman/pyspf

LICENSE=	PSFL

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}authres>=0:mail/py-authres@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}dnspython>=1.16.0,1:dns/py-dnspython@${PY_FLAVOR}
TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${PY_FLAVOR}

USES=		python shebangfix
USE_PYTHON=	autoplist concurrent distutils

NO_ARCH=	yes

PLIST_FILES=	bin/spf.py

SHEBANG_FILES=	spf.py

# Make the tests run as a module
post-patch:
	@${TOUCH} ${WRKSRC}/test/__init__.py

post-install:
	${CHMOD} ${BINMODE} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/spf.py
	${RLN} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/spf.py ${STAGEDIR}${PREFIX}/bin/

do-test:
	cd ${WRKSRC}/ && ${PYTHON_CMD} -m test.testspf

.include <bsd.port.mk>