909e43d014
Changes: - Git support now recognises conflicts when re-applying the stash - double clicking on text can now select full words with non-English characters - search dialog is now automatically populated with the currently selected text - fixed a bug that prevented opening files with non-ASCII characters in their path - added Oleg Pakhtusov's Russian translation - added Kang Bundo's Korean translation - pane headers tooltips - Shift-ScrollWheel can now be used to scroll horizontally PR: ports/151631 Submitted by: Marco Broder <marco.broeder@gmx.eu> (maintainer) Approved by: pgollucci (mentor, implicit)
136 lines
3.5 KiB
Makefile
136 lines
3.5 KiB
Makefile
# Ports collection makefile for: diffuse
|
|
# Date created: 2009-02-22
|
|
# Whom: Marco Broeder <marco.broeder@gmx.eu>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= diffuse
|
|
PORTVERSION= 0.4.4
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= marco.broeder@gmx.eu
|
|
COMMENT= A graphical N-way diff and merge tool written in python
|
|
|
|
NO_BUILD= yes
|
|
|
|
USE_PYTHON= yes
|
|
USE_GNOME= pygtk2
|
|
USE_BZIP2= yes
|
|
|
|
MANLANG= "" ru
|
|
MAN1= diffuse.1
|
|
|
|
OPTIONS= MENU "Add desktop menu (needs desktop-file-utils)" on \
|
|
OMF "Install OMF manual (needs scrollkeeper)" on \
|
|
NLS "Install some translations (work in progress)" on
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.ifndef (NOPORTDOCS)
|
|
PORTDOCS= AUTHORS COPYING ChangeLog README README_ru
|
|
.endif
|
|
|
|
.ifndef (NOPORTDATA)
|
|
PORTDATA= syntax
|
|
.endif
|
|
|
|
.ifdef (WITH_MENU)
|
|
PLIST_SUB+= MENU=""
|
|
USE_GNOME+= desktopfileutils
|
|
.else
|
|
PLIST_SUB+= MENU="@comment "
|
|
.endif
|
|
|
|
.ifdef (WITH_OMF)
|
|
PLIST_SUB+= OMF=""
|
|
RUN_DEPENDS+= scrollkeeper-update:${PORTSDIR}/textproc/scrollkeeper
|
|
INSTALLS_OMF= yes
|
|
.else
|
|
PLIST_SUB+= OMF="@comment "
|
|
.endif
|
|
|
|
.ifndef (WITHOUT_NLS)
|
|
PLIST_SUB+= NLS=""
|
|
USE_GETTEXT= yes
|
|
TRANSLATIONS= de es ja ko ru zh_CN
|
|
.else
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
.ifndef (NOPORTDATA)
|
|
${REINPLACE_CMD} -e 's|../usr|${PREFIX}|g; s|/etc|${PREFIX}/etc|g' \
|
|
${WRKSRC}/src/etc/${PORTNAME}rc
|
|
.else
|
|
${REINPLACE_CMD} -e 's|import ../usr|\#(Disabled by NOPORTDATA !) \
|
|
import ${PREFIX}|g; s|/etc|${PREFIX}/etc|g' \
|
|
${WRKSRC}/src/etc/${PORTNAME}rc
|
|
.endif
|
|
|
|
${REINPLACE_CMD} -e 's|../../etc|${PREFIX}/etc|g' \
|
|
${WRKSRC}/src/usr/bin/${PORTNAME}
|
|
${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g' \
|
|
${WRKSRC}/src/usr/share/omf/${PORTNAME}/*.omf \
|
|
${WRKSRC}/src/usr/share/gnome/help/${PORTNAME}/*/*.xml
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/src/usr/bin/${PORTNAME} \
|
|
${PREFIX}/bin/
|
|
${INSTALL_DATA} ${WRKSRC}/src/etc/${PORTNAME}rc ${PREFIX}/etc/
|
|
${INSTALL_MAN} ${WRKSRC}/src/usr/share/man/man1/*.1 \
|
|
${MANPREFIX}/man/man1/
|
|
${MKDIR} ${MANPREFIX}/man/ru/man1
|
|
${INSTALL_MAN} ${WRKSRC}/src/usr/share/man/ru/man1/*.1 \
|
|
${MANPREFIX}/man/ru/man1/
|
|
|
|
post-install:
|
|
.ifndef (NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
for n in ${PORTDOCS}; do \
|
|
${INSTALL_MAN} ${WRKSRC}/$${n} ${DOCSDIR}/; \
|
|
done
|
|
.endif
|
|
|
|
.ifndef (NOPORTDATA)
|
|
${MKDIR} ${DATADIR}/syntax
|
|
(cd ${WRKSRC}/src/usr/share/${PORTNAME}/ && \
|
|
${COPYTREE_SHARE} \* ${DATADIR}/)
|
|
.endif
|
|
|
|
.ifndef (WITHOUT_NLS)
|
|
for x in ${TRANSLATIONS}; do \
|
|
${MKDIR} ${PREFIX}/share/locale/$${x}/LC_MESSAGES; \
|
|
${MKDIR} ${WRKSRC}/translations/$${x}; \
|
|
${LOCALBASE}/bin/msgfmt -c ${WRKSRC}/translations/$${x}.po \
|
|
-o ${WRKSRC}/translations/$${x}/${PORTNAME}.mo; \
|
|
${INSTALL_DATA} ${WRKSRC}/translations/$${x}/*.mo \
|
|
${PREFIX}/share/locale/$${x}/LC_MESSAGES/; \
|
|
done
|
|
.endif
|
|
|
|
.ifdef (WITH_OMF)
|
|
${MKDIR} ${PREFIX}/share/gnome/help/${PORTNAME}/C
|
|
${INSTALL_DATA} ${WRKSRC}/src/usr/share/gnome/help/${PORTNAME}/C/*.xml \
|
|
${PREFIX}/share/gnome/help/${PORTNAME}/C/
|
|
${MKDIR} ${PREFIX}/share/gnome/help/${PORTNAME}/ru
|
|
${INSTALL_DATA} ${WRKSRC}/src/usr/share/gnome/help/${PORTNAME}/ru/*.xml \
|
|
${PREFIX}/share/gnome/help/${PORTNAME}/ru/
|
|
${MKDIR} ${PREFIX}/share/omf/${PORTNAME}
|
|
${INSTALL_DATA} ${WRKSRC}/src/usr/share/omf/${PORTNAME}/*.omf \
|
|
${PREFIX}/share/omf/${PORTNAME}/
|
|
${LOCALBASE}/bin/scrollkeeper-update -q
|
|
.endif
|
|
|
|
.ifdef (WITH_MENU)
|
|
${MKDIR} ${PREFIX}/share/pixmaps
|
|
${INSTALL_DATA} ${WRKSRC}/src/usr/share/pixmaps/${PORTNAME}.png \
|
|
${PREFIX}/share/pixmaps/
|
|
${MKDIR} ${DESKTOPDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/src/usr/share/applications/*.desktop \
|
|
${DESKTOPDIR}/
|
|
${LOCALBASE}/bin/update-desktop-database -q
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|