--- geanyprj-0.4.orig/debian/rules +++ geanyprj-0.4/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/rules/patchsys-quilt.mk + +LDFLAGS += -Wl,--as-needed +install/geany-plugin-prj:: + find $(DEB_DESTDIR) -name '*.la' -delete --- geanyprj-0.4.orig/debian/control +++ geanyprj-0.4/debian/control @@ -0,0 +1,29 @@ +Source: geanyprj +Section: devel +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Chow Loong Jin +Build-Depends: cdbs, + debhelper (>= 5), + quilt, + autotools-dev, + pkg-config, + geany (>= 0.15), + libgtk2.0-dev, + check (>= 0.9.4) +Standards-Version: 3.8.0 +Homepage: http://plugins.geany.org/geanyprj/ + +Package: geany-plugin-prj +Architecture: any +Depends: geany, + ${shlibs:Depends}, + ${misc:Depends} +Description: an alternative project manager for Geany + GeanyPrj is a plugin for Geany that provides an alternative method for managing + projects in Geany, which moves away from Geany's default project management + style, which is session-based, instead implementing a system which + automatically opens a project when oen of its files are opened. + . + Geany is a small and lightweight integrated development environment using the + GTK2 toolkit. --- geanyprj-0.4.orig/debian/copyright +++ geanyprj-0.4/debian/copyright @@ -0,0 +1,50 @@ +Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat +Upstream-Name: geanyprj +Upstream-Maintainer: Yura Siamashka +Upstream-Source: http://plugins.geany.org/geanyprj/ + +Files: * +Copyright: Copyright: 2008, Yura Siamashka +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 . On + Debian systems, this can be found in /usr/share/common-licenses/GPL-3 + +Files: src/geanyprj.c, src/xproject.c, src/project.c +Copyright: Copyright 2007,2008 Yura Siamashka +Copyright: Copyright 2007, Nick Treleaven +Copyright: Copyright 2007, Enrico Tröger +Copyright: Copyright 2007, Frank Lanitz +License: GPL-3+ + +Files: ltmain.sh +Copyright: Copyright 1996-2008, Free Software Foundation, Inc +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. On Debian + systems, this can be found in /usr/share/common-licenses/GPL-2 + +Files: debian/* +Copyright: Copyright 2009, Chow Loong Jin +License: GPL-2+ --- geanyprj-0.4.orig/debian/compat +++ geanyprj-0.4/debian/compat @@ -0,0 +1 @@ +5 --- geanyprj-0.4.orig/debian/changelog +++ geanyprj-0.4/debian/changelog @@ -0,0 +1,9 @@ +geanyprj (0.4-0ubuntu1) jaunty; urgency=low + + * Initial release (LP: #322853) + * debian/patches/series, + debian/patches/99_ltmain_as-needed.patch: + + Add support for -Wl,--as-needed in LDFLAGS to drop extra dependencies + + -- Chow Loong Jin Sat, 31 Jan 2009 02:22:13 +0800 + --- geanyprj-0.4.orig/debian/watch +++ geanyprj-0.4/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://plugins.geany.org/geanyprj/ http://.*/geanyprj-(.*)\.tar\.gz --- geanyprj-0.4.orig/debian/patches/series +++ geanyprj-0.4/debian/patches/series @@ -0,0 +1 @@ +99_ltmain_as-needed.patch --- geanyprj-0.4.orig/debian/patches/99_ltmain_as-needed.patch +++ geanyprj-0.4/debian/patches/99_ltmain_as-needed.patch @@ -0,0 +1,33 @@ +Patch to add support for --as-needded flag to drop unnecessary deps +Index: geanyvc-0.4/ltmain.sh +=================================================================== +--- geanyvc-0.4.orig/ltmain.sh 2008-10-23 05:11:06.000000000 +0800 ++++ geanyvc-0.4/ltmain.sh 2009-01-31 01:59:00.000000000 +0800 +@@ -4189,6 +4189,11 @@ + arg=$func_stripname_result + ;; + ++ -Wl,--as-needed) ++ deplibs="$deplibs $arg" ++ continue ++ ;; ++ + -Wl,*) + func_stripname '-Wl,' '' "$arg" + args=$func_stripname_result +@@ -4540,6 +4545,15 @@ + lib= + found=no + case $deplib in ++ -Wl,--as-needed) ++ if test "$linkmode,$pass" = "prog,link"; then ++ compile_deplibs="$deplib $compile_deplibs" ++ finalize_deplibs="$deplib $finalize_deplibs" ++ else ++ deplibs="$deplib $deplibs" ++ fi ++ continue ++ ;; + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs"