summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Junghans <ottxor@gentoo.org>2012-12-27 19:31:04 +0000
committerChristoph Junghans <ottxor@gentoo.org>2012-12-27 19:31:04 +0000
commite7a135bb4a4eacf0d4d8fa0b954dd2724ce61023 (patch)
tree55237b9634f8a09cd6829254eb5deecd428bbb4d /app-portage
parentadded prefix support (diff)
downloadgentoo-2-e7a135bb4a4eacf0d4d8fa0b954dd2724ce61023.tar.gz
gentoo-2-e7a135bb4a4eacf0d4d8fa0b954dd2724ce61023.tar.bz2
gentoo-2-e7a135bb4a4eacf0d4d8fa0b954dd2724ce61023.zip
added prefix support
(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key C2000586)
Diffstat (limited to 'app-portage')
-rw-r--r--app-portage/splat/ChangeLog8
-rw-r--r--app-portage/splat/files/splat-0.08-prefix.patch33
-rw-r--r--app-portage/splat/splat-0.08-r1.ebuild28
3 files changed, 68 insertions, 1 deletions
diff --git a/app-portage/splat/ChangeLog b/app-portage/splat/ChangeLog
index b4c17b639d3e..35e10c534617 100644
--- a/app-portage/splat/ChangeLog
+++ b/app-portage/splat/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-portage/splat
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-portage/splat/ChangeLog,v 1.27 2012/12/26 19:24:54 fuzzyray Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-portage/splat/ChangeLog,v 1.28 2012/12/27 19:31:04 ottxor Exp $
+
+*splat-0.08-r1 (27 Dec 2012)
+
+ 27 Dec 2012; Christoph Junghans <ottxor@gentoo.org>
+ +files/splat-0.08-prefix.patch, +splat-0.08-r1.ebuild:
+ added prefix support
26 Dec 2012; Paul Varner <fuzzyray@gentoo.org> metadata.xml:
Move to maintainer-needed, due to not being maintained by anyone in the
diff --git a/app-portage/splat/files/splat-0.08-prefix.patch b/app-portage/splat/files/splat-0.08-prefix.patch
new file mode 100644
index 000000000000..e2599deb8bf5
--- /dev/null
+++ b/app-portage/splat/files/splat-0.08-prefix.patch
@@ -0,0 +1,33 @@
+--- splat.pl
++++ splat.pl
+@@ -1,4 +1,4 @@
+-#!/usr/bin/perl -w
++#!@GENTOO_PORTAGE_EPREFIX@/usr/bin/perl -w
+
+ # Copyright 2003; Shaun Guth <l8nite@l8nite.net>
+ #
+@@ -65,13 +65,13 @@
+ return unless /\.ebuild$/;
+
+ my $basedir = dirname($File::Find::name);
+- $basedir =~ s/^\/var\/db\/pkg//;
++ $basedir =~ s|^@GENTOO_PORTAGE_EPREFIX@/var/db/pkg||;
+ my $package = join('/',(splitdir($basedir))[1,2]);
+
+ $INSTALLED{$package} = 1;
+
+ }, 'no_chdir' => 1, },
+- '/var/db/pkg',
++ '@GENTOO_PORTAGE_EPREFIX@/var/db/pkg',
+ );
+
+ &parse_command_line();
+@@ -320,7 +320,7 @@
+ # no logfile defined? Let's check make.conf
+ if( !defined($logfile) || $logfile eq "" )
+ {
+- $logfile = '/var/log/emerge.log';
++ $logfile = '@GENTOO_PORTAGE_EPREFIX@/var/log/emerge.log';
+
+ if( $OPT->{'verbose'} ) {
+ warn "*** No log file specified.\n";
diff --git a/app-portage/splat/splat-0.08-r1.ebuild b/app-portage/splat/splat-0.08-r1.ebuild
new file mode 100644
index 000000000000..d6b10f9264fc
--- /dev/null
+++ b/app-portage/splat/splat-0.08-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-portage/splat/splat-0.08-r1.ebuild,v 1.1 2012/12/27 19:31:04 ottxor Exp $
+
+EAPI=5
+
+inherit eutils prefix
+
+DESCRIPTION="Simple Portage Log Analyzer Tool"
+HOMEPAGE="http://www.l8nite.net/projects/splat/"
+SRC_URI="http://www.l8nite.net/projects/splat/downloads/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+DEPEND="dev-lang/perl"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-prefix.patch
+ eprefixify splat.pl
+}
+
+src_install() {
+ newbin splat.pl splat
+ dodoc ChangeLog
+}