import ebook-utils 0.2.1
Utility/library for converting between different formats of e-books. initial port from Vadim Zhukov tweaks by me and sthen@, ok sthen@
This commit is contained in:
parent
b3fd891374
commit
c9b08e14e1
42
textproc/ebook-tools/Makefile
Normal file
42
textproc/ebook-tools/Makefile
Normal file
@ -0,0 +1,42 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2011/12/23 13:04:00 jasper Exp $
|
||||
|
||||
V = 0.2.1
|
||||
COMMENT = accessing and converting various ebook file formats
|
||||
DISTNAME = ebook-tools-${V}
|
||||
|
||||
SHARED_LIBS += epub 0.0 # 0.2
|
||||
|
||||
CATEGORIES = textproc devel
|
||||
|
||||
# MIT
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM =Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
WANTLIB += c xml2 zip
|
||||
|
||||
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=ebook-tools/${V}/}
|
||||
|
||||
MODULES = devel/cmake
|
||||
BUILD_DEPENDS = devel/doxygen
|
||||
LIB_DEPENDS = textproc/libxml \
|
||||
archivers/libzip \
|
||||
|
||||
SEPARATE_BUILD = simple
|
||||
NO_REGRESS = Yes
|
||||
|
||||
MAKE_ENV= DOXYGEN_ENCODE_PATH_STRIP=${WRKSRC}
|
||||
|
||||
DOCSDIR = ${PREFIX}/share/doc/ebook-tools
|
||||
|
||||
post-build:
|
||||
cd ${WRKBUILD} && ${MAKE_ENV} make doc
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${DOCSDIR}
|
||||
cp -R ${WRKBUILD}/doc/html ${DOCSDIR}
|
||||
@find ${DOCSDIR} -type d -print0 | xargs -0t chmod ${DIRMODE}
|
||||
@find ${DOCSDIR} -type f -print0 | xargs -0t chmod ${DOCMODE}
|
||||
|
||||
.include <bsd.port.mk>
|
5
textproc/ebook-tools/distinfo
Normal file
5
textproc/ebook-tools/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (ebook-tools-0.2.1.tar.gz) = yrvS75FIphyl9uYMpj5gRQ==
|
||||
RMD160 (ebook-tools-0.2.1.tar.gz) = D081v8xE7q4yi24bs3QKNoc1zsk=
|
||||
SHA1 (ebook-tools-0.2.1.tar.gz) = E0DrcUG0UwiNOeYruncUEwU6bRg=
|
||||
SHA256 (ebook-tools-0.2.1.tar.gz) = wkPL/ayMNL9AmL9TgFQckUrsFQeyZC/NeI5zOZpu/HE=
|
||||
SIZE (ebook-tools-0.2.1.tar.gz) = 44793
|
50
textproc/ebook-tools/patches/patch-cmake_FindLibZip_cmake
Normal file
50
textproc/ebook-tools/patches/patch-cmake_FindLibZip_cmake
Normal file
@ -0,0 +1,50 @@
|
||||
$OpenBSD: patch-cmake_FindLibZip_cmake,v 1.1.1.1 2011/12/23 13:04:00 jasper Exp $
|
||||
--- cmake/FindLibZip.cmake.orig Sun Apr 6 19:16:33 2008
|
||||
+++ cmake/FindLibZip.cmake Fri Dec 23 12:19:54 2011
|
||||
@@ -2,35 +2,29 @@
|
||||
# Once done this will define
|
||||
#
|
||||
# LIBZIP_FOUND - system has the zip library
|
||||
-# LIBZIP_INCLUDE_DIR - the zip include directory
|
||||
-# LIBZIP_LIBRARY - Link this to use the zip library
|
||||
+# LIBZIP_INCLUDE_DIRS - the zip include directory
|
||||
+# LIBZIP_LIBRARIES - Link this to use the zip library
|
||||
#
|
||||
# Copyright (c) 2006, Pino Toscano, <toscano.pino@tiscali.it>
|
||||
#
|
||||
# Redistribution and use is allowed according to the terms of the BSD license.
|
||||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
||||
|
||||
-if (LIBZIP_LIBRARY AND LIBZIP_INCLUDE_DIR)
|
||||
+if (LIBZIP_LIBRARIES AND LIBZIP_INCLUDE_DIRS)
|
||||
# in cache already
|
||||
set(LIBZIP_FOUND TRUE)
|
||||
-else (LIBZIP_LIBRARY AND LIBZIP_INCLUDE_DIR)
|
||||
+else (LIBZIP_LIBRARIES AND LIBZIP_INCLUDE_DIRS)
|
||||
|
||||
- find_path(LIBZIP_INCLUDE_DIR zip.h
|
||||
- ${GNUWIN32_DIR}/include
|
||||
- )
|
||||
+ INCLUDE(FindPkgConfig)
|
||||
+ pkg_check_modules(LIBZIP REQUIRED libzip)
|
||||
|
||||
- find_library(LIBZIP_LIBRARY NAMES zip
|
||||
- PATHS
|
||||
- ${GNUWIN32_DIR}/lib
|
||||
- )
|
||||
-
|
||||
include(FindPackageHandleStandardArgs)
|
||||
- FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibZip DEFAULT_MSG LIBZIP_LIBRARY LIBZIP_INCLUDE_DIR)
|
||||
+ FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibZip DEFAULT_MSG LIBZIP_LIBRARIES LIBZIP_INCLUDE_DIRS)
|
||||
|
||||
# ensure that they are cached
|
||||
- set(LIBZIP_INCLUDE_DIR ${LIBZIP_INCLUDE_DIR} CACHE INTERNAL "The libzip include path")
|
||||
- set(LIBZIP_LIBRARY ${LIBZIP_LIBRARY} CACHE INTERNAL "The libraries needed to use libzip")
|
||||
+ set(LIBZIP_INCLUDE_DIRS ${LIBZIP_INCLUDE_DIRS} CACHE INTERNAL "The libzip include path")
|
||||
+ set(LIBZIP_LIBRARIES ${LIBZIP_LIBRARIES} CACHE INTERNAL "The libraries needed to use libzip")
|
||||
|
||||
-endif (LIBZIP_LIBRARY AND LIBZIP_INCLUDE_DIR)
|
||||
+endif (LIBZIP_LIBRARIES AND LIBZIP_INCLUDE_DIRS)
|
||||
|
||||
-mark_as_advanced(LIBZIP_INCLUDE_DIR LIBZIP_LIBRARY)
|
||||
+mark_as_advanced(LIBZIP_INCLUDE_DIRS LIBZIP_LIBRARIES)
|
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_libepub_CMakeLists_txt,v 1.1.1.1 2011/12/23 13:04:00 jasper Exp $
|
||||
--- src/libepub/CMakeLists.txt.orig Mon Sep 13 21:31:53 2010
|
||||
+++ src/libepub/CMakeLists.txt Fri Dec 23 12:14:37 2011
|
||||
@@ -1,6 +1,6 @@
|
||||
-include_directories (${EBOOK-TOOLS_SOURCE_DIR}/src/libepub ${LIBXML2_INCLUDE_DIR} ${LIBZIP_INCLUDE_DIR})
|
||||
+include_directories (${EBOOK-TOOLS_SOURCE_DIR}/src/libepub ${LIBXML2_INCLUDE_DIR} ${LIBZIP_INCLUDE_DIRS})
|
||||
add_library (epub SHARED epub.c ocf.c opf.c linklist.c list.c)
|
||||
-target_link_libraries (epub ${LIBZIP_LIBRARY} ${LIBXML2_LIBRARIES})
|
||||
+target_link_libraries (epub ${LIBZIP_LIBRARIES} ${LIBXML2_LIBRARIES})
|
||||
|
||||
set_target_properties (epub PROPERTIES VERSION 0.2.1 SOVERSION 0)
|
||||
|
1
textproc/ebook-tools/pkg/DESCR
Normal file
1
textproc/ebook-tools/pkg/DESCR
Normal file
@ -0,0 +1 @@
|
||||
Utility/library for converting between different formats of e-books.
|
2
textproc/ebook-tools/pkg/PFRAG.shared
Normal file
2
textproc/ebook-tools/pkg/PFRAG.shared
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2011/12/23 13:04:00 jasper Exp $
|
||||
@lib lib/libepub.so.${LIBepub_VERSION}
|
207
textproc/ebook-tools/pkg/PLIST
Normal file
207
textproc/ebook-tools/pkg/PLIST
Normal file
@ -0,0 +1,207 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/12/23 13:04:00 jasper Exp $
|
||||
%%SHARED%%
|
||||
@bin bin/einfo
|
||||
bin/lit2epub
|
||||
include/epub.h
|
||||
include/epub_shared.h
|
||||
include/epub_version.h
|
||||
share/doc/ebook-tools/
|
||||
share/doc/ebook-tools/html/
|
||||
share/doc/ebook-tools/html/EBOOK-TOOLS.TAGFILE
|
||||
share/doc/ebook-tools/html/annotated.html
|
||||
share/doc/ebook-tools/html/bc_s.png
|
||||
share/doc/ebook-tools/html/classes.html
|
||||
share/doc/ebook-tools/html/closed.png
|
||||
share/doc/ebook-tools/html/dir_1aadfcc6ce99810c4f28b3e40bd89d10.html
|
||||
share/doc/ebook-tools/html/dir_bb3a45700f8b636266dda7e86f379deb.html
|
||||
share/doc/ebook-tools/html/dirs.html
|
||||
share/doc/ebook-tools/html/doxygen.css
|
||||
share/doc/ebook-tools/html/doxygen.png
|
||||
share/doc/ebook-tools/html/epub_8h.html
|
||||
share/doc/ebook-tools/html/epub_8h_source.html
|
||||
share/doc/ebook-tools/html/epub__shared_8h.html
|
||||
share/doc/ebook-tools/html/epub__shared_8h_source.html
|
||||
share/doc/ebook-tools/html/epub__version_8h.html
|
||||
share/doc/ebook-tools/html/epub__version_8h_source.html
|
||||
share/doc/ebook-tools/html/epublib_8h.html
|
||||
share/doc/ebook-tools/html/epublib_8h_source.html
|
||||
share/doc/ebook-tools/html/files.html
|
||||
share/doc/ebook-tools/html/ftv2blank.png
|
||||
share/doc/ebook-tools/html/ftv2doc.png
|
||||
share/doc/ebook-tools/html/ftv2folderclosed.png
|
||||
share/doc/ebook-tools/html/ftv2folderopen.png
|
||||
share/doc/ebook-tools/html/ftv2lastnode.png
|
||||
share/doc/ebook-tools/html/ftv2link.png
|
||||
share/doc/ebook-tools/html/ftv2mlastnode.png
|
||||
share/doc/ebook-tools/html/ftv2mnode.png
|
||||
share/doc/ebook-tools/html/ftv2node.png
|
||||
share/doc/ebook-tools/html/ftv2plastnode.png
|
||||
share/doc/ebook-tools/html/ftv2pnode.png
|
||||
share/doc/ebook-tools/html/ftv2vertline.png
|
||||
share/doc/ebook-tools/html/functions.html
|
||||
share/doc/ebook-tools/html/functions_vars.html
|
||||
share/doc/ebook-tools/html/globals.html
|
||||
share/doc/ebook-tools/html/globals_defs.html
|
||||
share/doc/ebook-tools/html/globals_enum.html
|
||||
share/doc/ebook-tools/html/globals_eval.html
|
||||
share/doc/ebook-tools/html/globals_func.html
|
||||
share/doc/ebook-tools/html/globals_type.html
|
||||
share/doc/ebook-tools/html/globals_vars.html
|
||||
share/doc/ebook-tools/html/index.hhc
|
||||
share/doc/ebook-tools/html/index.hhk
|
||||
share/doc/ebook-tools/html/index.hhp
|
||||
share/doc/ebook-tools/html/index.html
|
||||
share/doc/ebook-tools/html/installdox
|
||||
share/doc/ebook-tools/html/linklist_8h.html
|
||||
share/doc/ebook-tools/html/linklist_8h_source.html
|
||||
share/doc/ebook-tools/html/main.html
|
||||
share/doc/ebook-tools/html/nav_f.png
|
||||
share/doc/ebook-tools/html/nav_h.png
|
||||
share/doc/ebook-tools/html/open.png
|
||||
share/doc/ebook-tools/html/search/
|
||||
share/doc/ebook-tools/html/search/all_5f.html
|
||||
share/doc/ebook-tools/html/search/all_61.html
|
||||
share/doc/ebook-tools/html/search/all_62.html
|
||||
share/doc/ebook-tools/html/search/all_63.html
|
||||
share/doc/ebook-tools/html/search/all_64.html
|
||||
share/doc/ebook-tools/html/search/all_65.html
|
||||
share/doc/ebook-tools/html/search/all_66.html
|
||||
share/doc/ebook-tools/html/search/all_67.html
|
||||
share/doc/ebook-tools/html/search/all_68.html
|
||||
share/doc/ebook-tools/html/search/all_69.html
|
||||
share/doc/ebook-tools/html/search/all_6c.html
|
||||
share/doc/ebook-tools/html/search/all_6d.html
|
||||
share/doc/ebook-tools/html/search/all_6e.html
|
||||
share/doc/ebook-tools/html/search/all_6f.html
|
||||
share/doc/ebook-tools/html/search/all_70.html
|
||||
share/doc/ebook-tools/html/search/all_71.html
|
||||
share/doc/ebook-tools/html/search/all_72.html
|
||||
share/doc/ebook-tools/html/search/all_73.html
|
||||
share/doc/ebook-tools/html/search/all_74.html
|
||||
share/doc/ebook-tools/html/search/all_76.html
|
||||
share/doc/ebook-tools/html/search/classes_63.html
|
||||
share/doc/ebook-tools/html/search/classes_64.html
|
||||
share/doc/ebook-tools/html/search/classes_65.html
|
||||
share/doc/ebook-tools/html/search/classes_67.html
|
||||
share/doc/ebook-tools/html/search/classes_69.html
|
||||
share/doc/ebook-tools/html/search/classes_6c.html
|
||||
share/doc/ebook-tools/html/search/classes_6d.html
|
||||
share/doc/ebook-tools/html/search/classes_6f.html
|
||||
share/doc/ebook-tools/html/search/classes_72.html
|
||||
share/doc/ebook-tools/html/search/classes_73.html
|
||||
share/doc/ebook-tools/html/search/classes_74.html
|
||||
share/doc/ebook-tools/html/search/close.png
|
||||
share/doc/ebook-tools/html/search/defines_5f.html
|
||||
share/doc/ebook-tools/html/search/defines_63.html
|
||||
share/doc/ebook-tools/html/search/defines_64.html
|
||||
share/doc/ebook-tools/html/search/defines_65.html
|
||||
share/doc/ebook-tools/html/search/defines_66.html
|
||||
share/doc/ebook-tools/html/search/defines_6c.html
|
||||
share/doc/ebook-tools/html/search/defines_6d.html
|
||||
share/doc/ebook-tools/html/search/defines_6e.html
|
||||
share/doc/ebook-tools/html/search/defines_70.html
|
||||
share/doc/ebook-tools/html/search/defines_71.html
|
||||
share/doc/ebook-tools/html/search/defines_72.html
|
||||
share/doc/ebook-tools/html/search/defines_73.html
|
||||
share/doc/ebook-tools/html/search/enums_65.html
|
||||
share/doc/ebook-tools/html/search/enums_74.html
|
||||
share/doc/ebook-tools/html/search/enumvalues_64.html
|
||||
share/doc/ebook-tools/html/search/enumvalues_65.html
|
||||
share/doc/ebook-tools/html/search/enumvalues_74.html
|
||||
share/doc/ebook-tools/html/search/files_65.html
|
||||
share/doc/ebook-tools/html/search/files_6c.html
|
||||
share/doc/ebook-tools/html/search/functions_5f.html
|
||||
share/doc/ebook-tools/html/search/functions_61.html
|
||||
share/doc/ebook-tools/html/search/functions_62.html
|
||||
share/doc/ebook-tools/html/search/functions_64.html
|
||||
share/doc/ebook-tools/html/search/functions_65.html
|
||||
share/doc/ebook-tools/html/search/functions_66.html
|
||||
share/doc/ebook-tools/html/search/functions_67.html
|
||||
share/doc/ebook-tools/html/search/functions_68.html
|
||||
share/doc/ebook-tools/html/search/functions_69.html
|
||||
share/doc/ebook-tools/html/search/functions_6e.html
|
||||
share/doc/ebook-tools/html/search/functions_70.html
|
||||
share/doc/ebook-tools/html/search/functions_72.html
|
||||
share/doc/ebook-tools/html/search/functions_73.html
|
||||
share/doc/ebook-tools/html/search/functions_74.html
|
||||
share/doc/ebook-tools/html/search/mag_sel.png
|
||||
share/doc/ebook-tools/html/search/nomatches.html
|
||||
share/doc/ebook-tools/html/search/search.css
|
||||
share/doc/ebook-tools/html/search/search.js
|
||||
share/doc/ebook-tools/html/search/search_l.png
|
||||
share/doc/ebook-tools/html/search/search_m.png
|
||||
share/doc/ebook-tools/html/search/search_r.png
|
||||
share/doc/ebook-tools/html/search/typedefs_6c.html
|
||||
share/doc/ebook-tools/html/search/typedefs_6e.html
|
||||
share/doc/ebook-tools/html/search/variables_5f.html
|
||||
share/doc/ebook-tools/html/search/variables_61.html
|
||||
share/doc/ebook-tools/html/search/variables_63.html
|
||||
share/doc/ebook-tools/html/search/variables_64.html
|
||||
share/doc/ebook-tools/html/search/variables_65.html
|
||||
share/doc/ebook-tools/html/search/variables_66.html
|
||||
share/doc/ebook-tools/html/search/variables_67.html
|
||||
share/doc/ebook-tools/html/search/variables_68.html
|
||||
share/doc/ebook-tools/html/search/variables_69.html
|
||||
share/doc/ebook-tools/html/search/variables_6c.html
|
||||
share/doc/ebook-tools/html/search/variables_6d.html
|
||||
share/doc/ebook-tools/html/search/variables_6e.html
|
||||
share/doc/ebook-tools/html/search/variables_6f.html
|
||||
share/doc/ebook-tools/html/search/variables_70.html
|
||||
share/doc/ebook-tools/html/search/variables_72.html
|
||||
share/doc/ebook-tools/html/search/variables_73.html
|
||||
share/doc/ebook-tools/html/search/variables_74.html
|
||||
share/doc/ebook-tools/html/search/variables_76.html
|
||||
share/doc/ebook-tools/html/structLList-members.html
|
||||
share/doc/ebook-tools/html/structLList.html
|
||||
share/doc/ebook-tools/html/structListNode-members.html
|
||||
share/doc/ebook-tools/html/structListNode.html
|
||||
share/doc/ebook-tools/html/structcreator-members.html
|
||||
share/doc/ebook-tools/html/structcreator.html
|
||||
share/doc/ebook-tools/html/structdate-members.html
|
||||
share/doc/ebook-tools/html/structdate.html
|
||||
share/doc/ebook-tools/html/structeiterator-members.html
|
||||
share/doc/ebook-tools/html/structeiterator.html
|
||||
share/doc/ebook-tools/html/structepub-members.html
|
||||
share/doc/ebook-tools/html/structepub.html
|
||||
share/doc/ebook-tools/html/structepuberr-members.html
|
||||
share/doc/ebook-tools/html/structepuberr.html
|
||||
share/doc/ebook-tools/html/structguide-members.html
|
||||
share/doc/ebook-tools/html/structguide.html
|
||||
share/doc/ebook-tools/html/structid-members.html
|
||||
share/doc/ebook-tools/html/structid.html
|
||||
share/doc/ebook-tools/html/structmanifest-members.html
|
||||
share/doc/ebook-tools/html/structmanifest.html
|
||||
share/doc/ebook-tools/html/structmeta-members.html
|
||||
share/doc/ebook-tools/html/structmeta.html
|
||||
share/doc/ebook-tools/html/structmetadata-members.html
|
||||
share/doc/ebook-tools/html/structmetadata.html
|
||||
share/doc/ebook-tools/html/structocf-members.html
|
||||
share/doc/ebook-tools/html/structocf.html
|
||||
share/doc/ebook-tools/html/structopf-members.html
|
||||
share/doc/ebook-tools/html/structopf.html
|
||||
share/doc/ebook-tools/html/structroot-members.html
|
||||
share/doc/ebook-tools/html/structroot.html
|
||||
share/doc/ebook-tools/html/structsite-members.html
|
||||
share/doc/ebook-tools/html/structsite.html
|
||||
share/doc/ebook-tools/html/structspine-members.html
|
||||
share/doc/ebook-tools/html/structspine.html
|
||||
share/doc/ebook-tools/html/structtit__info-members.html
|
||||
share/doc/ebook-tools/html/structtit__info.html
|
||||
share/doc/ebook-tools/html/structtiterator-members.html
|
||||
share/doc/ebook-tools/html/structtiterator.html
|
||||
share/doc/ebook-tools/html/structtoc-members.html
|
||||
share/doc/ebook-tools/html/structtoc.html
|
||||
share/doc/ebook-tools/html/structtocCategory-members.html
|
||||
share/doc/ebook-tools/html/structtocCategory.html
|
||||
share/doc/ebook-tools/html/structtocItem-members.html
|
||||
share/doc/ebook-tools/html/structtocItem.html
|
||||
share/doc/ebook-tools/html/structtocLabel-members.html
|
||||
share/doc/ebook-tools/html/structtocLabel.html
|
||||
share/doc/ebook-tools/html/structtour-members.html
|
||||
share/doc/ebook-tools/html/structtour.html
|
||||
share/doc/ebook-tools/html/tab_a.png
|
||||
share/doc/ebook-tools/html/tab_b.png
|
||||
share/doc/ebook-tools/html/tab_h.png
|
||||
share/doc/ebook-tools/html/tab_s.png
|
||||
share/doc/ebook-tools/html/tabs.css
|
||||
share/doc/ebook-tools/html/tree.html
|
Loading…
x
Reference in New Issue
Block a user