diff -Nru double-conversion-1.1.1/.gitignore double-conversion-1.1.1/.gitignore --- double-conversion-1.1.1/.gitignore 2012-06-10 18:25:57.000000000 +0000 +++ double-conversion-1.1.1/.gitignore 1970-01-01 00:00:00.000000000 +0000 @@ -1,3 +0,0 @@ -.sconsign.dblite -run_tests -*.o diff -Nru double-conversion-1.1.1/.pc/.version double-conversion-1.1.1/.pc/.version --- double-conversion-1.1.1/.pc/.version 1970-01-01 00:00:00.000000000 +0000 +++ double-conversion-1.1.1/.pc/.version 2013-05-10 15:30:37.000000000 +0000 @@ -0,0 +1 @@ +2 diff -Nru double-conversion-1.1.1/.pc/applied-patches double-conversion-1.1.1/.pc/applied-patches --- double-conversion-1.1.1/.pc/applied-patches 1970-01-01 00:00:00.000000000 +0000 +++ double-conversion-1.1.1/.pc/applied-patches 2013-05-10 15:30:37.000000000 +0000 @@ -0,0 +1 @@ +use-cmake diff -Nru double-conversion-1.1.1/.pc/use-cmake/Makefile double-conversion-1.1.1/.pc/use-cmake/Makefile --- double-conversion-1.1.1/.pc/use-cmake/Makefile 1970-01-01 00:00:00.000000000 +0000 +++ double-conversion-1.1.1/.pc/use-cmake/Makefile 2013-05-10 15:30:34.000000000 +0000 @@ -0,0 +1,7 @@ +all: + scons debug=1 + +test: + ./run_tests --list | tr -d '<' | xargs ./run_tests + +.PHONY: test all diff -Nru double-conversion-1.1.1/AUTHORS double-conversion-1.1.1/AUTHORS --- double-conversion-1.1.1/AUTHORS 2012-06-10 18:25:57.000000000 +0000 +++ double-conversion-1.1.1/AUTHORS 2013-05-10 15:30:34.000000000 +0000 @@ -10,3 +10,4 @@ Jeff Muizelaar Mike Hommey Martin Olsson +Kent Williams diff -Nru double-conversion-1.1.1/CMakeLists.txt double-conversion-1.1.1/CMakeLists.txt --- double-conversion-1.1.1/CMakeLists.txt 1970-01-01 00:00:00.000000000 +0000 +++ double-conversion-1.1.1/CMakeLists.txt 2013-05-10 15:30:34.000000000 +0000 @@ -0,0 +1,89 @@ +cmake_minimum_required(VERSION 2.8) +project(double-conversion) + +# pick a version # +set(double-conversion_VERSION + 1.1.1) + +# set paths for install -- empty initially +# Offer the user the choice of overriding the installation directories +set(INSTALL_BIN_DIR CACHE PATH "Installation directory for libraries") +set(INSTALL_LIB_DIR CACHE PATH "Installation directory for libraries") +set(INSTALL_INCLUDE_DIR CACHE PATH "Installation directory for include") +# set suffix for CMake files used for packaging +if(WIN32 AND NOT CYGWIN) + set(INSTALL_CMAKE_DIR CMake) +else() + set(INSTALL_CMAKE_DIR lib/CMake/double-conversion) +endif() + +# Make relative paths absolute (needed later) +foreach(p LIB BIN INCLUDE CMAKE) + set(var INSTALL_${p}_DIR) + if(NOT IS_ABSOLUTE "${${var}}") + set(${var} "${CMAKE_INSTALL_PREFIX}/${${var}}") + endif() +endforeach() + +# +# set up include dirs +include_directories("${PROJECT_SOURCE_DIR}/src" + "${PROJECT_BINARY_DIR}" + ) + +# Add src subdirectory +add_subdirectory(src) + +# +# set up testing if requested +option(BUILD_TESTING "Build test programs" OFF) +if(BUILD_TESTING) + enable_testing() + include(CTest) + add_subdirectory(test) +endif() + +# +# mention the library target as export library +export(TARGETS double-conversion + FILE "${PROJECT_BINARY_DIR}/double-conversionLibraryDepends.cmake") + +# +# set this build as an importable package +export(PACKAGE double-conversion) + +# +# make a cmake file -- in this case, all that needs defining +# is double-conversion_INCLUDE_DIRS +configure_file(double-conversionBuildTreeSettings.cmake.in + "${PROJECT_BINARY_DIR}/double-conversionBuildTreeSettings.cmake" + @ONLY) + +# +# determine where include is relative to the CMake dir in +# in installed tree +file(RELATIVE_PATH CONF_REL_INCLUDE_DIR "${INSTALL_CMAKE_DIR}" + "${INSTALL_INCLUDE_DIR}") + +# +# sets up config to be used by CMake find_package +configure_file(double-conversionConfig.cmake.in + "${PROJECT_BINARY_DIR}/double-conversionConfig.cmake" + @ONLY) +# +# Export version # checked by find_package +configure_file(double-conversionConfigVersion.cmake.in + "${PROJECT_BINARY_DIR}/double-conversionConfigVersion.cmake" + @ONLY) +# +# install config files for find_package +install(FILES + "${PROJECT_BINARY_DIR}/double-conversionConfig.cmake" + "${PROJECT_BINARY_DIR}/double-conversionConfigVersion.cmake" + DESTINATION "${INSTALL_CMAKE_DIR}" COMPONENT dev) + + +# +# generates install cmake files to find libraries in installation. +install(EXPORT double-conversionLibraryDepends DESTINATION + "${INSTALL_CMAKE_DIR}" COMPONENT dev) diff -Nru double-conversion-1.1.1/Makefile double-conversion-1.1.1/Makefile --- double-conversion-1.1.1/Makefile 2012-06-10 18:25:57.000000000 +0000 +++ double-conversion-1.1.1/Makefile 2013-05-10 15:30:37.000000000 +0000 @@ -1,7 +1,13 @@ all: - scons debug=1 + mkdir build; cd build; cmake .. -DBUILD_TESTING=ON -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_RELEASE="-O3 -fPIC"; make; cd ..; test: - ./run_tests --list | tr -d '<' | xargs ./run_tests + cd build; make test; cd ..; + +install: + cd build; make install; cd ..; + +clean: + rm -rf build .PHONY: test all diff -Nru double-conversion-1.1.1/debian/bzr-builder.manifest double-conversion-1.1.1/debian/bzr-builder.manifest --- double-conversion-1.1.1/debian/bzr-builder.manifest 1970-01-01 00:00:00.000000000 +0000 +++ double-conversion-1.1.1/debian/bzr-builder.manifest 2013-05-10 15:30:37.000000000 +0000 @@ -0,0 +1,3 @@ +# bzr-builder format 0.3 deb-version {debupstream}-0~19 +lp:double-conversion revid:git-v1:04cae7a8d5ef3d62ceffb03cdc3d38f258457a52 +merge packaging lp:~smspillaz/double-conversion/double-conversion-packaging revid:sam.spilsbury@canonical.com-20130510143514-ksztgqqfnollb8x4 diff -Nru double-conversion-1.1.1/debian/changelog double-conversion-1.1.1/debian/changelog --- double-conversion-1.1.1/debian/changelog 2012-11-04 13:52:39.000000000 +0000 +++ double-conversion-1.1.1/debian/changelog 2013-05-10 15:30:37.000000000 +0000 @@ -1,5 +1,18 @@ -double-conversion (1.1.1-1) unstable; urgency=low +double-conversion (1.1.1-0~19~raring1) raring; urgency=low - * Initial release. (Closes: #692264) + * Auto build. - -- Sébastien Villemot Fri, 02 Nov 2012 14:57:08 +0100 + -- Sam Spilsbury Fri, 10 May 2013 15:30:37 +0000 + +double-conversion (1.1.1-1ubuntu2) raring; urgency=low + + * Release version 1.1.1 + * Include more in the .install file + + -- Sam Spilsbury Fri, 10 May 2013 22:12:38 +0800 + +double-conversion (1.0-1) raring; urgency=low + + * Initial release + + -- Sam Spilsbury Fri, 10 May 2013 21:09:20 +0800 diff -Nru double-conversion-1.1.1/debian/compat double-conversion-1.1.1/debian/compat --- double-conversion-1.1.1/debian/compat 2012-11-02 14:04:28.000000000 +0000 +++ double-conversion-1.1.1/debian/compat 2013-05-10 15:30:36.000000000 +0000 @@ -1 +1 @@ -9 +8 diff -Nru double-conversion-1.1.1/debian/control double-conversion-1.1.1/debian/control --- double-conversion-1.1.1/debian/control 2012-11-04 14:04:24.000000000 +0000 +++ double-conversion-1.1.1/debian/control 2013-05-10 15:30:36.000000000 +0000 @@ -1,62 +1,22 @@ Source: double-conversion Priority: extra -Maintainer: Debian Science Team -Uploaders: Sébastien Villemot -Build-Depends: dpkg-dev (>= 1.16.1~), debhelper (>= 9), dh-exec +Maintainer: Sam Spilsbury +Build-Depends: debhelper (>= 8.0.0), cmake Standards-Version: 3.9.4 Section: libs -Homepage: http://double-conversion.googlecode.com -Vcs-Git: git://git.debian.org/git/debian-science/packages/double-conversion.git -Vcs-Browser: http://git.debian.org/?p=debian-science/packages/double-conversion.git +Homepage: https://code.google.com/p/double-conversion/ +Vcs-Git: https://code.google.com/p/double-conversion/ -Package: libdouble-conversion0 -Architecture: any -Multi-Arch: same -Pre-Depends: ${misc:Pre-Depends} -Depends: ${shlibs:Depends}, ${misc:Depends} -Description: routines to convert IEEE floats to and from strings - This library provides routines to convert IEEE single and double floats to and - from string representations. It offers at lot of flexibility with respect to - the conversion format: shortest, fixed, precision or exponential - representation; decimal, octal or hexadecimal basis; control over number of - digits, leading/trailing zeros and spaces. - . - The library consists of efficient conversion routines that have been - extracted from the V8 JavaScript engine. The code has been refactored - and improved so that it can be used more easily in other projects. - . - This package contains a shared version of the library. - -Package: libdouble-conversion-dev +Package: double-conversion-dev Section: libdevel Architecture: any -Depends: libdouble-conversion0 (= ${binary:Version}), ${misc:Depends} -Description: routines to convert IEEE floats to and from strings (development files) - This library provides routines to convert IEEE single and double floats to and - from string representations. It offers at lot of flexibility with respect to - the conversion format: shortest, fixed, precision or exponential - representation; decimal, octal or hexadecimal basis; control over number of - digits, leading/trailing zeros and spaces. - . - The library consists of efficient conversion routines that have been - extracted from the V8 JavaScript engine. The code has been refactored - and improved so that it can be used more easily in other projects. - . - This package contains a static version of the library and development headers. +Depends: double-conversion +Description: Binary-decimal and decimal-binary routines for IEEE doubles. + This library consists of efficient conversion routines that have been extracted from the V8 JavaScript engine. The code has been refactored and improved so that it can be used more easily in other projects. -Package: libdouble-conversion-dbg -Section: debug +Package: double-conversion +Section: libs Architecture: any -Depends: libdouble-conversion0 (= ${binary:Version}), ${misc:Depends} -Description: routines to convert IEEE floats to and from strings (debugging symbols) - This library provides routines to convert IEEE single and double floats to and - from string representations. It offers at lot of flexibility with respect to - the conversion format: shortest, fixed, precision or exponential - representation; decimal, octal or hexadecimal basis; control over number of - digits, leading/trailing zeros and spaces. - . - The library consists of efficient conversion routines that have been - extracted from the V8 JavaScript engine. The code has been refactored - and improved so that it can be used more easily in other projects. - . - This package contains the detached debugging symbols of the library. +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Binary-decimal and decimal-binary routines for IEEE doubles. + This library consists of efficient conversion routines that have been extracted from the V8 JavaScript engine. The code has been refactored and improved so that it can be used more easily in other projects. diff -Nru double-conversion-1.1.1/debian/copyright double-conversion-1.1.1/debian/copyright --- double-conversion-1.1.1/debian/copyright 2012-11-04 13:58:54.000000000 +0000 +++ double-conversion-1.1.1/debian/copyright 2013-05-10 15:30:36.000000000 +0000 @@ -1,39 +1,41 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: double-conversion -Upstream-Contact: Florian Loitsch -Source: http://double-conversion.googlecode.com +Source: Files: * -Copyright: 2006-2008, 2010-2012 The V8 project authors -License: BSD-3-clause +Copyright: 2006-2011, Google Inc. + 2006-2011, Mozilla Foundation -Files: debian/* -Copyright: 2012 Sébastien Villemot -License: BSD-3-clause + 2006-2011, Jeff Muizelaar + 2006-2011, Mike Hommey + 2006-2011, Martin Olsson + 2006-2011, Kent Williams + +License: + BSD -License: BSD-3-clause - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are - met: +# If you want to use GPL v2 or later for the /debian/* files use +# the following clauses, or change it to suit. Delete these two lines +Files: debian/* +Copyright: 2013 Sam Spilsbury +License: GPL-2+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. . - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - * Neither the name of Google Inc. nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. . - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + You should have received a copy of the GNU General Public License + along with this program. If not, see + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. +# Please avoid to pick license terms that are more restrictive than the +# packaged work, as it may make Debian's contributions unacceptable upstream. diff -Nru double-conversion-1.1.1/debian/docs double-conversion-1.1.1/debian/docs --- double-conversion-1.1.1/debian/docs 1970-01-01 00:00:00.000000000 +0000 +++ double-conversion-1.1.1/debian/docs 2013-05-10 15:30:36.000000000 +0000 @@ -0,0 +1 @@ +README diff -Nru double-conversion-1.1.1/debian/double-conversion-dev.install double-conversion-1.1.1/debian/double-conversion-dev.install --- double-conversion-1.1.1/debian/double-conversion-dev.install 1970-01-01 00:00:00.000000000 +0000 +++ double-conversion-1.1.1/debian/double-conversion-dev.install 2013-05-10 15:30:36.000000000 +0000 @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/CMake/* /usr/lib/CMake/ +debian/tmp/usr/include/* /usr/include/ diff -Nru double-conversion-1.1.1/debian/double-conversion.install double-conversion-1.1.1/debian/double-conversion.install --- double-conversion-1.1.1/debian/double-conversion.install 1970-01-01 00:00:00.000000000 +0000 +++ double-conversion-1.1.1/debian/double-conversion.install 2013-05-10 15:30:36.000000000 +0000 @@ -0,0 +1 @@ +debian/tmp/usr/lib/libdouble-conversion.a /usr/lib/ diff -Nru double-conversion-1.1.1/debian/libdouble-conversion-dev.install double-conversion-1.1.1/debian/libdouble-conversion-dev.install --- double-conversion-1.1.1/debian/libdouble-conversion-dev.install 2012-11-02 14:30:03.000000000 +0000 +++ double-conversion-1.1.1/debian/libdouble-conversion-dev.install 1970-01-01 00:00:00.000000000 +0000 @@ -1,5 +0,0 @@ -#!/usr/bin/dh-exec - -libdouble-conversion.so /usr/lib/${DEB_HOST_MULTIARCH}/ -libdouble-conversion.a /usr/lib/${DEB_HOST_MULTIARCH}/ -src/*.h /usr/include/double-conversion/ diff -Nru double-conversion-1.1.1/debian/libdouble-conversion0.docs double-conversion-1.1.1/debian/libdouble-conversion0.docs --- double-conversion-1.1.1/debian/libdouble-conversion0.docs 2012-11-02 14:35:49.000000000 +0000 +++ double-conversion-1.1.1/debian/libdouble-conversion0.docs 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -README diff -Nru double-conversion-1.1.1/debian/libdouble-conversion0.install double-conversion-1.1.1/debian/libdouble-conversion0.install --- double-conversion-1.1.1/debian/libdouble-conversion0.install 2012-11-02 14:29:09.000000000 +0000 +++ double-conversion-1.1.1/debian/libdouble-conversion0.install 1970-01-01 00:00:00.000000000 +0000 @@ -1,3 +0,0 @@ -#!/usr/bin/dh-exec - -libdouble-conversion.so.* /usr/lib/${DEB_HOST_MULTIARCH}/ diff -Nru double-conversion-1.1.1/debian/libdouble-conversion0.lintian-overrides double-conversion-1.1.1/debian/libdouble-conversion0.lintian-overrides --- double-conversion-1.1.1/debian/libdouble-conversion0.lintian-overrides 2012-11-04 14:09:34.000000000 +0000 +++ double-conversion-1.1.1/debian/libdouble-conversion0.lintian-overrides 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -hardening-no-fortify-functions usr/lib/*/libdouble-conversion.so.0.* diff -Nru double-conversion-1.1.1/debian/rules double-conversion-1.1.1/debian/rules --- double-conversion-1.1.1/debian/rules 2012-11-04 14:23:14.000000000 +0000 +++ double-conversion-1.1.1/debian/rules 2013-05-10 15:30:36.000000000 +0000 @@ -1,66 +1,13 @@ #!/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. -# Get compilation flags from dpkg-buildflags -include /usr/share/dpkg/default.mk - -ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) - NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) - MAKEFLAGS += -j$(NUMJOBS) -endif +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 %: - dh $@ --parallel - -SO=0 -VERS=$(SO).0 - -SRC=$(shell echo src/*.cc) -OBJ=$(SRC:.cc=.o) - -TEST_SRC=$(shell echo test/cctest/*.cc) -TEST_OBJ=$(TEST_SRC:.cc=.o) - -CPPFLAGS += -Isrc/ - -debian/shared_dir debian/static_dir: - mkdir -p $(subst _dir,,$(@)) - touch $@ - -$(subst src/,debian/static/,$(OBJ)): \ - debian/static/%.o : src/%.cc debian/static_dir - - $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@ - -$(subst src/,debian/shared/,$(OBJ)): \ - debian/shared/%.o : src/%.cc debian/shared_dir - - $(CXX) $(CPPFLAGS) $(CXXFLAGS) -fPIC -c $< -o $@ - -libdouble-conversion.so: libdouble-conversion.so.$(SO) - ln -snf $< $@ - -libdouble-conversion.so.$(SO): libdouble-conversion.so.$(VERS) - ln -snf $< $@ - -libdouble-conversion.so.$(VERS): $(subst src/,debian/shared/,$(OBJ)) - $(CXX) $(LDFLAGS) -shared -Wl,-soname=libdouble-conversion.so.$(SO) -o $@ $^ - -libdouble-conversion.a: $(subst src/,debian/static/,$(OBJ)) - ar r $@ $^ - -run_tests: $(TEST_OBJ) libdouble-conversion.a - $(CXX) $(LDFLAGS) -o run_tests $^ - -override_dh_auto_build: libdouble-conversion.so libdouble-conversion.a run_tests - -override_dh_auto_clean: - rm -f libdouble-conversion.* run_tests test/cctest/*.o - rm -rf debian/shared debian/static - rm -f debian/static_dir debian/shared_dir - -override_dh_strip: - dh_strip --dbg-package=libdouble-conversion-dbg - -get-orig-source: - uscan --force-download --rename --destdir . -.PHONY: get-orig-source + dh $@ diff -Nru double-conversion-1.1.1/debian/source/format double-conversion-1.1.1/debian/source/format --- double-conversion-1.1.1/debian/source/format 2013-05-10 15:36:36.946466023 +0000 +++ double-conversion-1.1.1/debian/source/format 2013-05-10 15:36:37.376465476 +0000 @@ -1 +1 @@ -3.0 (quilt) +3.0 (native) diff -Nru double-conversion-1.1.1/debian/watch double-conversion-1.1.1/debian/watch --- double-conversion-1.1.1/debian/watch 2012-11-02 14:00:29.000000000 +0000 +++ double-conversion-1.1.1/debian/watch 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -version=3 -http://code.google.com/p/double-conversion/downloads/list?can=1 .*/double-conversion-(\d[\d.]*)\.(?:zip|tgz|tbz2|txz|tar\.gz|tar\.bz2|tar\.xz) \ No newline at end of file diff -Nru double-conversion-1.1.1/double-conversionBuildTreeSettings.cmake.in double-conversion-1.1.1/double-conversionBuildTreeSettings.cmake.in --- double-conversion-1.1.1/double-conversionBuildTreeSettings.cmake.in 1970-01-01 00:00:00.000000000 +0000 +++ double-conversion-1.1.1/double-conversionBuildTreeSettings.cmake.in 2013-05-10 15:30:34.000000000 +0000 @@ -0,0 +1,2 @@ +set(double-conversion_INCLUDE_DIRS + "@PROJECT_SOURCE_DIR@/src") diff -Nru double-conversion-1.1.1/double-conversionConfig.cmake.in double-conversion-1.1.1/double-conversionConfig.cmake.in --- double-conversion-1.1.1/double-conversionConfig.cmake.in 1970-01-01 00:00:00.000000000 +0000 +++ double-conversion-1.1.1/double-conversionConfig.cmake.in 2013-05-10 15:30:34.000000000 +0000 @@ -0,0 +1,17 @@ +# - Config file for the double-conversion package +# It defines the following variables +# double-conversion_INCLUDE_DIRS +# double-conversion_LIBRARIES + +get_filename_component(double-conversion_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) + +if(EXISTS "${double-conversion_CMAKE_DIR}/CMakeCache.txt") + include("${double-conversion_CMAKE_DIR}/double-conversionBuildTreeSettings.cmake") +else() + set(double-conversion_INCLUDE_DIRS + "${double-conversion_CMAKE_DIR}/@CONF_REL_INCLUDE_DIR@/include/double-conversion") +endif() + +include("${double-conversion_CMAKE_DIR}/double-conversionLibraryDepends.cmake") + +set(double-conversion_LIBRARIES double-conversion) diff -Nru double-conversion-1.1.1/double-conversionConfigVersion.cmake.in double-conversion-1.1.1/double-conversionConfigVersion.cmake.in --- double-conversion-1.1.1/double-conversionConfigVersion.cmake.in 1970-01-01 00:00:00.000000000 +0000 +++ double-conversion-1.1.1/double-conversionConfigVersion.cmake.in 2013-05-10 15:30:34.000000000 +0000 @@ -0,0 +1,11 @@ +set(PACKAGE_VERSION "@double-conversion_VERSION@") + +# Check whether the requested PACKAGE_FIND_VERSION is compatible +if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}") + set(PACKAGE_VERSION_COMPATIBLE FALSE) +else() + set(PACKAGE_VERSION_COMPATIBLE TRUE) + if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}") + set(PACKAGE_VERSION_EXACT TRUE) + endif() +endif() diff -Nru double-conversion-1.1.1/src/CMakeLists.txt double-conversion-1.1.1/src/CMakeLists.txt --- double-conversion-1.1.1/src/CMakeLists.txt 1970-01-01 00:00:00.000000000 +0000 +++ double-conversion-1.1.1/src/CMakeLists.txt 2013-05-10 15:30:34.000000000 +0000 @@ -0,0 +1,42 @@ + +set(headers + bignum.h + cached-powers.h + diy-fp.h + double-conversion.h + fast-dtoa.h + fixed-dtoa.h + ieee.h + strtod.h + utils.h + ) + +add_library(double-conversion +bignum.cc +bignum-dtoa.cc +cached-powers.cc +diy-fp.cc +double-conversion.cc +fast-dtoa.cc +fixed-dtoa.cc +strtod.cc +${headers} +) + +# +# associates the list of headers with the library +# for the purposes of installation/import into other projects +set_target_properties(double-conversion + PROPERTIES PUBLIC_HEADER "${headers}") + +# +# install command to set up library install +# given the above PUBLIC_HEADER property set, this +# pulls along all the header files with the library. +install(TARGETS double-conversion + EXPORT double-conversionLibraryDepends + RUNTIME DESTINATION "${INSTALL_BIN_DIR}" COMPONENT bin + LIBRARY DESTINATION "${INSTALL_LIB_DIR}/lib" COMPONENT shlib + ARCHIVE DESTINATION "${INSTALL_LIB_DIR}/lib" COMPONENT lib + PUBLIC_HEADER DESTINATION "${INSTALL_INCLUDE_DIR}/include/double-conversion" + COMPONENT dev) diff -Nru double-conversion-1.1.1/src/bignum.cc double-conversion-1.1.1/src/bignum.cc --- double-conversion-1.1.1/src/bignum.cc 2012-06-10 18:25:57.000000000 +0000 +++ double-conversion-1.1.1/src/bignum.cc 2013-05-10 15:30:34.000000000 +0000 @@ -501,8 +501,8 @@ // Start by removing multiples of 'other' until both numbers have the same // number of digits. while (BigitLength() > other.BigitLength()) { - // This naive approach is extremely inefficient if the this divided other - // might be big. This function is implemented for doubleToString where + // This naive approach is extremely inefficient if `this` divided by other + // is big. This function is implemented for doubleToString where // the result should be small (less than 10). ASSERT(other.bigits_[other.used_digits_ - 1] >= ((1 << kBigitSize) / 16)); // Remove the multiples of the first digit. @@ -755,7 +755,6 @@ Chunk difference = bigits_[i] - borrow; bigits_[i] = difference & kBigitMask; borrow = difference >> (kChunkSize - 1); - ++i; } Clamp(); } diff -Nru double-conversion-1.1.1/src/double-conversion.cc double-conversion-1.1.1/src/double-conversion.cc --- double-conversion-1.1.1/src/double-conversion.cc 2012-06-10 18:25:57.000000000 +0000 +++ double-conversion-1.1.1/src/double-conversion.cc 2013-05-10 15:30:34.000000000 +0000 @@ -577,7 +577,7 @@ const char* input, int length, int* processed_characters_count, - bool read_as_double) { + bool read_as_double) const { const char* current = input; const char* end = input + length; diff -Nru double-conversion-1.1.1/src/double-conversion.h double-conversion-1.1.1/src/double-conversion.h --- double-conversion-1.1.1/src/double-conversion.h 2012-06-10 18:25:57.000000000 +0000 +++ double-conversion-1.1.1/src/double-conversion.h 2013-05-10 15:30:34.000000000 +0000 @@ -502,7 +502,7 @@ // in the 'processed_characters_count'. Trailing junk is never included. double StringToDouble(const char* buffer, int length, - int* processed_characters_count) { + int* processed_characters_count) const { return StringToIeee(buffer, length, processed_characters_count, true); } @@ -511,7 +511,7 @@ // due to potential double-rounding. float StringToFloat(const char* buffer, int length, - int* processed_characters_count) { + int* processed_characters_count) const { return static_cast(StringToIeee(buffer, length, processed_characters_count, false)); } @@ -526,7 +526,7 @@ double StringToIeee(const char* buffer, int length, int* processed_characters_count, - bool read_as_double); + bool read_as_double) const; DISALLOW_IMPLICIT_CONSTRUCTORS(StringToDoubleConverter); }; diff -Nru double-conversion-1.1.1/src/utils.h double-conversion-1.1.1/src/utils.h --- double-conversion-1.1.1/src/utils.h 2012-06-10 18:25:57.000000000 +0000 +++ double-conversion-1.1.1/src/utils.h 2013-05-10 15:30:34.000000000 +0000 @@ -55,10 +55,12 @@ #if defined(_M_X64) || defined(__x86_64__) || \ defined(__ARMEL__) || defined(__avr32__) || \ defined(__hppa__) || defined(__ia64__) || \ - defined(__mips__) || defined(__powerpc__) || \ + defined(__mips__) || \ + defined(__powerpc__) || defined(__ppc__) || defined(__ppc64__) || \ defined(__sparc__) || defined(__sparc) || defined(__s390__) || \ defined(__SH4__) || defined(__alpha__) || \ - defined(_MIPS_ARCH_MIPS32R2) + defined(_MIPS_ARCH_MIPS32R2) || \ + defined(_AARCH64EL_) #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1 #elif defined(_M_IX86) || defined(__i386__) || defined(__i386) #if defined(_WIN32) diff -Nru double-conversion-1.1.1/test/CMakeLists.txt double-conversion-1.1.1/test/CMakeLists.txt --- double-conversion-1.1.1/test/CMakeLists.txt 1970-01-01 00:00:00.000000000 +0000 +++ double-conversion-1.1.1/test/CMakeLists.txt 2013-05-10 15:30:34.000000000 +0000 @@ -0,0 +1 @@ +add_subdirectory(cctest) \ No newline at end of file diff -Nru double-conversion-1.1.1/test/cctest/CMakeLists.txt double-conversion-1.1.1/test/cctest/CMakeLists.txt --- double-conversion-1.1.1/test/cctest/CMakeLists.txt 1970-01-01 00:00:00.000000000 +0000 +++ double-conversion-1.1.1/test/cctest/CMakeLists.txt 2013-05-10 15:30:34.000000000 +0000 @@ -0,0 +1,50 @@ + +set(CCTEST_SRC + cctest.cc + gay-fixed.cc + gay-precision.cc + gay-shortest.cc + gay-shortest-single.cc + test-bignum.cc + test-bignum-dtoa.cc + test-conversions.cc + test-diy-fp.cc + test-dtoa.cc + test-fast-dtoa.cc + test-fixed-dtoa.cc + test-ieee.cc + test-strtod.cc +) + +add_executable(cctest ${CCTEST_SRC}) +target_link_libraries(cctest double-conversion) + +add_test(NAME test_bignum + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + COMMAND $ test-bignum) + +add_test(NAME test_bignum_dtoa + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + COMMAND $ test-bignum-dtoa) + +add_test(NAME test_conversions + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + COMMAND $ test-conversions) +add_test(NAME test_diy_fp + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + COMMAND $ test-diy-fp) +add_test(NAME test_dtoa + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + COMMAND $ test-dtoa) +add_test(NAME test_fast_dtoa + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + COMMAND $ test-fast-dtoa) +add_test(NAME test_fixed_dtoa + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + COMMAND $ test-fixed-dtoa) +add_test(NAME test_ieee + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + COMMAND $ test-ieee) +add_test(NAME test_strtod + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + COMMAND $ test-strtod)