aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/cran/registration.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-12-26 14:03:43 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-12-26 14:03:43 +0000
commitae63cf0e67bc73e0fe07f848f3a9e726f2e2d120 (patch)
tree04a18a12fbe9e2d945dec9f5e4456d516193570c /paludis/repositories/cran/registration.cc
parent99b4ef766712ab455f5a510730b6d248b5c73028 (diff)
downloadpaludis-ae63cf0e67bc73e0fe07f848f3a9e726f2e2d120.tar.gz
paludis-ae63cf0e67bc73e0fe07f848f3a9e726f2e2d120.tar.xz
New virtual constructor that is much less sensitive to broken linkers
Diffstat (limited to 'paludis/repositories/cran/registration.cc')
-rw-r--r--paludis/repositories/cran/registration.cc42
1 files changed, 42 insertions, 0 deletions
diff --git a/paludis/repositories/cran/registration.cc b/paludis/repositories/cran/registration.cc
new file mode 100644
index 000000000..57b500044
--- /dev/null
+++ b/paludis/repositories/cran/registration.cc
@@ -0,0 +1,42 @@
+/* vim: set sw=4 sts=4 et foldmethod=syntax : */
+
+/*
+ * Copyright (c) 2006 Ciaran McCreesh <ciaranm@ciaranm.org>
+ *
+ * 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/repository_maker.hh>
+#include <paludis/repositories/cran/cran_repository.hh>
+#include <paludis/repositories/cran/cran_installed_repository.hh>
+#include "config.h"
+
+using namespace paludis;
+
+#ifndef MONOLITHIC
+
+extern "C"
+{
+ void register_repositories(RepositoryMaker * maker);
+}
+
+void register_repositories(RepositoryMaker * maker)
+{
+ maker->register_maker("cran", &CRANRepository::make_cran_repository);
+ maker->register_maker("cran_installed", &CRANInstalledRepository::make_cran_installed_repository);
+}
+
+#endif
+
+