app-editors/ted: drop 2.23 (EAPI 5)

Closes: https://bugs.gentoo.org/784209
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2021-04-22 04:07:09 +01:00
parent 8a10e3610a
commit 8b136e1e8e
2 changed files with 0 additions and 85 deletions

View File

@@ -1,11 +0,0 @@
--- Makefile.orig 2013-04-01 13:24:45.854051804 +0400
+++ Makefile 2013-04-01 13:25:02.618052336 +0400
@@ -246,7 +246,7 @@
: To install Ted, you can now run 'make install' AS ROOT
package.shared: compile.shared tedPackage/makefile
- cd tedPackage && make package.shared
+ cd tedPackage && $(MAKE) package.shared
:
: Dynamically linked package ready.
: To install Ted, you can now run 'make install' AS ROOT

View File

@@ -1,74 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit epatch toolchain-funcs xdg-utils
DESCRIPTION="X-based rich text editor"
HOMEPAGE="https://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"
RDEPEND="x11-libs/gtk+:2
media-libs/tiff:=
virtual/jpeg:=
media-libs/libpng:=
x11-libs/libXft
x11-libs/libXpm"
DEPEND="${RDEPEND}
virtual/pkgconfig"
S="${WORKDIR}/Ted-${PV}"
src_prepare() {
epatch "${FILESDIR}"/${P}-make.patch \
"${FILESDIR}"/${P}-freetype261.patch
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'
# Fix build with freetype-2.5
sed -i "s|^\(#[ \t]*include[ \t]*<\)freetype/|\1|" appFrame/appFontConfig.c || die
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
done
}
src_compile() {
emake package.shared
}
src_install() {
default
dosym ../share/Ted/examples/rtf2pdf.sh /usr/bin/rtf2pdf.sh
}
pkg_postinst() {
xdg_desktop_database_update
}
pkg_postrm() {
xdg_desktop_database_update
}