Index: mozillamodule.py
===================================================================
RCS file: /cvs/gnome/jhbuild/jhbuild/modtypes/mozillamodule.py,v
retrieving revision 1.5
diff -u -r1.5 mozillamodule.py
--- mozillamodule.py	30 Jul 2004 06:08:43 -0000	1.5
+++ mozillamodule.py	1 Oct 2004 02:19:01 -0000
@@ -113,6 +113,27 @@
             return (self.STATE_BUILD, 'could not configure module',
                     [self.STATE_FORCE_CHECKOUT])
 
+    def do_install(self, buildscript):
+        os.chdir(self.get_builddir(buildscript))
+        buildscript.set_action('Installing', self)
+        cmd = 'make %s %s install' % (buildscript.config.makeargs,
+                                      self.makeargs)
+        error = None
+        if buildscript.execute(cmd) != 0:
+            error = 'could not make module'
+        else:
+            cmd = 'mkdir %s/include/mozilla-%s/nss' \
+                              % (buildscript.config.prefix,
+                                 self.get_mozilla_ver(buildscript))
+            buildscript.execute(cmd)
+            cmd = 'find %s/security/nss/lib/ -name \'*.h\' -type f -exec /bin/cp {} %s/include/mozilla-%s/nss/ \;' \
+                              % (self.get_builddir(buildscript),
+                                 buildscript.config.prefix,
+                                 self.get_mozilla_ver(buildscript))
+            buildscript.execute(cmd)
+            buildscript.packagedb.add(self.name, self.get_revision() or '')
+        return (self.STATE_DONE, error, [])
+
 def parse_mozillamodule(node, config, dependencies, suggests, root):
     if root[0] != 'cvs':
         raise FatalError('%s is not a CVS root' % root[1])
