From 2208f4d390406d72cdd77596741b296151e28387 Mon Sep 17 00:00:00 2001 From: Viorel Date: Tue, 7 Jul 2020 07:23:41 +0300 Subject: [PATCH] Upgrade ebuilds to cmake --- net-misc/turbovnc/turbovnc-2.2.5-r1.ebuild | 33 +++++++++++++ .../onvifviewer-0.13_pre20200507-r1.ebuild | 49 +++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 net-misc/turbovnc/turbovnc-2.2.5-r1.ebuild create mode 100644 www-misc/onvifviewer/onvifviewer-0.13_pre20200507-r1.ebuild diff --git a/net-misc/turbovnc/turbovnc-2.2.5-r1.ebuild b/net-misc/turbovnc/turbovnc-2.2.5-r1.ebuild new file mode 100644 index 0000000..b2c863f --- /dev/null +++ b/net-misc/turbovnc/turbovnc-2.2.5-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit cmake + +DESCRIPTION="A fast replacement for tigetvnc" +HOMEPAGE="https://www.turbovnc.org/" +SRC_URI="https://sourceforge.net/projects/turbovnc/files/${PV}/${P}.tar.gz/download -> ${P}.tar.gz" +RESTRICT="primaryuri" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="virtual/jdk:1.8 + >=media-libs/libjpeg-turbo-2.0.0[java] + !net-misc/tigervnc" +RDEPEND="${DEPEND}" + +src_configure() { + local mycmakeargs=( + -DTJPEG_JAR=/usr/share/java/turbojpeg.jar + -DTJPEG_JNILIBRARY=/usr/lib64/libturbojpeg.so + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + find "${D}/usr/share/man/man1/" -name Xserver.1\* -print0 | xargs -0 rm +} diff --git a/www-misc/onvifviewer/onvifviewer-0.13_pre20200507-r1.ebuild b/www-misc/onvifviewer/onvifviewer-0.13_pre20200507-r1.ebuild new file mode 100644 index 0000000..1907ad2 --- /dev/null +++ b/www-misc/onvifviewer/onvifviewer-0.13_pre20200507-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit cmake + +DESCRIPTION="Viewer for IP cameras ONVIF" +HOMEPAGE="https://gitlab.com/caspermeijn/onvifviewer/" +COMMITHASH=c0ac7f6bb62333dedf1fb59c0d7c9351dfc1e0b1 +SRC_URI="https://gitlab.com/caspermeijn/onvifviewer/-/archive/${COMMITHASH}/${PN}-${COMMITHASH}.tar.gz" +RESTRICT="primaryuri" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="kde-frameworks/extra-cmake-modules:5 + kde-frameworks/kirigami:5 + >=net-libs/kdsoap-1.8.50 + net-libs/kdsoap-ws-discovery-client + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + dev-qt/qtdbus:5 + dev-qt/qtxml:5 + dev-qt/qtnetwork:5 + dev-qt/qtdeclarative:5 + dev-qt/qtsvg:5 + kde-frameworks/kcoreaddons:5 + kde-frameworks/kauth:5 + kde-frameworks/kconfig:5 + kde-frameworks/kcodecs:5 + kde-frameworks/ki18n:5 + kde-frameworks/kconfigwidgets:5 + kde-frameworks/kxmlgui:5" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PN}-${COMMITHASH}" + +pkg_postinst() +{ + xdg_desktop_database_update +} + +pkg_postrm() +{ + xdg_desktop_database_update +}