~kroq-gar78/ubuntu/precise/ace-of-penguins/fix-978446

« back to all changes in this revision

Viewing changes to debian/pod2man.mk

  • Committer: Bazaar Package Importer
  • Author(s): Jari Aalto
  • Date: 2009-08-05 11:39:32 UTC
  • Revision ID: james.westby@ubuntu.com-20090805113932-5u4zxr5hoh38pu3o
Tags: 1.2-9
* GENRAL INFORMATION:
  - Summary: the whole package is now patch based.
  - The orginal sources were restored and patches accumulated
    to it were extracted and moved to /debian/patches
  - The original sources were upgraded to latest automake by
    re-libtoolizing with 'autoreconf -fi'. The results were then
    turned into patches. See debian/README.source
* debian/*.desktop:
  - New files. Files submitted by Daniel Dickinson <cshore@wightman.ca>.
    Closes: #478847.
* debian/*.pod
  - Fix incorrect =item tag.
* debian/*.lintian-overrides:
  - Ignore autoreconf and library notes.
* debian/copyright:
  - Update to new dh-make layout.
  - Add Debian packaging copyrights.
  - Change upstream URL to point to freshmeat.
  - Explicitly spell v2 or any later version (lintian).
* debian/compat:
  - update to 7.
* debian/control:
  - (Build-Depends): debhelper (>= 7), was 4. Add dpatch.
  - (Description): Replace term 'Unix/X' with 'graphical'.
  - (Vcs-*): Add new fields.
  - (Homepage): Add new field.
  - (Standards-Version): Update to 3.8.2.
  - (Build-Depends): Remove non-used dpatch.
* debian/debian-vars.mk:
  - Many new variables like CFLAGS, MAKE_FLAGS
  - By default use -j<CPU_COUNT> for make.
* debian/rules:
  - Add dpatch.
  - (binary-arch): Add dh_compress and adjust the manual page
    installation. Remove obsolete dh_desktop.
  - (build-man): New.
  - (clean): Fix lintian checks about -$(MAKE). Clean editors' temporary
    files.
  - (clean-man): New.
  - (install): install *.desktop files. Change programs' prefix form
    ace_* to ace-*. Change 'dh_clean -k' with dh_prep. Install lintian
    override file.
  - (test): New target.
* debian/README.source:
  - Explain autconf 2.64 re-libtoolize process
  - Explain debian/rules specifics concerning libtoolize.
* games/taipei.html:
  - Revert Bug#327185. According to the upstream,
    every game can be won. Explain this in page.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# pod2man.mk -- Makefile portion to convert *.pod files to manual pages
 
2
#
 
3
#   Copyright information
 
4
#
 
5
#       Copyright (C) 2008-2009 Jari Aalto
 
6
#
 
7
#   License
 
8
#
 
9
#       This program is free software; you can redistribute it and/or
 
10
#       modify it under the terms of the GNU General Public License as
 
11
#       published by the Free Software Foundation; either version 2 of the
 
12
#       License, or (at your option) any later version
 
13
#
 
14
#       This program is distributed in the hope that it will be useful, but
 
15
#       WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
#       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 
17
#       General Public License for more details at
 
18
#       Visit <http://www.gnu.org/copyleft/gpl.html>.
 
19
#
 
20
#   Description
 
21
#
 
22
#       Convert *.pod files to manual pages. Write this to 'install'
 
23
#       target:
 
24
#
 
25
#       install: build $(MANPAGE)
 
26
 
 
27
ifneq (,)
 
28
    This makefile requires GNU Make.
 
29
endif
 
30
 
 
31
# This variable *must* be set when calling
 
32
PACKAGE         ?= package
 
33
 
 
34
# Optional variables to set
 
35
MANSECT         ?= 1
 
36
PODCENTER       ?= $$(date "+%Y-%m-%d")
 
37
 
 
38
# Directories
 
39
MANSRC          =
 
40
MANDEST         = $(MANSRC)
 
41
 
 
42
MANPOD          = $(MANSRC)$(PACKAGE).$(MANSECT).pod
 
43
MANPAGE         = $(MANDEST)$(PACKAGE).$(MANSECT)
 
44
 
 
45
POD2MAN         = pod2man
 
46
POD2MAN_FLAGS   = --utf8
 
47
 
 
48
makeman: $(MANPAGE)
 
49
 
 
50
$(MANPAGE): $(MANPOD)
 
51
        # make target - create manual page from a *.pod page
 
52
        podchecker $(MANPOD)
 
53
        LC_ALL= LANG=C $(POD2MAN) $(POD2MAN_FLAGS) \
 
54
                --center="$(PODCENTER)" \
 
55
                --name="$(PACKAGE)" \
 
56
                --section="$(MANSECT)" \
 
57
                $(MANPOD) \
 
58
        | sed 's,[Pp]erl v[0-9.]\+,$(PACKAGE),' \
 
59
          > $(MANPAGE) && \
 
60
        rm -f pod*.tmp
 
61
 
 
62
# End of of Makefile part