# Copyright
1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: necrose99 Exp $ proxy-maintainer
EAPI=5
inherit qmake-utils versionator ODEPENDS , ?
inherit_propasl odeps eclass
revdep-rebuild
could graciuly rebuild when called against the optional depends when asked too.
MY_P="${PN}-$(replace_version_separator
3 '-')"
MIN_PV="$(get_version_component_range 1-3)"
DESCRIPTION="Qt4 frontend for fsarchiver"
HOMEPAGE="http://qt4-fsarchiver.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/source/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
IREC="+onbydefault +btrfs +jfs +ntfs reiser4 +reiserfs +xfss +sshfs nfs
samba"
### I rec, I RECOMEND like IUSE but more a suggestion for optimal experience
ie elog for best optimal results in most cases, though not required…
Portage offer with flags Y/N or M_inimal just use the basics. Or Yes for optimal NO for basics,
Portage: It’s highly recommended to Use these flags for best possible experience, though not required; do you agree: Y/N or M_inimal, or you can override with USE=”+your-flags”
If I had a fancy
script to to re-bake app-admin/systemrescuecd I’d add damb near everything, with
a lice cd option but that’s above my Ebuild skill level atm.
DEPEND="app-arch/xz-utils
dev-libs/glib:2
dev-libs/libgcrypt
dev-libs/lzo
>=sys-fs/e2fsprogs-1.41.4
x11-libs/qt-core:4
x11-libs/qt-gui:4"
RDEPEND="${DEPEND}
"
RDEPEND="app-arch/bzip2
app-arch/xz-utils
dev-libs/libgcrypt:=
dev-libs/lzo
dev-qt/qtcore:4
dev-qt/qtgui:4
sys-apps/util-linux
sys-fs/e2fsprogs
sys-libs/zlib
>=app-backup/fsarchiver-${MIN_PV}[lzma,lzo]"
Why odepends , I can declare them , if not installed user can
USE="+flags " and pull in added features
though not required , it also perhaps might ease QA Frustrations. Of having
to pound them into metadata.xml
ODEPENDS=" btrfs? ( sys-fs/btrfs-progs )
sys-fs/jfsutils</pkg>
sys-fs/ntfs3g[ntfsprogs]
reiser4? ( sys-fs/reiser4progs )
reiserfs? ( sys-fs/reiserfsprogs )
xfs? ( sys-fs/xfsprogs )
sshfs? ( sys-fs/sshfs-fuse )
{samaba? ( net-fs/samba )
Or/else ( net-fs/smbnetfs )} # for samba network I/O support
one or both at users choice}
nfs? net-fs/nfs-utils"
jfs? ( sys-fs/jfsutils )
ntfs? ( sys-fs/ntfs3g[ntfsprogs] )
zfs? ( sys-fs/zfs )
S="${WORKDIR}/${PN}"
src_prepare() {
# fix .desktop file
sed -i \
-e '/Encoding/d' starter/"${PN}".desktop \
|| die "sed on qt4-fsarchiver.desktop failed"
# fix icon installation location
sed -i \
-e "/icon.path/s:app-install/icons:${PN}:"
"${PN}.pro" \
|| die "sed on ${PN}.pro failed"
}
src_compile() {
eqmake4
}
src_install() {
emake INSTALL_ROOT="${D}" install
einstalldocs
}
pkg_postinst() {
elog "optional dependencies: ${ODEPENDS}"
elog "These packages will Add more functionality and usability
but Are not Required, though can enhance your usability and capabilities with
the tool"
}