Changeset 3312b1d in git


Ignore:
Timestamp:
15/09/11 03:13:17 (8 years ago)
Author:
Olly Betts <olly@…>
Branches:
add-show-splays, line_contents, master, stereo, svn/github/master, svn/origin/master, svn/tags/1.2.0, svn/tags/1.2.1, svn/tags/1.2.2, svn/tags/1.2.3, svn/tags/1.2.4, svn/tags/1.2.5, svn/trunk, travis-osx
Children:
b4ac700
Parents:
a26bab0
Message:

Redo packaging to use dh.

git-svn-id: file:///home/survex-svn/survex/trunk@3632 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

Location:
debian
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • debian/changelog

    ra26bab0 r3312b1d  
    55    the packaging work recently (changed with Wookey's agreement).  Also
    66    use Wookey's debian.org address to match his other packages.
     7  * Redo packaging to use dh.
    78  * debian/survex-aven.lintian-overrides: Lintian has dropped "./" from the
    89    path of the binary, so update override to match.
     
    1112  * README.Debian: Fix typo spotted by lintian.
    1213
    13  -- Olly Betts <olly@survex.com>  Thu, 15 Sep 2011 00:59:16 +0000
     14 -- Olly Betts <olly@survex.com>  Thu, 15 Sep 2011 02:11:57 +0000
    1415
    1516survex (1.1.16-1) unstable; urgency=low
  • debian/rules

    ra26bab0 r3312b1d  
    11#!/usr/bin/make -f
    2 # Based on public domain debhelper example rules.multi2 by Joey Hess.
    3 #
    4 # Copyright (C) 2005,2006,2010 Olly Betts
    5 #
    6 # GPL licensed.
    7 #
    8 # This is a multibinary package.  You can build any of the binary packages
    9 # independently by using the appropriate binary-<package> target.
    102
    11 # Uncomment this to turn on verbose mode.
    12 #export DH_VERBOSE=1
     3# Ensure DISPLAY is empty in case the testsuite is run.
     4export DISPLAY=
    135
    14 # This has to be exported to make some magic below work.
    15 export DH_OPTIONS
    16 
    17 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
    18 CFLAGS += -O0
    19 CXXFLAGS += -O0
    20 else
    21 CFLAGS += -O2
    22 CXXFLAGS += -O2
    23 endif
    24 ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
    25 STRIP=/bin/true
    26 endif
    27 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
    28 NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
    29 MAKEFLAGS += -j$(NUMJOBS)
    30 endif
    31 
    32 ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
    33 # Disable the testsuite when cross-compiling.
    34 DEB_BUILD_OPTIONS += nocheck
    35 endif
    36 
    37 build: build-stamp
    38 build-stamp:
    39         dh_testdir
    40 
    41         # Use the latest config.sub and config.guess from the autotools-dev
    42         # package.
    43         rm -f config.sub config.guess
    44         ln -s /usr/share/misc/config.sub config.sub
    45         ln -s /usr/share/misc/config.guess config.guess
    46 
    47         ./configure --prefix=/usr --mandir=\$${prefix}/share/man --enable-docdir=\$${prefix}/share/doc/survex CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" STRIP="$(STRIP)"
    48         $(MAKE)
    49 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
    50         $(MAKE) check DISPLAY=
    51 endif
    52         touch build-stamp
    53 
    54 clean:
    55         dh_testdir
    56         dh_testroot
    57 
    58         [ ! -f Makefile ] || $(MAKE) distclean
    59 
    60         rm -f config.sub config.guess
    61         dh_clean
    62 
    63 install: DH_OPTIONS=
    64 install: build
    65         dh_testdir
    66         dh_testroot
    67         dh_prep
    68         dh_installdirs
    69 
    70         $(MAKE) DESTDIR=`pwd`/debian/tmp install
    71         install -d debian/survex/usr/share/vim/addons/ftdetect
    72         install -d debian/survex/usr/share/vim/addons/syntax
    73         install -d debian/survex/usr/share/vim/registry
    74         install -m 0644 vim/ftdetect/survex.vim debian/survex/usr/share/vim/addons/ftdetect
    75         install -m 0644 vim/syntax/survex.vim debian/survex/usr/share/vim/addons/syntax
    76         install -m 0644 debian/vim-survex.yaml debian/survex/usr/share/vim/registry
    77 
    78         dh_install --fail-missing
    79 
    80 # This single target is used to build all the packages, all at once, or
    81 # one at a time. So keep in mind: any options passed to commands here will
    82 # affect _all_ packages. Anything you want to only affect one package
    83 # should be put in another target, such as the install target.
    84 binary-common:
    85         dh_testdir
    86         dh_testroot
    87         dh_installchangelogs
    88         dh_installdocs
    89         dh_installexamples
    90         dh_installmenu
    91 # FIXME: investigate using dh_installmime
    92 #       dh_installmime
    93         dh_lintian
    94         dh_strip
    95         dh_link
    96         dh_compress
    97         dh_fixperms
    98         dh_installdeb
    99         dh_shlibdeps
    100         dh_gencontrol
    101         dh_md5sums
    102         dh_builddeb
    103 
    104 # Build architecture independent packages using the common target.
    105 binary-indep: build install
    106         $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
    107 
    108 # Build architecture dependant packages using the common target.
    109 binary-arch: build install
    110         $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
    111 
    112 # Any other binary targets build just one binary package at a time.
    113 binary-%: build install
    114         make -f debian/rules binary-common DH_OPTIONS=-p$*
    115 
    116 binary: binary-indep binary-arch
    117 .PHONY: build clean binary-indep binary-arch binary-common binary install
     6%:
     7        dh $@
  • debian/survex.install

    ra26bab0 r3312b1d  
    2525debian/tmp/usr/share/man/man7/survex.7
    2626debian/tmp/usr/share/doc/survex
     27vim/ftdetect/survex.vim usr/share/vim/addons/ftdetect
     28vim/syntax/survex.vim usr/share/vim/addons/syntax
     29debian/vim-survex.yaml usr/share/vim/registry
Note: See TracChangeset for help on using the changeset viewer.