blob: fc2c1bbf6f3dc6bea4e4cf0b3ddc178299826af5 (
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
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/scribus-0.8.ebuild,v 1.4 2002/11/28 22:17:14 hanno Exp $
S=${WORKDIR}/${P}
DESCRIPTION="Scribus is a Layout program"
HOMEPAGE="http://web2.altmuehlnet.de/fschmid"
SRC_URI="http://web2.altmuehlnet.de/fschmid/${P}.tar.gz"
IUSE="kde"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ~ppc"
DEPEND="=x11-libs/qt-3*
media-libs/freetype
media-libs/lcms
sys-libs/zlib"
CXXFLAGS="${CXXFLAGS} -I/usr/include/lcms"
src_unpack() {
unpack ${P}.tar.gz
patch -p0 < ${FILESDIR}/Fonts.diff
patch -p0 < ${FILESDIR}/Palette.diff
}
src_compile() {
econf || die "./configure failed"
emake || die "make failed"
mv debian/scribus-debian.xpm debian/scribus.xpm
}
src_install () {
einstall destdir=${D} || die "couldn't be installed"
dodoc AUTHORS ChangeLog README TODO
# Fixing desktop.scribus
use kde &&
(
inherit kde-functions
set-kdedir 3
sed -e 's/local\///' desktop.scribus > desktop.scribus.2
echo "Name=Scribus" >> desktop.scribus.2
cp -f desktop.scribus.2 scribus.desktop
insinto ${PREFIX}/share/applnk/Graphics
doins scribus.desktop
)
# Copy the pixmaps to the generic place
insinto /usr/share/pixmaps/
doins debian/scribus.xpm
dosym /usr/share/scribus/doc /usr/share/doc/${PF}/html
}
|