Question Rom porting

Hy

i have a question how to port a rom from a another device????like example from a samsung galaxy s i9100 to a gt i9000. I find the rom porter app but is not want to install ???a little tutorial would help me!!!