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

4
devel/gettext-lib/DESCR Normal file
View File

@@ -0,0 +1,4 @@
This package provides the static and shared libintl libraries from
GNU gettext. This Internationalized Message Handling Library provides
handling messages in different languages, as one of the steps to
internationalisation (or i18n) of a utility.

View File

@@ -0,0 +1,30 @@
# $NetBSD: Makefile,v 1.54 2013/01/31 21:45:04 adam Exp $
.include "../../devel/gettext/Makefile.common"
PKGNAME= ${DISTNAME:S/-/-lib-/}
SVR4_PKGNAME= gttli
COMMENT= Internationalized Message Handling Library (libintl)
USE_LANGUAGES= c
CONFIGURE_ARGS+= --with-included-gettext
CONFIGURE_ARGS+= --disable-csharp
CONFIGURE_ENV+= PKGLOCALEDIR=${PKGLOCALEDIR}
MAKE_ENV+= PKGLOCALEDIR=${PKGLOCALEDIR}
CFLAGS+= ${CFLAGS.${ICONV_TYPE}-iconv}
CFLAGS.gnu-iconv+= -DHAVE_GNU_ICONV
INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} localedir=${EGDIR}
INSTALL_MAKE_FLAGS+= includedir=${PREFIX}/include/gettext
CONFIGURE_DIRS= gettext-runtime
BUILD_DIRS= gettext-runtime/intl
EGDIR= ${PREFIX}/share/examples/gettext
LOCALEDIR= ${PREFIX}/${PKGLOCALEDIR}/locale
REQD_DIRS+= ${LOCALEDIR}
REQD_FILES+= ${EGDIR}/locale.alias ${LOCALEDIR}/locale.alias
.include "../../converters/libiconv/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

4
devel/gettext-lib/PLIST Normal file
View File

@@ -0,0 +1,4 @@
@comment $NetBSD: PLIST,v 1.6 2012/08/29 09:01:01 sbd Exp $
include/gettext/libintl.h
lib/libintl.la
share/examples/gettext/locale.alias

View File

