Makefile 628 B

1234567891011121314151617181920212223242526272829303132333435
  1. # $OpenBSD: Makefile,v 1.4 2017/01/03 19:24:43 landry Exp $
  2. COMMENT = simple DNS resolver for asyncio
  3. MODPY_EGG_VERSION = 1.1.1
  4. DISTNAME = aiodns-${MODPY_EGG_VERSION}
  5. PKGNAME = py-${DISTNAME}
  6. CATEGORIES = net
  7. REVISION = 0
  8. MAINTAINER = Daniel Jakots <obsd@chown.me>
  9. # MIT
  10. PERMIT_PACKAGE_CDROM = Yes
  11. MODULES = lang/python
  12. MODPY_PI = Yes
  13. MODPY_SETUPTOOLS = Yes
  14. FLAVORS = python3
  15. FLAVOR ?=
  16. RUN_DEPENDS = net/py-cares${MODPY_FLAVOR}
  17. .if !${FLAVOR:Mpython3}
  18. RUN_DEPENDS += devel/py-trollius
  19. .endif
  20. TEST_DEPENDS = ${RUN_DEPENDS}
  21. do-test:
  22. @cd ${WRKSRC} && ${MODPY_BIN} -m unittest discover
  23. .include <bsd.port.mk>