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

11
devel/sparse/DESCR Normal file
View File

@@ -0,0 +1,11 @@
Sparse, the semantic parser, provides a compiler frontend capable
of parsing most of ANSI C as well as many GCC extensions, and a
collection of sample compiler backends, including a static analyzer
also called "sparse". Sparse provides a set of annotations designed
to convey semantic information about types, such as what address
space pointers point to, or what locks a function acquires or
releases.
Linus Torvalds started writing Sparse in 2003, initially targeting
issues such as mixing pointers to user address space and pointers
to kernel address space.

29
devel/sparse/Makefile Normal file
View File

@@ -0,0 +1,29 @@
# $NetBSD: Makefile,v 1.7 2013/05/31 12:40:57 wiz Exp $
#
DISTNAME= sparse-0.4.4
PKGREVISION= 1
CATEGORIES= devel lang
MASTER_SITES= https://kernel.org/pub/software/devel/sparse/dist/
EXTRACT_SUFX= .tar.xz
FETCH_USING= curl
MAINTAINER= reed@reedmedia.net
HOMEPAGE= http://kernel.org/pub/software/devel/sparse/
COMMENT= Semantic parser for C
# The license in the tarball appears to be a different (older) version
# from the one in pkgsrc/licenses. I have no idea how significant this
# might be.
#LICENSE= osl
INSTALLATION_DIRS+= share/doc/sparse
PKGCONFIG_OVERRIDE+= sparse.pc.in
REPLACE_PERL= cgcc
USE_TOOLS+= gmake perl:run
post-install:
${INSTALL_DATA} ${WRKSRC}/FAQ ${DESTDIR}${PREFIX}/share/doc/sparse/
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DESTDIR}${PREFIX}/share/doc/sparse/
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/sparse/
.include "../../mk/bsd.pkg.mk"

26
devel/sparse/PLIST Normal file
View File

@@ -0,0 +1,26 @@
@comment $NetBSD: PLIST,v 1.3 2013/04/02 15:27:11 dholland Exp $
bin/cgcc
bin/sparse
include/sparse/allocate.h
include/sparse/bitmap.h
include/sparse/compat.h
include/sparse/dissect.h
include/sparse/expression.h
include/sparse/flow.h
include/sparse/ident-list.h
include/sparse/lib.h
include/sparse/linearize.h
include/sparse/parse.h
include/sparse/ptrlist.h
include/sparse/scope.h
include/sparse/storage.h
include/sparse/symbol.h
include/sparse/target.h
include/sparse/token.h
lib/libsparse.a
lib/pkgconfig/sparse.pc
man/man1/cgcc.1
man/man1/sparse.1
share/doc/sparse/FAQ
share/doc/sparse/LICENSE
share/doc/sparse/README

8
devel/sparse/distinfo Normal file
View File

@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.5 2013/04/02 15:27:11 dholland Exp $
SHA1 (sparse-0.4.4.tar.xz) = 89e74aa638d3b44b0d155ab44edd2165d66c60ab
RMD160 (sparse-0.4.4.tar.xz) = 06af3de3350d5c81db3902fb38f5331d20c8a406
Size (sparse-0.4.4.tar.xz) = 178152 bytes
SHA1 (patch-Makefile) = 7c099c1cf275c324ab7cd7a2a701c2fb3a3a7be4
SHA1 (patch-ab) = 00e9304099c8ba7093e827449fbfe4219045bf40
SHA1 (patch-dissect.h) = 850271dbec6758380134c3e36fb5a885cf69259e

View File

@@ -0,0 +1,39 @@
$NetBSD: patch-Makefile,v 1.1 2013/04/02 15:27:12 dholland Exp $
- honor pkgsrc's DESTDIR and PREFIX
- honor PKGMANDIR
- don't use non-portable install -v
--- Makefile.orig 2011-11-25 05:39:36.000000000 +0000
+++ Makefile
@@ -29,11 +29,12 @@ ifeq ($(HAVE_GCC_DEP),yes)
BASIC_CFLAGS += -Wp,-MD,$(@D)/.$(@F).d
endif
-DESTDIR=
-PREFIX=$(HOME)
+DESTDIR?=
+PREFIX?=$(HOME)
+PKGMANDIR?=share/man
BINDIR=$(PREFIX)/bin
LIBDIR=$(PREFIX)/lib
-MANDIR=$(PREFIX)/share/man
+MANDIR=$(PREFIX)/$(PKGMANDIR)
MAN1DIR=$(MANDIR)/man1
INCLUDEDIR=$(PREFIX)/include
PKGCONFIGDIR=$(LIBDIR)/pkgconfig
@@ -97,12 +98,12 @@ QUIET_INST_SH = $(Q:@=echo -n ' INS
QUIET_INST = $(Q:@=@echo -n ' INSTALL ';)
define INSTALL_EXEC
- $(QUIET_INST)install -v $1 $(DESTDIR)$2/$1 || exit 1;
+ $(QUIET_INST)install $1 $(DESTDIR)$2/$1 || exit 1;
endef
define INSTALL_FILE
- $(QUIET_INST)install -v -m 644 $1 $(DESTDIR)$2/$1 || exit 1;
+ $(QUIET_INST)install -m 644 $1 $(DESTDIR)$2/$1 || exit 1;
endef

View File

@@ -0,0 +1,21 @@
$NetBSD: patch-ab,v 1.2 2013/04/02 15:27:12 dholland Exp $
(Very?) old dfly apparently doesn't have strtold.
--- compat/strtold.c.orig 2007-06-12 14:35:09.000000000 +0000
+++ compat/strtold.c
@@ -1,6 +1,14 @@
+#if defined(__DragonFly__)
+#include <sys/param.h>
+#endif
+
#include <stdlib.h>
long double string_to_ld(const char *nptr, char **endptr)
{
+#if defined(__DragonFly__) && __DragonFly_version < 200000
+ return strtod(nptr, endptr);
+#else
return strtold(nptr, endptr);
+#endif
}

View File

@@ -0,0 +1,30 @@
$NetBSD: patch-dissect.h,v 1.1 2013/03/31 00:04:50 dholland Exp $
Replace questionable construction that clang objects to with a
slightly less questionable version that is hopefully equivalent.
--- dissect.h~ 2007-05-01 18:30:58.000000000 +0000
+++ dissect.h
@@ -27,13 +27,16 @@ struct reporter
extern void dissect(struct symbol_list *, struct reporter *);
#define MK_IDENT(s) ({ \
- static struct { \
+ static union { \
struct ident ident; \
- char __[sizeof(s)]; \
- } ident = {{ \
- .len = sizeof(s)-1, \
- .name = s, \
- }}; \
+ struct { \
+ char id[sizeof(struct ident)]; \
+ char name[sizeof(s)]; \
+ } named; \
+ } ident = { \
+ .ident.len = sizeof(s)-1, \
+ .named.name = s, \
+ }; \
&ident.ident; \
})