]> git.pld-linux.org Git - packages/pypy.git/commitdiff
Testing update to 1.9, added ncurses test.
authorMateusz Korniak <matkor@pld-linux.org>
Fri, 3 Aug 2012 10:00:57 +0000 (12:00 +0200)
committerMateusz Korniak <matkor@pld-linux.org>
Fri, 3 Aug 2012 10:00:57 +0000 (12:00 +0200)
pypy-curses.patch
pypy.spec

index 43fe9471169919921476f76cd6add781be2757cc..342c09f29e623e6b1bb76e6dc71bde9363f6050b 100644 (file)
@@ -1,11 +1,16 @@
---- pypy-pypy-release-1.7/pypy/module/_minimal_curses/fficurses.py~    2011-11-19 08:44:54.000000000 +0100
-+++ pypy-pypy-release-1.7/pypy/module/_minimal_curses/fficurses.py     2012-02-02 14:10:59.067360229 +0100
-@@ -10,7 +10,7 @@
+--- ./pypy/module/_minimal_curses/fficurses.py.curses  2012-06-07 14:24:48.000000000 +0200
++++ ./pypy/module/_minimal_curses/fficurses.py 2012-08-03 11:54:28.717067645 +0200
+@@ -9,10 +9,12 @@ from pypy.rpython.extfunc import registe
+ from pypy.module._minimal_curses import interp_curses
  from pypy.translator.tool.cbuild import ExternalCompilationInfo
+ from sys import platform
++import os.path
  
- eci = ExternalCompilationInfo(
--    includes = ['curses.h', 'term.h'],
-+    includes = ['ncurses/curses.h', 'ncurses/term.h'],
-     libraries = ['curses'],
- )
+ _CYGWIN = platform == 'cygwin'
++_NCURSES_CURSES = os.path.isfile("/usr/include/ncurses/curses.h") 
  
+-if _CYGWIN:
++if _CYGWIN or _NCURSES_CURSES:
+     eci = ExternalCompilationInfo(
+         includes = ['ncurses/curses.h', 'ncurses/term.h'],
+         libraries = ['curses'],
index 480c6ca4cab5cc355610140e819c69fe98769379..916fc17d310d6bf659622da1024379f2d665203f 100644 (file)
--- a/pypy.spec
+++ b/pypy.spec
@@ -1,4 +1,6 @@
-#
+# TODO:
+# - Reviow commented patch
+
 # Conditional build:
 %bcond_with    tests           # do perform tests
 %bcond_with    bootstrap       # use Python2 instead of PyPy
 
 Summary:       PyPy - a fast, alternative implementation of the Python language
 Name:          pypy
-Version:       1.7
-Release:       2
+Version:       1.9
+Release:       0.2
 License:       distributable
 Group:         Development/Languages/Python
 Source0:       https://bitbucket.org/pypy/pypy/get/release-%{version}.tar.bz2
-# Source0-md5: fc22184c931ead98bdae9ec3e79595c2
+# Source0-md5: f92c0171a9578a3e4a0f74947ec596ab
 Patch0:                %{name}-curses.patch
 Patch1:                %{name}-cldflags.patch
 URL:           http://pypy.org
@@ -50,11 +52,13 @@ language (2.7.1). It has several advantages and distinct features:
 - As well as other features.
 
 %prep
-%setup -q -n %{name}-%{name}-release-%{version}
+# %setup -q -n %{name}-%{name}-release-%{version}
+%setup -q -n %{name}-%{name}-341e1e3821ff
 %patch0 -p1
-%patch1 -p1
+%patch1 -p1
 
 %build
+
 cd pypy/translator/goal
 CC="%{__cc}" \
 CFLAGS="%{rpmcflags}" \
This page took 0.036137 seconds and 4 git commands to generate.