summaryrefslogtreecommitdiff
path: root/eclass/mate-desktop.org.eclass
diff options
context:
space:
mode:
Diffstat (limited to 'eclass/mate-desktop.org.eclass')
-rw-r--r--eclass/mate-desktop.org.eclass32
1 files changed, 32 insertions, 0 deletions
diff --git a/eclass/mate-desktop.org.eclass b/eclass/mate-desktop.org.eclass
new file mode 100644
index 00000000..cc305b82
--- /dev/null
+++ b/eclass/mate-desktop.org.eclass
@@ -0,0 +1,32 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+# @ECLASS: mate-desktop.org.eclass
+# @MAINTAINER:
+# micia@sabayon.org
+# @AUTHOR:
+# Authors: Spidler <spidler@gentoo.org> with help of carparski.
+# eclass variable additions and documentation: Gilles Dartiguelongue <eva@gentoo.org>
+# @BLURB: Helper eclass for gnome.org hosted archives
+# @DESCRIPTION:
+# Provide a default SRC_URI for tarball hosted on mate-desktop.org mirrors.
+
+inherit versionator
+
+DEPEND="${DEPEND} app-arch/xz-utils"
+
+# @ECLASS-VARIABLE: MATE_DESKTOP_ORG_MODULE
+# @DESCRIPTION:
+# Name of the module as hosted on mate-desktop.org mirrors.
+# Leave unset if package name matches module name.
+: ${MATE_DESKTOP_ORG_MODULE:=$PN}
+
+# @ECLASS-VARIABLE: GNOME_ORG_PVP
+# @INTERNAL
+# @DESCRIPTION:
+# Major and minor numbers of the version number.
+: ${GNOME_ORG_PVP:=$(get_version_component_range 1-2)}
+
+SRC_URI="http://pub.mate-desktop.org/releases/${GNOME_ORG_PVP}/${MATE_DESKTOP_ORG_MODULE}-${PV}.tar.xz"
+S="${WORKDIR}/${MATE_DESKTOP_ORG_MODULE}-${PV}"