~ubuntu-branches/ubuntu/vivid/projectcenter.app/vivid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Yavor Doganov
  • Date: 2010-06-03 16:04:52 UTC
  • mfrom: (3.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100603160452-dcsmkjwdtwxuitdo
Tags: 0.5.3~20100601-1
* New upstream release.
* debian/compat: Set to 7.
* debian/control (Section): Change to `gnustep'.
  (Build-Depends): Require debhelper >= 7, remove version constraints
  for libgnustep-gui-dev (obsolete).
  (Depends): Add ${gnustep:Depends}.
  (Standards-Version): Compliant with 3.8.4 as of this release.
  (Vcs-Arch): New field.
  (Description): Do not praise NextStep.
* debian/rules: Export GNUSTEP_MAKEFILES and get rid of gs_make.
  (OPTFLAG): No longer define; rework noopt handling to be compatible
  with gnustep-make/2.4.x (Closes: #581976).
  (build-stamp): Pass GDB=/usr/bin/gdb for the PCDefaultDebugger
  define.
  (install): Replace dh_clean -k with dh_prep.
  (binary-arch): Adjust dh_installchangelogs' argument.  Rework the
  FHS_ME_HARDER snippet; PC's supporting executables are no longer
  installed as Bundles.
* debian/patches/05_link-libs.dpatch: Update; the fix was merged
  upstream, but now -lm is required as well.
* debian/patches/10_bundles-install-dir.dpatch: Remove; obsolete with
  the new way of FHS-compliance handling.
* debian/links: Delete; no longer needed.
* debian/menu: Adjust command.
* debian/source/format:
* debian/README.source:
* debian/preinst: New file.
* debian/copyright: Bump copyright years, add more upstream authors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
include /usr/share/dpatch/dpatch.make
6
6
include /usr/share/GNUstep/debian/config.mk
7
7
 
 
8
SHELL := /bin/bash
 
9
 
 
10
export GNUSTEP_MAKEFILES := $(GS_MAKE_DIR)
8
11
d_app := $(CURDIR)/debian/projectcenter.app
9
12
LDFLAGS := -Wl,-z,defs -Wl,--as-needed -Wl,-rpath,/usr/lib/projectcenter.app
10
13
 
11
14
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
12
 
OPTFLAG := -O0
13
 
else
14
 
OPTFLAG := -O2
 
15
optim := debug=yes
15
16
endif
16
17
 
17
18
build: patch build-stamp
18
19
 
19
20
build-stamp:
20
21
        dh_testdir
21
 
        gs_make OPTFLAG=$(OPTFLAG) LDFLAGS="$(LDFLAGS)" messages=yes \
22
 
          DO_LIB_LINK=yes
 
22
        $(MAKE) $(optim) LDFLAGS="$(LDFLAGS)" messages=yes DO_LIB_LINK=yes \
 
23
          GDB=/usr/bin/gdb
23
24
        convert Images/ProjectCenter.tiff -resize 32x32 ProjectCenter.xpm
24
25
        touch $@
25
26
 
28
29
clean-patched:
29
30
        dh_testdir
30
31
        dh_testroot
31
 
        $(RM) build-stamp
32
 
        gs_make distclean
33
 
        $(RM) ProjectCenter.xpm
34
 
        dh_clean
 
32
        $(MAKE) distclean
 
33
        dh_clean build-stamp ProjectCenter.xpm
35
34
 
36
35
install: build
37
36
        dh_testdir
38
37
        dh_testroot
39
 
        dh_clean -k
40
 
 
 
38
        dh_prep
41
39
# Install the private library in /usr/lib/projectcenter.app.
42
 
        gs_make install messages=yes DESTDIR=$(d_app) \
 
40
        $(MAKE) install messages=yes DESTDIR=$(d_app) \
43
41
          GNUSTEP_SYSTEM_LIBRARIES=/usr/lib/projectcenter.app \
44
42
          GNUSTEP_INSTALLATION_DOMAIN=SYSTEM 
45
 
 
46
43
        dh_install debian/*.desktop usr/share/applications/
47
 
        rm $(d_app)/usr/lib/GNUstep/Applications/*.app/Resources/*.desktop
 
44
        rm $(d_app)$(GNUSTEP_SYSTEM_APPS)/*.app/Resources/*.desktop
48
45
        install -D -m 644 ProjectCenter.xpm \
49
46
          $(d_app)/usr/share/pixmaps/ProjectCenter.xpm
50
47
 
59
56
        dh_installdocs
60
57
        dh_installmenu
61
58
        dh_installman debian/ProjectCenter.1
62
 
        dh_installchangelogs Documentation/ChangeLog
 
59
        dh_installchangelogs ChangeLog
63
60
        gsdh_gnustep
64
 
# This conditional is currently useless, because the symlinks
65
 
# installed by dh_link below already rely on the FHS layout.  Ideally,
66
 
# Framework/PCBundleManager.m should be modified to include the moved
67
 
# bundles instead of the hardcoded Resource.
68
 
#ifeq ($(GS_USE_FHS),yes)
69
 
        dh_installdirs usr/share/GNUstep
70
 
        mv $(d_app)$(GNUSTEP_SYSTEM_APPS)/ProjectCenter.app/Resources \
71
 
           $(d_app)/usr/share/GNUstep/ProjectCenter.app
72
 
        dh_link usr/share/GNUstep/ProjectCenter.app \
73
 
          $(GNUSTEP_SYSTEM_APPS)/ProjectCenter.app/Resources
74
 
# The Editor bundle requires special handling; it has a Resources dir
75
 
# with arch-independent data which is moved to /usr/share.
76
 
        mv $(d_app)$(GNUSTEP_SYSTEM_BUNDLES)/ProjectCenter/ProjectCenter.editor/Resources \
77
 
           $(d_app)/usr/share/GNUstep/ProjectCenter.app/ProjectCenter.editor/Resources
78
 
        dh_link usr/share/GNUstep/ProjectCenter.app/ProjectCenter.editor/Resources \
79
 
          $(GNUSTEP_SYSTEM_BUNDLES)/ProjectCenter/ProjectCenter.editor/Resources
80
 
#endif
 
61
ifeq ($(GS_USE_FHS),yes)
 
62
# We cannot symlink Resources straight away because it contains
 
63
# arch-dependent executables.  Previous versions installed bundles in
 
64
# /usr/lib/GNUstep/Bundles/ProjectCenter, but as of 0.5.3 this is
 
65
# broken because the Preferences were split to dynamically load
 
66
# available modules, all of which reside in the app bundle's resources
 
67
# dir.  So we move only the images, to avoid lintian warnings.  It
 
68
# would be much more convoluted, complex, and fragile to move
 
69
# every arch-independent file/dir to /usr/share/GNUstep.
 
70
        dh_installdirs usr/share/GNUstep/ProjectCenter.app
 
71
        for i in \
 
72
          $(d_app)$(GNUSTEP_SYSTEM_APPS)/ProjectCenter.app/Resources/{,English.lproj/Info.gorm/}*.tiff; do \
 
73
          mv $$i $(d_app)/usr/share/GNUstep/ProjectCenter.app/ \
 
74
          && dh_link usr/share/GNUstep/ProjectCenter.app/`basename $$i` \
 
75
            $(GNUSTEP_SYSTEM_APPS)/ProjectCenter.app/Resources/`basename $$i`; \
 
76
        done
 
77
        for i in \
 
78
          $(d_app)$(GNUSTEP_SYSTEM_APPS)/ProjectCenter.app/Resources/ProjectCenter.{debugger,editor}/Resources/*.{png,tiff}; do \
 
79
          mv $$i $(d_app)/usr/share/GNUstep/ProjectCenter.app/ \
 
80
          && dh_link usr/share/GNUstep/ProjectCenter.app/`basename $$i` \
 
81
            $(GNUSTEP_SYSTEM_APPS)/ProjectCenter.app/Resources/`basename $$i`; \
 
82
        done
 
83
endif
81
84
        dh_link
82
85
        dh_strip
83
86
        dh_compress