aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/fbreader
diff options
context:
space:
mode:
authorsat <sat@FreeBSD.org>2007-04-22 01:18:45 +0800
committersat <sat@FreeBSD.org>2007-04-22 01:18:45 +0800
commit2fca72833d9722d79b422c5ec62fb3c62dbb466c (patch)
treed0409dc2af959fc5702927ab2cff5fae2cf1995f /deskutils/fbreader
parent41b3770a3cdd058c38ca668970860a6500162f4e (diff)
downloadfreebsd-ports-gnome-2fca72833d9722d79b422c5ec62fb3c62dbb466c.tar.gz
freebsd-ports-gnome-2fca72833d9722d79b422c5ec62fb3c62dbb466c.tar.zst
freebsd-ports-gnome-2fca72833d9722d79b422c5ec62fb3c62dbb466c.zip
Add port deskutils/fbreader:
FBReader is a book reader. Main features: * Supported formats: fb2, HTML, CHM, plucker, Palmdoc, zTxt, TCR, RTF, OEB, OpenReader, mobipocket, plain text. * Direct reading from tar, zip, gzip and bzip2 archives. * Supported encodings: utf-8, us-ascii, windows-1251, windows-1252, koi8-r, ibm866, iso-8859-*, Big5, GBK. * Automatically generated contents table. * Embedded images support. * Footnotes/hyperlinks support. * Position indicator. * Keeps the last open book and the last read positions for all opened books between runs. * List of last opened books. * Automatic hyphenations. Liang's algorithm is used. Patterns for Czech, English, Esperanto, French, German and Russian are included in the current version. * Text search. * Full-screen mode. * Screen rotation by 90, 180 and 270 degrees. WWW: http://only.mawhrin.net/fbreader/
Diffstat (limited to 'deskutils/fbreader')
-rw-r--r--deskutils/fbreader/Makefile41
-rw-r--r--deskutils/fbreader/distinfo3
-rw-r--r--deskutils/fbreader/files/patch-zlibrary__src__unix__iconv__IConvEncodingConverter.cpp20
-rw-r--r--deskutils/fbreader/files/patch-zlibrary__src__unix__time__ZLUnixTime.cpp22
-rw-r--r--deskutils/fbreader/pkg-descr21
-rw-r--r--deskutils/fbreader/pkg-plist79
6 files changed, 186 insertions, 0 deletions
diff --git a/deskutils/fbreader/Makefile b/deskutils/fbreader/Makefile
new file mode 100644
index 000000000000..f50379543be7
--- /dev/null
+++ b/deskutils/fbreader/Makefile
@@ -0,0 +1,41 @@
+# New ports collection makefile for: fbreader
+# Date created: 29 March 2007
+# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= fbreader
+DISTVERSIONPREFIX= sources-
+DISTVERSION= 0.8.2a
+CATEGORIES= deskutils
+MASTER_SITES= http://only.mawhrin.net/fbreader/ CENKES
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= infofarmer@FreeBSD.org
+COMMENT= RSS feed reader for the text console
+
+LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2 \
+ enca.5:${PORTSDIR}/converters/enca
+
+USE_QT_VER= 4
+QT_COMPONENTS= gui corelib
+USE_GMAKE= yes
+CFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lcompat
+MAKE_ENV+= TARGET_ARCH=desktop UI_TYPE=qt4 TARGET_STATUS=release \
+ ROOTDIR=${WRKSRC} EXTERNALINCLUDE="-I${LOCALBASE}/include" \
+ LDFLAGS="${LDFLAGS}" INSTALLDIR="${PREFIX}" LIBDIR=${PREFIX}/lib \
+ BUILD_SHARED_LIBRARY=no
+MAKE_ARGS+= MAKE=gmake
+WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
+INSTALL_TARGET= do_install
+
+post-patch:
+ @${REINPLACE_CMD} -e '/^LDFLAGS/s|=|+=|' ${WRKSRC}/makefiles/arch/*mk
+ @${FIND} ${WRKSRC} -name Makefile|\
+ ${XARGS} ${REINPLACE_CMD} -e 's/make /gmake /g'
+ @${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g'\
+ ${WRKSRC}/fbreader/desktop/Makefile
+
+.include <bsd.port.mk>
diff --git a/deskutils/fbreader/distinfo b/deskutils/fbreader/distinfo
new file mode 100644
index 000000000000..516e4e1c334c
--- /dev/null
+++ b/deskutils/fbreader/distinfo
@@ -0,0 +1,3 @@
+MD5 (fbreader-sources-0.8.2a.tgz) = 3b4944bf0d37b42249bef84d59918ce0
+SHA256 (fbreader-sources-0.8.2a.tgz) = 4e505820b150ae35a40c39a3d2aeb7a8dcb6bd9b599055c40f566d874e4d1c82
+SIZE (fbreader-sources-0.8.2a.tgz) = 833247
diff --git a/deskutils/fbreader/files/patch-zlibrary__src__unix__iconv__IConvEncodingConverter.cpp b/deskutils/fbreader/files/patch-zlibrary__src__unix__iconv__IConvEncodingConverter.cpp
new file mode 100644
index 000000000000..694e9add27a8
--- /dev/null
+++ b/deskutils/fbreader/files/patch-zlibrary__src__unix__iconv__IConvEncodingConverter.cpp
@@ -0,0 +1,20 @@
+--- ./zlibrary/src/unix/iconv/IConvEncodingConverter.cpp.orig Tue Apr 17 22:53:30 2007
++++ ./zlibrary/src/unix/iconv/IConvEncodingConverter.cpp Sat Apr 21 18:50:56 2007
+@@ -87,7 +87,7 @@
+ char *out = (char*)dst.data() + oldLength;
+
+ iconvlabel:
+- iconv(myIConverter, &in, &inSize, &out, &outSize);
++ iconv(myIConverter, (const char**)&in, &inSize, &out, &outSize);
+ if (inSize != 0) {
+ if (myBuffer.empty()) {
+ myBuffer.append(in, inSize);
+@@ -126,7 +126,7 @@
+ inSize = 1;
+ outSize = 3;
+ inBuffer[0] = i;
+- iconv(myIConverter, &in, &inSize, &out, &outSize);
++ iconv(myIConverter, (const char**)&in, &inSize, &out, &outSize);
+ if (inSize == 0) {
+ ZLUnicodeUtil::Ucs2Char ch;
+ ZLUnicodeUtil::firstChar(ch, outBuffer);
diff --git a/deskutils/fbreader/files/patch-zlibrary__src__unix__time__ZLUnixTime.cpp b/deskutils/fbreader/files/patch-zlibrary__src__unix__time__ZLUnixTime.cpp
new file mode 100644
index 000000000000..810e4db25d63
--- /dev/null
+++ b/deskutils/fbreader/files/patch-zlibrary__src__unix__time__ZLUnixTime.cpp
@@ -0,0 +1,22 @@
+--- ./zlibrary/src/unix/time/ZLUnixTime.cpp.orig Tue Apr 17 22:53:30 2007
++++ ./zlibrary/src/unix/time/ZLUnixTime.cpp Sat Apr 21 19:00:15 2007
+@@ -18,15 +18,14 @@
+ * 02110-1301, USA.
+ */
+
+-#include <sys/timeb.h>
+-#include <time.h>
++#include <sys/time.h>
+
+ #include "ZLUnixTime.h"
+
+ ZLTime ZLUnixTimeManager::currentTime() const {
+- struct timeb timeB;
+- ftime(&timeB);
+- return ZLTime(timeB.time, timeB.millitm);
++ struct timeval timeB;
++ gettimeofday(&timeB,NULL);
++ return ZLTime(timeB.tv_sec, timeB.tv_usec/1000);
+ }
+
+ short ZLUnixTimeManager::hoursBySeconds(long seconds) const {
diff --git a/deskutils/fbreader/pkg-descr b/deskutils/fbreader/pkg-descr
new file mode 100644
index 000000000000..358a3c4cc87e
--- /dev/null
+++ b/deskutils/fbreader/pkg-descr
@@ -0,0 +1,21 @@
+FBReader is a book reader. Main features:
+* Supported formats: fb2, HTML, CHM, plucker, Palmdoc, zTxt, TCR, RTF,
+ OEB, OpenReader, mobipocket, plain text.
+* Direct reading from tar, zip, gzip and bzip2 archives.
+* Supported encodings: utf-8, us-ascii, windows-1251, windows-1252,
+ koi8-r, ibm866, iso-8859-*, Big5, GBK.
+* Automatically generated contents table.
+* Embedded images support.
+* Footnotes/hyperlinks support.
+* Position indicator.
+* Keeps the last open book and the last read positions for all opened
+ books between runs.
+* List of last opened books.
+* Automatic hyphenations. Liang's algorithm is used. Patterns for Czech,
+ English, Esperanto, French, German and Russian are included in the
+ current version.
+* Text search.
+* Full-screen mode.
+* Screen rotation by 90, 180 and 270 degrees.
+
+WWW: http://only.mawhrin.net/fbreader/
diff --git a/deskutils/fbreader/pkg-plist b/deskutils/fbreader/pkg-plist
new file mode 100644
index 000000000000..b6e032aee1e1
--- /dev/null
+++ b/deskutils/fbreader/pkg-plist
@@ -0,0 +1,79 @@
+bin/FBReader
+share/FBReader/default/config.xml
+share/FBReader/default/external.xml
+share/FBReader/default/keymap.xml
+share/FBReader/default/styles.xml
+share/FBReader/formats/html/html.ent
+share/FBReader/formats/xhtml/xhtml-lat1.ent
+share/FBReader/formats/xhtml/xhtml-special.ent
+share/FBReader/formats/xhtml/xhtml-symbol.ent
+share/FBReader/help/MiniHelp.fb2
+share/FBReader/hyphenationPatterns.zip
+share/applications/FBReader.desktop
+share/pixmaps/FBReader/TOCHANGE
+share/pixmaps/FBReader/addbook.png
+share/pixmaps/FBReader/bookinfo.png
+share/pixmaps/FBReader/books.png
+share/pixmaps/FBReader/contents.png
+share/pixmaps/FBReader/fb2.png
+share/pixmaps/FBReader/find.png
+share/pixmaps/FBReader/findnext.png
+share/pixmaps/FBReader/findprev.png
+share/pixmaps/FBReader/folder.png
+share/pixmaps/FBReader/help.png
+share/pixmaps/FBReader/history.png
+share/pixmaps/FBReader/home.png
+share/pixmaps/FBReader/html.png
+share/pixmaps/FBReader/leftarrow.png
+share/pixmaps/FBReader/mobipocket.png
+share/pixmaps/FBReader/oeb.png
+share/pixmaps/FBReader/openreader.png
+share/pixmaps/FBReader/palm.png
+share/pixmaps/FBReader/plucker.png
+share/pixmaps/FBReader/rightarrow.png
+share/pixmaps/FBReader/rotatescreen.png
+share/pixmaps/FBReader/rtf.png
+share/pixmaps/FBReader/settings.png
+share/pixmaps/FBReader/tcr.png
+share/pixmaps/FBReader/tree-authorinfo.png
+share/pixmaps/FBReader/tree-bookinfo.png
+share/pixmaps/FBReader/tree-order.png
+share/pixmaps/FBReader/tree-remove.png
+share/pixmaps/FBReader/unknown.png
+share/pixmaps/FBReader/weasel.png
+share/pixmaps/FBReader/zipfolder.png
+share/pixmaps/FBReader.png
+share/zlibrary/encodings/Big5
+share/zlibrary/encodings/Encodings.xml
+share/zlibrary/encodings/GBK
+share/zlibrary/encodings/IBM866
+share/zlibrary/encodings/ISO-8859-1
+share/zlibrary/encodings/ISO-8859-10
+share/zlibrary/encodings/ISO-8859-11
+share/zlibrary/encodings/ISO-8859-13
+share/zlibrary/encodings/ISO-8859-14
+share/zlibrary/encodings/ISO-8859-15
+share/zlibrary/encodings/ISO-8859-16
+share/zlibrary/encodings/ISO-8859-2
+share/zlibrary/encodings/ISO-8859-3
+share/zlibrary/encodings/ISO-8859-4
+share/zlibrary/encodings/ISO-8859-5
+share/zlibrary/encodings/ISO-8859-6
+share/zlibrary/encodings/ISO-8859-7
+share/zlibrary/encodings/ISO-8859-8
+share/zlibrary/encodings/ISO-8859-9
+share/zlibrary/encodings/KOI8-R
+share/zlibrary/encodings/windows-1251
+share/zlibrary/encodings/windows-1252
+share/zlibrary/keynames-qt4.xml
+@dirrm share/FBReader/default
+@dirrm share/FBReader/formats/html
+@dirrm share/FBReader/formats/xhtml
+@dirrm share/FBReader/formats
+@dirrm share/FBReader/help
+@dirrm share/FBReader
+@dirrm share/pixmaps/FBReader
+@dirrm share/zlibrary/encodings
+@dirrm share/zlibrary
+@dirrmtry share/applications
+@dirrmtry share/pixmaps