Browse Source

Added debian folder.

git-svn-id: file:///var/svn/tigccpp/trunk@1257 9552661e-59e3-4036-b4f2-dbe53926924f
roms 16 years ago
parent
commit
17060f5142

+ 25 - 0
ktigcc/debian/changelog

@@ -0,0 +1,25 @@
+ktigcc (1.09-2) stable; urgency=low
+
+  * See NEWS file.
+  * CVS ktigcc-1-branch (2008-05-01)
+  * include 'ktigcc-obsolete-kde.diff' patch for use with Debian stable release of kdelibs (3.5.5)
+	
+ -- Romain LIEVIN <roms@tilp.info>  Thu, 22 May 2008 14:27:02 +0100
+	
+ktigcc (1.09-1) testing; urgency=low
+
+  * See NEWS file.
+
+ -- Romain LIEVIN <roms@tilp.info>  Sat, 08 Dec 2007 21:45:48 +0100	
+
+ktigcc (1.08-1) unstable; urgency=low
+
+  * See NEWS file.
+
+ -- Romain LIEVIN <roms@tilp.info>  Tue, 04 Sep 2007 09:48:37 +0100	
+
+ktigcc (1.07-1) unstable; urgency=low
+
+  * Initial release.
+
+ -- Romain LIEVIN <roms@tilp.info>  Tue, 10 May 2007 14:15:34 +0100

+ 1 - 0
ktigcc/debian/compat

@@ -0,0 +1 @@
+5

+ 17 - 0
ktigcc/debian/control

@@ -0,0 +1,17 @@
+Source: ktigcc
+Section: devel
+Priority: optional
+Maintainer: Romain LIEVIN <roms@tilp.info>
+Build-Depends: debhelper (>= 5), libticables2-1-dev (>= 1.2.0-1), libticalcs2-7-dev (>= 1.1.0-1), libtifiles2-5-dev (>= 1.1.0-1), libticonv3 (>= 1.1.0-1), libgtk2.0-dev, libqt3-mt-dev (>= 4.2.0-1), kdebase-dev (>= 3.5.5-1), kdelibs4-dev (>= 3.5.5-1), exuberant-ctags
+Standards-Version: 3.7.2
+
+Package: ktigcc
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, exuberant-ctags, qt3-assistant
+Description: An IDE for TIGCC using KDE
+ KTIGCC is an IDE for the TIGCC cross-toolchain on *nix/X11 platforms, using 
+ the KDE4 libraries.
+ .
+ Note: this package depends on TIGCC which is not provided. You will have to
+ download and install it from <http://tigcc.ticalc.org>
+ .

+ 14 - 0
ktigcc/debian/copyright

@@ -0,0 +1,14 @@
+This package was debianized by Julien BLACHE <jblache@debian.org> on
+Mon, 14 Feb 2000 14:55:57 +0100.
+
+It was downloaded from: http://tilp.info/
+
+Upstream Authors: Romain LIEVIN <roms@tilp.info>
+                  Julien BLACHE <jb@tilp.info>
+
+This software is copyright (c) 1999-2002 Romain LIÉVIN, Julien BLACHE.
+
+You are free to distribute this software under the terms of the GNU General
+Public License.
+On Debian systems, the complete text of the GNU General Public License can be
+found in /usr/share/common-licenses/GPL file.

+ 1 - 0
ktigcc/debian/files

@@ -0,0 +1 @@
+ktigcc_1.09-2_amd64.deb devel optional

+ 102 - 0
ktigcc/debian/ktigcc-obsolete-kde.diff

