summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Proschofsky <suka@gentoo.org>2009-10-07 11:36:10 +0000
committerAndreas Proschofsky <suka@gentoo.org>2009-10-07 11:36:10 +0000
commitc892f720ba8813c8c8b2b0241f5d77809258741d (patch)
treeb9677d09fbbc9afeaa8659ea78ad6fd0a5a7cd99 /eclass/gnome2-la.eclass
parentAdd libchamplain and clutter-gtk from gnome overlay (diff)
downloadsuka-c892f720ba8813c8c8b2b0241f5d77809258741d.tar.gz
suka-c892f720ba8813c8c8b2b0241f5d77809258741d.tar.bz2
suka-c892f720ba8813c8c8b2b0241f5d77809258741d.zip
Missing eclass...
svn path=/; revision=171
Diffstat (limited to 'eclass/gnome2-la.eclass')
-rw-r--r--eclass/gnome2-la.eclass33
1 files changed, 33 insertions, 0 deletions
diff --git a/eclass/gnome2-la.eclass b/eclass/gnome2-la.eclass
new file mode 100644
index 0000000..e9506c3
--- /dev/null
+++ b/eclass/gnome2-la.eclass
@@ -0,0 +1,33 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+#
+# gnome2-la.eclass
+#
+# Original Author: Nirbheek Chauhan <nirbheek@gentoo.org>
+# Purpose: Temporary eclass for facilitating .la file removal
+#
+# Only for usage in the overlay. This eclass will be redundant once this feature
+# is reviewed and patched into gnome2.eclass (in-tree)
+#
+
+inherit gnome2
+
+EXPORT_FUNCTIONS src_install
+
+# Remove .la files in src_install?
+G2PUNT_LA=${G2PUNT_LA:-"no"}
+
+gnome2-la_src_install() {
+ gnome2_src_install
+
+ # Remove .la files if they're unneeded
+ # Be *absolutely* sure before doing this and read
+ # http://dev.gentoo.org/~nirbheek/gnome/gnome-policy.xml#doc_chap3
+ if [[ "${G2PUNT_LA}" = "yes" ]]; then
+ ebegin "Removing .la files"
+ find "${D}" -name '*.la' -delete
+ eend
+ fi
+}