blob: 9ec78bd7b8b5e3b287f5107fd01a8849b83acb6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
CMAKE_MIN_VERSION="3.0"
CMAKE_BUILD_TYPE="Release"
# This ebuild could use some python checks, as sigil contains python plugin architecture.
inherit eutils cmake-utils
MY_PN="Sigil"
MY_PV="0.8.900"
DESCRIPTION="Sigil is a multi-platform WYSIWYG ebook editor for ePub format"
HOMEPAGE="http://sigil-ebook.com/"
SRC_URI="https://github.com/Sigil-Ebook/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="
dev-lang/python:3.4
>=dev-libs/boost-1.49[threads]
>=dev-libs/libpcre-8.31[pcre16]
>=dev-libs/xerces-c-3.1.1[icu]
>=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
>=sys-libs/zlib-1.2.7[minizip]
"
DEPEND="${RDEPEND}
virtual/pkgconfig
>=dev-qt/linguist-tools-5.4:5
"
S="${WORKDIR}/${MY_PN}-${MY_PV}"
DOCS=( README.md ChangeLog.txt )
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"
cmake-utils_src_prepare
}
src_configure() {
local mycmakeargs=(
-DUSE_SYSTEM_LIBS=1
-DSYSTEM_LIBS_REQUIRED=1
)
cmake-utils_src_configure
cd "${WORKDIR}/${P}_build" || die "Where is the build dir?"
for i in CMakeCache.txt src/CMakeFiles/sigil.dir/link.txt $(find . -name '*.make')
do
sed -e 's/-O3 -DNDEBUG/-DNDEBUG/' -i ${i} || die "sed failed"
done
}
|