aboutsummaryrefslogtreecommitdiff
path: root/paludis/always_enabled_dependency_label.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-12-29 00:59:37 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-01 03:57:52 +0000
commitd3dcce377a01c5b3ae0414e9e4dd67eaddc4ef0e (patch)
tree7d81deba8b41b103f927572df149c98941ed515c /paludis/always_enabled_dependency_label.cc
parenteba9fcb1d71dd48458d09c1328ba11ea06fbb40b (diff)
downloadpaludis-d3dcce377a01c5b3ae0414e9e4dd67eaddc4ef0e.tar.gz
paludis-d3dcce377a01c5b3ae0414e9e4dd67eaddc4ef0e.tar.xz
Tinker with labels
Diffstat (limited to 'paludis/always_enabled_dependency_label.cc')
-rw-r--r--paludis/always_enabled_dependency_label.cc58
1 files changed, 58 insertions, 0 deletions
diff --git a/paludis/always_enabled_dependency_label.cc b/paludis/always_enabled_dependency_label.cc
new file mode 100644
index 000000000..9bfd7dddc
--- /dev/null
+++ b/paludis/always_enabled_dependency_label.cc
@@ -0,0 +1,58 @@
+/* vim: set sw=4 sts=4 et foldmethod=syntax : */
+
+/*
+ * Copyright (c) 2010 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
+ */
+
+#include <paludis/always_enabled_dependency_label.hh>
+
+using namespace paludis;
+
+template <typename Label_>
+AlwaysEnabledDependencyLabel<Label_>::AlwaysEnabledDependencyLabel(const std::string & t) :
+ _text(t)
+{
+}
+
+template <typename Label_>
+AlwaysEnabledDependencyLabel<Label_>::~AlwaysEnabledDependencyLabel()
+{
+}
+
+template <typename Label_>
+const std::string
+AlwaysEnabledDependencyLabel<Label_>::text() const
+{
+ return _text;
+}
+
+template <typename Label_>
+bool
+AlwaysEnabledDependencyLabel<Label_>::enabled() const
+{
+ return true;
+}
+
+template class AlwaysEnabledDependencyLabel<DependenciesBuildLabelTag>;
+template class AlwaysEnabledDependencyLabel<DependenciesRunLabelTag>;
+template class AlwaysEnabledDependencyLabel<DependenciesPostLabelTag>;
+template class AlwaysEnabledDependencyLabel<DependenciesCompileAgainstLabelTag>;
+template class AlwaysEnabledDependencyLabel<DependenciesFetchLabelTag>;
+template class AlwaysEnabledDependencyLabel<DependenciesInstallLabelTag>;
+template class AlwaysEnabledDependencyLabel<DependenciesSuggestionLabelTag>;
+template class AlwaysEnabledDependencyLabel<DependenciesRecommendationLabelTag>;
+template class AlwaysEnabledDependencyLabel<DependenciesTestLabelTag>;
+