Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/dump/
Date: Tue, 15 Dec 2015 20:32:15
Message-Id: 1450211929.8e2101ca00392b435358d7827a2c320ef902ce4c.blueness@gentoo
1 commit: 8e2101ca00392b435358d7827a2c320ef902ce4c
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 15 20:27:11 2015 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 15 20:38:49 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e2101ca
7
8 app-arch/dump: (sub)slot cleanups and add libressl support
9
10 Package-Manager: portage-2.2.24
11
12 app-arch/dump/dump-0.4.44-r2.ebuild | 69 +++++++++++++++++++++++++++++++++++++
13 1 file changed, 69 insertions(+)
14
15 diff --git a/app-arch/dump/dump-0.4.44-r2.ebuild b/app-arch/dump/dump-0.4.44-r2.ebuild
16 new file mode 100644
17 index 0000000..94b0c0b
18 --- /dev/null
19 +++ b/app-arch/dump/dump-0.4.44-r2.ebuild
20 @@ -0,0 +1,69 @@
21 +# Copyright 1999-2015 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI="5"
26 +inherit eutils autotools
27 +
28 +MY_P=${P/4./4b}
29 +S=${WORKDIR}/${MY_P}
30 +DESCRIPTION="Dump/restore ext2fs backup utilities"
31 +HOMEPAGE="http://dump.sourceforge.net/"
32 +SRC_URI="mirror://sourceforge/dump/${MY_P}.tar.gz"
33 +
34 +LICENSE="BSD"
35 +SLOT="0"
36 +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
37 +IUSE="debug ermt libressl readline selinux static"
38 +
39 +RDEPEND=">=sys-fs/e2fsprogs-1.27
40 + >=app-arch/bzip2-1.0.2
41 + >=sys-libs/zlib-1.1.4
42 + ermt? (
43 + !libressl? ( dev-libs/openssl:0 )
44 + libressl? ( dev-libs/libressl )
45 + )
46 + readline? (
47 + sys-libs/readline:0=
48 + sys-libs/ncurses:=
49 + static? ( sys-libs/ncurses:=[static-libs] )
50 + )"
51 +DEPEND="${RDEPEND}
52 + virtual/pkgconfig
53 + virtual/os-headers"
54 +
55 +src_prepare() {
56 + epatch "${FILESDIR}/${P}-underlinking.patch"
57 + epatch "${FILESDIR}/${P}-rl_completion_matches-detection.patch"
58 + epatch "${FILESDIR}/${P}-fix-pointers-aliasing.patch"
59 + eautoreconf
60 +}
61 +
62 +src_configure() {
63 + econf \
64 + --with-dumpdatespath=/etc/dumpdates \
65 + --with-{bin,man}owner=root \
66 + --with-{bin,man}grp=root \
67 + --enable-largefile \
68 + $(use_enable selinux transselinux) \
69 + $(use_enable ermt) \
70 + $(use_enable static) \
71 + $(use_enable readline) \
72 + $(use_enable debug)
73 +}
74 +
75 +src_install() {
76 + # built on old autotools, no DESTDIR support
77 + einstall MANDIR="${D}"/usr/share/man/man8
78 + mv "${ED}"/usr/sbin/{,dump-}rmt || die
79 + mv "${ED}"/usr/share/man/man8/{,dump-}rmt.8 || die
80 + use ermt && newsbin rmt/ermt dump-ermt
81 +
82 + dodoc CHANGES KNOWNBUGS MAINTAINERS README REPORTING-BUGS THANKS TODO
83 + dodoc -r examples/*
84 +}
85 +
86 +pkg_postinst() {
87 + ewarn "app-arch/dump installs 'rmt' as 'dump-rmt'."
88 + ewarn "This is to avoid conflicts with app-arch/tar 'rmt'."
89 +}