Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 15689
Collapse All | Expand All

(-)/usr/local/portage/gnome-extra/bug-buddy/bug-buddy-2.10.0.ebuild (-1 / +10 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/bug-buddy/bug-buddy-2.10.0.ebuild,v 1.6 2005/05/09 03:03:46 agriffis Exp $
3
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/bug-buddy/bug-buddy-2.10.0.ebuild,v 1.6 2005/05/09 03:03:46 agriffis Exp $
4
4
5
inherit gnome2
5
inherit gnome2 eutils
6
6
7
DESCRIPTION="Bug Report helper for Gnome"
7
DESCRIPTION="Bug Report helper for Gnome"
8
HOMEPAGE="http://www.gnome.org/"
8
HOMEPAGE="http://www.gnome.org/"
Lines 40-43 Link Here
40
	unpack ${A}
40
	unpack ${A}
41
	cd ${S}
41
	cd ${S}
42
	gnome2_omf_fix gnome-doc-utils.make docs/Makefile.in
42
	gnome2_omf_fix gnome-doc-utils.make docs/Makefile.in
43
	epatch ${FILESDIR}/gentoo_cflags-2.10.0.patch
44
}
45
46
src_install() {
47
	gnome2_src_install
48
49
	# flags search tool
50
	exeinto /usr/libexec/
51
	doexe ${FILESDIR}/bug-buddy-2.10.0-report_cflags.patch
43
}
52
}
(-)/usr/local/portage/gnome-extra/bug-buddy/files/getbuildflags.py (+59 lines)
Line 0 Link Here
1
diff -Nru bug-buddy-2.10.0.old/src/bugzilla.c bug-buddy-2.10.0/src/bugzilla.c
2
--- bug-buddy-2.10.0.old/src/bugzilla.c	2005-02-10 06:01:10.000000000 -0500
Line 0 Link Here
1
#!/usr/bin/env python
2
3
import sys
4
import os
5
6
def usage():
7
	print "getbuildflags [-c|-cxx] <package_name>"
8
	sys.exit(1)
9
10
# Check our arguments
11
if not len(sys.argv) > 2:
12
	usage()
13
if sys.argv[1] == "-c":
14
	filename = "CFLAGS"
15
elif sys.argv[1] == "-cxx":
16
	filename = "CXXFLAGS"
17
else:
18
	usage()
19
sys.argv[2] = sys.argv[2].lower()
20
21
# Search for the package
22
import portage
23
vt = portage.vartree()
24
packages = []
25
for package in vt.getallcpv():
26
	if sys.argv[2] in package:
27
		packages.append(package)
28
if len(packages) > 1:
29
	old_packages = []
30
	old_packages.extend(packages)
31
	packages = []
32
	for package in old_packages:
33
		if sys.argv[2] == portage.catpkgsplit(package)[1]:
34
			packages.append(package)
35
	del old_packages
36
if len(packages) > 1:
37
	print "Error, package name '%s' not specific enough!" % sys.argv[2]
38
	print packages
39
	sys.exit(1)
40
elif len(packages) < 1:
41
	print "Package not installed!"
42
	sys.exit(1)
43
44
package = packages[0]
45
46
# Get the flags
47
try:
48
	f = open(os.path.join(portage.root, portage.VDB_PATH, package, filename))
49
	flags = "Built with %s: " % filename + f.read().strip()
50
	f.close()
51
except IOError:
52
	if portage.settings.has_key(filename):
53
		flags = "System %s" % filename + portage.settings[filename]
54
	else:
55
		flags = "%s unknown!" % filename
56
print flags
57

Return to bug 15689