Skip to content

Commit

Permalink
app-text/sigil: version bump to 0.9.13
Browse files Browse the repository at this point in the history
Signed-off-by: Zamarin Arthur <arthurzam@gmail.com>
  • Loading branch information
arthurzam committed Apr 24, 2019
1 parent 43ebcf2 commit 8c9216b
Show file tree
Hide file tree
Showing 3 changed files with 156 additions and 0 deletions.
1 change: 1 addition & 0 deletions app-text/sigil/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DIST Sigil-0.9.8-Code.zip 19807795 BLAKE2B 002626842b2619b94889780a66e4de1f6d6fc9f07e36069608d2edae1078516d7c0fbedad6d4966f2cff64ccd21730719a04c144b3c3c1740ad727448aff8af2 SHA512 18cd137ead965bc97626499ec73dddb8db82b4d538c30f70e62546bd1eeb6e2e76ce7587d572354d973363a07e93ec33b60024bbef7914a22cbfc28a76af2a00
DIST sigil-0.9.13.tar.gz 18235134 BLAKE2B 4afe0f0258a8c1056029534ec696372e40343b9a398b612ee32fe95a3d417594bcc6782a4e6447323d67e84db5193756ff7c8756e160c432678ebc59ddeab706 SHA512 cafc6b075827239b73e80d3efa02e4e77d5903fed1faf8b600f70b178fb0c248c38d43e115f249124859edc12ddd8caf199ef0b0d05f20852eb060b27e5a3578
62 changes: 62 additions & 0 deletions app-text/sigil/files/sigil-0.9.13-fix-install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e6d741e..cfa0ef7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -33,6 +33,8 @@ set( SIGIL_REVISION_VERSION 13 )
set( SIGIL_FULL_VERSION ${SIGIL_MAJOR_VERSION}.${SIGIL_MINOR_VERSION}.${SIGIL_REVISION_VERSION} )

if( UNIX AND NOT APPLE )
+ include(GNUInstallDirs)
+
# Make sure the correct rpath is set for the sigil executable
# on Linux -- for both the build and the installed versions.
# Needed to make sure the installed shared hunspell and gumbo
@@ -45,7 +47,7 @@ if( UNIX AND NOT APPLE )
# (but later on when installing)
SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)

- SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib/sigil")
+ SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_FULL_LIBDIR}/sigil")

# add the automatically determined parts of the RPATH
# which point to directories outside the build tree to the install RPATH.
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index df7a579..5b1f58f 100755
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1001,12 +1001,12 @@ if( UNIX AND NOT APPLE )
endif()

