Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 640974
Collapse All | Expand All

(-)a/app-text/fbreader/fbreader-0.99.4-r2.ebuild (-88 lines)
Lines 1-88 Link Here
1
# Copyright 1999-2017 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=5
5
6
inherit eutils multilib
7
8
DESCRIPTION="E-Book Reader. Supports many e-book formats"
9
HOMEPAGE="http://www.fbreader.org/"
10
SRC_URI="http://www.fbreader.org/files/desktop/${PN}-sources-${PV}.tgz"
11
12
LICENSE="GPL-2"
13
SLOT="0"
14
KEYWORDS="~amd64 ~arm ~ppc ~x86" # do not stablize as upstream is dead
15
IUSE="debug"
16
17
RDEPEND="
18
	app-arch/bzip2
19
	dev-libs/expat
20
	dev-libs/liblinebreak
21
	dev-libs/fribidi
22
	dev-db/sqlite
23
	net-misc/curl
24
	sys-libs/zlib
25
	dev-qt/qtcore:4[ssl]
26
	dev-qt/qtgui:4
27
"
28
DEPEND="${RDEPEND}
29
	virtual/pkgconfig
30
"
31
32
src_prepare() {
33
	# Still use linebreak instead of new unibreak
34
	sed -e "s:-lunibreak:-llinebreak:" \
35
		-i makefiles/config.mk zlibrary/text/Makefile || die "fixing libunibreak failed"
36
37
	# Let portage decide about the compiler
38
	sed -e "/^CC = /d" \
39
		-i makefiles/arch/desktop.mk || die "removing CC line failed"
40
41
	# let portage strip the binary
42
	sed -e '/@strip/d' \
43
		-i fbreader/desktop/Makefile || die
44
45
	# Respect *FLAGS
46
	sed -e "s/^CFLAGS = -pipe/CFLAGS +=/" \
47
		-i makefiles/arch/desktop.mk || die "CFLAGS sed failed"
48
	sed -e "/^	CFLAGS +=/ d" \
49
		-i makefiles/config.mk || die "CFLAGS sed failed"
50
	sed -e "/^	LDFLAGS += -s$/ d" \
51
		-i makefiles/config.mk || die "sed failed"
52
	sed -e "/^LDFLAGS =$/ d" \
53
		-i makefiles/arch/desktop.mk || die "sed failed"
54
55
	echo "TARGET_ARCH = desktop" > makefiles/target.mk
56
	echo "LIBDIR = /usr/$(get_libdir)" >> makefiles/target.mk
57
58
	echo "UI_TYPE = qt4" >> makefiles/target.mk
59
	sed -e 's:MOC = moc-qt4:MOC = /usr/bin/moc:' \
60
		-i makefiles/arch/desktop.mk || die "updating desktop.mk failed"
61
62
	if use debug; then
63
		echo "TARGET_STATUS = debug" >> makefiles/target.mk
64
	else
65
		echo "TARGET_STATUS = release" >> makefiles/target.mk
66
	fi
67
68
	# bug #452636
69
	epatch "${FILESDIR}"/${P}.patch
70
	# bug #515698
71
	epatch "${FILESDIR}"/${P}-qreal-cast.patch
72
	# bug #516794
73
	epatch "${FILESDIR}"/${P}-mimetypes.patch
74
	# bug #437262
75
	epatch "${FILESDIR}"/${P}-ld-bfd.patch
76
	# bug #592588
77
	epatch "${FILESDIR}"/${P}-gcc6.patch
78
}
79
80
src_compile() {
81
	# bug #484516
82
	emake -j1
83
}
84
85
src_install() {
86
	default
87
	dosym FBReader /usr/bin/fbreader
88
}
(-)a/app-text/fbreader/fbreader-0.99.4-r3.ebuild (-95 lines)
Lines 1-95 Link Here
1
# Copyright 1999-2017 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=6
5
6
inherit eutils multilib flag-o-matic
7
8
DESCRIPTION="E-Book Reader. Supports many e-book formats"
9
HOMEPAGE="http://www.fbreader.org/"
10
SRC_URI="http://www.fbreader.org/files/desktop/${PN}-sources-${PV}.tgz"
11
12
LICENSE="GPL-2"
13
SLOT="0"
14
KEYWORDS="~amd64 ~arm ~ppc ~x86" # do not stablize as upstream is dead
15
IUSE="debug"
16
17
RDEPEND="
18
	app-arch/bzip2
19
	dev-libs/expat
20
	dev-libs/liblinebreak
21
	dev-libs/fribidi
22
	dev-db/sqlite
23
	net-misc/curl
24
	sys-libs/zlib
25
	dev-qt/qtcore:5
26
	dev-qt/qtgui:5
27
	dev-qt/qtwidgets:5
28
	dev-qt/qtnetwork:5[ssl]
29
"
30
DEPEND="${RDEPEND}
31
	virtual/pkgconfig
