diff options
author | pawel <pawel@FreeBSD.org> | 2014-04-07 02:56:20 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2014-04-07 02:56:20 +0800 |
commit | d053378e9da5015b973f52d86a550ac43eb8dad5 (patch) | |
tree | 798a99043d55c90dba9fc8cf4144929bc73cf4ad /devel/wxGlade | |
parent | 341d17248e32cfd698a8522f9c2d00d6d5ded3c2 (diff) | |
download | freebsd-ports-gnome-d053378e9da5015b973f52d86a550ac43eb8dad5.tar.gz freebsd-ports-gnome-d053378e9da5015b973f52d86a550ac43eb8dad5.tar.zst freebsd-ports-gnome-d053378e9da5015b973f52d86a550ac43eb8dad5.zip |
Add staging support
Diffstat (limited to 'devel/wxGlade')
-rw-r--r-- | devel/wxGlade/Makefile | 54 | ||||
-rw-r--r-- | devel/wxGlade/pkg-plist | 1 |
2 files changed, 23 insertions, 32 deletions
diff --git a/devel/wxGlade/Makefile b/devel/wxGlade/Makefile index 2117d73cbb5b..96dc7aa5bd3c 100644 --- a/devel/wxGlade/Makefile +++ b/devel/wxGlade/Makefile @@ -14,21 +14,16 @@ COMMENT= GUI builder for wxPython/wxWidgets written in Python LICENSE= MIT LICENSE_FILE= ${WRKSRC}/license.txt -OPTIONS_DEFINE= DOCS - USE_PYTHON= yes # This can be set back to 2.6+ once this port moves to version 0.6.9, # cf. PR185230. USE_WX= 2.8+ WX_COMPS= python -MAN1= wxglade.1 - DESKTOP_ENTRIES="wxGlade" "" "${PYTHON_SITELIBDIR}/wxglade/icons/icon.xpm" \ "${PORTNAME}" "" true -NO_STAGE= yes -.include <bsd.port.options.mk> +OPTIONS_DEFINE= DOCS post-patch: @${REINPLACE_CMD} -e \ @@ -40,31 +35,26 @@ do-build: "$$@"') > ${WRKDIR}/${PORTNAME} do-install: - ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/docs/man/wxglade.1 ${MAN1PREFIX}/man/man1 - @${MKDIR} ${PYTHON_SITELIBDIR}/${PORTNAME} - ${INSTALL_DATA} ${WRKSRC}/*.py ${PYTHON_SITELIBDIR}/${PORTNAME} -.for f in codegen edit_sizers icons res widgets - @(cd ${WRKSRC} \ - && ${COPYTREE_SHARE} ${f} ${PYTHON_SITELIBDIR}/${PORTNAME}) -.endfor - @${PYTHON_CMD} -m compileall ${PYTHON_SITELIBDIR}/${PORTNAME} -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/epydoc.conf ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/docs/man/*.xml ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/docs/src/*.xml ${DOCSDIR} - @${MKDIR} ${DOCSDIR}/doc - ${INSTALL_DATA} ${WRKSRC}/docs/*.html ${DOCSDIR}/doc - ${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${DOCSDIR}/doc - @${MKDIR} ${DOCSDIR}/doc/html - ${INSTALL_DATA} ${WRKSRC}/docs/html/*.* ${DOCSDIR}/doc/html - @${MKDIR} ${DOCSDIR}/doc/img - ${INSTALL_DATA} ${WRKSRC}/docs/img/*.* ${DOCSDIR}/doc/img - @${MKDIR} ${DOCSDIR}/doc/pdf - ${INSTALL_DATA} ${WRKSRC}/docs/pdf/*.pdf ${DOCSDIR}/doc/pdf - @${LN} -sf ${DOCSDIR} ${PYTHON_SITELIBDIR}/${PORTNAME}/docs -.endif + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/docs/man/wxglade.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 + @${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/*.py ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME} + (cd ${WRKSRC} && ${COPYTREE_SHARE} "codegen edit_sizers icons res widgets" \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}) + @(cd ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME} && \ + ${PYTHON_CMD} -m compileall .) + @${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC} && ${INSTALL_DATA} epydoc.conf *.txt docs/man/*.xml \ + docs/src/*.xml ${STAGEDIR}${DOCSDIR}) + @${MKDIR} ${STAGEDIR}${DOCSDIR}/doc + ${INSTALL_DATA} ${WRKSRC}/docs/*.html ${STAGEDIR}${DOCSDIR}/doc + ${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${STAGEDIR}${DOCSDIR}/doc + @${MKDIR} ${STAGEDIR}${DOCSDIR}/doc/html + ${INSTALL_DATA} ${WRKSRC}/docs/html/*.* ${STAGEDIR}${DOCSDIR}/doc/html + @${MKDIR} ${STAGEDIR}${DOCSDIR}/doc/img + ${INSTALL_DATA} ${WRKSRC}/docs/img/*.* ${STAGEDIR}${DOCSDIR}/doc/img + @${MKDIR} ${STAGEDIR}${DOCSDIR}/doc/pdf + ${INSTALL_DATA} ${WRKSRC}/docs/pdf/*.pdf ${STAGEDIR}${DOCSDIR}/doc/pdf + @${LN} -sf ${DOCSDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/docs .include <bsd.port.mk> diff --git a/devel/wxGlade/pkg-plist b/devel/wxGlade/pkg-plist index fc2e7fcb255b..a5abadc8d16e 100644 --- a/devel/wxGlade/pkg-plist +++ b/devel/wxGlade/pkg-plist @@ -481,6 +481,7 @@ bin/wxglade %%PYTHON_SITELIBDIR%%/wxglade/xml_parse.pyc %%PYTHON_SITELIBDIR%%/wxglade/xrc2wxg.py %%PYTHON_SITELIBDIR%%/wxglade/xrc2wxg.pyc +man/man1/wxglade.1.gz %%PORTDOCS%%%%DOCSDIR%%/CHANGES.txt %%PORTDOCS%%%%DOCSDIR%%/NEWS.txt %%PORTDOCS%%%%DOCSDIR%%/README.txt |