summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2012-12-03 19:27:05 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2012-12-03 19:27:05 +0000
commitca079736b274541d9777591636584aa63f9cbac9 (patch)
treeac8be3f9b167a144e64822cd0450e608645cc437 /app-admin/localepurge
parentVersion bump. (diff)
downloadgentoo-2-ca079736b274541d9777591636584aa63f9cbac9.tar.gz
gentoo-2-ca079736b274541d9777591636584aa63f9cbac9.tar.bz2
gentoo-2-ca079736b274541d9777591636584aa63f9cbac9.zip
Version bump. Add Wim Muskee <wimmuskee@gmail.com> as maintainer. Bug #445682
(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key B4AFF2C2)
Diffstat (limited to 'app-admin/localepurge')
-rw-r--r--app-admin/localepurge/ChangeLog9
-rw-r--r--app-admin/localepurge/files/localepurge-0.5.4-prefix.patch58
-rw-r--r--app-admin/localepurge/localepurge-0.5.4.ebuild37
-rw-r--r--app-admin/localepurge/metadata.xml4
4 files changed, 106 insertions, 2 deletions
diff --git a/app-admin/localepurge/ChangeLog b/app-admin/localepurge/ChangeLog
index daa7be302041..6d48fbadff1d 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.38 2012/08/05 23:45:10 ottxor Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/localepurge/ChangeLog,v 1.39 2012/12/03 19:27:04 hwoarang Exp $
+
+*localepurge-0.5.4 (03 Dec 2012)
+
+ 03 Dec 2012; Markos Chandras <hwoarang@gentoo.org>
+ +files/localepurge-0.5.4-prefix.patch, +localepurge-0.5.4.ebuild,
+ metadata.xml:
+ Version bump. Add Wim Muskee <wimmuskee@gmail.com> as maintainer. Bug #445682
*localepurge-0.5.3.3-r1 (05 Aug 2012)
diff --git a/app-admin/localepurge/files/localepurge-0.5.4-prefix.patch b/app-admin/localepurge/files/localepurge-0.5.4-prefix.patch
new file mode 100644
index 000000000000..66ebbf09ac96
--- /dev/null
+++ b/app-admin/localepurge/files/localepurge-0.5.4-prefix.patch
@@ -0,0 +1,58 @@
+--- localepurge.orig 2012-12-02 19:56:18.000000000 +0100
++++ localepurge 2012-12-02 20:00:38.000000000 +0100
+@@ -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 /usr/share/binutils-data/*/*/locale /usr/share/gcc-data/*/*/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 @GENTOO_PORTAGE_EPREFIX@/usr/share/binutils-data/*/*/locale @GENTOO_PORTAGE_EPREFIX@/usr/share/gcc-data/*/*/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.4"
+
+ LOCALETOTAL=0
+@@ -23,7 +23,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
+@@ -43,7 +43,7 @@
+ print() {
+ for x in $@; do
+ if [ "${x}" = "" ]; then return 0
+- else /bin/echo $x
++ else @GENTOO_PORTAGE_EPREFIX@/bin/echo $x
+ fi
+ done
+ }
+@@ -184,7 +184,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
+@@ -216,7 +216,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.4.ebuild b/app-admin/localepurge/localepurge-0.5.4.ebuild
new file mode 100644
index 000000000000..566db004ec7f
--- /dev/null
+++ b/app-admin/localepurge/localepurge-0.5.4.ebuild
@@ -0,0 +1,37 @@
+# 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.4.ebuild,v 1.1 2012/12/03 19:27:04 hwoarang Exp $
+
+EAPI=4
+
+inherit eutils prefix
+
+DESCRIPTION="Script to recover diskspace wasted for unneeded locale files and localized man pages."
+HOMEPAGE="http://gentoo.org
+http://git.overlays.gentoo.org/gitweb/?p=proj/localepurge.git;a=summary"
+SRC_URI="http://dev.gentoo.org/~hwoarang/distfiles/${P}.tbz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+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=""
+RDEPEND="app-shells/bash"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-prefix.patch
+ eprefixify ${PN}
+}
+
+src_install() {
+ insinto /var/cache/${PN}
+ doins defaultlist
+ dosym defaultlist /var/cache/${PN}/localelist
+ insinto /etc
+ doins locale.nopurge
+ dobin ${PN}
+ doman ${PN}.8
+}
diff --git a/app-admin/localepurge/metadata.xml b/app-admin/localepurge/metadata.xml
index 43fb07513349..2d52d39e1dca 100644
--- a/app-admin/localepurge/metadata.xml
+++ b/app-admin/localepurge/metadata.xml
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
+<herd>proxy-maintainers</herd>
<maintainer>
- <email>maintainer-needed@gentoo.org</email>
+ <email>wimmuskee@gmail.com</email>
+ <name>Wim Muskee</name>
</maintainer>
<longdescription>
Just a simple tool to erase all uneeded locale and man files usually generated for USE="nls"