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

6
converters/recode/DESCR Normal file
View File

@@ -0,0 +1,6 @@
The `recode' library converts files between character sets and usages.
It recognises or produces more than 300 different character sets and
transliterates files between almost any pair. When exact transliteration
are not possible, it gets rid of offending characters or falls back
on approximations. The `recode' program is a handy front-end to
the library.

View File

@@ -0,0 +1,25 @@
# $NetBSD: Makefile,v 1.31 2012/10/03 00:20:16 asau Exp $
#
DISTNAME= recode-3.6
PKGREVISION= 6
CATEGORIES= converters
MASTER_SITES= ${MASTER_SITE_GNU:=recode/}
MAINTAINER= kleink@NetBSD.org
HOMEPAGE= http://www.gnu.org/software/recode/recode.html
COMMENT= Convert files between character sets and usages
LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1
USE_PKGLOCALEDIR= yes
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
BROKEN_GETTEXT_DETECTION= yes
INFO_FILES= yes
post-extract:
${CP} ${WRKSRC}/lib/error.c ${WRKSRC}/src/error.c
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

19
converters/recode/PLIST Normal file
View File

@@ -0,0 +1,19 @@
@comment $NetBSD: PLIST,v 1.9 2011/12/20 17:20:02 dholland Exp $
bin/recode
include/recode.h
include/recodext.h
info/recode.info
lib/librecode.la
man/man1/recode.1
share/locale/da/LC_MESSAGES/recode.mo
share/locale/de/LC_MESSAGES/recode.mo
share/locale/el/LC_MESSAGES/recode.mo
share/locale/es/LC_MESSAGES/recode.mo
share/locale/fr/LC_MESSAGES/recode.mo
share/locale/gl/LC_MESSAGES/recode.mo
share/locale/it/LC_MESSAGES/recode.mo
share/locale/nl/LC_MESSAGES/recode.mo
share/locale/pl/LC_MESSAGES/recode.mo
share/locale/pt/LC_MESSAGES/recode.mo
share/locale/sl/LC_MESSAGES/recode.mo
share/locale/sv/LC_MESSAGES/recode.mo

View File

@@ -0,0 +1,15 @@
# $NetBSD: buildlink3.mk,v 1.9 2011/04/22 13:41:54 obache Exp $
BUILDLINK_TREE+= recode
.if !defined(RECODE_BUILDLINK3_MK)
RECODE_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.recode+= recode>=3.6nb1
BUILDLINK_ABI_DEPENDS.recode+= recode>=3.6nb5
BUILDLINK_PKGSRCDIR.recode?= ../../converters/recode
.include "../../devel/gettext-lib/buildlink3.mk"
.endif # RECODE_BUILDLINK3_MK
BUILDLINK_TREE+= -recode

View File

@@ -0,0 +1,9 @@
$NetBSD: distinfo,v 1.9 2012/04/19 21:02:10 joerg Exp $
SHA1 (recode-3.6.tar.gz) = 2de90cd2ba553bc07d75a29913ea4424dd9e616b
RMD160 (recode-3.6.tar.gz) = 97dcb2544472c9025689452a94bed98ea36374b5
Size (recode-3.6.tar.gz) = 1751886 bytes
SHA1 (patch-aa) = bc1fcbced4af16cb059beabbc34009e3dcd960d7
SHA1 (patch-libiconv_aliases.h) = c0f4b390cb87157b0a46436f04291a2f10332f6f
SHA1 (patch-src_Makefile_in) = 7f0d2a585aa18af817c221a2c4934550fdb5c7e6
SHA1 (patch-src_recodext.h) = f404830d5573e86ce5f9c9ce6477110f6c9dc1c0

View File

@@ -0,0 +1,42 @@
$NetBSD: patch-aa,v 1.3 2011/08/26 08:13:44 wiz Exp $
date: 2009/03/04 08:44:13; author: yyamano; state: Exp;
Make this build on Mac OS X.
--- lib/Makefile.in.orig 2001-01-22 10:14:14.000000000 -0800
+++ lib/Makefile.in
@@ -108,7 +108,11 @@ AUTOMAKE_OPTIONS = gnits
noinst_LIBRARIES = libreco.a
noinst_HEADERS = error.h getopt.h gettext.h pathmax.h xstring.h
+.if ${OPSYS} == "Darwin"
+libreco_a_SOURCES = error.c xstrdup.c
+.else
libreco_a_SOURCES = error.c getopt.c getopt1.c xstrdup.c
+.endif
EXTRA_DIST = alloca.c gettext.c malloc.c realloc.c strtol.c strtoul.c
@@ -128,7 +132,11 @@ CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
libreco_a_DEPENDENCIES = @ALLOCA@ @LIBOBJS@
+.if ${OPSYS} == "Darwin"
+libreco_a_OBJECTS = error.o xstrdup.o
+.else
libreco_a_OBJECTS = error.o getopt.o getopt1.o xstrdup.o
+.endif
AR = ar
CFLAGS = @CFLAGS@
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
@@ -256,8 +264,10 @@ distdir: $(DISTFILES)
fi; \
done
error.o: error.c ../config.h error.h
+.if ${OPSYS} != "Darwin"
getopt.o: getopt.c ../config.h
getopt1.o: getopt1.c ../config.h getopt.h
+.endif
xstrdup.o: xstrdup.c ../config.h
info-am:

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-libiconv_aliases.h,v 1.1 2012/04/19 21:02:11 joerg Exp $
--- libiconv/aliases.h.orig 2012-04-19 13:47:17.000000000 +0000
+++ libiconv/aliases.h
@@ -66,6 +66,7 @@ aliases_hash (register const char *str,
return hval + asso_values[(unsigned char) str[len - 1]];
}
+static
#ifdef __GNUC__
__inline
#endif

