diff options
author | Nicola Vitale <nivit@FreeBSD.org> | 2009-01-13 14:48:36 +0000 |
---|---|---|
committer | Nicola Vitale <nivit@FreeBSD.org> | 2009-01-13 14:48:36 +0000 |
commit | 6b75bfe2f0b4e1ff7bea99eb1ef33772ba8265ba (patch) | |
tree | 3eeb2fa76cb7b0b1e5995df9cc215782ce816755 /databases/py-sqlalchemy/Makefile | |
parent | e70e276b67263ab48ac604e515df40ec0b4ca0bf (diff) | |
download | ports-6b75bfe2f0b4e1ff7bea99eb1ef33772ba8265ba.tar.gz ports-6b75bfe2f0b4e1ff7bea99eb1ef33772ba8265ba.zip |
Notes
Diffstat (limited to 'databases/py-sqlalchemy/Makefile')
-rw-r--r-- | databases/py-sqlalchemy/Makefile | 34 |
1 files changed, 10 insertions, 24 deletions
diff --git a/databases/py-sqlalchemy/Makefile b/databases/py-sqlalchemy/Makefile index 17f42f299fb0..7a149b6be736 100644 --- a/databases/py-sqlalchemy/Makefile +++ b/databases/py-sqlalchemy/Makefile @@ -6,11 +6,10 @@ # PORTNAME= sqlalchemy -PORTVERSION= 0.4.8 +PORTVERSION= 0.5.0 CATEGORIES= databases python MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ - http://pypi.python.org/packages/source/S/SQLAlchemy/ \ - http://dryice.name/computer/FreeBSD/distfiles/ + CHEESESHOP MASTER_SITE_SUBDIR= sqlalchemy PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= SQLAlchemy-${PORTVERSION} @@ -19,17 +18,10 @@ MAINTAINER= nivit@FreeBSD.org COMMENT= A Python SQL toolkit and Object Relational Mapper USE_PYTHON= 2.3+ -PLIST_SUB+= PORTVERSION=${PORTVERSION} \ - PYTHONVERSION=${_PYTHON_VERSION} \ - EGG="SQLAlchemy==${PORTVERSION}" -USE_PYDISTUTILS= yes +USE_PYDISTUTILS= easy_install PYDISTUTILS_PKGNAME= SQLAlchemy PYDISTUTILS_NOEGGINFO= yes -BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools -# make sure we have it @deinstall time to remove the egg -RUN_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools - # bypass infrastructure bug OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options @@ -40,13 +32,9 @@ OPTIONS+= POSTGRE "support PostGreSQL" on OPTIONS+= SQLITE "support Sqlite" on .if !defined(NOPORTDOCS) -PORTDOCS= *.html *.css *.js +AL_PORTDOCS= *.html *.js .endif -PORTEXAMPLES= adjacencytree association collections \ - derived_attributes elementtree graphs pickle polymorph \ - poly_assoc sharding vertical - .include <bsd.port.pre.mk> .if defined(WITH_FIREBIRD) @@ -58,32 +46,30 @@ RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pymssql.py:${PORTSDIR}/databases/py-mssql .endif .if !defined(WITHOUT_MYSQL) -RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/MySQLdb/__init__.py:${PORTSDIR}/databases/py-MySQLdb +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:${PORTSDIR}/databases/py-MySQLdb .endif .if !defined(WITHOUT_POSTGRE) -RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psycopg2/__init__.py:${PORTSDIR}/databases/py-psycopg2 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}psycopg2>=2.0.8:${PORTSDIR}/databases/py-psycopg2 .endif .if !defined(WITHOUT_SQLITE) RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite23 .endif -PYALCHEMY_EGG= SQLAlchemy-${PORTVERSION}-py${PYTHON_VERSION:S/^python//}.egg - post-install: .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} -.for i in ${PORTDOCS} +.for i in ${AL_PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR} .endfor + ${MKDIR} ${DOCSDIR}/reference + @cd ${WRKSRC}/doc/reference && ${COPYTREE_SHARE} . ${DOCSDIR}/reference .endif .if !defined(NOPORTEXAMPLES) ${MKDIR} ${EXAMPLESDIR} -.for i in ${PORTEXAMPLES} - ${CP} -r ${WRKSRC}/examples/${i} ${EXAMPLESDIR} -.endfor + @cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${EXAMPLESDIR} .endif .include <bsd.port.post.mk> |