~ubuntu-branches/ubuntu/vivid/lazarus/vivid-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Paul Gevers
  • Date: 2014-06-15 11:48:30 UTC
  • mfrom: (1.1.14)
  • Revision ID: package-import@ubuntu.com-20140615114830-5yjmel5tem3nq324
Tags: 1.2.2+dfsg1-1
* Stripped mpaslex.pp from the upstream source as it is non-dfsg free
  (requires donation if you use it commercially).
* Raise d/compat and debhelper Build-Depends to recommended level 9 to be
  able to use d/clean
* Document Apache license for Adroid interface
* Make sure that lhelp gets installed and also compile the accompanying
  lcl.chm file
* Drop dangling MacOS symlink (it points to lhelp, but that is not in a
  dependency of the lazarus-src-# package) (Closed: #748432)
* Add keywords to desktop file (thanks lintian)
* Add lintian override for license file in PascalScript

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
# Documentation type to use chm/html
9
9
ifeq (${DEBDOCTYPE},)
10
10
DOCTYPE=html
11
 
# HTML Converter chmdocs or htmldocs for (default)
12
 
CONVERTER=${DOCTYPE}docs
 
11
# HTML Converter chmdocs or htmldocs for documentation format (defaults to both)
 
12
CONVERTER=${DOCTYPE}docs chmdocs
13
13
else
14
14
DOCTYPE=${DEBDOCTYPE}
15
15
CONVERTER=${DOCTYPE}docs
78
78
#
79
79
 
80
80
clean: clean-patched clean-make-files
81
 
        ${RM} build-arch-stamp install-arch-stamp arrange-arch-stamp configure-stamp
82
 
        ${RM} build-doc-stamp install-doc-stamp
83
 
        ${RM} build-indep-stamp install-indep-stamp
84
 
        ${RM} debian-files-stamp
85
 
        ${RM} debian/files debian/docs debian/dirs debian/*.files debian/*.docs debian/*.examples debian/*.postinst debian/*.postrm
86
 
        # Remove auto-generated version file.
87
 
        ${RM} ide/version.inc
88
81
        dh_clean
89
82
 
90
83
clean-patched: make-files
91
84
        @echo "--- Cleaning"
92
85
        dh_testdir
93
86
        dh_testroot
94
 
        ${RM} lazarus startlazarus lazbuild
95
 
        ${RM} components/aggpas packager/globallinks/aggpas*
96
87
        $(MAKE) distclean ${BUILDOPTS} LCL_PLATFORM=qt
97
88
        $(MAKE) distclean ${BUILDOPTS} LCL_PLATFORM=gtk2
98
89
        $(MAKE) -C docs/html clean
128
119
configure-stamp:
129
120
        dh_testdir
130
121
        dh_prep
131
 
        # Remove auto-generated version file.
132
 
        ${RM} ide/version.inc
133
122
        # Add version.inc:
134
123
        echo \'$(DEB_VERSION)\' > ide/version.inc
135
124
        touch configure-stamp
155
144
        # create all necessary directories
156
145
        ${MKDIR} ${BIN_DIR}
157
146
        ${MKDIR} ${LIB_DIR}/tools
 
147
        ${MKDIR} ${LIB_DIR}/components/chmhelp/lhelp
158
148
        # Install the IDE & its accessories
159
149
        ${CP} -t ${LIB_DIR} \
160
150
                $(CURDIR)/lazarus-gtk2 \
167
157
                $(CURDIR)/tools/lrstolfm \
168
158
                $(CURDIR)/tools/svn2revisioninc \
169
159
                $(CURDIR)/tools/updatepofiles
 
160
        ${CP} -t ${LIB_DIR}/components/chmhelp/lhelp \
 
161
                $(CURDIR)/components/chmhelp/lhelp/lhelp
170
162
        # Install the library files
171
163
        find -name debian -prune -or '(' -name lib -or -name units ')' -print | xargs ${CP} --parents -t ${LIB_DIR}
172
164
        # Remove READM.txt files from output directories
367
359
          fi ; \
368
360
        done
369
361
endif
370
 
        dh_compress -i -X.pdf
 
362
        dh_compress -i -X.pdf -X.chm -X.xct
371
363
        dh_fixperms
372
364
        dh_installdebconf -i
373
365
        dh_installdeb -i