[dev-python/python-report] new ebuild, required by Anaconda

This commit is contained in:
Fabio Erculiani
2010-04-02 18:58:53 +02:00
parent 797c4045a8
commit 74f33c5b17
3 changed files with 101 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
AUX python-report-0.10-sabayon-defaults.patch 2816 RMD160 16cd841db8789c664c5a3cc2d595e735ecf0fa6b SHA1 3b0ef79a491c5e4bd91d16fee35392762c244e68 SHA256 7e662cea4143c5d3f27646c6250cf57f3e91b29d58bb0aff883e60e1d1478830
EBUILD python-report-0.10.ebuild 1028 RMD160 ac15f3eb08e57517ee144dbe73ea2ab5534b1b66 SHA1 9087c496374daa16f3db29fe63fe0c545bf37286 SHA256 4d7c3373e19e9663fe3226028f69c4ba3b60415b1172abdeff2e70a513a8079d
@@ -0,0 +1,54 @@
diff -Nurp python-report-0.10.orig/python/report/templates/bugzilla-template/__init__.py python-report-0.10/python/report/templates/bugzilla-template/__init__.py
--- python-report-0.10.orig/python/report/templates/bugzilla-template/__init__.py 2010-04-02 18:46:19.862030189 +0200
+++ python-report-0.10/python/report/templates/bugzilla-template/__init__.py 2010-04-02 18:56:47.102924468 +0200
@@ -55,10 +55,10 @@ def displayURL(optionsDict):
def bugURL(optionsDict):
if 'bugURL' in optionsDict:
return optionsDict["bugURL"]
- host = "bugzilla.redhat.com"
+ host = "bugs.sabayon.org"
if 'bugzilla_host' in optionsDict:
host = optionsDict["bugzilla_host"]
- return "https://" + host + "/xmlrpc.cgi"
+ return "http://" + host + "/xmlrpc.cgi"
def report(signature, io, optionsDict):
if not io:
@@ -130,8 +130,8 @@ def sendToBugzilla(component, signature,
try:
if not bzfiler:
- bzfiler = filer.BugzillaFiler("https://bugzilla.redhat.com/xmlrpc.cgi",
- "http://bugzilla.redhat.com",
+ bzfiler = filer.BugzillaFiler("http://bugs.sabayon.org/xmlrpc.cgi",
+ "http://bugs.sabayon.org",
filer.getVersion(), filer.getProduct())
if not bzfiler or not bzfiler.supportsFiling() or not bzfiler.bugUrl:
diff -Nurp python-report-0.10.orig/python/report/templates/RHEL-template/__init__.py python-report-0.10/python/report/templates/RHEL-template/__init__.py
--- python-report-0.10.orig/python/report/templates/RHEL-template/__init__.py 2010-04-02 18:46:19.862030189 +0200
+++ python-report-0.10/python/report/templates/RHEL-template/__init__.py 2010-04-02 18:56:33.214921519 +0200
@@ -55,10 +55,10 @@ def displayURL(optionsDict):
def bugURL(optionsDict):
if optionsDict.has_key("bugURL"):
return optionsDict["bugURL"]
- host = "bugzilla.redhat.com"
+ host = "bugs.sabayon.org"
if optionsDict.has_key("bugzilla_host"):
host = optionsDict["bugzilla_host"]
- return "https://" + host + "/xmlrpc.cgi"
+ return "http://" + host + "/xmlrpc.cgi"
def report(signature, io, optionsDict):
if not io:
@@ -131,8 +131,8 @@ def sendToBugzilla( component, hashmarke
try:
if not bzfiler:
- bzfiler = filer.BugzillaFiler("https://bugzilla.redhat.com/xmlrpc.cgi",
- "http://bugzilla.redhat.com",
+ bzfiler = filer.BugzillaFiler("http://bugs.sabayon.org/xmlrpc.cgi",
+ "http://bugs.sabayon.org",
filer.getVersion(), filer.getProduct())
if not bzfiler or not bzfiler.supportsFiling() or not bzfiler.bugUrl:
@@ -0,0 +1,45 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
EGIT_REPO_URI="git://git.fedorahosted.org/report.git"
EGIT_COMMIT="${PV}"
inherit base git autotools eutils
DESCRIPTION="Provides a single configurable problem/bug/issue reporting API."
HOMEPAGE="http://git.fedoraproject.org/git/?p=report.git;a=summary"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="app-arch/rpm
net-misc/curl"
RDEPEND="dev-libs/openssl
net-misc/curl
dev-libs/libxml2"
src_prepare() {
epatch "${FILESDIR}"/${P}-sabayon-defaults.patch
eautoreconf || die "cannot run eautoreconf"
autoreconf -i || die "wtf"
eautomake || die "cannot run eautomake"
}
src_configure() {
econf --prefix=/usr || die "configure failed"
}
src_compile() {
# workaround crappy build system
mkdir -p "${S}/python/report/templates/RHEL-template/bugzillaCopy"
touch "${S}/python/report/templates/RHEL-template/bugzillaCopy/VERSION"
emake || die "make failed"
}