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 2 and Version 3 of WritingBepFile


Ignore:
Timestamp:
01/20/13 00:11:00 (2 years ago)
Author:
passick
Comment:

Added article caption, deleted links to the BepFile article

Legend:

Unmodified
Added
Removed
Modified
  • WritingBepFile

    v2 v3  
     1= Writing !BepFile = 
     2 
    13This article gives basic overview of writing a .bep file for haikuporter. Prior to reading it, you are advised to read BepFile article. This entry assumes that you have read and understood it. 
    24 
    3 == BepFile name == 
     5== !BepFile name == 
    46 
    5 BepFile should be named as "Program name"-"Program version".bep format, e.g. `transmission-2.75.bep`, `curl-7.28.1.bep`. Also some additional information can be added to the filename. An example of that case is `libsdl-2.0-hg-cmake.bep` file. From it's name we can notice that version to be built with cmake is going to be downloaded from sdl's mercurial server. 
     7!BepFile should be named as "Program name"-"Program version".bep format, e.g. `transmission-2.75.bep`, `curl-7.28.1.bep`. Also some additional information can be added to the filename. An example of that case is `libsdl-2.0-hg-cmake.bep` file. From it's name we can notice that version to be built with cmake is going to be downloaded from sdl's mercurial server. 
    68 
    79== How HaikuPorter works == 
    … …  
    1113* Process the arguments passed 
    1214* Search for the specified package in ports tree 
    13 * Read data from BepFile 
     15* Read data from !BepFile 
    1416* If port is not stable, then warn the user 
    1517* Print the `MESSAGE` string from the bep 
    … …  
    1719* Warn user about the port dependencies 
    1820* Download the sources 
    19 * Check that downloaded file's checksum matches with the one specified in the `CHECKSUM_MD5` field of the BepFile (if it is not empty) 
     21* Check that downloaded file's checksum matches with the one specified in the `CHECKSUM_MD5` field of the !BepFile (if it is not empty) 
    2022* Unpack sources to the work directory 
    2123* Patch sources (*) 
    … …  
    2830Items marked with (*) are controlled by the commandline arguments, default behaviour is to patch and build. 
    2931 
    30 == Writing BepFile == 
     32== Writing !BepFile == 
    3133 
    32340. Read porting Guidelines 
    … …  
    4143  a. If it fails, find the reason why and fix it 
    4244  b. [#Patchfile Make a patch] 
    43 7. Write `BUILD` section of your BepFile reflecting the steps you have made 
     457. Write `BUILD` section of your !BepFile reflecting the steps you have made 
    4446  * Don't forget that by default the `BUILD` script is launched from the work directory, so you possibly need to cd in the beginning 
    45478. Write `INSTALL` section 
    46   * When adding paths to the BepFile, don't hardcode them. Use [wiki:FindDirectory finddir] instead 
     48  * When adding paths to the !BepFile, don't hardcode them. Use [wiki:FindDirectory finddir] instead 
    47499. If program has tests, write `TEST` section 
    485010. Add miscellaneous info 
    … …  
    5658== License file == 
    5759 
    58 If project you are porting has license that hasn't been added yet to the haiku's default list of licenses, make a text file with the name of this license containing it's text and add it to the license folder in BepFile's dir ([http://ports.haiku-files.org/browser//haikuports/trunk/app-misc/figlet example]). 
     60If project you are porting has license that hasn't been added yet to the haiku's default list of licenses, make a text file with the name of this license containing it's text and add it to the license folder in !BepFile's dir ([http://ports.haiku-files.org/browser//haikuports/trunk/app-misc/figlet example]). 
    5961 
    6062== Patch file == 

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

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