2015-10-15 13:06:39 +03:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
2013-04-01 18:18:31 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-11 00:17:55 +03:00
|
|
|
# $Id$
|
2013-04-01 18:18:31 +04:00
|
|
|
|
|
|
|
EAPI=5
|
|
|
|
inherit eutils toolchain-funcs
|
|
|
|
|
|
|
|
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"
|
2013-07-01 01:37:31 +04:00
|
|
|
KEYWORDS="amd64 ppc sparc x86"
|
2013-04-01 18:18:31 +04:00
|
|
|
|
|
|
|
RDEPEND="x11-libs/gtk+:2
|
2015-10-15 13:06:39 +03:00
|
|
|
media-libs/tiff:=
|
|
|
|
virtual/jpeg:=
|
|
|
|
media-libs/libpng:=
|
2013-04-01 18:18:31 +04:00
|
|
|
x11-libs/libXft
|
|
|
|
x11-libs/libXpm"
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
virtual/pkgconfig"
|
|
|
|
|
|
|
|
S="${WORKDIR}/Ted-${PV}"
|
|
|
|
|
|
|
|
src_prepare() {
|
2015-10-15 13:06:39 +03:00
|
|
|
epatch "${FILESDIR}"/${P}-make.patch \
|
|
|
|
"${FILESDIR}"/${P}-freetype261.patch
|
2013-04-01 18:18:31 +04:00
|
|
|
|
|
|
|
sed -i -e 's|/Ted/|/share/Ted/|' \
|
|
|
|
"${S}"/appFrame/appFrameConfig.h.in \
|
|
|
|
"${S}"/Ted/tedConfig.h.in || die
|
|
|
|
|
|
|
|
# bug #461256
|
|
|
|
find . -name makefile.in -exec sed -i -e '/ar r/s/ar/$(AR)/' {} \; || die
|
|
|
|
|
|
|
|
# force to build dynamic binary, do not strip it
|
|
|
|
sed -i \
|
|
|
|
-e 's/.static//g' \
|
|
|
|
-e '/strip/d' \
|
|
|
|
tedPackage/makefile.in || die 'sed failed on tedPackage/makefile.in'
|
|
|
|
|
2014-09-02 18:42:27 +04:00
|
|
|
# Fix build with freetype-2.5
|
|
|
|
sed -i "s|^\(#[ \t]*include[ \t]*<\)freetype/|\1|" appFrame/appFontConfig.c || die
|
|
|
|
|
2013-04-01 18:18:31 +04:00
|
|
|
mkdir lib || die
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
tc-export AR CC RANLIB
|
|
|
|
|
|
|
|
local dir
|
|
|
|
for dir in appFrame appUtil bitmap docBuf ind Ted tedPackage; do
|
|
|
|
cd "${S}"/${dir}
|
|
|
|
econf --cache-file=../config.cache || die "configure in ${dir} failed"
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
emake package.shared
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
|
|
|
dosym /usr/share/Ted/examples/rtf2pdf.sh /usr/bin/rtf2pdf.sh
|
|
|
|
}
|