blob: 92b9ec27e0c8fc3e41172c21bf90be1c94b51bdc (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/cute/cute-0.2.8.ebuild,v 1.7 2005/07/01 13:48:06 caleb Exp $
inherit distutils
MY_P=${PN}-${PV/*.*.*.*/${PV%.*}-${PV##*.}}
DESCRIPTION="CUTE is a Qt and Scintilla based text editor which can be easily extended using Python"
HOMEPAGE="http://cute.sourceforge.net/"
SRC_URI="mirror://sourceforge/cute/${MY_P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86 ~ppc"
IUSE="doc"
DEPEND="sys-apps/sed
virtual/python
>=x11-libs/qt-3.1
>=dev-python/qscintilla-1.60"
src_unpack() {
unpack ${A}
distutils_python_version
cd ${S}/cute
sed -i -e "s:../qscintilla/:${QTDIR}:" -e "s:python2.2:python${PYVER}:g" cute.pro
}
src_compile() {
cd ${S}/cute
[ -d "$QTDIR/etc/settings" ] && addwrite "$QTDIR/etc/settings"
addpredict "$QTDIR/etc/settings"
${QTDIR}/bin/qmake -o Makefile cute.pro
sed -i -e "s:CFLAGS = -pipe -O2:CFLAGS = ${CFLAGS}:" \
-e "s:CXXFLAGS = -pipe -O2:CXXFLAGS = ${CXXFLAGS}:" Makefile
emake || die
}
src_install() {
dobin ${S}/bin/cute
use doc && ( dohtml -r ${S}/cute/doc/doc/*
dosym index.html /usr/share/doc/${PF}/html/book1.html
insinto /usr/share/doc/${PF}/api
doins ${S}/cute/cute-api/html/* )
insinto /usr/share/cute/langs
doins ${S}/cute/langs/*
insinto /usr/share/cute/lib/scripts/
doins ${S}/cute/scripts/*
insinto /usr/share/icons
doins ${S}/cute/icons/cute.xpm
dodoc changelog.txt LICENSE INSTALL README
}
|