32
"
33
34
src_prepare() {
35
	# Still use linebreak instead of new unibreak
36
	sed -e "s:-lunibreak:-llinebreak:" \
37
		-i makefiles/config.mk zlibrary/text/Makefile || die "fixing libunibreak failed"
38
39
	# Let portage decide about the compiler
40
	sed -e "/^CC = /d" \
41
		-i makefiles/arch/desktop.mk || die "removing CC line failed"
42
43
	# let portage strip the binary
44
	sed -e '/@strip/d' \
45
		-i fbreader/desktop/Makefile || die
46
47
	# Respect *FLAGS
48
	sed -e "s/^CFLAGS = -pipe/CFLAGS +=/" \
49
		-i makefiles/arch/desktop.mk || die "CFLAGS sed failed"
50
	sed -e "/^	CFLAGS +=/ d" \
51
		-i makefiles/config.mk || die "CFLAGS sed failed"
52
	sed -e "/^	LDFLAGS += -s$/ d" \
53
		-i makefiles/config.mk || die "sed failed"
54
	sed -e "/^LDFLAGS =$/ d" \
55
		-i makefiles/arch/desktop.mk || die "sed failed"
56
57
	echo "TARGET_ARCH = desktop" > makefiles/target.mk
58
	echo "LIBDIR = /usr/$(get_libdir)" >> makefiles/target.mk
59
60
	echo "UI_TYPE = qt4" >> makefiles/target.mk
61
	sed -e 's:MOC = moc-qt4:MOC = /usr/bin/moc:' \
62
		-i makefiles/arch/desktop.mk || die "updating desktop.mk failed"
63
64
	if use debug; then
65
		echo "TARGET_STATUS = debug" >> makefiles/target.mk
66
	else
67
		echo "TARGET_STATUS = release" >> makefiles/target.mk
68
	fi
69
70
	# bug #452636
71
	eapply "${FILESDIR}"/${P}.patch
72
	# bug #515698
73
	eapply "${FILESDIR}"/${P}-qreal-cast.patch
74
	# bug #516794
75
	eapply "${FILESDIR}"/${P}-mimetypes.patch
76
	# bug #437262
77
	eapply "${FILESDIR}"/${P}-ld-bfd.patch
78
	# bug #592588
79
	eapply -p0 "${FILESDIR}"/${P}-gcc6.patch
80
81
	eapply "${FILESDIR}"/${P}-qt5.patch
82
	append-cflags -std=c++11
83
84
	eapply_user
85
}
86
87
src_compile() {
88
	# bug #484516
89
	emake -j1
90
}
91
92
src_install() {
93
	default
94
	dosym FBReader /usr/bin/fbreader
95
}
(-)a/dev-libs/liblinebreak/Manifest (-1 lines)
Line 1 Link Here
1
DIST liblinebreak-2.1.tar.gz 390922 BLAKE2B a121375a29a060bbd28db317bac86a7b65257ee972406abbc75ee58239212723d8bc0fad4f20cd52870e17f89c42a95f2f1bfc3e5ae7a7bc95d3fb6fa22024cb SHA512 063cef3bf2d5266387c00a5f5adce883b6ae9c33e153f5cda5475652a45fe5e3a0b609a56ec1093cfe988869cf3164285756e3b7a7428a02ee7184f683c7eb3a
(-)a/dev-libs/liblinebreak/liblinebreak-2.1.ebuild (-24 lines)
Lines 1-24 Link Here
1
# Copyright 1999-2014 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=5
5
inherit eutils
6
7
DESCRIPTION="Line breaking library"
8
HOMEPAGE="http://vimgadgets.sourceforge.net/liblinebreak/"
9
SRC_URI="mirror://sourceforge/vimgadgets/${P}.tar.gz"
10
11
LICENSE="ZLIB"
12
SLOT="0"
13
KEYWORDS="amd64 ~arm ppc x86"
14
IUSE="static-libs"
15
16
src_configure() {
17
	econf \
18
		$(use_enable static-libs static)
19
}
20
21
src_install() {
22
	default
23
	prune_libtool_files
24
}
(-)a/dev-libs/liblinebreak/metadata.xml (-13 lines)
Lines 1-13 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3
<pkgmetadata>
4
	<!-- maintainer-needed -->
5
	<longdescription lang="en">
6
		Liblinebreak is an implementation of the line breaking algorithm as described
7
		in Unicode 5.1.0 Standard Annex 14, Revision 22. It breaks lines that contain
8
		Unicode characters. It is designed to be used in a generic text renderer.
9
	</longdescription>
10
	<upstream>
11
		<remote-id type="sourceforge">vimgadgets</remote-id>
12
	</upstream>
13
</pkgmetadata>
(-)a/dev-libs/libunibreak/libunibreak-4.0.ebuild (-2 lines)
Lines 14-20 KEYWORDS="~amd64 ~arm ~ppc ~x86" Link Here
14
IUSE="doc +man static-libs"
14
IUSE="doc +man static-libs"
15
15
16
DEPEND="man? ( app-doc/doxygen )"
16
DEPEND="man? ( app-doc/doxygen )"
17
RDEPEND="!dev-libs/liblinebreak"
18
17
19
src_prepare() {
18
src_prepare() {
20
	use man && echo -e 'GENERATE_MAN=YES\nGENERATE_HTML=NO' >> Doxyfile
19
	use man && echo -e 'GENERATE_MAN=YES\nGENERATE_HTML=NO' >> Doxyfile
21
- 

Return to bug 640974