Index: mozillamodule.py
===================================================================
RCS file: /cvs/gnome/jhbuild/jhbuild/modtypes/mozillamodule.py,v
retrieving revision 1.8
diff -u -r1.8 mozillamodule.py
--- mozillamodule.py	12 Jun 2005 09:09:17 -0000	1.8
+++ mozillamodule.py	12 Jun 2005 17:52:25 -0000
@@ -130,6 +130,29 @@
         else:
             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/%s-%s/nss' \
+                              % (buildscript.config.prefix,
+				self.get_mozilla_app(),
+				self.get_mozilla_ver(buildscript))
+            buildscript.execute(cmd)
+            cmd = 'find %s/security/nss/lib/ -name \'*.h\' -type f -exec /bin/cp {} %s/include/%s-%s/nss/ \;' \
+                              % (self.get_builddir(buildscript),
+                                 buildscript.config.prefix,
+				 self.get_mozilla_app(),
+                                 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':
