works por deps fixed...
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#!/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 shelltools
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
|
||||
def setup():
|
||||
autotools.configure('--disable-static')
|
||||
|
||||
# Disable rpath
|
||||
pisitools.dosed("libtool", "^hardcode_libdir_flag_spec=.*", "hardcode_libdir_flag_spec=\"\"")
|
||||
pisitools.dosed("libtool", "^runpath_var=LD_RUN_PATH", "runpath_var=DIE_RPATH_DIE")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
autotools.install()
|
||||
|
||||
for lang in shelltools.ls("debian/po/*.po"):
|
||||
pisitools.domo(lang, shelltools.baseName(lang).replace(".po", ""), "libpaper.mo")
|
||||
|
||||
pisitools.dodoc("README", "ChangeLog")
|
||||
@@ -0,0 +1,12 @@
|
||||
diff -up libpaper-1.1.23+nmu1/lib/paperspecs.BAD libpaper-1.1.23+nmu1/lib/paperspecs
|
||||
--- libpaper-1.1.23+nmu1/lib/paperspecs.BAD 2008-08-22 16:49:16.000000000 -0400
|
||||
+++ libpaper-1.1.23+nmu1/lib/paperspecs 2008-08-22 16:49:25.000000000 -0400
|
||||
@@ -40,7 +40,7 @@ c5 162 229 mm
|
||||
c6 114 162 mm
|
||||
c7 81 114 mm
|
||||
c8 57 81 mm
|
||||
-DL 312 624
|
||||
+DL 110 220 mm
|
||||
Comm10 297 684
|
||||
Monarch 279 540
|
||||
archE 2592 3456
|
||||
@@ -0,0 +1,80 @@
|
||||
diff -ru libpaper-1.1.23.orig/lib/paper.c libpaper-1.1.23/lib/paper.c
|
||||
--- libpaper-1.1.23.orig/lib/paper.c 2008-08-12 13:20:48.000000000 +0100
|
||||
+++ libpaper-1.1.23/lib/paper.c 2008-08-12 14:26:44.000000000 +0100
|
||||
@@ -22,6 +22,9 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
+#include <locale.h>
|
||||
+#include <langinfo.h>
|
||||
+
|
||||
#include "paper.h"
|
||||
|
||||
struct paper {
|
||||
@@ -110,6 +113,27 @@
|
||||
}
|
||||
|
||||
const char* defaultpapername(void) {
|
||||
+#if defined(LC_PAPER) && defined(_GNU_SOURCE)
|
||||
+
|
||||
+#define NL_PAPER_GET(x) \
|
||||
+ ((union { char *string; unsigned int word; })nl_langinfo(x)).word
|
||||
+
|
||||
+#define PT_TO_MM(v) (unsigned int)((v * 2.54 * 10 / 72) + 0.5)
|
||||
+
|
||||
+ const struct paper* pp;
|
||||
+
|
||||
+ unsigned int w = NL_PAPER_GET(_NL_PAPER_WIDTH);
|
||||
+ unsigned int h = NL_PAPER_GET(_NL_PAPER_HEIGHT);
|
||||
+
|
||||
+ for (pp = paperfirst(); pp; pp = papernext(pp)) {
|
||||
+ if (
|
||||
+ PT_TO_MM(pp->pswidth) == w &&
|
||||
+ PT_TO_MM(pp->psheight) == h
|
||||
+ ) {
|
||||
+ return pp->name;
|
||||
+ }
|
||||
+ }
|
||||
+#endif
|
||||
return PAPERSIZE;
|
||||
}
|
||||
|
||||
diff -ru libpaper-1.1.23.orig/man/paperconf.1.in libpaper-1.1.23/man/paperconf.1.in
|
||||
--- libpaper-1.1.23.orig/man/paperconf.1.in 2008-08-12 13:20:48.000000000 +0100
|
||||
+++ libpaper-1.1.23/man/paperconf.1.in 2008-08-12 14:34:06.000000000 +0100
|
||||
@@ -48,10 +48,12 @@
|
||||
.B @PAPERSIZEVAR@
|
||||
environment variable, at the contents of the file specified by the
|
||||
.B @PAPERCONFVAR@
|
||||
-environment variable, at the contects of
|
||||
+environment variable, at the contents of the file
|
||||
.B @PAPERCONF@
|
||||
-or by using
|
||||
-.B letter
|
||||
+, consulting the values controlled by the
|
||||
+.B LC_PAPER
|
||||
+locale setting, or by using
|
||||
+.B @PAPERSIZE@
|
||||
as a fall-back value if none of the other alternatives are successful.
|
||||
By default, width and height of the paper are printed in PostScript points.
|
||||
.SH OPTIONS
|
||||
diff -ru libpaper-1.1.23.orig/src/paperconf.c libpaper-1.1.23/src/paperconf.c
|
||||
--- libpaper-1.1.23.orig/src/paperconf.c 2008-08-12 13:20:48.000000000 +0100
|
||||
+++ libpaper-1.1.23/src/paperconf.c 2008-08-12 14:13:33.000000000 +0100
|
||||
@@ -13,6 +13,7 @@
|
||||
#include <errno.h>
|
||||
|
||||
#include <paper.h>
|
||||
+#include <locale.h>
|
||||
|
||||
|
||||
/* needed for GNU/Hurd */
|
||||
@@ -99,6 +100,8 @@
|
||||
|
||||
const char* progname;
|
||||
|
||||
+ setlocale(LC_ALL, "");
|
||||
+
|
||||
progname = strrchr(*argv, '/');
|
||||
if (progname) {
|
||||
++progname;
|
||||
@@ -0,0 +1,2 @@
|
||||
# this is the default papersize for libpaper
|
||||
a4
|
||||
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>libpaper</Name>
|
||||
<Homepage>http://packages.debian.org/unstable/source/libpaper</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv2</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>Library for handling paper characteristics</Summary>
|
||||
<Description>Libpaper is a programming library for handling paper characteristics.</Description>
|
||||
<Archive sha1sum="6927f75d126373d32d89751d2a7fe3e99cc9b4a1" type="targz">http://ftp.debian.org/debian/pool/main/libp/libpaper/libpaper_1.1.24.tar.gz</Archive>
|
||||
<Patches>
|
||||
<Patch level="1">libpaper-1.1.23-debianbug475683.patch</Patch>
|
||||
<Patch level="1">libpaper-useglibcfallback.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>libpaper</Name>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="executable">/usr/sbin</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="config">/etc/</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="localedata">/usr/share/locale</Path>
|
||||
</Files>
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile owner="root" permission="0644" target="/etc/papersize">papersize</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>libpaper-devel</Name>
|
||||
<Summary>Development files for libpaper</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">libpaper</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="man">/usr/share/man/man3</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="2">
|
||||
<Date>2014-05-21</Date>
|
||||
<Version>1.1.24</Version>
|
||||
<Comment>rebuild</Comment>
|
||||
<Name>Kamil Atlı</Name>
|
||||
<Email>suvarice@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2010-10-13</Date>
|
||||
<Version>1.1.24</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Pisi Linux Admins</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>libpaper</Name>
|
||||
<Summary xml:lang="tr">Kağıt özelliklerini düzenlemek için kitaplık</Summary>
|
||||
<Description xml:lang="tr">libpaper, kağıt özelliklerini düzenlemek için bir programlama kitaplığıdır.</Description>
|
||||
<Description xml:lang="es">Libpaper es una librería de programación para manejar características de papel.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>libpaper-devel</Name>
|
||||
<Summary xml:lang="tr">libpaper için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user