qt4-fsarchiver-0.6.19.6.ebuild 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit qmake-utils versionator
  5. MY_P="${PN}-$(replace_version_separator 3 '-')"
  6. MIN_PV="$(get_version_component_range 1-3)"
  7. DESCRIPTION="Qt4 frontend for fsarchiver"
  8. HOMEPAGE="http://qt4-fsarchiver.sourceforge.net/"
  9. SRC_URI="mirror://sourceforge/${PN}/source/${MY_P}.tar.gz"
  10. LICENSE="GPL-2"
  11. SLOT="0"
  12. KEYWORDS="amd64 x86"
  13. IUSE=""
  14. CDEPEND="app-arch/bzip2
  15. app-arch/xz-utils
  16. dev-libs/libgcrypt:=
  17. dev-libs/lzo
  18. dev-qt/qtcore:4
  19. dev-qt/qtgui:4
  20. sys-apps/util-linux
  21. sys-fs/e2fsprogs
  22. sys-libs/zlib"
  23. RDEPEND="${CDEPEND}
  24. >=app-backup/fsarchiver-${MIN_PV}[lzma,lzo]"
  25. DEPEND="${CDEPEND}"
  26. S="${WORKDIR}/${PN}"
  27. src_prepare() {
  28. # fix .desktop file
  29. sed -i \
  30. -e '/Encoding/d' starter/"${PN}".desktop \
  31. || die "sed on qt4-fsarchiver.desktop failed"
  32. # fix icon installation location
  33. sed -i \
  34. -e "/icon.path/s:app-install/icons:${PN}:" "${PN}.pro" \
  35. || die "sed on ${PN}.pro failed"
  36. }
  37. src_compile() {
  38. eqmake4
  39. }
  40. src_install() {
  41. emake INSTALL_ROOT="${D}" install
  42. einstalldocs
  43. }
  44. pkg_postinst() {
  45. elog "optional dependencies:"
  46. elog " sys-fs/btrfs-progs"
  47. elog " sys-fs/jfsutils"
  48. elog " sys-fs/ntfs3g[ntfsprogs]"
  49. elog " sys-fs/reiser4progs"
  50. elog " sys-fs/reiserfsprogs"
  51. elog " net-fs/sshfs"
  52. elog " sys-fs/xfsprogs"
  53. }