/[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.11 - (hide annotations) (download)
Thu May 3 18:33:03 2012 UTC (2 years, 3 months ago) by jdhore
Branch: MAIN
Changes since 1.10: +2 -2 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 pacho 1.10 # Copyright 1999-2012 Gentoo Foundation
2 truedfx 1.1 # Distributed under the terms of the GNU General Public License v2
3 jdhore 1.11 # $Header: /var/cvsroot/gentoo-x86/app-editors/ted/ted-2.21.ebuild,v 1.10 2012/03/03 19:18:38 pacho Exp $
4 truedfx 1.1
5 ssuominen 1.6 EAPI=4
6     inherit eutils toolchain-funcs
7 truedfx 1.1
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 armin76 1.9 KEYWORDS="amd64 ppc sparc x86"
15 truedfx 1.1 IUSE=""
16    
17 ssuominen 1.6 RDEPEND="x11-libs/gtk+:2
18     media-libs/tiff
19 signals 1.2 virtual/jpeg
20 ssuominen 1.6 media-libs/libpng
21     x11-libs/libXpm"
22     DEPEND="${RDEPEND}
23 jdhore 1.11 virtual/pkgconfig"
24 truedfx 1.1
25     S=${WORKDIR}/Ted-${PV}
26    
27     src_prepare() {
28 ssuominen 1.4 epatch "${FILESDIR}"/${P}-libpng15.patch
29 pacho 1.10 epatch "${FILESDIR}"/${P}-make.patch
30 truedfx 1.1
31     sed -i -e 's|/Ted/|/share/Ted/|' \
32     "${S}"/appFrame/appFrameConfig.h.in \
33     "${S}"/Ted/tedConfig.h.in || die
34 ssuominen 1.6
35 truedfx 1.1 mkdir lib || die
36     }
37    
38     src_configure() {
39 ssuominen 1.6 tc-export CC
40    
41     local dir
42     for dir in appFrame appUtil bitmap docBuf ind Ted tedPackage; do
43 truedfx 1.1 cd "${S}"/${dir}
44 ssuominen 1.6 econf --cache-file=../config.cache || die "configure in ${dir} failed"
45 truedfx 1.1 done
46     }
47    
48     src_compile() {
49 ssuominen 1.6 emake package.shared
50 truedfx 1.1 }
51    
52     src_install() {
53 ssuominen 1.6 cd tedPackage
54     RPM_BUILD_ROOT=${D} ./installTed.sh COMMON || die
55 truedfx 1.1
56     dodir /usr/share
57 ssuominen 1.7 mv "${ED}"usr/Ted "${ED}"usr/share/Ted
58 pacho 1.10 dosym /usr/share/Ted/rtf2pdf.sh /usr/bin/rtf2pdf.sh
59 truedfx 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20