diff options
author | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2008-09-25 09:44:51 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2008-09-25 09:44:51 +0530 |
commit | a870c9df49ff7c33187b54d36cbc7e2317743944 (patch) | |
tree | e1dbc8c12089c5dc5dc631c7bacf8c36b94bc63e | |
parent | Init empty git-live overlay (diff) | |
download | gnome-live-a870c9df49ff7c33187b54d36cbc7e2317743944.tar.gz gnome-live-a870c9df49ff7c33187b54d36cbc7e2317743944.tar.bz2 gnome-live-a870c9df49ff7c33187b54d36cbc7e2317743944.zip |
Eclass for gnome2 live ebuilds
Simply inherit after gnome2 to use (in most cases)
-rw-r--r-- | eclass/gnome2-live.eclass | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/eclass/gnome2-live.eclass b/eclass/gnome2-live.eclass new file mode 100644 index 0000000..58abc81 --- /dev/null +++ b/eclass/gnome2-live.eclass @@ -0,0 +1,55 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# +# gnome2-live.eclass +# +# Exports additional functions used by live ebuilds written for GNOME packages +# Always to be imported *after* gnome2.eclass +# +# Author: Nirbheek Chauhan <nirbheek.chauhan@gmail.com> +# + + +inherit autotools gnome2-utils libtool subversion + +# DEPEND on dev-util/gtk-doc for gtkdocize +DEPEND="${DEPEND} + dev-util/gtk-doc" + +# Extra options passed to elibtoolize +ELTCONF=${ELTCONF:-} + +# SVN URI for the project +ESVN_REPO_URI=${ESVN_REPO_URI:-"http://svn.gnome.org/svn/${PN}/trunk"} + +# Unset SRC_URI auto-set by gnome2.eclass +SRC_URI="" + +gnome2-live_src_unpack() { + subversion_src_unpack + + for i in ${PATCHES}; do + epatch "${FILESDIR}/${i}" + done + + gtkdocize + eautoreconf + + ## This point onwards must stay in sync with gnome2.eclass + # Prevent scrollkeeper access violations + gnome2_omf_fix + + # Run libtoolize + elibtoolize ${ELTCONF} +} + +# So that it replaces gnome2_src_unpack in ebuilds that call it +gnome2_src_unpack() { + gnome2-live_src_unpack +} + +# So it works "out of the box" for ebuilds that rely on src_unpack exported by +# gnome2.eclass +EXPORT_FUNCTIONS src_unpack |