From cfbb6a1071583f8de05c309294b738dbbba29778 Mon Sep 17 00:00:00 2001 From: Eygene Ryabinkin Date: Thu, 4 Aug 2011 00:54:51 +0000 Subject: [PATCH] devel/arduino: fix two issues - use realpath instead of 'readlink -f': support of "-f" is the recent addition, so realpath will work in more FreeBSD versions; - add missing "-e" to the REINPLACE_CMD and get rid of .bak file creation. PR: ports/158832 Approved-by: Warren Block (maintainer), garga (mentor) Feature-safe: yes --- devel/arduino/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/devel/arduino/Makefile b/devel/arduino/Makefile index ad20cd6d18ab..8de5dab58306 100644 --- a/devel/arduino/Makefile +++ b/devel/arduino/Makefile @@ -5,7 +5,7 @@ PORTNAME= arduino PORTVERSION= 0022 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel java lang MASTER_SITES= GOOGLE_CODE EXTRACT_SUFX= .tgz @@ -23,9 +23,11 @@ NO_BUILD= yes SUB_FILES= arduino pkg-message SUB_LIST= PORTNAME=${PORTNAME} +REINPLACE_ARGS= -i "" + DESKTOP_ENTRIES= "Arduino" "Arduino IDE" \ ${PREFIX}/${PORTNAME}/reference/img/logo.png \ - "arduino" "Development;IDE;" false + "arduino" "Development;IDE;" "false" .if !defined(NOPORTDOCS) OPTIONS+= REFDOCS "Install the reference documents" on @@ -65,8 +67,8 @@ post-extract: @${RM} ${WRKSRC}/lib/librxtxSerial.so @${LN} -s ${JAVA_HOME}/lib/${ARCH}/librxtxSerial.so ${WRKSRC}/lib/ - @${REINPLACE_CMD} 's|stk500|arduino|g' ${WRKSRC}/hardware/arduino/boards.txt - @${RM} ${WRKSRC}/hardware/arduino/boards.txt.bak + @${REINPLACE_CMD} -e 's|stk500|arduino|g' ${WRKSRC}/hardware/arduino/boards.txt + @${REINPLACE_CMD} -e 's|readlink -f|realpath|g' ${WRKSRC}/arduino post-patch: @${RM} ${WRKSRC}/hardware/arduino/bootloaders/atmega8/*.orig