--- codelite-2.5.2.4031~dfsg.orig/debian/codelite.dirs +++ codelite-2.5.2.4031~dfsg/debian/codelite.dirs @@ -0,0 +1,2 @@ +usr/share/codelite/plugins/resources +usr/share/codelite/src --- codelite-2.5.2.4031~dfsg.orig/debian/codelite.manpages +++ codelite-2.5.2.4031~dfsg/debian/codelite.manpages @@ -0,0 +1,2 @@ +debian/codelite.1 +debian/codelite_fix_files.1 --- codelite-2.5.2.4031~dfsg.orig/debian/changelog +++ codelite-2.5.2.4031~dfsg/debian/changelog @@ -0,0 +1,28 @@ +codelite (2.5.2.4031~dfsg-2) unstable; urgency=low + + * Set pkg source format to 1.0. + * Fix little mistake in debian/codelite.1 (Closes: #579761). + * Install codelite_xterm script into /usr/lib/codelite. + * debian/patches/01_x-terminal-emulator.patch: + - Rely on codelite_xterm script to run console programs (LP: #575635). + * debian/patches/05_codelite_xterm.patch: + - Don't rely on xterm, try to use the user's preferred terminal emulator first. + - The option to change the window title depends on the terminal emulator used. + - Pass '-x' instead of '-e' to terminator. + * debian/rules: + - Adjust get-orig-source rule to remove junk files from the original tarball. + + -- Alessio Treglia Wed, 05 May 2010 17:46:58 +0200 + +codelite (2.5.2.4031~dfsg-1) unstable; urgency=low + + * New upstream release. + * Refresh patches. + + -- Alessio Treglia Fri, 09 Apr 2010 02:03:19 +0200 + +codelite (2.3.0.3833~dfsg-1) unstable; urgency=low + + * Initial release (Closes: #516896). + + -- Alessio Treglia Thu, 25 Mar 2010 11:37:04 +0100 --- codelite-2.5.2.4031~dfsg.orig/debian/codelite_fix_files.1 +++ codelite-2.5.2.4031~dfsg/debian/codelite_fix_files.1 @@ -0,0 +1,21 @@ +.TH "codelite_fix_files" "1" +.SH NAME +.B codelite_fix_files +\- Convert a CodeLite project and workspace from the DOS environment to the *nix +environment +.SH SYNOPSIS +.B codelite_fix_files +.SH DESCRIPTION +.B codelite_fix_files +is a trivial script which converts all CodeLite project files (*.project) and +workspace files (*.workspace) in the current directory and all its +subdirectories from the DOS environment to the *nix environment. +.SH COPYRIGHT +This manual page was written by Chow Loong Jin for the +Debian system (but may be used by others). Permission is granted to copy, +distribute and/or modify this document under the terms of the GNU General Public +License, Version 2 or any later version published by the Free Software +Foundation. + +On Debian systems, the complete text of the GNU General Public License can be +found in /usr/share/common-licenses. --- codelite-2.5.2.4031~dfsg.orig/debian/codelite.menu +++ codelite-2.5.2.4031~dfsg/debian/codelite.menu @@ -0,0 +1,5 @@ +?package(codelite):needs="X11" \ + section="Applications/Programming" \ + title="CodeLite" \ + command="/usr/bin/codelite" \ + icon="/usr/share/pixmaps/codelite.xpm" --- codelite-2.5.2.4031~dfsg.orig/debian/codelite.install +++ codelite-2.5.2.4031~dfsg/debian/codelite.install @@ -0,0 +1,10 @@ +debian/codelite.xpm /usr/share/pixmaps +usr/lib/codelite/debuggers +usr/lib/codelite/lib*.so +usr/share +usr/bin/codelite +usr/bin/codelite_fix_files +usr/bin/codelite_exec usr/lib/codelite +usr/bin/codelite_indexer usr/lib/codelite +usr/bin/codelite_kill_children usr/lib/codelite +usr/bin/codelite_xterm usr/lib/codelite --- codelite-2.5.2.4031~dfsg.orig/debian/codelite.links +++ codelite-2.5.2.4031~dfsg/debian/codelite.links @@ -0,0 +1 @@ +usr/share/codelite/plugins/resources usr/lib/codelite/resources --- codelite-2.5.2.4031~dfsg.orig/debian/codelite.1 +++ codelite-2.5.2.4031~dfsg/debian/codelite.1 @@ -0,0 +1,29 @@ +.TH codelite "1" "December 19, 2008" +.SH NAME +.B codelite +\- A lightweight and powerful C/C++ IDE +.SH SYNOPSIS +.B codelite +[\fI-v\fR] [\fI-h\fR] [\fI-l \fR] [\fI-b \fR] [\fIInput file\fR...] +.SH DESCRIPTION +.TP +\fB\-v\fR, \fB\-\-version\fR +Print current version +.TP +\fB\-h\fR, \fB\-\-help\fR +Print usage +.TP +\fB\-l\fR, \fB\-\-line=\fR +Open the file at a given line number +.TP +\fB\-b\fR, \fB\-\-basedir=\fR +Use this path as codelite installation path +.SH COPYRIGHT +This manual page was written by Chow Loong Jin for the +Debian system (but may be used by others). Permission is granted to copy, +distribute and/or modify this document under the terms of the GNU General Public +License, Version 2 or any later version published by the Free Software +Foundation. + +On Debian systems, the complete text of the GNU General Public License can be +found in /usr/share/common-licenses. --- codelite-2.5.2.4031~dfsg.orig/debian/codelite-plugins.install +++ codelite-2.5.2.4031~dfsg/debian/codelite-plugins.install @@ -0,0 +1,33 @@ +usr/lib/codelite/abbreviation.so +usr/lib/codelite/resources/abbreviation.accelerators usr/share/codelite/plugins/resources +usr/lib/codelite/resources/abbrev.png usr/share/codelite/plugins/resources +usr/lib/codelite/CodeFormatter.so +usr/lib/codelite/ContinuousBuild.so +usr/lib/codelite/resources/compfile.png usr/share/codelite/plugins/resources +usr/lib/codelite/Copyright.so +usr/lib/codelite/CppCheck.so +usr/lib/codelite/resources/cppcheck.png usr/share/codelite/plugins/resources +usr/bin/codelite_cppcheck usr/lib/codelite +usr/lib/codelite/cscope.so +usr/lib/codelite/SymbolView.so +usr/lib/codelite/resources/cscope.accelerators usr/share/codelite/plugins/resources +usr/lib/codelite/ExternalTools.so +usr/lib/codelite/resources/external_tools.accelerators usr/share/codelite/plugins/resources +usr/lib/codelite/Gizmos.so +usr/share/codelite/templates/gizmos +usr/lib/codelite/QmakePlugin.so +usr/lib/codelite/resources/qt* /usr/share/codelite/plugins/resources +usr/share/codelite/templates/projects/QmakeTestTmpl +usr/share/codelite/templates/projects/qmake* +usr/share/codelite/templates/qmake +usr/lib/codelite/SnipWiz.so +usr/lib/codelite/Subversion2.so +usr/lib/codelite/resources/svn* usr/share/codelite/plugins/resources +usr/lib/codelite/resources/wxfb_conflict.png usr/share/codelite/plugins/resources +usr/lib/codelite/resources/wxfb_modified.png usr/share/codelite/plugins/resources +usr/lib/codelite/resources/wxfb_ok.png usr/share/codelite/plugins/resources +usr/lib/codelite/UnitTestCPP.so +usr/share/codelite/templates/projects/UnitTest++ +usr/share/codelite/src/unittest++1.3.tar.gz +usr/lib/codelite/wxformbuilder.so +usr/share/codelite/templates/formbuilder --- codelite-2.5.2.4031~dfsg.orig/debian/watch +++ codelite-2.5.2.4031~dfsg/debian/watch @@ -0,0 +1,4 @@ +version=3 + +options=dversionmangle=s/\~dfsg.*// \ + http://sf.net/codelite/codelite-(.+)\.tar\.gz --- codelite-2.5.2.4031~dfsg.orig/debian/control +++ codelite-2.5.2.4031~dfsg/debian/control @@ -0,0 +1,78 @@ +Source: codelite +Section: devel +Priority: optional +Maintainer: Alessio Treglia +Build-Depends: debhelper (>= 7.0.50~), + quilt (>= 0.46-7~), + autotools-dev, + libgtk2.0-dev, + libwxgtk2.8-dev, + libsqlite3-dev +Standards-Version: 3.8.4 +DM-Upload-Allowed: yes +Homepage: http://www.codelite.org +Vcs-Git: git://git.debian.org/git/collab-maint/codelite.git +Vcs-Browser: http://git.debian.org/?p=collab-maint/codelite.git + +Package: codelite +Architecture: any +Depends: ${shlibs:Depends}, + ${misc:Depends} +Recommends: gdb, + gcc, + g++, + xterm | x-terminal-emulator +Suggests: codelite-plugins +Description: Powerful and lightweight C/C++ IDE + CodeLite is a powerful and lightweight C/C++ IDE which comes with but is not + limited to the following features: + * Generic support for compilers + * Built-in GDB support + * Database-based Code Completion mechanism + * Syntax highlighting for C/C++, Java, Perl, XML, Makefile, Lua, Diff files, + PHP, JavaScript, Python, HTML, and ASP + * Text Folding + * Bookmarks + * Find and Replace + * doxygen comment generator + +Package: codelite-plugins +Architecture: any +Depends: ${shlibs:Depends}, + ${misc:Depends} +Conflicts: codelite-plugins-abbreviation (<< 2.3.0.3833+dfsg-1), + codelite-plugins-codeformatter (<< 2.3.0.3833+dfsg-1), + codelite-plugins-continuousbuild (<< 2.3.0.3833+dfsg-1), + codelite-plugins-copyright (<< 2.3.0.3833+dfsg-1), + codelite-plugins-cscope (<< 2.3.0.3833+dfsg-1), + codelite-plugins-externaltools (<< 2.3.0.3833+dfsg-1), + codelite-plugins-gizmos (<< 2.3.0.3833+dfsg-1), + codelite-plugins-snipwiz (<< 2.3.0.3833+dfsg-1), + codelite-plugins-subversion (<< 2.3.0.3833+dfsg-1), + codelite-plugins-unittestcpp (<< 2.3.0.3833+dfsg-1), + codelite-plugins-wxformbuilder (<< 2.3.0.3833+dfsg-1) +Replaces: codelite-plugins-abbreviation (<< 2.3.0.3833+dfsg-1), + codelite-plugins-codeformatter (<< 2.3.0.3833+dfsg-1), + codelite-plugins-continuousbuild (<< 2.3.0.3833+dfsg-1), + codelite-plugins-copyright (<< 2.3.0.3833+dfsg-1), + codelite-plugins-cscope (<< 2.3.0.3833+dfsg-1), + codelite-plugins-externaltools (<< 2.3.0.3833+dfsg-1), + codelite-plugins-gizmos (<< 2.3.0.3833+dfsg-1), + codelite-plugins-snipwiz (<< 2.3.0.3833+dfsg-1), + codelite-plugins-subversion (<< 2.3.0.3833+dfsg-1), + codelite-plugins-unittestcpp (<< 2.3.0.3833+dfsg-1), + codelite-plugins-wxformbuilder (<< 2.3.0.3833+dfsg-1) +Description: Powerful and lightweight C/C++ IDE - plugins + CodeLite is a powerful and lightweight C/C++ IDE which comes with but is not + limited to the following features: + * Generic support for compilers + * Built-in GDB support + * Database-based Code Completion mechanism + * Syntax highlighting for C/C++, Java, Perl, XML, Makefile, Lua, Diff files, + PHP, JavaScript, Python, HTML, and ASP + * Text Folding + * Bookmarks + * Find and Replace + * doxygen comment generator + . + This package contains the plugins for CodeLite. --- codelite-2.5.2.4031~dfsg.orig/debian/rules +++ codelite-2.5.2.4031~dfsg/debian/rules @@ -0,0 +1,86 @@ +#!/usr/bin/make -f + +MAKEFILE := $(firstword $(MAKEFILE_LIST)) +DEBIAN_DIR := $(dir $(MAKEFILE)) +SOURCE_DIR := $(DEBIAN_DIR)/.. +DEB_SOURCE_NAME := $(shell grep ^Source $(DEBIAN_DIR)/control | cut -f2 -d' ') +CURRENT_VERSION = $(shell dpkg-parsechangelog -l$(DEBIAN_DIR)/changelog | \ + sed -n 's/~dfsg-.*$$//; s/^Version: //p') +USCAN = uscan \ + --package=$(DEB_SOURCE_NAME) \ + --watchfile=$(DEBIAN_DIR)/watch \ + --upstream-version=$(CURRENT_VERSION) +VERSION ?= $(shell $(USCAN) --dehs --no-download | \ + sed -n 's/.*\(.*\)<\/upstream-version>.*/\1/p') + +UNITTEST_TARBALL = unittest++1.3.tar.gz + +%: + dh --with=quilt $@ + +# this is a hack so we can grab everything in /usr/share/codelite for +# codelite while splitting these directories away into separate plugins +override_dh_install: + dh_install + rm -f debian/codelite/usr/share/codelite/src/$(UNITTEST_TARBALL) + cd debian/codelite/usr/share/codelite; \ + rm -rf \ + src/unittest*.tar.gz \ + templates/gizmos \ + templates/projects/UnitTest++ \ + templates/formbuilder \ + Runtime/templates/projects/dynamic-library-wx-enabled/dynamic-library-wx-enabled.project~ \ + UnitTest++/Makefile \ + templates/qmake + # Prune empty dirs + find debian/codelite/ -type d -empty -delete + find debian/codelite-plugins/ -type d -empty -delete + +override_dh_auto_clean: + dh_auto_clean + find -name Makefile ! -wholename '*sdk*' -delete + rm -f fakeroot/DEBIAN/control + rm -rf $(CURDIR)/Runtime/src/UnitTest++ + rm -rf $(CURDIR)/Runtime/src/unittest*.tar.gz + +override_dh_auto_build: + cp -a UnitTest++ $(CURDIR)/Runtime/src + GZIP=-9fn tar -czf Runtime/src/$(UNITTEST_TARBALL) \ + Runtime/src/UnitTest++ + rm -rf $(CURDIR)/Runtime/src/UnitTest++ + dh_auto_build + +override_dh_auto_install: + sed -i -e 's/\(install:.*\)\(uninstall\)\(.*\)/\1 \3/' Makefile + dh_auto_install + +get-orig-source: + $(USCAN) \ + --download-version=$(VERSION) \ + --destdir=. \ + --force-download \ + --download \ + --rename + if [ -d $(DEB_SOURCE_NAME)-$(VERSION) ]; then \ + echo "$(DEB_SOURCE_NAME)-$(VERSION) is in the way, bailing out!"; \ + exit 1; \ + fi + tar -xzf $(DEB_SOURCE_NAME)_$(VERSION).orig.tar.gz + mv \ + $(DEB_SOURCE_NAME)-$(VERSION) \ + $(DEB_SOURCE_NAME)-$(VERSION)~dfsg + GZIP=-9fn tar \ + --exclude=*.dll \ + --exclude=*.exe \ + --exclude=sdk/wxsqlite3/sqlite3 \ + --exclude=sdk/src \ + --exclude=sdk/wxconfig \ + --exclude=sdk/astyle \ + --exclude=sqlite3 \ + --exclude=unittest*.tar.gz \ + -czf $(DEB_SOURCE_NAME)_$(VERSION)~dfsg.orig.tar.gz \ + $(DEB_SOURCE_NAME)-$(VERSION)~dfsg + rm -rf \ + $(DEB_SOURCE_NAME)_$(VERSION).orig.tar.gz \ + $(DEB_SOURCE_NAME)-$(VERSION)~dfsg + --- codelite-2.5.2.4031~dfsg.orig/debian/codelite.xpm +++ codelite-2.5.2.4031~dfsg/debian/codelite.xpm @@ -0,0 +1,290 @@ +/* XPM */ +static char *codelite[] = { +/* columns rows colors chars-per-pixel */ +"32 32 252 2", +" c #006C00", +". c #007300", +"X c #007C00", +"o c #007313", +"O c #387500", +"+ c #417F0B", +"@ c #66563A", +"# c #004D5D", +"$ c #1A4C7B", +"% c #1B6B73", +"& c #6F6F47", +"* c #757E58", +"= c #9C6600", +"- c #9C6A00", +"; c #937000", +": c #A76200", +"> c #AA6400", +", c #A16D00", +"< c #AC6B00", +"1 c #B06E00", +"2 c #A57200", +"3 c #AA7500", +"4 c #AD7A00", +"5 c #B47100", +"6 c #B27E00", +"7 c #008300", +"8 c #0F8300", +"9 c #008C00", +"0 c #098F06", +"q c #0F8C0A", +"w c #178900", +"e c #009500", +"r c #019A01", +"t c #099D04", +"y c #12920B", +"u c #1E9B14", +"i c #228903", +"p c #2F8907", +"a c #3B850B", +"s c #0EA107", +"d c #11A007", +"f c #16A30A", +"g c #1CA60D", +"h c #1BA011", +"j c #1FAF13", +"k c #22A912", +"l c #2BAE15", +"z c #2CAA1E", +"x c #38A619", +"c c #2EB41D", +"v c #2FBA1B", +"b c #34B219", +"n c #3CB61D", +"m c #33B81B", +"M c #35BC22", +"N c #3CB728", +"B c #4B820D", +"V c #609407", +"C c #44BA21", +"Z c #4ABD24", +"A c #4FBD2A", +"S c #3BC327", +"D c #42C426", +"F c #4FC027", +"G c #47C52F", +"H c #42C92D", +"J c #54C32A", +"K c #59C52C", +"L c #53C92D", +"P c #4CC633", +"I c #4BCD32", +"U c #51CE32", +"Y c #56D436", +"T c #53D239", +"R c #5AD53C", +"E c #5EDB3F", +"W c #63CB32", +"Q c #6BD037", +"! c #6DD33A", +"~ c #63DA3E", +"^ c #74DA3A", +"/ c #61E333", +"( c #63E03D", +") c #2E836F", +"_ c #50A778", +"` c #61D340", +"' c #61DA41", +"] c #6BDE43", +"[ c #76DC42", +"{ c #67C356", +"} c #6FE34A", +"| c #76E246", +" . c #7DE349", +".. c #78EB4F", +"X. c #7EEE54", +"o. c #B48000", +"O. c #B88400", +"+. c #BE8A01", +"@. c #C28F00", +"#. c #C49200", +"$. c #CC9500", +"%. c #CD9900", +"&. c #D19E00", +"*. c #C19414", +"=. c #D5A300", +"-. c #D8A400", +";. c #DEAA00", +":. c #D3AF18", +">. c #E2AE00", +",. c #E6B401", +"<. c #E9B500", +"1. c #ECBB00", +"2. c #F2BE00", +"3. c #D2AC23", +"4. c #F4C100", +"5. c #FAC600", +"6. c #FECB00", +"7. c #FFD100", +"8. c #FFDB00", +"9. c #FFE202", +"0. c #FFEC00", +"q. c #FFFB00", +"w. c #FFFF0A", +"e. c #FFF61F", +"r. c #FFFF1B", +"t. c #E1C035", +"y. c #FFEC2C", +"u. c #82E84F", +"i. c #86F94D", +"p. c #84E950", +"a. c #8BEE54", +"s. c #8EFF50", +"d. c #86F259", +"f. c #8BF45B", +"g. c #98FF55", +"h. c #9FFF5E", +"j. c #8FF960", +"k. c #96FD64", +"l. c #9AFE65", +"z. c #A3FF6C", +"x. c #EDD145", +"c. c #FFEF4A", +"v. c #FFFF42", +"b. c #F7E056", +"n. c #FFFB5D", +"m. c #FEED64", +"M. c #FFFF6C", +"N. c #ECE279", +"B. c #FFF770", +"V. c #FFFF7D", +"C. c #00369C", +"Z. c #00389E", +"A. c #0027A6", +"S. c #002DA2", +"D. c #002DA9", +"F. c #0030A4", +"G. c #003CA3", +"H. c #0034AB", +"J. c #003AAB", +"K. c #0029B0", +"L. c #0039BE", +"P. c #174E96", +"I. c #0040A6", +"U. c #0044AB", +"Y. c #0049AF", +"T. c #0849AF", +"R. c #0A53AE", +"E. c #0046B0", +"W. c #004CB3", +"Q. c #0044BC", +"!. c #004CB9", +"~. c #0050B7", +"^. c #0B53B6", +"/. c #0153BA", +"(. c #0058BE", +"). c #085ABC", +"_. c #004CC6", +"`. c #0042CC", +"'. c #0055C3", +"]. c #005AC2", +"[. c #005FD3", +"{. c #0056DA", +"}. c #0064CB", +"|. c #0068CF", +" X c #1965C3", +".X c #006DD3", +"XX c #0064D9", +"oX c #006ADD", +"OX c #0070D7", +"+X c #0C73D4", +"@X c #0074DB", +"#X c #0078DF", +"$X c #1D76D3", +"%X c #1379D9", +"&X c #2B6FC7", +"*X c #2674CE", +"=X c #2C79CE", +"-X c #0058E3", +";X c #006AE1", +":X c #007CE2", +">X c #2B80D7", +",X c #3080D6", +"X]././.~.~.W.J.KXKXKXKXKXKXKX", +"KXKXKXKXKXKXKX.X9X9X9X0XqXwXeXrXFX].].(./.~.W.Y.H.KXKXKXKXKXKXKX", +"KXKXKXKXKXKXKX.X8X7X8X8X8X8X8X8XZX/.(./.~.W.E.U.H.KXKXKXKXKXKXKX", +"KXKXKXKXKXKXKXoX7X6X6X6X6X6X7X6XmX!./.~.W.W.Y.I.J.KXKXKXKXKXKXKX", +"KXKXKXKXKXKXKXXX4X3X3X3X4X4X4X5XcXW.~.W.W.Y.U.G.J.KXKXKXKXKXKXKX", +"KXKXKXKXKXKXKXXX2X:X:X2X2X2X2X2XhXE.W.W.Y.U.U.G.KXKXKXKXKXKXKXKX", +"KXKXKXKXKXKXKX[.:X#X#X:X:X:X:X:XsXE.W.Y.U.I.G.Z.KXKXKXKXKXKXKXKX", +"KXKXKXKXKXKXKX{.@XOXOX@X@X@X@X#XuXU.Y.U.I.G.G.C.KXKXKXKXKXKXKXKX", +"KXKXKXKXKXKXKX& ;X.X.X.X.X.X.XOX.,.<.<.m.6 6 3 < a m n n C Z F J K .z X X X X . KX", +"KX4 &.=.=.-.;.;.>.b.4 4 2 < p j l l b n n C C | u X X X . . KXKX", +"KX4 #.%.%.&.&.=.-.x.4 4 2 > i s f g k l l b b ] q X X . . KXKX", +"KX4 6 O.+.#.$.%.%.t.4 3 , > w r r t s f g k k ~ X X . . KXKX", +"KXKX3 3 4 o.O.+.@.3.3 2 - > 8 9 9 e e r t s d U . . . . KXKX", +"KXKXKXKX, , 2 4 6 *.3 2 - : O X 7 7 9 9 e e r M . . . X KXKX", +"KXKXKXKXKXKX; = , 2 4 - - KXKX7 X X X 7 7 9 9 k . KXKXKXKX", +"KXKXKXKXKXKXKXKX2 = , < KXKXKXKXKX7 X . X X 7 y . KXKXKXKXKX", +"KXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKX7 . . . . . KXKXKXKXKXKX", +"KXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKX KXKXKXKXKXKXKXKX", +"KXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKXKX" +}; --- codelite-2.5.2.4031~dfsg.orig/debian/copyright +++ codelite-2.5.2.4031~dfsg/debian/copyright @@ -0,0 +1,452 @@ +Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=59 +Name: CodeLite +Maintainer: Eran Ifrah +Source: http://www.codelite.org + +Files: * +Copyright: 2007-2010 Eran Ifrah +License: CodeLite + +Files: CxxParser/cpp5_grammar.y.full +Copyright: 1989-1990, James A. Roskind +License: other + This grammar was developed and written by James A. Roskind. + Copying of this grammar description, as a whole, is permitted + providing this notice is intact and applicable in all complete + copies. Translations as a whole to other parser generator input + languages (or grammar description languages) is permitted + provided that this notice is intact and applicable in all such + copies, along with a disclaimer that the contents are a + translation. The reproduction of derived text, such as modified + versions of this grammar, or the output of parser generators, is + permitted, provided the resulting work includes the copyright + notice "Portions Copyright (c) 1989, 1990 James A. Roskind". + Derived products, such as compilers, translators, browsers, etc., + that use this grammar, must also provide the notice "Portions + Copyright (c) 1989, 1990 James A. Roskind" in a manner + appropriate to the utility, and in keeping with copyright law + (e.g.: EITHER displayed when first invoked/executed; OR displayed + continuously on display terminal; OR via placement in the object + code in form readable in a printout, with or near the title of + the work, or at the end of the file). No royalties, licenses or + commissions of any kind are required to copy this grammar, its + translations, or derivative products, when the copies are made in + compliance with this notice. Persons or corporations that do make + copies in compliance with this notice may charge whatever price + is agreeable to a buyer, for such copies or derivative works. + LE_THIS GRAMMAR IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS LE_FOR A PARTICULAR + PURPOSE. + +Files: CodeLite/cpp5.l +Copyright: 1989-1991, James A. Roskind +License: other + This lexer description was written by James A. Roskind. Copying + of this file, as a whole, is permitted providing this notice is + intact and applicable in all complete copies. Direct + translations as a whole to other lexer generator input languages + (or lexical description languages) is permitted provided that + this notice is intact and applicable in all such copies, along + with a disclaimer that the contents are a translation. The + reproduction of derived files or text, such as modified versions + of this file, or the output of scanner generators, is permitted, + provided the resulting work includes the copyright notice + "Portions Copyright (c) 1989, 1990 James A. Roskind". Derived + products must also provide the notice "Portions Copyright (c) + 1989, 1990 James A. Roskind" in a manner appropriate to the + utility, and in keeping with copyright law (e.g.: EITHER + displayed when first invoked/executed; OR displayed continuously + on display terminal; OR via placement in the object code in form + readable in a printout, with or near the title of the work, or at + the end of the file). No royalties, licenses or commissions of + any kind are required to copy this file, its translations, or + derivative products, when the copies are made in compliance with + this notice. Persons or corporations that do make copies in + compliance with this notice may charge whatever price is + agreeable to a buyer, for such copies or derivative works. THIS + FILE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED + WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + +Files: CodeLite/readtags* +Copyright: 1996-2003, Darren Hiebert + 2008, Eran Ifrah +License: CodeLite +X-Comment: the original author, Darren Hiebert, released these + files in the Public Domain. + +Files: sdk/codelite_cppchecker/src/* +Copyright: 2007-2009 Daniel Marjamäki and Cppcheck team +License: GPL-3+ + +Files: sdk/codelite_indexer/libctags/asp.c +Copyright: 2000, Patrick Dehne +License: GPL-2+ + +Files: sdk/codelite_indexer/libctags/beta.c +Copyright: 1999-2000, Mj�lner Informatics +License: GPL-2+ + +Files: sdk/codelite_indexer/libctags/e_mac.h +Copyright: 2001, Maarten L. Hekkelman +License: GPL-2+ + +Files: sdk/codelite_indexer/libctags/e_riscos.h +Copyright: 2002, Andrew Wingate +License: GPL-2+ + +Files: sdk/codelite_indexer/libctags/erlang.c +Copyright: 2003, Brent Fulgham +License: GPL-2+ + +Files: sdk/codelite_indexer/libctags/lua.c +Copyright: 2000-2001, Max Ischenko +License: GPL-2+ + +Files: sdk/codelite_indexer/libctags/php.c +Copyright: 2000, Jesus Castagnetto +License: GPL-2+ + +Files: sdk/codelite_indexer/libctags/ruby.c +Copyright: 2000-2001, Thaddeus Covert + 2002, Matthias Veit + 2004, Elliott Hughes +License: GPL-2+ + +Files: sdk/codelite_indexer/libctags/slang.c +Copyright: 2000-2001, Francesc Rocher +License: GPL-2+ + +Files: sdk/codelite_indexer/libctags/sml.c +Copyright: 2002, Venkatesh Prasad Ranganath + 2002, Darren Hiebert +License: GPL-2+ + +Files: sdk/codelite_indexer/libctags/yacc.c +Copyright: 2001-2002, Nick Hibma +License: GPL-2+ + +Files: sdk/codelite_indexer/libctags/* +Copyright: 1996-2003, Darren Hiebert +License: GPL-2+ + +Files: sdk/wxflatnotebook/src/wxFlatNotebook/xh_fnb.cpp +Copyright: 2006i, Armel Asselin (copied from Vaclav Slavik xh_notbk) +License: wxWindows + +Files: sdk/wxscintilla/* +Copyright: 1998-2008, Neil Hodgson +License: wxWindows + +Files: sdk/wxscintilla/{build,include}/* +Copyright: 2004, wxCode +License: wxWindows + +Files: sdk/wxscintilla/src/scintilla/src/LexPLM.cxx +Copyright: 1990-2007, Scientific Toolworks, Inc +License: Scintilla + +Files: sdk/wxscintilla/src/scintilla/src/LexTCL.cxx +Copyright: 1998-2001, Andre Arpin +License: Scintilla + +Files: sdk/wxscintilla/src/scintilla/src/LexGCC.cxx + sdk/wxscintilla/src/scintilla/src/LexSVN.cxx + sdk/wxscintilla/src/scintilla/src/LexFIF.cxx +Copyright: 1998-2001 Eran Ifrah +License: Scintilla + +Files: sdk/wxscintilla/src/ScintillaWX.cpp +Copyright: 2000, Total Control Software +License: wxWindows + +Files: sdk/wxscintilla/src/scintilla/src/LexRuby.cxx +Copyright: 2001, Clemens Wyss +License: Scintilla + +Files: sdk/wxscintilla/src/scintilla/src/LexBaan.cxx +Copyright: 2001, Vamsi Potluru +Copyright: 2001, Praveen Ambekar +License: Scintilla + +Files: sdk/wxscintilla/src/scintilla/src/ExternalLexer.cxx +Copyright: 2001, Simon Steele +License: Scintilla + +Files: sdk/wxscintilla/src/scintilla/src/LexAda.cxx +Copyright: 2002, Sergey Koshcheyev +License: Scintilla + +Files: sdk/wxscintilla/src/scintilla/src/LexCLW.cxx +Copyright: 2003-2004, Ron Schofield +License: Scintilla + +Files: sdk/wxscintilla/src/scintilla/src/LexNsis.cxx +Copyright: 2003-2005, Angelo Mandato +License: Scintilla + +Files: sdk/wxscintilla/src/scintilla/src/LexLout.cxx +Copyright: 2003, Kein-Hong Man +License: Scintilla + +Files: sdk/wxscintilla/src/scintilla/src/LexMPT.cxx +Copyright: 2003, Marius Gheorghe +License: Scintilla + +Files: sdk/wxscintilla/src/scintilla/src/LexEScript.cxx +Copyright: 2003, Patrizio Bekerle +License: Scintilla + +Files: sdk/wxscintilla/src/scintilla/src/LexYAML.cxx +Copyright: 2003, Sean O'Dell +License: Scintilla + +Files: sdk/wxscintilla/src/scintilla/src/LexAsn1.cxx +Copyright: 2004, Herr Pfarrer +License: Scintilla + +Files: sdk/wxscintilla/src/scintilla/src/LexKix.cxx +Copyright: 2004, Manfred Becker +License: Scintilla + +Files: sdk/wxscintilla/src/wxscintilla.cpp +Copyright: 2004, wxCode +License: wxWindows + +Files: sdk/wxscintilla/src/scintilla/src/LexRebol.cxx +Copyright: 2005, Pascal Hurni +License: Scintilla + +Files: sdk/wxscintilla/src/scintilla/src/LexFlagship.cxx +Copyright: 1998-2003, Neil Hodgson +Copyright: 2005, Randy Butler +License: Scintilla + +Files: sdk/wxscintilla/src/scintilla/src/LexCaml.cxx +Copyright: 2005, Robert Roessler +License: Scintilla + +Files: sdk/wxscintilla/src/scintilla/src/LexProgress.cxx +Copyright: 2006-2007, Yuval Papish +License: Scintilla + +Files: sdk/wxscintilla/src/scintilla/src/LexCmake.cxx +Copyright: 2007, Cristian Adam +License: Scintilla + +Files: sdk/wxscintilla/src/scintilla/src/LexGAP.cxx +Copyright: 2007, Istvan Szollosi +License: Scintilla + +Files: sdk/wxscintilla/src/scintilla/src/LexPowerShell.cxx +Copyright: 2008, Tim Gerundt +License: Scintilla + +Files: sdk/wxsqlite3/* +Copyright: Ulrich Telle +License: wxWindows + +Files: CodeFormatter/AS*.cpp, CodeFormatter/astyle* +Copyright: + 2006-2010, Jim Pattee + 1998-2002, Tal Davidson +License: LGPL-2.1+ + +Files: Plugin/md5* +Copyright: 1991-1992, RSA Data Security, Inc. +License: other + License to copy and use this software is granted provided that it + is identified as the "RSA Data Security, Inc. MD5 Message-Digest + Algorithm" in all material mentioning or referencing this software + or this function. + . + License is also granted to make and use derivative works provided + that such works are identified as "derived from the RSA Data + Security, Inc. MD5 Message-Digest Algorithm" in all material + mentioning or referencing the derived work. + . + RSA Data Security, Inc. makes no representations concerning either + the merchantability of this software or the suitability of this + software for any particular purpose. It is provided "as is" + without express or implied warranty of any kind. + . + These notices must be retained in any copies of any part of this + documentation and/or software. + +Files: Plugin/wxmd5* +Copyright: 1991-1992, RSA Data Security, Inc. +License: wxWindows + +Files: UnitTest++/* +Copyright: 2006, Noel Llopis + 2006, Charles Nicholson +License: MIT + +Files: debian/* +Copyright: 2010, Alessio Treglia + 2009, Chow Loong Jin +License: GPL-2+ + +License: GPL-2+ + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +X-Comment: On Debian systems, the complete text of the GNU General Public + License can be found in `/usr/share/common-licenses/GPL-2'. + +License: GPL-3+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . +X-Comment: On Debian systems, the complete text of the GNU General Public + License can be found in `/usr/share/common-licenses/GPL-3'. + +License: wxWindows + This library is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public Licence as published by + the Free Software Foundation; either version 2 of the Licence, or (at + your option) any later version. + . + This library is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library + General Public Licence for more details. + . + You should have received a copy of the GNU Library General Public Licence + along with this software, usually in a file named COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + Boston, MA 02110-1301 USA. + . + EXCEPTION NOTICE + . + 1. As a special exception, the copyright holders of this library give + permission for additional uses of the text contained in this release of + the library as licenced under the wxWindows Library Licence, applying + either version 3.1 of the Licence, or (at your option) any later version of + the Licence as published by the copyright holders of version + 3.1 of the Licence document. + . + 2. The exception is that you may use, copy, link, modify and distribute + under your own terms, binary object code versions of works based + on the Library. + . + 3. If you copy code from files distributed under the terms of the GNU + General Public Licence or the GNU Library General Public Licence into a + copy of this library, as this licence permits, the exception does not + apply to the code that you add in this way. To avoid misleading anyone as + to the status of such modified files, you must delete this exception + notice from such code and/or adjust the licensing conditions notice + accordingly. + . + 4. If you write modifications of your own for this library, it is your + choice whether to permit this exception to apply to your modifications. + If you do not wish that, you must delete the exception notice from such + code and/or adjust the licensing conditions notice accordingly. + +License: LGPL-2.1 + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + . + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + . + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +X-Comment: On Debian systems, the complete text of the GNU Lesser General + Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. + +License: Scintilla + Permission to use, copy, modify, and distribute this software and its + documentation for any purpose and without fee is hereby granted, + provided that the above copyright notice appear in all copies and that + both that copyright notice and this permission notice appear in + supporting documentation. + . + NEIL HODGSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS + SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS, IN NO EVENT SHALL NEIL HODGSON BE LIABLE FOR ANY + SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, + WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER + TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE + OR PERFORMANCE OF THIS SOFTWARE. +X-Comment: see sdk/wxscintilla/src/scintilla/License.txt + +License: CodeLite + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + . + The only exception is that plugins developed for CodeLite and are linking + against CodeLite sources (either static linking or dynamic linking), + and the plugin is NOT one of the official plugins (see list below): + . + - Abbreviation + - CodeFormatter + - ContinousBuild + - Copyright + - Cscope + - ExternalTools + - Gizmos + - QMakePlugin + - snipwiz + - Subversion + - UnitTestPP + - wxFormBuilder plugin + . + Can be distributed under a license other than the GPL + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + . + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --- codelite-2.5.2.4031~dfsg.orig/debian/compat +++ codelite-2.5.2.4031~dfsg/debian/compat @@ -0,0 +1 @@ +7 --- codelite-2.5.2.4031~dfsg.orig/debian/README.source +++ codelite-2.5.2.4031~dfsg/debian/README.source @@ -0,0 +1,43 @@ +Repackaging +----------- + +The upstream tarball used to build this package has been repackaged to +remove unneeded/unwanted files and directories. The steps taken to do +do this were: + + uscan \ + --download-version=$(VERSION) \ + --destdir=. \ + --force-download \ + --download \ + --rename + if [ -d $(DEB_SOURCE_NAME)-$(VERSION) ]; then \ + echo "$(DEB_SOURCE_NAME)-$(VERSION) is in the way, bailing out!"; \ + exit 1; \ + fi + tar -xzf $(DEB_SOURCE_NAME)_$(VERSION).orig.tar.gz + mv \ + $(DEB_SOURCE_NAME)-$(VERSION) \ + $(DEB_SOURCE_NAME)-$(VERSION)~dfsg + GZIP=-9fn tar \ + --exclude=*.dll \ + --exclude=*.exe \ + --exclude=sdk/wxsqlite3/sqlite3 \ + --exclude=sdk/src \ + --exclude=sdk/wxconfig \ + --exclude=sdk/astyle \ + --exclude=sqlite3 \ + --exclude=unittest*.tar.gz \ + -czf $(DEB_SOURCE_NAME)_$(VERSION)~dfsg.orig.tar.gz \ + $(DEB_SOURCE_NAME)-$(VERSION)~dfsg + rm -rf \ + $(DEB_SOURCE_NAME)_$(VERSION).orig.tar.gz \ + $(DEB_SOURCE_NAME)-$(VERSION)~dfsg + +Patching +-------- + +Patches are stored in debian/patches. You can apply these patches +manually from the top of the source tree. You can also quilt to apply +patches. Install quilt and see /usr/share/doc/quilt/README.source +Also, see quilt(1). --- codelite-2.5.2.4031~dfsg.orig/debian/source/format +++ codelite-2.5.2.4031~dfsg/debian/source/format @@ -0,0 +1 @@ +1.0 --- codelite-2.5.2.4031~dfsg.orig/debian/patches/02_fix-desktop.patch +++ codelite-2.5.2.4031~dfsg/debian/patches/02_fix-desktop.patch @@ -0,0 +1,16 @@ +Author: Chow Loong Jin +Description: Fix desktop file as Freedesktop.org's per spec. +--- + Runtime/codelite.desktop.template | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +--- codelite-2.2.0.3681+dfsg.orig/Runtime/codelite.desktop.template ++++ codelite-2.2.0.3681+dfsg/Runtime/codelite.desktop.template +@@ -1,6 +1,5 @@ + [Desktop Entry] +-Encoding=UTF-8 +-Name=codelite ++Name=CodeLite + Exec=codelite %f + Icon=%%PREFIX%%/share/codelite/images/cubes.png + Terminal=false --- codelite-2.5.2.4031~dfsg.orig/debian/patches/05_codelite_xterm.patch +++ codelite-2.5.2.4031~dfsg/debian/patches/05_codelite_xterm.patch @@ -0,0 +1,42 @@ +Author: Alessio Treglia +Description: + Don't rely on xterm, try to use the user's preferred terminal emulator first. + The option to change the window title differ between terminal emulators, try + to set the right one. +Forwarded: no +--- + Runtime/codelite_xterm | 20 ++++++++++++++++++-- + 1 file changed, 18 insertions(+), 2 deletions(-) + +--- codelite.orig/Runtime/codelite_xterm ++++ codelite/Runtime/codelite_xterm +@@ -9,11 +9,27 @@ if [ $# -ne 2 ]; then + fi + + program_title=$1 ++terminal_emulator=$(basename $(readlink -e /usr/bin/x-terminal-emulator)) ++ ++title_opt="-T" ++cmd_opt="-e" ++ ++case ${terminal_emulator} in ++ "gnome-terminal") ++ title_opt="-t" ++ ;; ++ "terminator") ++ cmd_opt="-x" ++ ;; ++ *) ++ ;; ++esac ++ + if [ "${LD_LIBRARY_PATH}" = "" ]; then + ## LD_LIBRARY_PATH is not defined OR empty + ## Run xterm without the bash wrapper +- xterm -T "$program_title" -e $2 2> /dev/null ++ x-terminal-emulator "${title_opt}" "${program_title}" "${cmd_opt}" $2 2> /dev/null + else +- xterm -T "$program_title" -e /bin/bash -c 'export LD_LIBRARY_PATH=$0;shift;$@' $LD_LIBRARY_PATH $@ 2> /dev/null ++ x-terminal-emulator "${title_opt}" "${program_title}" "${cmd_opt}" /bin/bash -c 'export LD_LIBRARY_PATH=$0;shift;$@' $LD_LIBRARY_PATH $@ 2> /dev/null + fi + --- codelite-2.5.2.4031~dfsg.orig/debian/patches/04_configure.patch +++ codelite-2.5.2.4031~dfsg/debian/patches/04_configure.patch @@ -0,0 +1,35 @@ +--- + configure | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +--- codelite.orig/configure ++++ codelite/configure +@@ -76,7 +76,7 @@ createVariables() + echo "DESTDIR=" >> Makefile + echo "" >> Makefile + echo "CCFLAGS= -Wall \$(shell wx-config --cxxflags \$(WXCFG)) -fno-strict-aliasing -DASTYLE_LIB -DYY_NEVER_INTERACTIVE=1 -DGTK -DSCI_LEXER -DLINK_LEXERS -D__WX__ -DINSTALL_DIR=\\\"${prefix}/share/codelite\\\" -DPLUGINS_DIR=\\\"${plugins_dir}\\\"" >> Makefile +- echo "LINK_FLAGS = -L${base_dir}/\$(OUTPUT_DIR) ${rpaths} -lplugin\$(EXT) -lcodelite\$(EXT) -lwxsqlite3\$(EXT) -lwxscintilla\$(EXT) -L${base_dir}/sdk/sqlite3/lib \$(shell ${wxconfiglibs} \$(WXCFG))" >> Makefile ++ echo "LINK_FLAGS = -L${base_dir}/\$(OUTPUT_DIR) ${rpaths} -lplugin\$(EXT) -lcodelite\$(EXT) -lwxsqlite3\$(EXT) -lwxscintilla\$(EXT) -L${base_dir}/sdk/sqlite3/lib \$(shell ${wxconfiglibs} \$(WXCFG)) -lsqlite3" >> Makefile + echo "PLUGIN_LINK_FLAGS = -L${base_dir}/\$(OUTPUT_DIR) \$(shell ${wxconfiglibs} \$(WXCFG)) ${additional_links} " >> Makefile + echo "INCLUDES := \$(INCLUDES) ${additional_include_path} " >> Makefile + echo "" >> Makefile +@@ -725,7 +725,7 @@ createVariables "no" + createObjectList "sdk/wxscintilla/src/scintilla/src/*.cxx sdk/wxscintilla/src/*.cpp" "ScintillaObjects" + createObjectList "sdk/codelite_indexer/network/*.cpp CodeLite/*.cpp" "CodeLiteObjects" + createObjectList "LiteEditor/*.cpp" "LiteEditorObjects" +-createObjectList "sdk/wxsqlite3/src/*.cpp sqlite3/*.c" "wxSqlite3Objects" ++createObjectList "sdk/wxsqlite3/src/*.cpp" "wxSqlite3Objects" + createObjectList "Plugin/*.cpp Plugin/*.c" "SDKObjects" + + createMainTargets +@@ -735,8 +735,8 @@ echo >> Makefile + # First the non-plugin .so libs: + createRules_sharedObject "Plugin/*.cpp Plugin/*.c" "SDKObjects" "SDK" "libplugin\$(EXT)" "dont_copy" "-L./lib -lwxscintilla\$(EXT) -lcodelite\$(EXT)" + createRules_sharedObject "sdk/wxscintilla/src/scintilla/src/*.cxx sdk/wxscintilla/src/*.cpp" "ScintillaObjects" "Scintilla" "libwxscintilla\$(EXT)" "dont_copy" +-createRules_sharedObject "sdk/codelite_indexer/network/*.cpp CodeLite/*.cpp" "CodeLiteObjects" "CodeLite" "libcodelite\$(EXT)" "dont_copy" "-L./lib -lwxsqlite3\$(EXT)" +-createRules_sharedObject "sdk/wxsqlite3/src/*.cpp sqlite3/*.c" "wxSqlite3Objects" "SQLite" "libwxsqlite3\$(EXT)" "dont_copy" "" ++createRules_sharedObject "sdk/codelite_indexer/network/*.cpp CodeLite/*.cpp" "CodeLiteObjects" "CodeLite" "libcodelite\$(EXT)" "dont_copy" "-L./lib -lwxsqlite3\$(EXT) -lsqlite3" ++createRules_sharedObject "sdk/wxsqlite3/src/*.cpp" "wxSqlite3Objects" "SQLite" "libwxsqlite3\$(EXT)" "dont_copy" "" + + # Then the binary, and indexer + createRules_exe "LiteEditor/*.cpp" "LiteEditorObjects" "LiteEditor" ${exe_name} --- codelite-2.5.2.4031~dfsg.orig/debian/patches/series +++ codelite-2.5.2.4031~dfsg/debian/patches/series @@ -0,0 +1,5 @@ +01_x-terminal-emulator.patch +02_fix-desktop.patch +03_move-helper-binaries.patch +04_configure.patch +05_codelite_xterm.patch --- codelite-2.5.2.4031~dfsg.orig/debian/patches/03_move-helper-binaries.patch +++ codelite-2.5.2.4031~dfsg/debian/patches/03_move-helper-binaries.patch @@ -0,0 +1,56 @@ +Origin: Ubuntu +Bug-Ubuntu: https://bugs.launchpad.net/bugs/511375 +Description: Fix codelite_indexer path. +--- + LiteEditor/frame.cpp | 2 +- + LiteEditor/manager.cpp | 2 +- + Plugin/pipedprocess.cpp | 3 +-- + cppchecker/cppchecker.cpp | 3 +-- + 4 files changed, 4 insertions(+), 6 deletions(-) + +--- codelite.orig/LiteEditor/manager.cpp ++++ codelite/LiteEditor/manager.cpp +@@ -1215,7 +1215,7 @@ wxString Manager::GetProjectExecutionCom + if ( bldConf->GetPauseWhenExecEnds() ) { + wxString ld_lib_path; + wxFileName exePath ( wxStandardPaths::Get().GetExecutablePath() ); +- wxFileName exeWrapper ( exePath.GetPath(), wxT ( "codelite_exec" ) ); ++ wxFileName exeWrapper ( wxStandardPaths::Get().GetPluginsDir(), wxT ( "codelite_exec" ) ); + + if ( wxGetEnv ( wxT ( "LD_LIBRARY_PATH" ), &ld_lib_path ) && ld_lib_path.IsEmpty() == false ) { + command << wxT ( "/bin/sh -f " ) << exeWrapper.GetFullPath() << wxT ( " LD_LIBRARY_PATH=" ) << ld_lib_path << wxT ( " " ); +--- codelite.orig/LiteEditor/frame.cpp ++++ codelite/LiteEditor/frame.cpp +@@ -770,7 +770,7 @@ void Frame::CreateGUIControls(void) + #else + // set the path to codelite_indexer + wxFileName exePath( wxStandardPaths::Get().GetExecutablePath() ); +- tagsManager->SetCodeLiteIndexerPath(exePath.GetPath()); ++ tagsManager->SetCodeLiteIndexerPath(wxStandardPaths::Get().GetPluginsDir()); + ManagerST::Get()->SetCodeLiteLauncherPath(exePath.GetPath()); + #endif + tagsManager->StartCtagsProcess(); +--- codelite.orig/Plugin/pipedprocess.cpp ++++ codelite/Plugin/pipedprocess.cpp +@@ -54,8 +54,7 @@ void PipedProcess::Terminate() + { + #ifdef __WXGTK__ + wxString cmd; +- wxFileName exePath(wxStandardPaths::Get().GetExecutablePath()); +- wxFileName script(exePath.GetPath(), wxT("codelite_kill_children")); ++ wxFileName script(wxStandardPaths::Get().GetPluginsDir(), wxT("codelite_kill_children")); + cmd << wxT("/bin/sh -f ") << script.GetFullPath() << wxT(" ") << GetPid(); + wxExecute(cmd, wxEXEC_ASYNC); + #else +--- codelite.orig/cppchecker/cppchecker.cpp ++++ codelite/cppchecker/cppchecker.cpp +@@ -464,8 +464,7 @@ wxString CppCheckPlugin::DoGetCommand() + path = wxStandardPaths::Get().GetDataDir(); + + #else // Linux / Windows +- wxFileName exePath( wxStandardPaths::Get().GetExecutablePath() ); +- path = exePath.GetPath(); ++ path = wxStandardPaths::Get().GetPluginsDir(); + + #endif + --- codelite-2.5.2.4031~dfsg.orig/debian/patches/01_x-terminal-emulator.patch +++ codelite-2.5.2.4031~dfsg/debian/patches/01_x-terminal-emulator.patch @@ -0,0 +1,239 @@ +Author: Chow Loong Jin +Description: Fallback on "x-terminal-emulator" if all other terminal + emulators cannot be found. +--- + CodeLite/procutils.cpp | 4 - + LiteEditor/manager.cpp | 4 - + Plugin/consolefinder.cpp | 6 + + Plugin/macros.h | 162 +++++++++++++++++++++++------------------------ + 4 files changed, 90 insertions(+), 86 deletions(-) + +--- codelite.orig/CodeLite/procutils.cpp ++++ codelite/CodeLite/procutils.cpp +@@ -419,7 +419,9 @@ bool ProcUtils::Shell() + //try to locate the default terminal + wxString terminal; + wxString where; +- if (Locate(wxT("gnome-terminal"), where)) { ++ if (Locate(wxT("x-terminal-emulator"), where)) { ++ terminal = where; ++ } else if (Locate(wxT("gnome-terminal"), where)) { + terminal = where; + } else if (Locate(wxT("konsole"), where)) { + terminal = where; +--- codelite.orig/LiteEditor/manager.cpp ++++ codelite/LiteEditor/manager.cpp +@@ -1897,8 +1897,8 @@ void Manager::DbgStart ( long pid ) + + #if defined(__WXGTK__) + wxString where; +- if ( !ExeLocator::Locate ( wxT ( "xterm" ), where ) ) { +- wxMessageBox ( _ ( "Failed to locate 'xterm' application required by CodeLite, please install it and try again!" ), wxT ( "CodeLite" ), wxOK|wxCENTER|wxICON_WARNING, Frame::Get() ); ++ if ( !ExeLocator::Locate ( wxT ( "x-terminal-emulator" ), where ) ) { ++ wxMessageBox ( _ ( "Failed to locate 'x-terminal-emulator' application required by CodeLite, please install it and try again!" ), wxT ( "CodeLite" ), wxOK|wxCENTER|wxICON_WARNING, Frame::Get() ); + return; + } + #endif +--- codelite.orig/Plugin/macros.h ++++ codelite/Plugin/macros.h +@@ -22,97 +22,97 @@ + // + ////////////////////////////////////////////////////////////////////////////// + ////////////////////////////////////////////////////////////////////////////// +- #ifndef MACROS_H +-#define MACROS_H +- ++ #ifndef MACROS_H ++#define MACROS_H ++ + #include +-//------------------------------------------------------- +-// wxWidgets Connect macros +-//------------------------------------------------------- +- +-#define ConnectChoice(ctrl, fn)\ +- ctrl->Connect(ctrl->GetId(), wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler(fn), NULL, this); +- +-#define ConnectButton(ctrl, fn)\ +- ctrl->Connect(ctrl->GetId(), wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(fn), NULL, this); +- +-#define ConnectListBoxDClick(ctrl, fn)\ +- ctrl->Connect(ctrl->GetId(), wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler(fn), NULL, this); +- +-#define ConnectCheckBox(ctrl, fn)\ +- ctrl->Connect(ctrl->GetId(), wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler(fn), NULL, this); +- +-#define ConnectListCtrlItemSelected(ctrl, fn)\ +- ctrl->Connect(ctrl->GetId(), wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler(fn), NULL, this); +- +-#define ConnectListCtrlItemActivated(ctrl, fn)\ +- ctrl->Connect(ctrl->GetId(), wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler(fn), NULL, this); +- +-#define ConnectKeyDown(ctrl, fn)\ +- ctrl->Connect(ctrl->GetId(), wxEVT_KEY_DOWN, wxKeyEventHandler(fn), NULL, this); +- +-#define ConnectCharEvent(ctrl, fn)\ +- ctrl->Connect(ctrl->GetId(), wxEVT_CHAR, wxKeyEventHandler(fn), NULL, this); +- +-#define ConnectCmdTextEntered(ctrl, fn)\ +- ctrl->Connect(ctrl->GetId(), wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler(fn), NULL, this); +- +-#define ConnectCmdTextUpdated(ctrl, fn)\ +- ctrl->Connect(ctrl->GetId(), wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler(fn), NULL, this); +- +-#define ConnectCombo(ctrl, fn)\ +- ctrl->Connect(ctrl->GetId(), wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler(fn), NULL, this); +- +-#define ConnectCheckList(ctrl, fn)\ +- ctrl->Connect(ctrl->GetId(), wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, wxCommandEventHandler(fn), NULL, this); +- +-#define TrimString(str){\ +- str = str.Trim();\ +- str = str.Trim(false);\ +- } +- +-#define IsSourceFile(ext)\ +- (ext == wxT("cpp") || ext == wxT("cxx") || ext == wxT("c") || ext == wxT("c++") || ext == wxT("cc")) +- +-#define BoolToString(b) b ? wxT("yes") : wxT("no") +- +-//----------------------------------------------------- +-// Constants +-//----------------------------------------------------- +- +-const wxString clCMD_NEW = wxT(""); +-const wxString clCMD_EDIT = wxT(""); +-const wxString clCMD_DELETE = wxT(""); +- +-// constant message +-const wxString BUILD_START_MSG = wxT("----------Build Started--------\n"); +-const wxString BUILD_END_MSG = wxT("----------Build Ended----------\n"); ++//------------------------------------------------------- ++// wxWidgets Connect macros ++//------------------------------------------------------- ++ ++#define ConnectChoice(ctrl, fn)\ ++ ctrl->Connect(ctrl->GetId(), wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler(fn), NULL, this); ++ ++#define ConnectButton(ctrl, fn)\ ++ ctrl->Connect(ctrl->GetId(), wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(fn), NULL, this); ++ ++#define ConnectListBoxDClick(ctrl, fn)\ ++ ctrl->Connect(ctrl->GetId(), wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler(fn), NULL, this); ++ ++#define ConnectCheckBox(ctrl, fn)\ ++ ctrl->Connect(ctrl->GetId(), wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler(fn), NULL, this); ++ ++#define ConnectListCtrlItemSelected(ctrl, fn)\ ++ ctrl->Connect(ctrl->GetId(), wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler(fn), NULL, this); ++ ++#define ConnectListCtrlItemActivated(ctrl, fn)\ ++ ctrl->Connect(ctrl->GetId(), wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler(fn), NULL, this); ++ ++#define ConnectKeyDown(ctrl, fn)\ ++ ctrl->Connect(ctrl->GetId(), wxEVT_KEY_DOWN, wxKeyEventHandler(fn), NULL, this); ++ ++#define ConnectCharEvent(ctrl, fn)\ ++ ctrl->Connect(ctrl->GetId(), wxEVT_CHAR, wxKeyEventHandler(fn), NULL, this); ++ ++#define ConnectCmdTextEntered(ctrl, fn)\ ++ ctrl->Connect(ctrl->GetId(), wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler(fn), NULL, this); ++ ++#define ConnectCmdTextUpdated(ctrl, fn)\ ++ ctrl->Connect(ctrl->GetId(), wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler(fn), NULL, this); ++ ++#define ConnectCombo(ctrl, fn)\ ++ ctrl->Connect(ctrl->GetId(), wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler(fn), NULL, this); ++ ++#define ConnectCheckList(ctrl, fn)\ ++ ctrl->Connect(ctrl->GetId(), wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, wxCommandEventHandler(fn), NULL, this); ++ ++#define TrimString(str){\ ++ str = str.Trim();\ ++ str = str.Trim(false);\ ++ } ++ ++#define IsSourceFile(ext)\ ++ (ext == wxT("cpp") || ext == wxT("cxx") || ext == wxT("c") || ext == wxT("c++") || ext == wxT("cc")) ++ ++#define BoolToString(b) b ? wxT("yes") : wxT("no") ++ ++//----------------------------------------------------- ++// Constants ++//----------------------------------------------------- ++ ++const wxString clCMD_NEW = wxT(""); ++const wxString clCMD_EDIT = wxT(""); ++const wxString clCMD_DELETE = wxT(""); ++ ++// constant message ++const wxString BUILD_START_MSG = wxT("----------Build Started--------\n"); ++const wxString BUILD_END_MSG = wxT("----------Build Ended----------\n"); + const wxString BUILD_PROJECT_PREFIX = wxT("----------Building project:[ "); + const wxString CLEAN_PROJECT_PREFIX = wxT("----------Cleaning project:[ "); +-const wxString SEARCH_IN_WORKSPACE = wxT("Entire Workspace"); +-const wxString SEARCH_IN_PROJECT = wxT("Active Project"); ++const wxString SEARCH_IN_WORKSPACE = wxT("Entire Workspace"); ++const wxString SEARCH_IN_PROJECT = wxT("Active Project"); + const wxString SEARCH_IN_CURR_FILE_PROJECT = wxT("Current File's Project"); + + // terminal macro + #ifdef __WXGTK__ +-#define TERMINAL_CMD wxString::Format(wxT("%s/codelite_xterm '$(TITLE)' '$(CMD)'"), wxFileName(wxStandardPaths::Get().GetExecutablePath()).GetPath().c_str()) ++#define TERMINAL_CMD wxString::Format(wxT("%s/codelite_xterm '$(TITLE)' '$(CMD)'"), wxStandardPaths::Get().GetPluginsDir().c_str()) + #elif defined(__WXMAC__) + #define TERMINAL_CMD wxString::Format(wxT("%s/OpenTerm '$(CMD)'"), wxStandardPaths::Get().GetDataDir().c_str()) + #else + const wxString TERMINAL_CMD = wxT(""); + #endif +- +-#ifdef __WXMSW__ +-#define PATH_SEP wxT("\\") +-#else +-#define PATH_SEP wxT("/") +-#endif +- +-#define viewAsMenuItemID 23500 +-#define viewAsMenuItemMaxID 23500+100 +- +-#define viewAsSubMenuID 23499 +-#define RecentFilesSubMenuID 23600 +-#define RecentWorkspaceSubMenuID 23650 + +-#endif // MACROS_H ++#ifdef __WXMSW__ ++#define PATH_SEP wxT("\\") ++#else ++#define PATH_SEP wxT("/") ++#endif ++ ++#define viewAsMenuItemID 23500 ++#define viewAsMenuItemMaxID 23500+100 ++ ++#define viewAsSubMenuID 23499 ++#define RecentFilesSubMenuID 23600 ++#define RecentWorkspaceSubMenuID 23650 ++ ++#endif // MACROS_H +--- codelite.orig/Plugin/consolefinder.cpp ++++ codelite/Plugin/consolefinder.cpp +@@ -153,7 +153,9 @@ wxString ConsoleFinder::GetConsoleName() + //try to locate the default terminal + wxString terminal; + wxString where; +- if (ExeLocator::Locate(wxT("gnome-terminal"), where)) { ++ if (ExeLocator::Locate(wxT("x-terminal-emulator"), where)) { ++ terminal = wxT("x-terminal-emulator -e "); ++ }else if (ExeLocator::Locate(wxT("gnome-terminal"), where)) { + terminal = wxT("gnome-terminal -e "); + } else if (ExeLocator::Locate(wxT("konsole"), where)) { + terminal = wxT("konsole"); +@@ -162,7 +164,7 @@ wxString ConsoleFinder::GetConsoleName() + } + + if (cmd.IsEmpty()) { +- cmd = wxT("xterm -e "); ++ cmd = wxT("x-terminal-emulator -e "); + } + + cmd = terminal;