From: Marijn van Vliet Date: Sun, 18 Apr 2010 15:39:39 +0000 (+0000) Subject: * Path fixes X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=0c230096e95470b4c96141220d5be848cb47be39;p=rodin%2Fchimara.git * Path fixes * Debian packaging fixes git-svn-id: http://lassie.dyndns-server.com/svn/gargoyle-gtk@239 ddfedd41-794f-dd11-ae45-00112f111e67 --- diff --git a/COPYING b/COPYING index 42b3176..eb40986 100644 --- a/COPYING +++ b/COPYING @@ -1,4 +1,4 @@ -Copyright (C) 2008, Philip Chimento and Marijn van Vliet. +Copyright (C) 2010, Philip Chimento and Marijn van Vliet. All rights reserved. Chimara is free software copyrighted by Philip Chimento and Marijn van Vliet. diff --git a/configure.ac b/configure.ac index 18e630a..81677cc 100644 --- a/configure.ac +++ b/configure.ac @@ -5,7 +5,7 @@ # Initialize Autoconf # Args: (human-readable package name, package version, bug report address, # tarballname) -AC_INIT([chimara], [0.1]) +AC_INIT([chimara], [0.9]) # Sanity check to make sure we are running Autoconf from the right directory AC_CONFIG_SRCDIR(libchimara/chimara-glk.c) # Put m4 macros in their own directory @@ -25,6 +25,8 @@ LT_VERSION_INFO="$CHIMARA_CURRENT:$CHIMARA_REVISION:$CHIMARA_AGE" AC_SUBST(LT_VERSION_INFO) ### REQUIREMENTS ############################################################## +# Recommended GTK version: at least 2.12 +# Recommended Glib version: at least 2.16 GTK_REQUIRED_VERSION=2.6 GLIB_REQUIRED_VERSION=2.6 GTK_DOC_REQUIRED_VERSION=1.9 diff --git a/debian/changelog b/debian/changelog index f4c67af..07521dc 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,7 +1,6 @@ -chimara (0.1-1) unstable; urgency=low +chimara (0.9-1) unstable; urgency=low - * Initial release (Closes: #nnnn) - * TODO FIXME when actually doing release + * Initial release (Closes: #36) - -- Philip Chimento Sat, 28 Nov 2009 00:57:21 +0100 + -- Philip Chimento Sun, 18 Apr 2009 17:03:21 +0100 diff --git a/debian/control b/debian/control index 8070f24..ee89323 100644 --- a/debian/control +++ b/debian/control @@ -10,7 +10,7 @@ Build-Depends: cdbs, libglib2.0-dev, libgtk2.0-dev Standards-Version: 3.7.3 -Homepage: +Homepage: http://lassie.student.utwente.nl/chimara Package: libchimara0 Section: libs @@ -46,7 +46,7 @@ Description: Documentation for the Chimara Glk library . This package contains the Chimara reference manual. -Package: libchimara-player +Package: chimara-player Section: games Architecture: any Depends: ${misc:Depends} diff --git a/debian/copyright b/debian/copyright index 31b5d85..5ee1b1f 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,7 +1,7 @@ This package was debianized by Philip Chimento on Sat, 28 Nov 2009 00:57:21 +0100. -It was downloaded from +It was downloaded from Upstream Author(s): @@ -10,14 +10,41 @@ Upstream Author(s): Copyright: - Copyright (C) 2009 <> + Copyright (C) 2010 Marijn van Vliet and Philip Chimento License: - Yada yada TODO FIXME when actually doing release - -The Debian packaging is (C) 2009, Philip Chimento and -is licensed under the same license as the main program. + Copyright (C) 2010, Philip Chimento and Marijn van Vliet. + All rights reserved. + + Chimara is free software copyrighted by Philip Chimento and Marijn van Vliet. + + Redistribution and use in source and binary forms, with or without modification, + are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + 3. Neither of the names Philip Chimento or Marijn van Vliet, nor the name of any + other contributor may be used to endorse or promote products derived from + this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +The Debian packaging is (C) 2010, Marijn van Vliet +and Philip Chimento and is licensed under the same +license as the main program. # Please also look if there are files or directories which have a # different copyright/license attached and list them here. diff --git a/libchimara/Makefile.am b/libchimara/Makefile.am index ff634e4..de74326 100644 --- a/libchimara/Makefile.am +++ b/libchimara/Makefile.am @@ -5,9 +5,9 @@ AM_CFLAGS = -Wall lib_LTLIBRARIES = libchimara.la if TARGET_ILIAD - plugindir = "../interpreters" +pluginpath = "../interpreters" else - plugindir = $(pkglibdir) +pluginpath = $(pkglibdir) endif libchimara_la_SOURCES = \ @@ -32,7 +32,7 @@ libchimara_la_SOURCES = \ init.c init.h \ input.c input.h \ magic.c magic.h \ - mouse.c \ + mouse.c mouse.h \ pager.c pager.h \ resource.c resource.h \ schannel.c \ @@ -44,7 +44,7 @@ libchimara_la_SOURCES = \ libchimara_la_CPPFLAGS = \ -DG_LOG_DOMAIN=\"Chimara\" \ -DLOCALEDIR=\""$(datadir)/locale"\" \ - -DPLUGINDIR=\""$(plugindir)"\" \ + -DPLUGINDIR=\""$(pluginpath)"\" \ -DPLUGINSOURCEDIR=\""$(abs_builddir)/../interpreters"\" \ -I$(top_srcdir) libchimara_la_CFLAGS = @CHIMARA_CFLAGS@ $(AM_CFLAGS) diff --git a/player/main.c b/player/main.c index c032849..8d9bb25 100644 --- a/player/main.c +++ b/player/main.c @@ -71,9 +71,17 @@ create_window(void) GError *error = NULL; builder = gtk_builder_new(); - if( !gtk_builder_add_from_file(builder, PACKAGE_SRC_DIR "/chimara.ui", &error) ) { - error_dialog(NULL, error, "Error while building interface: "); - return; + if( !gtk_builder_add_from_file(builder, PACKAGE_DATA_DIR "/chimara.ui", &error) ) { +#ifdef DEBUG + g_error_free(error); + error = NULL; + if( !gtk_builder_add_from_file(builder, PACKAGE_SRC_DIR "/chimara.ui", &error) ) { +#endif /* DEBUG */ + error_dialog(NULL, error, "Error while building interface: "); + return; +#ifdef DEBUG + } +#endif /* DEBUG */ } window = GTK_WIDGET(load_object("chimara")); @@ -119,9 +127,17 @@ create_window(void) gtk_recent_chooser_add_filter(recent, filter); uimanager = gtk_ui_manager_new(); - if( !gtk_ui_manager_add_ui_from_file(uimanager, PACKAGE_SRC_DIR "/chimara.menus", &error) ) { - error_dialog(NULL, error, "Error while building interface: "); - return; + if( !gtk_ui_manager_add_ui_from_file(uimanager, PACKAGE_DATA_DIR "/chimara.menus", &error) ) { +#ifdef DEBUG + g_error_free(error); + error = NULL; + if( !gtk_ui_manager_add_ui_from_file(uimanager, PACKAGE_SRC_DIR "/chimara.menus", &error) ) { +#endif /* DEBUG */ + error_dialog(NULL, error, "Error while building interface: "); + return; +#ifdef DEBUG + } +#endif /* DEBUG */ } glk = chimara_if_new();