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

(-)a/dev-lang/mujs/Manifest (+1 lines)
Line 1 Link Here
1
DIST mujs-1.0.5.tar.gz 119353 BLAKE2B 48f1b598e50d5804b0d64230cdd6b4d3f719187ea0906f45c9f45baee2c8df59c6fd09dc25afc9e1ce4e20a9866d158d16a4632bec552fddd8fac70b20e2363f SHA512 c1c59b5e80e0e5f580f30dfc0b4707b6a1e44a73c746b9783bb24d91429ddf8ed670a7663478300cc568cfc15a511720b6d18be2ade40a3a66fc7ab8f3933c2d
1
DIST mujs-1.0.5.tar.gz 119353 BLAKE2B 48f1b598e50d5804b0d64230cdd6b4d3f719187ea0906f45c9f45baee2c8df59c6fd09dc25afc9e1ce4e20a9866d158d16a4632bec552fddd8fac70b20e2363f SHA512 c1c59b5e80e0e5f580f30dfc0b4707b6a1e44a73c746b9783bb24d91429ddf8ed670a7663478300cc568cfc15a511720b6d18be2ade40a3a66fc7ab8f3933c2d
2
DIST mujs-1.0.6_pre20190404104104.tar.gz 121343 BLAKE2B 8cf523ad30f510f1eea0ddeaa69e7ae944653b5ee5a195f690cbc861a0cd00bb7ab47ad0a83d3a36ffec28836911b561ae37e36b3a3896508db193d510769e5f SHA512 360d1b88f9a84e06923eabadcafb1eaab5b77a99777e11650d0e38268d0d63c1b3a592707f659f2f7388fb4d97e661bd3ca5b4cca8c89bcf04b573bfea70fc32
(-)a/dev-lang/mujs/mujs-1.0.6_pre20190404104104.ebuild (-2 / +64 lines)
Line 0 Link Here
0
- 
1
# Copyright 1999-2019 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=7
5
6
inherit flag-o-matic multilib toolchain-funcs
7
8
DESCRIPTION="An embeddable Javascript interpreter in C."
9
HOMEPAGE="
10
	http://mujs.com/
11
	https://github.com/ccxvii/mujs/
12
"
13
if [[ ${PV} == *_pre* ]]; then
14
	MUJS_GIT_REVISION="00d4606c3baf813b7b1c176823b2729bf51002a2"
15
	SRC_URI="https://github.com/ccxvii/${PN}/archive/${MUJS_GIT_REVISION}.tar.gz -> ${P}.tar.gz"
16
else
17
	SRC_URI="https://github.com/ccxvii/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
18
fi
19
20
LICENSE="AGPL-3"
21
SLOT="0/${PV}"
22
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos"
23
IUSE="static-libs"
24
25
RDEPEND="sys-libs/readline:0="
26
DEPEND="${RDEPEND}"
27
28
if [[ ${PV} == *_pre* ]]; then
29
	S="${WORKDIR}/${PN}-${MUJS_GIT_REVISION}"
30
fi
31
32
PATCHES=(
33
	"${FILESDIR}/${PN}-1.0.5-flags.patch"
34
)
35
36
src_prepare() {
37
	default
38
39
	tc-export AR CC
40
41
	append-cflags -fPIC -Wl,-soname=lib${PN}.so.${PV}
42
}
43
44
src_compile() {
45
	emake VERSION=${PV} prefix=/usr shared
46
}
47
48
src_install() {
49
	local myeconfargs=(
50
		DESTDIR="${ED}"
51
		install-shared
52
		libdir="/usr/$(get_libdir)"
53
		prefix="/usr"
54
		VERSION="${PV}"
55
		$(usex static-libs install-static '')
56
	)
57
58
	emake "${myeconfargs[@]}"
59
60
	mv -v "${ED}"/usr/$(get_libdir)/lib${PN}.so{,.${PV}} || die
61
62
	dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so
63
	dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so.${PV:0:1}
64
}
1
bundled copy.
65
bundled copy.
2
--
3
app-text/mupdf/mupdf-1.15.0-r1.ebuild | 125 ++++++++++++++++++++++++++
66
app-text/mupdf/mupdf-1.15.0-r1.ebuild | 125 ++++++++++++++++++++++++++
4
1 file changed, 125 insertions(+)
67
1 file changed, 125 insertions(+)
5
create mode 100644 app-text/mupdf/mupdf-1.15.0-r1.ebuild
68
create mode 100644 app-text/mupdf/mupdf-1.15.0-r1.ebuild
(-)a/app-text/mupdf/mupdf-1.15.0-r1.ebuild (-1 / +125 lines)
Line 0 Link Here
0
- 
1
# Copyright 1999-2019 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=7
5
6
inherit flag-o-matic toolchain-funcs xdg desktop
7
8
DESCRIPTION="a lightweight PDF viewer and toolkit written in portable C"
9
HOMEPAGE="https://mupdf.com/"
10
SRC_URI="https://mupdf.com/downloads/archive/${P}-source.tar.xz"
11
12
LICENSE="AGPL-3"
13
SLOT="0/${PV}"
14
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos"
15
IUSE="X +javascript libressl opengl ssl static-libs vanilla"
16
17
# mujs version with js_repr() and js_tryrepr() functions required which were added in:
18
# https://github.com/ccxvii/mujs/commit/603977ae5bad97d544725cd6c36f9af30e6aef4e
19
RDEPEND="
20
	>=dev-lang/mujs-1.0.6_pre20190322130020:=
