1 |
commit: 769934c33699f0033e40a5a59e2459c0802ad437 |
2 |
Author: Aaron Bauman <bman <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 28 16:30:20 2018 +0000 |
4 |
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 28 23:01:58 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=769934c3 |
7 |
|
8 |
sys-apps/man: drop EAPI=2 ebuild |
9 |
|
10 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
11 |
|
12 |
sys-apps/man/man-1.6g.ebuild | 127 ------------------------------------------- |
13 |
1 file changed, 127 deletions(-) |
14 |
|
15 |
diff --git a/sys-apps/man/man-1.6g.ebuild b/sys-apps/man/man-1.6g.ebuild |
16 |
deleted file mode 100644 |
17 |
index eedcdcab96b..00000000000 |
18 |
--- a/sys-apps/man/man-1.6g.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,127 +0,0 @@ |
21 |
-# Copyright 1999-2018 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI="2" |
25 |
- |
26 |
-inherit eutils toolchain-funcs user |
27 |
- |
28 |
-DESCRIPTION="Standard commands to read man pages" |
29 |
-HOMEPAGE="http://primates.ximian.com/~flucifredi/man/" |
30 |
-SRC_URI="http://primates.ximian.com/~flucifredi/man/${P}.tar.gz" |
31 |
- |
32 |
-LICENSE="GPL-2" |
33 |
-SLOT="0" |
34 |
-KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd" |
35 |
-IUSE="+lzma nls selinux" |
36 |
- |
37 |
-DEPEND="nls? ( sys-devel/gettext )" |
38 |
-RDEPEND="|| ( >=sys-apps/groff-1.19.2-r1 app-doc/heirloom-doctools ) |
39 |
- !sys-apps/man-db |
40 |
- !<app-arch/lzma-4.63 |
41 |
- lzma? ( app-arch/xz-utils ) |
42 |
- selinux? ( sec-policy/selinux-makewhatis )" |
43 |
- |
44 |
-pkg_setup() { |
45 |
- enewgroup man 15 |
46 |
- enewuser man 13 -1 /usr/share/man man |
47 |
-} |
48 |
- |
49 |
-src_prepare() { |
50 |
- epatch "${FILESDIR}"/man-1.6f-man2html-compression-2.patch |
51 |
- epatch "${FILESDIR}"/man-1.6-cross-compile.patch |
52 |
- epatch "${FILESDIR}"/man-1.6f-unicode.patch #146315 |
53 |
- epatch "${FILESDIR}"/man-1.6c-cut-duplicate-manpaths.patch |
54 |
- epatch "${FILESDIR}"/man-1.5m2-apropos.patch |
55 |
- epatch "${FILESDIR}"/man-1.6g-fbsd.patch #138123 |
56 |
- epatch "${FILESDIR}"/man-1.6e-headers.patch |
57 |
- epatch "${FILESDIR}"/man-1.6f-so-search-2.patch |
58 |
- epatch "${FILESDIR}"/man-1.6g-compress.patch #205147 |
59 |
- epatch "${FILESDIR}"/man-1.6f-parallel-build.patch #207148 #258916 |
60 |
- epatch "${FILESDIR}"/man-1.6g-xz.patch #302380 |
61 |
- epatch "${FILESDIR}"/man-1.6f-makewhatis-compression-cleanup.patch #331979 |
62 |
- # make sure `less` handles escape sequences #287183 |
63 |
- sed -i -e '/^DEFAULTLESSOPT=/s:"$:R":' configure |
64 |
-} |
65 |
- |
66 |
-echoit() { echo "$@" ; "$@" ; } |
67 |
-src_configure() { |
68 |
- strip-linguas $(eval $(grep ^LANGUAGES= configure) ; echo ${LANGUAGES//,/ }) |
69 |
- |
70 |
- unset NLSPATH #175258 |
71 |
- |
72 |
- tc-export CC BUILD_CC |
73 |
- |
74 |
- local mylang= |
75 |
- if use nls ; then |
76 |
- if [[ -z ${LINGUAS} ]] ; then |
77 |
- mylang="all" |
78 |
- else |
79 |
- mylang="${LINGUAS// /,}" |
80 |
- fi |
81 |
- else |
82 |
- mylang="none" |
83 |
- fi |
84 |
- export COMPRESS |
85 |
- if use lzma ; then |
86 |
- COMPRESS=/usr/bin/xz |
87 |
- else |
88 |
- COMPRESS=/bin/bzip2 |
89 |
- fi |
90 |
- echoit \ |
91 |
- ./configure \ |
92 |
- -confdir=/etc \ |
93 |
- +sgid +fhs \ |
94 |
- +lang ${mylang} \ |
95 |
- || die "configure failed" |
96 |
-} |
97 |
- |
98 |
-src_install() { |
99 |
- unset NLSPATH #175258 |
100 |
- |
101 |
- emake PREFIX="${D}" install || die "make install failed" |
102 |
- dosym man /usr/bin/manpath |
103 |
- |
104 |
- dodoc LSM README* TODO |
105 |
- |
106 |
- # makewhatis only adds man-pages from the last 24hrs |
107 |
- exeinto /etc/cron.daily |
108 |
- newexe "${FILESDIR}"/makewhatis.cron makewhatis |
109 |
- |
110 |
- keepdir /var/cache/man |
111 |
- diropts -m0775 -g man |
112 |
- local mansects=$(grep ^MANSECT "${D}"/etc/man.conf | cut -f2-) |
113 |
- for x in ${mansects//:/ } ; do |
114 |
- keepdir /var/cache/man/cat${x} |
115 |
- done |
116 |
-} |
117 |
- |
118 |
-pkg_postinst() { |
119 |
- einfo "Forcing sane permissions onto ${ROOT}var/cache/man (Bug #40322)" |
120 |
- chown -R root:man "${ROOT}"/var/cache/man |
121 |
- chmod -R g+w "${ROOT}"/var/cache/man |
122 |
- [[ -e ${ROOT}/var/cache/man/whatis ]] \ |
123 |
- && chown root:0 "${ROOT}"/var/cache/man/whatis |
124 |
- |
125 |
- echo |
126 |
- |
127 |
- local f files=$(ls "${ROOT}"/etc/cron.{daily,weekly}/makewhatis{,.cron} 2>/dev/null) |
128 |
- for f in ${files} ; do |
129 |
- [[ ${f} == */etc/cron.daily/makewhatis ]] && continue |
130 |
- [[ $(md5sum "${f}") == "8b2016cc778ed4e2570b912c0f420266 "* ]] \ |
131 |
- && rm -f "${f}" |
132 |
- done |
133 |
- files=$(ls "${ROOT}"etc/cron.{daily,weekly}/makewhatis{,.cron} 2>/dev/null) |
134 |
- if [[ ${files/$'\n'} != ${files} ]] ; then |
135 |
- ewarn "You have multiple makewhatis cron files installed." |
136 |
- ewarn "You might want to delete all but one of these:" |
137 |
- ewarn ${files} |
138 |
- fi |
139 |
- |
140 |
- if has_version app-doc/heirloom-doctools; then |
141 |
- ewarn "Please note that the /etc/man.conf file installed will not" |
142 |
- ewarn "work with heirloom's nroff by default (yet)." |
143 |
- ewarn "" |
144 |
- ewarn "Check app-doc/heirloom-doctools elog messages for the proper" |
145 |
- ewarn "configuration." |
146 |
- fi |
147 |
-} |