[arch-commits] Commit in pycups/trunk (PKGBUILD gcc4.5.patch)

Andrea Scarpino andrea at archlinux.org
Wed May 19 16:00:32 UTC 2010


    Date: Wednesday, May 19, 2010 @ 12:00:32
  Author: andrea
Revision: 80562

gcc 4.5 fix

Added:
  pycups/trunk/gcc4.5.patch
Modified:
  pycups/trunk/PKGBUILD

--------------+
 PKGBUILD     |    7 +++++--
 gcc4.5.patch |   20 ++++++++++++++++++++
 2 files changed, 25 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-05-19 15:38:28 UTC (rev 80561)
+++ PKGBUILD	2010-05-19 16:00:32 UTC (rev 80562)
@@ -10,11 +10,14 @@
 arch=('i686' 'x86_64')
 license=('GPL')
 depends=('libcups' 'python')
-source=("http://cyberelk.net/tim/data/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
-md5sums=('6db9d8bc7f40315bc0b93f210737cc82')
+source=("http://cyberelk.net/tim/data/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
+	'gcc4.5.patch')
+md5sums=('6db9d8bc7f40315bc0b93f210737cc82'
+	'01bfaa829e4c54d842573a8dd3f40220')
 
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
+  patch -Np1 -i ${srcdir}/gcc4.5.patch
   make || return 1
 }
 

Added: gcc4.5.patch
===================================================================
--- gcc4.5.patch	                        (rev 0)
+++ gcc4.5.patch	2010-05-19 16:00:32 UTC (rev 80562)
@@ -0,0 +1,20 @@
+--- pycups-1.9.49/Makefile~	2010-05-19 17:56:30.437732869 +0200
++++ pycups-1.9.49/Makefile	2010-05-19 17:57:10.201877902 +0200
+@@ -9,7 +9,7 @@
+ 	COPYING NEWS README TODO ChangeLog
+ 
+ cups.so: $(SOURCES)
+-	CFLAGS=-DVERSION=\\\"$(VERSION)\\\" python setup.py build
++	python setup.py build
+ 	mv build/lib*/$@ .
+ 
+ doc:	cups.so
+--- pycups-1.9.49/setup.py~	2010-05-19 17:57:19.441043994 +0200
++++ pycups-1.9.49/setup.py	2010-05-19 17:57:55.434385149 +0200
+@@ -3,4 +3,5 @@
+        ext_modules=[Extension("cups",
+                               ["cupsmodule.c", "cupsconnection.c",
+                                "cupsppd.c", "cupsipp.c"],
+-                              libraries=["cups"])])
++                              libraries=["cups"],
++                              define_macros=[("VERSION", '"1.9.49"')])])




More information about the arch-commits mailing list