Commit 6aebb4b9 authored by Andreas Beckmann's avatar Andreas Beckmann

switch to debhelper compat level 9

parent da9f948d
texworks for Debian
-------------------
<this file describes information about the source package, see Debian policy
manual section 4.14. You WILL either need to modify or delete this file>
......@@ -4,6 +4,8 @@ texworks (0.5~svn1363-6) UNRELEASED; urgency=medium
* Set Maintainer to Debian QA Group. (See: #773940)
* Use source format 3.0 (quilt).
* Link against QtXml to fix FTBFS with Qt 4.8.7. (Closes: #789842)
* Switch to debhelper compat level 9.
* Minimize d/rules using debhelper override targets.
-- Andreas Beckmann <anbe@debian.org> Sat, 08 Aug 2015 16:07:01 +0200
......
......@@ -2,7 +2,16 @@ Source: texworks
Section: editors
Priority: extra
Maintainer: Debian QA Group <packages@qa.debian.org>
Build-Depends: debhelper (>= 7), pkg-config, cmake (>= 2.8.6), libhunspell-dev, libqt4-dev, libpoppler-qt4-dev, liblua5.2-dev, python-dev, zlib1g-dev, libsynctex-dev
Build-Depends: debhelper (>= 9),
pkg-config,
cmake (>= 2.8.6),
libhunspell-dev,
libqt4-dev,
libpoppler-qt4-dev,
liblua5.2-dev,
python-dev,
zlib1g-dev,
libsynctex-dev,
Standards-Version: 3.9.5
Homepage: http://www.tug.org/texworks/
......
......@@ -54,7 +54,7 @@ License of the SyncTeX:
License of the Beamer templates:
% In principle, this file can be redistributed and/or modified under
% the terms of the GNU Public License, version 2.
% the terms of the GNU General Public License, version 2.
%
% However, this file is supposed to be a template to be modified
% for your own needs. For this reason, if you use this file as a
......
usr/bin
usr/share/pixmaps
usr/share/applications
usr/share/texworks-help
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
......@@ -20,86 +14,27 @@ NJOBS := -j $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
endif
.PHONY: build-arch build-indep build clean binary-indep binary-arch binary install configure
%:
dh $@
binary: binary-indep binary-arch
build: build-indep build-arch
# Configure the build
configure: configure-stamp
configure-stamp:
dh_testdir
# Configure
override_dh_auto_configure:
mkdir build && cd build && cmake .. -DTW_BUILD_ID='Debian' -DCMAKE_INSTALL_PREFIX='/usr' -DWITH_PYTHON=ON -DTeXworks_HELP_DIR='/usr/share/texworks-help' && cd ..
touch $@
# Build architecture-independent files
build-indep :
build-arch: build-stamp
# Build architecture-dependent files
build-stamp: configure-stamp
dh_testdir
override_dh_auto_build:
cd build && $(MAKE) $(NJOBS) VERBOSE=1
touch $@
clean:
dh_testdir
dh_testroot
rm -rf build build-stamp configure-stamp
dh_clean
# Build architecture-independent packages
binary-indep:
dh_testdir
dh_testroot
dh_prep
dh_installchangelogs
dh_installdirs
dh_installdocs
#...
# DON'T PACKAGE THE MANUAL IN EXPERIMENTAL BUILDS
# Install the manual
# mkdir --parents $(CURDIR)/debian/tmp/usr/share/doc/texworks-help/
# cp -r manual $(CURDIR)/debian/tmp/usr/share/doc/texworks-help/TeXworks-manual
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
# Build architecture-independent packages
binary-arch: install
dh_testdir
dh_testroot
override_dh_auto_install:
cd build && $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
mv $(CURDIR)/debian/tmp/usr/usr/share/texworks-help $(CURDIR)/debian/tmp/usr/share/texworks-help
rm -rf $(CURDIR)/debian/tmp/usr/usr
rm $(CURDIR)/debian/tmp/usr/share/doc/texworks/COPYING
dh_installchangelogs
dh_installdocs
dh_install
rm -r $(CURDIR)/debian/texworks/usr/share/texworks-help
dh_installman
dh_icons
dh_link
dh_strip
dh_compress
dh_fixperms
dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
override_dh_installchangelogs:
dh_installchangelogs NEWS
debian/tmp/usr/share/texworks-help
usr/share/texworks-help
debian/tmp/usr/lib/texworks/libTWLuaPlugin.so
usr/lib/texworks/libTWLuaPlugin.so
debian/tmp/usr/lib/texworks/libTWPythonPlugin.so
usr/lib/texworks/libTWPythonPlugin.so
debian/tmp/usr/bin*
debian/tmp/usr/share*
usr/bin/texworks
usr/share/applications/texworks.desktop
usr/share/man/
usr/share/pixmaps/TeXworks.png
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment