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
+10
View File
@@ -0,0 +1,10 @@
Enca is an Extremely Naive Charset Analyser. It detects character
set and encoding of text files and can also convert them to other
encodings. The charset detecting functionality is also available as
a library.
Enca currently can determine 8bit charsets of Belarussian, Bulgarian,
Croatian, Czech, Estonian, Hungarian, Latvian, Lithuanian, Polish,
Russian, Slovak, Slovene, Ukrainian, and Chinese texts and also
some multibyte encodings, independent on language (provided it's
some European language).
+30
View File
@@ -0,0 +1,30 @@
# $NetBSD: Makefile,v 1.6 2013/05/10 05:27:38 riastradh Exp $
#
DISTNAME= enca-1.14
CATEGORIES= converters
MASTER_SITES= http://dl.cihar.com/enca/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://gitorious.org/enca
COMMENT= Extremely Naive Charset Analyser
LICENSE= gnu-gpl-v2
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_PKGLOCALEDIR= yes
USE_TOOLS+= gmake
PKGCONFIG_OVERRIDE+= ${WRKSRC}/enca.pc.in
.include "../../mk/bsd.prefs.mk"
.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) && ${OPSYS} == "NetBSD"
CONFIGURE_ENV+= ac_cv_file__dev_random=yes
CONFIGURE_ENV+= ac_cv_file__dev_urandom=yes
CONFIGURE_ENV+= ac_cv_file__dev_srandom=no
CONFIGURE_ENV+= ac_cv_file__dev_arandom=no
CONFIGURE_ENV+= CC_FOR_BUILD=${NATIVE_CC:Q}
.endif
.include "../../mk/bsd.pkg.mk"
+21
View File
@@ -0,0 +1,21 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/14 18:17:15 joerg Exp $
bin/enca
bin/enconv
include/enca.h
lib/libenca.la
lib/pkgconfig/enca.pc
libexec/enca/extconv/cstocs
libexec/enca/extconv/map
libexec/enca/extconv/piconv
libexec/enca/extconv/recode
libexec/enca/extconv/umap
man/man1/enca.1
man/man1/enconv.1
share/gtk-doc/html/libenca/ch01.html
share/gtk-doc/html/libenca/index.html
share/gtk-doc/html/libenca/index.sgml
share/gtk-doc/html/libenca/libenca-Analyser.html
share/gtk-doc/html/libenca/libenca-Auxiliary-Functions.html
share/gtk-doc/html/libenca/libenca-Charsets-and-Surfaces.html
share/gtk-doc/html/libenca/libenca-Typedefs-and-Constants.html
share/gtk-doc/html/libenca/libenca.devhelp
+12
View File
@@ -0,0 +1,12 @@
# $NetBSD: buildlink3.mk,v 1.2 2009/03/20 19:25:28 joerg Exp $
BUILDLINK_TREE+= enca
.if !defined(ENCA_BUILDLINK3_MK)
ENCA_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.enca+= enca>=1.9
BUILDLINK_PKGSRCDIR.enca?= ../../textproc/enca
.endif # ENCA_BUILDLINK3_MK
BUILDLINK_TREE+= -enca
+9
View File
@@ -0,0 +1,9 @@
$NetBSD: distinfo,v 1.5 2013/05/10 14:33:01 riastradh Exp $
SHA1 (enca-1.14.tar.bz2) = 9aacb595da981f40a5fa0dadb886f3efeca933f4
RMD160 (enca-1.14.tar.bz2) = 2e4442b905ad6935241b8f47434429ebfd55fbbc
Size (enca-1.14.tar.bz2) = 560982 bytes
SHA1 (patch-configure) = 944b3da85306353fec793aa1de014e4949dbdfeb
SHA1 (patch-configure.ac) = e19dd68be397805bf7874da621e0c61c73a80d11
SHA1 (patch-tools_Makefile.am) = 1716a9b1675f1bed89e3f79c7ab8dcecea0f2455
SHA1 (patch-tools_Makefile.in) = 885fe42ecc4f5daad9204fbe415eb77b99f2399d
+30
View File
@@ -0,0 +1,30 @@
$NetBSD: patch-configure,v 1.2 2013/05/10 14:33:01 riastradh Exp $
Pass CC_FOR_BUILD through for make_hash.
--- configure.orig 2012-09-11 09:12:23.000000000 +0000
+++ configure
@@ -635,6 +635,7 @@ ac_includes_default="\
ac_subst_vars='am__EXEEXT_FALSE
am__EXEEXT_TRUE
LTLIBOBJS
+CC_FOR_BUILD
SHELL_RANDOM_FILENAME
DEFAULT_CONVERTER_LIST
DEFAULT_EXTERNAL_CONVERTER
@@ -12446,6 +12447,15 @@ else
$as_echo "no" >&6; }
fi
+if test -z "$CC_FOR_BUILD"; then
+ if test "x$cross_compiling" = xno; then
+ CC_FOR_BUILD="$CC"
+ else
+ as_fn_error $? "can't compile tools on host without CC_FOR_BUILD" "$LINENO" 5
+ fi
+fi
+
+
if test "$GCC" = yes; then
+29
View File
@@ -0,0 +1,29 @@
$NetBSD: patch-configure.ac,v 1.2 2013/05/10 14:33:01 riastradh Exp $
Pass CC_FOR_BUILD through for make_hash.
--- configure.ac.orig 2012-09-11 09:11:11.000000000 +0000
+++ configure.ac
@@ -46,6 +46,14 @@ AC_PROG_INSTALL
AC_PROG_LN_S
AC_PATH_PROG(MKTEMP_PROG, mktemp)
+if test -z "$CC_FOR_BUILD"; then
+ if test "x$cross_compiling" = xno; then
+ CC_FOR_BUILD="$CC"
+ else
+ AC_MSG_ERROR([can't compile tools on host without CC_FOR_BUILD])
+ fi
+fi
+
dnl With GCC, be paranoiac. It should compile really cleanly.
dnl Except -Wno-sign-compare, but older gcc's don't know it.
if test "$GCC" = yes; then
@@ -207,6 +215,7 @@ AC_SUBST(CONVERTER_LIBS)
AC_SUBST(DEFAULT_EXTERNAL_CONVERTER)
AC_SUBST(DEFAULT_CONVERTER_LIST)
AC_SUBST(SHELL_RANDOM_FILENAME)
+AC_SUBST(CC_FOR_BUILD)
AC_OUTPUT
@@ -0,0 +1,36 @@
$NetBSD: patch-tools_Makefile.am,v 1.1 2013/05/10 05:27:39 riastradh Exp $
Use CC_FOR_BUILD to compile make_hash.
--- tools/Makefile.am.orig 2009-08-25 08:33:34.000000000 +0000
+++ tools/Makefile.am
@@ -3,7 +3,9 @@ noinst_PROGRAMS = make_hash
noinst_HEADERS = encodings.h
noinst_SCRIPTS = expand_table.pl
-make_hash_SOURCES = make_hash.c
+CLEANFILES = make_hash$(EXEEXT)
+make_hash$(EXEEXT): make_hash.c
+ $(CC_FOR_BUILD) -I. -I$(srcdir) -o $@ $(srcdir)/make_hash.c
BUILT_SOURCES = $(noinst_HEADERS)
@@ -23,15 +25,15 @@ TABLE_SRC = \
TEX_SKIP.t \
encodings.dat
-EXTRA_DIST = $(TABLE_SRC) $(noinst_SCRIPTS) iconvenc.null
+EXTRA_DIST = $(TABLE_SRC) $(noinst_SCRIPTS) iconvenc.null make_hash.c
all: encodings.h
encodings.sed: $(top_builddir)/iconvenc.h
sed -e 's/^#define \([A-Z0-9_]*\) \(.*\)/@\1@ \2/' -e 's/"//g' -e 's/NULL$$//' -e 's/ /\//' -e 's/^\(.*\)$$/s\/\1\//' $(top_builddir)/iconvenc.h >encodings.sed
-encodings.h: encodings.sed $(srcdir)/encodings.dat make_hash
- sed -f encodings.sed $(srcdir)/encodings.dat | ./make_hash >encodings.h
+encodings.h: encodings.sed $(srcdir)/encodings.dat make_hash$(EXEEXT)
+ sed -f encodings.sed $(srcdir)/encodings.dat | ./make_hash$(EXEEXT) >encodings.h
# Normally there's no need to regenerate tables, they are copy-and-pasted
# into the C source manually, but the rules are here. Run `make tables'
@@ -0,0 +1,68 @@
$NetBSD: patch-tools_Makefile.in,v 1.1 2013/05/10 05:27:39 riastradh Exp $
Use CC_FOR_BUILD to compile make_hash.
--- tools/Makefile.in.orig 2012-09-11 09:12:22.000000000 +0000
+++ tools/Makefile.in
@@ -109,6 +109,7 @@ AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
+CC_FOR_BUILD = @CC_FOR_BUILD@
CFLAGS = @CFLAGS@
CONVERTER_LIBS = @CONVERTER_LIBS@
CPP = @CPP@
@@ -233,6 +234,7 @@ top_srcdir = @top_srcdir@
noinst_HEADERS = encodings.h
noinst_SCRIPTS = expand_table.pl
make_hash_SOURCES = make_hash.c
+CLEANFILES = make_hash$(EXEEXT)
BUILT_SOURCES = $(noinst_HEADERS)
TABLE_SRC = \
ACCEPTED_CHARS.t \
@@ -250,7 +252,7 @@ TABLE_SRC = \
TEX_SKIP.t \
encodings.dat
-EXTRA_DIST = $(TABLE_SRC) $(noinst_SCRIPTS) iconvenc.null
+EXTRA_DIST = $(TABLE_SRC) $(noinst_SCRIPTS) iconvenc.null make_hash.c
# Normally there's no need to regenerate tables, they are copy-and-pasted
# into the C source manually, but the rules are here. Run `make tables'
@@ -313,9 +315,6 @@ clean-noinstPROGRAMS:
list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
echo " rm -f" $$list; \
rm -f $$list
-make_hash$(EXEEXT): $(make_hash_OBJECTS) $(make_hash_DEPENDENCIES) $(EXTRA_make_hash_DEPENDENCIES)
- @rm -f make_hash$(EXEEXT)
- $(LINK) $(make_hash_OBJECTS) $(make_hash_LDADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT)
@@ -462,6 +461,7 @@ install-strip:
mostlyclean-generic:
clean-generic:
+ -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
@@ -558,14 +558,16 @@ uninstall-am:
mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
uninstall-am
+make_hash$(EXEEXT): make_hash.c
+ $(CC_FOR_BUILD) -I. -I$(srcdir) -o $@ $(srcdir)/make_hash.c
all: encodings.h
encodings.sed: $(top_builddir)/iconvenc.h
sed -e 's/^#define \([A-Z0-9_]*\) \(.*\)/@\1@ \2/' -e 's/"//g' -e 's/NULL$$//' -e 's/ /\//' -e 's/^\(.*\)$$/s\/\1\//' $(top_builddir)/iconvenc.h >encodings.sed
-encodings.h: encodings.sed $(srcdir)/encodings.dat make_hash
- sed -f encodings.sed $(srcdir)/encodings.dat | ./make_hash >encodings.h
+encodings.h: encodings.sed $(srcdir)/encodings.dat make_hash$(EXEEXT)
+ sed -f encodings.sed $(srcdir)/encodings.dat | ./make_hash$(EXEEXT) >encodings.h
@MAINTAINER_MODE_TRUE@tables: $(TABLES) $(TABLES_INCR)