From 8c335ff61220240862b0fb88b5ec8d89fcc7283b Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Mon, 18 Jun 2012 16:57:09 +0000 Subject: [PATCH] - Update to 4.9 - Convert to new options framework - Remove duplicate entry in PLIST Changes: http://imdbpy.sourceforge.net/#news --- www/py-imdbpy/Makefile | 18 +++++++++++------- www/py-imdbpy/distinfo | 4 ++-- www/py-imdbpy/pkg-plist | 7 +++---- 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/www/py-imdbpy/Makefile b/www/py-imdbpy/Makefile index 8efb01793abb..4442a9391cf6 100644 --- a/www/py-imdbpy/Makefile +++ b/www/py-imdbpy/Makefile @@ -7,7 +7,7 @@ # PORTNAME= imdbpy -PORTVERSION= 4.8.2 +PORTVERSION= 4.9 CATEGORIES= www python MASTER_SITES= SF/${PORTNAME}/IMDbPY/${PORTVERSION:S/.2//} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -21,6 +21,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>=0:${PORTSDIR}/devel/py-lxml \ ${PYTHON_PKGNAMEPREFIX}sqlalchemy06>=0:${PORTSDIR}/databases/py-sqlalchemy06 \ ${PYTHON_PKGNAMEPREFIX}sqlobject>=0:${PORTSDIR}/databases/py-sqlobject +OPTIONS_DEFINE= DOCS EXAMPLES + USE_PYTHON= yes USE_PYDISTUTILS= easy_install PYDISTUTILS_NOEGGINFO= yes @@ -30,14 +32,16 @@ PYEASYINSTALL_ARCHDEP= yes DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} +.include + post-install: -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - @(cd ${WRKSRC}/docs/ && ${COPYTREE_SHARE} . ${DOCSDIR}) +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${DOCSDIR}/ + cd ${WRKSRC}/docs/ && ${COPYTREE_SHARE} . ${DOCSDIR}/ .endif -.if !defined(NOPORTEXAMPLES) - @${MKDIR} ${EXAMPLESDIR} - @(cd ${WRKSRC}/bin/ && ${COPYTREE_SHARE} . ${EXAMPLESDIR}) +.if ${PORT_OPTIONS:MEXAMPLES} + ${MKDIR} ${EXAMPLESDIR}/ + cd ${WRKSRC}/bin/ && ${COPYTREE_SHARE} . ${EXAMPLESDIR}/ .endif .include diff --git a/www/py-imdbpy/distinfo b/www/py-imdbpy/distinfo index 115d3baf9c55..03150660b092 100644 --- a/www/py-imdbpy/distinfo +++ b/www/py-imdbpy/distinfo @@ -1,2 +1,2 @@ -SHA256 (IMDbPY-4.8.2.tar.gz) = 38973f80f794238fded6ca1794d4832c9c039d33664f0da27fc5adf595c2588f -SIZE (IMDbPY-4.8.2.tar.gz) = 300434 +SHA256 (IMDbPY-4.9.tar.gz) = 01e90dce4fe19aeca99c9d3eb14052769467b177e3fb8acc240f9c51c5f477d2 +SIZE (IMDbPY-4.9.tar.gz) = 307726 diff --git a/www/py-imdbpy/pkg-plist b/www/py-imdbpy/pkg-plist index a45d671e2489..babe8efac1e9 100644 --- a/www/py-imdbpy/pkg-plist +++ b/www/py-imdbpy/pkg-plist @@ -101,12 +101,12 @@ bin/search_person.py %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/imdb/_logging.py %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/imdb/_logging.pyc %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/imdb/_logging.pyo -%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/imdb/articles.py -%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/imdb/articles.pyc -%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/imdb/articles.pyo %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/imdb/helpers.py %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/imdb/helpers.pyc %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/imdb/helpers.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/imdb/linguistics.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/imdb/linguistics.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/imdb/linguistics.pyo %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/imdb/locale/__init__.py %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/imdb/locale/__init__.pyc %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/imdb/locale/__init__.pyo @@ -259,7 +259,6 @@ bin/search_person.py %%PORTEXAMPLES%%%%EXAMPLESDIR%%/search_movie.py %%PORTEXAMPLES%%%%EXAMPLESDIR%%/search_person.py %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% -%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% %%PORTDOCS%%@dirrm %%DOCSDIR%%/goodies %%PORTDOCS%%@dirrm %%DOCSDIR%% @dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/imdb/parser/sql