[Pkg-freedict-commits] r35 - in
/packages/freedict-tools/trunk/debian: Makefile.Debian changelog
debian-scripts/Makefile.Debian install links
kebil-guest at users.alioth.debian.org
kebil-guest at users.alioth.debian.org
Sat Dec 30 00:00:54 CET 2006
Author: kebil-guest
Date: Sat Dec 30 00:00:54 2006
New Revision: 35
URL: http://svn.debian.org/wsvn/pkg-freedict/?sc=1&rev=35
Log:
replaced to the previous state
Added:
packages/freedict-tools/trunk/debian/Makefile.Debian (with props)
packages/freedict-tools/trunk/debian/links
Removed:
packages/freedict-tools/trunk/debian/debian-scripts/Makefile.Debian
Modified:
packages/freedict-tools/trunk/debian/changelog
packages/freedict-tools/trunk/debian/install
Added: packages/freedict-tools/trunk/debian/Makefile.Debian
URL: http://svn.debian.org/wsvn/pkg-freedict/packages/freedict-tools/trunk/debian/Makefile.Debian?rev=35&op=file
==============================================================================
--- packages/freedict-tools/trunk/debian/Makefile.Debian (added)
+++ packages/freedict-tools/trunk/debian/Makefile.Debian Sat Dec 30 00:00:54 2006
@@ -1,0 +1,131 @@
+# $Id: Makefile.Debian 25 2006-12-28 15:26:27Z joostvb $
+# $URL: svn+ssh://kebil-guest@svn.debian.org/svn/pkg-freedict/packages/freedict-tools/trunk/debian/Makefile.Debian $
+
+#
+# example of debian/rules, using this file:
+#
+# DICT = deu-nld
+# DICT_MAKE_ENVVARS = supported_phonetics=
+#
+# FULLNAME = German-Dutch
+# AUTHORNAME = Horst Eyermann (Horst at freedict.de)
+# VERSION = 0.1
+#
+# include freedict-tools/mk/Makefile.Debian
+#
+
+prepare:
+ # Set up the package build directory as quilt expects to find it.
+ if [ ! -e patches ]; then \
+ ln -s debian/patches patches; \
+ fi
+
+ if [ ! -e .pc ]; then \
+ mkdir .pc; \
+ echo 2 >.pc/.version; \
+ fi
+
+
+patch: prepare
+ # Apply all patches to the upstream source.
+ if quilt next; then \
+ echo -n "Applying patches..."; \
+ if quilt push -a -v; then \
+ echo "successful."; \
+ else \
+ echo "failed!"; \
+ exit 1; \
+ fi; \
+ else \
+ echo "No patches to apply"; \
+ fi
+
+
+unpatch:
+ # Revert all patches to the upstream source.
+ @echo -n "Unapplying patches..."; \
+ if [ -e .pc/applied-patches ]; then \
+ if quilt pop -a -v; then \
+ echo "successful."; \
+ else \
+ echo "failed!"; \
+ exit 1; \
+ fi; \
+ else \
+ echo "nothing to do."; \
+ fi
+
+
+build: build-stamp
+
+build-stamp:
+ dh_testdir
+
+ $(MAKE) -f debian/rules patch
+
+ FREEDICTDIR=freedict-tools/mk dictname=$(DICT) \
+ xsldir=/usr/share/freedict-tools/tools/xsl \
+ $(DICT_MAKE_ENVVARS) $(MAKE) $(DICT).dict.dz
+
+ cp /usr/share/freedict-tools/debian-scripts/README.Debian debian
+ cp /usr/share/freedict-tools/debian-scripts/postinst debian
+ cp /usr/share/freedict-tools/debian-scripts/postrm debian
+
+ sed "s/@LANG@/$(DICT)/g" \
+ /usr/share/freedict-tools/debian-scripts/dirs.in > debian/dirs
+ sed "s/@LANG@/$(DICT)/g" \
+ /usr/share/freedict-tools/debian-scripts/links.in > debian/links
+
+ sed "s/@LANG@/$(DICT)/g; s/@NAME@/$(FULLNAME)/g; s/@AUTHORN@/$(AUTHORNAME)/g; s/@VERSN@/$(VERSION)/g;" \
+ /usr/share/freedict-tools/debian-scripts/opendict-plugin.xml.in \
+ > config.txt
+
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp
+
+ $(MAKE) -f debian/rules unpatch
+ rm -rf .pc patches
+
+ FREEDICTDIR=freedict-tools/mk dictname=$(DICT) $(MAKE) clean
+ rm -rf debian/README.Debian debian/postinst debian/postrm
+ rm -rf debian/dirs debian/links config.txt
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ cp $(DICT).dict.dz \
+ debian/dict-freedict-$(DICT)/usr/share/dictd/freedict-$(DICT).dict.dz
+ cp $(DICT).index \
+ debian/dict-freedict-$(DICT)/usr/share/dictd/freedict-$(DICT).index
+
+ install -m 644 config.txt \
+ debian/dict-freedict-$(DICT)/usr/share/opendict/dictionaries/plain/freedict-$(DICT).dict.dz/conf/config.xml
+
+binary-indep: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs -A debian/README.Debian
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary-arch:
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
Propchange: packages/freedict-tools/trunk/debian/Makefile.Debian
------------------------------------------------------------------------------
svn:executable = *
Modified: packages/freedict-tools/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-freedict/packages/freedict-tools/trunk/debian/changelog?rev=35&op=diff
==============================================================================
--- packages/freedict-tools/trunk/debian/changelog (original)
+++ packages/freedict-tools/trunk/debian/changelog Sat Dec 30 00:00:54 2006
@@ -4,18 +4,21 @@
* debian/README.Debian: removed (had no content).
* debian/TODO: added.
* debian/control: fixed maintainer list address.
+ * debian/{install,links,rules}: Makefile.{common,config} no longer installed
+ in usr/share/freedict-tools/tools, but in usr/share/freedict-tools/mk.
+ usr/include/freedict-tools/mk contains symlinks, so that make can find
+ these in its default include path. debian/links added. dh_links
+ invokation added to debian/rules.
* debian/{install,control}: install teiaddphonetics script; add dependcy on
libxml-dom-perl for it.
* patches/002_scriptdir_in_Makefile.common.diff: hack Makefile.common: add
support for $(scriptsdir) (place for teiaddphonetics script), make
$(dictname) overwritable, make $(xsldir) overwritable, add option to
disable phonetics-support by making $(supported_phonetics) overwritable.
- * debian/debian-scripts/Makefile.Debian: added: file to be include-d by
- dict-package's debian/rules.
- * debian/debian-scripts:
- - use @LANG@, not LANG. Add .in filename extension to files using @LANG@,
- @AUTHORN@ e.a.
- - added Makefile.Debian file to be include-d by dict-package's debian/rules.
+ * debian/Makefile.Debian: added: file to be include-d by dict-package's
+ debian/rules.
+ * debian/debian-scripts: use @LANG@, not LANG. Add .in filename extension
+ to files using @LANG@, @AUTHORN@ e.a.
* debian/watch: added.
-- Joost van Baal <joostvb at debian.org> Wed, 20 Dec 2006 16:23:13 +0100
Modified: packages/freedict-tools/trunk/debian/install
URL: http://svn.debian.org/wsvn/pkg-freedict/packages/freedict-tools/trunk/debian/install?rev=35&op=diff
==============================================================================
--- packages/freedict-tools/trunk/debian/install (original)
+++ packages/freedict-tools/trunk/debian/install Sat Dec 30 00:00:54 2006
@@ -1,7 +1,7 @@
-Makefile.common usr/share/freedict-tools/tools
-Makefile.config usr/share/freedict-tools/tools
+Makefile.common usr/share/freedict-tools/mk
+Makefile.config usr/share/freedict-tools/mk
+debian/Makefile.Debian usr/share/freedict-tools/mk
xsl/tei2c5.xsl usr/share/freedict-tools/tools/xsl
xsl/inc/* usr/share/freedict-tools/tools/xsl/inc
debian/debian-scripts/* usr/share/freedict-tools/debian-scripts
-teiaddphonetics usr/share/freedict-tools/tools
-xdf2tei.pl usr/share/freedict-tools/tools
+teiaddphonetics usr/bin
Added: packages/freedict-tools/trunk/debian/links
URL: http://svn.debian.org/wsvn/pkg-freedict/packages/freedict-tools/trunk/debian/links?rev=35&op=file
==============================================================================
--- packages/freedict-tools/trunk/debian/links (added)
+++ packages/freedict-tools/trunk/debian/links Sat Dec 30 00:00:54 2006
@@ -1,0 +1,4 @@
+usr/share/freedict-tools/mk/Makefile.config usr/include/freedict-tools/mk/tools/Makefile.config
+usr/share/freedict-tools/mk/Makefile.common usr/include/freedict-tools/mk/tools/Makefile.common
+usr/share/freedict-tools/mk/Makefile.Debian usr/include/freedict-tools/mk/Makefile.Debian
+usr/bin/teiaddphonetics usr/share/freedict-tools/tools/teiaddphonetics
More information about the Pkg-freedict-commits
mailing list