blob: 0cf7caab27f67f95490824a8d81eb3bd407b9182 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Copyright 1999-2013 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-r2.ebuild,v 1.5 2013/03/20 21:09:37 jer 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 ~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
}
|