/[gentoo-x86]/app-arch/dump/dump-0.4.44-r1.ebuild
Gentoo

Contents of /app-arch/dump/dump-0.4.44-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu May 3 01:58:54 2012 UTC (8 years, 3 months ago) by jdhore
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-arch/dump/dump-0.4.44-r1.ebuild,v 1.6 2012/01/31 19:45:14 ssuominen Exp $
4
5 EAPI="4"
6 inherit eutils autotools
7
8 MY_P=${P/4./4b}
9 S=${WORKDIR}/${MY_P}
10 DESCRIPTION="Dump/restore ext2fs backup utilities"
11 HOMEPAGE="http://dump.sourceforge.net/"
12 SRC_URI="mirror://sourceforge/dump/${MY_P}.tar.gz"
13
14 LICENSE="BSD"
15 SLOT="0"
16 KEYWORDS="alpha amd64 ~hppa ia64 ppc ppc64 sparc x86"
17 IUSE="debug ermt readline selinux static"
18
19 RDEPEND=">=sys-fs/e2fsprogs-1.27
20 >=app-arch/bzip2-1.0.2
21 >=sys-libs/zlib-1.1.4
22 ermt? ( dev-libs/openssl )
23 readline? ( sys-libs/readline
24 sys-libs/ncurses
25 static? ( sys-libs/ncurses[static-libs] ) )"
26 DEPEND="${RDEPEND}
27 virtual/pkgconfig
28 virtual/os-headers"
29
30 src_prepare() {
31 epatch "${FILESDIR}/${P}-underlinking.patch"
32 epatch "${FILESDIR}/${P}-rl_completion_matches-detection.patch"
33 epatch "${FILESDIR}/${P}-fix-pointers-aliasing.patch"
34 eautoreconf
35 }
36
37 src_configure() {
38 econf \
39 --with-dumpdatespath=/etc/dumpdates \
40 --with-{bin,man}owner=root \
41 --with-{bin,man}grp=root \
42 --enable-largefile \
43 $(use_enable selinux transselinux) \
44 $(use_enable ermt) \
45 $(use_enable static) \
46 $(use_enable readline) \
47 $(use_enable debug)
48 }
49
50 src_install() {
51 # built on old autotools, no DESTDIR support
52 einstall MANDIR="${D}"/usr/share/man/man8
53 mv "${ED}"/usr/sbin/{,dump-}rmt || die
54 mv "${ED}"/usr/share/man/man8/{,dump-}rmt.8 || die
55 use ermt && newsbin rmt/ermt dump-ermt
56
57 dodoc CHANGES KNOWNBUGS MAINTAINERS README REPORTING-BUGS THANKS TODO
58 dodoc -r examples/*
59 }
60
61 pkg_postinst() {
62 ewarn "app-arch/dump installs 'rmt' as 'dump-rmt'."
63 ewarn "This is to avoid conflicts with app-arch/tar 'rmt'."
64 }

  ViewVC Help
Powered by ViewVC 1.1.20