Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

21
devel/ObjectiveLib/DESCR Normal file
View File

@@ -0,0 +1,21 @@
ObjectiveLib provides two primary services: containers and algorithms. An
important part of the library that keeps everything moving is iterators.
Iterators perform two functions: they provide access to elements stored in
containers and they provide a way for generice algorithms to operate on
elements of almost any type of container. Algorithms take iterators as
arguments, and thus never have any knowledge of what type of container
they happen to be affecting.
ObjectiveLib is designed to offer the same functionality to Objective-C
programmers that the Standard Template Library offers to C++ programmers.
Therefore, anyone familiar with the STL will have no trouble using and
understanding the machinery of ObjectiveLib.
An important component used by all services of ObjectiveLib is the
memory allocator. All containers allocate memory using an associated
memory allocator. This includes memory used to store elements in the
container, iterators, and any temporary buffers that may be needed.
Algorithms also need to allocate memory, so there is an allocator
associated with the OLAlgorithm class. Though the algorithm allocator
appears static, in fact an allocator is associated with each thread.
Therefore, memory allocation when using algorithms is thread-safe.

View File

@@ -0,0 +1,23 @@
# $NetBSD: Makefile,v 1.13 2013/05/09 07:39:33 adam Exp $
#
PKGNAME= ObjectiveLib-1.0.0
DISTNAME= objectivelib-1.0.0
PKGREVISION= 3
CATEGORIES= devel gnustep
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=objectivelib/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://objectivelib.sourceforge.net/
COMMENT= Object containers and generic algorithms for Objective-C
LICENSE= gnu-lgpl-v2.1
PKG_DESTDIR_SUPPORT= destdir
MAKE_JOBS_SAFE= no
USE_LANGUAGES= objc
WRKSRC= ${WRKDIR}/objectivelib
.include "../../devel/gnustep-base/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

49
devel/ObjectiveLib/PLIST Normal file
View File

@@ -0,0 +1,49 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 17:48:30 joerg Exp $
include/ObjectiveLib/Algorithm.h
include/ObjectiveLib/Arithmetic.h
include/ObjectiveLib/BitSet.h
include/ObjectiveLib/BufferingInStream.h
include/ObjectiveLib/BufferingOutStream.h
include/ObjectiveLib/BzlibInStream.h
include/ObjectiveLib/BzlibOutStream.h
include/ObjectiveLib/Character.h
include/ObjectiveLib/Config.h
include/ObjectiveLib/ConnectedInStream.h
include/ObjectiveLib/ConnectedOutStream.h
include/ObjectiveLib/DataInStream.h
include/ObjectiveLib/DataOutStream.h
include/ObjectiveLib/Deque.h
include/ObjectiveLib/Exception.h
include/ObjectiveLib/FileInStream.h
include/ObjectiveLib/FileOutStream.h
include/ObjectiveLib/Functional.h
include/ObjectiveLib/GzipInStream.h
include/ObjectiveLib/GzipOutStream.h
include/ObjectiveLib/HashFunction.h
include/ObjectiveLib/HashMap.h
include/ObjectiveLib/HashSet.h
include/ObjectiveLib/InStream.h
include/ObjectiveLib/Iterator.h
include/ObjectiveLib/LayeredInStream.h
include/ObjectiveLib/LayeredOutStream.h
include/ObjectiveLib/List.h
include/ObjectiveLib/Map.h
include/ObjectiveLib/ObjectBase.h
include/ObjectiveLib/ObjectInStream.h
include/ObjectiveLib/ObjectOutStream.h
include/ObjectiveLib/ObjectiveLib.h
include/ObjectiveLib/OutStream.h
include/ObjectiveLib/Pair.h
include/ObjectiveLib/Queue.h
include/ObjectiveLib/Set.h
include/ObjectiveLib/Socket.h
include/ObjectiveLib/SocketAddress.h
include/ObjectiveLib/Stack.h
include/ObjectiveLib/Streamable.h
include/ObjectiveLib/Text.h
include/ObjectiveLib/Types.h
include/ObjectiveLib/Vector.h
include/ObjectiveLib/ZlibInStream.h
include/ObjectiveLib/ZlibOutStream.h
lib/libObjectiveLib.so
lib/libObjectiveLib.so.${PKGVERSION}

View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.3 2012/10/22 22:10:14 rh Exp $
SHA1 (objectivelib-1.0.0.tar.gz) = 904046406f63285d2a0e5f6b279f711b34e16ad6
RMD160 (objectivelib-1.0.0.tar.gz) = 688b8430ea1a16482b52506157b58dedbfd35c0c
Size (objectivelib-1.0.0.tar.gz) = 833390 bytes
SHA1 (patch-aa) = 3604f398bba598878f731a19aab6ba55006b833d
SHA1 (patch-ab) = bceb865ac5c72d47dfa219411836c047bfae1510

View File

@@ -0,0 +1,31 @@
$NetBSD: patch-aa,v 1.1 2012/10/22 22:10:15 rh Exp $
Make this compile with libobjc2.
--- ObjectOutStream.m.orig 2007-03-25 18:12:15.000000000 +0000
+++ ObjectOutStream.m
@@ -257,11 +257,11 @@
{
[pointerMap assign: cls];
[stream writeByte: WIRE_TYPE_CLASS_NAME];
- len = strlen(cls->name);
+ len = strlen(class_getName(cls));
[stream writeInt16: len];
- [stream completelyWriteBytes: (const uint8_t*)cls->name count: len];
- [stream writeInt: class_get_version(cls)];
- spr = class_get_super_class(cls);
+ [stream completelyWriteBytes: (const uint8_t*)class_getName(cls) count: len];
+ [stream writeInt: class_getVersion(cls)];
+ spr = class_getSuperclass(cls);
if (spr == cls || spr == NULL || [pointerMap lookUp: spr] != UINT32_MAX)
break;
cls = spr;
@@ -363,7 +363,7 @@
else
{
RAISE_EXCEPTION(OLInputOutputException,
- @"The object of type %s does not respond to writeSelfToStream: or to encodeWithCoder:", ((Class)[object class])->name);
+ @"The object of type %s does not respond to writeSelfToStream: or to encodeWithCoder:", class_getName((Class)[object class]));
}
[pointerMap assign: object];
}

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-ab,v 1.1 2012/10/22 22:10:15 rh Exp $
Make this compile with libobjc2.
--- ObjectInStream.m.orig 2007-03-25 18:12:15.000000000 +0000
+++ ObjectInStream.m
@@ -437,7 +437,7 @@ NSString* const OLClassNotFoundException
else
{
RAISE_EXCEPTION(OLInputOutputException,
- @"Instances of the class \"%s\" do not respond to either initWithObjectInStream: or initWithCoder:", cls->name);
+ @"Instances of the class \"%s\" do not respond to either initWithObjectInStream: or initWithCoder:", class_getName(cls));
}
object = [cls alloc];
object = initWithStream ?