diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-misc/apertium |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-misc/apertium')
-rw-r--r-- | sci-misc/apertium/Manifest | 8 | ||||
-rw-r--r-- | sci-misc/apertium/apertium-3.2.0.ebuild | 34 | ||||
-rw-r--r-- | sci-misc/apertium/files/3.2.0-datadir.patch | 35 | ||||
-rw-r--r-- | sci-misc/apertium/files/3.2.0-flags.patch | 72 | ||||
-rw-r--r-- | sci-misc/apertium/files/apertium-3.2.0-libpcre.patch | 43 | ||||
-rw-r--r-- | sci-misc/apertium/metadata.xml | 15 |
6 files changed, 207 insertions, 0 deletions
diff --git a/sci-misc/apertium/Manifest b/sci-misc/apertium/Manifest new file mode 100644 index 000000000000..60bf2fd0386a --- /dev/null +++ b/sci-misc/apertium/Manifest @@ -0,0 +1,8 @@ +AUX 3.2.0-datadir.patch 1315 SHA256 c15ecf476e2b8fb1382634cd94b25247897e2366d8d54f8ae2c0325d5c98bb5d SHA512 51d4950ee82298a3b77a83e625c7bf788bdbc15b0fa16e1b5e0b57a8be1c28d5a499a1d3fa2436b7cdeedf397803b6ca6fe6740871b8c3a9687b57b3182f9e6a WHIRLPOOL 298b1c55a9216955910fa6716d28a07cab3edbc6cb86332e33a14f349444b5bdd791aa0321c6883ea5ad16a93e5309e6936061c5b65f455afb0b8de7e0b3769e +AUX 3.2.0-flags.patch 2163 SHA256 4603b544b2cc7d7b48945453f2a3c462e5a3f175ee834dcd108d94de8db9bc81 SHA512 25a1e8687c38091b249fbbef4dac01c95f4b446ad7e3ffd829b8803d056e34ec49057855af80f8ec578d83894234ab0c87b900daec759a6fd3ba8ae3fc736fce WHIRLPOOL a247d99fac478f2289b69f955272de96ed25695224dccf57ede3fba0ebcf3f1ef39dd5a914712a1a5f27e7b69fc3bc0f8c38bd889b206d3a260e961918ab8aac +AUX apertium-3.2.0-libpcre.patch 1480 SHA256 ce62b641ea49e838d22f716eb1ff40c99bfefd0a8ff04d57589c901317b689ea SHA512 e8816e99ea2e2c0c027e498d77bf6948002f84781a3af77bb6cf570dfbf29a4a111b94abadfd4b8e4c35737c17abc51c89d880ee938a71fd7a2e57fe88ac081b WHIRLPOOL 768d84121d1081182223835ebd18478c2d76e65776253cf236f2d6e0816c00cc47367620a9a96d87890965cfd6320c06cb5e3e9d14f5df4627977e51c397df28 +DIST apertium-3.2.0.tar.gz 767311 SHA256 6ce2fdc85da5d1e50d69da2e50cc97a87b689476f2c83417765636d9a4b7e9ac SHA512 ec80d72480e414eb9a169241d0921b21009dde7c1da9a773f500f16ac785741be1f4a221c25b3b32e7847405f76e93b5feadb6f541170c0742718e27dfa1fb25 WHIRLPOOL 44b8c6fcda7abe363540d1b3ce344322bec60ff1b822ffb5f228a50b156f9660798a9aafa3c9ccf25652cf858be32efb41b06d5d05e7d8fd3284db7d81aac4a4 +EBUILD apertium-3.2.0.ebuild 697 SHA256 898885884d220ca4338bb2a6920a463b5238d986c9ecec2ae9f8f1ce532d7b11 SHA512 c2a803fa2291a879acc95808a740228f06b0105134eecb93f2be103e0db964ada9e5e43e1acb7a7021c07f2d758fa3e4d8536c677616106d01c3eb5ba5179ade WHIRLPOOL b6b3ce53218b5a12566ff1d1df6e7c08557a5ef09aefbaa9f85b66d9df269742d711d939b1c469906ed116f149a0d6ec8b775fddddbf72c800bf82757d73340d +MISC ChangeLog 2523 SHA256 4bb4afb919e63b655f034c6a2d75ebb279252d278ef1f8e2b72e7e6b71282264 SHA512 00c337404bd1302e8ad6056a343e941afc9518535094bebafec2e5351746cc881c84d92dcc8cafcfe921c448333efbf28eb0aceed5c177421160065ae10160d0 WHIRLPOOL d718528c201ce3d7c11fed645300000442e5252c3e25edd0558f2e179f763b348aecc89b0aa2ef52b27b4cb5966c79fb1f62f8f03216bb02b79d9ffa16c546cf +MISC ChangeLog-2015 1199 SHA256 02cf3ea216478118fea78ff32f9fe0d2704a77e6bf9c76d3dbc96fc6926879dd SHA512 9f0b5ecb5afb26e8274879bdd0bdb6d1261ba3e2a3d5944d8a6d5e83ffa169c7f5eb026f37e2396ef396d82fa7fde2795456364080fcdb9980e29c5254e73006 WHIRLPOOL ed1191076cfc0a2845f1fc7694845f05f35f52f04c7007f4c120780c9fd2d3a030ab29f6dee0f1392702a98eaf4c1567bb3006442cad81aca18af958b01d1a3a +MISC metadata.xml 478 SHA256 984130b49fd12df36c2c631b02e89fe52449e5731004ce79cb0213d45a1ae3ce SHA512 72d6f114b0e196e37ff8bac0f16aad4b4e212d50fc1b805b2b875cc829dd12ec05af39a8e7c748f619681eaab7158757162ce6a761ac126d9c683e17f35f5790 WHIRLPOOL 4166756d14f5595f80e9c4abde405e0ee120702760cae03803d4715ea01c94d3ae4b8fd021066e7665d1d4bc5bceadc914c8cad874034798d2f63a72255893e0 diff --git a/sci-misc/apertium/apertium-3.2.0.ebuild b/sci-misc/apertium/apertium-3.2.0.ebuild new file mode 100644 index 000000000000..9f77d6c90257 --- /dev/null +++ b/sci-misc/apertium/apertium-3.2.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +AUTOTOOLS_AUTORECONF=true + +inherit autotools-utils + +DESCRIPTION="Shallow-transfer machine Translation engine and toolbox" +HOMEPAGE="http://apertium.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" +IUSE="static-libs" + +RDEPEND=" + dev-libs/libxslt + dev-libs/libpcre[cxx] + >=sci-misc/lttoolbox-3.2 + virtual/libiconv" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PV}-flags.patch + "${FILESDIR}"/${PV}-datadir.patch + "${FILESDIR}"/${P}-libpcre.patch + ) + +MAKEOPTS+=" -j1" +AUTOTOOLS_IN_SOURCE_BUILD=1 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 + + diff --git a/sci-misc/apertium/metadata.xml b/sci-misc/apertium/metadata.xml new file mode 100644 index 000000000000..b06cbb847c34 --- /dev/null +++ b/sci-misc/apertium/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <longdescription lang="en"> + Apertium is an open-source shallow-transfer machine translation + engine and toolbox. +</longdescription> + <upstream> + <remote-id type="sourceforge">apertium</remote-id> + </upstream> +</pkgmetadata> |