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-r2.ebuild
Date: Mon, 21 Apr 2008 01:17:39
Message-Id: E1Jnkf2-0002qs-NU@stork.gentoo.org
1 vapier 08/04/21 01:17:36
2
3 Modified: ChangeLog
4 Added: man-1.6f-r2.ebuild
5 Log:
6 Make uncompressed .so searching better.
7 (Portage version: 2.2_pre5)
8
9 Revision Changes Path
10 1.128 sys-apps/man/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/man/ChangeLog?rev=1.128&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/man/ChangeLog?rev=1.128&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/man/ChangeLog?r1=1.127&r2=1.128
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-apps/man/ChangeLog,v
19 retrieving revision 1.127
20 retrieving revision 1.128
21 diff -u -r1.127 -r1.128
22 --- ChangeLog 24 Feb 2008 19:00:51 -0000 1.127
23 +++ ChangeLog 21 Apr 2008 01:17:36 -0000 1.128
24 @@ -1,6 +1,12 @@
25 # ChangeLog for sys-apps/man
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/man/ChangeLog,v 1.127 2008/02/24 19:00:51 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/man/ChangeLog,v 1.128 2008/04/21 01:17:36 vapier Exp $
29 +
30 +*man-1.6f-r2 (21 Apr 2008)
31 +
32 + 21 Apr 2008; Mike Frysinger <vapier@g.o>
33 + +files/man-1.6f-so-search.patch, +man-1.6f-r2.ebuild:
34 + Make uncompressed .so searching better.
35
36 *man-1.6f-r1 (24 Feb 2008)
37
38
39
40
41 1.1 sys-apps/man/man-1.6f-r2.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/man/man-1.6f-r2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/man/man-1.6f-r2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: man-1.6f-r2.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-apps/man/man-1.6f-r2.ebuild,v 1.1 2008/04/21 01:17:36 vapier Exp $
51
52 inherit eutils toolchain-funcs
53
54 DESCRIPTION="Standard commands to read man pages"
55 HOMEPAGE="http://primates.ximian.com/~flucifredi/man/"
56 SRC_URI="http://primates.ximian.com/~flucifredi/man/${P}.tar.gz"
57
58 LICENSE="GPL-2"
59 SLOT="0"
60 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
61 IUSE="nls"
62
63 DEPEND="nls? ( sys-devel/gettext )"
64 RDEPEND=">=sys-apps/groff-1.19.2-r1
65 !sys-apps/man-db
66 !app-arch/lzma"
67 PROVIDE="virtual/man"
68
69 pkg_setup() {
70 enewgroup man 15
71 enewuser man 13 -1 /usr/share/man man
72 }
73
74 src_unpack() {
75 unpack ${A}
76 cd "${S}"
77
78 epatch "${FILESDIR}"/man-1.6f-man2html-compression.patch
79 epatch "${FILESDIR}"/man-1.6-cross-compile.patch
80 epatch "${FILESDIR}"/man-1.5p-search-order.patch
81 epatch "${FILESDIR}"/man-1.6f-unicode.patch #146315
82 epatch "${FILESDIR}"/man-1.5p-defmanpath-symlinks.patch
83 epatch "${FILESDIR}"/man-1.6b-more-sections.patch
84 epatch "${FILESDIR}"/man-1.6c-cut-duplicate-manpaths.patch
85 epatch "${FILESDIR}"/man-1.5m2-apropos.patch
86 epatch "${FILESDIR}"/man-1.6d-fbsd.patch
87 epatch "${FILESDIR}"/man-1.6e-headers.patch
88 epatch "${FILESDIR}"/man-1.6f-so-search.patch
89
90 strip-linguas $(eval $(grep ^LANGUAGES= configure) ; echo ${LANGUAGES//,/ })
91 }
92
93 src_compile() {
94 unset NLSPATH #175258
95
96 tc-export CC BUILD_CC
97
98 local mylang=
99 if use nls ; then
100 if [[ -z ${LINGUAS} ]] ; then
101 mylang="all"
102 else
103 mylang="${LINGUAS// /,}"
104 fi
105 else
106 mylang="none"
107 fi
108 ./configure \
109 -confdir=/etc \
110 +sgid +fhs \
111 +lang ${mylang} \
112 || die "configure failed"
113
114 emake || die "emake failed"
115 }
116
117 src_install() {
118 unset NLSPATH #175258
119
120 emake PREFIX="${D}" install || die "make install failed"
121 dosym man /usr/bin/manpath
122
123 dodoc LSM README* TODO
124
125 # makewhatis only adds man-pages from the last 24hrs
126 exeinto /etc/cron.daily
127 newexe "${FILESDIR}"/makewhatis.cron makewhatis
128
129 keepdir /var/cache/man
130 diropts -m0775 -g man
131 local mansects=$(grep ^MANSECT "${D}"/etc/man.conf | cut -f2-)
132 for x in ${mansects//:/ } ; do
133 keepdir /var/cache/man/cat${x}
134 done
135 }
136
137 pkg_postinst() {
138 einfo "Forcing sane permissions onto ${ROOT}/var/cache/man (Bug #40322)"
139 chown -R root:man "${ROOT}"/var/cache/man
140 chmod -R g+w "${ROOT}"/var/cache/man
141 [[ -e ${ROOT}/var/cache/man/whatis ]] \
142 && chown root:0 "${ROOT}"/var/cache/man/whatis
143
144 echo
145
146 local f files=$(ls "${ROOT}"/etc/cron.{daily,weekly}/makewhatis{,.cron} 2>/dev/null)
147 for f in ${files} ; do
148 [[ ${f} == */etc/cron.daily/makewhatis ]] && continue
149 [[ $(md5sum "${f}") == "8b2016cc778ed4e2570b912c0f420266 "* ]] \
150 && rm -f "${f}"
151 done
152 files=$(ls "${ROOT}"/etc/cron.{daily,weekly}/makewhatis{,.cron} 2>/dev/null)
153 if [[ ${files/$'\n'} != ${files} ]] ; then
154 ewarn "You have multiple makewhatis cron files installed."
155 ewarn "You might want to delete all but one of these:"
156 ewarn ${files}
157 fi
158 }
159
160
161
162 --
163 gentoo-commits@l.g.o mailing list