ports/154677: [patch] net/unison: add LICENCE and a desktop entry
Boris Samorodov
bsam at FreeBSD.org
Fri Feb 11 10:40:11 UTC 2011
>Number: 154677
>Category: ports
>Synopsis: [patch] net/unison: add LICENCE and a desktop entry
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Fri Feb 11 10:40:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Boris Samorodov
>Release: FreeBSD 9.0-CURRENT i386
>Organization:
InPharmTech, Co.
>Environment:
System: FreeBSD bb.ipt.ru 9.0-CURRENT FreeBSD 9.0-CURRENT #14 r218472: Wed Feb 9 10:24:52 MSK 2011 bsam at bb.ipt.ru:/usr/obj/usr/src/sys/BB i386
>Description:
>How-To-Repeat:
>Fix:
. add LICENCE (GPLv3);
. add a desktop entry;
. bump PORTREVISION.
--- unison.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/net/unison/Makefile,v
retrieving revision 1.28
diff -u -r1.28 Makefile
--- Makefile 11 Feb 2011 08:52:17 -0000 1.28
+++ Makefile 11 Feb 2011 10:15:08 -0000
@@ -7,6 +7,7 @@
PORTNAME= unison
PORTVERSION= 2.32.52
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.cis.upenn.edu/~bcpierce/unison/download/releases/${DISTNAME}/
DISTFILES= ${EXTRACT_ONLY} ${EXTRA_DOCS}
@@ -18,11 +19,14 @@
PLIST_SUB= PORTVERSION=${PORTVERSION}
USE_GMAKE= yes
+WANT_GNOME= yes
MAKE_ARGS= CFLAGS=""
CONFLICTS= unison-devel-[0-9]* unison-nox11-[0-9]*
MAKE_JOBS_UNSAFE= yes
+LICENCE= GPLv3
+
.include <bsd.port.pre.mk>
.if !defined(NOPORTDOCS)
@@ -43,6 +47,8 @@
RUN_DEPENDS+= lablgtk2:${PORTSDIR}/x11-toolkits/ocaml-lablgtk2
PATCH_DEPENDS+= ${BUILD_DEPENDS}
CONFLICTS+= ocaml-nox11*
+USE_GNOME= desktopfileutils
+SUB_FILES+= ${PORTNAME}.desktop
.else
MAKE_ARGS+= UISTYLE=text
PLIST_SUB+= TEXT="@comment "
@@ -68,6 +74,8 @@
.endif
.if defined(WITH_GTK2)
@${INSTALL_PROGRAM} ${WRKSRC}/unison-text ${PREFIX}/bin
+ @${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${DESKTOPDIR}
+ @-update-desktop-database > /dev/null
@${CAT} ${PKGMESSAGE}
.else
@${CAT} ${PKGMESSAGE}.nox11
Index: pkg-plist
===================================================================
RCS file: /home/pcvs/ports/net/unison/pkg-plist,v
retrieving revision 1.3
diff -u -r1.3 pkg-plist
--- pkg-plist 26 Jan 2005 17:31:57 -0000 1.3
+++ pkg-plist 11 Feb 2011 10:15:08 -0000
@@ -1,4 +1,5 @@
bin/unison
+%%TEXT%%share/applications/unison.desktop
%%TEXT%%bin/unison-text
%%PORTDOCS%%%%DOCSDIR%%/BUGS.txt
%%PORTDOCS%%%%DOCSDIR%%/NEWS
@@ -7,3 +8,6 @@
%%PORTDOCS%%%%DOCSDIR%%/unison-%%PORTVERSION%%-manual.pdf
%%PORTDOCS%%%%DOCSDIR%%/unison-%%PORTVERSION%%-manual.ps
%%PORTDOCS%%@dirrm %%DOCSDIR%%
+%%TEXT%%@dirrmtry share/applications
+%%TEXT%%@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || :
+%%TEXT%%@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || :
Index: files/unison.desktop.in
===================================================================
RCS file: files/unison.desktop.in
diff -N files/unison.desktop.in
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/unison.desktop.in 11 Feb 2011 10:15:08 -0000
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Unison
+GenericName=File-synchronization tool
+Type=Application
+Terminal=false
+StartupNotify=true
+Categories=GTK;Utility;
+Exec=unison
+Comment=Synchronize files (directories) over different disks (hosts)
+Comment[ru]=СинÑ
ÑонизаÑÐ¸Ñ Ñайлов (каÑалогов) на неÑколÑкиÑ
диÑкаÑ
(компÑÑÑеÑаÑ
)
--- unison.diff ends here ---
--
WBR, bsam
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list