diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-06-29 20:22:20 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-06-29 20:22:20 +0000 |
commit | 0615b9517b9d3343795c9245309973f7074b97f1 (patch) | |
tree | 58c76894ada00be480fada3b7deb41842a94e851 /textproc/meld/Makefile | |
parent | 457cbb6d9dd352f9bee1cac1ff49fe4ec5569d2c (diff) | |
download | ports-0615b9517b9d3343795c9245309973f7074b97f1.tar.gz ports-0615b9517b9d3343795c9245309973f7074b97f1.zip |
Notes
Diffstat (limited to 'textproc/meld/Makefile')
-rw-r--r-- | textproc/meld/Makefile | 47 |
1 files changed, 28 insertions, 19 deletions
diff --git a/textproc/meld/Makefile b/textproc/meld/Makefile index ab2cd49fe267..11766c741322 100644 --- a/textproc/meld/Makefile +++ b/textproc/meld/Makefile @@ -6,40 +6,49 @@ # PORTNAME= meld -PORTVERSION= 0.7.1 +PORTVERSION= 0.8.2 CATEGORIES= textproc devel python MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= meld EXTRACT_SUFX= .tgz -MAINTAINER= pav@oook.cz +MAINTAINER= rui@ruilopes.com COMMENT= GNOME 2 visual diff and merge tool RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gnome/__init__.py:${PORTSDIR}/x11-toolkits/py-gnome2 USE_PYTHON= yes +USE_X_PREFIX= yes NO_BUILD= yes USE_REINPLACE= yes post-patch: - @${REINPLACE_CMD} -e 's|os.path.dirname(sys.argv\[0\])|"${PYTHON_SITELIBDIR}/meldapp"|' ${WRKSRC}/misc.py - @${REINPLACE_CMD} -e 's|/"+os.path.abspath(misc.appdir("manual/index.html") )|${PREFIX}/share/doc/meld/index.html"|' ${WRKSRC}/meldapp.py - @${REINPLACE_CMD} \ - -e 's|/usr/share/pixmaps|${X11BASE}/share/gnome/pixmaps|' \ - ${WRKSRC}/cvsview.py + @${REINPLACE_CMD} -e 's|os.path.dirname(sys.argv\[0\])|"${INSTALLDIR}"|' ${WRKSRC}/misc.py + @${REINPLACE_CMD} -e 's|/"+os.path.abspath(misc.appdir("manual/index.html") )|${DOCSDIR}/index.html"|' ${WRKSRC}/meldapp.py + @${REINPLACE_CMD} -e 's|^Path=.*$$|Icon=${INSTALLDIR}/glade2/pixmaps/icon.png|' ${WRKSRC}/meld.desktop +INSTALLDIR= ${PREFIX}/share/meld do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/meld ${PREFIX}/bin - ${ECHO} meldapp > ${PYTHON_SITELIBDIR}/meldapp.pth - ${MKDIR} ${PYTHON_SITELIBDIR}/meldapp - ${INSTALL_DATA} ${WRKSRC}/*.py ${PYTHON_SITELIBDIR}/meldapp - ${MKDIR} ${PYTHON_SITELIBDIR}/meldapp/glade2 - ${INSTALL_DATA} ${WRKSRC}/glade2/*.glade* ${PYTHON_SITELIBDIR}/meldapp/glade2 - ${MKDIR} ${PYTHON_SITELIBDIR}/meldapp/glade2/pixmaps - ${INSTALL_DATA} ${WRKSRC}/glade2/pixmaps/*.png ${PYTHON_SITELIBDIR}/meldapp/glade2/pixmaps - ${INSTALL_DATA} ${WRKSRC}/glade2/pixmaps/*.xpm ${PYTHON_SITELIBDIR}/meldapp/glade2/pixmaps - ${MKDIR} ${PREFIX}/share/doc/meld - ${INSTALL_DATA} ${WRKSRC}/manual/*.html ${PREFIX}/share/doc/meld - ${INSTALL_DATA} ${WRKSRC}/manual/*.css ${PREFIX}/share/doc/meld + ${MKDIR} ${INSTALLDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/meld ${INSTALLDIR}/meld.py + ${LN} -sf ${INSTALLDIR}/meld.py ${PREFIX}/bin/meld + ${INSTALL_DATA} ${WRKSRC}/meld.desktop ${PREFIX}/share/gnome/applications + ${INSTALL_DATA} ${WRKSRC}/*.py ${INSTALLDIR} + ${MKDIR} ${INSTALLDIR}/glade2 + ${INSTALL_DATA} ${WRKSRC}/glade2/*.glade* ${INSTALLDIR}/glade2 + ${MKDIR} ${INSTALLDIR}/glade2/pixmaps + ${INSTALL_DATA} ${WRKSRC}/glade2/pixmaps/*.png ${INSTALLDIR}/glade2/pixmaps + ${INSTALL_DATA} ${WRKSRC}/glade2/pixmaps/*.xpm ${INSTALLDIR}/glade2/pixmaps +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/manual/*.html ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/manual/*.css ${DOCSDIR} +.endif + +post-install: + @${ECHO_CMD} 'Compiling files...' + @(cd ${INSTALLDIR} && \ + ${PYTHON_CMD} -c "import compileall; compileall.compile_dir('.', 0)" && \ + ${PYTHON_CMD} -O -c "import compileall; compileall.compile_dir('.', 0)") .include <bsd.port.mk> |