* Re: [devel] ophan liblasi pls (was: liblasi-1.0.4-alt2: rebuild failed [3])
2006-06-05 16:19 ` [devel] ophan liblasi pls (was: liblasi-1.0.4-alt2: rebuild failed [3]) Michael Shigorin
@ 2006-06-05 17:04 ` Valery V. Inozemtsev
2006-06-05 17:17 ` Igor Zubkov
1 sibling, 0 replies; 6+ messages in thread
From: Valery V. Inozemtsev @ 2006-06-05 17:04 UTC (permalink / raw)
To: devel, incoming
[-- Attachment #1: Type: text/plain, Size: 1044 bytes --]
> Боюсь, в orphaned, если никому не понадобится работающая
> библиотека для юникодной печати (наверное, один из немногих
> рабочих генераторов unicode postscript, которые видел).
>
> > 'LASi::PostscriptDocument::' on member 'pangoContext' drawGlyph.cpp:109:
> > error: invalid conversion from 'int (*)(FT_Vector*, void*)' to 'int
> > (*)(const FT_Vector*, void*)' drawGlyph.cpp:109: error: invalid
> > conversion from 'int (*)(FT_Vector*, FT_Vector*, void*)' to 'int
> > (*)(const FT_Vector*, const FT_Vector*, void*)' drawGlyph.cpp:109: error:
> > invalid conversion from 'int (*)(FT_Vector*, FT_Vector*, FT_Vector*,
> > void*)' to 'int (*)(const FT_Vector*, const FT_Vector*, const FT_Vector*,
> > void*)' drawGlyph.cpp: In function 'std::ostream&
> > operator<<(std::ostream&, const FT_Vector&)': drawGlyph.cpp:50: warning:
> > control reaches end of non-void function drawGlyph.cpp: In function 'int
> > xTo(const FT_Vector*, void*, const char*)': drawGlyph.cpp:80: warning:
это легко лечится
--
Valery V. Inozemtsev
[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [devel] ophan liblasi pls (was: liblasi-1.0.4-alt2: rebuild failed [3])
2006-06-05 16:19 ` [devel] ophan liblasi pls (was: liblasi-1.0.4-alt2: rebuild failed [3]) Michael Shigorin
2006-06-05 17:04 ` Valery V. Inozemtsev
@ 2006-06-05 17:17 ` Igor Zubkov
2006-06-05 18:43 ` Michael Shigorin
1 sibling, 1 reply; 6+ messages in thread
From: Igor Zubkov @ 2006-06-05 17:17 UTC (permalink / raw)
To: devel
[-- Attachment #1.1: Type: text/plain, Size: 639 bytes --]
В сообщении от 5 июня 2006 19:19 Michael Shigorin написал(a):
> On Mon, Jun 05, 2006 at 12:19:08AM +0400, QA Team Robot wrote:
> > Package: liblasi-1.0.4-alt2
> > Packager: Michael Shigorin <mike@altlinux>
> > Status: rebuild failed.
>
> Боюсь, в orphaned, если никому не понадобится работающая
> библиотека для юникодной печати (наверное, один из немногих
> рабочих генераторов unicode postscript, которые видел).
Обновлённый спек прилагается. Патчи тоже. Сорсы тянуть --
http://ftp.debian.org/debian/pool/main/l/lasi/lasi_1.0.5.orig.tar.gz
p.s.: лень?
p.s.2: у меня собралось, но я не тестировал.
--
Disturbed - Ten Thousand Fists
[-- Attachment #1.2: liblasi.spec --]
[-- Type: text/plain, Size: 2817 bytes --]
%define origname lasi
Name: lib%origname
Version: 1.0.5
Release: alt1
Summary: C++ stream output interface for creating Postscript documents
License: LGPL 2
Group: System/Libraries
Url: http://eyegene.ophthy.med.umich.edu/lasi
Source0: %url/download/%origname-%version.tar.gz
# stolen from debian
Patch0: outline-funcs-prototypes.patch
Packager: Michael Shigorin <mike@altlinux.org>
# Automatically added by buildreq on Thu Feb 16 2006
BuildRequires: fontconfig-devel freetype2-devel gcc-c++ glib2-devel glibc-devel-static hostinfo libpango-devel libstdc++-devel pkgconfig
%description
libLASi is a library written by Larry Siden that provides
a C++ stream output interface ( with operator << ) for creating
Postscript documents that can contain characters from any of the
scripts and symbol blocks supported in Unicode and by Owen
Taylor's Pango layout engine.
The library accomodates right-to-left scripts such as Arabic
and Hebrew as easily as left-to-right scripts. Indic and
Indic-derived Complex Text Layout (CTL) scripts, such as
Devanagari, Thai, Lao, and Tibetan are supported to the extent
provided by Pango and by the OpenType fonts installed on your
system. All of this is provided without need for any special
configuration or layout calculation on the programmer's part.
Although the capability to produce Unicode-based multilingual
Postscript documents exists in large Open Source application
framework libraries such as GTK+, QT, and KDE, libLASi was
designed for projects which require the ability to produce
Postscript independent of any one application framework.
%package devel
Summary: Development part of libLASi
License: GPL
Group: Development/C++
%description devel
libLASi is a library that provides a C++ stream output interface
for creating Postscript documents.
This is the development environment to compile libLASi apps.
%prep
%setup -q -n %origname-%version
%patch0 -p1
%build
autoreconf -fisv
%configure
%make_build libLASi_la_LIBADD="-lpango-1.0 -lpangoft2-1.0"
%install
install -dm755 %buildroot{%_libdir/pkgconfig,%_includedir}/
%makeinstall
rm %buildroot%_libdir/libLASi.a
%post -p %post_ldconfig
%postun -p %postun_ldconfig
%files
%_libdir/*.so.*
%doc AUTHORS ChangeLog NEWS README
%files devel
%_libdir/*.so
%_libdir/pkgconfig/*.pc
%_includedir/*
# TODO:
# - Makefile patch to link against libpango too
# - conditional static library build? (off by default, if ever)
%changelog
* Mon Jun 05 2006 Igor Zubkov <icesik@altlinux.ru> 1.0.5-alt1
-
* Sun Mar 26 2006 Michael Shigorin <mike@altlinux.org> 1.0.4-alt2
- fixed build with --as-needed, kind of (better do it properly)
* Fri Feb 17 2006 Michael Shigorin <mike@altlinux.org> 1.0.4-alt1
- built for ALT Linux
[-- Attachment #1.3: outline-funcs-prototypes.patch --]
[-- Type: text/x-diff, Size: 1561 bytes --]
diff -Nur lasi-1.0.5/src/drawGlyph.cpp lasi-1.0.5.new/src/drawGlyph.cpp
--- lasi-1.0.5/src/drawGlyph.cpp 2006-05-01 20:05:55.000000000 +0200
+++ lasi-1.0.5.new/src/drawGlyph.cpp 2006-06-03 15:12:27.377345856 +0200
@@ -81,7 +81,7 @@
return 0;
}
-static int moveTo(FT_Vector* pftVec, void* data) {
+static int moveTo(const FT_Vector* pftVec, void* data) {
StateOfDrawGlyph* const state = reinterpret_cast<StateOfDrawGlyph* const>(data);
state->os() << (state->isNewPath() ? "newpath" : "closepath") << endl;
state->setNewPathFalse();
@@ -89,19 +89,19 @@
return 0;
}
-static int lineTo(FT_Vector* pftVec, void* data) {
+static int lineTo(const FT_Vector* pftVec, void* data) {
xTo(pftVec, data, "lineto");
return 0;
}
-static int cubicTo(FT_Vector* ctrlPt1, FT_Vector* ctrlPt2, FT_Vector* pEndPt, void* data) {
+static int cubicTo(const FT_Vector* ctrlPt1, const FT_Vector* ctrlPt2, const FT_Vector* pEndPt, void* data) {
StateOfDrawGlyph* const state = reinterpret_cast<StateOfDrawGlyph* const>(data);
state->os() << *ctrlPt1 << " " << *ctrlPt2 << " " << *pEndPt << " curveto" << endl;
state->setStartPt(*pEndPt);
return 0;
}
-static int conicTo(FT_Vector* pCtrlPt, FT_Vector* pEndPt, void* data) {
+static int conicTo(const FT_Vector* pCtrlPt, const FT_Vector* pEndPt, void* data) {
StateOfDrawGlyph* const state = reinterpret_cast<StateOfDrawGlyph* const>(data);
FT_Vector ctrlPt1 = (state->startPt() + 2 * *pCtrlPt) / 3;
FT_Vector ctrlPt2 = (*pEndPt + 2 * *pCtrlPt) / 3;
[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread