Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 122271 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-5 / +16 lines)
Line  Link Here
0
-- app-i18n/man-pages-pl/man-pages-pl-20070628.ebuild
0
++ app-i18n/man-pages-pl/man-pages-pl-20070628.ebuild
Lines 9-24 Link Here
9
LICENSE="GPL-2"
9
LICENSE="GPL-2"
10
SLOT="0"
10
SLOT="0"
11
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
11
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
12
IUSE=""
12
IUSE="unicode"
13
13
14
RDEPEND=""
14
RDEPEND=""
15
DEPEND=""
15
DEPEND="unicode? ( virtual/libiconv )"
16
16
17
S=${WORKDIR}/pl_PL
17
S="${WORKDIR}/pl_PL"
18
18
19
src_unpack() {
19
src_unpack() {
20
	unpack ${A}
20
	unpack ${A}
21
	cd ${S}
21
	cd "${S}"
22
23
	if use unicode ; then
24
		elog "Converting manual pages from ISO-8859-2 to UTF-8"
25
		sed -i -e "s:mandir = @mandir@/pl:mandir = @mandir@/pl_PL.UTF-8:" man*/Makefile.am || die "sed Makefile.am failed"
26
		for x in $(find man* -type f) ; do
27
			if [[ $(file -b ${x}) == "troff or preprocessor input text" ]] ; then
28
				mv ${x} ${x}.ISO-8859-2
29
				iconv -f ISO-8859-2 -t UTF-8 -o ${x} ${x}.ISO-8859-2 || die "iconv ${x} failed"
30
			fi
31
		done
32
	fi
22
33
23
	# missing manpages
34
	# missing manpages
24
	sed -i -e '/\tpasswd.1/ d' man1/Makefile.am
35
	sed -i -e '/\tpasswd.1/ d' man1/Makefile.am

Return to bug 122271