diff options
author | marcus <marcus@FreeBSD.org> | 2003-06-30 04:22:20 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-06-30 04:22:20 +0800 |
commit | 0a35cf76153cec406efc3c8b43425dc7a57f13ac (patch) | |
tree | 2f0740340afd4efbe978c6f8e059c2755c431057 /textproc/meld/Makefile | |
parent | c154ea58b008f068f7558c0e6bc87f603704d95d (diff) | |
download | freebsd-ports-gnome-0a35cf76153cec406efc3c8b43425dc7a57f13ac.tar.gz freebsd-ports-gnome-0a35cf76153cec406efc3c8b43425dc7a57f13ac.tar.zst freebsd-ports-gnome-0a35cf76153cec406efc3c8b43425dc7a57f13ac.zip |
* Update to 0.8.2
* Install under X11BASE
* Install .desktop file
* Compile Python source
* Assign maintainership to submitter
PR: 53739
Submitted by: Rui Lopes <rui@ruilopes.com>
Approved by: Pav Lucistnik <pav@oook.cz> (previous maintainer)
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> |