blob: ee9461adfeb85ab184043e69d33c448ecce8dadb (
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
57
58
59
60
61
62
63
64
65
66
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/ted/ted-2.17.ebuild,v 1.3 2005/08/28 16:03:56 metalgod Exp $
DESCRIPTION="X-based rich text editor"
HOMEPAGE="http://www.nllgg.nl/Ted"
SRC_URI="ftp://ftp.nluug.nl/pub/editors/ted/${P}.src.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE=""
DEPEND="x11-libs/openmotif
>=media-libs/tiff-3.5.7
>=media-libs/jpeg-6b
>=media-libs/libpng-1.2.3"
S="${WORKDIR}/Ted-${PV}"
src_unpack() {
unpack ${A}
cd "${S}"/Ted
sed -i \
-e 's@^CFLAGS=@CFLAGS= -DDOCUMENT_DIR=\\"/usr/share/doc/${PF}/Ted/\\"@' \
makefile.in
}
src_compile() {
# This is a fix for userpriv &| usersandbox.
export RPM_BUILD_ROOT="${S}"
for dir in Ted tedPackage appFrame appUtil ind bitmap libreg; do
cd ${S}/${dir}
econf --cache-file=../config.cache || die "econf failed"
done
# The makefile doesn't really allow parallel make, but it does
# no harm either.
cd ${S}
emake \
DEF_AFMDIR=-DAFMDIR=\\\"/usr/share/Ted/afm\\\" \
DEF_INDDIR=-DINDDIR=\\\"/usr/share/Ted/ind\\\" \
package.shared \
|| die "couldnt emake"
}
src_install() {
# This is a fix for userpriv &| usersandbox.
export RPM_BUILD_ROOT="${S}"
mkdir ${T}/pkg
cd ${T}/pkg || die "Couldn't cd to package"
tar --use=gzip -xvf ${S}/tedPackage/Ted*.tar.gz || die "couldnt unpack tedPackage/Ted*.tar.gz"
dodir /usr/share/Ted
cp -R ${T}/pkg/afm ${D}/usr/share/Ted/afm || die "couldnt cp temp/pkg/afm"
cp -R ${T}/pkg/ind ${D}/usr/share/Ted/ind || die "couldnt cp temp/pkg/ind"
exeinto /usr/bin
doexe ${T}/pkg/bin/* || die "couldnt doexe temp/pkg/bin/*"
dodir /usr/share/doc/${P}
cp -R ${T}/pkg/Ted ${D}/usr/share/doc/${P} || die "couldnt cp temp/pkg/Ted"
rm -rf ${T}
}
|