From b04b61c7adf6ffb4a6aea6047a9404f03be5a25e Mon Sep 17 00:00:00 2001 From: milisbir Date: Tue, 25 Jul 2017 23:40:57 +0300 Subject: [PATCH] libe-book.paketlendi --- ...y-default-since-gperf-code-will-not-.patch | 29 +++++++++++++++++++ talimatname/genel/libe-book/boost159.patch | 24 +++++++++++++++ talimatname/genel/libe-book/talimat | 23 +++++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 talimatname/genel/libe-book/0001-Disable-werror-by-default-since-gperf-code-will-not-.patch create mode 100644 talimatname/genel/libe-book/boost159.patch create mode 100644 talimatname/genel/libe-book/talimat diff --git a/talimatname/genel/libe-book/0001-Disable-werror-by-default-since-gperf-code-will-not-.patch b/talimatname/genel/libe-book/0001-Disable-werror-by-default-since-gperf-code-will-not-.patch new file mode 100644 index 000000000..8e0f78ea8 --- /dev/null +++ b/talimatname/genel/libe-book/0001-Disable-werror-by-default-since-gperf-code-will-not-.patch @@ -0,0 +1,29 @@ +From 784c5168d1a62618e53619fd0a979363d596775a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Fridrich=20=C5=A0trba?= +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 + diff --git a/talimatname/genel/libe-book/boost159.patch b/talimatname/genel/libe-book/boost159.patch new file mode 100644 index 000000000..0508bf58b --- /dev/null +++ b/talimatname/genel/libe-book/boost159.patch @@ -0,0 +1,24 @@ +From b903d0dc91f482b348e5840e5a1df599ebd5e6f9 Mon Sep 17 00:00:00 2001 +From: David Tardon +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 + diff --git a/talimatname/genel/libe-book/talimat b/talimatname/genel/libe-book/talimat new file mode 100644 index 000000000..55c37234b --- /dev/null +++ b/talimatname/genel/libe-book/talimat @@ -0,0 +1,23 @@ +# Description: e-kitap formatları için kütüphane +# URL: http://sourceforge.net/projects/libebook/ +# Packager: milisarge +# Depends on: boost cppunit doxygen librevenge libxml2 + +name=libe-book +version=0.1.2 +release=1 +source=(https://sourceforge.net/projects/${name//-/}/files//libe-book-0.1.2/libe-book-$version.tar.xz + 0001-Disable-werror-by-default-since-gperf-code-will-not-.patch + boost159.patch) + +build() { + cd ${name}-${version} + # 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 +}