summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Junghans <ottxor@gentoo.org>2012-08-05 23:45:10 +0000
committerChristoph Junghans <ottxor@gentoo.org>2012-08-05 23:45:10 +0000
commit37a26781d164d8f2b0c9217e6e8a8da9e876efc6 (patch)
tree0ef08f09c0200461967a4565b4e51ce7040be554 /app-admin/localepurge
parentRemove old. (diff)
downloadgentoo-2-37a26781d164d8f2b0c9217e6e8a8da9e876efc6.tar.gz
gentoo-2-37a26781d164d8f2b0c9217e6e8a8da9e876efc6.tar.bz2
gentoo-2-37a26781d164d8f2b0c9217e6e8a8da9e876efc6.zip
add prefix changes
(Portage version: 2.2.0_alpha120/cvs/Linux i686)
Diffstat (limited to 'app-admin/localepurge')
-rw-r--r--app-admin/localepurge/ChangeLog9
-rw-r--r--app-admin/localepurge/files/localepurge-0.5.3.3-prefix.patch58
-rw-r--r--app-admin/localepurge/localepurge-0.5.3.3-r1.ebuild (renamed from app-admin/localepurge/localepurge-0.5.3.3.ebuild)8
3 files changed, 72 insertions, 3 deletions
diff --git a/app-admin/localepurge/ChangeLog b/app-admin/localepurge/ChangeLog
index 3050004e1775..daa7be302041 100644
--- a/app-admin/localepurge/ChangeLog
+++ b/app-admin/localepurge/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-admin/localepurge
# Copyright 2002-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/localepurge/ChangeLog,v 1.37 2012/03/21 12:04:26 pacho Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/localepurge/ChangeLog,v 1.38 2012/08/05 23:45:10 ottxor Exp $
+
+*localepurge-0.5.3.3-r1 (05 Aug 2012)
+
+ 05 Aug 2012; Christoph Junghans <ottxor@gentoo.org>
+ +files/localepurge-0.5.3.3-prefix.patch, +localepurge-0.5.3.3-r1.ebuild,
+ -localepurge-0.5.3.3.ebuild:
+ add prefix changes
21 Mar 2012; Pacho Ramos <pacho@gentoo.org> localepurge-0.5.3.3.ebuild:
Fix reported version.
diff --git a/app-admin/localepurge/files/localepurge-0.5.3.3-prefix.patch b/app-admin/localepurge/files/localepurge-0.5.3.3-prefix.patch
new file mode 100644
index 000000000000..8787029cdaa9
--- /dev/null
+++ b/app-admin/localepurge/files/localepurge-0.5.3.3-prefix.patch
@@ -0,0 +1,58 @@
+--- localepurge
++++ localepurge
+@@ -1,14 +1,14 @@
+-#!/bin/bash
++#!@GENTOO_PORTAGE_EPREFIX@/bin/bash
+
+ # Deleting all locale files on system
+ # *not* listed in /etc/locale.nopurge
+
+ set -e
+
+-LOCALEDIRS="/usr/share/locale /usr/local/share/locale /usr/kde/?.?/share/locale /opt/sun-jdk-*/jre/lib/locale /opt/sun-jre-bin-*/lib/locale /usr/lib/locale"
+-MANPAGEDIRS="/usr/share/man /usr/man /usr/local/share/man /usr/kde/?.?/share/man /usr/kde/?.?/man /opt/sun-jdk-*/man /opt/sun-jre-bin-*/man"
+-LOCALELIST="/var/cache/localepurge/localelist"
+-CONFIGFILE="/etc/locale.nopurge"
++LOCALEDIRS="@GENTOO_PORTAGE_EPREFIX@/usr/share/locale @GENTOO_PORTAGE_EPREFIX@/usr/local/share/locale @GENTOO_PORTAGE_EPREFIX@/usr/kde/?.?/share/locale @GENTOO_PORTAGE_EPREFIX@/opt/sun-jdk-*/jre/lib/locale @GENTOO_PORTAGE_EPREFIX@/opt/sun-jre-bin-*/lib/locale @GENTOO_PORTAGE_EPREFIX@/usr/lib/locale"
++MANPAGEDIRS="@GENTOO_PORTAGE_EPREFIX@/usr/share/man @GENTOO_PORTAGE_EPREFIX@/usr/man @GENTOO_PORTAGE_EPREFIX@/usr/local/share/man @GENTOO_PORTAGE_EPREFIX@/usr/kde/?.?/share/man @GENTOO_PORTAGE_EPREFIX@/usr/kde/?.?/man @GENTOO_PORTAGE_EPREFIX@/opt/sun-jdk-*/man @GENTOO_PORTAGE_EPREFIX@/opt/sun-jre-bin-*/man"
++LOCALELIST="@GENTOO_PORTAGE_EPREFIX@/var/cache/localepurge/localelist"
++CONFIGFILE="@GENTOO_PORTAGE_EPREFIX@/etc/locale.nopurge"
+ VERSION="0.5.3.2"
+
+ LOCALETOTAL=0
+@@ -22,7 +22,7 @@
+ BRACKET=$'\e[34;01m'
+ BOLD=$'\e[1m'
+
+-ACTION="/bin/rm -vf"
++ACTION="@GENTOO_PORTAGE_EPREFIX@/bin/rm -vf"
+
+ eerror () {
+ echo -e " ${BAD}*${NORMAL} $*" 2> /dev/stderr
+@@ -42,7 +42,7 @@
+ print() {
+ for x in $@; do
+ if [ "${x}" = "" ]; then return 0
+- else /bin/echo $x
++ else @GENTOO_PORTAGE_EPREFIX@/bin/echo $x
+ fi
+ done
+ }
+@@ -165,7 +165,7 @@
+ einfo "localepurge: processing locale files in ${LOCALEDIR} ..."
+ fi
+
+- for LOCALE in `/bin/ls ${LOCALEDIR}`; do
++ for LOCALE in `@GENTOO_PORTAGE_EPREFIX@/bin/ls ${LOCALEDIR}`; do
+ if echo "${PURGELIST}" | grep -xq ${LOCALE}; then
+ if [ -d ${LOCALEDIR}/${LOCALE}/LC_MESSAGES ]; then
+ if [ "${LIST}" = "enabled" ]; then
+@@ -203,7 +203,7 @@
+ einfo "localepurge: processing man pages in ${MANPAGEDIR} ..."
+ fi
+
+- for LOCALE in `/bin/ls ${MANPAGEDIR} | grep -v ^man[1-9]`; do
++ for LOCALE in `@GENTOO_PORTAGE_EPREFIX@/bin/ls ${MANPAGEDIR} | grep -v ^man[1-9]`; do
+ if echo "${PURGELIST}" | grep -xq ${LOCALE}; then
+ if [ -d ${MANPAGEDIR}/${LOCALE} ]; then
+ if [ "${LIST}" = "enabled" ]; then
diff --git a/app-admin/localepurge/localepurge-0.5.3.3.ebuild b/app-admin/localepurge/localepurge-0.5.3.3-r1.ebuild
index 905739be6b0f..66b1026cff37 100644
--- a/app-admin/localepurge/localepurge-0.5.3.3.ebuild
+++ b/app-admin/localepurge/localepurge-0.5.3.3-r1.ebuild
@@ -1,16 +1,18 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/localepurge/localepurge-0.5.3.3.ebuild,v 1.3 2012/03/21 12:04:26 pacho Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/localepurge/localepurge-0.5.3.3-r1.ebuild,v 1.1 2012/08/05 23:45:10 ottxor Exp $
EAPI=4
+inherit eutils prefix
+
DESCRIPTION="Script to recover diskspace wasted for unneeded locale files and localized man pages."
HOMEPAGE="http://gentoo.org"
SRC_URI="mirror://gentoo/${P}.tbz2"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos"
IUSE=""
DEPEND=""
@@ -19,6 +21,8 @@ RDEPEND="app-shells/bash"
S=${WORKDIR}/${PN}
src_prepare() {
+ epatch "${FILESDIR}"/${P}-prefix.patch
+ eprefixify localepurge
sed -i -e 's/0.5.3.2/0.5.3.3/' localepurge || die
}