diff options
author | Timo Gurr <tgurr@gentoo.org> | 2007-11-21 19:33:34 +0000 |
---|---|---|
committer | Timo Gurr <tgurr@gentoo.org> | 2007-11-21 19:33:34 +0000 |
commit | 7f259d78c64d1b6f8d6df88f08a57bece7f8ab0d (patch) | |
tree | fceff58dcfd83e557356feb511fd2f1a1a5fb6d8 /app-editors/kile | |
parent | Stable on ppc wrt bug 199693 (diff) | |
download | gentoo-2-7f259d78c64d1b6f8d6df88f08a57bece7f8ab0d.tar.gz gentoo-2-7f259d78c64d1b6f8d6df88f08a57bece7f8ab0d.tar.bz2 gentoo-2-7f259d78c64d1b6f8d6df88f08a57bece7f8ab0d.zip |
Add kile-2.0.ebuild, fixes bug #196381, bug #196799 and bug #199803. Cleanup older versions and fixed some quoting.
(Portage version: 2.1.3.19)
Diffstat (limited to 'app-editors/kile')
-rw-r--r-- | app-editors/kile/ChangeLog | 11 | ||||
-rw-r--r-- | app-editors/kile/files/digest-kile-1.9.2-r1 | 3 | ||||
-rw-r--r-- | app-editors/kile/files/digest-kile-2.0 | 3 | ||||
-rw-r--r-- | app-editors/kile/files/digest-kile-2.0_beta1 | 3 | ||||
-rw-r--r-- | app-editors/kile/files/kile-1.9.2-backupfile.patch | 69 | ||||
-rw-r--r-- | app-editors/kile/files/kile-1.9_rc1-gcc41.patch | 13 | ||||
-rw-r--r-- | app-editors/kile/files/kile-2.0-desktopentry.patch | 11 | ||||
-rw-r--r-- | app-editors/kile/kile-1.9.2-r1.ebuild | 47 | ||||
-rw-r--r-- | app-editors/kile/kile-1.9.3.ebuild | 6 | ||||
-rw-r--r-- | app-editors/kile/kile-2.0.ebuild | 72 | ||||
-rw-r--r-- | app-editors/kile/kile-2.0_beta1.ebuild | 57 |
11 files changed, 99 insertions, 196 deletions
diff --git a/app-editors/kile/ChangeLog b/app-editors/kile/ChangeLog index 5e4f14fe19f9..0ee73c22e830 100644 --- a/app-editors/kile/ChangeLog +++ b/app-editors/kile/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for app-editors/kile # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/kile/ChangeLog,v 1.97 2007/08/21 22:45:12 philantrop Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/kile/ChangeLog,v 1.98 2007/11/21 19:33:34 tgurr Exp $ + +*kile-2.0 (21 Nov 2007) + + 21 Nov 2007; Timo Gurr <tgurr@gentoo.org> + -files/kile-1.9.2-backupfile.patch, -files/kile-1.9_rc1-gcc41.patch, + +files/kile-2.0-desktopentry.patch, -kile-1.9.2-r1.ebuild, + kile-1.9.3.ebuild, -kile-2.0_beta1.ebuild, +kile-2.0.ebuild: + Add kile-2.0.ebuild, fixes bug #196381, bug #196799 and bug #199803. Cleanup + older versions and fixed some quoting. 21 Aug 2007; Wulf C. Krueger <philantrop@gentoo.org> kile-2.0_beta1.ebuild: diff --git a/app-editors/kile/files/digest-kile-1.9.2-r1 b/app-editors/kile/files/digest-kile-1.9.2-r1 deleted file mode 100644 index 1f96630b8cf3..000000000000 --- a/app-editors/kile/files/digest-kile-1.9.2-r1 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 2f4fa752595c9011fd9292d7ff99d124 kile-1.9.2.tar.bz2 5038779 -RMD160 d3b7245412d57ce38275348fc67b6f8b875a2976 kile-1.9.2.tar.bz2 5038779 -SHA256 292bc8a5d868faf70f7e0b3c868da30ad3ad77b3355ca08389e60e1339175c00 kile-1.9.2.tar.bz2 5038779 diff --git a/app-editors/kile/files/digest-kile-2.0 b/app-editors/kile/files/digest-kile-2.0 new file mode 100644 index 000000000000..b8a261335b94 --- /dev/null +++ b/app-editors/kile/files/digest-kile-2.0 @@ -0,0 +1,3 @@ +MD5 78fed6091aec3f1357c69f6462528ed2 kile-2.0.tar.bz2 5619675 +RMD160 f4e1b03d6be321a82651ac238bc8dfe4e1fc08ab kile-2.0.tar.bz2 5619675 +SHA256 14a7e4605a3ee486b9a7c11e9bd3236bdbd34955d5522eac5da1e511dea6c7e2 kile-2.0.tar.bz2 5619675 diff --git a/app-editors/kile/files/digest-kile-2.0_beta1 b/app-editors/kile/files/digest-kile-2.0_beta1 deleted file mode 100644 index 69ab07d832cf..000000000000 --- a/app-editors/kile/files/digest-kile-2.0_beta1 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 28703b53420e098a08c5f8a72bcb1d75 kile-2.0b1.tar.bz2 2190306 -RMD160 a7466e7770c7efa69b7311fe8e1a80834d25ec32 kile-2.0b1.tar.bz2 2190306 -SHA256 d33752e48caf2a964a6b50cc59081571d71d233e576f9b6c9c31bf254fcd579f kile-2.0b1.tar.bz2 2190306 diff --git a/app-editors/kile/files/kile-1.9.2-backupfile.patch b/app-editors/kile/files/kile-1.9.2-backupfile.patch deleted file mode 100644 index fb1b8dfe8bed..000000000000 --- a/app-editors/kile/files/kile-1.9.2-backupfile.patch +++ /dev/null @@ -1,69 +0,0 @@ ---- kile-1.9.2/src/kile/kiledocmanager.cpp 2006-05-07 23:44:53.000000000 +0200 -+++ kile-1.9.3/src/kile/kiledocmanager.cpp 2006-11-18 20:55:03.000000000 +0100 -@@ -34,6 +34,7 @@ - #include <kio/netaccess.h> - #include <kpushbutton.h> - #include <kurl.h> -+#include <kfileitem.h> - - #include "kileuntitled.h" - #include "templates.h" -@@ -743,10 +747,8 @@ - { - Kate::View *view; - QFileInfo fi; -- bool successBackup; - int saveResult; -- QString backupFileName; -- KURL url; -+ KURL url, backupUrl; - - kdDebug() << "===Kile::fileSaveAll=================" << endl; - kdDebug() << "autosaving = " << amAutoSaving << ", DisUntitled = " << disUntitled << endl; -@@ -759,7 +761,6 @@ - { - url = view->getDoc()->url(); - fi.setFile(url.path()); -- backupFileName = url.path()+ ".backup"; - - if ( ( !amAutoSaving && !(disUntitled && url.isEmpty() ) ) // DisregardUntitled is true and we have an untitled doc and don't autosave - || ( amAutoSaving && !url.isEmpty() ) //don't save untitled documents when autosaving -@@ -768,10 +769,34 @@ - { - if (amAutoSaving && fi.size() > 0) // the size check ensures that we don't save empty files (to prevent something like #125809 in the future). - { -- kdDebug() << "autosaving: " << backupFileName << endl; -- successBackup = KIO::NetAccess::file_copy(url, KURL::fromPathOrURL(backupFileName), -1, true, false, kapp->mainWidget()); -- if(!successBackup) -- m_ki->logWidget()->printMsg(KileTool::Error,i18n("The file %1 could not be saved, check the permissions and the free disk space!").arg(backupFileName),i18n("Autosave")); -+ KURL backupUrl = KURL::fromPathOrURL(url.path()+ ".backup"); -+ kdDebug() << "autosaving: " << backupUrl.prettyURL() << endl; -+ -+ // patch for secure permissions, slightly modified for kile by Thomas Braun, taken from #103331 -+ -+ // get the right permissions, start with safe default -+ mode_t perms = 0600; -+ KIO::UDSEntry fentry; -+ if (KIO::NetAccess::stat (url, fentry, kapp->mainWidget())) -+ { -+ kdDebug () << "stating successfull: " << url.prettyURL() << endl; -+ KFileItem item (fentry, url); -+ perms = item.permissions(); -+ } -+ -+ // first del existing file if any, than copy over the file we have -+ // failure if a: the existing file could not be deleted, b: the file could not be copied -+ if ( (!KIO::NetAccess::exists( backupUrl, false, kapp->mainWidget() ) -+ || KIO::NetAccess::del( backupUrl, kapp->mainWidget() ) ) -+ && KIO::NetAccess::file_copy( url, backupUrl, perms, true, false, kapp->mainWidget() ) ) -+ { -+ kdDebug()<<"backing up successfull ("<<url.prettyURL()<<" -> "<<backupUrl.prettyURL()<<")"<<endl; -+ } -+ else -+ { -+ kdDebug()<<"backing up failed ("<<url.prettyURL()<<" -> "<<backupUrl.prettyURL()<<")"<<endl; -+ m_ki->logWidget()->printMsg(KileTool::Error,i18n("The file %1 could not be saved, check the permissions and the free disk space!").arg(backupUrl.prettyURL()),i18n("Autosave")); -+ } - } - - kdDebug() << "saving: " << url.path() << endl; diff --git a/app-editors/kile/files/kile-1.9_rc1-gcc41.patch b/app-editors/kile/files/kile-1.9_rc1-gcc41.patch deleted file mode 100644 index 8a3a58f0e69c..000000000000 --- a/app-editors/kile/files/kile-1.9_rc1-gcc41.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: kile-1.9rc1/src/kile/kiledocumentinfo.h -=================================================================== ---- kile-1.9rc1.orig/src/kile/kiledocumentinfo.h -+++ kile-1.9rc1/src/kile/kiledocumentinfo.h -@@ -99,7 +99,7 @@ public: - static KURL repairInvalidCharacters(const KURL&); - static KURL repairExtension(const KURL&); - static KURL makeValidTeXURL(const KURL & url); -- static KURL Info::renameIfExist(const KURL& url); -+ static KURL renameIfExist(const KURL& url); - - public: - Info(Kate::Document *doc, LatexCommands *commands); diff --git a/app-editors/kile/files/kile-2.0-desktopentry.patch b/app-editors/kile/files/kile-2.0-desktopentry.patch new file mode 100644 index 000000000000..b7f3f8361ceb --- /dev/null +++ b/app-editors/kile/files/kile-2.0-desktopentry.patch @@ -0,0 +1,11 @@ +diff -Naur kile-2.0/src/kile/kile.desktop kile-2.0.new/src/kile/kile.desktop +--- kile-2.0/src/kile/kile.desktop 2007-06-01 08:45:56.000000000 +0200 ++++ kile-2.0.new/src/kile/kile.desktop 2007-11-21 12:02:51.163648540 +0100 +@@ -77,6 +77,6 @@ + GenericName[uk]=Інтерфейс до LaTeX + GenericName[xx]=xxLaTeX Frontendxx + GenericName[zh_CN]=LaTeX 前端 +-MimeType=text/x-tex;text/x-kilepr ++MimeType=text/x-tex;text/x-kilepr; + Categories=Qt;KDE;Office; + Encoding=UTF-8 diff --git a/app-editors/kile/kile-1.9.2-r1.ebuild b/app-editors/kile/kile-1.9.2-r1.ebuild deleted file mode 100644 index af67205aaef0..000000000000 --- a/app-editors/kile/kile-1.9.2-r1.ebuild +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/kile/kile-1.9.2-r1.ebuild,v 1.7 2006/11/23 17:34:35 dertobi123 Exp $ - -inherit kde - -MY_P="${P/_rc/rc}" -S="${WORKDIR}/${MY_P}" - -DESCRIPTION="A Latex Editor and TeX shell for kde" -HOMEPAGE="http://kile.sourceforge.net/" -SRC_URI="mirror://sourceforge/kile/${MY_P}.tar.bz2" -LICENSE="GPL-2" - -SLOT=0 -KEYWORDS="amd64 hppa ppc ppc64 sparc x86" -IUSE="kde" - -RDEPEND="dev-lang/perl - virtual/tetex - dev-tex/latex2html - kde? ( || ( ( kde-base/kpdf - kde-base/kghostview - kde-base/kdvi - kde-base/kviewshell ) - kde-base/kdegraphics ) )" - -need-kde 3.2 - -LANGS="br ca cs cy da de el en_GB es et eu fi fr ga gl hi hu is it ja lt mt nb -nl nn pa pl pt pt_BR ro ru rw sk sr sr@Latn sv ta tr zh_CN" -for lang in ${LANGS}; do - IUSE="${IUSE} linguas_${lang}" -done - -PATCHES="${FILESDIR}/${P}-backupfile.patch" - -src_unpack() { - kde_src_unpack - - if [[ -n ${LINGUAS} ]]; then - MAKE_TRANSL=$(echo $(echo "${LINGUAS} ${LANGS}" | fmt -w 1 | sort | uniq -d)) - einfo "Building translations for: ${MAKE_TRANSL}" - sed -i -e "s:^SUBDIRS.*=.*:SUBDIRS = ${MAKE_TRANSL}:" ${S}/translations/Makefile.am || die "sed for locale failed" - rm -f ${S}/configure - fi -} diff --git a/app-editors/kile/kile-1.9.3.ebuild b/app-editors/kile/kile-1.9.3.ebuild index 85d7e0fa3e19..a51c333c6bb0 100644 --- a/app-editors/kile/kile-1.9.3.ebuild +++ b/app-editors/kile/kile-1.9.3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/kile/kile-1.9.3.ebuild,v 1.7 2007/04/11 19:05:17 corsair Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/kile/kile-1.9.3.ebuild,v 1.8 2007/11/21 19:33:34 tgurr Exp $ inherit kde @@ -39,7 +39,7 @@ src_unpack() { if [[ -n ${LINGUAS} ]]; then MAKE_TRANSL=$(echo $(echo "${LINGUAS} ${LANGS}" | fmt -w 1 | sort | uniq -d)) einfo "Building translations for: ${MAKE_TRANSL}" - sed -i -e "s:^SUBDIRS.*=.*:SUBDIRS = ${MAKE_TRANSL}:" ${S}/translations/Makefile.am || die "sed for locale failed" - rm -f ${S}/configure + sed -i -e "s:^SUBDIRS.*=.*:SUBDIRS = ${MAKE_TRANSL}:" "${S}/translations/Makefile.am" || die "sed for locale failed" + rm -f "${S}/configure" fi } diff --git a/app-editors/kile/kile-2.0.ebuild b/app-editors/kile/kile-2.0.ebuild new file mode 100644 index 000000000000..729ff6042b7c --- /dev/null +++ b/app-editors/kile/kile-2.0.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-editors/kile/kile-2.0.ebuild,v 1.1 2007/11/21 19:33:34 tgurr Exp $ + +inherit kde + +DESCRIPTION="A Latex Editor and TeX shell for kde" +HOMEPAGE="http://kile.sourceforge.net/" +SRC_URI="mirror://sourceforge/kile/${P}.tar.bz2" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="kde" + +RDEPEND="dev-lang/perl + virtual/latex-base + dev-tex/latex2html + kde? ( || ( ( kde-base/kpdf + kde-base/kghostview + kde-base/kdvi + kde-base/kviewshell ) + kde-base/kdegraphics ) )" + +need-kde 3.5 + +LANGS="ar bg br ca cs cy da de el en_GB es et eu fi fr ga gl hi hu is it ja lt ms mt nb +nds nl nn pa pl pt pt_BR ro ru rw sk sr sr@Latn sv ta th tr uk zh_CN" +for lang in ${LANGS}; do + IUSE="${IUSE} linguas_${lang}" +done + +PATCHES="${FILESDIR}/${P}-desktopentry.patch" + +src_unpack() { + kde_src_unpack + + if [[ -n ${LINGUAS} ]]; then + MAKE_TRANSL=$(echo $(echo "${LINGUAS} ${LANGS}" | fmt -w 1 | sort | uniq -d)) + sed -i -e "s:^SUBDIRS.*=.*:SUBDIRS = ${MAKE_TRANSL}:" "${S}/translations/Makefile.am" || die "sed for locale failed" + rm -f "${S}/configure" + fi +} + +src_install() { + kde_src_install + + dodoc AUTHORS ChangeLog README README.cwl README.MacOSX TODO || die "installing docs failed" +} + +pkg_postinst() { + echo + elog "${P} can use the following optional tools:" + elog "- Adobe Reader (PDF Viewer) - app-text/acroread" + elog "- DVIPNG (PNG previews) - app-text/dvipng" + elog "- ImageMagick (PNG previews) - media-gfx/imagemagick" + elog "- zip (Archive) - app-arch/zip" + elog "- DBlatex (Docbook to LaTeX) - cf. Gentoo bug 129368" + elog "- Asymptote - media-gfx/asymptote" + elog "- Tex4ht (LaTeX to Web) - dev-tex/tex4ht" + elog "- Lilypond (Music Typesetting) - media-sound/lilypond" + elog "- Web-Browser (either of) - kde-base/konqueror" + elog " - www-client/mozilla-firefox" + elog " - www-client/seamonkey" + elog "For viewing BibTeX files:" + elog "- Kbibtex - app-text/kbibtex" + elog "- KBib - cf. Gentoo bug 147057" + elog "- JabRef - app-text/jabref" + elog "- pybliographer - app-office/pybliographer" + echo + elog "If you want to use either of these, please install them separately." +} diff --git a/app-editors/kile/kile-2.0_beta1.ebuild b/app-editors/kile/kile-2.0_beta1.ebuild deleted file mode 100644 index 8946840b4539..000000000000 --- a/app-editors/kile/kile-2.0_beta1.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/kile/kile-2.0_beta1.ebuild,v 1.2 2007/08/21 22:45:12 philantrop Exp $ - -inherit kde - -MY_P="${P/_beta/b}" -DESCRIPTION="A Latex Editor and TeX shell for kde" -HOMEPAGE="http://kile.sourceforge.net/" -SRC_URI="mirror://sourceforge/kile/${MY_P}.tar.bz2" -LICENSE="GPL-2" - -SLOT=0 -KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" -IUSE="kde" - -RDEPEND="dev-lang/perl - virtual/tetex - dev-tex/latex2html - kde? ( || ( ( kde-base/kpdf - kde-base/kghostview - kde-base/kdvi - kde-base/kviewshell ) - kde-base/kdegraphics ) )" - -need-kde 3.2 - -S="${WORKDIR}/${MY_P}" - -src_install() { - kde_src_install - - dodoc AUTHORS ChangeLog COPYING README README.cwl README.MacOSX TODO || die "installing docs failed" -} - -pkg_postinst() { - echo - elog "${P} can use the following optional tools:" - elog "- Adobe Reader (PDF Viewer) - app-text/acroread" - elog "- DVIPNG (PNG previews) - app-text/dvipng" - elog "- ImageMagick (PNG previews) - media-gfx/imagemagick" - elog "- zip (Archive) - app-arch/zip" - elog "- DBlatex (Docbook to LaTeX) - cf. Gentoo bug 129368" - elog "- Asymptote - media-gfx/asymptote" - elog "- Tex4ht (LaTeX to Web) - dev-tex/tex4ht" - elog "- Lilypond (Music Typesetting) - media-sound/lilypond" - elog "- Web-Browser (either of) - kde-base/konqueror" - elog " - www-client/mozilla-firefox" - elog " - www-client/seamonkey" - elog "For viewing BibTeX files:" - elog "- Kbibtex - app-text/kbibtex" - elog "- KBib - cf. Gentoo bug 147057" - elog "- JabRef - app-text/jabref" - elog "- pybliographer - app-office/pybliographer" - echo - elog "If you want to use either of these, please install them separately." -} |