summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2014-12-22 10:16:44 +0000
committerLars Wendler <polynomial-c@gentoo.org>2014-12-22 10:16:44 +0000
commit516d5560b81b6d0d7d6aba0df5f986967cdb2337 (patch)
tree9c85650ddf757d3fa32529dbaf5a97d8c7213a97 /sys-apps/man-db
parentversion bump (diff)
downloadgentoo-2-516d5560b81b6d0d7d6aba0df5f986967cdb2337.tar.gz
gentoo-2-516d5560b81b6d0d7d6aba0df5f986967cdb2337.tar.bz2
gentoo-2-516d5560b81b6d0d7d6aba0df5f986967cdb2337.zip
Version bump. Removed old
(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)
Diffstat (limited to 'sys-apps/man-db')
-rw-r--r--sys-apps/man-db/ChangeLog11
-rw-r--r--sys-apps/man-db/files/man-db-2.6.0.2-flock.h.patch69
-rw-r--r--sys-apps/man-db/files/man-db-2.6.1-no-gets.patch24
-rw-r--r--sys-apps/man-db/man-db-2.6.0.2.ebuild53
-rw-r--r--sys-apps/man-db/man-db-2.6.1.ebuild53
-rw-r--r--sys-apps/man-db/man-db-2.6.2.ebuild53
-rw-r--r--sys-apps/man-db/man-db-2.6.3-r1.ebuild72
-rw-r--r--sys-apps/man-db/man-db-2.6.3.ebuild50
-rw-r--r--sys-apps/man-db/man-db-2.6.4.ebuild75
-rw-r--r--sys-apps/man-db/man-db-2.7.1.ebuild (renamed from sys-apps/man-db/man-db-2.6.5.ebuild)21
10 files changed, 25 insertions, 456 deletions
diff --git a/sys-apps/man-db/ChangeLog b/sys-apps/man-db/ChangeLog
index 16ab5e9d1c25..a814094eaa67 100644
--- a/sys-apps/man-db/ChangeLog
+++ b/sys-apps/man-db/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for sys-apps/man-db
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/man-db/ChangeLog,v 1.76 2014/11/02 09:48:46 swift Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/man-db/ChangeLog,v 1.77 2014/12/22 10:16:44 polynomial-c Exp $
+
+*man-db-2.7.1 (22 Dec 2014)
+
+ 22 Dec 2014; Lars Wendler <polynomial-c@gentoo.org> -man-db-2.6.0.2.ebuild,
+ -man-db-2.6.1.ebuild, -man-db-2.6.2.ebuild, -man-db-2.6.3.ebuild,
+ -man-db-2.6.3-r1.ebuild, -man-db-2.6.4.ebuild, -man-db-2.6.5.ebuild,
+ +man-db-2.7.1.ebuild, -files/man-db-2.6.0.2-flock.h.patch,
+ -files/man-db-2.6.1-no-gets.patch:
+ Version bump. Removed old.
02 Nov 2014; Sven Vermeulen <swift@gentoo.org> man-db-2.6.6.ebuild,
man-db-2.6.7.1.ebuild:
diff --git a/sys-apps/man-db/files/man-db-2.6.0.2-flock.h.patch b/sys-apps/man-db/files/man-db-2.6.0.2-flock.h.patch
deleted file mode 100644
index 6fbce45d1562..000000000000
--- a/sys-apps/man-db/files/man-db-2.6.0.2-flock.h.patch
+++ /dev/null
@@ -1,69 +0,0 @@
-Bug #371937
-
-=== modified file 'NEWS'
---- a/NEWS 2011-04-13 10:57:54 +0000
-+++ a/NEWS 2011-06-16 11:22:10 +0000
-@@ -1,3 +1,13 @@
-+man-db 2.6.1
-+============
-+
-+Major changes since man-db 2.6.0.2:
-+
-+ Fixes:
-+ ------
-+
-+ o --with-db=db* and --with-db=ndbm compile again.
-+
- man-db 2.6.0.2 (13 April 2011)
- ==============================
-
-
-=== modified file 'libdb/db_btree.c'
---- a/libdb/db_btree.c 2010-09-26 21:08:59 +0000
-+++ a/libdb/db_btree.c 2011-06-16 11:22:10 +0000
-@@ -32,10 +32,7 @@
- #include <errno.h>
- #include <string.h>
-
--#if HAVE_SYS_FILE_H
--# include <sys/file.h> /* for flock() */
--#endif
--
-+#include <sys/file.h> /* for flock() */
- #include <sys/types.h> /* for open() */
- #include <sys/stat.h>
-
-@@ -48,7 +45,6 @@
- #include "manconfig.h"
-
- #include "error.h"
--#include "flock.h"
- #include "hashtable.h"
-
- #include "mydbm.h"
-
-=== modified file 'libdb/db_ndbm.c'
---- a/libdb/db_ndbm.c 2008-12-03 10:57:14 +0000
-+++ a/libdb/db_ndbm.c 2011-06-16 11:22:10 +0000
-@@ -29,10 +29,7 @@
- #include <stdlib.h>
- #include <stdio.h>
-
--#if HAVE_SYS_FILE_H
--# include <sys/file.h> /* for flock() */
--#endif
--
-+#include <sys/file.h> /* for flock() */
- #include <sys/types.h> /* for open() */
- #include <sys/stat.h>
-
-@@ -46,8 +43,6 @@
-
- #include "manconfig.h"
-
--#include "flock.h"
--
- #include "mydbm.h"
- #include "db_storage.h"
-
-
diff --git a/sys-apps/man-db/files/man-db-2.6.1-no-gets.patch b/sys-apps/man-db/files/man-db-2.6.1-no-gets.patch
deleted file mode 100644
index 787e6901bc07..000000000000
--- a/sys-apps/man-db/files/man-db-2.6.1-no-gets.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-https://bugs.gentoo.org/427252
-
-hack until man-db pulls a newer gnulib version
-
-From 66712c23388e93e5c518ebc8515140fa0c807348 Mon Sep 17 00:00:00 2001
-From: Eric Blake <eblake@redhat.com>
-Date: Thu, 29 Mar 2012 13:30:41 -0600
-Subject: [PATCH] stdio: don't assume gets any more
-
-Gnulib intentionally does not have a gets module, and now that C11
-and glibc have dropped it, we should be more proactive about warning
-any user on a platform that still has a declaration of this dangerous
-interface.
-
---- a/gnulib/lib/stdio.in.h
-+++ b/gnulib/lib/stdio.in.h
-@@ -125,7 +125,6 @@
- /* It is very rare that the developer ever has full control of stdin,
- so any use of gets warrants an unconditional warning. Assume it is
- always declared, since it is required by C89. */
--_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
- #endif
-
-
diff --git a/sys-apps/man-db/man-db-2.6.0.2.ebuild b/sys-apps/man-db/man-db-2.6.0.2.ebuild
deleted file mode 100644
index 4ebe2834ea54..000000000000
--- a/sys-apps/man-db/man-db-2.6.0.2.ebuild
+++ /dev/null
@@ -1,53 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/man-db/man-db-2.6.0.2.ebuild,v 1.13 2013/12/29 14:47:49 swift Exp $
-
-EAPI="2"
-
-inherit eutils user
-
-DESCRIPTION="a man replacement that utilizes berkdb instead of flat files"
-HOMEPAGE="http://www.nongnu.org/man-db/"
-SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-IUSE="berkdb +gdbm nls selinux static-libs zlib"
-
-RDEPEND="dev-libs/libpipeline
- berkdb? ( sys-libs/db )
- gdbm? ( sys-libs/gdbm )
- !berkdb? ( !gdbm? ( sys-libs/gdbm ) )
- || ( sys-apps/groff >=app-doc/heirloom-doctools-080407-r2 )
- selinux? ( sec-policy/selinux-mandb )
- zlib? ( sys-libs/zlib )
- !sys-apps/man"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
- nls? ( sys-devel/gettext )"
-
-pkg_setup() {
- # Create user now as Makefile in src_install does setuid/chown
- enewgroup man 15
- enewuser man 13 -1 /usr/share/man man
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-2.6.0.2-flock.h.patch #371937
-}
-
-src_configure() {
- export ac_cv_lib_z_gzopen=$(usex zlib)
- econf \
- --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" \
- $(use_enable nls) \
- $(use_enable static-libs static) \
- --with-db=$(usex gdbm gdbm $(usex berkdb db gdbm))
-}
-
-src_install() {
- emake install DESTDIR="${D}" || die
- dodoc README ChangeLog NEWS docs/{HACKING,TODO}
- use static-libs || find "${D}"/usr/lib* -name '*.la' -delete
-}
diff --git a/sys-apps/man-db/man-db-2.6.1.ebuild b/sys-apps/man-db/man-db-2.6.1.ebuild
deleted file mode 100644
index b7865dab72e8..000000000000
--- a/sys-apps/man-db/man-db-2.6.1.ebuild
+++ /dev/null
@@ -1,53 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/man-db/man-db-2.6.1.ebuild,v 1.5 2013/12/29 14:47:48 swift Exp $
-
-EAPI="4"
-
-inherit eutils user
-
-DESCRIPTION="a man replacement that utilizes berkdb instead of flat files"
-HOMEPAGE="http://www.nongnu.org/man-db/"
-SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-IUSE="berkdb +gdbm nls selinux static-libs zlib"
-
-RDEPEND="dev-libs/libpipeline
- berkdb? ( sys-libs/db )
- gdbm? ( sys-libs/gdbm )
- !berkdb? ( !gdbm? ( sys-libs/gdbm ) )
- sys-apps/groff
- selinux? ( sec-policy/selinux-mandb )
- zlib? ( sys-libs/zlib )
- !sys-apps/man"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
- nls? ( sys-devel/gettext )"
-
-pkg_setup() {
- # Create user now as Makefile in src_install does setuid/chown
- enewgroup man 15
- enewuser man 13 -1 /usr/share/man man
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-2.6.1-no-gets.patch #427252
-}
-
-src_configure() {
- export ac_cv_lib_z_gzopen=$(usex zlib)
- econf \
- --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" \
- $(use_enable nls) \
- $(use_enable static-libs static) \
- --with-db=$(usex gdbm gdbm $(usex berkdb db gdbm))
-}
-
-src_install() {
- default
- dodoc docs/{HACKING,TODO}
- use static-libs || find "${ED}"/usr/ -name '*.la' -delete
-}
diff --git a/sys-apps/man-db/man-db-2.6.2.ebuild b/sys-apps/man-db/man-db-2.6.2.ebuild
deleted file mode 100644
index 56b2513e9479..000000000000
--- a/sys-apps/man-db/man-db-2.6.2.ebuild
+++ /dev/null
@@ -1,53 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/man-db/man-db-2.6.2.ebuild,v 1.2 2013/12/29 14:47:49 swift Exp $
-
-EAPI="4"
-
-inherit eutils user
-
-DESCRIPTION="a man replacement that utilizes berkdb instead of flat files"
-HOMEPAGE="http://www.nongnu.org/man-db/"
-SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-IUSE="berkdb +gdbm nls selinux static-libs zlib"
-
-RDEPEND="dev-libs/libpipeline
- berkdb? ( sys-libs/db )
- gdbm? ( sys-libs/gdbm )
- !berkdb? ( !gdbm? ( sys-libs/gdbm ) )
- selinux? ( sec-policy/selinux-mandb )
- sys-apps/groff
- zlib? ( sys-libs/zlib )
- !sys-apps/man"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
- nls? ( sys-devel/gettext )"
-
-pkg_setup() {
- # Create user now as Makefile in src_install does setuid/chown
- enewgroup man 15
- enewuser man 13 -1 /usr/share/man man
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-2.6.1-no-gets.patch #427252
-}
-
-src_configure() {
- export ac_cv_lib_z_gzopen=$(usex zlib)
- econf \
- --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" \
- $(use_enable nls) \
- $(use_enable static-libs static) \
- --with-db=$(usex gdbm gdbm $(usex berkdb db gdbm))
-}
-
-src_install() {
- default
- dodoc docs/{HACKING,TODO}
- use static-libs || find "${ED}"/usr/ -name '*.la' -delete
-}
diff --git a/sys-apps/man-db/man-db-2.6.3-r1.ebuild b/sys-apps/man-db/man-db-2.6.3-r1.ebuild
deleted file mode 100644
index a191f874c83b..000000000000
--- a/sys-apps/man-db/man-db-2.6.3-r1.ebuild
+++ /dev/null
@@ -1,72 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/man-db/man-db-2.6.3-r1.ebuild,v 1.17 2013/12/29 14:47:48 swift Exp $
-
-EAPI="4"
-
-inherit eutils user
-
-DESCRIPTION="a man replacement that utilizes berkdb instead of flat files"
-HOMEPAGE="http://www.nongnu.org/man-db/"
-SRC_URI="mirror://nongnu/${PN}/${P}.tar.xz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~arm-linux ~x86-linux"
-IUSE="berkdb +gdbm nls selinux static-libs zlib"
-
-RDEPEND="dev-libs/libpipeline
- berkdb? ( sys-libs/db )
- gdbm? ( sys-libs/gdbm )
- !berkdb? ( !gdbm? ( sys-libs/gdbm ) )
- sys-apps/groff
- selinux? ( sec-policy/selinux-mandb )
- zlib? ( sys-libs/zlib )
- !sys-apps/man"
-DEPEND="${RDEPEND}
- app-arch/xz-utils
- virtual/pkgconfig
- nls? ( sys-devel/gettext )"
-
-pkg_setup() {
- # Create user now as Makefile in src_install does setuid/chown
- enewgroup man 15
- enewuser man 13 -1 /usr/share/man man
-}
-
-src_configure() {
- export ac_cv_lib_z_gzopen=$(usex zlib)
- econf \
- --docdir='$(datarootdir)'/doc/${PF} \
- --enable-setuid \
- --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" \
- $(use_enable nls) \
- $(use_enable static-libs static) \
- --with-db=$(usex gdbm gdbm $(usex berkdb db gdbm))
-}
-
-src_install() {
- default
- dodoc docs/{HACKING,TODO}
- use static-libs || find "${ED}"/usr/ -name '*.la' -delete
-
- exeinto /etc/cron.daily
- newexe "${FILESDIR}"/man-db.cron man-db #289884
-
- keepdir /var/cache/man
- fowners man:root /var/cache/man
- fperms 2755 /var/cache/man
-}
-
-pkg_preinst() {
- if [[ -f ${EROOT}var/cache/man/whatis ]] ; then
- einfo "Cleaning ${EROOT}var/cache/man from sys-apps/man"
- find "${EROOT}"var/cache/man -type f '!' '(' -name index.bt -o -name index.db ')' -delete
- fi
- if [[ ! -g ${EROOT}var/cache/man ]] ; then
- einfo "Resetting permissions on ${EROOT}var/cache/man" #447944
- mkdir -p "${EROOT}var/cache/man"
- chown -R man:root "${EROOT}"var/cache/man
- find "${EROOT}"var/cache/man -type d '!' -perm /g=s -exec chmod 2755 {} +
- fi
-}
diff --git a/sys-apps/man-db/man-db-2.6.3.ebuild b/sys-apps/man-db/man-db-2.6.3.ebuild
deleted file mode 100644
index 8f3e3abbc47b..000000000000
--- a/sys-apps/man-db/man-db-2.6.3.ebuild
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/man-db/man-db-2.6.3.ebuild,v 1.2 2013/12/29 14:47:48 swift Exp $
-
-EAPI="4"
-
-inherit eutils user
-
-DESCRIPTION="a man replacement that utilizes berkdb instead of flat files"
-HOMEPAGE="http://www.nongnu.org/man-db/"
-SRC_URI="mirror://nongnu/${PN}/${P}.tar.xz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-IUSE="berkdb +gdbm nls selinux static-libs zlib"
-
-RDEPEND="dev-libs/libpipeline
- berkdb? ( sys-libs/db )
- gdbm? ( sys-libs/gdbm )
- !berkdb? ( !gdbm? ( sys-libs/gdbm ) )
- sys-apps/groff
- selinux? ( sec-policy/selinux-mandb )
- zlib? ( sys-libs/zlib )
- !sys-apps/man"
-DEPEND="${RDEPEND}
- app-arch/xz-utils
- virtual/pkgconfig
- nls? ( sys-devel/gettext )"
-
-pkg_setup() {
- # Create user now as Makefile in src_install does setuid/chown
- enewgroup man 15
- enewuser man 13 -1 /usr/share/man man
-}
-
-src_configure() {
- export ac_cv_lib_z_gzopen=$(usex zlib)
- econf \
- --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" \
- $(use_enable nls) \
- $(use_enable static-libs static) \
- --with-db=$(usex gdbm gdbm $(usex berkdb db gdbm))
-}
-
-src_install() {
- default
- dodoc docs/{HACKING,TODO}
- use static-libs || find "${ED}"/usr/ -name '*.la' -delete
-}
diff --git a/sys-apps/man-db/man-db-2.6.4.ebuild b/sys-apps/man-db/man-db-2.6.4.ebuild
deleted file mode 100644
index 84acf3a9f397..000000000000
--- a/sys-apps/man-db/man-db-2.6.4.ebuild
+++ /dev/null
@@ -1,75 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/man-db/man-db-2.6.4.ebuild,v 1.2 2013/12/29 14:47:49 swift Exp $
-
-EAPI="4"
-
-inherit eutils user
-
-DESCRIPTION="a man replacement that utilizes berkdb instead of flat files"
-HOMEPAGE="http://www.nongnu.org/man-db/"
-SRC_URI="mirror://nongnu/${PN}/${P}.tar.xz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~arm-linux ~x86-linux"
-IUSE="berkdb +gdbm nls selinux static-libs zlib"
-
-RDEPEND="dev-libs/libpipeline
- berkdb? ( sys-libs/db )
- gdbm? ( sys-libs/gdbm )
- !berkdb? ( !gdbm? ( sys-libs/gdbm ) )
- sys-apps/groff
- selinux? ( sec-policy/selinux-mandb )
- zlib? ( sys-libs/zlib )
- !sys-apps/man"
-DEPEND="${RDEPEND}
- app-arch/xz-utils
- virtual/pkgconfig
- nls? (
- app-text/po4a
- sys-devel/gettext
- )"
-
-pkg_setup() {
- # Create user now as Makefile in src_install does setuid/chown
- enewgroup man 15
- enewuser man 13 -1 /usr/share/man man
-}
-
-src_configure() {
- export ac_cv_lib_z_gzopen=$(usex zlib)
- econf \
- --docdir='$(datarootdir)'/doc/${PF} \
- --enable-setuid \
- --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" \
- $(use_enable nls) \
- $(use_enable static-libs static) \
- --with-db=$(usex gdbm gdbm $(usex berkdb db gdbm))
-}
-
-src_install() {
- default
- dodoc docs/{HACKING,TODO}
- prune_libtool_files
-
- exeinto /etc/cron.daily
- newexe "${FILESDIR}"/man-db.cron man-db #289884
-
- keepdir /var/cache/man
- fowners man:root /var/cache/man
- fperms 2755 /var/cache/man
-}
-
-pkg_preinst() {
- if [[ -f ${EROOT}var/cache/man/whatis ]] ; then
- einfo "Cleaning ${EROOT}var/cache/man from sys-apps/man"
- find "${EROOT}"var/cache/man -type f '!' '(' -name index.bt -o -name index.db ')' -delete
- fi
- if [[ ! -g ${EROOT}var/cache/man ]] ; then
- einfo "Resetting permissions on ${EROOT}var/cache/man" #447944
- mkdir -p "${EROOT}var/cache/man"
- chown -R man:root "${EROOT}"var/cache/man
- find "${EROOT}"var/cache/man -type d '!' -perm /g=s -exec chmod 2755 {} +
- fi
-}
diff --git a/sys-apps/man-db/man-db-2.6.5.ebuild b/sys-apps/man-db/man-db-2.7.1.ebuild
index 06139e051c79..466a42d8fc42 100644
--- a/sys-apps/man-db/man-db-2.6.5.ebuild
+++ b/sys-apps/man-db/man-db-2.7.1.ebuild
@@ -1,10 +1,10 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/man-db/man-db-2.6.5.ebuild,v 1.14 2014/01/26 12:18:53 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/man-db/man-db-2.7.1.ebuild,v 1.1 2014/12/22 10:16:44 polynomial-c Exp $
EAPI="4"
-inherit eutils user
+inherit eutils user versionator
DESCRIPTION="a man replacement that utilizes berkdb instead of flat files"
HOMEPAGE="http://www.nongnu.org/man-db/"
@@ -12,24 +12,26 @@ SRC_URI="mirror://nongnu/${PN}/${P}.tar.xz"
LICENSE="GPL-3"
SLOT="0"
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~arm-linux ~x86-linux"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~arm-linux ~x86-linux"
IUSE="berkdb +gdbm nls selinux static-libs zlib"
-RDEPEND="dev-libs/libpipeline
+CDEPEND=">=dev-libs/libpipeline-1.4.0
berkdb? ( sys-libs/db )
gdbm? ( sys-libs/gdbm )
!berkdb? ( !gdbm? ( sys-libs/gdbm ) )
sys-apps/groff
- selinux? ( sec-policy/selinux-mandb )
zlib? ( sys-libs/zlib )
!sys-apps/man"
-DEPEND="${RDEPEND}
+DEPEND="${CDEPEND}
app-arch/xz-utils
virtual/pkgconfig
nls? (
app-text/po4a
sys-devel/gettext
)"
+RDEPEND="${CDEPEND}
+ selinux? ( sec-policy/selinux-mandb )
+"
pkg_setup() {
# Create user now as Makefile in src_install does setuid/chown
@@ -77,3 +79,10 @@ pkg_preinst() {
find "${EROOT}"var/cache/man -type d '!' -perm /g=s -exec chmod 2755 {} +
fi
}
+
+pkg_postinst() {
+ if [[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 7 ]] ; then
+ einfo "Rebuilding man-db from scratch with new database format!"
+ mandb --quiet --create
+ fi
+}