mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
dev-embedded/arduino-listserialportsc: drop 1.4.0
Closes: https://bugs.gentoo.org/913059 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
@@ -1,43 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
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"
|
||||
|
||||
RDEPEND=">=dev-libs/libserialport-0.1.1"
|
||||
DEPEND="${RDEPEND}
|
||||
>=virtual/jdk-1.8"
|
||||
|
||||
S="${WORKDIR}/listSerialPortsC-${PV}"
|
||||
|
||||
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 liblistSerialsj.so.${PV}
|
||||
dosym liblistSerialsj.so.${PV} /usr/$(get_libdir)/liblistSerialsj.so
|
||||
}
|
||||
Reference in New Issue
Block a user