diff options
Diffstat (limited to 'app-editors/ted')
-rw-r--r-- | app-editors/ted/Manifest | 7 | ||||
-rw-r--r-- | app-editors/ted/files/ted-2.23-freetype261.patch | 11 | ||||
-rw-r--r-- | app-editors/ted/files/ted-2.23-make.patch | 11 | ||||
-rw-r--r-- | app-editors/ted/metadata.xml | 5 | ||||
-rw-r--r-- | app-editors/ted/ted-2.23.ebuild | 74 |
5 files changed, 108 insertions, 0 deletions
diff --git a/app-editors/ted/Manifest b/app-editors/ted/Manifest new file mode 100644 index 000000000000..ed4629c7dccc --- /dev/null +++ b/app-editors/ted/Manifest @@ -0,0 +1,7 @@ +AUX ted-2.23-freetype261.patch 273 SHA256 746e38fb5384bb4d3450e86fb62043e8a3c2a9b24a0b731589ff38119c38b5c2 SHA512 f8523865ad47a552d000ee14380c40ffe22cdd5287cb6fd6f79b7afe4a6ae4742aaa999c9c4d2d79e00b538f5b83106ebeb24f1aa25cabb656418759db9c0921 WHIRLPOOL ad30722cbd930d6b65d1e516095d5544748fdb90a5e49830cc0b02f3b2ea03257b43089acff62fe7821cd33aebece633d0e79731092975e8a9a5d3967f8893bf +AUX ted-2.23-make.patch 418 SHA256 737765240afffc6eda88f6299c7f6a5de797d5204d744c27e0e030c05e4eeadb SHA512 a1dc77b4788a71445cb30db010d1413e11c06861c692137747d2d02d1cd16b07fb3dd05e702fd37aad600432a985c86d785465a2fe6ddbe6f506b16cafb80b01 WHIRLPOOL ce9eb527df8e36c9fcf0e2d186c93d59a2c11eeb3a80c88312df3e1646f16d1a46f2a06957a6a60d551d7f9fc9bedcb9e43a155f0d862f25234569f48d2f854a +DIST ted-2.23.src.tar.gz 4672208 SHA256 3fa992c2bc96af3ca788ef941cb5314f4a1d843202efd0201b8b4ee9adbf316c SHA512 c6541e5a07545a08b30cb9b33429d9a7675f9252df32ccca5cdb4f2ff09978085d28d015a42922baf8c95db1ea6379a9d1088541aafd9ce45b8870212496849f WHIRLPOOL 14f757dbc3cee1adae3abcc63ce32d9ebec4de5d5764060826321469a6d2c18339d239e9c0b084aaeb9979595d42411d1f86efb6280e85b7f4e8ea91db7775cd +EBUILD ted-2.23.ebuild 1585 SHA256 35c3990c2b0826afd3f5dd657e5effd106e313ed0a1b3d2ad7693ae488be29f7 SHA512 7e4f0f4b5cfcc47902b1335759689df713792b7d4cf35463058395bd91937e8b8666dd16ad5421aeb3fae0e61174d7644ef73bfa553386ee68b536294ed73a31 WHIRLPOOL bf4c2ec31e47efd46f0677d3ef0eb4d0a9eb4ebe3b75e750dab685cd6df5d17a0041ce4b21eb554ec054d82b7eecdf0b8492c991c104507b83d4100a5ed7fff4 +MISC ChangeLog 2859 SHA256 f54a372c93839b462419b6c4a00a0381d463904532fa1a72d76a365a1573152d SHA512 f8b8e38e4ee736ec1424a83c029fcef7130c123b2a3a00a44e6441ec450384a187c2d7283ea54595771ebba0f5bfa4ca06dc96066693991aab2eb8c6c295502e WHIRLPOOL 6b8f7c1629f15506c8c596f97a38b942b2b9f1e4a14ad67fbcb535826110507aa531142a160101cece508e306db7aa25f72b158c8fccaa8ba11a9399c0554ab0 +MISC ChangeLog-2015 7651 SHA256 a99600ef1c027af927d2ddfafa0a8dddbbe6aeb7e56b728352bf2eafa3800f17 SHA512 e13b844d1a3038c00f3f8ec542c255e543ecbf6b8c877605b42511e6718331249de714efb50b622de1a291484fc8e90a7fd9037849e0a19f90ab84ca03f502d1 WHIRLPOOL 199516aaf1829651610fac8fd19b5789ec0b9cceb934d8e1d40c1e15b7301414eb358f104ccc7309a663524c44bdfb24fd73a9a2a45c41a0e5d052b7d22778ce +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 diff --git a/app-editors/ted/files/ted-2.23-freetype261.patch b/app-editors/ted/files/ted-2.23-freetype261.patch new file mode 100644 index 000000000000..7e185b367194 --- /dev/null +++ b/app-editors/ted/files/ted-2.23-freetype261.patch @@ -0,0 +1,11 @@ +--- Ted-2.23/appFrame/appFontConfig.c ++++ Ted-2.23/appFrame/appFontConfig.c +@@ -889,7 +889,7 @@ + + static const n2s xftn2s[]= + { +-# include <freetype/fterrdef.h> ++# include FT_ERROR_DEFINITIONS_H + }; + + for ( i= 0; i < sizeof(xftn2s)/sizeof(n2s); i++ ) diff --git a/app-editors/ted/files/ted-2.23-make.patch b/app-editors/ted/files/ted-2.23-make.patch new file mode 100644 index 000000000000..f97093b47648 --- /dev/null +++ b/app-editors/ted/files/ted-2.23-make.patch @@ -0,0 +1,11 @@ +--- 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 diff --git a/app-editors/ted/metadata.xml b/app-editors/ted/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/app-editors/ted/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +</pkgmetadata> diff --git a/app-editors/ted/ted-2.23.ebuild b/app-editors/ted/ted-2.23.ebuild new file mode 100644 index 000000000000..47c86d46a256 --- /dev/null +++ b/app-editors/ted/ted-2.23.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils toolchain-funcs xdg-utils + +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" +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 || die "configure in ${dir} failed" + 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 +} |