mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
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 <wblock@wonkity.com> (maintainer), garga (mentor) Feature-safe: yes
This commit is contained in:
parent
12e3e56ae1
commit
cfbb6a1071
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=278883
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user