libe-book

This commit is contained in:
milisbir 2018-01-28 08:58:09 +02:00
parent 0c631afc8f
commit 2384f2cdc9
3 changed files with 9 additions and 67 deletions

View File

@ -1,29 +0,0 @@
From 784c5168d1a62618e53619fd0a979363d596775a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fridrich=20=C5=A0trba?= <fridrich.strba@bluewin.ch>
Date: Sun, 3 Jul 2016 21:43:25 +0200
Subject: [PATCH] Disable werror by default since gperf code will not build
with gcc 6
---
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 06e9afb..6e00ed5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -223,9 +223,9 @@ AS_IF([test "x$platform_win32" = "xyes"],
# Check for cflags
# ================
AC_ARG_ENABLE([werror],
- [AS_HELP_STRING([--disable-werror], [Treat all warnings as errors, usefull for development])],
+ [AS_HELP_STRING([--enable-werror], [Treat all warnings as errors, usefull for development])],
[enable_werror="$enableval"],
- [enable_werror=yes]
+ [enable_werror=no]
)
AS_IF([test x"$enable_werror" != "xno"], [
CFLAGS="$CFLAGS -Werror"
--
2.10.2

View File

@ -1,24 +0,0 @@
From b903d0dc91f482b348e5840e5a1df599ebd5e6f9 Mon Sep 17 00:00:00 2001
From: David Tardon <dtardon@redhat.com>
Date: Sun, 30 Aug 2015 13:57:14 +0200
Subject: [PATCH] fix build with boost 1.59
---
src/lib/Makefile.am | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
index 9931a22..35d35be 100644
--- a/src/lib/Makefile.am
+++ b/src/lib/Makefile.am
@@ -64,6 +64,7 @@ libe_book_@EBOOK_MAJOR_VERSION@_@EBOOK_MINOR_VERSION@_la_LDFLAGS = $(version_inf
libe_book_@EBOOK_MAJOR_VERSION@_@EBOOK_MINOR_VERSION@_la_SOURCES = \
EBOOKDocument.cpp
+libe_book_internal_la_CPPFLAGS = -DBOOST_ERROR_CODE_HEADER_ONLY
libe_book_internal_la_SOURCES = \
EBOOKBitStream.cpp \
EBOOKBitStream.h \
--
2.6.2

View File

@ -1,23 +1,18 @@
# Tanım: e-kitap formatları için kütüphane
# URL: http://sourceforge.net/projects/libebook/
# Paketçi: milisarge
# Gerekler: boost cppunit doxygen librevenge libxml2
# Gerekler: boost cppunit doxygen librevenge libxml2 liblangtag
# Grup: ofis_düzenleyici
isim=libe-book
surum=0.1.2
surum=0.1.3
devir=1
kaynak=(https://sourceforge.net/projects/${name//-/}/files//libe-book-0.1.2/libe-book-$surum.tar.xz
0001-Disable-werror-by-default-since-gperf-code-will-not-.patch
boost159.patch)
kaynak=(https://sourceforge.net/projects/libebook/files/libe-book-$surum/libe-book-$surum.tar.xz)
derle() {
cd ${isim}-${surum}
# https://sourceforge.net/p/libebook/code/ci/784c5168d1a62618e53619fd0a979363d596775a/
patch -Np1 -i ../0001-Disable-werror-by-default-since-gperf-code-will-not-.patch
patch -Np1 -i ../boost159.patch
autoreconf -vi
./configure --prefix=/usr #--disable-werror
make
make check
make DESTDIR=$PKG install
cd ${isim}-${surum}
./configure --prefix=/usr
make
make check
make DESTDIR=$PKG install
}