1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit confutils flag-o-matic
8 DESCRIPTION="A full featured backup tool, aimed for disks (floppy,CDR(W),DVDR(W),zip,jazz etc.)"
9 HOMEPAGE="http://dar.linux.free.fr/"
10 SRC_URI="mirror://sourceforge/dar/${P}.tar.gz"
14 KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux"
15 IUSE="acl dar32 dar64 doc gcrypt gpgme lzo nls static static-libs"
17 RESTRICT="test" # need to be run as root
19 RDEPEND=">=sys-libs/zlib-1.2.3:=
20 !static? ( app-arch/bzip2:=
22 acl? ( !static? ( sys-apps/attr:= ) )
23 gcrypt? ( dev-libs/libgcrypt:0= )
24 gpgme? ( app-crypt/gpgme )
25 lzo? ( !static? ( dev-libs/lzo:= ) )
26 nls? ( virtual/libintl )"
29 static? ( app-arch/bzip2[static-libs]
30 app-arch/xz-utils[static-libs]
31 sys-libs/zlib[static-libs] )
32 acl? ( static? ( sys-apps/attr[static-libs] ) )
33 lzo? ( static? ( dev-libs/lzo[static-libs] ) )
34 nls? ( sys-devel/gettext )
35 doc? ( app-doc/doxygen )"
37 REQUIRED_USE="?? ( dar32 dar64 )
40 DOCS="AUTHORS ChangeLog NEWS README THANKS TODO"
46 local myconf=( --disable-upx )
49 filter-flags -fomit-frame-pointer
51 use acl || myconf+=( --disable-ea-support )
52 use dar32 && myconf+=( --enable-mode=32 )
53 use dar64 && myconf+=( --enable-mode=64 )
54 use doc || myconf+=( --disable-build-html )
55 # use examples && myconf+=( --enable-examples )
56 use gcrypt || myconf+=( --disable-libgcrypt-linking )
57 use gpgme || myconf+=( --disable-gpgme-linking )
58 use lzo || myconf+=( --disable-liblzo2-linking )
59 use nls || myconf=( --disable-nls )
60 if ! use static ; then
61 myconf+=( --disable-dar-static )
62 if ! use static-libs ; then
63 myconf+=( --disable-static )
71 emake DESTDIR="${D}" pkgdatadir="${EPREFIX}"/usr/share/doc/${PF}/html install
75 if ! use static-libs ; then
76 prune_libtool_files --all