summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <mmk@levelnine.at>2023-12-22 18:54:54 +0100
committerConrad Kostecki <conikost@gentoo.org>2023-12-25 00:06:07 +0100
commite96682a05e747f4442d9e896981d5cde11c8e7f6 (patch)
treecb1038e0b1bb8d46a607cabf20eadeb641051da9 /media-video
parentmedia-video/recordmydesktop: EAPI8, fix LICENSE, use https (diff)
downloadgentoo-e96682a05e747f4442d9e896981d5cde11c8e7f6.tar.gz
gentoo-e96682a05e747f4442d9e896981d5cde11c8e7f6.tar.bz2
gentoo-e96682a05e747f4442d9e896981d5cde11c8e7f6.zip
media-video/sonic-snap: EAPI8, fix #453456,#740520
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Closes: https://bugs.gentoo.org/453456 Closes: https://bugs.gentoo.org/740520 Closes: https://github.com/gentoo/gentoo/pull/34425 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'media-video')
-rw-r--r--media-video/sonic-snap/sonic-snap-1.7-r1.ebuild28
1 files changed, 12 insertions, 16 deletions
diff --git a/media-video/sonic-snap/sonic-snap-1.7-r1.ebuild b/media-video/sonic-snap/sonic-snap-1.7-r1.ebuild
index aa33db7cb88a..0d703945f44d 100644
--- a/media-video/sonic-snap/sonic-snap-1.7-r1.ebuild
+++ b/media-video/sonic-snap/sonic-snap-1.7-r1.ebuild
@@ -1,12 +1,13 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=8
+
inherit linux-info toolchain-funcs
DESCRIPTION="Webcam app for sn9c10x based camera controllers (with optional MPEG4 support)"
-HOMEPAGE="http://www.stolk.org/sonic-snap/"
-SRC_URI="http://www.stolk.org/${PN}/downloads/${P}.tar.gz"
+HOMEPAGE="https://www.stolk.org/sonic-snap/"
+SRC_URI="https://www.stolk.org/${PN}/downloads/${P}.tar.gz"
LICENSE="GPL-1"
SLOT="0"
@@ -14,15 +15,15 @@ KEYWORDS="~amd64 ~mips ~ppc ~ppc64 ~sparc ~x86"
IUSE="mpeg"
DEPEND="
- x11-libs/fltk:1
- mpeg? ( >=media-libs/libfame-0.9.1 )
sys-libs/zlib
- x11-libs/libXdmcp
- x11-libs/libXau
- x11-libs/libXrender
+ x11-libs/fltk:1
x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
x11-libs/libXext
x11-libs/libXft
+ x11-libs/libXrender
+ mpeg? ( >=media-libs/libfame-0.9.1 )
"
RDEPEND="${DEPEND}"
@@ -37,6 +38,7 @@ src_prepare() {
-e "s|\$(HOME)/lib|/usr/$(get_libdir)|" \
-e "s|CFLAGS=|CFLAGS= ${CXXFLAGS} |" \
-e "s|LFLAGS=|LFLAGS= ${LDFLAGS} |" \
+ -e "s|g++-4.0 -O3 -o|$(tc-getCXX) ${CXXFLAGS} ${LDFLAGS} -o|" \
-e "s/g++-4.0 -O3/$(tc-getCXX)/" \
Makefile || die
@@ -45,15 +47,9 @@ src_prepare() {
default
}
-src_compile() {
- make || die '"make" failed.'
-}
-
src_install() {
dodir /usr/bin
- make DESTDIR="${D}" install || die '"make install" failed.'
-
- dodoc ChangeLog README
+ default
doman debian/sonic-snap.1
}