# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
description TestDisk is a powerful free data recovery utility.
TestDisk was primarily designed to help recover \
lost partitions and/or make non-booting disks bootable \
again when these symptoms are caused by faulty \
software, certain types of viruses or human error \
(such as accidentally erasing your Partition Table). \
Partition table recovery using TestDisk is really easy.
depends_build port:ncurses
depends_lib port:libcomerr \
# e2fsprogs is not universal
# libewf 2017 API changed slightly. Testdisk has not yet been updated for this
patchfiles patch-testdisk-new-libewf.diff
homepage http://www.cgsecurity.org/wiki/TestDisk
master_sites http://www.cgsecurity.org/
checksums rmd160 56ff652a9ddf1c2b5cf96493e9aed8e7f7942d1f \
sha256 00bb3b6b22e6aba88580eeb887037aef026968c21a87b5f906c6652cbee3442d
configure.cppflags-append -I${prefix}/include/ossp
configure.args-append --with-ncurses-lib=${prefix}/lib \
--with-ncurses-includes=${prefix}/include/ncurses \
--with-iconv-lib=${prefix}/lib \
--with-iconv-includes=${prefix}/include
# needed for testdisk 6.11's configure script
configure.cflags-append -fnested-functions
livecheck.regex {href="/wiki/TestDisk_Download".*>([0-9.]+)<}