diff options
author | David Seifert <soap@gentoo.org> | 2017-12-29 23:09:50 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2017-12-29 23:33:01 +0100 |
commit | 5307dec32bba1d6cc56176de8d84572ba103e992 (patch) | |
tree | 3a32b69ec2dcf286e3d8ed695ae84773f17d44eb /app-forensics | |
parent | app-accessibility/pidgin-festival: Port to EAPI 6 (diff) | |
download | gentoo-5307dec32bba1d6cc56176de8d84572ba103e992.tar.gz gentoo-5307dec32bba1d6cc56176de8d84572ba103e992.tar.bz2 gentoo-5307dec32bba1d6cc56176de8d84572ba103e992.zip |
app-forensics/rifiuti: Port to EAPI 6
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'app-forensics')
3 files changed, 37 insertions, 6 deletions
diff --git a/app-forensics/rifiuti/files/rifiuti-20040505_p1-Wimplicit-function-declaration.patch b/app-forensics/rifiuti/files/rifiuti-20040505_p1-Wimplicit-function-declaration.patch new file mode 100644 index 000000000000..1ac3207a7c4f --- /dev/null +++ b/app-forensics/rifiuti/files/rifiuti-20040505_p1-Wimplicit-function-declaration.patch @@ -0,0 +1,11 @@ +--- a/rifiuti.c ++++ b/rifiuti.c +@@ -35,6 +35,8 @@ + #include <stdio.h> + #include <time.h> + #include <math.h> ++#include <stdlib.h> ++#include <string.h> + + #ifdef CYGWIN + ssize_t pread( int d, void *buf, size_t nbytes, off_t offset) { diff --git a/app-forensics/rifiuti/files/rifiuti-20040505_p1-fix-build-system.patch b/app-forensics/rifiuti/files/rifiuti-20040505_p1-fix-build-system.patch new file mode 100644 index 000000000000..a1c452047913 --- /dev/null +++ b/app-forensics/rifiuti/files/rifiuti-20040505_p1-fix-build-system.patch @@ -0,0 +1,12 @@ +--- a/Makefile ++++ b/Makefile +@@ -1,7 +1,6 @@ +-all: install ++LDLIBS += -lm + +-install: rifiuti.c +- gcc -o rifiuti rifiuti.c -lm -lc;cp rifiuti ../bin ++all: rifiuti + + installwin: rifiuti.c + gcc -DCYGWIN -o rifiuti.exe rifiuti.c -lm -lc;cp rifiuti.exe ../bin diff --git a/app-forensics/rifiuti/rifiuti-20040505_p1.ebuild b/app-forensics/rifiuti/rifiuti-20040505_p1.ebuild index f1e9f1a4f25f..bdb5212fbcc7 100644 --- a/app-forensics/rifiuti/rifiuti-20040505_p1.ebuild +++ b/app-forensics/rifiuti/rifiuti-20040505_p1.ebuild @@ -1,24 +1,32 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 +EAPI=6 + inherit toolchain-funcs MY_P=${PN}_${PV/_p/_} + DESCRIPTION="Recycle Bin Analyzer" HOMEPAGE="https://sourceforge.net/projects/odessa/" SRC_URI="mirror://sourceforge/odessa/${MY_P}.tar.gz" + LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~ppc x86" IUSE="" -S=${WORKDIR}/${MY_P} +S=${WORKDIR}/${MY_P}/src +PATCHES=( + "${FILESDIR}"/${P}-fix-build-system.patch + "${FILESDIR}"/${P}-Wimplicit-function-declaration.patch +) -src_compile() { - cd src - $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o rifiuti rifiuti.c -lm -lc || die "failed to compile" +src_configure() { + tc-export CC } src_install() { - dobin src/rifiuti + dobin ${PN} + dodoc ../{CHANGES,Readme.txt} } |