diff options
Diffstat (limited to 'dev-embedded/arduino-listserialportsc/arduino-listserialportsc-1.4.0.ebuild')
-rw-r--r-- | dev-embedded/arduino-listserialportsc/arduino-listserialportsc-1.4.0.ebuild | 19 |
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() { |