The unified diff between revisions [62af9da2..] and [556510e1..] is displayed below. It can also be downloaded as a raw diff.
#
#
# rename "debian/DEV_PKG.docs"
# to "debian/ALDH.DEV_PKG.docs"
#
# rename "debian/DEV_PKG.examples"
# to "debian/ALDH.DEV_PKG.examples"
#
# rename "debian/DEV_PKG.install"
# to "debian/ALDH.DEV_PKG.install"
#
# rename "debian/DEV_PKG.links"
# to "debian/ALDH.DEV_PKG.links"
#
# rename "debian/LIB_PKG.docs"
# to "debian/ALDH.LIB_PKG.docs"
#
# rename "debian/LIB_PKG.install"
# to "debian/ALDH.LIB_PKG.install"
#
# rename "debian/LIB_PKG.lintian-overrides"
# to "debian/ALDH.LIB_PKG.lintian-overrides"
#
# rename "debian/README.Debian"
# to "debian/ALDH.README.Debian"
#
# patch "debian/ALDH.README.Debian"
# from [400a843f173d30539f02155d672964c85c4ea57a]
# to [64e4879832b0d8face50af0aff93eda3e0e14113]
#
# patch "debian/rules"
# from [bb9bd97732c6b85f359712eef6d0841e2e3c1710]
# to [a9770cc1a152c5858ebf40a08df58ab8590a5613]
#
============================================================
--- debian/README.Debian 400a843f173d30539f02155d672964c85c4ea57a
+++ debian/ALDH.README.Debian 64e4879832b0d8face50af0aff93eda3e0e14113
@@ -7,30 +7,30 @@ Debian.
This package follows the convention for Ada library packages in
Debian.
-The separate libgmpada-dev package provide tools for
+The separate DEV_PKG package provide tools for
programmers writing software using the library.
-The Ada source files are in /usr/share/ada/adainclude/gmpada.
+The Ada source files are in /usr/share/ada/adainclude/LIB_NAME.
The Ada library information files are in
-/usr/lib/ada/adalib/gmpada.
+/usr/lib/ada/adalib/LIB_NAME.
There is, in addition, a GNAT project file in
-/usr/share/ada/adainclude/gmpada.gpr.
+/usr/share/ada/adainclude/LIB_NAME.gpr.
-Thus, there are two ways to use gmpada in your programs:
+Thus, there are two ways to use LIB_NAME in your programs:
-1. gnatmake -aI/usr/share/ada/adainclude/gmpada \
- -aO/usr/lib/ada/adalib/gmpada \
+1. gnatmake -aI/usr/share/ada/adainclude/LIB_NAME \
+ -aO/usr/lib/ada/adalib/LIB_NAME \
your_main_program.adb \
- -largs -lgmpada
+ -largs -lLIB_NAME
2. Write a project file for your program. Use the project file for
- gmpada as explained in the comments in the project file.
+ LIB_NAME as explained in the comments in the project file.
-The documentation and examples are provided by the libgmpada-dev
+The documentation and examples are provided by the DEV_PKG
package.
-The runtime debug symbols are provided by libgmpada-dbg package.
+The runtime debug symbols are provided by DBG_PKG package.
- -- Nicolas Boulenguez <nicolas.boulenguez>, 2009/11/22
+ -- Nicolas Boulenguez <nicolas.boulenguez>, 2010/02/09
============================================================
--- debian/rules bb9bd97732c6b85f359712eef6d0841e2e3c1710
+++ debian/rules a9770cc1a152c5858ebf40a08df58ab8590a5613
@@ -57,24 +57,24 @@ DOC_PKG := lib$(LIB_NAME)-doc
# This a trick to use debhelper automation with external files,
# even if their names must match the package version.
-# Each file named debian/LIB_PKG.* is copied to debian/$(LIB_PKG).*
-# before any build or install (idem for DEV DOC DBG). The copy is
-# removed before any clean. It is preprocessed in a minimalistic way:
-# each macro listed in $(ALDH_macros) is expanded.
-ALDH_macros := LIB_NAME ALIVERSION SOVERSION
+# Each file named debian/ALDH.oldname is preprocessed and renamed
+# according to these macros, before any build or install. The
+# preprocessed file is removed before any clean.
+ALDH_macros := LIB_NAME ALIVERSION SOVERSION SONAME LIB_PKG DBG_PKG DEV_PKG DOC_PKG
+ALDH_sed := sed $(foreach macro,$(ALDH_macros),-e s/$(macro)/$($(macro))/g)
+
define ALDH_template
ALDH_targets += $(2)
$(2): $(1)
- sed $(foreach macro,$(ALDH_macros),-e s/$(macro)/$($(macro))/g) $(1) > $(2)
+ $(ALDH_sed) $(1) > $(2)
endef # ALDH_template
ALDH_targets :=
-$(foreach kind, LIB DEV DBG DOC, \
- $(foreach template, $(wildcard debian/$(kind)_PKG.*), \
- $(eval $(call ALDH_template, \
- $(template), \
- $(patsubst debian/$(kind)_PKG.%,debian/$($(kind)_PKG).%,$(template))))))
+$(foreach template,$(wildcard debian/ALDH.*),\
+ $(eval $(call ALDH_template,\
+ $(template),\
+ $(shell echo $(template) | $(ALDH_sed) -e s/ALDH.//))))
build binary binary-arch binary-indep install: $(ALDH_targets)