HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • ← Previous Change
  • Wiki History
  • Next Change →

Changes between Version 10 and Version 11 of BepFile


Ignore:
Timestamp:
11/13/09 12:29:16 (6 years ago)
Author:
scottmc
Comment:

added DISTRO section, and more beporter to haikuporter cleanups

Legend:

Unmodified
Added
Removed
Modified
  • BepFile

    v10 v11  
    33== Introduction == 
    44 
    5 A .bep file is a ''recipe'' that BePorter uses to fetch, patch, build and install a software package. It is an ASCII file that contains a list of keys with corresponding (lists of) values. Next to being a recipe for BePorter, it may also give specific information on how to build a particular application on BeOS (see below). 
     5A .bep file is a ''recipe'' that haikuporter uses to fetch, patch, build and install a software package. It is an ASCII file that contains a list of keys with corresponding (lists of) values. Next to being a recipe for haikuporter, it may also give specific information on how to build a particular application on BeOS (see below). 
    66 
    77== Syntax == 
    … …  
    6161 * the line of the key label ends with an opening brace '{', with nothing following it (except for whitespace) 
    6262 * each line is indented by whitespace (tabs or spaces) 
    63  * the closing brace '}' is on on a seperate line, preceded by whitespace 
     63 * the closing brace '}' is on on a separate line, preceded by whitespace 
    6464 * the lines between the braces are interpreted as a shell script (bash); hence, it is possible to use conditional execution and insert comments using '#' (see below) 
    6565 
    6666=== List of keys === 
    6767 
    68 The following keys are currently supported in BePorter: 
     68The following keys are currently supported in haikuporter: 
    6969 
    7070||Key||Description||Type||Syntax||Mandatory||Default|| 
    … …  
    7272||{{{HOMEPAGE}}}||URI pointing to the official homepage of the software package||single||URI||yes||-|| 
    7373||{{{SRC_URI}}}||(a list of) URI(s) pointing to the source code archive of the software package||single, list||URI||yes||-|| 
    74 ||{{{REVISION}}}||indicates the BePort revision||single||integer ({{{1}}}, {{{2}}}, {{{3}}}, ...)||yes||-|| 
    75 ||{{{STATUS_R5}}}||indicates the status of this port on BeOS R5||single||status ({{{untested}}}, {{{unstable}}}, {{{stable}}})||no||{{{untested}}}|| 
    76 ||{{{STATUS_BONE}}}||indicates the status of this port on BeOS BONE/Dano and Zeta||single||status ({{{untested}}}, {{{unstable}}}, {{{stable}}})||no||{{{untested}}}|| 
     74||{{{REVISION}}}||indicates the HaikuPort revision||single||integer ({{{1}}}, {{{2}}}, {{{3}}}, ...)||yes||-|| 
    7775||{{{STATUS_HAIKU}}}||indicates the status of this port on Haiku||single||status ({{{untested}}}, {{{unstable}}}, {{{stable}}})||no||{{{untested}}}|| 
    78 ||{{{DEPEND}}}||(list of) !BePort(s) this port depends upon||single, list||{{{category/portname >= portversion}}}||no||-|| 
     76||{{{DEPEND}}}||(list of) !HaikuPort(s) this port depends upon||single, list||{{{category/portname >= portversion}}}||no||-|| 
    7977||{{{BUILD}}}||list of shell commands (script) to execute in order to build the port||shell||shell commands||no||-|| 
    8078||{{{INSTALL}}}||list of shell commands to execute in order to install the port||shell||shell commands||no||-|| 
     79||{{{DISTRO}}}||list of shell commands to execute in order to install to a DESTDIR||shell||shell commands||no||-|| 
    8180 
    82 BUILD and INSTALL scripts are plain bash shell scripts. It is possible to do conditional execution or even loops. For example, it is possible to distinguish between the different BeOS platforms using the {{{BEPORTS_PLATFORM}}} environment variable. It can be one of {{{R5}}}, {{{BONE}}} or {{{HAIKU}}}. BePorter detects which BeOS platform it is running on and set the {{{BEPORTS_PLATFORM}}} variable accordingly. 
     81BUILD and INSTALL scripts are plain bash shell scripts. It is possible to do conditional execution or even loops. For example, it is possible to distinguish between the different BeOS platforms using the {{{BEPORTS_PLATFORM}}} environment variable. It can be one of {{{R5}}}, {{{BONE}}} or {{{HAIKU}}}. Haikuporter detects which BeOS platform it is running on and set the {{{BEPORTS_PLATFORM}}} variable accordingly. 
    8382 
    8483An example of a build script is shown below. Notice that it is possible to add comments using a {{{#}}}. It is highly recommended to document anything special you might do inside a BUILD or INSTALL script. This might help people when they are porting other applications. 
    … …  
    9695}}} 
    9796 
    98 When a key is not listed in the BepFile, BePorter assumes the default value, or an empty string/list (when no default value is specified above). 
     97When a key is not listed in the BepFile, haikuporter assumes the default value, or an empty string/list (when no default value is specified above). 
    9998 
    100 Note: It is possible that the names and/or the use of these keys may change as BePorter evolves. Keys may also be added and removed. When BePorter gets a release, the key set shall be frozen. 
     99Note: It is possible that the names and/or the use of these keys may change as haikuporter evolves. Keys may also be added and removed. When haikuporter gets a release, the key set shall be frozen. 

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/