Skip to content

Commit

Permalink
arduino-cli: New port
Browse files Browse the repository at this point in the history
Version: 0.18.1
  • Loading branch information
judaew authored and cjones051073 committed Apr 16, 2021
1 parent 76f8edd commit 059db2c
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions devel/arduino-cli/Portfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup golang 1.0

go.setup github.com/arduino/arduino-cli 0.18.1
revision 0

categories devel electronics
license GPL-3
maintainers {outlook.de:judaew @judaew} openmaintainer

description Arduino command line tool
long_description \
Arduino CLI is an all-in-one solution that provides Boards/Library \
Managers, sketch builder, board detection, uploader, and many other tools \
needed to use any Arduino compatible board and platform.
homepage https://arduino.github.io/arduino-cli

checksums rmd160 0a2c4e9f47a60ae6360838ecb2fb7a0b9c548930 \
sha256 421230a02461ca5917e321fe638ec32a1792b1d2b65e875844d4417676f35367 \
size 6894716

set date_build [clock format [clock seconds] -format %Y-%m-%d]

# FIXME: This port currently can't be built without allowing go mod to fetch
build.env-delete GOPROXY=off GO111MODULE=off

build.pre_args -ldflags \
\'-X ${go.package}/version.versionString=${version} \
-X ${go.package}/version.commit=macports-build \
-X ${go.package}/version.date=${date_build}\'

destroot {
xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
}

0 comments on commit 059db2c

Please sign in to comment.