# $OpenBSD: Makefile,v 1.24 2013/03/11 11:23:58 espie Exp $ COMMENT = python package to retrieve data of the IMDb movie database MODPY_EGG_VERSION = 4.6 DISTNAME = IMDbPY-${MODPY_EGG_VERSION} PKGNAME = py-imdb-${MODPY_EGG_VERSION} REVISION = 2 CATEGORIES = misc devel HOMEPAGE = http://imdbpy.sourceforge.net/ MAINTAINER = Todd C. Miller # GPL PERMIT_PACKAGE_CDROM = Yes WANTLIB += c pthread ${MODPY_WANTLIB} MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=imdbpy/} MODULES = lang/python MODPY_SETUPTOOLS = Yes RUN_DEPENDS = textproc/py-lxml NO_TEST = Yes DOCSDIR = ${PREFIX}/share/doc/py-imdb EXAMPLESDIR = ${PREFIX}/share/examples/py-imdb post-install: ${INSTALL_DATA_DIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/docs/README* ${DOCSDIR} ${INSTALL_DATA_DIR} ${EXAMPLESDIR} ${INSTALL_SCRIPT} ${WRKSRC}/bin/* ${EXAMPLESDIR} perl -pi -e 's,#!/usr/bin/env python,#!${MODPY_BIN},' ${EXAMPLESDIR}/* .include