diff --git a/print/Makefile b/print/Makefile index 39dda97cd6a9..33a3e82902bc 100644 --- a/print/Makefile +++ b/print/Makefile @@ -223,6 +223,7 @@ SUBDIR += scribus-devel SUBDIR += sgf2tex SUBDIR += shrinkpdf + SUBDIR += simple-fb2-reader SUBDIR += splix SUBDIR += system-config-printer SUBDIR += t1utils diff --git a/print/simple-fb2-reader/Makefile b/print/simple-fb2-reader/Makefile new file mode 100644 index 000000000000..98c0fc0c5cc0 --- /dev/null +++ b/print/simple-fb2-reader/Makefile @@ -0,0 +1,22 @@ +# Created by: Alexey Dokuchaev +# $FreeBSD$ + +PORTNAME= simple-fb2-reader +PORTVERSION= 1.1.3 +CATEGORIES= print + +MAINTAINER= danfe@FreeBSD.org +COMMENT= Simple FB2 format book reader + +LICENSE= GPLv3+ + +LIB_DEPENDS= libzip.so:archivers/libzip + +USES= cmake desktop-file-utils gettext-runtime gnome pkgconfig \ + shared-mime-info sqlite +USE_GITHUB= yes +GH_ACCOUNT= Cactus64k +USE_GNOME= cairo gdkpixbuf2 gtk30 libxml2 +INSTALLS_ICONS= yes + +.include diff --git a/print/simple-fb2-reader/distinfo b/print/simple-fb2-reader/distinfo new file mode 100644 index 000000000000..0b2e19970761 --- /dev/null +++ b/print/simple-fb2-reader/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1565566451 +SHA256 (Cactus64k-simple-fb2-reader-1.1.3_GH0.tar.gz) = d3a8b94dee6e537d5733d26bf269dfbf4d7f90c7039db80c618fc1079360b801 +SIZE (Cactus64k-simple-fb2-reader-1.1.3_GH0.tar.gz) = 94550 diff --git a/print/simple-fb2-reader/files/patch-CMakeLists.txt b/print/simple-fb2-reader/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..49cab7e168e1 --- /dev/null +++ b/print/simple-fb2-reader/files/patch-CMakeLists.txt @@ -0,0 +1,18 @@ +--- CMakeLists.txt.orig 2019-08-11 23:34:11 UTC ++++ CMakeLists.txt +@@ -40,13 +40,14 @@ set (INCLUDES + #BUILD + + set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99") +-set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -export-dynamic") ++set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -rdynamic") + + add_definitions (-DGUI_CONSTRUCT_PATH="${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT}/${PROJECT}.glade") + add_definitions (-DPACKAGE_VERSION="${VERSION}") + add_definitions (-DPACKAGE_NAME="${PROJECT}") + + include_directories (${INCLUDES}) ++link_directories (${GTK3_LIBRARY_DIRS}) + add_executable (${PROJECT} ${HEADERS} ${SOURCES}) + target_link_libraries (${PROJECT} ${LIBRARIES}) + diff --git a/print/simple-fb2-reader/pkg-descr b/print/simple-fb2-reader/pkg-descr new file mode 100644 index 000000000000..26e7fde7865b --- /dev/null +++ b/print/simple-fb2-reader/pkg-descr @@ -0,0 +1,11 @@ +Simple tool to read books in the FB2 format. Developed using GTK+3. +Its features: + + - Supports *.fb2 and *.fb2.zip files + - Full 2.1 format support (without stylesheet and partial + table tag support) + - Saving reading position, window state, size, and position + - Search for specific text in the book + - Russian and English GUI, user themes, autoscrolling, hotkeys + +WWW: https://github.com/Cactus64k/simple-fb2-reader diff --git a/print/simple-fb2-reader/pkg-plist b/print/simple-fb2-reader/pkg-plist new file mode 100644 index 000000000000..19fb279c50b3 --- /dev/null +++ b/print/simple-fb2-reader/pkg-plist @@ -0,0 +1,10 @@ +bin/simple-fb2-reader +share/applications/simple-fb2-reader.desktop +share/icons/hicolor/scalable/apps/simple-fb2-reader.svg +share/icons/hicolor/scalable/mimetypes/application-x-fictionbook+xml.svg +share/icons/hicolor/scalable/mimetypes/application-x-zip-compressed-fb2.svg +share/locale/en_US/LC_MESSAGES/simple-fb2-reader.mo +share/locale/ru/LC_MESSAGES/simple-fb2-reader.mo +share/mime/packages/simple-fb2-reader.xml +%%DATADIR%%/simple-fb2-reader.css +%%DATADIR%%/simple-fb2-reader.glade