dar-2.4.20.ebuild 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit flag-o-matic
  5. DESCRIPTION="A full featured backup tool, aimed for disks"
  6. HOMEPAGE="http://dar.linux.free.fr/"
  7. SRC_URI="mirror://sourceforge/dar/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 ppc sparc x86 ~amd64-linux"
  11. IUSE="acl dar32 dar64 doc gcrypt lzo nls static static-libs"
  12. RESTRICT="test" # need to be run as root
  13. RDEPEND=">=sys-libs/zlib-1.2.3:=
  14. !static? ( app-arch/bzip2:= )
  15. acl? ( !static? ( sys-apps/attr:= ) )
  16. gcrypt? ( dev-libs/libgcrypt:0= )
  17. lzo? ( !static? ( dev-libs/lzo:= ) )
  18. nls? ( virtual/libintl )"
  19. DEPEND="${RDEPEND}
  20. static? ( app-arch/bzip2[static-libs] )
  21. static? ( sys-libs/zlib[static-libs] )
  22. acl? ( static? ( sys-apps/attr[static-libs] ) )
  23. lzo? ( static? ( dev-libs/lzo[static-libs] ) )
  24. nls? ( sys-devel/gettext )
  25. doc? ( app-doc/doxygen )"
  26. REQUIRED_USE="?? ( dar32 dar64 )"
  27. DOCS="AUTHORS ChangeLog NEWS README THANKS TODO"
  28. src_configure() {
  29. local myconf="--disable-upx"
  30. # Bug 103741
  31. filter-flags -fomit-frame-pointer
  32. use acl || myconf="${myconf} --disable-ea-support"
  33. use dar32 && myconf="${myconf} --enable-mode=32"
  34. use dar64 && myconf="${myconf} --enable-mode=64"
  35. use doc || myconf="${myconf} --disable-build-html"
  36. # use examples && myconf="${myconf} --enable-examples"
  37. use gcrypt || myconf="${myconf} --disable-libgcrypt-linking"
  38. use lzo || myconf="${myconf} --disable-liblzo2-linking"
  39. use nls || myconf="${myconf} --disable-nls"
  40. if ! use static ; then
  41. myconf="${myconf} --disable-dar-static"
  42. if ! use static-libs ; then
  43. myconf="${myconf} --disable-static"
  44. fi
  45. fi
  46. econf ${myconf}
  47. }
  48. src_install() {
  49. emake DESTDIR="${D}" pkgdatadir="${EPREFIX}"/usr/share/doc/${PF}/html install
  50. einstalldocs
  51. if ! use static-libs ; then
  52. prune_libtool_files --all
  53. fi
  54. }