aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/ebuild/exheres-0/pkg_pretend.bash
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-01-08 10:45:07 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-01-08 10:45:07 +0000
commit86b9e9ba407f1f0f1530e4fde6056785fed68869 (patch)
tree3544423b7d8bbc3535b2dcd1fa22858a26e83ef8 /paludis/repositories/e/ebuild/exheres-0/pkg_pretend.bash
parentcc2065217d1acd31ffa4c10530eae72b2321e169 (diff)
downloadpaludis-86b9e9ba407f1f0f1530e4fde6056785fed68869.tar.gz
paludis-86b9e9ba407f1f0f1530e4fde6056785fed68869.tar.xz
Split up exheres and pms-derived EAPIs. Start suing 'default' for exheres. Use different coloured >>>/=== for different EAPIs.
Diffstat (limited to 'paludis/repositories/e/ebuild/exheres-0/pkg_pretend.bash')
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/pkg_pretend.bash44
1 files changed, 44 insertions, 0 deletions
diff --git a/paludis/repositories/e/ebuild/exheres-0/pkg_pretend.bash b/paludis/repositories/e/ebuild/exheres-0/pkg_pretend.bash
new file mode 100644
index 000000000..5210ddd80
--- /dev/null
+++ b/paludis/repositories/e/ebuild/exheres-0/pkg_pretend.bash
@@ -0,0 +1,44 @@
+#!/bin/bash
+# vim: set sw=4 sts=4 et :
+
+# Copyright (c) 2007, 2008 Ciaran McCreesh
+#
+# This file is part of the Paludis package manager. Paludis is free software;
+# you can redistribute it and/or modify it under the terms of the GNU General
+# Public License, version 2, as published by the Free Software Foundation.
+#
+# Paludis is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+# details.
+#
+# You should have received a copy of the GNU General Public License along with
+# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+# Place, Suite 330, Boston, MA 02111-1307 USA
+
+default_pkg_pretend()
+{
+ :
+}
+
+pkg_pretend()
+{
+ default "$@"
+}
+
+exheres_internal_pretend()
+{
+ if hasq "pretend" ${RESTRICT} ; then
+ ebuild_section "Skipping pkg_pretend (RESTRICT)"
+ elif hasq "pretend" ${SKIP_FUNCTIONS} ; then
+ ebuild_section "Skipping pkg_pretend (SKIP_FUNCTIONS)"
+ else
+ echo
+ pkg_pretend
+ echo
+ fi
+
+ true
+}
+
+