- Enable stagedir support

- Convert USE_PYTHON -> USES=python
This commit is contained in:
Marcus von Appen 2014-08-16 17:27:02 +00:00
parent f1560cebed
commit 41baefc8a0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=365109
3 changed files with 12 additions and 15 deletions

View file

@ -12,8 +12,7 @@ COMMENT= Provide an easy way to use existing grace-files as a template
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/numarray/__init__.py:${PORTSDIR}/math/py-numarray
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/numarray/__init__.py:${PORTSDIR}/math/py-numarray
USE_PYTHON= yes
USES= gmake tar:bzip2
USES= gmake python tar:bzip2
MAKE_ARGS= PREFIX="${PREFIX}" \
BIN_PREFIX="${PREFIX}/bin" \
LIB_PREFIX="${PREFIX}/lib" \
@ -24,13 +23,10 @@ MAKE_ARGS= PREFIX="${PREFIX}" \
CPPFLAGS="${CXXFLAGS} ${CPPFLAGS}" \
CXX="${CXX}"
ALL_TARGET= all pythonwrap
INSTALL_TARGET= install pythonwrap_install
INSTALL_TARGET= install
INSTALLS_EGGINFO= yes
PYDISTUTILS_PKGNAME= graceTMPL
PYDISTUTILS_EGGINFODIR= ${PYTHON_SITELIBDIR}/graceTMPL
PLIST_SUB+= PYTHON_VER=${PYTHON_VER}
NO_STAGE= yes
post-extract:
@${ECHO_CMD} -n > ${WRKSRC}/Makefile.defs
@ -38,9 +34,9 @@ post-patch:
@${REINPLACE_CMD} -e 's|/gracetmpl\.a|/libgracetmpl.a|g' ${WRKSRC}/gracetmpl-config.in
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/html/* ${DOCSDIR}
.endif
@(cd ${INSTALL_WRKSRC}/python; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py \
install --root=${STAGEDIR} --prefix=${LOCALBASE} -c -O1)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/html/* ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View file

@ -8,10 +8,10 @@
- install -D -m 644 gracetmpl.a $(LIB_PREFIX)/gracetmpl.a
- install -D -m 755 gracetmpldemo $(BIN_PREFIX)/gracetmpldemo
- install -D -m 755 gracetmpl-config $(BIN_PREFIX)/gracetmpl-config
+ ${BSD_INSTALL_DATA} gracetmpl.h $(INC_PREFIX)/gracetmpl.h
+ ${BSD_INSTALL_DATA} gracetmpl.a $(LIB_PREFIX)/libgracetmpl.a
+ ${BSD_INSTALL_PROGRAM} gracetmpldemo $(BIN_PREFIX)/gracetmpldemo
+ ${BSD_INSTALL_SCRIPT} gracetmpl-config $(BIN_PREFIX)/gracetmpl-config
+ ${BSD_INSTALL_DATA} gracetmpl.h $(DESTDIR)$(INC_PREFIX)/gracetmpl.h
+ ${BSD_INSTALL_DATA} gracetmpl.a $(DESTDIR)$(LIB_PREFIX)/libgracetmpl.a
+ ${BSD_INSTALL_PROGRAM} gracetmpldemo $(DESTDIR)$(BIN_PREFIX)/gracetmpldemo
+ ${BSD_INSTALL_SCRIPT} gracetmpl-config $(DESTDIR)$(BIN_PREFIX)/gracetmpl-config
gracetmpl-config: gracetmpl-config.in Makefile.defs
sed -e 's!__PREFIX__!$(PREFIX)!g' \

View file

@ -5,6 +5,7 @@ include/gracetmpl.h
lib/libgracetmpl.a
%%PYTHON_SITELIBDIR%%/graceTMPL/graceTMPL.so
%%PYTHON_SITELIBDIR%%/graceTMPL.pth
%%PYTHON_SITELIBDIR%%/graceTMPL/graceTMPL-0.3.2-py%%PYTHON_VER%%.egg-info
%%PORTDOCS%%%%DOCSDIR%%/annotated.html
%%PORTDOCS%%%%DOCSDIR%%/annotations.html
%%PORTDOCS%%%%DOCSDIR%%/changes.html