mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
www/py-bottle-cork: Fix options
Options helpers are ineffective when set after bsd.port.options.mk. Convert the port to options helpers to fix this. Reported by: tobik (in D19553)
This commit is contained in:
parent
d9f71af5af
commit
3d4a17dce1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=495761
@ -2,7 +2,7 @@
|
||||
|
||||
PORTNAME= bottle-cork
|
||||
PORTVERSION= 0.12.0
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= www python
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
@ -24,17 +24,13 @@ PORTEXAMPLES= *
|
||||
|
||||
OPTIONS_DEFINE= SQLITE MONGODB SQLALCHEMY EXAMPLES
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
SQLITE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR}
|
||||
MONGODB_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pymongo>0:databases/pymongo@${PY_FLAVOR}
|
||||
SQLALCHEMY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlalchemy10>0:databases/py-sqlalchemy10@${PY_FLAVOR}
|
||||
|
||||
.if ${PORT_OPTIONS:MEXAMPLES}
|
||||
post-install:
|
||||
post-install-EXAMPLES-on:
|
||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
(cd ${WRKSRC}/examples && \
|
||||
${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user