<!-- Generator: GNU source-highlight 2.4
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt>#
#
# add_dir "packages/wordlist"

# add_dir "packages/wordlist/files"

# add_file "packages/wordlist/files/rules"
#  content [c05179a08d78dc9c946b1b4e3eaab857aae70513]

# add_file "packages/wordlist/scowl_6.bb"
#  content [3c879b1a8c2e4cb21bb186cd29601c95da176d93]
#
============================================================
<font color="#FF6600">--- packages/wordlist/files/rules        c05179a08d78dc9c946b1b4e3eaab857aae70513</font>
<font color="#009900">+++ packages/wordlist/files/rules        c05179a08d78dc9c946b1b4e3eaab857aae70513</font>
<font color="#0000FF">@@ -0,0 +1,218 @@</font>
<font color="#009900">+#!/usr/bin/make -f</font>
<font color="#009900">+# -*- Makefile -*- $Id: rules,v 1.18 2005/10/15 03:03:48 david Exp $</font>
<font color="#009900">+# Sample debian/rules that uses debhelper. </font>
<font color="#009900">+# GNU copyright 1997 to 1999 by Joey Hess.</font>
<font color="#009900">+# Customized 27 Oct 1999 by David Coe for wenglish, later moved to scowl</font>
<font color="#009900">+# This version is for packages that are architecture independent.</font>
<font color="#009900">+</font>
<font color="#009900">+# Copied &amp; modified 20080409 from debian source package by John Lee</font>
<font color="#009900">+# into OpenEmbedded.</font>
<font color="#009900">+</font>
<font color="#009900">+# Uncomment this to turn on verbose mode.</font>
<font color="#009900">+export DH_VERBOSE=1</font>
<font color="#009900">+</font>
<font color="#009900">+# This has to be exported to make some magic below work.</font>
<font color="#009900">+export DH_OPTIONS</font>
<font color="#009900">+</font>
<font color="#009900">+# In addition to the scowl binary package, we create wamerican-small, wamerican, wamerican-large, wamerican-huge, and the</font>
<font color="#009900">+# corresponding packages for wbritish and wcanadian.</font>
<font color="#009900">+# The medium size packages have no -size part in their names</font>
<font color="#009900">+# These are the scowl extensions (complexity numbers?) that contribute to each word list (i.e. each size);</font>
<font color="#009900">+# the -size parts "-small", "", "-large", and "-huge" correspond to the end of the binary package name:</font>
<font color="#009900">+export SIZE_EXTENSIONS-small:=10 20 35</font>
<font color="#009900">+export SIZE_EXTENSIONS:=$(SIZE_EXTENSIONS-small) 40 50</font>
<font color="#009900">+export SIZE_EXTENSIONS-large:=$(SIZE_EXTENSIONS) 55 60 70</font>
<font color="#009900">+export SIZE_EXTENSIONS-huge:=$(SIZE_EXTENSIONS-large) 80</font>
<font color="#009900">+</font>
<font color="#009900">+# These are the scowl word list classes we use:</font>
<font color="#009900">+CLASSES:=words proper-names upper contractions</font>
<font color="#009900">+VARIANTS:=0 1</font>
<font color="#009900">+</font>
<font color="#009900">+build: build-stamp</font>
<font color="#009900">+build-stamp:</font>
<font color="#009900">+#        dh_testdir</font>
<font color="#009900">+</font>
<font color="#009900">+        set -e;\</font>
<font color="#009900">+        for SPELLING in american british canadian; do\</font>
<font color="#009900">+          for SIZE in -small "" -large -huge; do\</font>
<font color="#009900">+            echo "The following SCOWL word lists were concatenated and sorted (with duplicates" &gt; w$$SPELLING$$SIZE.scowl-word-lists-used;\</font>
<font color="#009900">+            echo "removed) to create this word list (see README.Debian for more details):" &gt;&gt; w$$SPELLING$$SIZE.scowl-word-lists-used;\</font>
<font color="#009900">+            for CLASS in $(CLASSES); do\</font>
<font color="#009900">+              for EXT in $$(eval echo \\$$SIZE_EXTENSIONS$$SIZE); do\</font>
<font color="#009900">+                if [ -f final/english-$$CLASS.$$EXT ]; then\</font>
<font color="#009900">+                  echo "cat final/english-$$CLASS.$$EXT &gt;&gt; $$SPELLING-english$$SIZE.unsorted";\</font>
<font color="#009900">+                  cat final/english-$$CLASS.$$EXT &gt;&gt; $$SPELLING-english$$SIZE.unsorted;\</font>
<font color="#009900">+                  echo "  english-$$CLASS.$$EXT" &gt;&gt; w$$SPELLING$$SIZE.scowl-word-lists-used;\</font>
<font color="#009900">+                fi;\</font>
<font color="#009900">+                for VARIANT in $(VARIANTS); do\</font>
<font color="#009900">+                  if [ -f final/variant_$$VARIANT-$$CLASS.$$EXT ]; then\</font>
<font color="#009900">+                    echo "cat final/variant_$$VARIANT-$$CLASS.$$EXT &gt;&gt; $$SPELLING-english$$SIZE.unsorted";\</font>
<font color="#009900">+                    cat final/variant_$$VARIANT-$$CLASS.$$EXT &gt;&gt; $$SPELLING-english$$SIZE.unsorted;\</font>
<font color="#009900">+                    echo "  variant_$$VARIANT-$$CLASS.$$EXT" &gt;&gt; w$$SPELLING$$SIZE.scowl-word-lists-used;\</font>
<font color="#009900">+                  fi;\</font>
<font color="#009900">+                done;\</font>
<font color="#009900">+                if [ -f final/$$SPELLING-$$CLASS.$$EXT ]; then\</font>
<font color="#009900">+                  echo "cat final/$$SPELLING-$$CLASS.$$EXT &gt;&gt; $$SPELLING-english$$SIZE.unsorted";\</font>
<font color="#009900">+                  cat final/$$SPELLING-$$CLASS.$$EXT &gt;&gt; $$SPELLING-english$$SIZE.unsorted;\</font>
<font color="#009900">+                  echo "  $$SPELLING-$$CLASS.$$EXT" &gt;&gt; w$$SPELLING$$SIZE.scowl-word-lists-used;\</font>
<font color="#009900">+                fi;\</font>
<font color="#009900">+              done;\</font>
<font color="#009900">+            done;\</font>
<font color="#009900">+          echo "sort -u &lt; $$SPELLING-english$$SIZE.unsorted &gt; $$SPELLING-english$$SIZE; rm $$SPELLING-english$$SIZE.unsorted";\</font>
<font color="#009900">+          sort -u &lt; $$SPELLING-english$$SIZE.unsorted &gt; $$SPELLING-english$$SIZE; rm $$SPELLING-english$$SIZE.unsorted;\</font>
<font color="#009900">+          done;\</font>
<font color="#009900">+        done</font>
<font color="#009900">+</font>
<font color="#009900">+        touch build-stamp</font>
<font color="#009900">+</font>
<font color="#009900">+</font>
<font color="#009900">+clean:</font>
<font color="#009900">+        dh_testdir</font>
<font color="#009900">+        dh_testroot</font>
<font color="#009900">+        rm -f build-stamp</font>
<font color="#009900">+</font>
<font color="#009900">+        set -e;\</font>
<font color="#009900">+        for SIZE in -small "" -large -huge; do\</font>
<font color="#009900">+          for SPELLING in american british canadian; do\</font>
<font color="#009900">+            rm -f $$SPELLING-english$$SIZE.unsorted $$SPELLING-english$$SIZE $$SPELLING-english$$SIZE.5 w$$SPELLING$$SIZE.scowl-word-lists-used;\</font>
<font color="#009900">+          done;\</font>
<font color="#009900">+        done</font>
<font color="#009900">+</font>
<font color="#009900">+        dh_clean</font>
<font color="#009900">+</font>
<font color="#009900">+</font>
<font color="#009900">+install: DH_OPTIONS=</font>
<font color="#009900">+install: install-scowl install-wamerican install-wamerican-small install-wamerican-large install-wamerican-huge install-wbritish install-wbritish-small install-wbritish-large install-wbritish-huge install-wcanadian install-wcanadian-small install-wcanadian-large install-wcanadian-huge</font>
<font color="#009900">+</font>
<font color="#009900">+</font>
<font color="#009900">+</font>
<font color="#009900">+.PHONY: install-scowl</font>
<font color="#009900">+install-scowl: PKG=scowl</font>
<font color="#009900">+install-scowl: </font>
<font color="#009900">+        dh_testdir</font>
<font color="#009900">+        dh_testroot</font>
<font color="#009900">+        dh_installdirs --package=$(PKG)</font>
<font color="#009900">+</font>
<font color="#009900">+        dh_install --package=$(PKG) final/*.[0-9][0-9] usr/share/dict/scowl</font>
<font color="#009900">+        dh_installdocs --package=$(PKG) README debian/README.Debian</font>
<font color="#009900">+</font>
<font color="#009900">+</font>
<font color="#009900">+.PHONY: install-wordlist</font>
<font color="#009900">+install-wordlist:</font>
<font color="#009900">+#        PKG and WORDLIST must have been set to the binary package name and word list file name, respectively.</font>
<font color="#009900">+        dh_testdir</font>
<font color="#009900">+        dh_testroot</font>
<font color="#009900">+        dh_installdirs --package=$(PKG)</font>
<font color="#009900">+</font>
<font color="#009900">+        dh_install --package=$(PKG) $(WORDLIST) usr/share/dict</font>
<font color="#009900">+</font>
<font color="#009900">+        dh_installdocs --package=$(PKG) $(PKG).scowl-word-lists-used debian/README.Debian</font>
<font color="#009900">+</font>
<font color="#009900">+        installdeb-wordlist --package=$(PKG) # This internally uses dh_installdebcon</font>
<font color="#009900">+</font>
<font color="#009900">+        sed "s/WORDLIST/$(WORDLIST)/g" &lt; debian/wordlist_manpage_template &gt; $(WORDLIST).5</font>
<font color="#009900">+        dh_installman --package=$(PKG) $(WORDLIST).5</font>
<font color="#009900">+</font>
<font color="#009900">+</font>
<font color="#009900">+.PHONY: install-wamerican</font>
<font color="#009900">+install-wamerican: build-stamp</font>
<font color="#009900">+         $(MAKE) -f debian/rules PKG=wamerican WORDLIST=american-english install-wordlist</font>
<font color="#009900">+</font>
<font color="#009900">+.PHONY: install-wamerican-small</font>
<font color="#009900">+install-wamerican-small: build-stamp</font>
<font color="#009900">+         $(MAKE) -f debian/rules PKG=wamerican-small WORDLIST=american-english-small install-wordlist</font>
<font color="#009900">+</font>
<font color="#009900">+.PHONY: install-wamerican-large</font>
<font color="#009900">+install-wamerican-large: build-stamp</font>
<font color="#009900">+         $(MAKE) -f debian/rules PKG=wamerican-large WORDLIST=american-english-large install-wordlist</font>
<font color="#009900">+</font>
<font color="#009900">+.PHONY: install-wamerican-huge</font>
<font color="#009900">+install-wamerican-huge: build-stamp</font>
<font color="#009900">+         $(MAKE) -f debian/rules PKG=wamerican-huge WORDLIST=american-english-huge install-wordlist</font>
<font color="#009900">+</font>
<font color="#009900">+</font>
<font color="#009900">+.PHONY: install-wbritish</font>
<font color="#009900">+install-wbritish: build-stamp</font>
<font color="#009900">+         $(MAKE) -f debian/rules PKG=wbritish WORDLIST=british-english install-wordlist</font>
<font color="#009900">+</font>
<font color="#009900">+.PHONY: install-wbritish-small</font>
<font color="#009900">+install-wbritish-small: build-stamp</font>
<font color="#009900">+         $(MAKE) -f debian/rules PKG=wbritish-small WORDLIST=british-english-small install-wordlist</font>
<font color="#009900">+</font>
<font color="#009900">+.PHONY: install-wbritish-large</font>
<font color="#009900">+install-wbritish-large: build-stamp</font>
<font color="#009900">+         $(MAKE) -f debian/rules PKG=wbritish-large WORDLIST=british-english-large install-wordlist</font>
<font color="#009900">+</font>
<font color="#009900">+.PHONY: install-wbritish-huge</font>
<font color="#009900">+install-wbritish-huge: build-stamp</font>
<font color="#009900">+         $(MAKE) -f debian/rules PKG=wbritish-huge WORDLIST=british-english-huge install-wordlist</font>
<font color="#009900">+</font>
<font color="#009900">+</font>
<font color="#009900">+.PHONY: install-wcanadian</font>
<font color="#009900">+install-wcanadian: build-stamp</font>
<font color="#009900">+         $(MAKE) -f debian/rules PKG=wcanadian WORDLIST=canadian-english install-wordlist</font>
<font color="#009900">+</font>
<font color="#009900">+.PHONY: install-wcanadian-small</font>
<font color="#009900">+install-wcanadian-small: build-stamp</font>
<font color="#009900">+         $(MAKE) -f debian/rules PKG=wcanadian-small WORDLIST=canadian-english-small install-wordlist</font>
<font color="#009900">+</font>
<font color="#009900">+.PHONY: install-wcanadian-large</font>
<font color="#009900">+install-wcanadian-large: build-stamp</font>
<font color="#009900">+         $(MAKE) -f debian/rules PKG=wcanadian-large WORDLIST=canadian-english-large install-wordlist</font>
<font color="#009900">+</font>
<font color="#009900">+.PHONY: install-wcanadian-huge</font>
<font color="#009900">+install-wcanadian-huge: build-stamp</font>
<font color="#009900">+         $(MAKE) -f debian/rules PKG=wcanadian-huge WORDLIST=canadian-english-huge install-wordlist</font>
<font color="#009900">+</font>
<font color="#009900">+</font>
<font color="#009900">+</font>
<font color="#009900">+# This single target is used to build all the packages, all at once, or</font>
<font color="#009900">+# one at a time. So keep in mind: any options passed to commands here will</font>
<font color="#009900">+# affect _all_ packages. Anything you want to only affect one package</font>
<font color="#009900">+# should be put in another target, such as the install target.</font>
<font color="#009900">+binary-common:</font>
<font color="#009900">+        dh_testdir</font>
<font color="#009900">+        dh_testroot</font>
<font color="#009900">+        dh_installchangelogs</font>
<font color="#009900">+#        dh_installdocs    # moved to the install targets, because it doesn't DWIM with "-A -p scowl README"</font>
<font color="#009900">+#        dh_installexamples</font>
<font color="#009900">+#        dh_installmenu</font>
<font color="#009900">+#        dh_installdebconf</font>
<font color="#009900">+#        dh_installlogrotate</font>
<font color="#009900">+#        dh_installemacsen</font>
<font color="#009900">+#        dh_installcatalogs</font>
<font color="#009900">+#        dh_installpam</font>
<font color="#009900">+#        dh_installmime</font>
<font color="#009900">+#        dh_installinit</font>
<font color="#009900">+#        dh_installman</font>
<font color="#009900">+#        dh_installcron</font>
<font color="#009900">+#        dh_installinfo</font>
<font color="#009900">+#        dh_undocumented</font>
<font color="#009900">+#        dh_strip</font>
<font color="#009900">+        dh_link</font>
<font color="#009900">+        dh_compress</font>
<font color="#009900">+        dh_fixperms</font>
<font color="#009900">+#        dh_perl</font>
<font color="#009900">+#        dh_python</font>
<font color="#009900">+#        dh_makeshlibs</font>
<font color="#009900">+        dh_installdeb</font>
<font color="#009900">+        dh_shlibdeps</font>
<font color="#009900">+        dh_gencontrol</font>
<font color="#009900">+        dh_md5sums</font>
<font color="#009900">+        dh_builddeb</font>
<font color="#009900">+</font>
<font color="#009900">+# Build architecture independant packages using the common target.</font>
<font color="#009900">+binary-indep: build install</font>
<font color="#009900">+         $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common</font>
<font color="#009900">+</font>
<font color="#009900">+# Build architecture dependant packages using the common target.</font>
<font color="#009900">+binary-arch: build install</font>
<font color="#009900">+# (Uncomment this next line if you have such packages.)</font>
<font color="#009900">+#        $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common</font>
<font color="#009900">+</font>
<font color="#009900">+# Any other binary targets build just one binary package at a time.</font>
<font color="#009900">+binary-%: build install</font>
<font color="#009900">+        make -f debian/rules binary-common DH_OPTIONS=-p$*</font>
<font color="#009900">+</font>
<font color="#009900">+binary: binary-indep binary-arch</font>
<font color="#009900">+.PHONY: build clean binary-indep binary-arch binary-common binary install</font>
============================================================
<font color="#FF6600">--- packages/wordlist/scowl_6.bb        3c879b1a8c2e4cb21bb186cd29601c95da176d93</font>
<font color="#009900">+++ packages/wordlist/scowl_6.bb        3c879b1a8c2e4cb21bb186cd29601c95da176d93</font>
<font color="#0000FF">@@ -0,0 +1,37 @@</font>
<font color="#009900">+DESCRIPTION = "SCOWL (Spell Checker Oriented Word Lists) is a collection of word lists split up in various sizes, and other categories, intended to be suitable for use in spell checkers. However, I am sure it will have numerous other uses as well."</font>
<font color="#009900">+HOMEPAGE = "http://wordlist.sourceforge.net/"</font>
<font color="#009900">+LICENSE = "GPL"</font>
<font color="#009900">+</font>
<font color="#009900">+SRC_URI = "${SOURCEFORGE_MIRROR}/wordlist/scowl-6.tar.gz \</font>
<font color="#009900">+           file://rules"</font>
<font color="#009900">+</font>
<font color="#009900">+S = "${WORKDIR}/${PN}-${PV}"</font>
<font color="#009900">+</font>
<font color="#009900">+do_compile() {</font>
<font color="#009900">+    cp -f ${WORKDIR}/rules ${S}</font>
<font color="#009900">+    oe_runmake -f rules build</font>
<font color="#009900">+}</font>
<font color="#009900">+do_install() {</font>
<font color="#009900">+    install -d ${D}/${datadir}/dict</font>
<font color="#009900">+    install ${S}/american-english ${D}/${datadir}/dict</font>
<font color="#009900">+    install ${S}/british-english ${D}/${datadir}/dict</font>
<font color="#009900">+    install ${S}/canadian-english ${D}/${datadir}/dict</font>
<font color="#009900">+}</font>
<font color="#009900">+</font>
<font color="#009900">+PACKAGE_ARCH = "all"</font>
<font color="#009900">+PACKAGES = "wamerican wbritish wcanadian"</font>
<font color="#009900">+</font>
<font color="#009900">+FILES = "${datadir}/dict/${DICTNAME}"</font>
<font color="#009900">+</font>
<font color="#009900">+pkg_postinst() {</font>
<font color="#009900">+#!/bin/sh</font>
<font color="#009900">+if [ "x$D" != "x" ]; then</font>
<font color="#009900">+    exit 1</font>
<font color="#009900">+fi</font>
<font color="#009900">+cd ${datadir}/dict</font>
<font color="#009900">+ln -sf ${DICTNAME} words</font>
<font color="#009900">+}</font>
<font color="#009900">+</font>
<font color="#009900">+DICTNAME_wamerican = "american-english"</font>
<font color="#009900">+DICTNAME_wbritish = "british-english"</font>
<font color="#009900">+DICTNAME_wcanadian = "canadian-english"</font>
</tt></pre>