Changeset 737


Ignore:
Timestamp:
May 13, 2010, 8:52:44 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

packaging: Create a noxwpdep version of the "lib" archive for those who doesn't have XWP installed (closes ticket:146).

Location:
packaging
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • packaging/Makefile.packages

    r734 r737  
    9999        pkg.readme=6
    100100
     101# create another WPI with no XWorkplace dependency, see #146
     102wpi.lib_noxwpdep.PATH           = $(OUT_ROOT)/qt-lib-$(QT_VER_FULL)-noxwpdep.wpi
     103wpi.lib_noxwpdep.SCRIPT      = $(WPI_ROOT)/lib_noxwpdep.wis
     104wpi.lib_noxwpdep.PACKAGES       = \
     105        pkg.lib.runtime=1 \
     106        pkg.lib.instutils=2 \
     107        pkg.lib.plugins=3 \
     108        pkg.lib.translations=4 \
     109        pkg.readme=6
     110
    101111#
    102112# Development archive
     
    198208#
    199209
    200 WPIS = wpi.lib wpi.dev wpi.examples wpi.doc
     210WPIS = wpi.lib wpi.lib_noxwpdep wpi.dev wpi.examples wpi.doc
    201211
    202212#-------------------------------------------------------------------------------
  • packaging/lib.wis.tpl

    r736 r737  
    9999</REXX>
    100100
    101 <REXX NAME="GetPkgPathRefFixed">
    102     parse arg aPkgIdUtf8', 'aPkgIdLocal
    103     ver = GetPkgVersion(aPkgIdUtf8)
    104     if (ver == '') then return 'Unable to determine the installation path'
    105     return '$('aPkgIdLocal')'
    106 
    107     /* same as above... */
    108     GetPkgVersion: procedure
    109         parse arg aPkgId
    110         rc = rxFuncAdd('SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs')
    111         rc = SysLoadFuncs()
    112         WarpInDir = strip(SysIni('USER', 'WarpIN', 'Path'), 'T', '0'x)
    113         if (WarpInDir \== '') then do
    114             rc = SysFileTree(WarpInDir'\DATBAS_?.INI', 'inis', 'FO')
    115             if (rc == 0) then do
    116                 do i = 1 to inis.0
    117                     rc = SysIni(inis.i, 'ALL:', 'apps')
    118                     if (rc == '') then do
    119                         do j = 1 to apps.0
    120                             apps.j = strip(apps.j, 'T', '0'x)
    121                             if (left(apps.j, length(aPkgId)) == aPkgId) then do
    122                                 /* found the app */
    123                                 ver = right(apps.j, length(apps.j) - length(aPkgId) - 1)
    124                                 ver = translate(ver, '.', '\')
    125                                 return ver
    126                             end
    127                         end
    128                     end
    129                 end
    130             end
    131         end
    132         return ''
    133 </REXX>
    134 
    135 <REXX NAME="GetPkgSelectAttrFixed">
    136     /* makes sure the package is selected only if the prerequisite is present */
    137     parse arg aPkgId
    138     ver = GetPkgVersion(aPkgId)
    139     if (ver == '') then return ''
    140     return 'SELECT'
    141 
    142     /* same as above... */
    143     GetPkgVersion: procedure
    144         parse arg aPkgId
    145         rc = rxFuncAdd('SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs')
    146         rc = SysLoadFuncs()
    147         WarpInDir = strip(SysIni('USER', 'WarpIN', 'Path'), 'T', '0'x)
    148         if (WarpInDir \== '') then do
    149             rc = SysFileTree(WarpInDir'\DATBAS_?.INI', 'inis', 'FO')
    150             if (rc == 0) then do
    151                 do i = 1 to inis.0
    152                     rc = SysIni(inis.i, 'ALL:', 'apps')
    153                     if (rc == '') then do
    154                         do j = 1 to apps.0
    155                             apps.j = strip(apps.j, 'T', '0'x)
    156                             if (left(apps.j, length(aPkgId)) == aPkgId) then do
    157                                 /* found the app */
    158                                 ver = right(apps.j, length(apps.j) - length(aPkgId) - 1)
    159                                 ver = translate(ver, '.', '\')
    160                                 return ver
    161                             end
    162                         end
    163                     end
    164                 end
    165             end
    166         end
    167         return ''
    168 </REXX>
    169 
    170101<REXX NAME="AskToUninstallPreviousVersion">
    171102    call WirexxShowMessage ,
     
    219150>Contains translations of the Qt runtime. This package is recommended</PCK>
    220151
    221 <PCK INDEX=5
     152<${disable_tag_begin}PCK INDEX=5
    222153     PACKAGEID="netlabs.org\Qt4\SysTray\${version_path}"
    223154     TITLE="Extended System Tray widget for XCenter"
    224      =("GetPkgSelectAttrFixed Ulrich Möller\XWorkplace\Kernel")
     155     SELECT
    225156     REQUIRES="1"
    226157     REQUIRES="Ulrich M”ller\XWorkplace\Kernel\0\9\9"
    227      TARGET="=("GetPkgPathRefFixed Ulrich Möller\XWorkplace\Kernel, Ulrich M”ller\XWorkplace\Kernel")" FIXED
    228      LONGFILENAMES
    229 >Provides support for the system tray to Qt applications. This package is recommended</PCK>
     158     TARGET="$(Ulrich M”ller\XWorkplace\Kernel)" FIXED
     159     LONGFILENAMES
     160>Provides support for the system tray to Qt applications. This package is recommended</PCK${disable_tag_end}>
    230161
    231162<PCK INDEX=6
     
    302233
    303234
    304 <PAGE INDEX=5 TYPE=TEXT>
     235<${disable_tag_begin}PAGE INDEX=5 TYPE=TEXT>
    305236<NEXTBUTTON TARGET=0>I~nstall</NEXTBUTTON>
    306237<TEXT>Press "Install" to begin installing the Qt 4 Runtime Libraries.
     
    310241To do so, restart XCenter and select "Create new widget" > "Extended system tray" from the XCenter context menu.
    311242</TEXT>
    312 </PAGE>
     243</PAGE${disable_tag_end}>
     244
     245<${enable_tag_begin}PAGE INDEX=5 TYPE=TEXT>
     246<NEXTBUTTON TARGET=0>I~nstall</NEXTBUTTON>
     247<TEXT>Press "Install" to begin installing the Qt 4 Runtime Libraries.</TEXT>
     248</PAGE${enable_tag_end}>
    313249
    314250<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  • packaging/make_packages.cmd

    r734 r737  
    331331    G.vars.4.v = G.QtInstallPrefix
    332332
     333    G.vars.5 = 'disable_tag_begin';
     334    G.vars.5.v = ''
     335
     336    G.vars.6 = 'disable_tag_end';
     337    G.vars.6.v = ''
     338
     339    G.vars.7 = 'enable_tag_begin';
     340    G.vars.7.v = '!--'
     341
     342    G.vars.8 = 'enable_tag_end';
     343    G.vars.8.v = '--'
     344
     345    G.vars.0 = 8
     346
     347    call ReplaceInFile 'lib.wis.tpl', G.OutDirWpi'\lib.wis', 'G.vars'
     348
     349    /* disable the xsystray package and create another WPI, see #146 */
     350    G.vars.5.v = '!--'
     351    G.vars.6.v = '--'
     352    G.vars.7.v = ''
     353    G.vars.8.v = ''
     354    call ReplaceInFile 'lib.wis.tpl', G.OutDirWpi'\lib_noxwpdep.wis', 'G.vars'
     355
     356    /* other archives don't need "disable_tag_*" and friends */
    333357    G.vars.0 = 4
    334358
    335     call ReplaceInFile 'lib.wis.tpl', G.OutDirWpi'\lib.wis', 'G.vars'
    336359    call ReplaceInFile 'dev.wis.tpl', G.OutDirWpi'\dev.wis', 'G.vars'
    337360    call ReplaceInFile 'examples.wis.tpl', G.OutDirWpi'\examples.wis', 'G.vars'
     
    342365    /* create the .WPI packages */
    343366    if (Exec('make -f Makefile.packages wpi.lib', G.ScriptDir, '>'G.LogFile) \= 0) then
     367        call Done 1
     368    if (Exec('make -f Makefile.packages wpi.lib_noxwpdep', G.ScriptDir, '>'G.LogFile) \= 0) then
    344369        call Done 1
    345370    if (Exec('make -f Makefile.packages wpi.dev', G.ScriptDir, '>'G.LogFile) \= 0) then
Note: See TracChangeset for help on using the changeset viewer.