commit:     200c09d61699a4949ad4090fee020193b01509ba
Author:     Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Wed Sep  4 13:16:08 2024 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Sep 24 06:57:33 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=200c09d6

net-misc/vncsnapshot: EAPI8 bump, fix LICENSE, use https

Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/38429
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 net-misc/vncsnapshot/vncsnapshot-1.2a-r1.ebuild | 61 +++++++++++++++++++++++++
 1 file changed, 61 insertions(+)

diff --git a/net-misc/vncsnapshot/vncsnapshot-1.2a-r1.ebuild 
b/net-misc/vncsnapshot/vncsnapshot-1.2a-r1.ebuild
new file mode 100644
index 000000000000..766b4da94e0b
--- /dev/null
+++ b/net-misc/vncsnapshot/vncsnapshot-1.2a-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Command-line tool for taking JPEG snapshots of VNC servers"
+HOMEPAGE="https://vncsnapshot.sourceforge.net/";
+SRC_URI="https://downloads.sourceforge.net/${PN}/${P}-src.tar.bz2";
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc ~x86"
+
+DEPEND="
+       media-libs/libjpeg-turbo:=
+       sys-libs/zlib
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+       "${FILESDIR}/${P}-amd64grey.patch"
+)
+
+src_prepare() {
+       default
+
+       sed \
+               -e 's:-I/usr/local/include::g' \
+               -e 's:-L/usr/local/lib::g' \
+               -e '/^all:/s|$(SUBDIRS:.dir=.all)||g' \
+               -e '/^vnc/s|$| $(SUBDIRS:.dir=.all)|g' \
+               -i Makefile || die
+
+       # Preserve make instance
+       sed -i -e 's/make/$(MAKE)/' Makefile || die
+
+       # Respect RANLIB
+       sed -i -e 's/ranlib/$(RANLIB)/' rdr/Makefile || die
+}
+
+src_compile() {
+       # We override CDEBUGFLAGS instead of CFLAGS because otherwise
+       # we lose the INCLUDES in the makefile. The same flags are used
+       # for both.
+       # bug #295741
+       local args=(
+               AR="$(tc-getAR)"
+               CDEBUGFLAGS="${CXXFLAGS}"
+               CC="$(tc-getCC)"
+               CXX="$(tc-getCXX)"
+               RANLIB="$(tc-getRANLIB)"
+       )
+       emake "${args[@]}"
+}
+
+src_install() {
+       dobin vncsnapshot
+       newman vncsnapshot.man1 vncsnapshot.1
+}

Reply via email to