From 04f5d94fc668f1df603fe07dbf57dd995bd9cf90 Mon Sep 17 00:00:00 2001 From: Sebastian Parborg Date: Sat, 6 Aug 2011 16:38:25 +0200 Subject: hacked together somethings in the ebuild gen so it persumes autotools --- ebuildgen.py | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/ebuildgen.py b/ebuildgen.py index 10586e6..fee6233 100644 --- a/ebuildgen.py +++ b/ebuildgen.py @@ -59,7 +59,7 @@ def outputebuild(iuse,deps,usedeps,dltype,adress,installmethod): '# $Header: $', '' ] - inheritstr = 'inherit ' + eclass[dltype] + inheritstr = 'inherit ' + eclass[dltype] + ' autotools' text.append(inheritstr) text += [ @@ -105,11 +105,27 @@ def outputebuild(iuse,deps,usedeps,dltype,adress,installmethod): depstr = depstr[:-3] depstr += " )\n\t" - depstr = depstr[:-2] + '"' + depstr = depstr[:-2] + '"\nRDEPEND="${DEPEND}"' text.append(depstr) text += [ - 'RDEPEND="${DEPEND}"', + '', + 'src_prepare() {', + '\teautoreconf', + '}', + ] + + if iuse: + text += [ + '', + 'src_configure() {', + '\teconf \\', + ] + for use in iuse: + text += ['\t\t$(use_' + use.split("_")[0] + ' ' + use.split("_")[1] + ') \\'] + text += ['}'] + + text += [ '', 'src_compile() {', ' emake || die "emake failed"', -- cgit v1.2.3-65-gdbad