code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libvisio</Name>
        <Homepage>http://www.ohloh.net/p/libvisio</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <License>LGPLv2.1</License>
        <IsA>app:console</IsA>
        <Summary>A C++ library for parsing binary Microsoft Visio documents</Summary>
        <Description>A C++ library for parsing binary Microsoft Visio documents (.vsd). Includes a converter to XHTML with embedded SVG files.</Description>
        <Archive sha1sum="02daada854aee55ff847b42916536de143c7dda4" type="tarxz">http://dev-www.libreoffice.org/src/libvisio/libvisio-0.1.5.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>icu4c-devel</Dependency>
            <Dependency>librevenge-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>boost-devel</Dependency>
            <Dependency>gperf</Dependency>
            <Dependency>cppunit-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>libvisio</Name>
        <RuntimeDependencies>
            <Dependency>cppunit</Dependency>
            <Dependency>icu4c</Dependency>
            <Dependency>librevenge</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libxml2</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="doc">/usr/share/doc/libvisio</Path>
        </Files>
    </Package>

    <Package>
        <Name>libvisio-devel</Name>
        <RuntimeDependencies>
            <Dependency>icu4c-devel</Dependency>
            <Dependency>librevenge-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
            <Dependency version="current">libvisio</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include/</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-03-16</Date>
            <Version>0.1.5</Version>
            <Comment>Release Bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.1.5</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-01-03</Date>
            <Version>0.1.0</Version>
            <Comment>First release</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libvisio</Name>
        <Summary xml:lang="tr">A C++ library for parsing binary Microsoft Visio documents.</Summary>
        <Description xml:lang="tr">A C++ library for parsing binary Microsoft Visio documents (.vsd). Includes a converter to XHTML with embedded SVG files.</Description>
    </Source>
</PISI>

repo_name: ayhanyalcinsoy/main


code:
#!/usr/bin/python
# -*- 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

WorkDir = "%s-%s" % (get.srcNAME(), get.srcVERSION().replace("_", ""))

def setup():
    #shelltools.unlink("acinclude.m4")
    autotools.autoreconf("-fi")
    autotools.configure("--disable-gtk-doc \
                         --disable-static \
                         --disable-man \
                         --disable-gmdb2 \
                         --with-unixodbc=/usr")

    pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")

def check():
    autotools.make("check")

def build():
    autotools.make("-j1")

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING*", "NEWS", "README", "TODO")


code:
[Desktop Entry]
Encoding=UTF-8
Name=MDB Database Explorer
Name[tr]=MDB Veritabanı Görüntüleyici
Comment=Explorer for your MDB database files
Comment[tr]=MDB veritabanı dosyalarınız için görüntüleyici
Icon=server-database.png
Exec=gmdb2
Terminal=false
Type=Application
Categories=Development;


code:
--- src/odbc/Makefile.am.orig	2006-07-26 14:05:55.000000000 +0200
+++ src/odbc/Makefile.am	2006-07-26 14:06:02.000000000 +0200
@@ -15,7 +15,7 @@
 				$(patsubst %.c, %.lo, $(SQLSOURCES))) \
 				$(patsubst %, $(MDBDIR)/%, \
 				$(patsubst %.c, %.lo, $(MDBSOURCES)))
-LIBS	=	@LEXLIB@ $(GLIB_LIBS) $(ODBC_LIBS)
+LIBS	=	@LEXLIB@ $(GLIB_LIBS) $(ODBC_LIBS) -lm
 unittest_LDADD	=	libmdbodbc.la ../libmdb/libmdb.la ../sql/libmdbsql.la

 ## Need blank statement to avoid compiling odbc.c


code:
diff -ur mdbtools-0.6pre1-orig/include/mdbtools.h mdbtools-0.6pre1/include/mdbtools.h
--- mdbtools-0.6pre1-orig/include/mdbtools.h	2006-05-28 18:01:32.000000000 -0400
+++ mdbtools-0.6pre1/include/mdbtools.h	2006-05-28 18:04:33.000000000 -0400
@@ -147,7 +147,7 @@
 #define IS_JET3(mdb) (mdb->f->jet_version==MDB_VER_JET3)

 /* hash to store registered backends */
