diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-10-05 04:28:04 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-10-05 04:28:04 +0800 |
commit | 19469b9474926f8a7412b0f846dd403bd04deb24 (patch) | |
tree | 34f69e46e2b434bd5a6bb9efb610f3e083f12a79 | |
parent | 8ebcbb21c2d6caea8d2927054dc6268389cec11a (diff) | |
download | marcuscom-ports-19469b9474926f8a7412b0f846dd403bd04deb24.tar marcuscom-ports-19469b9474926f8a7412b0f846dd403bd04deb24.tar.gz marcuscom-ports-19469b9474926f8a7412b0f846dd403bd04deb24.tar.bz2 marcuscom-ports-19469b9474926f8a7412b0f846dd403bd04deb24.tar.lz marcuscom-ports-19469b9474926f8a7412b0f846dd403bd04deb24.tar.xz marcuscom-ports-19469b9474926f8a7412b0f846dd403bd04deb24.tar.zst marcuscom-ports-19469b9474926f8a7412b0f846dd403bd04deb24.zip |
- Move to LOCALBASE
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7563 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | devel/titano/Makefile | 45 | ||||
-rw-r--r-- | devel/titano/distinfo | 3 | ||||
-rw-r--r-- | devel/titano/files/gcc3-patch-src_projects.cc | 22 | ||||
-rw-r--r-- | devel/titano/files/gcc3-patch-src_projects.h | 30 | ||||
-rw-r--r-- | devel/titano/files/gcc3-patch-src_titano-app.cc | 11 | ||||
-rw-r--r-- | devel/titano/files/gcc3-patch-src_views.cc | 21 | ||||
-rw-r--r-- | devel/titano/files/patch-src_automake.h | 14 | ||||
-rw-r--r-- | devel/titano/files/patch-src_conffile.h | 11 | ||||
-rw-r--r-- | devel/titano/files/patch-src_iexceptions.h | 51 | ||||
-rw-r--r-- | devel/titano/files/patch-src_prefs.cc | 25 | ||||
-rw-r--r-- | devel/titano/pkg-descr | 13 | ||||
-rw-r--r-- | devel/titano/pkg-plist | 57 |
12 files changed, 303 insertions, 0 deletions
diff --git a/devel/titano/Makefile b/devel/titano/Makefile new file mode 100644 index 000000000..0f918009e --- /dev/null +++ b/devel/titano/Makefile @@ -0,0 +1,45 @@ +# New ports collection makefile for: Titano +# Date created: 25 September 2000 +# Whom: Maxim Sobolev <sobomax@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= titano +PORTVERSION= 0.0.7 +PORTREVISION= 2 +CATEGORIES= devel gnome +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= danfe@FreeBSD.org +COMMENT= An IDE for GNOME desktop + +LIB_DEPENDS= unicode.0:${PORTSDIR}/devel/libunicode + +USE_GNOME= gnomelibs libglade +USE_GMAKE= yes +GNU_CONFIGURE= yes + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} > 500034 +EXTRA_PATCHES+= ${FILESDIR}/gcc3-* +.endif + +pre-patch: .SILENT + ${REINPLACE_CMD} -e 's|malloc\.h|stdlib\.h|' \ + ${WRKSRC}/src/scintilla/PosRegExp.cxx + ${REINPLACE_CMD} -e 's|^INCLUDES.*$$|&$$(LIBGLADE_CFLAGS)|' \ + ${WRKSRC}/src/Makefile.in + ${REINPLACE_CMD} -E 's|(POTFILES\.in )\\$$|\1--from-code=koi8-r \\|' \ + ${WRKSRC}/po/Makefile.in.in +# Now, take care of CC/CFLAGS + ${REINPLACE_CMD} -e 's|cc -Wall -ggdb $$(OPTIMIZE)|${CC} ${CFLAGS}|' \ + ${WRKSRC}/src/gtkeditor/tktext-port/Makefile + ${REINPLACE_CMD} -e 's|gcc|${CC} ${CFLAGS}|' \ + ${WRKSRC}/src/scanners/Makefile.in + ${REINPLACE_CMD} -E 's|^(CXXFLAGS).*$$|\1 += -DGTK -DSCI_LEXER|' \ + ${WRKSRC}/src/scintilla/Makefile.in + +.include <bsd.port.post.mk> diff --git a/devel/titano/distinfo b/devel/titano/distinfo new file mode 100644 index 000000000..f1db46736 --- /dev/null +++ b/devel/titano/distinfo @@ -0,0 +1,3 @@ +MD5 (titano-0.0.7.tar.gz) = f886e314180c3eae524bf51521d79689 +SHA256 (titano-0.0.7.tar.gz) = a2ff86482e0325e2aede6fe3f6cd99a78295af47f4d39513f4626f4fe7b3d454 +SIZE (titano-0.0.7.tar.gz) = 751505 diff --git a/devel/titano/files/gcc3-patch-src_projects.cc b/devel/titano/files/gcc3-patch-src_projects.cc new file mode 100644 index 000000000..540d717a1 --- /dev/null +++ b/devel/titano/files/gcc3-patch-src_projects.cc @@ -0,0 +1,22 @@ +--- src/projects.cc.orig Sat Dec 9 23:13:32 2000 ++++ src/projects.cc Thu Apr 7 19:10:08 2005 +@@ -100,13 +100,13 @@ + int pos = name.rfind('.'); + + if(pos != name.npos){ +- if(!name.compare(".h",pos,2)) ++ if(!name.compare(pos,2,".h")) + res = C_HEADER; +- if(!name.compare(".c",pos,2)|| +- !name.compare(".C",pos,2)|| +- !name.compare(".cc",pos,3)|| +- !name.compare(".cpp",pos,4)|| +- !name.compare(".cxx",pos,4)) ++ if(!name.compare(pos,2,".c")|| ++ !name.compare(pos,2,".C")|| ++ !name.compare(pos,3,".cc")|| ++ !name.compare(pos,4,".cpp")|| ++ !name.compare(pos,4,".cxx")) + res = C_SOURCE; + }; + diff --git a/devel/titano/files/gcc3-patch-src_projects.h b/devel/titano/files/gcc3-patch-src_projects.h new file mode 100644 index 000000000..3b65f689d --- /dev/null +++ b/devel/titano/files/gcc3-patch-src_projects.h @@ -0,0 +1,30 @@ +--- src/projects.h.orig Sat Dec 9 22:57:49 2000 ++++ src/projects.h Thu Apr 7 17:30:36 2005 +@@ -21,22 +21,24 @@ + #define _PROJECTS_H + + #include <string> +-#include <hash_map> ++#include <ext/hash_map> + #include <list> + + #include "dialogs.h" + #include "files.h" + ++using namespace std; ++ + struct str_hasher + { + size_t operator()(const string &str) const + { +- hash<char *> hasher; ++ __gnu_cxx::hash<char *> hasher; + return hasher(str.c_str()); + }; + }; + +-typedef hash_map<string,File *,str_hasher> files_map; ++typedef __gnu_cxx::hash_map<string,File *,str_hasher> files_map; + typedef list<string> files_list; + + typedef enum {UNKNOWN,C_HEADER,C_SOURCE} FileType; diff --git a/devel/titano/files/gcc3-patch-src_titano-app.cc b/devel/titano/files/gcc3-patch-src_titano-app.cc new file mode 100644 index 000000000..add76ff8c --- /dev/null +++ b/devel/titano/files/gcc3-patch-src_titano-app.cc @@ -0,0 +1,11 @@ +--- src/titano-app.cc.orig Fri Dec 29 19:52:11 2000 ++++ src/titano-app.cc Thu Apr 7 18:28:24 2005 +@@ -410,7 +410,7 @@ + + void TitanoApp::open_project(const string &filename) + { +- if(filename.rfind('.') == filename.npos || filename.compare(".titano",filename.rfind('.'),7)){ ++ if(filename.rfind('.') == filename.npos || filename.compare(filename.rfind('.'),7,".titano")){ + throw Exception("File " + filename + " is not a Titano project."); + }; + diff --git a/devel/titano/files/gcc3-patch-src_views.cc b/devel/titano/files/gcc3-patch-src_views.cc new file mode 100644 index 000000000..49d9bd025 --- /dev/null +++ b/devel/titano/files/gcc3-patch-src_views.cc @@ -0,0 +1,21 @@ +--- src/views.cc.orig Sat Dec 16 01:22:27 2000 ++++ src/views.cc Thu Apr 7 19:07:54 2005 +@@ -45,12 +45,12 @@ + int pos = file.rfind('.'); + + if(pos != file.npos){ +- if(!file.compare(".h",pos,2)|| +- !file.compare(".c",pos,2)|| +- !file.compare(".C",pos,2)|| +- !file.compare(".cc",pos,3)|| +- !file.compare(".cpp",pos,4)|| +- !file.compare(".cxx",pos,4)) ++ if(!file.compare(pos,2,".h")|| ++ !file.compare(pos,2,".c")|| ++ !file.compare(pos,2,".C")|| ++ !file.compare(pos,3,".cc")|| ++ !file.compare(pos,4,".cpp")|| ++ !file.compare(pos,4,".cxx")) + res = "cpp"; + }; + diff --git a/devel/titano/files/patch-src_automake.h b/devel/titano/files/patch-src_automake.h new file mode 100644 index 000000000..58d3be082 --- /dev/null +++ b/devel/titano/files/patch-src_automake.h @@ -0,0 +1,14 @@ +--- src/automake.h.orig Sat Dec 16 13:07:24 2000 ++++ src/automake.h Thu Apr 7 20:00:08 2005 +@@ -65,6 +65,11 @@ + { + return target.name != str; + }; ++ ++ friend bool operator==(const Target &target,const string &str) ++ { ++ return target.name == str; ++ }; + }; + + class Makefile diff --git a/devel/titano/files/patch-src_conffile.h b/devel/titano/files/patch-src_conffile.h new file mode 100644 index 000000000..12b5d5759 --- /dev/null +++ b/devel/titano/files/patch-src_conffile.h @@ -0,0 +1,11 @@ +--- src/conffile.h.orig Wed Nov 1 21:58:04 2000 ++++ src/conffile.h Thu Apr 7 19:55:13 2005 +@@ -23,6 +23,8 @@ + #include <gnome.h> + #include <string> + ++using namespace std; ++ + class ConfFile + { + private: diff --git a/devel/titano/files/patch-src_iexceptions.h b/devel/titano/files/patch-src_iexceptions.h new file mode 100644 index 000000000..055f422dc --- /dev/null +++ b/devel/titano/files/patch-src_iexceptions.h @@ -0,0 +1,51 @@ +--- src/iexceptions.h.orig Tue Sep 12 21:54:25 2000 ++++ src/iexceptions.h Thu Apr 7 17:37:27 2005 +@@ -24,6 +24,8 @@ + #include <string> + #include <string.h> + ++using namespace std; ++ + class Exception : public exception + { + protected: +@@ -33,6 +35,9 @@ + message(msg) + { }; + ++ virtual ~Exception() throw() ++ { }; ++ + virtual operator string() + { + return message; +@@ -51,6 +56,9 @@ + error(err) + { }; + ++ virtual ~EIOError() throw() ++ { }; ++ + virtual operator string() + { + return message + "\n" + +@@ -71,6 +79,9 @@ + reason(reas) + { }; + ++ virtual ~ENotSupported() throw() ++ { }; ++ + virtual operator string() + { + return message + "\n" + +@@ -91,6 +102,9 @@ + error(err) + { }; + ++ virtual ~EShellError() throw() ++ { }; ++ + virtual operator string() + { + return message + "\n" + diff --git a/devel/titano/files/patch-src_prefs.cc b/devel/titano/files/patch-src_prefs.cc new file mode 100644 index 000000000..48b1f21ab --- /dev/null +++ b/devel/titano/files/patch-src_prefs.cc @@ -0,0 +1,25 @@ +--- src/prefs.cc.orig Sat Dec 9 16:07:38 2000 ++++ src/prefs.cc Thu Apr 7 20:48:59 2005 +@@ -18,6 +18,7 @@ + */ + + #include <stdlib.h> ++#include <unistd.h> + + #include "util.h" + #include "conffile.h" +@@ -33,9 +34,13 @@ + { + if(name.empty()) + name = getenv("USER"); ++ if (name.empty()) ++ name = "nobody"; + + if(mail.empty()){ +- char *host = getenv("HOSTNAME"); ++ char host[256]; ++ if (gethostname(host, 256)) ++ strncpy(host, "dev.null.org", 255); + mail = name + "@" + host; + }; + diff --git a/devel/titano/pkg-descr b/devel/titano/pkg-descr new file mode 100644 index 000000000..0db2d86f0 --- /dev/null +++ b/devel/titano/pkg-descr @@ -0,0 +1,13 @@ +Titano is an IDE built with Glade using GTK+. It uses GtkEditor as a main +editing widget though you will be able to use your favorite editor as an +editing component in Titano via Bonobo technology. + +Features (some of features are only planned and may appear not very soon): + o Project management with automake/autoconf support + o Support for different languages + o Bonobo editor components + o Integrated debugger + o Code exploring tools + o And many other things you may need for developing + +WWW: http://titano.sourceforge.net/ diff --git a/devel/titano/pkg-plist b/devel/titano/pkg-plist new file mode 100644 index 000000000..323d2fd5e --- /dev/null +++ b/devel/titano/pkg-plist @@ -0,0 +1,57 @@ +bin/scannertool +bin/titano +lib/titano/c-scanner.so +lib/titano/html-scanner.so +lib/titano/java-scanner.so +lib/titano/perl-scanner.so +lib/titano/scheme-scanner.so +lib/titano/sml-scanner.so +@dirrm lib/titano +%%DATADIR%%/templates/cgtk.tar.gz +%%DATADIR%%/templates/cppgtk.tar.gz +%%DATADIR%%/templates/cgnome.tar.gz +%%DATADIR%%/templates/cppgnome.tar.gz +%%DATADIR%%/templates/cconsole.tar.gz +%%DATADIR%%/templates/cppconsole.tar.gz +%%DATADIR%%/templates/h_template +%%DATADIR%%/templates/c_template +%%DATADIR%%/scripts/project.pl +%%DATADIR%%/scripts/file.pl +%%DATADIR%%/scripts/amlist +%%DATADIR%%/glade/add_file.xpm +%%DATADIR%%/glade/autogen.xpm +%%DATADIR%%/glade/close_file.xpm +%%DATADIR%%/glade/code.xpm +%%DATADIR%%/glade/compile.xpm +%%DATADIR%%/glade/conf.xpm +%%DATADIR%%/glade/copy.xpm +%%DATADIR%%/glade/cut.xpm +%%DATADIR%%/glade/debug.xpm +%%DATADIR%%/glade/dir.xpm +%%DATADIR%%/glade/dist.xpm +%%DATADIR%%/glade/exec.xpm +%%DATADIR%%/glade/make.xpm +%%DATADIR%%/glade/new_file.xpm +%%DATADIR%%/glade/open_proj.xpm +%%DATADIR%%/glade/paste.xpm +%%DATADIR%%/glade/process.xpm +%%DATADIR%%/glade/project.xpm +%%DATADIR%%/glade/redo.xpm +%%DATADIR%%/glade/rem_file.xpm +%%DATADIR%%/glade/save_all.xpm +%%DATADIR%%/glade/save_file.xpm +%%DATADIR%%/glade/save_proj.xpm +%%DATADIR%%/glade/stderr.xpm +%%DATADIR%%/glade/stdout.xpm +%%DATADIR%%/glade/undo.xpm +%%DATADIR%%/glade/titano.glade +@dirrm %%DATADIR%%/templates +@dirrm %%DATADIR%%/scripts +@dirrm %%DATADIR%%/glade +@dirrm %%DATADIR%% +share/pixmaps/titano/console.png +share/pixmaps/titano/gnome.png +share/pixmaps/titano/gtk.png +share/pixmaps/titano/logo.png +@dirrm share/pixmaps/titano +share/gnome/apps/Development/titano.desktop |