21
	media-libs/freetype:2=[static-libs?]
22
	media-libs/harfbuzz:=[static-libs?,truetype]
23
	media-libs/jbig2dec:=[static-libs?]
24
	media-libs/libpng:0=[static-libs?]
25
	>=media-libs/openjpeg-2.1:2=[static-libs?]
26
	virtual/jpeg[static-libs?]
27
	ssl? (
28
		libressl? ( >=dev-libs/libressl-2.8:0=[static-libs?] )
29
		!libressl? ( >=dev-libs/openssl-1.1:0=[static-libs?] )
30
	)
31
	X? (
32
		x11-libs/libX11[static-libs?]
33
		x11-libs/libXext[static-libs?]
34
	)"
35
DEPEND="${RDEPEND}
36
	virtual/pkgconfig"
37
38
REQUIRED_USE="opengl? ( !static-libs )"
39
40
S=${WORKDIR}/${P}-source
41
42
PATCHES=(
43
	"${FILESDIR}"/${PN}-1.15-CFLAGS.patch
44
	"${FILESDIR}"/${PN}-1.15-Makefile.patch
45
	"${FILESDIR}"/${PN}-1.10a-add-desktop-pc-xpm-files.patch
46
	# See bugs #662352
47
	"${FILESDIR}"/${PN}-1.15-openssl-x11.patch
48
)
49
50
src_prepare() {
51
	xdg_src_prepare
52
	use hppa && append-cflags -ffunction-sections
53
54
	use javascript || \
55
		sed -e '/* #define FZ_ENABLE_JS/ a\#define FZ_ENABLE_JS 0' \
56
			-i include/mupdf/fitz/config.h
57
58
	use vanilla || eapply \
59
		"${FILESDIR}"/${PN}-1.3-zoom-2.patch
60
61
	# See bug #670832
62
	use ssl && use libressl && eapply "${FILESDIR}"/${PN}-1.14-libressl.patch
63
64
	sed -e "1iOS = Linux" \
65
		-e "1iCC = $(tc-getCC)" \
66
		-e "1iLD = $(tc-getLD)" \
67
		-e "1iAR = $(tc-getAR)" \
68
		-e "1iverbose = yes" \
69
		-e "1ibuild = debug" \
70
		-e "1iprefix = ${ED}/usr" \
71
		-e "1ilibdir = ${ED}/usr/$(get_libdir)" \
72
		-e "1idocdir = ${ED}/usr/share/doc/${PF}" \
73
		-i Makerules || die
74
}
75
76
_emake() {
77
	# When HAVE_OBJCOPY is yes, we end up with a lot of QA warnings.
78
79
	# We don't use system's freeglut because upstream has a special modified
80
	# version of it that gives mupdf clipboard support. See bug #653298
81
	emake \
82
		GENTOO_PV=${PV} \
83
		HAVE_GLUT=$(usex opengl) \
84
		HAVE_LIBCRYPTO=$(usex ssl) \
85
		HAVE_X11=$(usex X) \
86
		USE_SYSTEM_LIBS=yes \
87
		USE_SYSTEM_MUJS=yes \
88
		USE_SYSTEM_GLUT=no \
89
		HAVE_OBJCOPY=no \
90
		"$@"
91
}
92
93
src_compile() {
94
	_emake XCFLAGS="-fpic"
95
96
	use static-libs && \
97
		_emake build/debug/lib${PN}.a
98
}
99
100
src_install() {
101
	if use X || use opengl ; then
102
		domenu platform/debian/${PN}.desktop
103
		doicon platform/debian/${PN}.xpm
104
	else
105
		rm docs/man/${PN}.1
106
	fi
107
108
	_emake install
109
110
	dosym libmupdf.so.${PV} /usr/$(get_libdir)/lib${PN}.so
111
112
	use static-libs && \
113
		dolib.a build/debug/lib${PN}.a
114
	if use opengl ; then
115
		einfo "mupdf symlink points to mupdf-gl (bug 616654)"
116
		dosym ${PN}-gl /usr/bin/${PN}
117
	elif use X ; then
118
		einfo "mupdf symlink points to mupdf-x11 (bug 616654)"
119
		dosym ${PN}-x11 /usr/bin/${PN}
120
	fi
121
	insinto /usr/$(get_libdir)/pkgconfig
122
	doins platform/debian/${PN}.pc
123
124
	dodoc README CHANGES CONTRIBUTORS
125
}

Return to bug 685590