converting arduino libraries

hello guys.

there are a lot of arduino library around as you know. but what if i want use some device (which have library for arduino but not msp) on other kits ? i know that energia exists. but i just want to know how could i do this for ccs c.

if it is possible, is there any tutorial (i check for it but i couldn't find anything) how i will convert arduino libraries for other development tools ? or anyone explain it briefly ?

thanks.