/[gentoo-x86]/sys-apps/man-db/man-db-2.6.2.ebuild
Gentoo

Contents of /sys-apps/man-db/man-db-2.6.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Dec 29 14:47:49 2013 UTC (9 months ago) by swift
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +4 -3 lines
Fix bug #496158 - Add selinux-mandb dependency on man-db

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x2EDD52403B68AF47)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/man-db/man-db-2.6.2.ebuild,v 1.1 2012/07/24 15:59:58 vapier Exp $
4
5 EAPI="4"
6
7 inherit eutils user
8
9 DESCRIPTION="a man replacement that utilizes berkdb instead of flat files"
10 HOMEPAGE="http://www.nongnu.org/man-db/"
11 SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
12
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
16 IUSE="berkdb +gdbm nls selinux static-libs zlib"
17
18 RDEPEND="dev-libs/libpipeline
19 berkdb? ( sys-libs/db )
20 gdbm? ( sys-libs/gdbm )
21 !berkdb? ( !gdbm? ( sys-libs/gdbm ) )
22 selinux? ( sec-policy/selinux-mandb )
23 sys-apps/groff
24 zlib? ( sys-libs/zlib )
25 !sys-apps/man"
26 DEPEND="${RDEPEND}
27 virtual/pkgconfig
28 nls? ( sys-devel/gettext )"
29
30 pkg_setup() {
31 # Create user now as Makefile in src_install does setuid/chown
32 enewgroup man 15
33 enewuser man 13 -1 /usr/share/man man
34 }
35
36 src_prepare() {
37 epatch "${FILESDIR}"/${PN}-2.6.1-no-gets.patch #427252
38 }
39
40 src_configure() {
41 export ac_cv_lib_z_gzopen=$(usex zlib)
42 econf \
43 --with-sections="1 1p 8 2 3 3p 4 5 6 7 9 0p tcl n l p o 1x 2x 3x 4x 5x 6x 7x 8x" \
44 $(use_enable nls) \
45 $(use_enable static-libs static) \
46 --with-db=$(usex gdbm gdbm $(usex berkdb db gdbm))
47 }
48
49 src_install() {
50 default
51 dodoc docs/{HACKING,TODO}
52 use static-libs || find "${ED}"/usr/ -name '*.la' -delete
53 }

  ViewVC Help
Powered by ViewVC 1.1.20