summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-03-26 00:06:40 +0000
committerSam James <sam@gentoo.org>2022-03-26 00:06:40 +0000
commitdec288a99cd35d4dae9b0312437874627b221fb8 (patch)
treeac44036acac1703f86f762164afd8bd10c0d44cf /dev-embedded
parentsys-apps/pcsc-tools: [QA] fix tc-get* quoting (diff)
downloadgentoo-dec288a99cd35d4dae9b0312437874627b221fb8.tar.gz
gentoo-dec288a99cd35d4dae9b0312437874627b221fb8.tar.bz2
gentoo-dec288a99cd35d4dae9b0312437874627b221fb8.zip
dev-embedded/arduino-listserialportsc: add missing || dies
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-embedded')
-rw-r--r--dev-embedded/arduino-listserialportsc/arduino-listserialportsc-1.4.0.ebuild19
1 files changed, 10 insertions, 9 deletions
diff --git a/dev-embedded/arduino-listserialportsc/arduino-listserialportsc-1.4.0.ebuild b/dev-embedded/arduino-listserialportsc/arduino-listserialportsc-1.4.0.ebuild
index 7a3b5304855c..b9a28eb7e8cd 100644
--- a/dev-embedded/arduino-listserialportsc/arduino-listserialportsc-1.4.0.ebuild
+++ b/dev-embedded/arduino-listserialportsc/arduino-listserialportsc-1.4.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -8,6 +8,7 @@ inherit java-pkg-2 toolchain-funcs
DESCRIPTION="Arduino helper library to list serial ports"
HOMEPAGE="https://github.com/arduino/listSerialPortsC"
SRC_URI="https://github.com/arduino/listSerialPortsC/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
@@ -19,20 +20,20 @@ DEPEND="${RDEPEND}
S="${WORKDIR}/listSerialPortsC-${PV}"
src_compile() {
- CC=$(tc-getCC)
- ${CC} -Wall -O2 ${CPPFLAGS} ${CFLAGS} -c -o main.o main.c
- ${CC} ${CFLAGS} ${LDFLAGS} main.o -lserialport -o listSerialC
+ $(tc-getCC) -O2 -Wall ${CPPFLAGS} ${CFLAGS} -c -o main.o main.c || die
+
+ $(tc-getCC) ${CFLAGS} ${LDFLAGS} main.o -lserialport -o listSerialC || die
- ${CC} \
- -Wall -O2 ${CPPFLAGS} ${CFLAGS} -fPIC \
+ $(tc-getCC) \
+ -O2 -Wall ${CPPFLAGS} ${CFLAGS} -fPIC \
-I$(java-config-2 -o)/include \
-I$(java-config-2 -o)/include/linux \
- -o jnilib.o -c jnilib.c
+ -o jnilib.o -c jnilib.c || die
- ${CC} \
+ $(tc-getCC) \
${CFLAGS} ${LDFLAGS} \
-shared -Wl,-soname,liblistSerialsj.so \
- jnilib.o -lserialport -o liblistSerialsj.so.${PV}
+ jnilib.o -lserialport -o liblistSerialsj.so.${PV} || die
}
src_install() {