[Pkg-freedict-commits] r23 - in /packages: freedict-deu-nld/trunk/debian/rules freedict-tools/trunk/debian/Makefile.Debian

joostvb at users.alioth.debian.org joostvb at users.alioth.debian.org
Thu Dec 28 16:15:39 CET 2006


Author: joostvb
Date: Thu Dec 28 16:15:39 2006
New Revision: 23

URL: http://svn.debian.org/wsvn/pkg-freedict/?sc=1&rev=23
Log:
generic debian/rules file for dict-packages now delivered by freedict-tools-dev

Added:
    packages/freedict-tools/trunk/debian/Makefile.Debian
      - copied unchanged from r22, packages/freedict-deu-nld/trunk/debian/rules
Modified:
    packages/freedict-deu-nld/trunk/debian/rules

Modified: packages/freedict-deu-nld/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-freedict/packages/freedict-deu-nld/trunk/debian/rules?rev=23&op=diff
==============================================================================
--- packages/freedict-deu-nld/trunk/debian/rules (original)
+++ packages/freedict-deu-nld/trunk/debian/rules Thu Dec 28 16:15:39 2006
@@ -9,124 +9,9 @@
 
 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




More information about the Pkg-freedict-commits mailing list