You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
1.7 KiB
75 lines
1.7 KiB
8 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Id$
|
||
|
|
||
8 years ago
|
EAPI=6
|
||
9 years ago
|
CMAKE_MIN_VERSION="3.0"
|
||
|
|
||
8 years ago
|
PYTHON_COMPAT=( python3_4 python3_5 )
|
||
9 years ago
|
|
||
9 years ago
|
inherit eutils cmake-utils python-single-r1
|
||
9 years ago
|
|
||
|
MY_PN="Sigil"
|
||
|
|
||
|
DESCRIPTION="Sigil is a multi-platform WYSIWYG ebook editor for ePub format"
|
||
|
HOMEPAGE="http://sigil-ebook.com/"
|
||
9 years ago
|
SRC_URI="https://github.com/Sigil-Ebook/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||
9 years ago
|
|
||
|
LICENSE="GPL-3"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
IUSE=""
|
||
|
|
||
|
RDEPEND="
|
||
9 years ago
|
app-text/hunspell
|
||
8 years ago
|
dev-libs/boost[threads]
|
||
9 years ago
|
dev-libs/libpcre[pcre16]
|
||
|
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}]
|
||
9 years ago
|
>=dev-qt/qtconcurrent-5.4:5
|
||
|
>=dev-qt/qtcore-5.4:5
|
||
|
>=dev-qt/qtgui-5.4:5
|
||
|
>=dev-qt/qtnetwork-5.4:5
|
||
|
>=dev-qt/qtprintsupport-5.4:5
|
||
|
>=dev-qt/qtsvg-5.4:5
|
||
|
>=dev-qt/qtwebkit-5.4:5
|
||
|
>=dev-qt/qtwidgets-5.4:5
|
||
|
>=dev-qt/qtxml-5.4:5
|
||
|
>=dev-qt/qtxmlpatterns-5.4:5
|
||
9 years ago
|
sys-libs/zlib[minizip]
|
||
9 years ago
|
"
|
||
|
DEPEND="${RDEPEND}
|
||
9 years ago
|
>=sys-devel/gcc-4.8
|
||
9 years ago
|
virtual/pkgconfig
|
||
|
>=dev-qt/linguist-tools-5.4:5
|
||
|
"
|
||
|
|
||
9 years ago
|
S="${WORKDIR}/${MY_PN}-${PV}"
|
||
9 years ago
|
|
||
9 years ago
|
DOCS=( ChangeLog.txt README.md )
|
||
9 years ago
|
|
||
|
src_prepare() {
|
||
|
# sigil tries to copy non-needed qt libs for deb package, safe to ignore this completely
|
||
|
sed -e '/set( QT_LIBS/d' -i src/CMakeLists.txt || die "sed failed"
|
||
8 years ago
|
eapply "${FILESDIR}/sigil-0.9.4-proper-gumbo-install.patch"
|
||
9 years ago
|
|
||
8 years ago
|
eapply_user
|
||
9 years ago
|
cmake-utils_src_prepare
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
local mycmakeargs=(
|
||
|
-DUSE_SYSTEM_LIBS=1
|
||
|
-DSYSTEM_LIBS_REQUIRED=1
|
||
8 years ago
|
-DLIBDIR="$(get_libdir)"
|
||
9 years ago
|
)
|
||
|
cmake-utils_src_configure
|
||
|
}
|