summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2021-11-23 10:31:44 +0100
committerMarek Szuba <marecki@gentoo.org>2021-11-23 10:33:41 +0100
commita9c787d623526c3dbeb6aaefe3f83f86b1839578 (patch)
tree764b91a10dd7cb27c5db3931bbd78fee3534d0e9 /app-misc/tdfsb
parentsys-fs/btrfs-progs: Bump to version 5.15.1 (diff)
downloadgentoo-a9c787d623526c3dbeb6aaefe3f83f86b1839578.tar.gz
gentoo-a9c787d623526c3dbeb6aaefe3f83f86b1839578.tar.bz2
gentoo-a9c787d623526c3dbeb6aaefe3f83f86b1839578.zip
app-misc/tdfsb: update EAPI 5 -> 8
Bug: https://bugs.gentoo.org/826438 Closes: https://bugs.gentoo.org/734212 Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'app-misc/tdfsb')
-rw-r--r--app-misc/tdfsb/files/tdfsb-0.0.10-void-return.patch13
-rw-r--r--app-misc/tdfsb/tdfsb-0.0.10-r2.ebuild47
2 files changed, 60 insertions, 0 deletions
diff --git a/app-misc/tdfsb/files/tdfsb-0.0.10-void-return.patch b/app-misc/tdfsb/files/tdfsb-0.0.10-void-return.patch
new file mode 100644
index 000000000000..f092363f01cd
--- /dev/null
+++ b/app-misc/tdfsb/files/tdfsb-0.0.10-void-return.patch
@@ -0,0 +1,13 @@
+As the code below the altered block shows, this was redundant to begin with.
+
+--- a/tdfsb.c
++++ b/tdfsb.c
+@@ -2794,8 +2794,6 @@
+ else
+ {
+ strcpy(TDFSB_CURRENTPATH,temp_trunc);
+- TDFSB_FUNC_IDLE=nullDisplay; TDFSB_FUNC_DISP=noDisplay;
+- return;
+ }
+ TDFSB_FUNC_IDLE=nullDisplay;
+ TDFSB_FUNC_DISP=noDisplay;
diff --git a/app-misc/tdfsb/tdfsb-0.0.10-r2.ebuild b/app-misc/tdfsb/tdfsb-0.0.10-r2.ebuild
new file mode 100644
index 000000000000..cae3e543ef20
--- /dev/null
+++ b/app-misc/tdfsb/tdfsb-0.0.10-r2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="SDL based graphical file browser"
+HOMEPAGE="https://www.determinate.net/webdata/seg/tdfsb.html"
+SRC_URI="https://www.determinate.net/webdata/data/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+
+DEPEND="media-libs/freeglut
+ media-libs/sdl-image
+ media-libs/smpeg
+ virtual/glu
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXi
+ x11-libs/libXmu"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-asneeded.patch
+ "${FILESDIR}"/${P}-debugging.patch
+ "${FILESDIR}"/${P}-format-security.patch
+ "${FILESDIR}"/${P}-void-return.patch
+)
+
+src_prepare() {
+ default
+
+ sed -i -e "s|-O2|${CFLAGS} ${LDFLAGS}|" \
+ -e "s:gcc:$(tc-getCC):" "${S}"/compile.sh || die
+}
+
+src_compile() {
+ ./compile.sh || die "compile failed"
+}
+
+src_install() {
+ dobin tdfsb
+ dodoc ChangeLog README
+}