-extern GHashTable	*mdb_backends;
+static GHashTable	*mdb_backends;

 /* forward declarations */
 typedef struct mdbindex MdbIndex;


code:
--- src/extras/mdbsupport.c.orig	2007-05-13 11:55:43.000000000 +0200
+++ src/extras/mdbsupport.c	2007-05-13 11:55:57.000000000 +0200
@@ -1,6 +1,7 @@
 /* support routines for code generated by the util programs */

 #include <stdio.h>
+#include <string.h>

 void dump_int (int i)
 {


code:
--- mdbtools-cvs-20050624/src/odbc/odbc.c.orig	2010-05-24 10:20:59.000000000 -0400
+++ mdbtools-cvs-20050624/src/odbc/odbc.c	2010-05-25 17:28:05.000000000 -0400
@@ -210,7 +210,7 @@
     SQLHSTMT           hstmt,
     SQLUSMALLINT       ipar,
     SQLSMALLINT FAR   *pfSqlType,
-    SQLUINTEGER FAR   *pcbParamDef,
+    SQLULEN FAR   *pcbParamDef,
     SQLSMALLINT FAR   *pibScale,
     SQLSMALLINT FAR   *pfNullable)
 {
@@ -221,8 +221,8 @@
 SQLRETURN SQL_API SQLExtendedFetch(
     SQLHSTMT           hstmt,
     SQLUSMALLINT       fFetchType,
-    SQLINTEGER         irow,
-    SQLUINTEGER FAR   *pcrow,
+    SQLLEN         irow,
+    SQLULEN FAR   *pcrow,
     SQLUSMALLINT FAR  *rgfRowStatus)
 {
 struct _hstmt *stmt = (struct _hstmt *) hstmt;
@@ -297,8 +297,8 @@

 SQLRETURN SQL_API SQLParamOptions(
     SQLHSTMT           hstmt,
-    SQLUINTEGER        crow,
-    SQLUINTEGER FAR   *pirow)
+    SQLULEN        crow,
+    SQLULEN FAR   *pirow)
 {
 	TRACE("SQLParamOptions");
 	return SQL_SUCCESS;
@@ -347,7 +347,7 @@

 SQLRETURN SQL_API SQLSetPos(
     SQLHSTMT           hstmt,
-    SQLUSMALLINT       irow,
+    SQLSETPOSIROW       irow,
     SQLUSMALLINT       fOption,
     SQLUSMALLINT       fLock)
 {
@@ -398,11 +398,11 @@
     SQLSMALLINT        fParamType,
     SQLSMALLINT        fCType,
     SQLSMALLINT        fSqlType,
-    SQLUINTEGER        cbColDef,
+    SQLULEN        cbColDef,
     SQLSMALLINT        ibScale,
     SQLPOINTER         rgbValue,
-    SQLINTEGER         cbValueMax,
-    SQLINTEGER FAR    *pcbValue)
+    SQLLEN         cbValueMax,
+    SQLLEN FAR    *pcbValue)
 {
 struct _hstmt *stmt;

@@ -502,8 +502,8 @@
     SQLUSMALLINT       icol,
     SQLSMALLINT        fCType,
     SQLPOINTER         rgbValue,
-    SQLINTEGER         cbValueMax,
-    SQLINTEGER FAR    *pcbValue)
+    SQLLEN         cbValueMax,
+    SQLLEN FAR    *pcbValue)
 {
 	struct _hstmt *stmt = (struct _hstmt *) hstmt;
 	struct _sql_bind_info *cur, *newitem;
@@ -594,7 +594,7 @@
     SQLSMALLINT        cbColNameMax,
     SQLSMALLINT FAR   *pcbColName,
     SQLSMALLINT FAR   *pfSqlType,
-    SQLUINTEGER FAR   *pcbColDef, /* precision */
+    SQLULEN FAR   *pcbColDef, /* precision */
     SQLSMALLINT FAR   *pibScale,
     SQLSMALLINT FAR   *pfNullable)
 {
@@ -649,7 +649,7 @@
     SQLPOINTER         rgbDesc,
     SQLSMALLINT        cbDescMax,
     SQLSMALLINT FAR   *pcbDesc,
-    SQLINTEGER FAR    *pfDesc)
+    SQLLEN FAR    *pfDesc)
 {
 	int namelen, i;
 	struct _hstmt *stmt;
@@ -969,7 +969,7 @@

 SQLRETURN SQL_API SQLRowCount(
     SQLHSTMT           hstmt,
-    SQLINTEGER FAR    *pcrow)
+    SQLLEN FAR    *pcrow)
 {
 struct _hstmt *stmt=(struct _hstmt *)hstmt;

@@ -1002,10 +1002,10 @@
     SQLUSMALLINT       ipar,
     SQLSMALLINT        fCType,
     SQLSMALLINT        fSqlType,
-    SQLUINTEGER        cbParamDef,
+    SQLULEN        cbParamDef,
     SQLSMALLINT        ibScale,
     SQLPOINTER         rgbValue,
-    SQLINTEGER FAR     *pcbValue)
+    SQLLEN FAR     *pcbValue)
 {
 	TRACE("SQLSetParam");
 	return SQL_SUCCESS;
@@ -1125,8 +1125,8 @@
     SQLUSMALLINT       icol,
     SQLSMALLINT        fCType,
     SQLPOINTER         rgbValue,
-    SQLINTEGER         cbValueMax,
-    SQLINTEGER FAR    *pcbValue)
+    SQLLEN         cbValueMax,
+    SQLLEN FAR    *pcbValue)
 {
 	struct _hstmt *stmt;
 	struct _hdbc *dbc;
@@ -1457,7 +1457,7 @@
 SQLRETURN SQL_API SQLPutData(
     SQLHSTMT           hstmt,
     SQLPOINTER         rgbValue,
-    SQLINTEGER         cbValue)
+    SQLLEN         cbValue)
 {
 	TRACE("SQLPutData");
 	return SQL_SUCCESS;
@@ -1466,7 +1466,7 @@
 SQLRETURN SQL_API SQLSetConnectOption(
     SQLHDBC            hdbc,
     SQLUSMALLINT       fOption,
-    SQLUINTEGER        vParam)
+    SQLULEN        vParam)
 {
 	TRACE("SQLSetConnectOption");
 	return SQL_SUCCESS;
@@ -1475,7 +1475,7 @@
 SQLRETURN SQL_API SQLSetStmtOption(
     SQLHSTMT           hstmt,
     SQLUSMALLINT       fOption,
-    SQLUINTEGER        vParam)
+    SQLULEN        vParam)
 {
 	TRACE("SQLSetStmtOption");
 	return SQL_SUCCESS;


code:
Index: src/sql/Makefile.am
===================================================================
--- src/sql/Makefile.am.orig
+++ src/sql/Makefile.am
@@ -1,5 +1,6 @@
 lib_LTLIBRARIES	=	libmdbsql.la
 libmdbsql_la_SOURCES=	mdbsql.c parser.y lexer.l
+libmdbsql_la_LIBADD = ../libmdb/libmdb.la
 EXTRA_DIST = main.c
 DISTCLEANFILES = parser.c parser.h lexer.c
 AM_CPPFLAGS	=	-I$(top_srcdir)/include $(GLIB_CFLAGS)


code:
Index: configure.in
===================================================================
--- configure.in.orig
+++ configure.in
@@ -106,6 +106,7 @@ PKG_CHECK_MODULES(GNOME,libglade-2.0 lib
 if test "x$HAVE_GNOME" = "xtrue"; then
 	AC_SUBST(GNOME_CFLAGS)
 	AC_SUBST(GNOME_LIBS)
+    AC_SUBST(GNOME_PREFIX)
 	OPTDIRS="$OPTDIRS gmdb2"
 fi

Index: src/gmdb2/Makefile.am
===================================================================
--- src/gmdb2/Makefile.am.orig
+++ src/gmdb2/Makefile.am
@@ -1,3 +1,4 @@
+prefix = @GNOME_PREFIX@
 SUBDIRS = help gladefiles pixmaps
 bin_PROGRAMS	= gmdb2
 include_HEADERS = gmdb.h
Index: src/gmdb2/gladefiles/Makefile.am
===================================================================
--- src/gmdb2/gladefiles/Makefile.am.orig
+++ src/gmdb2/gladefiles/Makefile.am
@@ -1,3 +1,4 @@
+prefix = @GNOME_PREFIX@
 gladedir = $(datadir)/gmdb/glade/

 glade_DATA =			\
Index: src/gmdb2/help/C/Makefile.am
===================================================================
--- src/gmdb2/help/C/Makefile.am.orig
+++ src/gmdb2/help/C/Makefile.am
@@ -1,3 +1,4 @@
+prefix = @GNOME_PREFIX@
 figs = \
 	figures/gmdb2_window.png \
 	figures/gmdb2_sql_window.png
Index: src/gmdb2/pixmaps/Makefile.am
===================================================================
--- src/gmdb2/pixmaps/Makefile.am.orig
+++ src/gmdb2/pixmaps/Makefile.am
@@ -1,3 +1,4 @@
+prefix = @GNOME_PREFIX@

 appicondir = $(datadir)/gmdb/glade


code:
Index: src/gmdb2/Makefile.am
===================================================================
--- src/gmdb2/Makefile.am.orig	2009-12-02 19:57:27.000000000 +0100
+++ src/gmdb2/Makefile.am	2009-12-02 19:57:27.000000000 +0100
@@ -1,7 +1,7 @@
 prefix = @GNOME_PREFIX@
 SUBDIRS = help gladefiles pixmaps
 bin_PROGRAMS	= gmdb2
-include_HEADERS = gmdb.h
+noinst_HEADERS = gmdb.h
 gmdb2_SOURCES = main2.c file.c util.c table.c query.c module.c macro.c report.c form.c info.c table_def.c table_data.c table_export.c debug.c sql.c schema.c prefs.c
 LIBS = -rdynamic $(GNOME_LIBS) @LIBS@ @LEXLIB@
 AM_CPPFLAGS	=	-I$(top_srcdir)/include \


code:
Index: src/libmdb/data.c
===================================================================
--- src/libmdb/data.c.orig
+++ src/libmdb/data.c
@@ -581,10 +581,13 @@ mdb_fetch_row(MdbTableDef *table)
 	do {
 		if (table->strategy==MDB_INDEX_SCAN) {

-			if (!mdb_index_find_next(table->mdbidx, table->scan_idx, table->chain, &pg, (guint16 *) &(table->cur_row))) {
+			guint16 tmp = (guint16)table->cur_row;
+			if (!mdb_index_find_next(table->mdbidx, table->scan_idx, table->chain, &pg, &tmp)) {
+				table->cur_row = tmp;
 				mdb_index_scan_free(table);
 				return 0;
 			}
+			table->cur_row = tmp;
 			mdb_read_pg(mdb, pg);
 		} else {
 			rows = mdb_pg_get_int16(mdb,fmt->row_count_offset);


code:
--- src/sql/lexer.l
+++ src/sql/lexer.l
@@ -21,6 +21,7 @@
 #include "mdbsql.h"
 #include "parser.h"

+extern int mdb_sql_yyinput(char *buf, int need);
 %}

 %%


code:
basename is char[33]

--- src/gmdb2/file.c
+++ src/gmdb2/file.c
@@ -99,7 +99,7 @@
 	} else {
 		strncpy(basename,file_path,32);
 	}
-	basename[33]='\0';
+	basename[32]='\0';
 	gnome_config_set_string("/gmdb/RecentFiles/menu_recent1.basename", basename);
 	gnome_config_set_string("/gmdb/RecentFiles/menu_recent1.filepath", file_path);
 	gnome_config_sync();


code:
--- src/gmdb2/info.c
+++ src/gmdb2/info.c
@@ -71,4 +71,6 @@
 	gtk_label_set_text(GTK_LABEL(label), tmpstr);

 	g_free(filepath);
+
+	return NULL;
 }


code:
--- src/util/prindex.c
+++ src/util/prindex.c
@@ -115,7 +115,7 @@
 void
 walk_index(MdbHandle *mdb, MdbIndex *idx)
 {
-	int start, len;
+	int start = 0, len = 0; // I seriously doubt this function does anything useful.
 	guint32 pg;
 	guint16 row;
 	MdbHandle *mdbidx;


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>mdbtools</Name>
        <Homepage>https://github.com/brianb/mdbtools</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <License>LGPLv2</License>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        MDB Tools is a suite of programs for accessing data stored in Microsoft Access databases
        <Description>mdbtools contains set of libraries and utilities for reading Microsoft Access database (MDB) files.</Description>
        <Archive sha1sum="33b746f29c1308909a1e82546ec24e8f835d461a" type="targz">https://github.com/brianb/mdbtools/archive/0.7.1.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>unixODBC-devel</Dependency>

            <Dependency>glib2-devel</Dependency>
            <Dependency>readline-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>mdbtools</Name>
        <RuntimeDependencies>
            <Dependency>unixODBC</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>readline</Dependency>
        </RuntimeDependencies>
        <Conflicts>
            <Package releaseTo="4">mdbtools-gui</Package>
        </Conflicts>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>mdbtools-devel</Name>
        Development files for mdbtools
        <RuntimeDependencies>
            <Dependency release="current">mdbtools</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-03-30</Date>
            <Version>0.7.1</Version>
            <Comment>Release Bump</Comment>
            <Name>Rebuild with new toolchain</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.7.1</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
         <Update release="1">
            <Date>2015-04-20</Date>
            <Version>0.7.1</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>mdbtools</Name>
        Microsoft Access veritabanı dosyalarında tutulan verilere erişmek için kullanılan araç ve kitaplıklar
        <Description xml:lang="tr">mdbtools Microsoft Access veritabanı dosyalarını (MDB) okumak için gereken araçları ve kütüphaneleri içermektedir.</Description>
    </Source>

    <Package>
        <Name>mdbtools-devel</Name>
        mdbtools için geliştirme dosyaları
    </Package>

    <Package>
        <Name>mdbtools-gui</Name>
        mdbtools veritabanı görüntüleyici
        <Description xml:lang="tr">mdbtools-gui paketi MDB Tools için gmdb2 isimli görsel arayüz içermektedir.</Description>
    </Package>
</PISI>


code:
#!/usr/bin/python
# -*- 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():
    autotools.configure("--prefix=/usr")

#def build():
    #autotools.make()

def build():
    autotools.make("check")

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodoc("AUTHORS", "NEWS","COPYING")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>mdds</Name>
        <Homepage>http://sourceforge.net/projects/hunspell</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>MIT</License>
        <Icon>mdds</Icon>
        <IsA>app:gui</IsA>
        Multi-dimensional data index algorithm
        <Description>A collection of multi-dimensional data structure and indexing algorithm.</Description>
        <Archive sha1sum="3d2e5fc0e00650cdd3c385ebacacb15bd364ea4f" type="tarbz2">http://kohei.us/files/mdds/src/mdds-1.2.2.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>boost-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>mdds</Name>
        <RuntimeDependencies>
            <Dependency>boost</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="data">/usr/share/pkgconfig</Path>
        </Files>
    </Package>

    <Package>
        <Name>mdds-devel</Name>
        mdds için geliştirme dosyaları
        <RuntimeDependencies>
            <Dependency release="current">mdds</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
        </Files>
    </Package>

    <History>
        <Update release="2">
            <Date>2017-04-11</Date>
            <Version>1.2.2</Version>
            <Comment>Version Bump Rebuild</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2017-01-01</Date>
            <Version>1.1.0</Version>
            <Comment>First release</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>mdds</Name>
        Multi-dimensional data index algorithm
        <Description xml:lang="en">A collection of multi-dimensional data structure and indexing algorithm.</Description>
    </Source>

    <Package>
        <Name>mdds-devel</Name>
        mdds için geliştirme dosyaları
    </Package>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt

from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools

def build():
    autotools.make("prefix=/usr")

    # remove bundled packages, use our system libraries
    shelltools.system("rm -rf thirdparty/{curl,freetype,glfw,harfbuzz,jbig2dec,jpeg,openjpeg,zlib}")

def install():
    autotools.rawInstall("DESTDIR=%s prefix=/usr" % get.installDIR())
    pisitools.remove("/usr/lib/*.a")

    pisitools.dodoc("README", "COPYING")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>mupdf</Name>
        <Homepage>https://mupdf.com/</Homepage>
        <Packager>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Packager>
        <License>AGPL3</License>
        <IsA>app:gui</IsA>
        Lightweight PDF and XPS viewer
        <Description>MuPDF is a lightweight open source software framework for viewing and converting PDF, XPS, and E-book documents.</Description>
        <Archive sha1sum="f782d36aaa896319207e81953e5a622201477b5b" type="targz">https://mupdf.com/downloads/mupdf-1.11-source.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>mesa-devel</Dependency>
            <Dependency>curl-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>libX11-devel</Dependency>
            <Dependency>libXext-devel</Dependency>
            <Dependency>harfbuzz-devel</Dependency>
            <Dependency>openjpeg-devel</Dependency>
            <Dependency>libXrandr-devel</Dependency>
            <Dependency>libXcursor-devel</Dependency>
            <Dependency>libXinerama-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>mupdf</Name>
        <RuntimeDependencies>
            <Dependency>mesa</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>libXext</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <Package>
        <Name>mupdf-devel</Name>
        Development files for mupdf
        <RuntimeDependencies>
            <Dependency release="current">mupdf</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="1">
            <Date>2017-07-13</Date>
            <Version>1.11</Version>
            <Comment>First Release</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>mupdf</Name>
        Hafif bir PDF ve XPS görüntüleyicisi
        <Description xml:lang="tr">MuPDF; PDF, XPS ve E-kitap belgelerini görüntüleme ve dönüştürme için hafif açık kaynaklı bir yazılım çerçevesidir.</Description>
    </Source>

    <Package>
        <Name>mupdf-devel</Name>
        mupdf için geliştirme dosyaları
    </Package>
</PISI>


code:
#!/usr/bin/python
# -*- 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 cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

def setup():
    shelltools.makedirs("build")
    shelltools.cd("build")
    cmaketools.configure("-DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 \
                          -DPODOFO_BUILD_SHARED=1 \
                          -DPODOFO_BUILD_STATIC=0 \
                          -DPODOFO_HAVE_JPEG_LIB=1 \
                          -DPODOFO_HAVE_PNG_LIB=1 \
                          -DPODOFO_HAVE_TIFF_LIB=1 \
                          -DWANT_FONTCONFIG=1 \
                          -DWANT_BOOST=1", sourceDir="..")
    #-DUSE_STLPORT=1"

def build():
    shelltools.cd("build")
    cmaketools.make()

def install():
    shelltools.cd("build")
    cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())

    shelltools.cd("..")
    pisitools.dodoc("AUTHORS", "COPYING", "COPYING.LIB", "ChangeLog", "NEWS", "TODO")
    pisitools.dohtml("README.html", "FAQ.html")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>podofo</Name>
        <Homepage>http://podofo.sourceforge.net</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv3</License>
        <License>LGPLv3</License>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        A library to work with the PDF file format
        <Description>The PoDoFo library is a free, portable C++ library which includes classes to parse PDF files and modify their contents into memory. The changes can be written back to disk easily. The parser can also be used to extract information from a PDF file (for example the parser could be used in a PDF viewer). Besides parsing PoDoFo includes also very simple classes to create your own PDF files. All classes are documented so it is easy to start writing your own application using PoDoFo.</Description>
        <Archive sha1sum="25c84a9e4815197e967bdb93fc2de8e1654a2812" type="targz">mirrors://sourceforge/podofo/podofo-0.9.5.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>cmake</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
            <Dependency>tiff-devel</Dependency>
            <Dependency>libpng-devel</Dependency>
            <Dependency>freetype-devel</Dependency>
            <Dependency>fontconfig-devel</Dependency>
            <Dependency>lua51-devel</Dependency>
            <Dependency>cppunit-devel</Dependency>
            <Dependency>libidn-devel</Dependency>
            <Dependency>boost-devel</Dependency>
            <Dependency>openssl-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>podofo</Name>
        <RuntimeDependencies>
            <Dependency>tiff</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>lua51</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libidn</Dependency>
            <Dependency>libpng</Dependency>
            <Dependency>openssl</Dependency>
            <Dependency>freetype</Dependency>

            <Dependency>fontconfig</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <Package>
        <Name>podofo-devel</Name>
        Development files for podofo
        <RuntimeDependencies>
            <Dependency release="current">podofo</Dependency>
            <Dependency>boost-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-04-04</Date>
            <Version>0.9.5</Version>
            <Comment>Rebuild with new toolchain</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.9.3</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-12-30</Date>
            <Version>0.9.3</Version>
            <Comment>First release</Comment>
            <Requires>
                <Action>reverseDependencyUpdate</Action>
            </Requires>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>podofo</Name>
        PDF dosya biçimiyle çalışmak için bir kütüphane
        Biblioteka do obsługi PDF-ów
        <Description xml:lang="tr">podofo, PDF dosyalarını ayıklamak ve düzenlemek için geliştirilmiş, ücretsiz bir C++ kütüphanesidir.</Description>
    </Source>

    <Package>
        <Name>podofo-devel</Name>
        podofo için geliştirme dosyaları
    </Package>
</PISI>


code:
#!/usr/bin/python
# -*- 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 get

def setup():
    pisitools.dosed("configure.ac", "-pedantic ", "")
    autotools.autoreconf("-fi")
    autotools.configure("--disable-static \
                         --with-swf")

    pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.doman("doc/pstoedit.1")
    pisitools.dohtml("doc/*.htm")

    pisitools.dodoc("doc/readme.txt")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>pstoedit</Name>
        <Homepage>http://www.pstoedit.net</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2+</License>
        <IsA>app:console</IsA>
        <IsA>library</IsA>
        Translates PostScript and PDF graphics into other vector formats
        <Description>Pstoedit converts PostScript and PDF files to various vector graphic formats. The resulting files can be edited or imported into various drawing packages.</Description>
        <Archive sha1sum="657f8f7070fde1432cd65a34b6b1c4b5b42f8b50" type="targz">mirrors://sourceforge/pstoedit/pstoedit-3.70.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>plotutils-devel</Dependency>
            <Dependency>gd-devel</Dependency>
            <Dependency>imagemagick-devel</Dependency>
            <Dependency>ghostscript-devel</Dependency>
            <Dependency>libzip-devel</Dependency>
        </BuildDependencies>
        <Patches>
        </Patches>
    </Source>

    <Package>
        <Name>pstoedit</Name>
        <RuntimeDependencies>
            <Dependency>libgcc</Dependency>
            <Dependency>imagemagick</Dependency>
            <Dependency>gd</Dependency>
            <Dependency>plotutils</Dependency>
            <Dependency>libzip</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="data">/usr/share/pstoedit</Path>
        </Files>
    </Package>

    <Package>
        <Name>pstoedit-devel</Name>
        Development files for pstoedit
        <RuntimeDependencies>
            <Dependency release="current">pstoedit</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/share/aclocal</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="1">
            <Date>2017-01-01</Date>
            <Version>3.70</Version>
            <Comment>First release.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>pstoedit</Name>
        Postscript ve PDF grafiklerini diğer vektor formatlarına dönüştüren bir araç
        <Description xml:lang="tr">Pstoedit, PDF ve Postscript dosyalarını diğer vektör formatlarına dönüştürür. Sonuçta oluşan düzenlenebilir ya da çeşitli çizim paketlerine eklenebilir.</Description>
    </Source>

    <Package>
        <Name>pstoedit-devel</Name>
        pstoedit için geliştirme dosyaları
    </Package>
</PISI>


code:
# -*- 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 get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools

def setup():
    autotools.configure("--disable-static")

def build():
    autotools.make()

def check():
    autotools.make("check")

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodoc("Artistic-2.0", "ChangeLog", "README", "TODO")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pardus.org.tr/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>qpdf</Name>
        <Homepage>http://qpdf.sourceforge.net</Homepage>
        <Packager>
            <Name>Marcin Bojara</Name>
            <Email>marcin@pisilinux.org</Email>
        </Packager>
        <IsA>app:console</IsA>
        <License>Artistic-2</License>
        A Content-Preserving PDF Transformation System
        <Description>A command-line program that does structural, content-preserving transformations on PDF files</Description>
        <Archive sha1sum="15ebe09d9b9ddd2309a67e4295693fcf82494e33" type="targz">mirrors://sourceforge/qpdf/qpdf-6.0.0.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libpcre-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>qpdf</Name>
        <RuntimeDependencies>
            <Dependency>zlib</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libpcre</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="executable">/usr/bin</Path>
        </Files>
    </Package>

    <Package>
        <Name>qpdf-devel</Name>
        Development files for qpdf
        <RuntimeDependencies>
            <Dependency>libpcre-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency release="current">qpdf</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-03-30</Date>
            <Version>6.0.0</Version>
            <Comment>Rebuild with new toolchain</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>6.0.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-23</Date>
            <Version>6.0.0</Version>
            <Comment>First release</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>qpdf</Name>
        A Content-Preserving PDF Transformation System
        <Description xml:lang="en">A command-line program that does structural, content-preserving transformations on PDF files</Description>
    </Source>

    <Package>
        <Name>qpdf-devel</Name>
        Development files for qpdf
        qpdf için geliştirme dosyaları
    </Package>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt

from pisi.actionsapi import qt5
from pisi.actionsapi import pisitools

def setup():
    qt5.configure("qpdfview.pro")

def build():
    qt5.make()

def install():
    qt5.install()

    pisitools.dodoc("CONTRIBUTORS",  "COPYING", "README")


code:
<PISI>
    <Source>
        <Name>qpdfview</Name>
        <Homepage>https://launchpad.net/qpdfview</Homepage>
        <Packager>
            <Name>Stefan Gronewold (groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Packager>
        <License>GNU GPL v2</License>
        <PartOf>office.misc</PartOf>
        qpdfview is a tabbed document viewer.
        <Description>It uses Poppler for PDF support, libspectre for PS support, DjVuLibre for DjVu support, CUPS for printing support and the Qt toolkit for its interface.</Description>
        <Archive sha1sum="aa6c8445c23ab9188b2dc2b7dccb500bd11f1c21" type="targz">https://launchpad.net/qpdfview/trunk/0.4.16/+download/qpdfview-0.4.16.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>djvu-devel</Dependency>
            <Dependency>cups-devel</Dependency>
            <Dependency>poppler-qt5-devel</Dependency>
            <Dependency>qt5-base-devel</Dependency>
            <Dependency>qt5-xmlpatterns-devel</Dependency>
            <Dependency>libspectre-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
           <Dependency>pkgconfig</Dependency>
           <Dependency>qt5-svg-devel</Dependency>
        </BuildDependencies>
    </Source>
    <Package>
        <Name>qpdfview</Name>
        qpdfview is a tabbed document viewer.
        <RuntimeDependencies>
            <Dependency>qt5-base</Dependency>
            <Dependency>cups</Dependency>
            <Dependency>djvu</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>libspectre</Dependency>
            <Dependency>poppler-qt5</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="data">/usr/share</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>
    <History>
        <Update release="3">
            <Date>2017-03-30</Date>
            <Version>0.4.16</Version>
            <Comment>Release Bump</Comment>
            <Name>Rebuild with new toolchain</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.4.14</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-11-04</Date>
            <Version>0.4.14</Version>
            <Comment>First release</Comment>
            <Name>Stefan Gronewold (groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>qpdfview</Name>
        <Summary xml:lang="en">qpdfview is a tabbed document viewer</Summary>
        <Description xml:lang="en">It uses Poppler for PDF support, libspectre for PS support, DjVuLibre for DjVu support, CUPS for printing support and the Qt toolkit for its interface</Description>
    </Source>
</PISI>


code:
# -*- 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")


code:
--- 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));


code:
--- 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)


code:
# 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


code:
--- 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


code:
--- 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


code:
--- 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])
+])])


code:
--- 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