You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-arch/mate-file-archiver/mate-file-archiver-1.6.1.eb...

90 lines
2.4 KiB

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/mate-file-archiver/mate-file-archiver-1.6.1.ebuild,v 1.2 2014/05/04 14:52:59 ago Exp $
EAPI="5"
GCONF_DEBUG="yes"
GNOME2_LA_PUNT="yes"
inherit autotools gnome2 versionator
MATE_BRANCH="$(get_version_component_range 1-2)"
SRC_URI="http://pub.mate-desktop.org/releases/${MATE_BRANCH}/${P}.tar.xz"
DESCRIPTION="Engrampa archive manager for MATE"
HOMEPAGE="http://mate-desktop.org"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64"
IUSE="caja"
RDEPEND=">=x11-libs/gtk+-2.21.4:2
>=dev-libs/glib-2.25.5:2
x11-libs/gdk-pixbuf:2
x11-libs/pango:0
virtual/libintl:0
caja? ( >=mate-base/mate-file-manager-1.6:0 )"
DEPEND="${RDEPEND}
>=app-text/mate-doc-utils-1.6:0
>=dev-util/intltool-0.35:*
>=mate-base/mate-common-1.6:0
sys-devel/gettext:*
virtual/pkgconfig:*"
src_prepare() {
# Fix some instalation paths.
sed -e 's|PACKAGE|PACKAGE_NAME|' -i \
src/commands/Makefile.am src/sh/Makefile.am || die
sed -e 's|$(pkgdatadir)|$(datadir)/$(PACKAGE_NAME)|' -i \
data/icons/16x16/actions/Makefile.am \
data/icons/24x24/actions/Makefile.am || die
eautoreconf
gnome2_src_prepare
# Drop DEPRECATED flags as configure option doesn't do it, bug #385453
sed -i -e 's:-D[A-Z_]*DISABLE_DEPRECATED:$(NULL):g' \
copy-n-paste/Makefile.am copy-n-paste/Makefile.in || die
}
src_configure() {
gnome2_src_configure \
--disable-run-in-place \
--disable-packagekit \
--disable-deprecations \
--with-gtk=2.0 \
$(use_enable caja caja-actions)
}
DOCS="AUTHORS HACKING MAINTAINERS NEWS README TODO"
pkg_postinst() {
gnome2_pkg_postinst
elog ""
elog "${PN} is a frontend for several archiving utilities. If you want a"
elog "particular achive format supported install the relevant package."
elog
elog "For example:"
elog " 7-zip : emerge app-arch/p7zip"
elog " ace : emerge app-arch/unace"
elog " arj : emerge app-arch/arj"
elog " cpio : emerge app-arch/cpio"
elog " deb : emerge app-arch/dpkg"
elog " iso : emerge app-cdr/cdrtools"
elog " jar,zip : emerge app-arch/zip or emerge app-arch/unzip"
elog " lha : emerge app-arch/lha"
elog " lzma : emerge app-arch/xz-utils"
elog " lzop : emerge app-arch/lzop"
elog " rar : emerge app-arch/unrar"
elog " rpm : emerge app-arch/rpm"
elog " unstuff : emerge app-arch/stuffit"
elog " zoo : emerge app-arch/zoo"
}