mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-15 21:02:30 +01:00
90 lines
2.4 KiB
Bash
90 lines
2.4 KiB
Bash
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit autotools eutils flag-o-matic
|
|
|
|
# no worky
|
|
RESTRICT="test"
|
|
|
|
DESCRIPTION="Rdd is a forensic copy program"
|
|
HOMEPAGE="http://www.sf.net/projects/rdd"
|
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="debug doc"
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
|
|
RDEPEND=">=app-forensics/libewf-20170701:=
|
|
sys-libs/zlib:=
|
|
dev-libs/openssl:=
|
|
app-forensics/libbfio:=
|
|
dev-libs/libcfile:=
|
|
dev-libs/libcpath:=
|
|
dev-libs/libclocale:=
|
|
dev-libs/libcsplit:=
|
|
dev-libs/libfdata:=
|
|
dev-libs/libfcache:=
|
|
dev-libs/libfvalue:=
|
|
dev-libs/libuna:=
|
|
dev-libs/libfdatetime:=
|
|
dev-libs/libfguid:=
|
|
dev-libs/libfwnt:=
|
|
dev-libs/libcdata:=
|
|
dev-libs/libcnotify:=
|
|
dev-libs/libcthreads:=
|
|
dev-libs/libcerror:=
|
|
app-arch/bzip2:="
|
|
|
|
DEPEND="${RDEPEND}
|
|
doc? ( app-doc/doxygen )"
|
|
|
|
# These are not linked against, not needed?
|
|
# Confirmed they are not required to build
|
|
PDEPEND="gnome-base/libglade:2.0
|
|
x11-libs/gtk+:2"
|
|
|
|
src_prepare() {
|
|
epatch "${FILESDIR}/${P}-sandbox-fix.patch"
|
|
epatch "${FILESDIR}/${P}-ewf.patch"
|
|
sed -i 's/AM_PATH_GTK_2_0//' configure.ac || die
|
|
#the following fixes cflags but breaks include path (the code is that bad)
|
|
sed -i -e '/NFI_CFLAGS/d' configure.ac || die
|
|
rm m4/nfi_cflags.m4
|
|
|
|
#libewf 2017 api fix
|
|
sed -i 's/libewf_get_flags_write/libewf_get_access_flags_write/' src/ewfwriter.c || die
|
|
sed -i 's/libewf_get_flags_read/libewf_get_access_flags_read/' src/ewfwriter.c || die
|
|
sed -i 's/libewf_handle_set_segment_file_size/libewf_handle_set_maximum_segment_size/' src/ewfwriter.c || die
|
|
sed -i 's/libewf_handle_get_segment_file_size/libewf_handle_get_maximum_segment_size/' src/ewfwriter.c || die
|
|
sed -i 's/libewf_get_flags_read/libewf_get_access_flags_read/' test/tewfwriter.c || die
|
|
sed -i 's/libewf_handle_get_segment_file_size/libewf_handle_get_maximum_segment_size/' test/tewfwriter.c || die
|
|
|
|
#fix include
|
|
append-flags -I "${S}/src"
|
|
eapply_user
|
|
AT_M4DIR=m4 eautoreconf
|
|
|
|
}
|
|
|
|
src_configure() {
|
|
#doxygen-html fails but the docs are prebuilt so we don't need to enable them
|
|
econf --disable-doxygen-html \
|
|
$(use_enable debug tracing) \
|
|
$(use_enable doc doxygen-doc)
|
|
}
|
|
|
|
src_compile() {
|
|
emake -C src librdd.la
|
|
emake
|
|
}
|
|
|
|
src_install() {
|
|
emake install DESTDIR="${D}"
|
|
dobin src/rddi.py
|
|
dosym rdd-copy /usr/bin/rdd
|
|
#go online if you want html
|
|
#dohtml -r doxygen-doc/html/*
|
|
}
|