mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-forensics/rifiuti: Port to EAPI 6
Package-Manager: Portage-2.3.19, Repoman-2.3.6
This commit is contained in:
@@ -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) {
|
||||
@@ -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
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user