Move package related functions from pmodules to pkgutil.

pmodules.pas => pkgutil.pas:
  * createimportlibfromexports
  * varexport
  * procexport
  * insert_export
  * RewritePPU

git-svn-id: http://svn.freepascal.org/svn/fpc/branches/svenbarth@28838 3ad0048d-3df7-0310-abae-a5850022a9f2
* adjust indentation

git-svn-id: http://svn.freepascal.org/svn/fpc/branches/svenbarth@28839 3ad0048d-3df7-0310-abae-a5850022a9f2
Extract the code to export the symbols of a unit to its own function in pkgutil so that less functions need to be exported.

pmodules.pas, proc_package:
  * move code to export the symbols of a unit to new function export_unit
pkgutil.pas:
  + new function export_unit
  - remove exports of procexport, varexport and insert_export

git-svn-id: http://svn.freepascal.org/svn/fpc/branches/svenbarth@28840 3ad0048d-3df7-0310-abae-a5850022a9f2
Some small fixes for package parsing.

pmodules.pas, proc_package:
  * use orgpattern instead of pattern to build the module name (like is done in uses sections)
  * ignore duplicates when generating exports
  - no need to generate an import library for the package; that is done by the program/library that uses the package

git-svn-id: http://svn.freepascal.org/svn/fpc/branches/svenbarth@28841 3ad0048d-3df7-0310-abae-a5850022a9f2