View File

@@ -0,0 +1,51 @@
$NetBSD: patch-src_Makefile_in,v 1.1 2011/12/20 17:22:25 dholland Exp $
Include lib/error.c in librecode.so, or else librecode.so ends up with
an undefined symbol "error". Fix mostly from PR 32253.
--- src/Makefile.in.orig 2001-01-22 18:14:16.000000000 +0000
+++ src/Makefile.in
@@ -129,7 +129,7 @@ L_SURFACES =
recode_SOURCES = main.c freeze.c mixed.c
recode_LDADD = librecode.la ../lib/libreco.a
-librecode_la_SOURCES = argmatch.c charname.c combine.c fr-charname.c hash.c iconv.c libiconv.c localcharset.c merged.c names.c outer.c quotearg.c recode.c request.c strip-pool.c task.c xmalloc.c $(C_STEPS)
+librecode_la_SOURCES = argmatch.c charname.c combine.c fr-charname.c hash.c iconv.c libiconv.c localcharset.c merged.c names.c outer.c quotearg.c recode.c request.c strip-pool.c task.c xmalloc.c error.c $(C_STEPS)
librecode_la_LDFLAGS = -version-info 0:0:0
@@ -165,7 +165,7 @@ ebcdic$U.lo ibmpc$U.lo iconqnx$U.lo lat1
strip-data$U.lo testdump$U.lo ucs$U.lo utf16$U.lo utf7$U.lo utf8$U.lo \
varia$U.lo vn$U.lo flat$U.lo html$U.lo lat1ltex$U.lo lat1txte$U.lo \
rfc1345$U.lo texinfo$U.lo base64$U.lo dump$U.lo endline$U.lo \
-permut$U.lo quoted$U.lo
+permut$U.lo quoted$U.lo error$U.lo
PROGRAMS = $(bin_PROGRAMS)
recode_OBJECTS = main$U.o freeze$U.o mixed$U.o
@@ -419,6 +419,8 @@ vn_.c: vn.c $(ANSI2KNR)
$(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/vn.c; then echo $(srcdir)/vn.c; else echo vn.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > vn_.c
xmalloc_.c: xmalloc.c $(ANSI2KNR)
$(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/xmalloc.c; then echo $(srcdir)/xmalloc.c; else echo xmalloc.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > xmalloc_.c
+error_.c: error.c $(ANSI2KNR)
+ $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/error.c; then echo $(srcdir)/error.c; else echo error.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > error_.c
african_.o african_.lo afrtran_.o afrtran_.lo applemac_.o applemac_.lo \
argmatch_.o argmatch_.lo atarist_.o atarist_.lo bangbang_.o \
bangbang_.lo base64_.o base64_.lo cdcnos_.o cdcnos_.lo charname_.o \
@@ -435,7 +437,7 @@ request_.o request_.lo rfc1345_.o rfc134
strip-data_.lo strip-pool_.o strip-pool_.lo task_.o task_.lo \
testdump_.o testdump_.lo texinfo_.o texinfo_.lo ucs_.o ucs_.lo utf16_.o \
utf16_.lo utf7_.o utf7_.lo utf8_.o utf8_.lo varia_.o varia_.lo vn_.o \
-vn_.lo xmalloc_.o xmalloc_.lo : $(ANSI2KNR)
+vn_.lo xmalloc_.o xmalloc_.lo error_.lo : $(ANSI2KNR)
install-man1:
$(mkinstalldirs) $(DESTDIR)$(man1dir)
@@ -690,6 +692,7 @@ varia.lo varia.o : varia.c common.h ../c
vn.lo vn.o : vn.c common.h ../config.h xalloc.h argmatch.h \
../lib/error.h recodext.h recode.h
xmalloc.lo xmalloc.o : xmalloc.c ../config.h ../lib/error.h xalloc.h
+error.lo error.o : ../lib/error.h
info-am:
info: info-am

View File

@@ -0,0 +1,21 @@
$NetBSD: patch-src_recodext.h,v 1.1 2011/08/26 08:13:44 wiz Exp $
Fix gcc-4.5 problem:
In file included from common.h:140:0,
from charname.c:20:
recodext.h:221:5: error: width of 'ignore' exceeds its type
See also
https://github.com/pinard/Recode/commit/a34dfd2257f412dff59f2ad7f714252fa200028e#src/recodext.h
--- src/recodext.h.orig 2001-01-04 14:36:54.000000000 +0000
+++ src/recodext.h
@@ -218,7 +218,7 @@ struct recode_symbol
enum recode_symbol_type type : 3;
/* Non zero if this one should be ignored. */
- bool ignore : 2;
+ bool ignore : 1;
};
struct recode_surface_list