summaryrefslogtreecommitdiff
path: root/app-text/unac
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 /app-text/unac
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/unac')
-rw-r--r--app-text/unac/Manifest7
-rw-r--r--app-text/unac/files/unac-1.8.0-automake-1.13.1.patch40
-rw-r--r--app-text/unac/files/unac-1.8.0-debian-gcc-4.4-bug-556379.patch47
-rw-r--r--app-text/unac/metadata.xml8
-rw-r--r--app-text/unac/unac-1.8.0.ebuild48
5 files changed, 150 insertions, 0 deletions
diff --git a/app-text/unac/Manifest b/app-text/unac/Manifest
new file mode 100644
index 000000000000..56d68dfd9897
--- /dev/null
+++ b/app-text/unac/Manifest
@@ -0,0 +1,7 @@
+AUX unac-1.8.0-automake-1.13.1.patch 950 SHA256 2a2935774d5fe273511830223eb2d091f74791db70b33bf2239f169b1781d5c9 SHA512 f6f29885b937b4e3dc21379e1e5d81229de9f1a400d24f3ea83a8cd06db822b0dc7bb8fb1dbfce27aac6d2b83834fe7fe15cdbfabfb6d82ee6311079fe7807f5 WHIRLPOOL 9905dec56daf83ab6f435617816164b6036a3c208fe474572d70af2678bcd4faede6f1526b05db641f06477f581f6c7359ebfd8316eb2924d87c74fffe72d5f5
+AUX unac-1.8.0-debian-gcc-4.4-bug-556379.patch 1454 SHA256 bd082bf640aa33f6a0422679b90d6a2acbf0800fe8a420030a816ed2aa7244cd SHA512 40294181f611a047c25900235d35b231e4026ff0a2759f90e3b74b0b93c97f64162803bcdfa4041652fe39421291248d189046f7e993d0a88606f4e240d04b7e WHIRLPOOL de97e1aefda97a6a5bdc626fbb5c4b7c87dc5b62025a7fd33dc55e87ca1194eebe4d813065b7e966979093ed852624eb2d967416e9604bf5d9e84ebc9dab98c6
+DIST unac_1.8.0.orig.tar.gz 281807 SHA256 29d316e5b74615d49237556929e95e0d68c4b77a0a0cfc346dc61cf0684b90bf SHA512 770508daabe7f1cf2fdd2c7cb0f88ed6363a091320547e1f5cafc32db6506c18548be98f6c5780757f3dc914c372a27a336865a0cd92c0a5503245fbb25ca3c8 WHIRLPOOL 50878306e85f3f78743ea416988db33ecacfeb651ebb255669bbc709e243bd575bacdeca400052b09940961b1a6ffe99d3074cc4d37786a4a6f70d9448d8d918
+EBUILD unac-1.8.0.ebuild 1147 SHA256 b6ed75338eaec2875f53f878be1722acdd934f4877682cc91e03d7a8c658c60b SHA512 43c2ee5eb87b078d087b5f711ad5d8e4265b5dabd28f67ec47c727cfe292c5501d7f0bd2c548d8346bd5a8f52ca9a3ee34b6aa6a7f33103301130dd7d1bbf3b4 WHIRLPOOL b6b1112391f0cd7cf51f19186261ad0d07161aa123ae3f5e7e3545994e1c42c45d487712ef67cce710c9cac8d7e740259e425cc63158fea243e1f7ec187d6a00
+MISC ChangeLog 2263 SHA256 3699939fe4d96b51405b8219e5120c402c00cea7d20aadc3178f63e79bac76ec SHA512 d1f42715461bfffd05265064bc7f7e5699b03ac882b78593867a926854f0654f32195ed637eccd1ead34f1aa60c90f16901234df766b8327f32e8102745b476d WHIRLPOOL 6bc9b23a3b584e593f4678573467135ef84253783f4d95b685a692157f2ebb1829aeaf059625fca9605e5c9254d64e2adef4b51f051f0f2767a66a8e80bc1d27
+MISC ChangeLog-2015 929 SHA256 fc9bb683dd4c2e23e4e858b8e795d99a4b7b76b43abf6895385720333e822a8b SHA512 c8538f599cab35567e1821f1e8969ca2ddfa6ba01c8b9438b5dbf1b6756d2082e948df517dc4f40cf468c619a1d9a4afb430668a5f49a73e5b741f3e45a1cc32 WHIRLPOOL ac0cf338fcb834113ec6c96a2e9d6257dd92bdb2685eab8d8b7409b3640714035dfe5be200846237a951ad5e8c202086ff3787a7034af7fce313960035e96faf
+MISC metadata.xml 252 SHA256 d9faaa11276205bc2371f7bfc547bcc99eb99bde06ee2b0ea4a38405dbe0b908 SHA512 4f60eeb0614b560f69085d664d02d29833e1d7a9d0975b3d6b09945df857b97b9a827b73808b1ac354b77367f22035765949ea8bc696193cb08f9bf71176a032 WHIRLPOOL f259a562e7971dc34808e5be58492a76a9b48faa914a403618a427639def21d4c844c11deaa7aae0635438fb79f170b8a5e9edd8d3feda3993316e2cf77d0116
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."
+}