Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133651 - cmake eclass
Summary: cmake eclass
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-17 17:24 UTC by Panard
Modified: 2006-05-17 23:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
eclass/cmake.eclass (cmake.eclass,1.63 KB, text/plain)
2006-05-17 17:24 UTC, Panard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Panard 2006-05-17 17:24:07 UTC
I needed to write a cmake eclass to build out of the sources.
So, here is my cmake.eclass... I hope it may be usefull.

4 functions are defined :

cmake_use_option: 
	use_enable-like function:
	cmake_use_option <USEFLAG> <OPTION> [<value use> [<VALUE else>]]
some examples:
USE=qt debug
cmake_use_option qt ENABLE_QUI => -DENABLE_QUI=ON
cmake_use_option gtk ENABLE_GUI => -DENABLE_GUI=OFF
cmake_use_option gtk ENABLE_NOGUI OFF => -DENABLE_NOGUI=ON
cmake_use_option doc GENDOC full =>
cmake_use_option html GENDOC html text => -DGENDOC=text
cmake_use_option debug CMAKE_BUILD_TYPE debugfull => -DCMAKE_BUILD_TYPE=debugfull

cmake_configure:
   create BUILDDIR, and run cmake with selected debug
cmake_compile
   emake in BUILDDIR
cmake_install
   emake DESTDIR=$D install in BUILDDIR
Comment 1 Panard 2006-05-17 17:24:26 UTC
Created attachment 86965 [details]
eclass/cmake.eclass
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-05-17 23:26:22 UTC
New eclasses need to be discussed on gentoo-dev mailing list. Please, take it there if you think that this should be in portage and explain why. Thanks.