Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Oct 2016 22:18:28 +0000 (UTC)
From:      Boris Samorodov <bsam@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r424925 - head/devel/arduino16
Message-ID:  <201610292218.u9TMISZE007343@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bsam
Date: Sat Oct 29 22:18:28 2016
New Revision: 424925
URL: https://svnweb.freebsd.org/changeset/ports/424925

Log:
  devel/arduino16: Add desktop and fixmap files.
  
  PR:		213901
  Submitted by:	bsam (me)
  Approved by:	Kyle Evans <bsdports@kyle-evans.net> (maintainer)

Modified:
  head/devel/arduino16/Makefile
  head/devel/arduino16/pkg-plist

Modified: head/devel/arduino16/Makefile
==============================================================================
--- head/devel/arduino16/Makefile	Sat Oct 29 18:16:45 2016	(r424924)
+++ head/devel/arduino16/Makefile	Sat Oct 29 22:18:28 2016	(r424925)
@@ -2,7 +2,7 @@
 
 PORTNAME=		arduino
 PORTVERSION=		1.6.12
-PORTREVISION=		3
+PORTREVISION=		4
 CATEGORIES=		devel java
 PKGNAMESUFFIX=		16
 DIST_SUBDIR=		${PORTNAME}
@@ -44,6 +44,7 @@ GH_PROJECT=		Arduino
 GH_TUPLE+=		${BUNDLE_GH_ACCOUNT}:${blib}/linux/work/libraries/${blib:C/\:.*//}
 .endfor
 
+USES=			desktop-file-utils
 LIB_DIRS+=		${LOCALBASE}/lib ${LOCALBASE}/lib/jni
 WRKSRC_SUBDIR=		build
 PATCH_WRKSRC=		${WRKSRC}/../
@@ -88,6 +89,8 @@ post-extract:
 
 post-patch:
 	${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${PATCH_WRKSRC}/arduino-core/src/processing/app/BaseNoGui.java
+	${REINPLACE_CMD} -e 's:<BINARY_LOCATION>:arduino:' -e 's:<ICON_NAME>:arduino:' \
+		${PATCH_WRKSRC}/build/linux/dist/desktop.template
 
 do-install:
 	${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}
@@ -101,5 +104,7 @@ do-install:
 	${INSTALL_SCRIPT} ${BUILD_DIR}/arduino ${STAGEDIR}${PREFIX}/${PORTNAME}
 	${LN} -s ../${PORTNAME}/arduino ${STAGEDIR}${PREFIX}/bin/arduino
 	${LN} -s ../bin/arduino-builder ${STAGEDIR}${PREFIX}/arduino/arduino-builder
+	${CP} ${WRKSRC}/shared/icons/arduino.xpm ${STAGEDIR}/${PREFIX}/share/pixmaps
+	${CP} ${PATCH_WRKSRC}/build/linux/dist/desktop.template ${STAGEDIR}/${PREFIX}/share/applications/arduino.desktop
 
 .include <bsd.port.mk>

Modified: head/devel/arduino16/pkg-plist
==============================================================================
--- head/devel/arduino16/pkg-plist	Sat Oct 29 18:16:45 2016	(r424924)
+++ head/devel/arduino16/pkg-plist	Sat Oct 29 22:18:28 2016	(r424925)
@@ -2053,3 +2053,5 @@ arduino/tools/WiFi101/src/cc/arduino/plu
 arduino/tools/WiFi101/src/cc/arduino/plugins/wifi101/flashers/java/SSLCertDownloader.java
 arduino/tools/howto.txt
 bin/arduino
+share/applications/arduino.desktop
+share/pixmaps/arduino.xpm



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610292218.u9TMISZE007343>