/[gentoo-x86]/app-editors/ted/ted-2.21.ebuild
Gentoo

Contents of /app-editors/ted/ted-2.21.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Thu Mar 14 13:51:31 2013 UTC (21 months, 1 week ago) by kensington
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.1.11.55/cvs/Linux x86_64, signed Manifest commit with key 675D0D2C)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-editors/ted/ted-2.21.ebuild,v 1.11 2012/05/03 18:33:03 jdhore Exp $
4
5 EAPI=4
6 inherit eutils toolchain-funcs
7
8 DESCRIPTION="X-based rich text editor"
9 HOMEPAGE="http://www.nllgg.nl/Ted"
10 SRC_URI="ftp://ftp.nluug.nl/pub/editors/ted/${P}.src.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 ppc sparc x86"
15 IUSE=""
16
17 RDEPEND="x11-libs/gtk+:2
18 media-libs/tiff
19 virtual/jpeg
20 media-libs/libpng
21 x11-libs/libXpm"
22 DEPEND="${RDEPEND}
23 virtual/pkgconfig"
24
25 S=${WORKDIR}/Ted-${PV}
26
27 src_prepare() {
28 epatch "${FILESDIR}"/${P}-libpng15.patch
29 epatch "${FILESDIR}"/${P}-make.patch
30
31 sed -i -e 's|/Ted/|/share/Ted/|' \
32 "${S}"/appFrame/appFrameConfig.h.in \
33 "${S}"/Ted/tedConfig.h.in || die
34
35 mkdir lib || die
36 }
37
38 src_configure() {
39 tc-export CC
40
41 local dir
42 for dir in appFrame appUtil bitmap docBuf ind Ted tedPackage; do
43 cd "${S}"/${dir}
44 econf --cache-file=../config.cache || die "configure in ${dir} failed"
45 done
46 }
47
48 src_compile() {
49 emake package.shared
50 }
51
52 src_install() {
53 cd tedPackage
54 RPM_BUILD_ROOT=${D} ./installTed.sh COMMON || die
55
56 dodir /usr/share
57 mv "${ED}"usr/Ted "${ED}"usr/share/Ted
58 dosym /usr/share/Ted/rtf2pdf.sh /usr/bin/rtf2pdf.sh
59 }

  ViewVC Help
Powered by ViewVC 1.1.20