the Fink project is an effort to port
popular Unix programs to Mac OS X
Info2: <<
Package: python-bibtex-py%type_pkg[python]
Version: 1.2.4
Revision: 1
Type: python (2.5 2.6)
Description: BibTeX parser and binding to GNU Recode
License: GPL
Maintainer: None
Depends: <<
glib2-shlibs (>= 2.20.0-1),
libgettext3-shlibs,
libiconv,
python%type_pkg[python],
recode-shlibs (>= 3.6-9)
<<
BuildDepends: <<
fink (>= 0.24.12),
glib2-dev (>= 2.20.0-1),
libgettext3-dev,
libiconv-dev,
pkgconfig,
recode-dev (>= 3.6-9)
<<
Replaces: (%type_raw[python] = 2.5) python-bibtex (<< 1.2.4-1)
Source: mirror:sourceforge:pybliographer/python-bibtex-%v.tar.gz
Source-MD5: 6b1c260010df099bd8335846f81cac76
PatchFile: %{ni}.patch
PatchFile-MD5: 2db4061b35c148f089ce99583bf5f663
CompileScript: <<
%p/bin/python%type_raw[python] setup.py build_ext -I %p/include -L %p/lib
%p/bin/python%type_raw[python] setup.py build --build-base %b
<<
InstallScript: <<
%p/bin/python%type_raw[python] setup.py install --prefix %i
<<
DocFiles: README
Homepage: http://pybliographer.org
DescDetail: <<
This Python extension contains a BibTeX parser and a simple binding to
the GNU Recode library. They are intended to be used with
Pybliographer.
<<
DescPackaging: <<
Python-varianted as of version 1.2.4. Old python-bibtex was
implicitly for python25.
Patch self-test to avoid assuming ordering of unordered data
structure. See:
http://www.mail-archive.com/debian-bugs-rc@lists.debian.org/msg184686.html
http://sourceforge.net/tracker/?func=detail&aid=2474782&group_id=4825&atid=104825
<<
<<
diff -Nurd -x'*~' python-bibtex-1.2.4.orig/testsuite.py python-bibtex-1.2.4/testsuite.py
--- python-bibtex-1.2.4.orig/testsuite.py 2007-04-23 15:53:35.000000000 -0400
+++ python-bibtex-1.2.4/testsuite.py 2009-08-08 02:48:21.000000000 -0400
@@ -21,6 +21,14 @@
return 0
+def expected_result (obtained, valid):
+ if obtained == valid:
+ return True
+ try:
+ return eval(obtained) == eval(valid)
+ except SyntaxError:
+ return False
+
def check_bibtex ():
@@ -65,7 +73,7 @@
valid = result.readline ().strip ()
- if obtained != valid:
+ if not expected_result(obtained, valid):
sys.stderr.write ('error: %s: line %d: unexpected result:\n' % (
filename, line))
sys.stderr.write ('error: %s: line %d: obtained %s\n' % (
@@ -117,7 +125,7 @@
valid = result.readline ().strip ()
- if obtained != valid:
+ if not expected_result(obtained, valid):
sys.stderr.write ('error: %s: line %d: unexpected result:\n' % (
filename, line))
sys.stderr.write ('error: %s: line %d: obtained %s\n' % (