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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue Sep 2 11:13:08 2014 UTC (5 years, 5 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +5 -2 lines
Fix build with freetype-2.5

(Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2014 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.23.ebuild,v 1.5 2013/06/29 16:25:48 ago Exp $
4
5 EAPI=5
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
16 RDEPEND="x11-libs/gtk+:2
17 media-libs/tiff
18 virtual/jpeg
19 media-libs/libpng
20 x11-libs/libXft
21 x11-libs/libXpm"
22 DEPEND="${RDEPEND}
23 virtual/pkgconfig"
24
25 S="${WORKDIR}/Ted-${PV}"
26
27 src_prepare() {
28 epatch "${FILESDIR}"/${P}-make.patch
29
30 sed -i -e 's|/Ted/|/share/Ted/|' \
31 "${S}"/appFrame/appFrameConfig.h.in \
32 "${S}"/Ted/tedConfig.h.in || die
33
34 # bug #461256
35 find . -name makefile.in -exec sed -i -e '/ar r/s/ar/$(AR)/' {} \; || die
36
37 # force to build dynamic binary, do not strip it
38 sed -i \
39 -e 's/.static//g' \
40 -e '/strip/d' \
41 tedPackage/makefile.in || die 'sed failed on tedPackage/makefile.in'
42
43 # Fix build with freetype-2.5
44 sed -i "s|^\(#[ \t]*include[ \t]*<\)freetype/|\1|" appFrame/appFontConfig.c || die
45
46 mkdir lib || die
47 }
48
49 src_configure() {
50 tc-export AR CC RANLIB
51
52 local dir
53 for dir in appFrame appUtil bitmap docBuf ind Ted tedPackage; do
54 cd "${S}"/${dir}
55 econf --cache-file=../config.cache || die "configure in ${dir} failed"
56 done
57 }
58
59 src_compile() {
60 emake package.shared
61 }
62
63 src_install() {
64 default
65 dosym /usr/share/Ted/examples/rtf2pdf.sh /usr/bin/rtf2pdf.sh
66 }

  ViewVC Help
Powered by ViewVC 1.1.20