diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-text/unac | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-text/unac')
-rw-r--r-- | app-text/unac/Manifest | 5 | ||||
-rw-r--r-- | app-text/unac/files/unac-1.8.0-automake-1.13.1.patch | 40 | ||||
-rw-r--r-- | app-text/unac/files/unac-1.8.0-debian-gcc-4.4-bug-556379.patch | 47 | ||||
-rw-r--r-- | app-text/unac/metadata.xml | 8 | ||||
-rw-r--r-- | app-text/unac/unac-1.8.0.ebuild | 48 |
5 files changed, 148 insertions, 0 deletions
diff --git a/app-text/unac/Manifest b/app-text/unac/Manifest new file mode 100644 index 000000000000..806f826a4096 --- /dev/null +++ b/app-text/unac/Manifest @@ -0,0 +1,5 @@ +AUX unac-1.8.0-automake-1.13.1.patch 950 BLAKE2B 41be5811b494475d0927f6dc8a3581a4f39d15c6bd315921674e8653c0c87bf07b85e9d72c6ef3cae6463852a78b5f084b4a193ec1412369a818b04737f57f2e SHA512 f6f29885b937b4e3dc21379e1e5d81229de9f1a400d24f3ea83a8cd06db822b0dc7bb8fb1dbfce27aac6d2b83834fe7fe15cdbfabfb6d82ee6311079fe7807f5 +AUX unac-1.8.0-debian-gcc-4.4-bug-556379.patch 1454 BLAKE2B af02bd996b41651305b7f958adf87a0901be40b39312951ddfec4b0c973fa95626de115ed33d0ac609a3ef8b1f97e8673fad3c5d6ef09ac5f2744ef415c8609b SHA512 40294181f611a047c25900235d35b231e4026ff0a2759f90e3b74b0b93c97f64162803bcdfa4041652fe39421291248d189046f7e993d0a88606f4e240d04b7e +DIST unac_1.8.0.orig.tar.gz 281807 BLAKE2B 1c566d75eef70b37cc6e8d4840d5712783ec01e2cf6ed5dc39a10b5da2af2c35928b62a1e6592bae1bb21682c3a0410582158661b4989f0ecbea80220bd256d9 SHA512 770508daabe7f1cf2fdd2c7cb0f88ed6363a091320547e1f5cafc32db6506c18548be98f6c5780757f3dc914c372a27a336865a0cd92c0a5503245fbb25ca3c8 +EBUILD unac-1.8.0.ebuild 1147 BLAKE2B b5c373eff732bd4533b6067caccf6ed1a47cf6e8b3a5af1d46a80ae983c30364ffdadbf5e4798a3d9953963faf2c6f8ab502e4635a1c3495c5853d524ed5caa4 SHA512 43c2ee5eb87b078d087b5f711ad5d8e4265b5dabd28f67ec47c727cfe292c5501d7f0bd2c548d8346bd5a8f52ca9a3ee34b6aa6a7f33103301130dd7d1bbf3b4 +MISC metadata.xml 252 BLAKE2B baab35383a82c344682e5dea4a051cfa3bae507232a5db1ea982f775b85375ce854c0c647c93072eb24d23f5f592405c33c8ea233726fba9f0611aff20b93863 SHA512 4f60eeb0614b560f69085d664d02d29833e1d7a9d0975b3d6b09945df857b97b9a827b73808b1ac354b77367f22035765949ea8bc696193cb08f9bf71176a032 diff --git a/app-text/unac/files/unac-1.8.0-automake-1.13.1.patch b/app-text/unac/files/unac-1.8.0-automake-1.13.1.patch new file mode 100644 index 000000000000..eaad52a53f14 --- /dev/null +++ b/app-text/unac/files/unac-1.8.0-automake-1.13.1.patch @@ -0,0 +1,40 @@ +From 43e4c8788491c378862654933cc6d59d46f571c6 Mon Sep 17 00:00:00 2001 +From: Alexandre Rostovtsev <tetromino@gentoo.org> +Date: Mon, 22 Jul 2013 23:07:04 -0400 +Subject: [PATCH] build: modernize for automake-1.14 + +https://bugs.gentoo.org/show_bug.cgi?id=467618 +--- + Makefile.am | 2 +- + configure.ac | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index b4c658c..b40192e 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -20,7 +20,7 @@ + # Documentation + # + man_MANS = unaccent.1 unac.3 +-INCLUDES = -DUNAC_VERSION=\"$(VERSION)\" ++AM_CPPFLAGS = -DUNAC_VERSION=\"$(VERSION)\" + + # + # Support programs +diff --git a/configure.ac b/configure.ac +index 4a4eab6..444a9d5 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -26,7 +26,7 @@ AC_SUBST(MICRO_VERSION) + AM_INIT_AUTOMAKE([unac], $VERSION, nosubst) + AC_PREREQ(2.50) + +-AM_CONFIG_HEADER(config.h) ++AC_CONFIG_HEADERS([config.h]) + + AC_PROG_MAKE_SET + +-- +1.8.3.2 + diff --git a/app-text/unac/files/unac-1.8.0-debian-gcc-4.4-bug-556379.patch b/app-text/unac/files/unac-1.8.0-debian-gcc-4.4-bug-556379.patch new file mode 100644 index 000000000000..ca1d50274da6 --- /dev/null +++ b/app-text/unac/files/unac-1.8.0-debian-gcc-4.4-bug-556379.patch @@ -0,0 +1,47 @@ +See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=556379 + +diff -r fd7eb0d70970 unac-1.8.0/unac.c +--- a/unac-1.8.0/unac.c Fri Sep 17 10:35:14 2010 +0200 ++++ b/unac-1.8.0/unac.c Fri Sep 17 10:36:07 2010 +0200 +@@ -13873,9 +13873,9 @@ + *out_lengthp = 0; + } else { + char* utf16 = 0; +- int utf16_length = 0; ++ size_t utf16_length = 0; + char* utf16_unaccented = 0; +- int utf16_unaccented_length = 0; ++ size_t utf16_unaccented_length = 0; + + if(convert(charset, utf16be(), in, in_length, &utf16, &utf16_length) < 0) { + return -1; +diff -r fd7eb0d70970 unac-1.8.0/unaccent.c +--- a/unac-1.8.0/unaccent.c Fri Sep 17 10:35:14 2010 +0200 ++++ b/unac-1.8.0/unaccent.c Fri Sep 17 10:40:34 2010 +0200 +@@ -90,7 +90,7 @@ + const char* charset = argv[optind++]; + + char* unaccented = 0; +- int unaccented_length = 0; ++ size_t unaccented_length = 0; + + if(optind >= argc) { + #define BUFFER_SIZE 10240 +@@ -101,7 +101,7 @@ + perror(""); + exit(1); + } +- printf("%.*s", unaccented_length, unaccented); ++ printf("%.*s", (int)unaccented_length, unaccented); + } + } else { + const char* string = argv[optind++]; +@@ -114,7 +114,7 @@ + + if(debug_level > UNAC_DEBUG_NONE) + fprintf(stderr, "unaccented version is "); +- printf("%.*s\n", unaccented_length, unaccented); ++ printf("%.*s\n", (int)unaccented_length, unaccented); + + if(optind < argc) { + const char* expected = argv[optind++]; diff --git a/app-text/unac/metadata.xml b/app-text/unac/metadata.xml new file mode 100644 index 000000000000..477cc0e0a286 --- /dev/null +++ b/app-text/unac/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>tetromino@gentoo.org</email> + <name>Alexandre Rostovtsev</name> +</maintainer> +</pkgmetadata> diff --git a/app-text/unac/unac-1.8.0.ebuild b/app-text/unac/unac-1.8.0.ebuild new file mode 100644 index 000000000000..f5dfcb76a2fb --- /dev/null +++ b/app-text/unac/unac-1.8.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit autotools eutils + +DESCRIPTION="Library and command-line tool for removing accents from characters" +HOMEPAGE="http://www.nongnu.org/unac/" +SRC_URI="mirror://debian/pool/main/u/unac/${P/-/_}.orig.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="static-libs test" + +RDEPEND="virtual/libiconv" +DEPEND="${RDEPEND} + test? ( dev-lang/perl )" + +S="${WORKDIR}/${P}.orig" + +src_prepare() { + epatch "${FILESDIR}/${P}-debian-gcc-4.4-bug-556379.patch" + epatch "${FILESDIR}/${P}-automake-1.13.1.patch" + # otherwise automake will fail + touch config.rpath + eautoreconf +} + +src_configure() { + econf $(use_enable static-libs static) +} + +src_install() { + DOCS="AUTHORS ChangeLog NEWS README THANKS" + default + prune_libtool_files +} + +pkg_postinst() { + einfo "Examples of using unaccent from the command line:" + einfo "unaccent utf8 été" + einfo "echo -e '\\\\0303\\\\0251t\\\\0303\\\\0251' | unaccent utf8" + einfo "unaccent ISO-8859-1 < myfile > myfile.unaccent" + einfo + einfo "See man unaccent and man unac for more information." +} |