diff options
author | Viorel Munteanu <ceamac@gentoo.org> | 2023-07-21 10:13:33 +0300 |
---|---|---|
committer | Viorel Munteanu <ceamac@gentoo.org> | 2023-07-21 10:13:57 +0300 |
commit | 28a55b14753cc864519d17042a9743691732012e (patch) | |
tree | 01550670cb9b4c2765d8a19f20cdb17b961abc57 /dev-embedded/arduino-listserialportsc | |
parent | dev-python/txredisapi: add 1.4.10 (diff) | |
download | gentoo-28a55b14753cc864519d17042a9743691732012e.tar.gz gentoo-28a55b14753cc864519d17042a9743691732012e.tar.bz2 gentoo-28a55b14753cc864519d17042a9743691732012e.zip |
dev-embedded/arduino-listserialportsc: update EAPI 6 -> 8
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat (limited to 'dev-embedded/arduino-listserialportsc')
-rw-r--r-- | dev-embedded/arduino-listserialportsc/arduino-listserialportsc-1.4.0-r1.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-embedded/arduino-listserialportsc/arduino-listserialportsc-1.4.0-r1.ebuild b/dev-embedded/arduino-listserialportsc/arduino-listserialportsc-1.4.0-r1.ebuild new file mode 100644 index 000000000000..959da3412357 --- /dev/null +++ b/dev-embedded/arduino-listserialportsc/arduino-listserialportsc-1.4.0-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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" +S="${WORKDIR}/listSerialPortsC-${PV}" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +COMMON_DEPEND=">=dev-libs/libserialport-0.1.1" +DEPEND="${COMMON_DEPEND} + >=virtual/jdk-1.8:*" +RDEPEND="${COMMON_DEPEND} + >=virtual/jre-1.8:*" + +src_compile() { + $(tc-getCC) -O2 -Wall ${CPPFLAGS} ${CFLAGS} -c -o main.o main.c || die + + $(tc-getCC) ${CFLAGS} ${LDFLAGS} main.o -lserialport -o listSerialC || die + + $(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 || die + + $(tc-getCC) \ + ${CFLAGS} ${LDFLAGS} \ + -shared -Wl,-soname,liblistSerialsj.so \ + jnilib.o -lserialport -o liblistSerialsj.so.${PV} || die +} + +src_install() { + dobin listSerialC + dolib.so liblistSerialsj.so.${PV} + dosym liblistSerialsj.so.${PV} /usr/$(get_libdir)/liblistSerialsj.so +} |