|
Lines 2-8
Link Here
|
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/man/man-1.6f-r2.ebuild,v 1.1 2008/04/21 01:17:36 vapier Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/man/man-1.6f-r2.ebuild,v 1.1 2008/04/21 01:17:36 vapier Exp $ |
| 4 |
|
4 |
|
| 5 |
inherit eutils toolchain-funcs |
5 |
inherit eutils toolchain-funcs webapp |
|
|
6 |
|
| 7 |
WEBAPP_MANUAL_SLOT="yes" |
| 6 |
|
8 |
|
| 7 |
DESCRIPTION="Standard commands to read man pages" |
9 |
DESCRIPTION="Standard commands to read man pages" |
| 8 |
HOMEPAGE="http://primates.ximian.com/~flucifredi/man/" |
10 |
HOMEPAGE="http://primates.ximian.com/~flucifredi/man/" |
|
Lines 11-25
Link Here
|
| 11 |
LICENSE="GPL-2" |
13 |
LICENSE="GPL-2" |
| 12 |
SLOT="0" |
14 |
SLOT="0" |
| 13 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
15 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
| 14 |
IUSE="nls" |
16 |
IUSE="cgi nls" |
| 15 |
|
17 |
|
| 16 |
DEPEND="nls? ( sys-devel/gettext )" |
18 |
DEPEND="nls? ( sys-devel/gettext )" |
| 17 |
RDEPEND=">=sys-apps/groff-1.19.2-r1 |
19 |
RDEPEND=">=sys-apps/groff-1.19.2-r1 |
| 18 |
!sys-apps/man-db |
20 |
!sys-apps/man-db |
| 19 |
!app-arch/lzma" |
21 |
!app-arch/lzma |
|
|
22 |
cgi? ( virtual/httpd-cgi )" |
| 20 |
PROVIDE="virtual/man" |
23 |
PROVIDE="virtual/man" |
| 21 |
|
24 |
|
| 22 |
pkg_setup() { |
25 |
pkg_setup() { |
|
|
26 |
if use cgi ; then |
| 27 |
webapp_pkg_setup |
| 28 |
fi |
| 23 |
enewgroup man 15 |
29 |
enewgroup man 15 |
| 24 |
enewuser man 13 -1 /usr/share/man man |
30 |
enewuser man 13 -1 /usr/share/man man |
| 25 |
} |
31 |
} |
|
Lines 39-44
Link Here
|
| 39 |
epatch "${FILESDIR}"/man-1.6d-fbsd.patch |
45 |
epatch "${FILESDIR}"/man-1.6d-fbsd.patch |
| 40 |
epatch "${FILESDIR}"/man-1.6e-headers.patch |
46 |
epatch "${FILESDIR}"/man-1.6e-headers.patch |
| 41 |
epatch "${FILESDIR}"/man-1.6f-so-search.patch |
47 |
epatch "${FILESDIR}"/man-1.6f-so-search.patch |
|
|
48 |
epatch "${FILESDIR}"/man-1.6f-cgi.patch |
| 42 |
|
49 |
|
| 43 |
strip-linguas $(eval $(grep ^LANGUAGES= configure) ; echo ${LANGUAGES//,/ }) |
50 |
strip-linguas $(eval $(grep ^LANGUAGES= configure) ; echo ${LANGUAGES//,/ }) |
| 44 |
} |
51 |
} |
|
Lines 85-90
Link Here
|
| 85 |
for x in ${mansects//:/ } ; do |
92 |
for x in ${mansects//:/ } ; do |
| 86 |
keepdir /var/cache/man/cat${x} |
93 |
keepdir /var/cache/man/cat${x} |
| 87 |
done |
94 |
done |
|
|
95 |
|
| 96 |
if use cgi ; then |
| 97 |
webapp_src_preinst |
| 98 |
exeinto "${MY_CGIBINDIR}/man" |
| 99 |
doexe man2html/scripts/cgi-bin/man/* |
| 100 |
webapp_src_install |
| 101 |
|
| 102 |
insinto /usr/share/man-cgi-aux |
| 103 |
doins man2html/scripts/cgi-aux/man/* |
| 104 |
fi |
| 88 |
} |
105 |
} |
| 89 |
|
106 |
|
| 90 |
pkg_postinst() { |
107 |
pkg_postinst() { |
|
Lines 108-111
Link Here
|
| 108 |
ewarn "You might want to delete all but one of these:" |
125 |
ewarn "You might want to delete all but one of these:" |
| 109 |
ewarn ${files} |
126 |
ewarn ${files} |
| 110 |
fi |
127 |
fi |
|
|
128 |
|
| 129 |
if use cgi ; then |
| 130 |
webapp_pkg_postinst |
| 131 |
fi |
| 111 |
} |
132 |
} |