# Standard Linux 'make install'
- install( TARGETS sigil DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/sigil/ )
- install( PROGRAMS ${LINUX_LAUNCH_INSTALL_SCRIPT_CONFIGURED} DESTINATION ${CMAKE_INSTALL_PREFIX}/bin/ RENAME ${PROJECT_NAME} )
+ install( TARGETS sigil DESTINATION ${CMAKE_INSTALL_LIBDIR}/sigil )
+ install( PROGRAMS ${LINUX_LAUNCH_INSTALL_SCRIPT_CONFIGURED} DESTINATION ${CMAKE_INSTALL_BINDIR} RENAME ${PROJECT_NAME} )
if( NOT USE_SYSTEM_LIBS OR NOT HUNSPELL_FOUND )
install( PROGRAMS ${HUNSPELL_NAME} DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/sigil/ )
endif()
- install( PROGRAMS ${GUMBO_NAME} DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/sigil/ )
+ install( PROGRAMS ${GUMBO_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/sigil )
if( BUILD_PATCHED_LIBXML2 )
install( PROGRAMS ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libsigilxml2.so.2.9.4 DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/sigil/ )
install( FILES ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libxml2.so.2 DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/sigil/ )
diff --git a/src/Resource_Files/bash/sigil-sh_install b/src/Resource_Files/bash/sigil-sh_install
index 08fd266..13453e6 100755
--- a/src/Resource_Files/bash/sigil-sh_install
+++ b/src/Resource_Files/bash/sigil-sh_install
@@ -4,7 +4,7 @@
# Adds linked Qt's lib directory to the LD_LIBRARY_PATH

QTLIB_DIR="${QT_LIBRARY_DIR}"
-SIGIL_BIN_DIR="${CMAKE_INSTALL_PREFIX}/lib/sigil"
+SIGIL_BIN_DIR="${CMAKE_INSTALL_FULL_LIBDIR}/sigil"

if [ -z "$LD_LIBRARY_PATH" ]; then
LD_LIBRARY_PATH="$SIGIL_BIN_DIR:$QTLIB_DIR"
@@ -26,5 +26,5 @@ fi

export LD_LIBRARY_PATH

-exec ${CMAKE_INSTALL_PREFIX}/lib/sigil/sigil "$@"
+exec ${CMAKE_INSTALL_FULL_LIBDIR}/sigil/sigil "$@"

93 changes: 93 additions & 0 deletions app-text/sigil/sigil-0.9.13.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# Copyright 1999-2019 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=( python3_{5,6,7} )

inherit cmake-utils python-single-r1 readme.gentoo-r1 xdg-utils

MY_PN="Sigil"

DESCRIPTION="Sigil is a multi-platform WYSIWYG ebook editor for ePub format"
HOMEPAGE="https://sigil-ebook.com/"
SRC_URI="https://github.com/Sigil-Ebook/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

RDEPEND="
${PYTHON_DEPS}
app-text/hunspell:=
dev-libs/boost:=[threads]
dev-libs/libpcre:3=[pcre16]
dev-libs/mathjax
dev-libs/xerces-c[icu]
dev-python/chardet[${PYTHON_USEDEP}]
dev-python/cssselect[${PYTHON_USEDEP}]
dev-python/cssutils[${PYTHON_USEDEP}]
dev-python/html5lib[${PYTHON_USEDEP}]
dev-python/lxml[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
dev-python/regex[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
>=dev-qt/qtconcurrent-5.4:5
>=dev-qt/qtcore-5.4:5
>=dev-qt/qtgui-5.4:5
>=dev-qt/qtprintsupport-5.4:5
>=dev-qt/qtwebkit-5.4:5
>=dev-qt/qtwidgets-5.4:5
>=dev-qt/qtxmlpatterns-5.4:5
sys-libs/zlib[minizip]
"
DEPEND="${RDEPEND}"

BDEPEND="
dev-qt/linguist-tools:5
virtual/pkgconfig
"

S="${WORKDIR}/${MY_PN}-${PV}"

PATCHES=( "${FILESDIR}"/${PN}-0.9.13-fix-install.patch )
DOCS=( ChangeLog.txt README.md )

DOC_CONTENTS="From Sigil's release notes:
When you fire up Sigil for the very first time:
navigate to the new General Preferences and select the default
epub version you plan to work with (epub 2 or epub3) so that new
empty ebooks start with the correct code.
if you plan to work with epub3 epubs, you should change your
PreserveEntities setting to use ONLY NUMERIC entities.
For example use & # 1 6 0 ; for non-breaking spaces and etc.
We strongly recommend enabling Mend On Open in your settings
for best performance with Sigil."

src_configure() {
local mycmakeargs=(
-DINSTALL_BUNDLED_DICTS=0
-DMATHJAX_DIR="${EPREFIX}"/usr/share/mathjax
-DUSE_SYSTEM_LIBS=1
-DSYSTEM_LIBS_REQUIRED=1
)
cmake-utils_src_configure
}

src_install() {
cmake-utils_src_install

DISABLE_AUTOFORMATTING=true readme.gentoo_create_doc
}

pkg_postinst() {
xdg_desktop_database_update
readme.gentoo_print_elog
}

pkg_postrm() {
xdg_desktop_database_update
}

0 comments on commit 8c9216b

Please sign in to comment.