add recode

This commit is contained in:
groni
2016-01-01 13:24:33 +01:00
parent 14648ed420
commit 3fb09074d4
17 changed files with 39311 additions and 2 deletions
+26
View File
@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
shelltools.unlink("m4/libtool.m4")
shelltools.unlink("acinclude.m4")
autotools.autoreconf("-vif")
autotools.configure("--enable-nls \
--without-included-gettext \
--disable-static")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc("AUTHORS", "BACKLOG", "ChangeLog", "NEWS", "README", "THANKS", "TODO")
@@ -0,0 +1,11 @@
--- recode-3.6/lib/gettext.c.orig 2005-03-07 12:18:30.000000000 +0100
+++ recode-3.6/lib/gettext.c 2005-03-07 12:23:14.000000000 +0100
@@ -1668,8 +1668,6 @@
# if !defined HAVE_GETCWD
char *getwd ();
# define getcwd(buf, max) getwd (buf)
-# else
-char *getcwd ();
# endif
# ifndef HAVE_STPCPY
static char *stpcpy PARAMS ((char *dest, const char *src));
@@ -0,0 +1,19 @@
--- recode-3.6/m4/gettext.m4.old 2001-01-03 11:37:56.000000000 -0500
+++ recode-3.6/m4/gettext.m4 2009-01-08 13:48:57.000000000 -0500
@@ -109,12 +109,12 @@
else
ac_items="$LINGUAS"
for ac_item in $ac_items; do
- case "$ALL_LINGUAS" in
- *$ac_item*)
+ for supported_item in $ALL_LINGUAS; do
+ if test "$ac_item" = "$supported_item"; then
ac_print="$ac_print $ac_item"
MOFILES="$MOFILES $ac_item.mo"
- ;;
- esac
+ fi
+ done
done
fi
AC_SUBST(MOFILES)
@@ -0,0 +1,53 @@
# Recode segfaulted on C files (bnc#503437)
# Eg. file containing just a single apostrophe ('), or openinig C comment (/*)
# This is a simple workaround.
diff -u -r recode-3.6/src/main.c recode-fajn/src/main.c
--- src/main.c.orig 2000-12-06 20:44:59.000000000 +0100
+++ src/main.c 2010-12-30 16:07:03.973840778 +0100
@@ -951,17 +951,26 @@
success = false;
if (verbose_flag)
{
- fprintf (stderr, _(" failed: %s in step `%s..%s'\n"),
+ if (task->error_at_step)
+ fprintf (stderr, _(" failed: %s in step `%s..%s'\n"),
task_perror (task),
task->error_at_step->before->name,
task->error_at_step->after->name);
+ else
+ fprintf (stderr, _(" failed: Unknown error\n"));
+
fflush (stderr);
}
else if (!quiet_flag)
- error (0, 0, _("%s failed: %s in step `%s..%s'"),
+ {
+ if (task->error_at_step)
+ error (0, 0, _("%s failed: %s in step `%s..%s'"),
input_name, task_perror (task),
task->error_at_step->before->name,
task->error_at_step->after->name);
+ else
+ error (0, 0, _("%s failed: Unknown error"), input_name);
+ }
unlink (output_name);
}
@@ -981,10 +990,15 @@
{
success = false;
if (!quiet_flag)
- error (0, 0, _("%s in step `%s..%s'"),
+ {
+ if (task->error_at_step)
+ error (0, 0, _("%s in step `%s..%s'"),
task_perror (task),
task->error_at_step->before->name,
task->error_at_step->after->name);
+ else
+ error (0, 0, _("Unknown error"));
+ }
}
}
}
Only in recode-fajn/src: tags
@@ -0,0 +1,22 @@
--- recode-3.6.orig/configure.in 2001-01-03 16:50:54.000000000 +0100
+++ recode-3.6/configure.in 2012-07-23 14:15:28.000000000 +0200
@@ -15,7 +15,7 @@
AM_PROG_LIBTOOL
AC_ISC_POSIX
-AM_C_PROTOTYPES
+dnl AM_C_PROTOTYPES
AC_C_CONST
AC_C_INLINE
ad_AC_PROG_FLEX
--- recode-3.6.orig/src/Makefile.am 2000-12-06 17:36:12.000000000 +0100
+++ recode-3.6/src/Makefile.am 2012-07-23 14:47:07.000000000 +0200
@@ -17,7 +17,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
-AUTOMAKE_OPTIONS = gnits ansi2knr
+AUTOMAKE_OPTIONS = gnits
bin_PROGRAMS = recode
lib_LTLIBRARIES = librecode.la
man_MANS = recode.1
@@ -0,0 +1,11 @@
--- src/recodext.h.orig 2008-01-16 13:15:39.000000000 +0100
+++ src/recodext.h 2008-01-16 13:16:47.000000000 +0100
@@ -218,7 +218,7 @@
enum recode_symbol_type type : 3;
/* Non zero if this one should be ignored. */
- bool ignore : 2;
+ bool ignore : 1;
};
struct recode_surface_list
@@ -0,0 +1,16 @@
--- recode-3.6-orig/m4/flex.m4 2000-06-28 16:39:06.000000000 +0200
+++ recode-3.6/m4/flex.m4 2010-07-07 12:23:49.000000000 +0200
@@ -8,11 +8,8 @@
dnl Look for flex or missing, then run AC_PROG_LEX and AC_DECL_YYTEXT
AC_DEFUN(ad_AC_PROG_FLEX,
[AC_CHECK_PROGS(LEX, flex, missing)
-if test "$LEX" = missing; then
+AS_IF([test "$LEX" = missing], [
LEX="\$(top_srcdir)/$ac_aux_dir/missing flex"
LEX_OUTPUT_ROOT=lex.yy
AC_SUBST(LEX_OUTPUT_ROOT)dnl
-else
- AC_PROG_LEX
- AC_DECL_YYTEXT
-fi])
+])])
+68
View File
@@ -0,0 +1,68 @@
--- recode-3.6.orig/src/libiconv.c
+++ recode-3.6/src/libiconv.c
@@ -1,5 +1,5 @@
/* Conversion of files between different charsets and surfaces.
- Copyright © 1999, 2000 Free Software Foundation, Inc.
+ Copyright © 1999, 2000, 2001 Free Software Foundation, Inc.
Contributed by François Pinard <pinard@iro.umontreal.ca>, 1999,
and Bruno Haible <haible@clisp.cons.org>, 2000.
@@ -195,12 +195,17 @@
memcpy() doesn't do here, because the regions might overlap.
memmove() isn't worth it, because we rarely have to move more
than 12 bytes. */
- if (input > input_buffer && input_left > 0)
+ cursor = input_buffer;
+ if (input_left > 0)
{
- cursor = input_buffer;
- do
- *cursor++ = *input++;
- while (--input_left > 0);
+ if (input > input_buffer)
+ {
+ do
+ *cursor++ = *input++;
+ while (--input_left > 0);
+ }
+ else
+ cursor += input_left;
}
}
--- recode-3.6.orig/src/request.c
+++ recode-3.6/src/request.c
@@ -1073,7 +1073,7 @@
if (task->output.cursor + 4 >= task->output.limit)
{
RECODE_OUTER outer = task->request->outer;
- size_t old_size = task->output.limit - task->output.buffer;
+ size_t old_size = task->output.cursor - task->output.buffer;
size_t new_size = task->output.cursor + 4 - task->output.buffer;
/* FIXME: Rethink about how the error should be reported. */
--- recode-3.6.orig/src/task.c
+++ recode-3.6/src/task.c
@@ -1198,6 +1198,8 @@
else
success = transform_mere_copy (subtask);
+ task->output = subtask->output;
+
if (subtask->input.name && *subtask->input.name)
fclose (subtask->input.file);
if (subtask->output.name && *subtask->output.name)
--- recode-3.6.orig/src/hash.h
+++ recode-3.6/src/hash.h
@@ -21,6 +21,11 @@
/* Make sure USE_OBSTACK is defined to 1 if you want the allocator to use
obstacks instead of malloc, and recompile `hash.c' with same setting. */
+#define hash_lookup recode_hash_lookup
+#define hash_delete recode_hash_delete
+#define hash_free recode_hash_free
+#define hash_insert recode_hash_insert
+
#ifndef PARAMS
# if PROTOTYPES || __STDC__
# define PARAMS(Args) Args
File diff suppressed because it is too large Load Diff
+12
View File
@@ -0,0 +1,12 @@
diff -Nur recode-3.6-old/src/argmatch.c recode-3.6/src/argmatch.c
--- recode-3.6-old/src/argmatch.c 2008-05-27 15:17:09.000000000 +0300
+++ recode-3.6/src/argmatch.c 2008-05-27 15:18:30.000000000 +0300
@@ -18,6 +18,8 @@
/* Written by David MacKenzie <djm@ai.mit.edu>
Modified by Akim Demaille <demaille@inf.enst.fr> */
+#include <stdlib.h>
+
#include "argmatch.h"
#include <stdio.h>
@@ -0,0 +1,12 @@
diff -Naur recode-3.6-orig/Makefile.am recode-3.6/Makefile.am
--- recode-3.6-orig/Makefile.am 2009-05-15 14:31:12.463908436 +0300
+++ recode-3.6/Makefile.am 2009-05-15 14:31:31.540660383 +0300
@@ -18,7 +18,7 @@
# 02111-1307, USA.
AUTOMAKE_OPTIONS = gnits
-ACLOCAL = ./aclocal.sh @ACLOCAL@
+ACLOCAL = /usr/bin/aclocal
ACLOCAL_AMFLAGS = -I m4
BABYL = ../rmail/* ../*/rmail/* ../*/*/RMAIL ../*/*/rmail/*
+92
View File
@@ -0,0 +1,92 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>recode</Name>
<Homepage>http://www.gnu.org/software/recode/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<IsA>app:console</IsA>
<Summary>File character set converter</Summary>
<Description>Recode can convert files to various character sets (e.g. utf8, iso-8859-1, koi8r..).</Description>
<Archive sha1sum="2de90cd2ba553bc07d75a29913ea4424dd9e616b" type="targz">http://pkgs.fedoraproject.org/repo/pkgs/recode/recode-3.6.tar.gz/be3f40ad2e93dae5cd5f628264bf1877/recode-3.6.tar.gz</Archive>
<BuildDependencies>
<Dependency>gettext</Dependency>
<Dependency>libtool</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">recode.patch</Patch>
<Patch level="1">recode-3.6-getcwd.patch</Patch>
<Patch level="0">recode-bool-bitfield.patch</Patch>
<Patch level="1">recode-flex-m4.patch</Patch>
<Patch level="1">stdlib.patch</Patch>
<Patch level="1">recode-3.6-gettextfix.diff</Patch>
<!--
<Patch level="1">recode_3.6-15.diff</Patch>
-->
<Patch level="1">system-aclocal.diff</Patch>
<!-- Segfault patch from SuSE -->
<Patch>recode-3.6-segfault.patch</Patch>
<Patch level="1">recode-automake.patch</Patch>
</Patches>
</Source>
<Package>
<Name>recode</Name>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="info">/usr/share/info</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="localedata">/usr/share/locale</Path>
</Files>
</Package>
<Package>
<Name>recode-devel</Name>
<Summary>Development files for recode</Summary>
<RuntimeDependencies>
<Dependency release="current">recode</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
</Files>
</Package>
<History>
<Update release="4">
<Date>2016-01-01</Date>
<Version>3.6</Version>
<Comment>Rebuild for Pisi 2.0</Comment>
<Name>Stefan Gronewold</Name>
<Email>groni@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2014-05-22</Date>
<Version>3.6</Version>
<Comment>Rebuild</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2014-02-10</Date>
<Version>3.6</Version>
<Comment>Rebuild, Url değiş.</Comment>
<Name>Alihan Öztürk</Name>
<Email>alihan@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2011-01-03</Date>
<Version>3.6</Version>
<Comment>First release</Comment>
<Name>Pisi Linux Admins</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>recode</Name>
<Summary xml:lang="tr">Karakter kümesi dönüşümü aracı</Summary>
<Description xml:lang="tr">Recode dosyaların bir karakter kümesinden bir başkasına dönüştürülmesine imkân verir. Çok sayıda karakter kümesini destekler.</Description>
</Source>
<Package>
<Name>recode-devel</Name>
<Summary xml:lang="tr">recode için geliştirme dosyaları</Summary>
</Package>
</PISI>
+86
View File
@@ -31724,6 +31724,92 @@
</Update>
</History>
</SpecFile>
<SpecFile>
<Source>
<Name>recode</Name>
<Homepage>http://www.gnu.org/software/recode/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<IsA>app:console</IsA>
<PartOf>office.misc</PartOf>
<Summary xml:lang="en">File character set converter</Summary>
<Summary xml:lang="tr">Karakter kümesi dönüşümü aracı</Summary>
<Description xml:lang="en">Recode can convert files to various character sets (e.g. utf8, iso-8859-1, koi8r..).</Description>
<Description xml:lang="tr">Recode dosyaların bir karakter kümesinden bir başkasına dönüştürülmesine imkân verir. Çok sayıda karakter kümesini destekler.</Description>
<Archive type="targz" sha1sum="2de90cd2ba553bc07d75a29913ea4424dd9e616b">http://pkgs.fedoraproject.org/repo/pkgs/recode/recode-3.6.tar.gz/be3f40ad2e93dae5cd5f628264bf1877/recode-3.6.tar.gz</Archive>
<BuildDependencies>
<Dependency>gettext</Dependency>
<Dependency>libtool</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">recode.patch</Patch>
<Patch level="1">recode-3.6-getcwd.patch</Patch>
<Patch level="0">recode-bool-bitfield.patch</Patch>
<Patch level="1">recode-flex-m4.patch</Patch>
<Patch level="1">stdlib.patch</Patch>
<Patch level="1">recode-3.6-gettextfix.diff</Patch>
<Patch level="1">system-aclocal.diff</Patch>
<Patch>recode-3.6-segfault.patch</Patch>
<Patch level="1">recode-automake.patch</Patch>
</Patches>
<SourceURI>office/misc/recode/pspec.xml</SourceURI>
</Source>
<Package>
<Name>recode</Name>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="info">/usr/share/info</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="localedata">/usr/share/locale</Path>
</Files>
</Package>
<Package>
<Name>recode-devel</Name>
<Summary xml:lang="en">Development files for recode</Summary>
<Summary xml:lang="tr">recode için geliştirme dosyaları</Summary>
<RuntimeDependencies>
<Dependency release="4">recode</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
</Files>
</Package>
<History>
<Update release="4">
<Date>2016-01-01</Date>
<Version>3.6</Version>
<Comment>Rebuild for Pisi 2.0</Comment>
<Name>Stefan Gronewold</Name>
<Email>groni@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2014-05-22</Date>
<Version>3.6</Version>
<Comment>Rebuild</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2014-02-10</Date>
<Version>3.6</Version>
<Comment>Rebuild, Url değiş.</Comment>
<Name>Alihan Öztürk</Name>
<Email>alihan@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2011-01-03</Date>
<Version>3.6</Version>
<Comment>First release</Comment>
<Name>Pisi Linux Admins</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</SpecFile>
<SpecFile>
<Source>
<Name>qpdf</Name>
+1 -1
View File
@@ -1 +1 @@
6c2d9e0f4ea9bbe1157157819151cf5edd4c8638
50489b425b265bc25dd8cabab58032fec157c825
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -1 +1 @@
ba52c70d3ad9c4939c4bd7dd22d5e9c52f690494
fcb9382624e556cba5854201716f92f76ad7cfb0