Makefile 949 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # $OpenBSD: Makefile,v 1.26 2015/09/29 10:52:28 sthen Exp $
  2. COMMENT = python package to retrieve data of the IMDb movie database
  3. MODPY_EGG_VERSION = 5.0
  4. DISTNAME = IMDbPY-${MODPY_EGG_VERSION}
  5. PKGNAME = py-imdb-${MODPY_EGG_VERSION}
  6. CATEGORIES = misc devel
  7. REVISION = 0
  8. HOMEPAGE = http://imdbpy.sourceforge.net/
  9. MAINTAINER = Todd C. Miller <millert@openbsd.org>
  10. # GPL
  11. PERMIT_PACKAGE_CDROM = Yes
  12. WANTLIB += c pthread ${MODPY_WANTLIB}
  13. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=imdbpy/}
  14. MODULES = lang/python
  15. MODPY_SETUPTOOLS = Yes
  16. RUN_DEPENDS = textproc/py-lxml
  17. NO_TEST = Yes
  18. DOCSDIR = ${PREFIX}/share/doc/py-imdb
  19. EXAMPLESDIR = ${PREFIX}/share/examples/py-imdb
  20. post-install:
  21. ${INSTALL_DATA_DIR} ${DOCSDIR}
  22. ${INSTALL_DATA} ${WRKSRC}/docs/README* ${DOCSDIR}
  23. ${INSTALL_DATA_DIR} ${EXAMPLESDIR}
  24. ${INSTALL_SCRIPT} ${WRKSRC}/bin/* ${EXAMPLESDIR}
  25. perl -pi -e 's,#!/usr/bin/env python,#!${MODPY_BIN},' ${EXAMPLESDIR}/*
  26. .include <bsd.port.mk>