patches/pyspi-01-solaris.diff
changeset 13189 836ff5d12ba2
parent 13188 e0c5cb3dd2ad
child 13190 e651e76c97e3
--- a/patches/pyspi-01-solaris.diff	Wed Aug 20 06:41:03 2008 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,32 +0,0 @@
---- pyspi-0.6.0/setup.py-orig	2006-10-07 15:20:47.957029000 -0500
-+++ pyspi-0.6.0/setup.py	2006-10-07 15:22:18.879040000 -0500
-@@ -23,25 +23,22 @@ if os.system('pkg-config --exists cspi-1
- 	print 'Error: pkg-config could not find cspi-1.0'
- 	print 'Install "at-spi-devel" or the equivalent package for your system'
- 	sys.exit(1)
--elif os.system('pkg-config --exists x11 2> /dev/null') != 0:
--	print 'Error: pkg-config could not find x11'
--	print 'Install "libX11-devel" or the equivalent package for your system'
--	sys.exit(1)
- else:
--	pkgcfg = os.popen('pkg-config --cflags cspi-1.0 x11')
-+	pkgcfg = os.popen('pkg-config --cflags cspi-1.0')
- 	cflags = pkgcfg.readline().strip()
- 	pkgcfg.close()
--	pkgcfg = os.popen('pkg-config --libs cspi-1.0 x11')
-+	pkgcfg = os.popen('pkg-config --libs cspi-1.0')
- 	libs = pkgcfg.readline().strip()
- 	pkgcfg.close()
- 
-+libs += ' -L/usr/X11/lib -lX11'
-+
- iflags = [x[2:] for x in cflags.split() if x[0:2] == '-I']
- extra_cflags = [x for x in cflags.split() if x[0:2] != '-I']
- libdirs = [x[2:] for x in libs.split() if x[0:2] == '-L']
- libsonly = [x[2:] for x in libs.split() if x[0:2] == '-l']
- # End pkg-config magic
- 
--
- atspi = Extension(
- 	name = 'atspi', 
- 	sources = ['atspi.pyx'],