aboutsummaryrefslogtreecommitdiff
path: root/devel/gettext-tools
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2014-11-29 18:22:32 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2014-11-29 18:22:32 +0000
commitedb7229dd444037f6015d4a7d1c93eade4ed41f0 (patch)
treedd9cb6760a88c6c8e370786a93ecef5ba96f616c /devel/gettext-tools
parentb134ca1eb84846189b4cdfa7ab624072ad1aebb6 (diff)
downloadports-edb7229dd444037f6015d4a7d1c93eade4ed41f0.tar.gz
ports-edb7229dd444037f6015d4a7d1c93eade4ed41f0.zip
Notes
Diffstat (limited to 'devel/gettext-tools')
-rw-r--r--devel/gettext-tools/Makefile72
-rw-r--r--devel/gettext-tools/files/patch-configure20
-rw-r--r--devel/gettext-tools/files/patch-gnulib-lib_glthread_threadlib.c39
-rw-r--r--devel/gettext-tools/files/patch-libgettextpo_glthread_threadlib.c39
-rw-r--r--devel/gettext-tools/pkg-descr6
-rw-r--r--devel/gettext-tools/pkg-plist246
6 files changed, 422 insertions, 0 deletions
diff --git a/devel/gettext-tools/Makefile b/devel/gettext-tools/Makefile
new file mode 100644
index 000000000000..ce80cb0e9e08
--- /dev/null
+++ b/devel/gettext-tools/Makefile
@@ -0,0 +1,72 @@
+# $FreeBSD$
+
+# NOTE: before committing to this port, contact portmgr to arrange for an
+# experimental ports run. Untested commits may be backed out at portmgr's
+# discretion.
+
+PORTNAME= gettext-tools
+PORTREVISION= 0
+
+COMMENT= GNU gettext development and translation tools
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/../COPYING
+
+.include "${.CURDIR}/../gettext/Makefile.common"
+
+LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --disable-csharp --disable-java --disable-openmp \
+ --with-included-glib --with-included-libcroco \
+ --with-included-libunistring --with-included-libxml \
+ --without-emacs --without-git ac_cv_lib_rt_sched_yield=no
+CPPFLAGS+= -I${LOCALBASE}/include
+LIBS+= -L${LOCALBASE}/lib
+INSTALL_TARGET= install-strip
+USES= charsetfix gettext-runtime iconv libtool tar:xz
+USE_LDCONFIG= yes
+WRKSRC_SUBDIR= gettext-tools
+
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
+INFO+= gettext
+.endif
+
+.if ${OPSYS} == DragonFly || (${OPSYS} == FreeBSD && ${OSVERSION} < 900506)
+CONFIGURE_ARGS+=--disable-threads
+.endif
+
+post-patch:
+.if ! ${PORT_OPTIONS:MDOCS}
+ @${REINPLACE_CMD} '/^SUBDIRS =/s/doc//' ${WRKSRC}/Makefile.in
+.endif
+# Exclude examples and gnulib-tests.
+ @${REINPLACE_CMD} -E '/^SUBDIRS =/s/(examples|gnulib-tests)//g' \
+ ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} \
+ '/^install-data-am:/s/install-examplesbuildauxDATA//' \
+ ${WRKSRC}/Makefile.in ${WRKSRC}/m4/Makefile.in
+# Do not install html copies of manpages.
+ @${REINPLACE_CMD} \
+ -e '/^all-local:/s/html-local//' \
+ -e '/^install-data-local:/s/install-html//' \
+ -e '/^installdirs-local:/s/installdirs-html//' \
+ ${WRKSRC}/man/Makefile.in
+# Do not patch system float.h.
+ @${REINPLACE_CMD} 's/FLOAT_H=float\.h//' \
+ ${WRKSRC}/configure
+# Use libintl installed by gettext-runtime.
+ @${REINPLACE_CMD} '/^LDADD_no =/s,\.\./intl/libgnuintl.la,,' \
+ ${WRKSRC}/tests/Makefile.in
+# Use libasprintf installed by gettext-runtime.
+ @${REINPLACE_CMD} 's,[^ ]*libasprintf.la,-lasprintf,' \
+ ${WRKSRC}/tests/lang-c++
+
+regression-test: build
+ @(cd ${WRKSRC} && ${MAKE_CMD} check)
+
+.include <bsd.port.mk>
diff --git a/devel/gettext-tools/files/patch-configure b/devel/gettext-tools/files/patch-configure
new file mode 100644
index 000000000000..aae0d524d9f9
--- /dev/null
+++ b/devel/gettext-tools/files/patch-configure
@@ -0,0 +1,20 @@
+--- configure.orig 2014-07-14 07:30:23 UTC
++++ configure
+@@ -18293,7 +18293,7 @@
+ # thread: pthread_create from libc will fail, whereas
+ # pthread_create will actually create a thread.
+ case "$host_os" in
+- solaris* | hpux*)
++ solaris* | hpux* | freebsd*)
+
+ $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
+
+@@ -21679,7 +21679,7 @@
+ if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
+ || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
+ && test "$PACKAGE" != gettext-runtime \
+- && test "$PACKAGE" != gettext-tools; }; then
++ ; }; then
+ gt_use_preinstalled_gnugettext=yes
+ else
+ LIBINTL=
diff --git a/devel/gettext-tools/files/patch-gnulib-lib_glthread_threadlib.c b/devel/gettext-tools/files/patch-gnulib-lib_glthread_threadlib.c
new file mode 100644
index 000000000000..c8a29d7ab5ac
--- /dev/null
+++ b/devel/gettext-tools/files/patch-gnulib-lib_glthread_threadlib.c
@@ -0,0 +1,39 @@
+--- gnulib-lib/glthread/threadlib.c.orig 2014-07-14 07:28:34 UTC
++++ gnulib-lib/glthread/threadlib.c
+@@ -29,11 +29,10 @@
+
+ # if PTHREAD_IN_USE_DETECTION_HARD
+
+-/* The function to be executed by a dummy thread. */
+-static void *
+-dummy_thread_func (void *arg)
++static pthread_once_t dummy_once_control = PTHREAD_ONCE_INIT;
++static void
++dummy_once_func (void)
+ {
+- return arg;
+ }
+
+ int
+@@ -44,19 +43,10 @@ glthread_in_use (void)
+
+ if (!tested)
+ {
+- pthread_t thread;
+-
+- if (pthread_create (&thread, NULL, dummy_thread_func, NULL) != 0)
+- /* Thread creation failed. */
++ if (pthread_once (&dummy_once_control, dummy_once_func) != 0)
+ result = 0;
+ else
+- {
+- /* Thread creation works. */
+- void *retval;
+- if (pthread_join (thread, &retval) != 0)
+- abort ();
+- result = 1;
+- }
++ result = 1;
+ tested = 1;
+ }
+ return result;
diff --git a/devel/gettext-tools/files/patch-libgettextpo_glthread_threadlib.c b/devel/gettext-tools/files/patch-libgettextpo_glthread_threadlib.c
new file mode 100644
index 000000000000..ac8184e478c3
--- /dev/null
+++ b/devel/gettext-tools/files/patch-libgettextpo_glthread_threadlib.c
@@ -0,0 +1,39 @@
+--- libgettextpo/glthread/threadlib.c.orig 2014-07-14 07:29:10 UTC
++++ libgettextpo/glthread/threadlib.c
+@@ -29,11 +29,10 @@
+
+ # if PTHREAD_IN_USE_DETECTION_HARD
+
+-/* The function to be executed by a dummy thread. */
+-static void *
+-dummy_thread_func (void *arg)
++static pthread_once_t dummy_once_control = PTHREAD_ONCE_INIT;
++static void
++dummy_once_func (void)
+ {
+- return arg;
+ }
+
+ int
+@@ -44,19 +43,10 @@ glthread_in_use (void)
+
+ if (!tested)
+ {
+- pthread_t thread;
+-
+- if (pthread_create (&thread, NULL, dummy_thread_func, NULL) != 0)
+- /* Thread creation failed. */
++ if (pthread_once (&dummy_once_control, dummy_once_func) != 0)
+ result = 0;
+ else
+- {
+- /* Thread creation works. */
+- void *retval;
+- if (pthread_join (thread, &retval) != 0)
+- abort ();
+- result = 1;
+- }
++ result = 1;
+ tested = 1;
+ }
+ return result;
diff --git a/devel/gettext-tools/pkg-descr b/devel/gettext-tools/pkg-descr
new file mode 100644
index 000000000000..c8d3f39b8e11
--- /dev/null
+++ b/devel/gettext-tools/pkg-descr
@@ -0,0 +1,6 @@
+GNU gettext is a framework of libraries and tools for internationalisation
+and localisation of software.
+
+This package contains development and translation tools.
+
+WWW: http://www.gnu.org/software/gettext/
diff --git a/devel/gettext-tools/pkg-plist b/devel/gettext-tools/pkg-plist
new file mode 100644
index 000000000000..23043d9bc218
--- /dev/null
+++ b/devel/gettext-tools/pkg-plist
@@ -0,0 +1,246 @@
+bin/autopoint
+bin/gettextize
+bin/msgattrib
+bin/msgcat
+bin/msgcmp
+bin/msgcomm
+bin/msgconv
+bin/msgen
+bin/msgexec
+bin/msgfilter
+bin/msgfmt
+bin/msggrep
+bin/msginit
+bin/msgmerge
+bin/msgunfmt
+bin/msguniq
+bin/recode-sr-latin
+bin/xgettext
+include/gettext-po.h
+lib/libgettextlib-0.19.3.so
+lib/libgettextlib.so
+lib/libgettextpo.a
+lib/libgettextpo.so
+lib/libgettextpo.so.0
+lib/libgettextpo.so.0.5.2
+lib/libgettextsrc-0.19.3.so
+lib/libgettextsrc.so
+lib/gettext/hostname
+lib/gettext/project-id
+lib/gettext/urlget
+lib/gettext/user-email
+man/man1/autopoint.1.gz
+man/man1/gettextize.1.gz
+man/man1/msgattrib.1.gz
+man/man1/msgcat.1.gz
+man/man1/msgcmp.1.gz
+man/man1/msgcomm.1.gz
+man/man1/msgconv.1.gz
+man/man1/msgen.1.gz
+man/man1/msgexec.1.gz
+man/man1/msgfilter.1.gz
+man/man1/msgfmt.1.gz
+man/man1/msggrep.1.gz
+man/man1/msginit.1.gz
+man/man1/msgmerge.1.gz
+man/man1/msgunfmt.1.gz
+man/man1/msguniq.1.gz
+man/man1/recode-sr-latin.1.gz
+man/man1/xgettext.1.gz
+share/aclocal/codeset.m4
+share/aclocal/extern-inline.m4
+share/aclocal/gettext.m4
+share/aclocal/fcntl-o.m4
+share/aclocal/glibc2.m4
+share/aclocal/glibc21.m4
+share/aclocal/iconv.m4
+share/aclocal/intdiv0.m4
+share/aclocal/intl.m4
+share/aclocal/intldir.m4
+share/aclocal/intlmacosx.m4
+share/aclocal/intmax.m4
+share/aclocal/inttypes-pri.m4
+share/aclocal/inttypes_h.m4
+share/aclocal/lcmessage.m4
+share/aclocal/lib-ld.m4
+share/aclocal/lib-link.m4
+share/aclocal/lib-prefix.m4
+share/aclocal/lock.m4
+share/aclocal/longlong.m4
+share/aclocal/nls.m4
+share/aclocal/po.m4
+share/aclocal/printf-posix.m4
+share/aclocal/progtest.m4
+share/aclocal/size_max.m4
+share/aclocal/stdint_h.m4
+share/aclocal/threadlib.m4
+share/aclocal/uintmax_t.m4
+share/aclocal/visibility.m4
+share/aclocal/wchar_t.m4
+share/aclocal/wint_t.m4
+share/aclocal/xsize.m4
+%%PORTDOCS%%%%DOCSDIR%%/FAQ.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_1.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_2.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_3.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_4.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_5.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_6.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_7.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_8.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_9.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_10.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_11.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_12.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_13.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_14.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_15.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_16.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_17.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_18.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_19.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_20.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_21.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_22.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_23.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_24.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_25.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_foot.html
+%%PORTDOCS%%%%DOCSDIR%%/gettext_toc.html
+%%PORTDOCS%%%%DOCSDIR%%/tutorial.html
+%%DATADIR%%/archive.dir.tar.xz
+%%DATADIR%%/config.rpath
+%%DATADIR%%/gettext.h
+%%DATADIR%%/intl/COPYING.LIB
+%%DATADIR%%/intl/Makefile.in
+%%DATADIR%%/intl/VERSION
+%%DATADIR%%/intl/bindtextdom.c
+%%DATADIR%%/intl/config.charset
+%%DATADIR%%/intl/dcgettext.c
+%%DATADIR%%/intl/dcigettext.c
+%%DATADIR%%/intl/dcngettext.c
+%%DATADIR%%/intl/dgettext.c
+%%DATADIR%%/intl/dngettext.c
+%%DATADIR%%/intl/eval-plural.h
+%%DATADIR%%/intl/explodename.c
+%%DATADIR%%/intl/export.h
+%%DATADIR%%/intl/finddomain.c
+%%DATADIR%%/intl/gettext.c
+%%DATADIR%%/intl/gettextP.h
+%%DATADIR%%/intl/gmo.h
+%%DATADIR%%/intl/hash-string.c
+%%DATADIR%%/intl/hash-string.h
+%%DATADIR%%/intl/intl-compat.c
+%%DATADIR%%/intl/intl-exports.c
+%%DATADIR%%/intl/l10nflist.c
+%%DATADIR%%/intl/langprefs.c
+%%DATADIR%%/intl/libgnuintl.in.h
+%%DATADIR%%/intl/libintl.rc
+%%DATADIR%%/intl/loadinfo.h
+%%DATADIR%%/intl/loadmsgcat.c
+%%DATADIR%%/intl/localcharset.c
+%%DATADIR%%/intl/localcharset.h
+%%DATADIR%%/intl/locale.alias
+%%DATADIR%%/intl/localealias.c
+%%DATADIR%%/intl/localename.c
+%%DATADIR%%/intl/lock.c
+%%DATADIR%%/intl/lock.h
+%%DATADIR%%/intl/log.c
+%%DATADIR%%/intl/ngettext.c
+%%DATADIR%%/intl/os2compat.c
+%%DATADIR%%/intl/os2compat.h
+%%DATADIR%%/intl/osdep.c
+%%DATADIR%%/intl/plural-exp.c
+%%DATADIR%%/intl/plural-exp.h
+%%DATADIR%%/intl/plural.c
+%%DATADIR%%/intl/plural.y
+%%DATADIR%%/intl/printf-args.c
+%%DATADIR%%/intl/printf-args.h
+%%DATADIR%%/intl/printf-parse.c
+%%DATADIR%%/intl/printf-parse.h
+%%DATADIR%%/intl/printf.c
+%%DATADIR%%/intl/ref-add.sin
+%%DATADIR%%/intl/ref-del.sin
+%%DATADIR%%/intl/relocatable.c
+%%DATADIR%%/intl/relocatable.h
+%%DATADIR%%/intl/setlocale.c
+%%DATADIR%%/intl/textdomain.c
+%%DATADIR%%/intl/threadlib.c
+%%DATADIR%%/intl/tsearch.c
+%%DATADIR%%/intl/tsearch.h
+%%DATADIR%%/intl/vasnprintf.c
+%%DATADIR%%/intl/vasnprintf.h
+%%DATADIR%%/intl/vasnwprintf.h
+%%DATADIR%%/intl/verify.h
+%%DATADIR%%/intl/version.c
+%%DATADIR%%/intl/wprintf-parse.h
+%%DATADIR%%/intl/xsize.c
+%%DATADIR%%/intl/xsize.h
+%%DATADIR%%/javaversion.class
+%%DATADIR%%/msgunfmt.tcl
+%%DATADIR%%/po/Makefile.in.in
+%%DATADIR%%/po/Makevars.template
+%%DATADIR%%/po/Rules-quot
+%%DATADIR%%/po/boldquot.sed
+%%DATADIR%%/po/en@boldquot.header
+%%DATADIR%%/po/en@quot.header
+%%DATADIR%%/po/insert-header.sin
+%%DATADIR%%/po/quot.sed
+%%DATADIR%%/po/remove-potcdate.sin
+%%DATADIR%%/projects/GNOME/team-address
+%%DATADIR%%/projects/GNOME/teams.html
+%%DATADIR%%/projects/GNOME/teams.url
+%%DATADIR%%/projects/GNOME/trigger
+%%DATADIR%%/projects/KDE/team-address
+%%DATADIR%%/projects/KDE/teams.html
+%%DATADIR%%/projects/KDE/teams.url
+%%DATADIR%%/projects/KDE/trigger
+%%DATADIR%%/projects/TP/team-address
+%%DATADIR%%/projects/TP/teams.html
+%%DATADIR%%/projects/TP/teams.url
+%%DATADIR%%/projects/TP/trigger
+%%DATADIR%%/projects/index
+%%DATADIR%%/projects/team-address
+%%DATADIR%%/styles/po-default.css
+%%DATADIR%%/styles/po-emacs-x.css
+%%DATADIR%%/styles/po-emacs-xterm.css
+%%DATADIR%%/styles/po-emacs-xterm16.css
+%%DATADIR%%/styles/po-emacs-xterm256.css
+%%DATADIR%%/styles/po-vim.css
+share/locale/be/LC_MESSAGES/gettext-tools.mo
+share/locale/bg/LC_MESSAGES/gettext-tools.mo
+share/locale/ca/LC_MESSAGES/gettext-tools.mo
+share/locale/cs/LC_MESSAGES/gettext-tools.mo
+share/locale/da/LC_MESSAGES/gettext-tools.mo
+share/locale/de/LC_MESSAGES/gettext-tools.mo
+share/locale/el/LC_MESSAGES/gettext-tools.mo
+share/locale/en@boldquot/LC_MESSAGES/gettext-tools.mo
+share/locale/en@quot/LC_MESSAGES/gettext-tools.mo
+share/locale/es/LC_MESSAGES/gettext-tools.mo
+share/locale/et/LC_MESSAGES/gettext-tools.mo
+share/locale/eu/LC_MESSAGES/gettext-tools.mo
+share/locale/fi/LC_MESSAGES/gettext-tools.mo
+share/locale/fr/LC_MESSAGES/gettext-tools.mo
+share/locale/gl/LC_MESSAGES/gettext-tools.mo
+share/locale/id/LC_MESSAGES/gettext-tools.mo
+share/locale/it/LC_MESSAGES/gettext-tools.mo
+share/locale/ja/LC_MESSAGES/gettext-tools.mo
+share/locale/ko/LC_MESSAGES/gettext-tools.mo
+share/locale/nb/LC_MESSAGES/gettext-tools.mo
+share/locale/nl/LC_MESSAGES/gettext-tools.mo
+share/locale/nn/LC_MESSAGES/gettext-tools.mo
+share/locale/pa/LC_MESSAGES/gettext-tools.mo
+share/locale/pl/LC_MESSAGES/gettext-tools.mo
+share/locale/pt/LC_MESSAGES/gettext-tools.mo
+share/locale/pt_BR/LC_MESSAGES/gettext-tools.mo
+share/locale/ro/LC_MESSAGES/gettext-tools.mo
+share/locale/ru/LC_MESSAGES/gettext-tools.mo
+share/locale/sk/LC_MESSAGES/gettext-tools.mo
+share/locale/sl/LC_MESSAGES/gettext-tools.mo
+share/locale/sr/LC_MESSAGES/gettext-tools.mo
+share/locale/sv/LC_MESSAGES/gettext-tools.mo
+share/locale/tr/LC_MESSAGES/gettext-tools.mo
+share/locale/uk/LC_MESSAGES/gettext-tools.mo
+share/locale/vi/LC_MESSAGES/gettext-tools.mo
+share/locale/zh_CN/LC_MESSAGES/gettext-tools.mo
+share/locale/zh_TW/LC_MESSAGES/gettext-tools.mo