Conary:Cmake Package Recipe
From rPath Wiki
Conary packagers can write a package recipe to package an application that requires a Cmake script. This type of recipe inherits directly from the PackageRecipe class.
Use the following template to start the recipe, and make the changes suggested:
class MyApp(PackageRecipe): name = 'myapp' version = '1.0' buildRequires = [ ] def setup(r): r.addArchive('http://www.example.com/sample/') r.CMake() r.Make() r.MakeInstall()
More information on specific variables, keywords, and class variables can be found in the API page for r.Cmake
Suggested changes:
- Change the class name to a CamelCase representation of the application name
- Change the value for name to the application name as packaged
- Change the value for version to the application version
- After cooking (with cvc) or building (with rMake), add items to the buildRequires section as instructed by the build messages (see Conary Recipe Structure for more information)
- CMakeLists.txt is the cmake script that r.CMake() will look for. This file can be added as a source component with cvc add CMakeLists.txt
- make and make install are not automatically run by r.CMake() and will need to be called in the recipe
