Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/man: ChangeLog man-1.6f-r4.ebuild
Date: Wed, 27 Jan 2010 02:35:19
Message-Id: E1NZxkS-0004SE-A6@stork.gentoo.org
1 vapier 10/01/27 02:35:16
2
3 Modified: ChangeLog
4 Added: man-1.6f-r4.ebuild
5 Log:
6 Tweak log output #194532 by Ken Rushia. Fix by Kevin Pyle for parallel build errors #207148 by Csaba Tóth. Fix parallel build warnings #258916 by Mr. Anderson. Add the -r option to default less options #287183 by Martin Baselier. Add support for xz compression #302380 by Dror Levin.
7 (Portage version: 2.2_rc61/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.155 sys-apps/man/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/man/ChangeLog?rev=1.155&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/man/ChangeLog?rev=1.155&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/man/ChangeLog?r1=1.154&r2=1.155
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-apps/man/ChangeLog,v
19 retrieving revision 1.154
20 retrieving revision 1.155
21 diff -u -r1.154 -r1.155
22 --- ChangeLog 29 Sep 2009 11:45:01 -0000 1.154
23 +++ ChangeLog 27 Jan 2010 02:35:14 -0000 1.155
24 @@ -1,6 +1,17 @@
25 # ChangeLog for sys-apps/man
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/man/ChangeLog,v 1.154 2009/09/29 11:45:01 flameeyes Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/man/ChangeLog,v 1.155 2010/01/27 02:35:14 vapier Exp $
30 +
31 +*man-1.6f-r4 (27 Jan 2010)
32 +
33 + 27 Jan 2010; Mike Frysinger <vapier@g.o> +man-1.6f-r4.ebuild,
34 + +files/man-1.6f-man2html-compression-2.patch,
35 + +files/man-1.6f-parallel-build.patch, +files/man-1.6f-so-search-2.patch,
36 + +files/man-1.6f-xz.patch:
37 + Tweak log output #194532 by Ken Rushia. Fix by Kevin Pyle for parallel
38 + build errors #207148 by Csaba Tóth. Fix parallel build warnings #258916
39 + by Mr. Anderson. Add the -r option to default less options #287183 by
40 + Martin Baselier. Add support for xz compression #302380 by Dror Levin.
41
42 29 Sep 2009; Diego E. Pettenò <flameeyes@g.o> man-1.6f-r3.ebuild:
43 Fix package name.
44
45
46
47 1.1 sys-apps/man/man-1.6f-r4.ebuild
48
49 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/man/man-1.6f-r4.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/man/man-1.6f-r4.ebuild?rev=1.1&content-type=text/plain
51
52 Index: man-1.6f-r4.ebuild
53 ===================================================================
54 # Copyright 1999-2010 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/sys-apps/man/man-1.6f-r4.ebuild,v 1.1 2010/01/27 02:35:14 vapier Exp $
57
58 EAPI="2"
59 inherit eutils toolchain-funcs
60
61 DESCRIPTION="Standard commands to read man pages"
62 HOMEPAGE="http://primates.ximian.com/~flucifredi/man/"
63 SRC_URI="http://primates.ximian.com/~flucifredi/man/${P}.tar.gz"
64
65 LICENSE="GPL-2"
66 SLOT="0"
67 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
68 IUSE="lzma nls"
69
70 DEPEND="nls? ( sys-devel/gettext )"
71 RDEPEND="|| ( >=sys-apps/groff-1.19.2-r1 app-doc/heirloom-doctools )
72 !sys-apps/man-db
73 !app-arch/lzma
74 lzma? ( app-arch/xz-utils )"
75 PROVIDE="virtual/man"
76
77 pkg_setup() {
78 enewgroup man 15
79 enewuser man 13 -1 /usr/share/man man
80 }
81
82 src_prepare() {
83 epatch "${FILESDIR}"/man-1.6f-man2html-compression-2.patch
84 epatch "${FILESDIR}"/man-1.6-cross-compile.patch
85 epatch "${FILESDIR}"/man-1.5p-search-order.patch
86 epatch "${FILESDIR}"/man-1.6f-unicode.patch #146315
87 epatch "${FILESDIR}"/man-1.5p-defmanpath-symlinks.patch
88 epatch "${FILESDIR}"/man-1.6b-more-sections.patch
89 epatch "${FILESDIR}"/man-1.6c-cut-duplicate-manpaths.patch
90 epatch "${FILESDIR}"/man-1.5m2-apropos.patch
91 epatch "${FILESDIR}"/man-1.6d-fbsd.patch
92 epatch "${FILESDIR}"/man-1.6e-headers.patch
93 epatch "${FILESDIR}"/man-1.6f-so-search-2.patch
94 epatch "${FILESDIR}"/man-1.6f-compress.patch
95 epatch "${FILESDIR}"/man-1.6f-parallel-build.patch #207148 #258916
96 epatch "${FILESDIR}"/man-1.6f-xz.patch #302380
97 # make sure `less` handles escape sequences #287183
98 sed -i -e '/^DEFAULTLESSOPT=/s:"$:R":' configure
99 }
100
101 src_configure() {
102 strip-linguas $(eval $(grep ^LANGUAGES= configure) ; echo ${LANGUAGES//,/ })
103
104 unset NLSPATH #175258
105
106 tc-export CC BUILD_CC
107
108 local mylang=
109 if use nls ; then
110 if [[ -z ${LINGUAS} ]] ; then
111 mylang="all"
112 else
113 mylang="${LINGUAS// /,}"
114 fi
115 else
116 mylang="none"
117 fi
118 if use lzma; then
119 mycompress=/usr/bin/lzma
120 else
121 mycompress=/bin/bzip2
122 fi
123 COMPRESS=$mycompress \
124 ./configure \
125 -confdir=/etc \
126 +sgid +fhs \
127 +lang ${mylang} \
128 || die "configure failed"
129 }
130
131 src_install() {
132 unset NLSPATH #175258
133
134 emake PREFIX="${D}" install || die "make install failed"
135 dosym man /usr/bin/manpath
136
137 dodoc LSM README* TODO
138
139 # makewhatis only adds man-pages from the last 24hrs
140 exeinto /etc/cron.daily
141 newexe "${FILESDIR}"/makewhatis.cron makewhatis
142
143 keepdir /var/cache/man
144 diropts -m0775 -g man
145 local mansects=$(grep ^MANSECT "${D}"/etc/man.conf | cut -f2-)
146 for x in ${mansects//:/ } ; do
147 keepdir /var/cache/man/cat${x}
148 done
149 }
150
151 pkg_postinst() {
152 einfo "Forcing sane permissions onto ${ROOT}var/cache/man (Bug #40322)"
153 chown -R root:man "${ROOT}"/var/cache/man
154 chmod -R g+w "${ROOT}"/var/cache/man
155 [[ -e ${ROOT}/var/cache/man/whatis ]] \
156 && chown root:0 "${ROOT}"/var/cache/man/whatis
157
158 echo
159
160 local f files=$(ls "${ROOT}"/etc/cron.{daily,weekly}/makewhatis{,.cron} 2>/dev/null)
161 for f in ${files} ; do
162 [[ ${f} == */etc/cron.daily/makewhatis ]] && continue
163 [[ $(md5sum "${f}") == "8b2016cc778ed4e2570b912c0f420266 "* ]] \
164 && rm -f "${f}"
165 done
166 files=$(ls "${ROOT}"etc/cron.{daily,weekly}/makewhatis{,.cron} 2>/dev/null)
167 if [[ ${files/$'\n'} != ${files} ]] ; then
168 ewarn "You have multiple makewhatis cron files installed."
169 ewarn "You might want to delete all but one of these:"
170 ewarn ${files}
171 fi
172
173 if has_version app-doc/heirloom-doctools; then
174 ewarn "Please note that the /etc/man.conf file installed will not"
175 ewarn "work with heirloom's nroff by default (yet)."
176 ewarn ""
177 ewarn "Check app-doc/heirloom-doctools elog messages for the proper"
178 ewarn "configuration."
179 fi
180 }