mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
graphics/py-cairo: clean up
- PYTHON_CMD already contains LOCALBASE - PYTHON is already passed to CONFIGURE_ENV - PREFIX and *FLAGS are redundant - Respect PREFIX != LOCALBASE while stripping [1] PR: 202911 Submitted by: John Hein <z7dr6ut7gs@snkmail.com> Approved by: maintainer timeout (11 months) Approved by: portmgr blanket [1] MFH: 2016Q3
This commit is contained in:
parent
6b4124f7ec
commit
9fb2701b1a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=419081
@ -15,10 +15,6 @@ COMMENT= Python 2 bindings for Cairo
|
||||
|
||||
USES= pkgconfig python:2 shebangfix tar:bzip2 waf
|
||||
USE_GNOME= cairo
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
CONFIGURE_ENV= PYTHON=${LOCALBASE}/bin/${PYTHON_CMD} \
|
||||
PREFIX=${PREFIX}
|
||||
|
||||
SHEBANG_FILES= examples/*.py examples/*/*.py test/*.py
|
||||
|
||||
@ -27,6 +23,6 @@ post-install:
|
||||
-d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}
|
||||
@cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
|
||||
-d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}
|
||||
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cairo/_cairo.so
|
||||
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/cairo/_cairo.so
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user