aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fm/doublecmd
diff options
context:
space:
mode:
authorrakuco <rakuco@FreeBSD.org>2013-06-10 02:10:45 +0800
committerrakuco <rakuco@FreeBSD.org>2013-06-10 02:10:45 +0800
commitf014c68fa209979b385fa3ee5a53f039ae9fffbc (patch)
treef4824dfb5e6994e2620c16bb9bbdd6d4012b1f8b /x11-fm/doublecmd
parenta5e38dd2fa990b747a778e6bcf127785435a6ea7 (diff)
downloadfreebsd-ports-gnome-f014c68fa209979b385fa3ee5a53f039ae9fffbc.tar.gz
freebsd-ports-gnome-f014c68fa209979b385fa3ee5a53f039ae9fffbc.tar.zst
freebsd-ports-gnome-f014c68fa209979b385fa3ee5a53f039ae9fffbc.zip
- Fixed desktop file's paths (reported by Scott Sealy)
- Fixed 'update-desktop-database not found' error - Added license information PR: ports/179231 Submitted by: BeƱat Gonzalez Etxepare <bbtruk@users.sourceforge.net> (maintainer)
Diffstat (limited to 'x11-fm/doublecmd')
-rw-r--r--x11-fm/doublecmd/Makefile12
-rw-r--r--x11-fm/doublecmd/files/patch-install-linux-doublecmd.desktop13
2 files changed, 21 insertions, 4 deletions
diff --git a/x11-fm/doublecmd/Makefile b/x11-fm/doublecmd/Makefile
index 16c478295610..17ee08fd2f27 100644
--- a/x11-fm/doublecmd/Makefile
+++ b/x11-fm/doublecmd/Makefile
@@ -3,7 +3,7 @@
PORTNAME= doublecmd
PORTVERSION= 0.5.4
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= x11-fm
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}/Double%20Commander%20Source
@@ -13,6 +13,8 @@ DISTFILES= ${PORTNAME}-${PORTVERSION}-src.tar.gz ${PORTNAME}-help-0.5.1-src.tar.
MAINTAINER= bbtruk@users.sourceforge.net
COMMENT= Total Commander like file manager for the X Window System
+LICENSE= GPLv2
+
BUILD_DEPENDS= lazbuild:${PORTSDIR}/editors/lazarus \
fpcres:${PORTSDIR}/lang/fpc-utils
@@ -45,7 +47,7 @@ OPTIONS_DEFAULT= GTK2
.if ${PORT_OPTIONS:MGTK2}
USE_FPC+= gtk2
-USE_GNOME= gtk20 gdkpixbuf
+USE_GNOME+= gtk20 gdkpixbuf
LCL_PLATFORM= gtk2
BUILD_DEPENDS+= ${LOCALBASE}/share/lazarus/lcl/units/${BUILDNAME}/${LCL_PLATFORM}/interfaces.ppu:${PORTSDIR}/editors/lazarus-lcl-gtk2
.endif
@@ -66,6 +68,8 @@ post-patch:
@${REINPLACE_CMD} -e 's|%%DOCSDIR%%|${DOCSDIR}|g' ${WRKSRC}/src/dmhelpmanager.pas
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' -e 's|%%DATADIR%%|${DATADIR}|g' \
${WRKSRC}/src/uGlobsPaths.pas
+ @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' -e 's|%%DATADIR%%|${DATADIR}|g' \
+ ${WRKSRC}/install/linux/doublecmd.desktop
@${REINPLACE_CMD} -e 's|.GetSize|.Size|g' ${WRKSRC}/src/platform/uClipboard.pas
@${REINPLACE_CMD} -e '176d' ${WRKSRC}/src/uxmlconfig.pas
@@ -81,7 +85,7 @@ post-build:
pre-install:
@${RM} -f ${PLIST}
-.for FILE in %%DATADIR%%/doublecmd.ext.example \
+.for FILE in %%DATADIR%%/doublecmd.png %%DATADIR%%/doublecmd.ext.example \
%%DATADIR%%/editor.col %%DATADIR%%/twilight.col %%DATADIR%%/pixmaps.txt \
%%DATADIR%%/default.bar %%DATADIR%%/multiarc.ini bin/doublecmd \
share/applications/doublecmd.desktop
@@ -129,7 +133,7 @@ do-install:
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/{}" \;
.endif
-.for FILE in doublecmd.ext.example editor.col twilight.col pixmaps.txt default.bar multiarc.ini
+.for FILE in doublecmd.png doublecmd.ext.example editor.col twilight.col pixmaps.txt default.bar multiarc.ini
${INSTALL_DATA} ${WRKSRC}/${FILE} ${DATADIR}
.endfor
${INSTALL_PROGRAM} ${WRKSRC}/doublecmd ${PREFIX}/bin/${PORTNAME}
diff --git a/x11-fm/doublecmd/files/patch-install-linux-doublecmd.desktop b/x11-fm/doublecmd/files/patch-install-linux-doublecmd.desktop
new file mode 100644
index 000000000000..489851ed10b2
--- /dev/null
+++ b/x11-fm/doublecmd/files/patch-install-linux-doublecmd.desktop
@@ -0,0 +1,13 @@
+--- install/linux/doublecmd.desktop 2010-06-13 10:24:46.000000000 +0200
++++ install/linux/doublecmd.desktop 2013-06-02 01:02:42.000000000 +0200
+@@ -1,8 +1,8 @@
+ [Desktop Entry]
+ Name=Double Commander
+ Comment=Double Commander is a cross platform open source file manager with two panels side by side.
+-Exec=/usr/bin/doublecmd
++Exec=%%PREFIX%%/bin/doublecmd
+ Terminal=false
+ Type=Application
+-Icon=/usr/share/pixmaps/doublecmd.png
++Icon=%%DATADIR%%/doublecmd.png
+ Categories=Application;Utility;FileManager;