Skip to content

Commit

Permalink
app-admin/localepurge: EAPI bump, epatch->eapply
Browse files Browse the repository at this point in the history
Removed eutils and switched epatch's to PATCH=() array.

Package-Manager: Portage-2.3.28, Repoman-2.3.9
Closes: gentoo#7843
  • Loading branch information
hanetzer authored and a17r committed Apr 7, 2018
1 parent 019ca33 commit 2fa9990
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- localepurge.orig 2012-12-04 23:15:29.422756767 +0100
+++ localepurge 2012-12-04 23:16:13.313756491 +0100
--- a/localepurge
+++ b/localepurge
@@ -198,7 +198,7 @@

if [ "$SHOWFREEDSPACE" = "enabled" ]; then
Expand Down
4 changes: 2 additions & 2 deletions app-admin/localepurge/files/localepurge-0.5.4-evaltotal.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- localepurge.original 2012-12-02 18:32:35.000000000 +0400
+++ localepurge 2013-01-14 19:31:35.327821252 +0400
--- a/localepurge
+++ b/localepurge
@@ -254,7 +254,7 @@

# Calculating and reporting total disk space freed:
Expand Down
4 changes: 2 additions & 2 deletions app-admin/localepurge/files/localepurge-0.5.4-parentdir.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- localepurge.orig 2012-12-04 23:08:17.754765708 +0100
+++ localepurge 2012-12-04 23:09:02.397765264 +0100
--- a/localepurge
+++ b/localepurge
@@ -165,7 +165,14 @@
${ACTION} `find ${REMOVEPATH} -type f -o -type l`

Expand Down
4 changes: 2 additions & 2 deletions app-admin/localepurge/files/localepurge-0.5.4-prefix.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- localepurge.orig 2012-12-02 19:56:18.000000000 +0100
+++ localepurge 2012-12-02 20:00:38.000000000 +0100
--- a/localepurge
+++ b/localepurge
@@ -1,14 +1,14 @@
-#!/bin/bash
+#!@GENTOO_PORTAGE_EPREFIX@/bin/bash
Expand Down
21 changes: 11 additions & 10 deletions app-admin/localepurge/localepurge-0.5.4-r2.ebuild
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 1999-2017 Gentoo Foundation
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=4
EAPI=6

inherit eutils prefix
inherit prefix

DESCRIPTION="Script to recover diskspace on unneeded locale files & localized man pages"
HOMEPAGE="https://gentoo.org
Expand All @@ -20,14 +20,15 @@ RDEPEND="app-shells/bash"

S=${WORKDIR}/${PN}

PATCHES=(
"${FILESDIR}"/${PN}-0.5.4-prefix.patch
"${FILESDIR}"/${PN}-0.5.4-directorysum.patch # 164544
"${FILESDIR}"/${PN}-0.5.4-parentdir.patch #445910
"${FILESDIR}"/${PN}-0.5.4-evaltotal.patch #452208
)

src_prepare() {
epatch "${FILESDIR}"/${P}-prefix.patch
# 164544
epatch "${FILESDIR}"/${P}-directorysum.patch
# 445910
epatch "${FILESDIR}"/${P}-parentdir.patch
# 452208
epatch "${FILESDIR}"/${P}-evaltotal.patch
default
eprefixify ${PN}
}

Expand Down

0 comments on commit 2fa9990

Please sign in to comment.