summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/localepurge/localepurge-0.5.4-r2.ebuild')
-rw-r--r--app-admin/localepurge/localepurge-0.5.4-r2.ebuild43
1 files changed, 43 insertions, 0 deletions
diff --git a/app-admin/localepurge/localepurge-0.5.4-r2.ebuild b/app-admin/localepurge/localepurge-0.5.4-r2.ebuild
new file mode 100644
index 000000000000..46a15369f29b
--- /dev/null
+++ b/app-admin/localepurge/localepurge-0.5.4-r2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils prefix
+
+DESCRIPTION="Script to recover diskspace wasted for unneeded locale files and localized man pages"
+HOMEPAGE="http://gentoo.org
+http://cgit.gentoo.org/proj/localepurge.git"
+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 ~arm-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+DEPEND=""
+RDEPEND="app-shells/bash"
+
+S=${WORKDIR}/${PN}
+
+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
+ 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
+}