From 0ce728864bcae914c6a50933946f607d768ade8a Mon Sep 17 00:00:00 2001 From: Ricardo Salveti de Araujo Date: Tue, 10 Nov 2009 16:36:26 -0300 Subject: [PATCH 115/118] man-db: including recipe Signed-off-by: Francisco Alecrim Signed-off-by: Willer Moreira Signed-off-by: Ricardo Salveti de Araujo --- recipes/man-db/files/fix-cross-compile.patch | 80 ++++++++++++++++++++++++++ recipes/man-db/man-db_2.5.2.bb | 14 +++++ 2 files changed, 94 insertions(+), 0 deletions(-) create mode 100644 recipes/man-db/files/fix-cross-compile.patch create mode 100644 recipes/man-db/man-db_2.5.2.bb diff --git a/recipes/man-db/files/fix-cross-compile.patch b/recipes/man-db/files/fix-cross-compile.patch new file mode 100644 index 0000000..4213f46 --- /dev/null +++ b/recipes/man-db/files/fix-cross-compile.patch @@ -0,0 +1,80 @@ +diff --git a/Makefile.am b/Makefile.am +index d05f710..ce4cae8 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -19,7 +19,7 @@ + ## along with man-db; if not, write to the Free Software Foundation, + ## Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +-SUBDIRS = docs intl gnulib/lib gnulib/po lib libdb src man manual po tools ++SUBDIRS = docs intl gnulib/lib gnulib/po lib libdb src man po tools + + dist_noinst_DATA = README include/README + +diff --git a/configure.ac b/configure.ac +index 7cb1095..d68807a 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -4,7 +4,7 @@ m4_pattern_forbid([^MAN_]) + # Initialise and check we're in the correct directory. + AC_INIT([man-db], [2.5.2], [cjwatson@debian.org]) + AC_CONFIG_AUX_DIR(tools) +-AM_INIT_AUTOMAKE([1.10 -Wall -Werror foreign]) ++AM_INIT_AUTOMAKE([1.9 -Wall -Werror foreign]) + AC_PREREQ([2.59]) + AC_CONFIG_SRCDIR(src/man.c) + +@@ -451,7 +451,6 @@ AC_CONFIG_FILES(Makefile + man/it/Makefile + man/ja/Makefile + man/pl/Makefile +- manual/Makefile + libdb/Makefile + docs/Makefile + tools/Makefile +diff --git a/gnulib/m4/wctype.m4 b/gnulib/m4/wctype.m4 +index 7c6718c..fc95048 100644 +--- a/gnulib/m4/wctype.m4 ++++ b/gnulib/m4/wctype.m4 +@@ -35,15 +35,6 @@ AC_DEFUN([gl_WCTYPE_H], + dnl The other functions are likely broken in the same way. + AC_CACHE_CHECK([whether iswcntrl works], [gl_cv_func_iswcntrl_works], + [ +- AC_TRY_RUN([#include +- #include +- #include +- #include +- #include +- int main () { return iswprint ('x') == 0; }], +- [gl_cv_func_iswcntrl_works=yes], [gl_cv_func_iswcntrl_works=no]) +- ], +- [ + AC_TRY_COMPILE([#include + #if __GNU_LIBRARY__ == 1 + Linux libc5 i18n is broken. +diff --git a/man/Rules.man b/man/Rules.man +index 3ef677e..589d6bc 100644 +--- a/man/Rules.man ++++ b/man/Rules.man +@@ -19,6 +19,8 @@ + ## along with man-db; if not, write to the Free Software Foundation, + ## Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + ++MKDIR_P=mkdir -p ++ + mandir = @mandir@/$(LINGUA) + + CLEANFILES = $(man1_MANS) $(man5_MANS) $(man8_MANS) replace.sed +diff --git a/src/Makefile.am b/src/Makefile.am +index c8d274d..fb9938a 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -21,6 +21,8 @@ + + pkglibexecdir = $(libexecdir)/@PACKAGE@ + ++MKDIR_P=mkdir -p ++ + bin_PROGRAMS = \ + catman \ + lexgrog \ diff --git a/recipes/man-db/man-db_2.5.2.bb b/recipes/man-db/man-db_2.5.2.bb new file mode 100644 index 0000000..e97dd4b --- /dev/null +++ b/recipes/man-db/man-db_2.5.2.bb @@ -0,0 +1,14 @@ +DESCRIPTION = "man-db is an implementation of the standard Unix\ + documentation system accessed using the man command. " +LICENSE = "GPL" +SECTION = "base" +DEPENDS = "gdbm virtual/libiconv" +RDEPENDS_${PN} = "less groff" +PR = "r1" + +SRC_URI = "http://download.savannah.gnu.org/releases-noredirect/man-db/man-db-${PV}.tar.gz \ + file://fix-cross-compile.patch;patch=1" + +inherit autotools + +EXTRA_OECONF += "--without-libiconv-prefix" -- 1.6.3.3