--- libblocksruntime-0.1.orig/debian/control +++ libblocksruntime-0.1/debian/control @@ -0,0 +1,31 @@ +Source: libblocksruntime +Priority: extra +Maintainer: Mark Heily +Build-Depends: debhelper (>= 7), clang +Standards-Version: 3.8.4 +Section: libs +Homepage: http://compiler-rt.llvm.org/ + +Package: libblocksruntime-dev +Section: libdevel +Architecture: any +Depends: libblocksruntime0 (= ${binary:Version}), ${misc:Depends} +Description: Blocks Runtime (development files) + This package contains development headers for building software that + uses blocks. + . + Blocks are a proposed extension to the C, Objective C, and C++ languages + developed by Apple to support the Grand Central Dispatch concurrency engine. + +Package: libblocksruntime0 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Blocks Runtime library + Blocks are a proposed extension to the C, Objective C, and C++ languages + developed by Apple to support the Grand Central Dispatch concurrency engine. + Blocks are anonymous inline functions that automatically capture a read-only + copy of local variables, and have read-write access to local variables that + are declared with the "__block" storage class. + . + This package contains a library that is needed by programs that use Blocks. --- libblocksruntime-0.1.orig/debian/compat +++ libblocksruntime-0.1/debian/compat @@ -0,0 +1 @@ +7 --- libblocksruntime-0.1.orig/debian/libblocksruntime-dev.dirs +++ libblocksruntime-0.1/debian/libblocksruntime-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include --- libblocksruntime-0.1.orig/debian/changelog +++ libblocksruntime-0.1/debian/changelog @@ -0,0 +1,5 @@ +libblocksruntime (0.1-1) unstable; urgency=low + + * Initial release from compiler-rt r104787 sources (Closes: #584190) + + -- Mark Heily Wed, 02 Jun 2010 22:17:11 -0400 --- libblocksruntime-0.1.orig/debian/copyright +++ libblocksruntime-0.1/debian/copyright @@ -0,0 +1,106 @@ +This work was packaged for Debian by: + + Mark Heily on Wed, 02 Jun 2010 22:17:11 -0400 + +It was downloaded from + +Upstream Author(s): + + LLVM Development Team + Apple, Inc. + +Copyright: + + Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign. + Copyright 2008-2010 Apple, Inc. + +License: + + ============================================================================== + LLVM Release License + ============================================================================== + University of Illinois/NCSA + Open Source License + + Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign. + All rights reserved. + + Developed by: + + LLVM Team + + University of Illinois at Urbana-Champaign + + http://llvm.org + + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal with + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies + of the Software, and to permit persons to whom the Software is furnished to do + so, subject to the following conditions: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimers. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimers in the + documentation and/or other materials provided with the distribution. + + * Neither the names of the LLVM Team, University of Illinois at + Urbana-Champaign, nor the names of its contributors may be used to + endorse or promote products derived from this Software without specific + prior written permission. + + 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 AND NONINFRINGEMENT. IN NO EVENT SHALL THE + CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE + SOFTWARE. + + ============================================================================== + Copyrights and Licenses for Third Party Software Distributed with LLVM: + ============================================================================== + The LLVM software contains code written by third parties. Such software will + have its own individual LICENSE.TXT file in the directory in which it appears. + This file will describe the copyrights, license, and restrictions which apply + to that code. + + The disclaimer of warranty in the University of Illinois Open Source License + applies to all code in the LLVM Distribution, and nothing in any of the + other licenses gives permission to use the names of the LLVM Team or the + University of Illinois to endorse or promote products derived from this + Software. + + --------------------------------------------------------------------------- + Apple "Blocks" license + --------------------------------------------------------------------------- + + Copyright 2008-2010 Apple, Inc. Permission is hereby granted, free of charge, + to any person obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without restriction, + including without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to permit + persons to whom the Software is furnished to do so, subject to the following + conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + 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 AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF 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 Mark Heily + +and is licensed under the BSD license, +see `/usr/share/common-licenses/BSD'. + --- libblocksruntime-0.1.orig/debian/libblocksruntime0.dirs +++ libblocksruntime-0.1/debian/libblocksruntime0.dirs @@ -0,0 +1 @@ +usr/lib --- libblocksruntime-0.1.orig/debian/libblocksruntime-dev.install +++ libblocksruntime-0.1/debian/libblocksruntime-dev.install @@ -0,0 +1,2 @@ +usr/include/* +usr/lib/lib*.so --- libblocksruntime-0.1.orig/debian/rules +++ libblocksruntime-0.1/debian/rules @@ -0,0 +1,59 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build: build-stamp +build-stamp: + dh_testdir + CC=clang CFLAGS="" LDFLAGS="" \ + ./configure --prefix=/usr --mandir=\$${prefix}/share/man + $(MAKE) + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + [ ! -f config.mk ] || $(MAKE) distclean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + # Add here commands to install the package into debian/tmp + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install + +# Build architecture-independent files here. +binary-indep: install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: install + dh_testdir + dh_testroot + dh_movefiles + dh_installchangelogs ChangeLog + dh_installdocs + dh_installexamples + dh_install + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs -V + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- libblocksruntime-0.1.orig/debian/README.source +++ libblocksruntime-0.1/debian/README.source @@ -0,0 +1,7 @@ +This source tree is based on the BlocksRuntime directory of the compiler-rt +sources. There is no interdependency between libBlocksRuntime and the rest +of compiler-rt, so it is somewhat odd that they are distributed together. + +compiler-rt uses CMake, which is overkill for a tiny library like libBlocksRuntime. I copied the values from config.h and the CFLAGS from the CMake build system into Makefile and config.inc. + + - Mark --- libblocksruntime-0.1.orig/debian/libblocksruntime0.install +++ libblocksruntime-0.1/debian/libblocksruntime0.install @@ -0,0 +1 @@ +usr/lib/lib*.so.* --- libblocksruntime-0.1.orig/debian/source/format +++ libblocksruntime-0.1/debian/source/format @@ -0,0 +1 @@ +1.0