summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2013-07-25 15:36:36 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2013-07-25 15:36:36 +0000
commitf25b3e517493efca8c832d5b040ed72b01065383 (patch)
treeb1c0f328c3ef383f893a36c2bd9b93c2c60bd557 /app-admin/zypper
parentfix tests - add missing deps and provide exclusions to sandbox, bug 478092 (diff)
downloadgentoo-2-f25b3e517493efca8c832d5b040ed72b01065383.tar.gz
gentoo-2-f25b3e517493efca8c832d5b040ed72b01065383.tar.bz2
gentoo-2-f25b3e517493efca8c832d5b040ed72b01065383.zip
Initial commit of zypper for testing purposes in suse herd.
(Portage version: 2.2.0_alpha188/cvs/Linux x86_64, signed Manifest commit with key 8EEE3BE8)
Diffstat (limited to 'app-admin/zypper')
-rw-r--r--app-admin/zypper/ChangeLog9
-rw-r--r--app-admin/zypper/files/zypper-fix-header.patch34
-rw-r--r--app-admin/zypper/metadata.xml6
-rw-r--r--app-admin/zypper/zypper-1.9.1.ebuild37
4 files changed, 86 insertions, 0 deletions
diff --git a/app-admin/zypper/ChangeLog b/app-admin/zypper/ChangeLog
new file mode 100644
index 000000000000..c408c81bfb65
--- /dev/null
+++ b/app-admin/zypper/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for app-admin/zypper
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/zypper/ChangeLog,v 1.1 2013/07/25 15:36:36 scarabeus Exp $
+
+*zypper-1.9.1 (25 Jul 2013)
+
+ 25 Jul 2013; Tomáš Chvátal <scarabeus@gentoo.org>
+ +files/zypper-fix-header.patch, +metadata.xml, +zypper-1.9.1.ebuild:
+ Initial commit of zypper for testing purposes in suse herd.
diff --git a/app-admin/zypper/files/zypper-fix-header.patch b/app-admin/zypper/files/zypper-fix-header.patch
new file mode 100644
index 000000000000..60208bde4280
--- /dev/null
+++ b/app-admin/zypper/files/zypper-fix-header.patch
@@ -0,0 +1,34 @@
+From b7be80db5217aac86e84d64bf94407f11b6b2635 Mon Sep 17 00:00:00 2001
+From: Tomas Chvatal <tomas.chvatal@gmail.com>
+Date: Wed, 24 Jul 2013 23:29:11 +0200
+Subject: [PATCH] Include iostream to avoid build failures
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Fixes following crash:
+In file included from
+/var/tmp/portage/app-admin/zypper-1.9.1/work/zypper-1.9.1/src/utils/messages.cc:10:0:
+/var/tmp/portage/app-admin/zypper-1.9.1/work/zypper-1.9.1/src/Zypper.h:37:12:
+error: ‘std::cout’ has not been declared
+/var/tmp/portage/app-admin/zypper-1.9.1/work/zypper-1.9.1/src/Zypper.h:38:12:
+error: ‘std::cerr’ has not been declared
+---
+ src/Zypper.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/Zypper.h b/src/Zypper.h
+index aef000f..feff271 100644
+--- a/src/Zypper.h
++++ b/src/Zypper.h
+@@ -34,6 +34,7 @@
+ using namespace zypp;
+
+ // Convenience
++#include <iostream>
+ using std::cout;
+ using std::cerr;
+ using std::endl;
+--
+1.8.1.5
+
diff --git a/app-admin/zypper/metadata.xml b/app-admin/zypper/metadata.xml
new file mode 100644
index 000000000000..9b2336726aa6
--- /dev/null
+++ b/app-admin/zypper/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>suse</herd>
+</pkgmetadata>
+
diff --git a/app-admin/zypper/zypper-1.9.1.ebuild b/app-admin/zypper/zypper-1.9.1.ebuild
new file mode 100644
index 000000000000..205f5f2717fa
--- /dev/null
+++ b/app-admin/zypper/zypper-1.9.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/zypper/zypper-1.9.1.ebuild,v 1.1 2013/07/25 15:36:36 scarabeus Exp $
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="World's most powerful command line package manager"
+HOMEPAGE="http://en.opensuse.org/Portal:Zypper"
+SRC_URI="http://github.com/openSUSE/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND="
+ app-admin/augeas
+ dev-libs/libxml2
+ dev-libs/libzypp
+ sys-libs/readline:0
+"
+DEPEND="${DEPEND}
+ sys-devel/gettext
+"
+
+RESTRICT="test"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-fix-header.patch"
+}
+
+src_test() {
+ cmake-utils_src_compile -C tests
+ cmake-utils_src_test
+}