debian/0000755000000000000000000000000011467772254007205 5ustar debian/watch0000644000000000000000000000006411361262527010224 0ustar version=3 http://sf.net/pygccxml/pygccxml-(.*)\.zip debian/docs0000644000000000000000000000006511411242060010031 0ustar announcement.txt README.txt docs/*.png docs/apidocs/ debian/copyright0000644000000000000000000000344211361262527011131 0ustar This work was packaged for Debian by: Aron Xu on Wed, 17 Mar 2010 12:16:39 +0800 It was downloaded from http://sourceforge.net/projects/pygccxml/ Upstream Author: Roman Yakovenko Copyright: Copyright 2004-2008 Roman Yakovenko License: Boost Software License - Version 1.0 - August 17th, 2003 Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following: The copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. The Debian packaging is: Copyright (C) 2010 Aron Xu and is licensed under the GPL version 2 or higher, see `/usr/share/common-licenses/GPL-2'. debian/changelog0000644000000000000000000000210011467533024011036 0ustar pygccxml (1.0.0-4) unstable; urgency=low * debian/patches/use_hashlib_md5.patch: - Use hashlib instead of md5 module. (Closes: #588843) * debian/patches/check_os_name_posix.patch: - Fix error in checking POSIX compatible operating systems. (Closes: #588844) * debian/control: - Bump std-ver to 3.9.1. -- Aron Xu Sat, 13 Nov 2010 20:45:37 +0800 pygccxml (1.0.0-3) unstable; urgency=low * debian/rules: Fixing FTBFS bug caused by dh changes (Closes: #587127) * debian/doc-base: register pygccxml apidocs to doc-base. -- Aron Xu Thu, 01 Jul 2010 12:47:30 +0800 pygccxml (1.0.0-2) unstable; urgency=low * debian/control: Add "XS-Python-Version: >= 2.5" (Closes: #577585). Improve long description. * debian/source/format: use `3.0 (quilt)' source format. -- Aron Xu Wed, 14 Apr 2010 15:25:43 +0800 pygccxml (1.0.0-1) unstable; urgency=low * Initial release (Closes: #574256) -- Aron Xu Wed, 17 Mar 2010 12:16:39 +0800 debian/control0000644000000000000000000000125011467504515010577 0ustar Source: pygccxml Section: python Priority: optional Maintainer: Aron Xu Build-Depends: debhelper (>= 7.0.50~), python, python-support, gccxml, unzip Standards-Version: 3.9.1 XS-Python-Version: >= 2.5 Homepage: http://www.language-binding.net/pygccxml/pygccxml.html Package: python-pygccxml Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, gccxml Description: specialized XML reader reads the output from gccxml The purpose of pygccxml is to read a generated file and provide a simple framework to navigate C++ declarations using Python classes. . This package provides the Python module that can be import for uses. debian/pycompat0000644000000000000000000000000211361262527010742 0ustar 2 debian/source/0000755000000000000000000000000011361265527010476 5ustar debian/source/format0000644000000000000000000000001411361575133011701 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000011467534132010623 5ustar debian/patches/check_os_name_posix.patch0000644000000000000000000000150611467504417015651 0ustar Description: Fix error in checking POSIX compatible operating systems Check os.name == 'posix' to avoid varied sys.platform values across different unix-like systems. . This will help it work on kfreebsd ports. Forwarded: https://sourceforge.net/tracker/?func=detail&aid=3041168&group_id=118209&atid=684318 Bug-Debian: http://bugs.debian.org/588844 Author: Aron Xu Last-Update: 2010-11-13 --- a/pygccxml/parser/config.py +++ b/pygccxml/parser/config.py @@ -169,7 +169,7 @@ if sys.platform == 'win32': gccxml_name = 'gccxml' + '.exe' environment_var_delimiter = ';' - elif sys.platform == 'linux2' or sys.platform == 'darwin': + elif os.name == 'posix': gccxml_name = 'gccxml' environment_var_delimiter = ':' else: debian/patches/series0000644000000000000000000000006011467505122012031 0ustar check_os_name_posix.patch use_hashlib_md5.patch debian/patches/use_hashlib_md5.patch0000644000000000000000000000512011467534132014675 0ustar Description: Use hashlib instead of md5 module Forwarded: https://sourceforge.net/tracker/?func=detail&aid=3041167&group_id=118209&atid=684318 Bug-Debian: http://bugs.debian.org/588843 Author: Aron Xu Last-Update: 2010-11-13 --- a/pygccxml/parser/declarations_cache.py +++ b/pygccxml/parser/declarations_cache.py @@ -5,11 +5,18 @@ # http://www.boost.org/LICENSE_1_0.txt) import os -import md5 import time import cPickle from pygccxml import utils import config as cxx_parsers_cfg +import sys +if sys.version_info < (2, 5): + import md5 as _mod_md5 + md5 = _mod_md5.new +else: + from hashlib import ( + md5, + ) def file_signature( filename ): if not os.path.isfile( filename ): @@ -19,7 +26,7 @@ # Extend here to use md5 hash for signature # - This change allows duplicate autogenerated files to be recognized #return os.path.getmtime( source ) - sig = md5.new() + sig = md5() f = file(filename,'r') sig.update(f.read()) f.close() @@ -32,7 +39,7 @@ a configuration that could cause the declarations generated to be different between runs. """ - sig = md5.new() + sig = md5() if isinstance( config, cxx_parsers_cfg.gccxml_configuration_t ): sig.update(str(config.gccxml_path)) sig.update(str(config.working_directory)) @@ -234,4 +241,4 @@ pass def cached_value(self, source_file, configuration): - return None \ No newline at end of file + return None --- a/pygccxml/parser/directory_cache.py +++ b/pygccxml/parser/directory_cache.py @@ -14,9 +14,17 @@ argument of the L{parse()} function. """ -import os, os.path, gzip, md5 +import os, os.path, gzip import cPickle import declarations_cache +import sys +if sys.version_info < (2, 5): + import md5 as _mod_md5 + md5 = _mod_md5.new +else: + from hashlib import ( + md5, + ) class index_entry_t: """Entry of the index table in the directory cache index. @@ -340,7 +348,7 @@ @returns: Signature @rtype: str """ - m = md5.new() + m = md5() m.update(config.working_directory) map(lambda p: m.update(p), config.include_paths) map(lambda p: m.update(p), config.define_symbols) @@ -501,7 +509,7 @@ return None data = f.read() f.close() - return md5.new(data).digest() + return md5(data).digest() else: # return file modification date... try: debian/doc-base0000644000000000000000000000044311411245756010575 0ustar Document: pygccxml-apidocs Title: PyGccxml API Documentations Author: Roman Yakovenko Abstract: This manual describes APIs provides by PyGccxml Section: Programming/Python Format: HTML Index: /usr/share/doc/python-pygccxml/apidocs/index.html Files: /usr/share/doc/python-pygccxml/apidocs/* debian/rules0000755000000000000000000000225111411247170010244 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 major=1.0.0 unittmp=`ls ./unittests/*.py` %: dh $@ override_dh_auto_build: python setup.py build --build-lib ./build/lib/ override_dh_auto_clean: python setup.py clean -a -rm -rf ./build find . -name \*.pyc -exec rm {} \; find . -name \*.cache -exec rm {} \; override_dh_installchangelogs: dh_installchangelogs docs/history/history.rest override_dh_auto_test: export PYTHONPATH=$${PYTHONPATH}:build/lib/ ; for test in ${unittmp}; do python $${test}; done get-orig-source: mkdir ../repack uscan --force-download --destdir ../repack --download-current-version ( \ cd ../repack ;\ unzip pygccxml-*.zip ;\ GZIP="--best" tar -czf pygccxml_$(major).orig.tar.gz pygccxml-$(major) ;\ mv pygccxml_$(major).orig.tar.gz .. ;\ ) rm -rf ../repack debian/examples0000644000000000000000000000001711361262527010732 0ustar docs/example/* debian/compat0000644000000000000000000000000211361262527010371 0ustar 7