[arch-commits] Commit in kile/trunk (PKGBUILD kde4_tools.patch kile.install)
Andrea Scarpino
andrea at archlinux.org
Mon Oct 12 17:11:05 UTC 2009
Date: Monday, October 12, 2009 @ 13:11:05
Author: andrea
Revision: 55314
upgpkg: kile 2.1b2-1
kde4 port
Added:
kile/trunk/kile.install
Modified:
kile/trunk/PKGBUILD
Deleted:
kile/trunk/kde4_tools.patch
------------------+
PKGBUILD | 35 +--
kde4_tools.patch | 548 -----------------------------------------------------
kile.install | 11 +
3 files changed, 28 insertions(+), 566 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2009-10-12 17:10:39 UTC (rev 55313)
+++ PKGBUILD 2009-10-12 17:11:05 UTC (rev 55314)
@@ -3,28 +3,27 @@
# Contributor : Damir Perisa <damir.perisa at bluewin.ch>
pkgname=kile
-pkgver=2.0.3
-pkgrel=3
+pkgver=2.1b2
+pkgrel=1
pkgdesc="A user friendly TeX/LaTeX frontend for KDE."
arch=("i686" "x86_64")
license=('GPL2')
url="http://kile.sourceforge.net/"
-depends=('kdelibs3>=3.5.8' 'texlive-core' 'psutils' 'perl')
-source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2" \
- kde4_tools.patch)
-options=(!emptydirs)
-md5sums=('f0296547d3e916dd385e0b8913918852'
- '561a9b87fda781e0fe8db5d4ad7e5d63')
+depends=('kdelibs' 'texlive-core' 'hicolor-icon-theme')
+makedepends=('cmake' 'automoc4')
+install=kile.install
+source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2")
+md5sums=('1fa720754e199037f6b47e541df767ff')
build() {
- cd $srcdir/$pkgname-$pkgver
- . /etc/profile.d/qt3.sh
- . /etc/profile.d/kde3.sh
-
- patch -Np0 -i $srcdir/kde4_tools.patch || return 1
-
- ./configure --prefix=/opt/kde --without-arts --disable-debug
- make || return 1
- make prefix=$pkgdir/opt/kde install
- rm $pkgdir/opt/kde/share/apps/katepart/syntax/{bibtex,latex}.xml
+ cd ${srcdir}
+ mkdir build
+ cd build
+ cmake ../${pkgname}-${pkgver} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_SKIP_RPATH=ON \
+ -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make || return 1
+ make DESTDIR=$pkgdir install || return 1
}
Deleted: kde4_tools.patch
===================================================================
--- kde4_tools.patch 2009-10-12 17:10:39 UTC (rev 55313)
+++ kde4_tools.patch 2009-10-12 17:11:05 UTC (rev 55314)
@@ -1,548 +0,0 @@
---- src/kile/kilestdtools.rc #809350:809351
-@@ -96,29 +96,23 @@
-
- [Tool/DVItoPDF/Default]
- class=Convert
--command=dvipdfm
-+command=dvipdfmx
- options='%S.dvi'
- from=dvi
- to=pdf
- type=Process
-
--[Tool/DVItoPDF/Modern]
-+[Tool/DVItoPDF/Black and White]
- class=Convert
- command=dvipdfmx
--options='%S.dvi'
--from=dvi
--to=pdf
--type=Process
--
--[Tool/DVItoPDF/Black and White]
--command=dvipdfm
- options=-c '%S.dvi'
- from=dvi
- to=pdf
- type=Process
-
- [Tool/DVItoPDF/Landscape]
--command=dvipdfm
-+class=Convert
-+command=dvipdfmx
- options=-l '%S.dvi'
- from=dvi
- to=pdf
-@@ -159,10 +153,21 @@
- jumpToFirstError=yes
- autoRun=yes
-
-+[Tool/LaTeX/Draft]
-+class=LaTeX
-+command=latex
-+options=-draftmode -interaction=nonstopmode '%source'
-+from=
-+to=dvi
-+type=Process
-+checkForRoot=yes
-+jumpToFirstError=yes
-+autoRun=yes
-+
- [Tool/LaTeX/Modern]
- class=LaTeX
- command=latex
--options=-src -interaction=nonstopmode '%source'
-+options=-src-specials -interaction=nonstopmode '%source'
- from=
- to=dvi
- type=Process
-@@ -202,7 +207,7 @@
- to=html
- type=Process
-
--[Tool/MakeIndex/Default]
-+[Tool/MakeIndex/makeindex]
- class=Compile
- command=makeindex
- options='%S.idx'
-@@ -210,6 +215,14 @@
- to=idx
- type=Process
-
-+[Tool/MakeIndex/xindy]
-+class=Compile
-+command=xindy
-+options='%S.idx'
-+from=idx
-+to=idx
-+type=Process
-+
- [Tool/MetaPost/Default]
- class=Compile
- command=mpost
-@@ -251,7 +264,7 @@
- [Tool/PDFLaTeX/Modern]
- class=LaTeX
- command=pdflatex
--options=-src -interaction=nonstopmode '%source'
-+options=-src-specials -interaction=nonstopmode '%source'
- from=
- to=pdf
- type=Process
-@@ -259,6 +272,94 @@
- jumpToFirstError=yes
- autoRun=yes
-
-+[Tool/ConTeXt/PDF]
-+class=LaTeX
-+command=texexec
-+options=--pdf --nonstopmode '%source'
-+from=
-+to=pdf
-+type=Process
-+checkForRoot=no
-+jumpToFirstError=no
-+autoRun=no
-+
-+[Tool/ConTeXt/PDF Draft]
-+class=LaTeX
-+command=pdflatex
-+options=--pdf --draft --nonstopmode '%source'
-+from=
-+to=pdf
-+type=Process
-+checkForRoot=yes
-+jumpToFirstError=yes
-+autoRun=yes
-+
-+[Tool/ConTeXt/DVI and PS]
-+class=LaTeX
-+command=texexec
-+options=--dvi --nonstopmode '%source'
-+from=
-+to=pdf
-+type=Process
-+checkForRoot=no
-+jumpToFirstError=no
-+autoRun=no
-+
-+[Tool/ConTeXt/DVI and PS Draft]
-+class=LaTeX
-+command=texexec
-+options=--dvi --draft --nonstopmode '%source'
-+from=
-+to=pdf
-+type=Process
-+checkForRoot=yes
-+jumpToFirstError=yes
-+autoRun=yes
-+
-+[Tool/PDFLaTeX/Modern]
-+class=LaTeX
-+command=pdflatex
-+options=-src-specials -interaction=nonstopmode '%source'
-+from=
-+to=pdf
-+type=Process
-+checkForRoot=yes
-+jumpToFirstError=yes
-+autoRun=yes
-+
-+[Tool/XeTeX/Default]
-+class=LaTeX
-+command=xetex
-+options=-interaction=nonstopmode '%source'
-+from=
-+to=pdf
-+type=Process
-+checkForRoot=yes
-+jumpToFirstError=yes
-+autoRun=yes
-+
-+[Tool/XeTeX/Draft]
-+class=LaTeX
-+command=xetex
-+options=-draftmode -interaction=nonstopmode '%source'
-+from=
-+to=pdf
-+type=Process
-+checkForRoot=yes
-+jumpToFirstError=yes
-+autoRun=yes
-+
-+[Tool/XeTeX/Modern]
-+class=LaTeX
-+command=xetex
-+options=-src-specials -interaction=nonstopmode '%source'
-+from=
-+to=pdf
-+type=Process
-+checkForRoot=yes
-+jumpToFirstError=yes
-+autoRun=yes
-+
- [Tool/PreviewLaTeX/Default]
- autoRun=no
- checkForRoot=no
-@@ -309,11 +410,6 @@
- type=Sequence
- sequence=LaTeX,DVItoPDF,ViewPDF
-
--[Tool/QuickBuild/LaTeX+BibTeX+ViewDVI]
--class=Sequence
--type=Sequence
--sequence=LaTeX,BibTeX,LaTeX,LaTeX,ViewDVI
--
- [Tool/QuickBuild/PDFLaTeX+ViewPDF]
- class=Sequence
- type=Sequence
-@@ -340,7 +436,7 @@
- [Tool/TeX/Modern]
- class=Compile
- command=tex
--options=-src -interaction=nonstopmode '%source'
-+options=-src-specials -interaction=nonstopmode '%source'
- from=
- to=dvi
- type=Process
-@@ -364,7 +460,7 @@
- [Tool/PDFTeX/Modern]
- class=Compile
- command=pdftex
--options=-src -interaction=nonstopmode '%source'
-+options=-src-specials -interaction=nonstopmode '%source'
- from=
- to=pdf
- type=Process
-@@ -461,120 +557,90 @@
- from=html
- to=html
-
--[Tool/ViewDVI/Embedded Viewer]
--class=View
--type=Part
--className=KViewPart
--libName=kviewerpart
--from=dvi
--to=dvi
--state=Viewer
--libOptions=dvi
--
--[Tool/ViewDVI/KDVI]
--class=View
--type=Process
--command=kdvi
--options='%target'
--from=dvi
--to=dvi
--
--[Tool/ViewDVI/KDVI Unique]
--class=View
--type=Process
--command=kdvi
--options=--unique '%target'
--from=dvi
--to=dvi
--
- [Tool/ForwardDVI/Embedded Viewer]
- type=Part
- class=ForwardDVI
--className=KViewPart
--libName=kviewerpart
-+className=Okular::Part
-+libName=libokular
- from=dvi
- to=dvi
- state=Viewer
- libOptions=dvi
-
--[Tool/ForwardDVI/KDVI]
-+[Tool/ForwardDVI/Okular]
- class=ForwardDVI
- type=Process
--command=kdvi
-+command=okular
- options=--unique '%target'
- from=dvi
- to=dvi
-
--[Tool/ViewPDF/Embedded Viewer]
-+[Tool/ViewDVI/Embedded Viewer]
- class=View
--className=KGVPart
--libName=libkghostviewpart
-+className=Okular::Part
-+libName=libokular
- state=Viewer
--from=pdf
--to=pdf
- type=Part
-
--[Tool/ViewPDF/KGhostView]
-+[Tool/ViewDVI/Okular]
- class=View
--command=kghostview
-+command=okular
- options='%target'
-+from=dvi
-+to=dvi
- state=Viewer
--from=pdf
--to=pdf
- type=Process
-
--[Tool/ViewPDF/KPDF]
-+[Tool/ViewPS/GV]
- class=View
--command=kpdf
-+command=gv
- options='%target'
- state=Viewer
--from=pdf
--to=pdf
-+from=ps
-+to=ps
- type=Process
-
--[Tool/ViewPDF/Embedded Viewer]
-+[Tool/ViewPS/Okular]
- class=View
--className=KPDF::Part
--libName=libkpdfpart
--state=Viewer
--from=pdf
--to=pdf
--type=Part
--
--[Tool/ViewPDF/Acroread]
--class=View
--command=acroread
-+command=okular
- options='%target'
-+from=ps
-+to=ps
- state=Viewer
--from=pdf
--to=pdf
- type=Process
-
- [Tool/ViewPS/Embedded Viewer]
- class=View
--className=KGVPart
--libName=libkghostviewpart
-+className=Okular::Part
-+libName=libokular
- state=Viewer
--from=ps
--to=ps
- type=Part
-
--[Tool/ViewPS/KGhostView]
-+[Tool/ViewPDF/Okular]
- class=View
--command=kghostview
-+command=okular
- options='%target'
-+from=pdf
-+to=pdf
- state=Viewer
--from=ps
--to=ps
- type=Process
-
--[Tool/ViewPS/GV]
-+[Tool/ViewPDF/Embedded Viewer]
- class=View
--command=gv
-+className=Okular::Part
-+libName=libokular
-+from=pdf
-+to=pdf
-+state=Viewer
-+type=Part
-+
-+[Tool/ViewPDF/Acroread]
-+class=View
-+command=acroread
- options='%target'
- state=Viewer
--from=ps
--to=ps
-+from=pdf
-+to=pdf
- type=Process
-
- [Tool/Lilypond/PDF]
-@@ -628,49 +694,52 @@
- DVItoPS=Default
- LaTeX=Default
- LaTeX to Web=latex2html
--MakeIndex=Default
-+MakeIndex=makeindex
- MetaPost=Default
- PDFLaTeX=Default
- PreviewLaTeX=Default
- PreviewPDFLaTeX=Default
- PStoPDF=Default
--QuickBuild=LaTeX+ViewDVI
-+QuickBuild=PDFLaTeX+ViewPDF
- TeX=Default
- PDFTeX=Default
- ViewBib=KBibTex
-+ViewPDF=Okular
-+ViewPS=Okular
-+ViewDVI=Okular
- ViewHTML=Konqueror
--ViewDVI=KDVI
--ForwardDVI=KDVI
--ViewPDF=KPDF
--ViewPS=KGhostView
-+ForwardDVI=Okular
- Lilypond=PDF
-
- [ToolsGUI]
- Lilypond=Compile,lilypond
- Archive=Archive,package
-+Asymptote=Compile,asymptote
- BibTeX=Compile,bibtex
- Convert=Convert,convert
- DVItoPDF=Convert,dvipdf
- DVItoPNG=Convert,dvipng
- DVItoPS=Convert,dvips
--LaTeX=Compile,latex
- LaTeX to Web=Compile,l2h
- DBLaTeX=Compile,dblatex
- MakeIndex=Compile,makeidx
- MetaPost=Compile,mpost
--PDFLaTeX=Compile,pdflatex
- PreviewLaTeX=none,none
- PreviewPDFLaTeX=none,none
- PStoPDF=Convert,ps2pdf
- QuickBuild=Quick,quick
-+LaTeX=Compile,latex
- TeX=Compile,texcompiler
- PDFTeX=Compile,pdftex
-+PDFLaTeX=Compile,pdflatex
-+ConTeXt=Compile,latex
-+XeTeX=Compile,latex
- ViewBib=View,viewbib
-+ViewDVI=View,okular
-+ViewPDF=View,okular
-+ViewPS=View,okular
- ViewHTML=View,viewhtml
--ViewDVI=View,viewdvi
- ForwardDVI=View,dvisearch
--ViewPDF=View,viewpdf
--ViewPS=View,viewps
-
- [Shortcuts]
- tool_QuickBuild=Alt+1
---- src/kile/quickpreview.cpp #809350:809351
-@@ -38,12 +38,11 @@
- QuickPreview::QuickPreview(KileInfo *ki) : m_ki(ki), m_running(0), m_tempDir(NULL)
- {
- m_taskList << i18n("LaTeX ---> DVI")
-- << i18n("LaTeX ---> DVI (KDVI)")
-+ << i18n("LaTeX ---> DVI (Okular)")
- << i18n("LaTeX ---> PS")
-- << i18n("LaTeX ---> PS (KGhostView)")
-+ << i18n("LaTeX ---> PS (Okular)")
- << i18n("PDFLaTeX ---> PDF")
-- << i18n("PDFLaTeX ---> PDF (KGhostView)")
-- << i18n("PDFLaTeX ---> PDF (KPDF)")
-+ << i18n("PDFLaTeX ---> PDF (Okular)")
- ;
- }
-
-@@ -147,12 +146,11 @@
- {
- tasklist.clear();
- tasklist << "Tool/ViewDVI/Embedded Viewer=" + m_taskList[0]
-- << "Tool/ViewDVI/KDVI Unique=" + m_taskList[1]
-+ << "Tool/ViewDVI/Okular=" + m_taskList[1]
- << "Tool/ViewPS/Embedded Viewer=" + m_taskList[2]
-- << "Tool/ViewPS/KGhostView=" + m_taskList[3]
-+ << "Tool/ViewPS/Okular=" + m_taskList[3]
- << "Tool/ViewPDF/Embedded Viewer=" + m_taskList[4]
-- << "Tool/ViewPDF/KGhostView=" + m_taskList[5]
-- << "Tool/ViewPDF/KPDF=" + m_taskList[6]
-+ << "Tool/ViewPDF/Okular=" + m_taskList[5]
- ;
- }
-
-@@ -166,12 +164,11 @@
- // define possible tools
- QMap <QString,QString> map;
- map[m_taskList[0]] = "PreviewLaTeX,,,ViewDVI,Embedded Viewer,dvi";
-- map[m_taskList[1]] = "PreviewLaTeX,,,ViewDVI,KDVI Unique,dvi";
-+ map[m_taskList[1]] = "PreviewLaTeX,,,ViewDVI,Okular,dvi";
- map[m_taskList[2]] = "PreviewLaTeX,DVItoPS,Default,ViewPS,Embedded Viewer,ps";
-- map[m_taskList[3]] = "PreviewLaTeX,DVItoPS,Default,ViewPS,KGhostView,ps";
-- map[m_taskList[4]] = "PreviewPDFLaTeX,,,ViewPDF,KPDF (embedded),pdf";
-- map[m_taskList[5]] = "PreviewPDFLaTeX,,,ViewPDF,KGhostView,pdf";
-- map[m_taskList[6]] = "PreviewPDFLaTeX,,,ViewPDF,KPDF,pdf";
-+ map[m_taskList[3]] = "PreviewLaTeX,DVItoPS,Default,ViewPS,Okular,ps";
-+ map[m_taskList[4]] = "PreviewPDFLaTeX,,,ViewPDF,Embedded Viewer,pdf";
-+ map[m_taskList[5]] = "PreviewPDFLaTeX,,,ViewPDF,Okular,pdf";
-
- QString previewtask = KileConfig::previewTask();
- if(!map.contains(previewtask)) {
---- src/kile/test/runTests.sh #809350:809351
-@@ -128,8 +128,8 @@
- echo "starting test: DVItoPDF"
- setTool DVItoPDF
- setKey mustpass ""
--setKey executable dvipdfm
--setKey where `which dvipdfm`
-+setKey executable dvipdfmx
-+setKey where `which dvipdfmx`
- if [ -r $testFileBase.dvi ]; then performKileTest kile "run DVItoPDF"; fi
-
- echo "starting test: PStoPDF"
-@@ -145,6 +145,7 @@
- setKey mustpass ""
- setKey executable bibtex
- setKey where `which bibtex`
-+
- if [ -r "test.dvi" ] #LaTeX is working
- then
- testFileBase=test_bib
-@@ -161,6 +162,7 @@
- setKey mustpass ""
- setKey executable makeindex
- setKey where `which makeindex`
-+
- if [ -r "test.dvi" ] #LaTeX is working
- then
- testFileBase=test_index
-@@ -172,24 +174,12 @@
- $closeDoc
- fi
-
--echo "starting test: KDVI"
--setTool KDVI
-+echo "starting test: Okular"
-+setTool Okular
- setKey mustpass "where"
--setKey executable kdvi
--setKey where `which kdvi`
-+setKey executable okular
-+setKey where `which okular`
-
--echo "starting test: KGhostView"
--setTool KGhostView
--setKey mustpass ""
--setKey executable kghostview
--setKey where `which kghostview`
--
--echo "starting test: KPDF"
--setTool KPDF
--setKey mustpass ""
--setKey executable kpdf
--setKey where `which kpdf`
--
- echo "starting test: Acroread"
- setTool Acroread
- setKey mustpass ""
-
-
Added: kile.install
===================================================================
--- kile.install (rev 0)
+++ kile.install 2009-10-12 17:11:05 UTC (rev 55314)
@@ -0,0 +1,11 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
More information about the arch-commits
mailing list