@@ -0,0 +1,45 @@
# $NetBSD: buildlink3.mk,v 1.35 2012/09/02 14:08:38 marino Exp $
BUILDLINK_TREE+= gettext
.if !defined(GETTEXT_BUILDLINK3_MK)
GETTEXT_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.gettext+= gettext-lib>=0.18
BUILDLINK_ABI_DEPENDS.gettext+= gettext-lib>=0.18
BUILDLINK_PKGSRCDIR.gettext?= ../../devel/gettext-lib
BUILDLINK_LIBNAME.gettext= intl
BUILDLINK_LDADD.gettext= ${BUILDLINK_LIBNAME.gettext:S/^/-l/:S/^-l$//}
BUILDLINK_LDADD.gettext+= ${BUILDLINK_LDADD.iconv}
.include "../../mk/bsd.fast.prefs.mk"
# Some GNU configure scripts generated with an older and broken gettext.m4
# fail to detect if gettext is present or not because it fails to add
# "-lintl" to the linker command line.
#
# If BROKEN_GETTEXT_DETECTION is "yes", then automatically add "-lintl"
# to LIBS to workaround this brokenness.
#
BROKEN_GETTEXT_DETECTION?= no
.if !empty(BROKEN_GETTEXT_DETECTION:M[yY][eE][sS])
BUILDLINK_LIBS.gettext+= ${BUILDLINK_LDADD.gettext}
CONFIGURE_ENV+= INTLLIBS="${BUILDLINK_LDADD.gettext}"
.endif
CHECK_BUILTIN.gettext:= yes
.include "../../devel/gettext-lib/builtin.mk"
CHECK_BUILTIN.gettext:= no
# A built-in gettext is always going to use a built-in iconv.
.if !empty(USE_BUILTIN.gettext:M[yY][eE][sS])
USE_BUILTIN.iconv= yes
.else
BUILDLINK_INCDIRS.gettext+= include/gettext
BUILDLINK_FNAME_TRANSFORM.gettext+= -e 's|include/gettext/|include/|'
.endif
.include "../../converters/libiconv/buildlink3.mk"
.endif # GETTEXT_BUILDLINK3_MK
BUILDLINK_TREE+= -gettext

View File

@@ -0,0 +1,128 @@
# $NetBSD: builtin.mk,v 1.43 2013/05/03 01:57:11 obache Exp $
.include "../../mk/bsd.fast.prefs.mk"
BUILTIN_PKG:= gettext
BUILTIN_FIND_LIBS:= intl
BUILTIN_FIND_FILES_VAR:= H_GETTEXT H_GENTOO_GETTEXT \
H_NGETTEXT_GETTEXT
BUILTIN_FIND_FILES.H_GETTEXT= /usr/include/libintl.h
BUILTIN_FIND_GREP.H_GETTEXT= \#define[ ]*__USE_GNU_GETTEXT
BUILTIN_FIND_FILES.H_GENTOO_GETTEXT= /usr/include/libintl.h
BUILTIN_FIND_GREP.H_GENTOO_GETTEXT= gentoo-multilib/.*/libintl.h
BUILTIN_FIND_FILES.H_NGETTEXT_GETTEXT= /usr/include/libintl.h
BUILTIN_FIND_GREP.H_NGETTEXT_GETTEXT= char.*ngettext
.include "../../mk/buildlink3/bsd.builtin.mk"
###
### Determine if there is a built-in implementation of the package and
### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
###
#
# Gentoo Linux has an unusual scheme where /usr/include/libintl.h
# pulls in gentoo-multilib/$ARCH/libintl.h, where the latter is the
# real libintl.h file. We can safely assume that this is GNU gettext
# (in glibc).
#
.if !defined(IS_BUILTIN.gettext)
IS_BUILTIN.gettext= no
. if (empty(H_GETTEXT:M__nonexistent__) && \
empty(H_GETTEXT:M${LOCALBASE}/*)) || \
(empty(H_GENTOO_GETTEXT:M__nonexistent__) && \
empty(H_GENTOO_GETTEXT:M${LOCALBASE}/*))
IS_BUILTIN.gettext= yes
. endif
.endif
MAKEVARS+= IS_BUILTIN.gettext
###
### Determine whether we should use the built-in implementation if it
### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
###
.if !defined(USE_BUILTIN.gettext)
. if ${PREFER.gettext} == "pkgsrc"
USE_BUILTIN.gettext= no
. else
USE_BUILTIN.gettext= ${IS_BUILTIN.gettext}
. if defined(BUILTIN_PKG.gettext) && \
!empty(IS_BUILTIN.gettext:M[yY][eE][sS])
USE_BUILTIN.gettext= yes
. for _dep_ in ${BUILDLINK_API_DEPENDS.gettext}
. if !empty(USE_BUILTIN.gettext:M[yY][eE][sS])
USE_BUILTIN.gettext!= \
if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.gettext:Q}; then \
${ECHO} yes; \
else \
${ECHO} no; \
fi
. endif
. endfor
. endif
# XXX
# XXX By default, assume that the native gettext implementation is good
# XXX enough to replace GNU gettext if it supplies ngettext().
# XXX
. if empty(H_NGETTEXT_GETTEXT:M__nonexistent__) && \
empty(H_NGETTEXT_GETTEXT:M${LOCALBASE}/*)
USE_BUILTIN.gettext= yes
. endif
#
# Some platforms don't have a gettext implementation that can replace
# GNU gettext.
#
_INCOMPAT_GETTEXT?= SunOS-*-* # XXX move to mk/platforms/SunOS.mk
. for _pattern_ in ${_INCOMPAT_GETTEXT} ${INCOMPAT_GETTEXT}
. if !empty(MACHINE_PLATFORM:M${_pattern_})
USE_BUILTIN.gettext= no
. endif
. endfor
. endif # PREFER.gettext
.endif
MAKEVARS+= USE_BUILTIN.gettext
# Define BUILTIN_LIBNAME.gettext to be the base name of the built-in
# gettext library.
#
.if !empty(BUILTIN_LIB_FOUND.intl:M[yY][eE][sS])
BUILTIN_LIBNAME.gettext= intl
.else
BUILTIN_LIBNAME.gettext= # empty (part of the C library)
.endif
###
### The section below only applies if we are not including this file
### solely to determine whether a built-in implementation exists.
###
CHECK_BUILTIN.gettext?= no
.if !empty(CHECK_BUILTIN.gettext:M[nN][oO])
. if !empty(USE_BUILTIN.gettext:M[yY][eE][sS])
BUILDLINK_LIBNAME.gettext= ${BUILTIN_LIBNAME.gettext}
. if empty(BUILTIN_LIBNAME.gettext)
BUILDLINK_TRANSFORM+= rm:-lintl
. endif
. endif
# If using a built-in libintl that isn't from GNU gettext, then set up
# some GNU configure variables that are checked by modern gettext.m4
# so that it will detect "GNU gettext" in the existing libintl.
#
. if defined(GNU_CONFIGURE)
. if !empty(USE_BUILTIN.gettext:M[yY][eE][sS])
. if !empty(BUILTIN_LIB_FOUND.intl:M[yY][eE][sS])
CONFIGURE_ENV+= gt_cv_func_gnugettext_libintl="yes"
CONFIGURE_ENV+= gt_cv_func_gnugettext1_libintl="yes"
. if empty(H_NGETTEXT_GETTEXT:M__nonexistent__) && \
empty(H_NGETTEXT_GETTEXT:M${LOCALBASE}/*)
CONFIGURE_ENV+= gt_cv_func_gnugettext2_libintl="yes"
. endif
. endif
. endif
. if !empty(USE_BUILTIN.gettext:M[nN][oO])
CONFIGURE_ARGS+= --with-libintl-prefix="${BUILDLINK_PREFIX.gettext}"
. endif
. endif
.endif # CHECK_BUILTIN.gettext

View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.20 2013/03/11 19:41:18 adam Exp $
SHA1 (gettext-0.18.2.1.tar.gz) = 86066950cac2fcc49cc7bd23f5ea16bed522b410
RMD160 (gettext-0.18.2.1.tar.gz) = 4fcd8c5fe1de96f7224cdcf160fd9e6b008ab3df
Size (gettext-0.18.2.1.tar.gz) = 15901092 bytes
SHA1 (patch-aa) = aed0e4e34c45fd442ee15254f494fe02c9dd55f7
SHA1 (patch-ab) = 74694c609b942038e8db88bd8ff8edd4700a175f

View File

@@ -0,0 +1,20 @@
$NetBSD: patch-aa,v 1.8 2013/01/31 21:45:04 adam Exp $
--- gettext-runtime/intl/localcharset.c.orig 2012-12-24 00:33:38.000000000 +0000
+++ gettext-runtime/intl/localcharset.c
@@ -19,6 +19,10 @@
#include <config.h>
+#if !defined(HAVE_GNU_ICONV)
+
+/* Provide our variant only if we don't use the GNU iconv library. */
+
/* Specification. */
#include "localcharset.h"
@@ -556,3 +560,4 @@ locale_charset (void)
return codeset;
}
+#endif

View File

@@ -0,0 +1,23 @@
$NetBSD: patch-ab,v 1.6 2013/01/31 21:45:04 adam Exp $
--- gettext-runtime/intl/Makefile.in.orig 2012-12-25 05:16:50.000000000 +0000
+++ gettext-runtime/intl/Makefile.in
@@ -222,8 +222,7 @@ libintl.la libgnuintl.la: $(OBJECTS) $(O
$(OBJECTS) @LTLIBICONV@ @INTL_MACOSX_LIBS@ $(LIBS) @LTLIBTHREAD@ @LTLIBC@ \
$(OBJECTS_RES_@WOE32@) \
-version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \
- -rpath $(libdir) \
- -no-undefined
+ -rpath $(libdir)
# Libtool's library version information for libintl.
# Before making a gettext release, the gettext maintainer must change this
@@ -385,7 +384,7 @@ install-exec: all
$(mkdir_p) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \
$(INSTALL_DATA) libintl.h $(DESTDIR)$(includedir)/libintl.h; \
$(LIBTOOL) --mode=install \
- $(INSTALL_DATA) libintl.$la $(DESTDIR)$(libdir)/libintl.$la; \
+ $(BSD_INSTALL_LIB) libintl.$la $(DESTDIR)$(libdir)/libintl.$la; \
if test "@RELOCATABLE@" = yes; then \
dependencies=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' < $(DESTDIR)$(libdir)/libintl.la | sed -e "s,^',," -e "s,'\$$,,"`; \
if test -n "$$dependencies"; then \