41 lines
994 B
Makefile
41 lines
994 B
Makefile
# $OpenBSD: Makefile,v 1.22 2011/09/16 10:31:23 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 = 1
|
|
CATEGORIES = misc devel
|
|
|
|
HOMEPAGE = http://imdbpy.sourceforge.net/
|
|
|
|
MAINTAINER = Todd C. Miller <millert@openbsd.org>
|
|
|
|
# GPL
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
PERMIT_DISTFILES_CDROM = Yes
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=imdbpy/}
|
|
|
|
MODULES = lang/python
|
|
MODPY_SETUPTOOLS = Yes
|
|
|
|
RUN_DEPENDS = textproc/py-lxml
|
|
|
|
NO_REGRESS = 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 <bsd.port.mk>
|