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

(-)/usr/portage/app-text/djvu/djvu-3.5.14.ebuild (-14 / +36 lines)
Lines 2-43 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/app-text/djvu/djvu-3.5.14.ebuild,v 1.5 2005/01/01 16:08:56 eradicator Exp $
3
# $Header: /var/cvsroot/gentoo-x86/app-text/djvu/djvu-3.5.14.ebuild,v 1.5 2005/01/01 16:08:56 eradicator Exp $
4
4
5
inherit nsplugins flag-o-matic
5
inherit nsplugins flag-o-matic fdo-mime
6
6
7
MY_P="${PN}libre-${PV}"
7
MY_P="${PN}libre-${PV}"
8
8
9
DESCRIPTION="A web-centric format and software platform for distributing documents and images."
9
DESCRIPTION="DjVu viewers, encoders and utilities."
10
HOMEPAGE="http://djvu.sourceforge.net"
10
HOMEPAGE="http://djvu.sourceforge.net"
11
SRC_URI="mirror://sourceforge/djvu/${MY_P}.tar.gz"
11
SRC_URI="mirror://sourceforge/djvu/${MY_P}.tar.gz"
12
12
13
LICENSE="GPL-2"
13
LICENSE="GPL-2"
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="x86 sparc ~amd64 ppc"
15
KEYWORDS="x86 sparc ~amd64 ppc"
16
IUSE="xml qt"
16
IUSE="xml qt jpeg tiff debug threads nls pic nsplugin kde"
17
17
18
DEPEND=">=media-libs/jpeg-6b-r2
18
DEPEND="jpeg? ( >=media-libs/jpeg-6b-r2 )
19
	tiff? ( media-libs/tiff )
19
	qt? ( >=x11-libs/qt-2.3 )"
20
	qt? ( >=x11-libs/qt-2.3 )"
20
21
21
S=${WORKDIR}/${MY_P}
22
S=${WORKDIR}/${MY_P}
22
23
24
src_unpack() {
25
	unpack ${A}
26
	
27
	# Replace autochecking acdesktop.m4 with a gentoo-specific one
28
	cp ${FILESDIR}/gentoo-acdesktop.m4 ${S}/gui/desktop/acdesktop.m4
29
30
	cd ${S}
31
	aclocal -I config -I gui/desktop || die "aclocal failed"
32
	autoconf || die "autoconf failed"
33
	libtoolize --copy --force
34
}
35
23
src_compile() {
36
src_compile() {
24
	# assembler problems and hence non-building with pentium4 
37
	# assembler problems and hence non-building with pentium4 
25
	# <obz@gentoo.org>
38
	# <obz@gentoo.org>
26
	replace-flags -march=pentium4 -march=pentium3
39
	replace-flags -march=pentium4 -march=pentium3
27
40
28
	local myconf=""
41
	if use kde; then
29
	use xml \
42
		export kde_mimelnk=/usr/share/mimelnk
30
		&& myconf="${myconf} --enable-xmltools"
43
	fi
31
	use qt \
44
32
		|| myconf="${myconf} --without-qt"
45
	econf --enable-desktopfiles \
46
		$(use_enable xml xmltools) \
47
		$(use_with qt) \
48
		$(use_with jpeg) \
49
		$(use_with tiff) \
50
		$(use_with pic) \
51
		$(use_enable threads) \
52
		$(use_enable nls i18n) \
53
		$(use_enable debug) \
54
		|| die "econf failed"
55
56
	if use ! nsplugin; then
57
		sed -e 's:nsdjvu::' -i ${S}/gui/Makefile
58
	fi
33
59
34
	econf ${myconf} || die "econf failed"
35
	make depend || die "make depend failed"
36
	emake -j1 || die "emake failed"
60
	emake -j1 || die "emake failed"
37
}
61
}
38
62
39
src_install() {
63
src_install() {
40
	einstall || die
64
	make DESTDIR=${D} plugindir=${D}/usr/lib/${PLUGINS_DIR} install
41
	# plugin installation from eclass
42
	inst_plugin /usr/lib/netscape/plugins/nsdejavu.so
43
}
65
}

Return to bug 83311