@@ -0,0 +1,102 @@
+diff -ur ktigcc/ktigcc.cpp ktigcc-obsolete-kde/ktigcc.cpp
+--- ktigcc/ktigcc.cpp	2007-10-09 21:36:50.000000000 +0200
++++ ktigcc-obsolete-kde/ktigcc.cpp	2008-04-28 02:49:41.000000000 +0200
+@@ -39,8 +39,8 @@
+ #include "mainform.h"
+ 
+ // Check for KDE version at compile time to avoid wasting users' time
+-#if KDE_VERSION < KDE_MAKE_VERSION(3,5,7)
+-#error KDE 3.5.7 or higher required
++#if KDE_VERSION < KDE_MAKE_VERSION(3,5,2)
++#error KDE 3.5.2 or higher required
+ #endif
+ 
+ using namespace std;
+@@ -78,8 +78,8 @@
+   QTextCodec::setCodecForCStrings(QTextCodec::codecForLocale());
+ 
+   // Check for KDE version
+-  if (KDE::version() < KDE_MAKE_VERSION(3,5,7))
+-    qFatal("KDE 3.5.7 or higher required");
++  if (KDE::version() < KDE_MAKE_VERSION(3,5,2))
++    qFatal("KDE 3.5.2 or higher required");
+ 
+   KAboutData about("ktigcc","TIGCC IDE for KDE","1.09",
+   "TIGCC C and ASM SDK", KAboutData::License_GPL,
+diff -ur ktigcc/preferences.cpp ktigcc-obsolete-kde/preferences.cpp
+--- ktigcc/preferences.cpp	2007-10-09 21:36:50.000000000 +0200
++++ ktigcc-obsolete-kde/preferences.cpp	2008-04-28 02:48:23.000000000 +0200
+@@ -44,12 +44,36 @@
+ 
+ // versions of the syntax highlighting description file:
+ // 1.00 = KTIGCC 20060807 Beta
+-// 1.01 = KTIGCC 20060814 Beta - 1.07 
+-// 1.02 = current KTIGCC 1 (since 1.08)
+-#define CURRENT_SYNFILE_VERSION "1.02"
++// 1.01 = current
++#define CURRENT_SYNFILE_VERSION "1.01"
+ 
+ TIGCCPrefs preferences;
+ 
++static void genAllCaseVariants(QString keyword, unsigned pos,
++                               QStringList &stringList)
++{
++  // WARNING: Exponential complexity in the keyword length. Yuck!
++  // Blame Kate's lack of flexibility.
++  // Also note that this just LOOKS like a functional recursion, there ARE side
++  // effects.
++  QChar c=keyword[pos];
++  if (c.isNull())
++    stringList.append(keyword);
++  else {
++    QChar upper=c.upper();
++    QChar lower=c.lower();
++    if (lower==upper)
++      genAllCaseVariants(keyword,pos+1,stringList);
++    else {
++      keyword[pos]=upper;
++      genAllCaseVariants(keyword,pos+1,stringList);
++      keyword[pos]=lower;
++      genAllCaseVariants(keyword,pos+1,stringList);
++      keyword[pos]=c;
++    }
++  }
++}
++
+ static void writeSyntaxXML(const Syn_SettingsForDoc &synprefs,
+                            const QString &name, const QString &internalName)
+ {
+@@ -95,7 +119,23 @@
+     const Syn_WordList &wordList=*it;
+     CHILD_NODE(list,highlighting,"list");
+     ADD_ATTR(list,"name",wordList.name);
+-    QStringList stringList=wordList.list;
++    QStringList stringList;
++    if (wordList.caseSensitive || allWordListsCaseInsensitive)
++      stringList=wordList.list;
++    else {
++      // This is really ugly. Why can't Kate allow me to specify
++      // case-sensitivity per word list?
++      for (QStringList::ConstIterator it=wordList.list.begin();
++           it!=wordList.list.end(); ++it) {
++        const QString &keyword=*it;
++        // This is bad, but I need to cap time, memory and disk space
++        // requirements somewhere.
++        if (keyword.length()<=10)
++          genAllCaseVariants(keyword,0,stringList);
++        else
++          stringList.append(keyword);
++      }
++    }
+     for (QStringList::ConstIterator it=stringList.begin(); it!=stringList.end();
+          ++it) {
+       const QString &keyword=*it;
+@@ -155,8 +195,6 @@
+     ADD_ATTR(detectWordList,"attribute",wordList.name);
+     ADD_ATTR(detectWordList,"context","#stay");
+     ADD_ATTR(detectWordList,"String",wordList.name);
+-    if (!(wordList.caseSensitive || allWordListsCaseInsensitive))
+-      ADD_ATTR(detectWordList,"insensitive","true");
+   }
+   CHILD_NODE(numFloat,defaultContext,"Float");
+   ADD_ATTR(numFloat,"attribute","Number");

+ 1 - 0
ktigcc/debian/ktigcc.docs

@@ -0,0 +1 @@
+NEWS

+ 1 - 0
ktigcc/debian/ktigcc.manpages

@@ -0,0 +1 @@
+debian/man/ktigcc.1

+ 3 - 0
ktigcc/debian/ktigcc.menu

@@ -0,0 +1,3 @@
+?package(ktigcc):needs="X11" section="Apps/Math"\
+  title="KTIGCC" command="/usr/bin/ktigcc"
+

+ 5 - 0
ktigcc/debian/ktigcc.postinst.debhelper

@@ -0,0 +1,5 @@
+# Automatically added by dh_installmenu
+if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
+	update-menus
+fi
+# End automatically added section

+ 3 - 0
ktigcc/debian/ktigcc.postrm.debhelper

@@ -0,0 +1,3 @@
+# Automatically added by dh_installmenu
+if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi
+# End automatically added section

+ 1 - 0
ktigcc/debian/ktigcc.substvars

@@ -0,0 +1 @@
+shlibs:Depends=kdelibs4c2a (>= 4:3.5.8-1), libc6 (>= 2.7-1), libgcc1 (>= 1:4.2.1), libglib2.0-0 (>= 2.14.0), libqt3-mt (>= 3:3.3.7), libstdc++6 (>= 4.2.1), libticables2-1, libticalcs2-7, libticonv3, libtifiles2-5, libx11-6, libxext6

+ 46 - 0
ktigcc/debian/man/ktigcc.1

@@ -0,0 +1,46 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH KTIGCC 1 "mai 11, 2007"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh        disable hyphenation
+.\" .hy        enable hyphenation
+.\" .ad l      left justify
+.\" .ad b      justify to both left and right margins
+.\" .nf        disable filling
+.\" .fi        enable filling
+.\" .br        insert line break
+.\" .sp <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+ktigcc \- ASM/C IDE for TIGCC
+.SH SYNOPSIS
+.B ktigcc
+.RI [ Qt-options ] [ KDE-options ] " file"
+.SH DESCRIPTION
+.B ktigcc
+is a full-featured IDE for TIGCC.
+.SH OPTIONS
+These programs follow the usual GNU command line syntax, with long
+options starting with two dashes (`-').
+A summary of options is included below.
+For a complete description, see the Info files.
+.TP
+.B \-h, \-\-help
+Show summary of options.
+.TP
+.B \-v, \-\-version
+Show version of program.
+.TP
+.B file
+Project to open.
+.SH SEE ALSO
+tigcc
+.SH AUTHOR
+ktigcc was written by Kevin Kofler <Kevin@tigcc.ticalc.org>.
+.PP
+This manual page was written by Romain Lievin <roms@tilp.info>,
+for the Debian project.

+ 94 - 0
ktigcc/debian/rules

@@ -0,0 +1,94 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -g
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	INSTALL_PROGRAM += -s
+endif
+
+config.status: configure
+	dh_testdir
+	# Add here commands to configure the package.
+	export TIGCC=/usr; rm Makefile; ./configure --prefix=/usr
+
+build: build-stamp
+build-stamp:  config.status
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE)
+
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp 
+
+	# Add here commands to clean up after the build process.
+	-$(MAKE) distclean
+
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	# Add here commands to install the package into debian/ktigcc
+	$(MAKE) INSTALL_ROOT=$(CURDIR)/debian/ktigcc install
+	rm -Rf $(CURDIR)/debian/ktigcc/usr/doc
+
+# Build architecture-independent files here.
+binary-indep: build install
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	dh_installexamples
+	dh_install
+	dh_installman
+	dh_installmenu
+#	dh_installpam
+#	dh_installmime
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install