logo

overlay

My own overlay for experimentations, use with caution, no support is provided
commit: c66e2ac6339d1cc0b671af2bf55fc84f33d6de3b
parent: 9619215b1401a2c70318f2f6a1b2e8da2bfc8d10
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 29 Jan 2020 06:28:22 +0100

net-misc/neatvnc: New

Diffstat:

Anet-misc/neatvnc/metadata.xml8++++++++
Anet-misc/neatvnc/neatvnc-9999.ebuild46++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 54 insertions(+), 0 deletions(-)

diff --git a/net-misc/neatvnc/metadata.xml b/net-misc/neatvnc/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>contact@hacktivis.me</email> + <name>Haelwenn (lanodan) Monnier</name> + </maintainer> +</pkgmetadata> diff --git a/net-misc/neatvnc/neatvnc-9999.ebuild b/net-misc/neatvnc/neatvnc-9999.ebuild @@ -0,0 +1,46 @@ +# Copyright 2020 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit meson git-r3 + +DESCRIPTION="liberally licensed VNC server library that's intended to be fast and neat" +HOMEPAGE="https://github.com/any1/neatvnc" +EGIT_REPO_URI="https://github.com/any1/neatvnc.git" +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64" +IUSE="gnutls jpeg" + +DEPEND=" + x11-libs/pixman:= + dev-libs/libuv:= + gnutls? ( net-libs/gnutls:= ) + jpeg? ( media-libs/libjpeg-turbo:= ) +" +RDEPEND=" + ${DEPEND} + x11-libs/libdrm +" + +src_prepare() { + default + + # grep -l '"sys/queue.h"' "$S"/include/*.h \ + # | xargs sed -i 's;"sys/queue.h";<sys/queue.h>;' \ + # || die 'Failed changing "sys/queue.h" to <sys/queue.h>' + # + # rm "${S}/include/sys/queue.h" || die 'Failed removing include/sys/queue.h' + + sed -i '/<sys\/cdefs.h>/d' "${S}/include/sys/queue.h" +} + +src_configure() { + local emesonargs=( + $(meson_feature jpeg tight-encoding) + $(meson_feature gnutls tls) + ) + + meson_src_configure +}