mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Enable stagedir support
- Convert USE_PYTHON -> USES=python
This commit is contained in:
parent
f1560cebed
commit
41baefc8a0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=365109
@ -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>
|
||||
|
@ -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' \
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user