On Wed, Mar 25, 2009 at 05:29:57PM +0200, Yavor Doganov wrote: > On Wed, Mar 25, 2009 at 04:12:11PM +0100, Andreas Tille wrote: > > I would really appreciate any help here > > OK, thanks.
Here it is. I added some comments in debian/rules for things that might not be entirely obvious to you -- feel free to strip them.
Index: debian/control =================================================================== --- debian/control (revision 3207) +++ debian/control (working copy) @@ -6,20 +6,17 @@ Uploaders: Scott Christley <schrist...@mac.com>, Andreas Tille <ti...@debian.org>, Charles Plessy <ple...@debian.org> -Build-Depends: debhelper, gnustep-make, libgnustep-base-dev (>= 1.16.1), libgnustep-gui-dev (>= 0.12.0) +Build-Depends: cdbs, debhelper, libgnustep-base-dev (>= 1.16.1), quilt Standards-Version: 3.8.1 Homepage: http://bioinformatics.org/biococoa/ Vcs-Browser: http://svn.debian.org/wsvn/debian-med/trunk/packages/biococoa/trunk/?rev=0&sc=0 Vcs-Svn: svn://svn.debian.org/svn/debian-med/trunk/packages/biococoa/trunk/ -Package: biococoa +Package: libbiococoa-dev +Section: libdevel Architecture: any -Depends: ${shlibs:Depends} -Replaces: biococoa.app -Provides: biococoa.app -Conflicts: biococoa.app -Suggests: sequenceconverter.app -Description: Bioinformatics framework for GNUstep and Cocoa +Depends: libbiococoa2 (= ${binary:Version}), libgnustep-base-dev, ${gnustep:Depends} +Description: Bioinformatics framework for GNUstep and Cocoa (development files) BioCocoa is an open source Cocoa framework for bioinformatics. It intends to provide Cocoa programmers with a full suite of tools for handling and manipulating biological sequences. Cocoa is a great framework for rapid @@ -30,3 +27,24 @@ sequences, controller classes for alignment, sequence manipulation and I/O, interfacing with ENTREZ and view classes that let you easily display and work with sequences in your own applications. + . + This package contains the development files, documentation and + examples for developing GNUstep applications using the BioCocoa framework. + +Package: libbiococoa2 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${gnustep:Depends} +Description: Bioinformatics framework for GNUstep and Cocoa (library files) + BioCocoa is an open source Cocoa framework for bioinformatics. It intends to + provide Cocoa programmers with a full suite of tools for handling and + manipulating biological sequences. Cocoa is a great framework for rapid + application development and it is therefore often used to create innovative + bioscientific apps. To speed up development even more, BioCocoa wants to + offer reusable Cocoa classes that are specific for molecular biology and + biofinformatics. At this time, BioCocoa offers model classes for biological + sequences, controller classes for alignment, sequence manipulation and I/O, + interfacing with ENTREZ and view classes that let you easily display and work + with sequences in your own applications. + . + This package contains the runtime libraries. Index: debian/changelog =================================================================== --- debian/changelog (revision 3207) +++ debian/changelog (working copy) @@ -22,6 +22,16 @@ * Moved BioCocoa.1 to BioCocoa.3 * Suggests sequenceconverter.app + [ Yavor Doganov ] + * debian/control (Build-Depends): Add cdbs and quilt. Drop gnustep-make + and libgnustep-gui-dev. + (libbiococoa-dev, libbiococoa2): New packages. + (biococoa): Remove. + * debian/rules: Rewrite to use CDBS, as requested by Andreas. + * debian/patches/link-libs.patch: New; link against libobjc and + libgnustep-base. + * debian/patches/series: Create. + -- Andreas Tille <ti...@debian.org> Mon, 23 Mar 2009 07:57:10 +0100 biococoa.app (1.6.0-8) unstable; urgency=low Index: debian/patches/link-libs.patch =================================================================== --- debian/patches/link-libs.patch (revision 0) +++ debian/patches/link-libs.patch (revision 0) @@ -0,0 +1,16 @@ +2009-03-25 Yavor Doganov <ya...@gnu.org> + + * GNUmakefile (LIBRARIES_DEPEND_UPON): New variable; link against + libraries we use symbols from. + +--- biococoa.orig/GNUmakefile 2009-03-25 21:20:36.000000000 +0200 ++++ biococoa/GNUmakefile 2009-03-25 21:21:13.000000000 +0200 +@@ -33,6 +33,8 @@ + + FRAMEWORK_NAME = BioCocoa + ++LIBRARIES_DEPEND_UPON += $(FND_LIBS) $(OBJC_LIBS) ++ + BioCocoa_SUBPROJECTS = \ + BCFoundation + Index: debian/patches/series =================================================================== --- debian/patches/series (revision 0) +++ debian/patches/series (revision 0) @@ -0,0 +1 @@ +link-libs.patch Index: debian/rules =================================================================== --- debian/rules (revision 3207) +++ debian/rules (working copy) @@ -2,57 +2,37 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -#include /usr/share/quilt/quilt.make +DEB_GS_FRAMEWORKS = BioCocoa -include /usr/share/GNUstep/debian/config.mk -GNUSTEP_MAKEFILES=$(GS_MAKE_DIR) +DEB_GS_INTERFACE_VERSION_BioCocoa = 2 +DEB_GS_DEVPKG_NAME_BioCocoa = libbiococoa-dev -pkg = biococoa +include /usr/share/cdbs/1/rules/gnustep.mk +include /usr/share/cdbs/1/class/gnumakefile.mk +include /usr/share/cdbs/1/rules/patchsys-quilt.mk -build: build-stamp +DEB_GS_AUTO_DH_INSTALL = y +DEB_DH_MAKESHLIBS_ARGS_$(DEB_GS_LIBPKG_NAME_BioCocoa) := --noscripts -build-stamp: - dh_testdir - gs_make - touch build-stamp +# Get verbose build logs. +export messages=yes -clean: - dh_testdir - dh_testroot - rm -f build-stamp - gs_make distclean clean - dh_clean +framework = BioCocoa +d_dev = $(CURDIR)/debian/$(DEB_GS_DEVPKG_NAME_$(framework)) -install: build - dh_testdir - dh_testroot - dh_clean -k - dh_installdirs - gs_make install DESTDIR=$(CURDIR)/debian/$(pkg) GNUSTEP_INSTALLATION_DOMAIN=SYSTEM +# Get rid of the libgcc dependency (explicitly added by gnustep-make); +# might help with eventual GCC transitions. +LDFLAGS := -Wl,-z,defs -Wl,--as-needed -# Build architecture-independent files here. -binary-indep: build install -# We have nothing to do by default. +# Build with optimization by default, currently not handled by +# gnustep-make. The GNUstep CDBS rules lack support for "noopt". +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +OPTFLAG := -O0 +else +OPTFLAG := -O2 +endif +DEB_MAKE_INVOKE += OPTFLAG=$(OPTFLAG) -# Build architecture-dependent files here. -binary-arch: build install - dh_testdir - dh_testroot - dh_installchangelogs Readme.txt - dh_installdocs - dh_installexamples - find $(CURDIR)/debian/$(pkg)/usr/share/doc/$(pkg)/examples/ -type f -exec chmod 644 \{\} \; - dh_installmenu - dh_installman - dh_link - dh_strip - dh_compress - dh_fixperms - dh_installdeb - dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb - -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install +binary-post-install/libbiococoa-dev:: + find $(d_dev)/usr/share/doc/$(DEB_GS_DEVPKG_NAME_$(framework))/examples/ \ + -type f -exec chmod 644 \{\} \;