summaryrefslogtreecommitdiff
path: root/sci-misc/apertium/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-misc/apertium/files
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-misc/apertium/files')
-rw-r--r--sci-misc/apertium/files/3.2.0-datadir.patch35
-rw-r--r--sci-misc/apertium/files/3.2.0-flags.patch72
-rw-r--r--sci-misc/apertium/files/apertium-3.2.0-libpcre.patch43
3 files changed, 150 insertions, 0 deletions
diff --git a/sci-misc/apertium/files/3.2.0-datadir.patch b/sci-misc/apertium/files/3.2.0-datadir.patch
new file mode 100644
index 000000000000..d081cd50bc79
--- /dev/null
+++ b/sci-misc/apertium/files/3.2.0-datadir.patch
@@ -0,0 +1,35 @@
+diff -Nur apertium-3.2.0.orig/apertium/Makefile.am apertium-3.2.0/apertium/Makefile.am
+--- apertium-3.2.0.orig/apertium/Makefile.am 2011-07-29 06:55:49.000000000 +0100
++++ apertium-3.2.0/apertium/Makefile.am 2011-07-29 07:03:58.000000000 +0100
+@@ -66,10 +66,10 @@
+
+ instdir = apertium
+
+-apertiumdir = $(prefix)/share/apertium
++apertiumdir = $(datadir)/
+ apertiuminclude = $(prefix)/include/apertium-$(GENERIC_API_VERSION)
+ apertiumlib = $(prefix)/lib
+-apertiumsysconf = $(prefix)/etc/apertium
++apertiumsysconf = $(sysconfdir)/apertium
+
+ apertium_DATA = deformat.xsl reformat.xsl new2old.xsl lexchoice.xsl \
+ lexchoicebil.xsl tagger.dtd interchunk.dtd format.dtd \
+diff -Nur apertium-3.2.0.orig/Makefile.am apertium-3.2.0/Makefile.am
+--- apertium-3.2.0.orig/Makefile.am 2011-07-29 06:55:49.000000000 +0100
++++ apertium-3.2.0/Makefile.am 2011-07-29 07:08:39.000000000 +0100
+@@ -1,13 +1,10 @@
+ SUBDIRS = $(GENERIC_LIBRARY_NAME)
+ DIST_SUBDIRS = $(GENERIC_LIBRARY_NAME)
+
+-modesdir=$(prefix)/share/apertium/modes
++modesdir = $(datadir)/apertium/modes
++modes_DATA = README-MODES
+
+ pkgconfigdir = $(libdir)/pkgconfig
+ pkgconfig_DATA = apertium-$(GENERIC_RELEASE).pc
+
+ EXTRA_DIST=autogen.sh README-MODES
+-
+-install-data-local:
+- mkdir -p $(modesdir)
+- $(INSTALL_DATA) README-MODES $(modesdir)/README
diff --git a/sci-misc/apertium/files/3.2.0-flags.patch b/sci-misc/apertium/files/3.2.0-flags.patch
new file mode 100644
index 000000000000..9bdc4a34c117
--- /dev/null
+++ b/sci-misc/apertium/files/3.2.0-flags.patch
@@ -0,0 +1,72 @@
+diff -Nur apertium-3.2.0.orig/configure.ac apertium-3.2.0/configure.ac
+--- apertium-3.2.0.orig/configure.ac 2011-07-29 06:43:38.000000000 +0100
++++ apertium-3.2.0/configure.ac 2011-07-29 06:46:26.000000000 +0100
+@@ -54,68 +54,6 @@
+
+ # Checks for programs.
+
+-AC_MSG_CHECKING([Compilation architecture: PPC, i686, x86_64, Other])
+-if test x$(which arch) = x
+-then ARCH=$($(which uname) -m)
+-else ARCH=$($(which arch))
+-fi
+-
+-case "${target_os}" in
+- mingw*)
+- MinGW=yes
+- ;;
+- cygwin*)
+- Cygwin=yes
+- ;;
+-esac
+-
+-if test x$ARCH = xppc
+-then
+- AC_MSG_RESULT([PowerPC])
+- CFLAGS="$CFLAGS -Wall -ansi -fomit-frame-pointer"
+- CXXFLAGS="$CXXFLAGS -Wall -ansi -fomit-frame-pointer"
+-else
+- if test x$MinGW = xyes
+- then
+- AC_MSG_RESULT([MinGW])
+- CFLAGS="$CFLAGS -Wall -march=i686 -O3 -DMINGW -fomit-frame-pointer \
+- -funroll-loops -I/include -L/lib"
+- CXXFLAGS="$CXXFLAGS -Wall -march=i686 -O3 \
+- -fomit-frame-pointer -funroll-loops -I/include -L/lib"
+- CPPFLAGS="$CPPFLAGS -I/include"
+- else
+- if test x$Cygwin = xyes
+- then
+- AC_MSG_RESULT([Cygwin])
+- CFLAGS="$CFLAGS -Wall -march=i686 -O3 -fomit-frame-pointer \
+- -funroll-loops"
+- CXXFLAGS="$CXXFLAGS -Wall -march=i686 -O3 \
+- -fomit-frame-pointer -funroll-loops"
+- CPPFLAGS="$CPPFLAGS"
+- else
+- if test x$ARCH = xi686
+- then
+- AC_MSG_RESULT([i686])
+- CFLAGS="$CFLAGS -Wall -ansi -march=i686 -O3 -fomit-frame-pointer -funroll-loops"
+- CXXFLAGS="$CXXFLAGS -Wall -ansi -march=i686 -O3 \
+- -fomit-frame-pointer -funroll-loops"
+- else
+- if test x$ARCH = xx86_64
+- then
+- AC_MSG_RESULT([x86_64])
+- CFLAGS="-Wall -ansi -O3 -mtune=nocona -fomit-frame-pointer -funroll-loops $CFLAGS"
+- CXXFLAGS="-Wall -ansi -O3 -mtune=nocona \
+- -fomit-frame-pointer -funroll-loops $CXXFLAGS"
+- else
+- AC_MSG_RESULT([Other])
+- CFLAGS="-Wall -ansi -O3 $CFLAGS"
+- CXXFLAGS="-Wall -ansi -O3 $CXXFLAGS"
+- fi
+- fi
+- fi
+- fi
+-fi
+-
+ AC_PROG_CXX
+ AC_PROG_LIBTOOL
+ AM_SANITY_CHECK
diff --git a/sci-misc/apertium/files/apertium-3.2.0-libpcre.patch b/sci-misc/apertium/files/apertium-3.2.0-libpcre.patch
new file mode 100644
index 000000000000..29a6a5483bb8
--- /dev/null
+++ b/sci-misc/apertium/files/apertium-3.2.0-libpcre.patch
@@ -0,0 +1,43 @@
+ configure.ac | 28 ++++++++++++++++------------
+ 1 file changed, 16 insertions(+), 12 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 0bfca01..2d8ec3b 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -183,19 +183,23 @@ AC_CHECK_FUNCS(strcasecmp)
+
+ if test x$(uname) != xDarwin;
+ then
+-AC_CHECK_HEADER(pcreposix.h,
+- AC_CHECK_LIB(pcre, pcre_info,[
+- LIBS="$LIBS -lpcreposix -lpcre"
+- no_comp_check=yes],
+- AC_MSG_ERROR([*** unable to locate pcre library ***])),
+- AC_MSG_ERROR([*** unable to locate pcreposix.h include file ***]))
++PKG_CHECK_MODULES([PCRE],
++ [libpcre libpcreposix libpcrecpp],
++ [LIBS="${LIBS} ${PCRE_LIBS}" no_comp_check=yes], [
++ AC_CHECK_HEADER(pcreposix.h,
++ AC_CHECK_LIB(pcre, pcre_version,[
++ LIBS="$LIBS -lpcreposix -lpcre"
++ no_comp_check=yes],
++ AC_MSG_ERROR([*** unable to locate pcre library ***])),
++ AC_MSG_ERROR([*** unable to locate pcreposix.h include file ***]))
+
+-AC_CHECK_HEADER(pcrecpp.h,
+- AC_CHECK_LIB(pcrecpp,pcre_compile,[
+- LIBS="$LIBS -lpcrecpp"
+- no_comp_check=yes],
+- AC_MSG_ERROR([*** unable to locate pcrecpp library ***])),
+- AC_MSG_ERROR([*** unable to locate pcrecpp.h include file ***]))
++ AC_CHECK_HEADER(pcrecpp.h,
++ AC_CHECK_LIB(pcrecpp,pcre_compile,[
++ LIBS="$LIBS -lpcrecpp"
++ no_comp_check=yes],
++ AC_MSG_ERROR([*** unable to locate pcrecpp library ***])),
++ AC_MSG_ERROR([*** unable to locate pcrecpp.h include file ***]))
++ ])
+ fi
+
+